Changeset 1960
- Timestamp:
- Sep 12, 2013 6:03:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cbc/configure
r1958 r1960 1087 1087 icl/link). Default when mentioned: mingw. Default 1088 1088 when not mentioned: disabled. 1089 1090 1089 --enable-static[=PKGS] 1091 1090 build static libraries [default=no] … … 2000 1999 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} 2001 2000 fi 2002 2003 2004 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.2005 if test "${enable_static_standardlibs+set}" = set; then2006 enableval="$enable_static_standardlibs"2007 case "$enableval" in2008 no | yes | auto ) ;;2009 *)2010 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&52011 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}2012 { (exit 1); exit 1; }; } ;;2013 esac2014 use_static_standardlibs=$enableval2015 else2016 use_static_standardlibs=no2017 fi;2018 2019 2001 2020 2002 … … 3156 3138 CFLAGS="$OPT_CFLAGS" 3157 3139 fi 3158 3159 3140 else 3160 3141 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3325 3306 esac 3326 3307 3327 # check whether to add flags for static linking against standard libraries to LDFLAGS3328 if test x$use_static_standardlibs != xno ; then3329 case $build in3330 *-mingw*)3331 static_standardlib_flag=-static3332 ;;3333 *)3334 static_standardlib_flag=-static-libgcc3335 ;;3336 esac3337 case " $LDFLAGS " in3338 *" $static_standardlib_flag "* ) ;;3339 *)3340 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&53341 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&63342 coin_save_LDFLAGS="$LDFLAGS"3343 LDFLAGS="$LDFLAGS $static_standardlib_flag"3344 cat >conftest.$ac_ext <<_ACEOF3345 /* confdefs.h. */3346 _ACEOF3347 cat confdefs.h >>conftest.$ac_ext3348 cat >>conftest.$ac_ext <<_ACEOF3349 /* end confdefs.h. */3350 3351 int3352 main ()3353 {3354 int i=0;3355 ;3356 return 0;3357 }3358 _ACEOF3359 rm -f conftest.$ac_objext conftest$ac_exeext3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53361 (eval $ac_link) 2>conftest.er13362 ac_status=$?3363 grep -v '^ *+' conftest.er1 >conftest.err3364 rm -f conftest.er13365 cat conftest.err >&53366 echo "$as_me:$LINENO: \$? = $ac_status" >&53367 (exit $ac_status); } &&3368 { ac_try='test -z "$ac_c_werror_flag"3369 || test ! -s conftest.err'3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53371 (eval $ac_try) 2>&53372 ac_status=$?3373 echo "$as_me:$LINENO: \$? = $ac_status" >&53374 (exit $ac_status); }; } &&3375 { ac_try='test -s conftest$ac_exeext'3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53377 (eval $ac_try) 2>&53378 ac_status=$?3379 echo "$as_me:$LINENO: \$? = $ac_status" >&53380 (exit $ac_status); }; }; then3381 echo "$as_me:$LINENO: result: yes" >&53382 echo "${ECHO_T}yes" >&63383 else3384 echo "$as_me: failed program was:" >&53385 sed 's/^/| /' conftest.$ac_ext >&53386 3387 echo "$as_me:$LINENO: result: no" >&53388 echo "${ECHO_T}no" >&63389 LDFLAGS="$coin_save_LDFLAGS"3390 if test $use_static_standardlibs = yes ; then3391 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&53392 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}3393 { (exit 1); exit 1; }; }3394 fi3395 3396 fi3397 rm -f conftest.err conftest.$ac_objext \3398 conftest$ac_exeext conftest.$ac_ext3399 ;;3400 esac3401 fi3402 3403 3308 ac_ext=c 3404 3309 ac_cpp='$CPP $CPPFLAGS' … … 3410 3315 3411 3316 #Let's try if that overcomes configuration problem with VC++ 6.0 3412 3413 3317 3414 3318 ac_ext=cc … … 4363 4267 esac 4364 4268 4365 # check whether to add flag for static linking against standard libraries to LDFLAGS4366 if test x$use_static_standardlibs != xno ; then4367 case $build in4368 *-mingw*)4369 static_standardlib_flag=-static4370 ;;4371 *)4372 static_standardlib_flag=-static-libstdc++4373 ;;4374 esac4375 case " $LDFLAGS " in4376 *" $static_standardlib_flag "* ) ;;4377 *)4378 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&54379 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&64380 coin_save_LDFLAGS="$LDFLAGS"4381 LDFLAGS="$LDFLAGS $static_standardlib_flag"4382 cat >conftest.$ac_ext <<_ACEOF4383 /* confdefs.h. */4384 _ACEOF4385 cat confdefs.h >>conftest.$ac_ext4386 cat >>conftest.$ac_ext <<_ACEOF4387 /* end confdefs.h. */4388 4389 int4390 main ()4391 {4392 int i=0;4393 ;4394 return 0;4395 }4396 _ACEOF4397 rm -f conftest.$ac_objext conftest$ac_exeext4398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54399 (eval $ac_link) 2>conftest.er14400 ac_status=$?4401 grep -v '^ *+' conftest.er1 >conftest.err4402 rm -f conftest.er14403 cat conftest.err >&54404 echo "$as_me:$LINENO: \$? = $ac_status" >&54405 (exit $ac_status); } &&4406 { ac_try='test -z "$ac_cxx_werror_flag"4407 || test ! -s conftest.err'4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54409 (eval $ac_try) 2>&54410 ac_status=$?4411 echo "$as_me:$LINENO: \$? = $ac_status" >&54412 (exit $ac_status); }; } &&4413 { ac_try='test -s conftest$ac_exeext'4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54415 (eval $ac_try) 2>&54416 ac_status=$?4417 echo "$as_me:$LINENO: \$? = $ac_status" >&54418 (exit $ac_status); }; }; then4419 echo "$as_me:$LINENO: result: yes" >&54420 echo "${ECHO_T}yes" >&64421 else4422 echo "$as_me: failed program was:" >&54423 sed 's/^/| /' conftest.$ac_ext >&54424 4425 echo "$as_me:$LINENO: result: no" >&54426 echo "${ECHO_T}no" >&64427 LDFLAGS="$coin_save_LDFLAGS"4428 if test $use_static_standardlibs = yes ; then4429 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&54430 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}4431 { (exit 1); exit 1; }; }4432 fi4433 4434 fi4435 rm -f conftest.err conftest.$ac_objext \4436 conftest$ac_exeext conftest.$ac_ext4437 ;;4438 esac4439 fi4440 4441 4269 ac_ext=c 4442 4270 ac_cpp='$CPP $CPPFLAGS' … … 6207 6035 *-*-irix6*) 6208 6036 # Find out which ABI we are using. 6209 echo '#line 6 209"configure"' > conftest.$ac_ext6037 echo '#line 6037 "configure"' > conftest.$ac_ext 6210 6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6211 6039 (eval $ac_compile) 2>&5 … … 7341 7169 7342 7170 # Provide some information about the compiler. 7343 echo "$as_me:7 343:" \7171 echo "$as_me:7171:" \ 7344 7172 "checking for Fortran 77 compiler version" >&5 7345 7173 ac_compiler=`set X $ac_compile; echo $2` … … 8408 8236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8409 8237 -e 's:$: $lt_compiler_flag:'` 8410 (eval echo "\"\$as_me:8 410: $lt_compile\"" >&5)8238 (eval echo "\"\$as_me:8238: $lt_compile\"" >&5) 8411 8239 (eval "$lt_compile" 2>conftest.err) 8412 8240 ac_status=$? 8413 8241 cat conftest.err >&5 8414 echo "$as_me:8 414: \$? = $ac_status" >&58242 echo "$as_me:8242: \$? = $ac_status" >&5 8415 8243 if (exit $ac_status) && test -s "$ac_outfile"; then 8416 8244 # The compiler can only warn and ignore the option if not recognized … … 8676 8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8677 8505 -e 's:$: $lt_compiler_flag:'` 8678 (eval echo "\"\$as_me:8 678: $lt_compile\"" >&5)8506 (eval echo "\"\$as_me:8506: $lt_compile\"" >&5) 8679 8507 (eval "$lt_compile" 2>conftest.err) 8680 8508 ac_status=$? 8681 8509 cat conftest.err >&5 8682 echo "$as_me:8 682: \$? = $ac_status" >&58510 echo "$as_me:8510: \$? = $ac_status" >&5 8683 8511 if (exit $ac_status) && test -s "$ac_outfile"; then 8684 8512 # The compiler can only warn and ignore the option if not recognized … … 8780 8608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8781 8609 -e 's:$: $lt_compiler_flag:'` 8782 (eval echo "\"\$as_me:8 782: $lt_compile\"" >&5)8610 (eval echo "\"\$as_me:8610: $lt_compile\"" >&5) 8783 8611 (eval "$lt_compile" 2>out/conftest.err) 8784 8612 ac_status=$? 8785 8613 cat out/conftest.err >&5 8786 echo "$as_me:8 786: \$? = $ac_status" >&58614 echo "$as_me:8614: \$? = $ac_status" >&5 8787 8615 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8788 8616 then … … 11125 10953 lt_status=$lt_dlunknown 11126 10954 cat > conftest.$ac_ext <<EOF 11127 #line 1 1127"configure"10955 #line 10955 "configure" 11128 10956 #include "confdefs.h" 11129 10957 … … 11225 11053 lt_status=$lt_dlunknown 11226 11054 cat > conftest.$ac_ext <<EOF 11227 #line 11 227"configure"11055 #line 11055 "configure" 11228 11056 #include "confdefs.h" 11229 11057 … … 13569 13397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13570 13398 -e 's:$: $lt_compiler_flag:'` 13571 (eval echo "\"\$as_me:13 571: $lt_compile\"" >&5)13399 (eval echo "\"\$as_me:13399: $lt_compile\"" >&5) 13572 13400 (eval "$lt_compile" 2>conftest.err) 13573 13401 ac_status=$? 13574 13402 cat conftest.err >&5 13575 echo "$as_me:13 575: \$? = $ac_status" >&513403 echo "$as_me:13403: \$? = $ac_status" >&5 13576 13404 if (exit $ac_status) && test -s "$ac_outfile"; then 13577 13405 # The compiler can only warn and ignore the option if not recognized … … 13673 13501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13674 13502 -e 's:$: $lt_compiler_flag:'` 13675 (eval echo "\"\$as_me:13 675: $lt_compile\"" >&5)13503 (eval echo "\"\$as_me:13503: $lt_compile\"" >&5) 13676 13504 (eval "$lt_compile" 2>out/conftest.err) 13677 13505 ac_status=$? 13678 13506 cat out/conftest.err >&5 13679 echo "$as_me:13 679: \$? = $ac_status" >&513507 echo "$as_me:13507: \$? = $ac_status" >&5 13680 13508 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13681 13509 then … … 15243 15071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15244 15072 -e 's:$: $lt_compiler_flag:'` 15245 (eval echo "\"\$as_me:15 245: $lt_compile\"" >&5)15073 (eval echo "\"\$as_me:15073: $lt_compile\"" >&5) 15246 15074 (eval "$lt_compile" 2>conftest.err) 15247 15075 ac_status=$? 15248 15076 cat conftest.err >&5 15249 echo "$as_me:15 249: \$? = $ac_status" >&515077 echo "$as_me:15077: \$? = $ac_status" >&5 15250 15078 if (exit $ac_status) && test -s "$ac_outfile"; then 15251 15079 # The compiler can only warn and ignore the option if not recognized … … 15347 15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15348 15176 -e 's:$: $lt_compiler_flag:'` 15349 (eval echo "\"\$as_me:15 349: $lt_compile\"" >&5)15177 (eval echo "\"\$as_me:15177: $lt_compile\"" >&5) 15350 15178 (eval "$lt_compile" 2>out/conftest.err) 15351 15179 ac_status=$? 15352 15180 cat out/conftest.err >&5 15353 echo "$as_me:15 353: \$? = $ac_status" >&515181 echo "$as_me:15181: \$? = $ac_status" >&5 15354 15182 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15355 15183 then … … 17554 17382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17555 17383 -e 's:$: $lt_compiler_flag:'` 17556 (eval echo "\"\$as_me:17 556: $lt_compile\"" >&5)17384 (eval echo "\"\$as_me:17384: $lt_compile\"" >&5) 17557 17385 (eval "$lt_compile" 2>conftest.err) 17558 17386 ac_status=$? 17559 17387 cat conftest.err >&5 17560 echo "$as_me:17 560: \$? = $ac_status" >&517388 echo "$as_me:17388: \$? = $ac_status" >&5 17561 17389 if (exit $ac_status) && test -s "$ac_outfile"; then 17562 17390 # The compiler can only warn and ignore the option if not recognized … … 17822 17650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17823 17651 -e 's:$: $lt_compiler_flag:'` 17824 (eval echo "\"\$as_me:17 824: $lt_compile\"" >&5)17652 (eval echo "\"\$as_me:17652: $lt_compile\"" >&5) 17825 17653 (eval "$lt_compile" 2>conftest.err) 17826 17654 ac_status=$? 17827 17655 cat conftest.err >&5 17828 echo "$as_me:17 828: \$? = $ac_status" >&517656 echo "$as_me:17656: \$? = $ac_status" >&5 17829 17657 if (exit $ac_status) && test -s "$ac_outfile"; then 17830 17658 # The compiler can only warn and ignore the option if not recognized … … 17926 17754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17927 17755 -e 's:$: $lt_compiler_flag:'` 17928 (eval echo "\"\$as_me:17 928: $lt_compile\"" >&5)17756 (eval echo "\"\$as_me:17756: $lt_compile\"" >&5) 17929 17757 (eval "$lt_compile" 2>out/conftest.err) 17930 17758 ac_status=$? 17931 17759 cat out/conftest.err >&5 17932 echo "$as_me:17 932: \$? = $ac_status" >&517760 echo "$as_me:17760: \$? = $ac_status" >&5 17933 17761 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17934 17762 then
Note: See TracChangeset
for help on using the changeset viewer.