Changeset 2662
- Timestamp:
- Dec 1, 2012 1:38:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/HSL/trunk/configure
r2625 r2662 1094 1094 icl/link). Default when mentioned: mingw. Default 1095 1095 when not mentioned: disabled. 1096 --enable-static-standardlibs 1097 whether to link against static standard libraries 1098 (libgcc, libgfortran, libstdc++) 1096 1099 --disable-pkg-config disable use of pkg-config (if available) 1097 1100 --enable-static[=PKGS] … … 1953 1956 1954 1957 1958 # check whether to add flags for static linking against standard libraries 1959 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given. 1960 if test "${enable_static_standardlibs+set}" = set; then 1961 enableval="$enable_static_standardlibs" 1962 case "$enableval" in 1963 no | yes | auto ) ;; 1964 *) 1965 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5 1966 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;} 1967 { (exit 1); exit 1; }; } ;; 1968 esac 1969 use_static_standardlibs=$enableval 1970 else 1971 if test $enable_shared = yes ; then 1972 use_static_standardlibs = no 1973 else 1974 use_static_standardlibs = auto 1975 fi 1976 1977 1978 fi; 1979 1980 1981 1982 1983 1955 1984 1956 1985 ac_ext=c … … 3076 3105 CFLAGS="$OPT_CFLAGS" 3077 3106 fi 3107 3078 3108 else 3079 3109 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3244 3274 esac 3245 3275 3276 # check whether to add flags for static linking against standard libraries to LDFLAGS 3277 if test x$use_static_standardlibs != xno ; then 3278 case $build in 3279 *-mingw*) 3280 static_standardlib_flag=-static 3281 ;; 3282 *) 3283 static_standardlib_flag=-static-libgcc 3284 ;; 3285 esac 3286 case " $LDFLAGS " in 3287 *" $static_standardlib_flag "* ) ;; 3288 *) 3289 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5 3290 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6 3291 coin_save_LDFLAGS="$LDFLAGS" 3292 LDFLAGS="$LDFLAGS $static_standardlib_flag" 3293 cat >conftest.$ac_ext <<_ACEOF 3294 /* confdefs.h. */ 3295 _ACEOF 3296 cat confdefs.h >>conftest.$ac_ext 3297 cat >>conftest.$ac_ext <<_ACEOF 3298 /* end confdefs.h. */ 3299 3300 int 3301 main () 3302 { 3303 int i=0; 3304 ; 3305 return 0; 3306 } 3307 _ACEOF 3308 rm -f conftest.$ac_objext conftest$ac_exeext 3309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3310 (eval $ac_link) 2>conftest.er1 3311 ac_status=$? 3312 grep -v '^ *+' conftest.er1 >conftest.err 3313 rm -f conftest.er1 3314 cat conftest.err >&5 3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3316 (exit $ac_status); } && 3317 { ac_try='test -z "$ac_c_werror_flag" 3318 || test ! -s conftest.err' 3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3320 (eval $ac_try) 2>&5 3321 ac_status=$? 3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3323 (exit $ac_status); }; } && 3324 { ac_try='test -s conftest$ac_exeext' 3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3326 (eval $ac_try) 2>&5 3327 ac_status=$? 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); }; }; then 3330 echo "$as_me:$LINENO: result: yes" >&5 3331 echo "${ECHO_T}yes" >&6 3332 else 3333 echo "$as_me: failed program was:" >&5 3334 sed 's/^/| /' conftest.$ac_ext >&5 3335 3336 echo "$as_me:$LINENO: result: no" >&5 3337 echo "${ECHO_T}no" >&6 3338 LDFLAGS="$coin_save_LDFLAGS" 3339 if test $use_static_standardlibs = yes ; then 3340 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5 3341 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;} 3342 { (exit 1); exit 1; }; } 3343 fi 3344 3345 fi 3346 rm -f conftest.err conftest.$ac_objext \ 3347 conftest$ac_exeext conftest.$ac_ext 3348 ;; 3349 esac 3350 fi 3351 3246 3352 ac_ext=c 3247 3353 ac_cpp='$CPP $CPPFLAGS' … … 3272 3378 3273 3379 3380 3274 3381 ac_ext=f 3275 3382 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' … … 3481 3588 3482 3589 # Provide some information about the compiler. 3483 echo "$as_me:3 483:" \3590 echo "$as_me:3590:" \ 3484 3591 "checking for Fortran 77 compiler version" >&5 3485 3592 ac_compiler=`set X $ac_compile; echo $2` … … 3848 3955 FFLAGS="$OPT_FFLAGS" 3849 3956 fi 3957 3850 3958 else 3851 3959 FFLAGS="$FFLAGS $ADD_FFLAGS" … … 3989 4097 ;; 3990 4098 esac 4099 4100 # check whether to add flag for static linking against standard libraries to LDFLAGS 4101 if test x$use_static_standardlibs != xno ; then 4102 case $build in 4103 *-mingw*) 4104 static_standardlib_flag=-static 4105 ;; 4106 *) 4107 static_standardlib_flag=-static-libgfortran 4108 ;; 4109 esac 4110 case " $LDFLAGS " in 4111 *" $static_standardlib_flag "* ) ;; 4112 *) 4113 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5 4114 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6 4115 coin_save_LDFLAGS="$LDFLAGS" 4116 LDFLAGS="$LDFLAGS $static_standardlib_flag" 4117 cat >conftest.$ac_ext <<_ACEOF 4118 program main 4119 integer i 4120 end 4121 _ACEOF 4122 rm -f conftest.$ac_objext conftest$ac_exeext 4123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4124 (eval $ac_link) 2>conftest.er1 4125 ac_status=$? 4126 grep -v '^ *+' conftest.er1 >conftest.err 4127 rm -f conftest.er1 4128 cat conftest.err >&5 4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4130 (exit $ac_status); } && 4131 { ac_try='test -z "$ac_f77_werror_flag" 4132 || test ! -s conftest.err' 4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4134 (eval $ac_try) 2>&5 4135 ac_status=$? 4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4137 (exit $ac_status); }; } && 4138 { ac_try='test -s conftest$ac_exeext' 4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4140 (eval $ac_try) 2>&5 4141 ac_status=$? 4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4143 (exit $ac_status); }; }; then 4144 echo "$as_me:$LINENO: result: yes" >&5 4145 echo "${ECHO_T}yes" >&6 4146 else 4147 echo "$as_me: failed program was:" >&5 4148 sed 's/^/| /' conftest.$ac_ext >&5 4149 4150 echo "$as_me:$LINENO: result: no" >&5 4151 echo "${ECHO_T}no" >&6 4152 LDFLAGS="$coin_save_LDFLAGS" 4153 if test $use_static_standardlibs = yes ; then 4154 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5 4155 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;} 4156 { (exit 1); exit 1; }; } 4157 fi 4158 4159 fi 4160 rm -f conftest.err conftest.$ac_objext \ 4161 conftest$ac_exeext conftest.$ac_ext 4162 ;; 4163 esac 4164 fi 3991 4165 3992 4166 ac_ext=c … … 4254 4428 ac_save_FFLAGS=$FFLAGS 4255 4429 FFLAGS="$FFLAGS $ac_verb" 4256 (eval echo $as_me:4 256: \"$ac_link\") >&54430 (eval echo $as_me:4430: \"$ac_link\") >&5 4257 4431 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4258 4432 echo "$ac_f77_v_output" >&5 … … 4332 4506 ac_save_FFLAGS=$FFLAGS 4333 4507 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 4334 (eval echo $as_me:4 334: \"$ac_link\") >&54508 (eval echo $as_me:4508: \"$ac_link\") >&5 4335 4509 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4336 4510 echo "$ac_f77_v_output" >&5 … … 5210 5384 5211 5385 # Provide some information about the compiler. 5212 echo "$as_me:5 212:" \5386 echo "$as_me:5386:" \ 5213 5387 "checking for Fortran compiler version" >&5 5214 5388 ac_compiler=`set X $ac_compile; echo $2` … … 6982 7156 *-*-irix6*) 6983 7157 # Find out which ABI we are using. 6984 echo '#line 6984"configure"' > conftest.$ac_ext7158 echo '#line 7158 "configure"' > conftest.$ac_ext 6985 7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6986 7160 (eval $ac_compile) 2>&5 … … 9459 9633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9460 9634 -e 's:$: $lt_compiler_flag:'` 9461 (eval echo "\"\$as_me:9 461: $lt_compile\"" >&5)9635 (eval echo "\"\$as_me:9635: $lt_compile\"" >&5) 9462 9636 (eval "$lt_compile" 2>conftest.err) 9463 9637 ac_status=$? 9464 9638 cat conftest.err >&5 9465 echo "$as_me:9 465: \$? = $ac_status" >&59639 echo "$as_me:9639: \$? = $ac_status" >&5 9466 9640 if (exit $ac_status) && test -s "$ac_outfile"; then 9467 9641 # The compiler can only warn and ignore the option if not recognized … … 9727 9901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9728 9902 -e 's:$: $lt_compiler_flag:'` 9729 (eval echo "\"\$as_me:9 729: $lt_compile\"" >&5)9903 (eval echo "\"\$as_me:9903: $lt_compile\"" >&5) 9730 9904 (eval "$lt_compile" 2>conftest.err) 9731 9905 ac_status=$? 9732 9906 cat conftest.err >&5 9733 echo "$as_me:9 733: \$? = $ac_status" >&59907 echo "$as_me:9907: \$? = $ac_status" >&5 9734 9908 if (exit $ac_status) && test -s "$ac_outfile"; then 9735 9909 # The compiler can only warn and ignore the option if not recognized … … 9831 10005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9832 10006 -e 's:$: $lt_compiler_flag:'` 9833 (eval echo "\"\$as_me: 9833: $lt_compile\"" >&5)10007 (eval echo "\"\$as_me:10007: $lt_compile\"" >&5) 9834 10008 (eval "$lt_compile" 2>out/conftest.err) 9835 10009 ac_status=$? 9836 10010 cat out/conftest.err >&5 9837 echo "$as_me: 9837: \$? = $ac_status" >&510011 echo "$as_me:10011: \$? = $ac_status" >&5 9838 10012 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9839 10013 then … … 12248 12422 lt_status=$lt_dlunknown 12249 12423 cat > conftest.$ac_ext <<EOF 12250 #line 12 250"configure"12424 #line 12424 "configure" 12251 12425 #include "confdefs.h" 12252 12426 … … 12348 12522 lt_status=$lt_dlunknown 12349 12523 cat > conftest.$ac_ext <<EOF 12350 #line 12 350"configure"12524 #line 12524 "configure" 12351 12525 #include "confdefs.h" 12352 12526 … … 14708 14882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14709 14883 -e 's:$: $lt_compiler_flag:'` 14710 (eval echo "\"\$as_me:14 710: $lt_compile\"" >&5)14884 (eval echo "\"\$as_me:14884: $lt_compile\"" >&5) 14711 14885 (eval "$lt_compile" 2>conftest.err) 14712 14886 ac_status=$? 14713 14887 cat conftest.err >&5 14714 echo "$as_me:14 714: \$? = $ac_status" >&514888 echo "$as_me:14888: \$? = $ac_status" >&5 14715 14889 if (exit $ac_status) && test -s "$ac_outfile"; then 14716 14890 # The compiler can only warn and ignore the option if not recognized … … 14812 14986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14813 14987 -e 's:$: $lt_compiler_flag:'` 14814 (eval echo "\"\$as_me:14 814: $lt_compile\"" >&5)14988 (eval echo "\"\$as_me:14988: $lt_compile\"" >&5) 14815 14989 (eval "$lt_compile" 2>out/conftest.err) 14816 14990 ac_status=$? 14817 14991 cat out/conftest.err >&5 14818 echo "$as_me:14 818: \$? = $ac_status" >&514992 echo "$as_me:14992: \$? = $ac_status" >&5 14819 14993 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14820 14994 then … … 16382 16556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16383 16557 -e 's:$: $lt_compiler_flag:'` 16384 (eval echo "\"\$as_me:16 384: $lt_compile\"" >&5)16558 (eval echo "\"\$as_me:16558: $lt_compile\"" >&5) 16385 16559 (eval "$lt_compile" 2>conftest.err) 16386 16560 ac_status=$? 16387 16561 cat conftest.err >&5 16388 echo "$as_me:16 388: \$? = $ac_status" >&516562 echo "$as_me:16562: \$? = $ac_status" >&5 16389 16563 if (exit $ac_status) && test -s "$ac_outfile"; then 16390 16564 # The compiler can only warn and ignore the option if not recognized … … 16486 16660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16487 16661 -e 's:$: $lt_compiler_flag:'` 16488 (eval echo "\"\$as_me:16 488: $lt_compile\"" >&5)16662 (eval echo "\"\$as_me:16662: $lt_compile\"" >&5) 16489 16663 (eval "$lt_compile" 2>out/conftest.err) 16490 16664 ac_status=$? 16491 16665 cat out/conftest.err >&5 16492 echo "$as_me:16 492: \$? = $ac_status" >&516666 echo "$as_me:16666: \$? = $ac_status" >&5 16493 16667 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16494 16668 then … … 18693 18867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18694 18868 -e 's:$: $lt_compiler_flag:'` 18695 (eval echo "\"\$as_me:18 695: $lt_compile\"" >&5)18869 (eval echo "\"\$as_me:18869: $lt_compile\"" >&5) 18696 18870 (eval "$lt_compile" 2>conftest.err) 18697 18871 ac_status=$? 18698 18872 cat conftest.err >&5 18699 echo "$as_me:18 699: \$? = $ac_status" >&518873 echo "$as_me:18873: \$? = $ac_status" >&5 18700 18874 if (exit $ac_status) && test -s "$ac_outfile"; then 18701 18875 # The compiler can only warn and ignore the option if not recognized … … 18961 19135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18962 19136 -e 's:$: $lt_compiler_flag:'` 18963 (eval echo "\"\$as_me:1 8963: $lt_compile\"" >&5)19137 (eval echo "\"\$as_me:19137: $lt_compile\"" >&5) 18964 19138 (eval "$lt_compile" 2>conftest.err) 18965 19139 ac_status=$? 18966 19140 cat conftest.err >&5 18967 echo "$as_me:1 8967: \$? = $ac_status" >&519141 echo "$as_me:19141: \$? = $ac_status" >&5 18968 19142 if (exit $ac_status) && test -s "$ac_outfile"; then 18969 19143 # The compiler can only warn and ignore the option if not recognized … … 19065 19239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19066 19240 -e 's:$: $lt_compiler_flag:'` 19067 (eval echo "\"\$as_me:19 067: $lt_compile\"" >&5)19241 (eval echo "\"\$as_me:19241: $lt_compile\"" >&5) 19068 19242 (eval "$lt_compile" 2>out/conftest.err) 19069 19243 ac_status=$? 19070 19244 cat out/conftest.err >&5 19071 echo "$as_me:19 071: \$? = $ac_status" >&519245 echo "$as_me:19245: \$? = $ac_status" >&5 19072 19246 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19073 19247 then
Note: See TracChangeset
for help on using the changeset viewer.