📄 configure
字号:
eps3 = x3; x3 *= 0.5; } _FPU_SETCW (orig_cw); if ((eps1 != eps2) && (eps1 == eps3)) { /* Houston, we have a problem... */ /* Roger, set PC=double to fix it... */ exit (0); } /* Any failure here says we can't use this fix -- it doesn't work. */ exit (1);} voidstore_double (double * p,double val){ *p = val;}EOFif { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_x86_fp_precision_fix=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_x86_fp_precision_fix=nofirm -fr conftest*fiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossfiecho "$ac_t""$ac_cv_x86_fp_precision_fix" 1>&6if test "$ac_cv_x86_fp_precision_fix" = "yes"then cat >> confdefs.h <<\EOF#define HAVE_X86_FLOATING_POINT_PRECISION_FIX 1EOF # This is a better solution. No need to use -ffloat-store ac_cv_gcc_needs_float_store=noelse if test "$GCC" != "yes" then # Not GCC -- can't use -ffloat-store ac_cv_gcc_needs_float_store=no else echo $ac_n "checking if gcc -ffloat-store needed""... $ac_c" 1>&6echo "configure:1505: checking if gcc -ffloat-store needed" >&5if eval "test \"`echo '$''{'ac_cv_gcc_needs_float_store'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_cross if test "$cross_compiling" = yes; then ac_cv_gcc_needs_float_store=noelse cat > conftest.$ac_ext <<EOF#line 1521 "configure"#include "confdefs.h"#if STDC_HEADERS#include <stdlib.h>#endifextern void store_double (#ifdef __STDC__double *, double#endif);main (){double x, eps1;double y, eps2;double z; eps1 = 1.0; x = 1.0; for (;;) { z = x + 1.0; if (z == 1.0) break; eps1 = x; x *= 0.5; } eps2 = 1.0; y = 1.0; for (;;) { store_double (&z, y + 1.0); if (z == 1.0) break; eps2 = y; y *= 0.5; } if (eps1 == eps2) { /* Exiting with failure here says we don't */ /* need -ffloat-store. */ exit (1); } /* Houston, we have a problem... Roger, use -ffloat-store. */ exit (0);} voidstore_double (double * p,double val){ *p = val;}EOFif { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_gcc_needs_float_store=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_gcc_needs_float_store=nofirm -fr conftest*fiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossfiecho "$ac_t""$ac_cv_gcc_needs_float_store" 1>&6 fifiGCC_FLOAT_STORE=if test "$ac_cv_gcc_needs_float_store" = "yes"then GCC_FLOAT_STORE='-ffloat-store'fiecho $ac_n "checking for times() and CLK_TCK""... $ac_c" 1>&6echo "configure:1612: checking for times() and CLK_TCK" >&5if eval "test \"`echo '$''{'ac_cv_header_unix_cpu_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1617 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <sys/times.h>#include <time.h>int main() {clock_t ticks = CLK_TCK; clock_t total; struct tms t; times (&t); total = t.tms_utime + t.tms_stime + t.tms_cutime + t.tms_cstime; ; return 0; }EOFif { (eval echo configure:1635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_unix_cpu_time=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_unix_cpu_time=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_unix_cpu_time" 1>&6if test $ac_cv_header_unix_cpu_time = yes; then cat >> confdefs.h <<\EOF#define UNIX_CPU_TIME 1EOFfiecho $ac_n "checking for working uname function""... $ac_c" 1>&6echo "configure:1657: checking for working uname function" >&5if eval "test \"`echo '$''{'ac_cv_func_uname_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1662 "configure"#include "confdefs.h"#include <sys/utsname.h>int main() {struct utsname un; int total; uname (&un); total = *un.sysname + *un.nodename + *un.release + *un.version + *un.machine; printf ("%d\n", total);; return 0; }EOFif { (eval echo configure:1680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_uname_works=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_uname_works=nofirm -f conftest*fiecho "$ac_t""$ac_cv_func_uname_works" 1>&6if test $ac_cv_func_uname_works = yes; then cat >> confdefs.h <<\EOF#define UNAME_FUNCTION_WORKS 1EOFfifor ac_func in popen pclosedoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1704: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1709 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidone# Extract the first word of "uname", so it can be a program name with args.set dummy uname; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1760: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_ac_cv_prog_uname_full_pathname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$ac_cv_prog_uname_full_pathname" in /*) ac_cv_path_ac_cv_prog_uname_full_pathname="$ac_cv_prog_uname_full_pathname" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_ac_cv_prog_uname_full_pathname="$ac_cv_prog_uname_full_pathname" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_ac_cv_prog_uname_full_pathname="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiac_cv_prog_uname_full_pathname="$ac_cv_path_ac_cv_prog_uname_full_pathname"if test -n "$ac_cv_prog_uname_full_pathname"; then echo "$ac_t""$ac_cv_prog_uname_full_pathname" 1>&6else echo "$ac_t""no" 1>&6fiif test -n "$ac_cv_prog_uname_full_pathname"then cat >> confdefs.h <<EOF#define UNAME_PATH "$ac_cv_prog_uname_full_pathname"EOFfiecho $ac_n "checking if stderr is an lvalue""... $ac_c" 1>&6echo "configure:1802: checking if stderr is an lvalue" >&5if eval "test \"`echo '$''{'ac_cv_stderr_is_lvalue'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1807 "configure"#include "confdefs.h"#include <stdio.h>int main() { FILE * fp1; FILE * fp2; fp1 = stderr; fp2 = fopen ("/dev/null", "w"); stderr = fp2; fprintf (stderr, "Discarded output\n"); stderr = fp1; fclose (fp2);; return 0; }EOFif { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_stderr_is_lvalue=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_stderr_is_lvalue=nofirm -f conftest*fiecho "$ac_t""$ac_cv_stderr_is_lvalue" 1>&6if test "$ac_cv_stderr_is_lvalue" = "yes"then cat >> confdefs.h <<\EOF#define HAVE_STDERR_IS_LVALUE 1EOFfi# Override the cached CPLEX settings if environment vars are set!if test -n "$CPLEX_HEADER"then if test ! -r "$CPLEX_HEADER" then { echo "configure: error: File given by \$CPLEX_HEADER unreadable!" 1>&2; exit 1; } fi ac_cv_cplex_header="$CPLEX_HEADER"fiif test -n "$CPLEX_LIB"then if test ! -r "$CPLEX_LIB" then { echo "configure: error: File given by \$CPLEX_LIB unreadable!" 1>&2; exit 1; } fi ac_cv_cplex_lib="$CPLEX_LIB"fi# Check whether --with-cplex or --without-cplex was given.if test "${with_cplex+set}" = set; then withval="$with_cplex" if test "$withval" = nothen with_cplex=no # Expunge cplex from the cache! ac_cv_cplex_header='' ac_cv_cplex_lib=''else if test "$withval" != yes then echo "Arg to --with-cplex must be yes or no!" 1>&2 exit 1 fi with_cplex=yesfifiif test "$with_cplex" != nothen # Look for the cplex command in the path. The header and library are # often in the same directory as the executable. # Extract the first word of "cplex", so it can be a program name with args.set dummy cplex; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1894: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_cplex'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$ac_cv_path_cplex" in /*) ac_cv_path_ac_cv_path_cplex="$ac_cv_path_cplex" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_ac_cv_path_cplex="$ac_cv_path_cplex" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_ac_cv_path_cplex="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiac_cv_path_cplex="$ac_cv_path_ac_cv_path_cplex"if test -n "$ac_cv_path_cplex"; then echo "$ac_t""$ac_cv_path_cplex" 1>&6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -