Changeset 2674
- Timestamp:
- Dec 1, 2012 2:46:30 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Metis/trunk/configure
r2665 r2674 1067 1067 icl/link). Default when mentioned: mingw. Default 1068 1068 when not mentioned: disabled. 1069 --enable-static-standardlibs1070 whether to link against static standard libraries1071 (libgcc, libgfortran, libstdc++)1072 1069 --disable-pkg-config disable use of pkg-config (if available) 1073 1070 --enable-static[=PKGS] … … 1906 1903 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} 1907 1904 fi 1908 1909 1910 1911 # check whether to add flags for static linking against standard libraries1912 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.1913 if test "${enable_static_standardlibs+set}" = set; then1914 enableval="$enable_static_standardlibs"1915 case "$enableval" in1916 no | yes | auto ) ;;1917 *)1918 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&51919 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}1920 { (exit 1); exit 1; }; } ;;1921 esac1922 use_static_standardlibs=$enableval1923 else1924 if test $enable_shared = yes ; then1925 use_static_standardlibs = no1926 else1927 use_static_standardlibs = auto1928 fi1929 1930 1931 fi;1932 1933 1934 1905 1935 1906 … … 3058 3029 CFLAGS="$OPT_CFLAGS" 3059 3030 fi 3060 3061 3031 else 3062 3032 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3227 3197 esac 3228 3198 3229 # check whether to add flags for static linking against standard libraries to LDFLAGS3230 if test x$use_static_standardlibs != xno ; then3231 case $build in3232 *-mingw*)3233 static_standardlib_flag=-static3234 ;;3235 *)3236 static_standardlib_flag=-static-libgcc3237 ;;3238 esac3239 case " $LDFLAGS " in3240 *" $static_standardlib_flag "* ) ;;3241 *)3242 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&53243 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&63244 coin_save_LDFLAGS="$LDFLAGS"3245 LDFLAGS="$LDFLAGS $static_standardlib_flag"3246 cat >conftest.$ac_ext <<_ACEOF3247 /* confdefs.h. */3248 _ACEOF3249 cat confdefs.h >>conftest.$ac_ext3250 cat >>conftest.$ac_ext <<_ACEOF3251 /* end confdefs.h. */3252 3253 int3254 main ()3255 {3256 int i=0;3257 ;3258 return 0;3259 }3260 _ACEOF3261 rm -f conftest.$ac_objext conftest$ac_exeext3262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53263 (eval $ac_link) 2>conftest.er13264 ac_status=$?3265 grep -v '^ *+' conftest.er1 >conftest.err3266 rm -f conftest.er13267 cat conftest.err >&53268 echo "$as_me:$LINENO: \$? = $ac_status" >&53269 (exit $ac_status); } &&3270 { ac_try='test -z "$ac_c_werror_flag"3271 || test ! -s conftest.err'3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53273 (eval $ac_try) 2>&53274 ac_status=$?3275 echo "$as_me:$LINENO: \$? = $ac_status" >&53276 (exit $ac_status); }; } &&3277 { ac_try='test -s conftest$ac_exeext'3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53279 (eval $ac_try) 2>&53280 ac_status=$?3281 echo "$as_me:$LINENO: \$? = $ac_status" >&53282 (exit $ac_status); }; }; then3283 echo "$as_me:$LINENO: result: yes" >&53284 echo "${ECHO_T}yes" >&63285 else3286 echo "$as_me: failed program was:" >&53287 sed 's/^/| /' conftest.$ac_ext >&53288 3289 echo "$as_me:$LINENO: result: no" >&53290 echo "${ECHO_T}no" >&63291 LDFLAGS="$coin_save_LDFLAGS"3292 if test $use_static_standardlibs = yes ; then3293 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&53294 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}3295 { (exit 1); exit 1; }; }3296 fi3297 3298 fi3299 rm -f conftest.err conftest.$ac_objext \3300 conftest$ac_exeext conftest.$ac_ext3301 ;;3302 esac3303 fi3304 3305 3199 ac_ext=c 3306 3200 ac_cpp='$CPP $CPPFLAGS' … … 3454 3348 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 3455 3349 if test "x${prefix}" = xNONE ; then 3456 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib 64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"3457 else 3458 COIN_PKG_CONFIG_PATH="${prefix}/lib 64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"3350 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 3351 else 3352 COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 3459 3353 fi 3460 3354 … … 5152 5046 *-*-irix6*) 5153 5047 # Find out which ABI we are using. 5154 echo '#line 5 154"configure"' > conftest.$ac_ext5048 echo '#line 5048 "configure"' > conftest.$ac_ext 5155 5049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5156 5050 (eval $ac_compile) 2>&5 … … 6751 6645 6752 6646 # Provide some information about the compiler. 6753 echo "$as_me:6 753:" \6647 echo "$as_me:6647:" \ 6754 6648 "checking for Fortran 77 compiler version" >&5 6755 6649 ac_compiler=`set X $ac_compile; echo $2` … … 7818 7712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7819 7713 -e 's:$: $lt_compiler_flag:'` 7820 (eval echo "\"\$as_me:7 820: $lt_compile\"" >&5)7714 (eval echo "\"\$as_me:7714: $lt_compile\"" >&5) 7821 7715 (eval "$lt_compile" 2>conftest.err) 7822 7716 ac_status=$? 7823 7717 cat conftest.err >&5 7824 echo "$as_me:7 824: \$? = $ac_status" >&57718 echo "$as_me:7718: \$? = $ac_status" >&5 7825 7719 if (exit $ac_status) && test -s "$ac_outfile"; then 7826 7720 # The compiler can only warn and ignore the option if not recognized … … 8086 7980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8087 7981 -e 's:$: $lt_compiler_flag:'` 8088 (eval echo "\"\$as_me: 8088: $lt_compile\"" >&5)7982 (eval echo "\"\$as_me:7982: $lt_compile\"" >&5) 8089 7983 (eval "$lt_compile" 2>conftest.err) 8090 7984 ac_status=$? 8091 7985 cat conftest.err >&5 8092 echo "$as_me: 8092: \$? = $ac_status" >&57986 echo "$as_me:7986: \$? = $ac_status" >&5 8093 7987 if (exit $ac_status) && test -s "$ac_outfile"; then 8094 7988 # The compiler can only warn and ignore the option if not recognized … … 8190 8084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8191 8085 -e 's:$: $lt_compiler_flag:'` 8192 (eval echo "\"\$as_me:8 192: $lt_compile\"" >&5)8086 (eval echo "\"\$as_me:8086: $lt_compile\"" >&5) 8193 8087 (eval "$lt_compile" 2>out/conftest.err) 8194 8088 ac_status=$? 8195 8089 cat out/conftest.err >&5 8196 echo "$as_me:8 196: \$? = $ac_status" >&58090 echo "$as_me:8090: \$? = $ac_status" >&5 8197 8091 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8198 8092 then … … 10535 10429 lt_status=$lt_dlunknown 10536 10430 cat > conftest.$ac_ext <<EOF 10537 #line 10 537"configure"10431 #line 10431 "configure" 10538 10432 #include "confdefs.h" 10539 10433 … … 10635 10529 lt_status=$lt_dlunknown 10636 10530 cat > conftest.$ac_ext <<EOF 10637 #line 10 637"configure"10531 #line 10531 "configure" 10638 10532 #include "confdefs.h" 10639 10533 … … 12979 12873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12980 12874 -e 's:$: $lt_compiler_flag:'` 12981 (eval echo "\"\$as_me:12 981: $lt_compile\"" >&5)12875 (eval echo "\"\$as_me:12875: $lt_compile\"" >&5) 12982 12876 (eval "$lt_compile" 2>conftest.err) 12983 12877 ac_status=$? 12984 12878 cat conftest.err >&5 12985 echo "$as_me:12 985: \$? = $ac_status" >&512879 echo "$as_me:12879: \$? = $ac_status" >&5 12986 12880 if (exit $ac_status) && test -s "$ac_outfile"; then 12987 12881 # The compiler can only warn and ignore the option if not recognized … … 13083 12977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13084 12978 -e 's:$: $lt_compiler_flag:'` 13085 (eval echo "\"\$as_me:1 3085: $lt_compile\"" >&5)12979 (eval echo "\"\$as_me:12979: $lt_compile\"" >&5) 13086 12980 (eval "$lt_compile" 2>out/conftest.err) 13087 12981 ac_status=$? 13088 12982 cat out/conftest.err >&5 13089 echo "$as_me:1 3089: \$? = $ac_status" >&512983 echo "$as_me:12983: \$? = $ac_status" >&5 13090 12984 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13091 12985 then … … 14653 14547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14654 14548 -e 's:$: $lt_compiler_flag:'` 14655 (eval echo "\"\$as_me:14 655: $lt_compile\"" >&5)14549 (eval echo "\"\$as_me:14549: $lt_compile\"" >&5) 14656 14550 (eval "$lt_compile" 2>conftest.err) 14657 14551 ac_status=$? 14658 14552 cat conftest.err >&5 14659 echo "$as_me:14 659: \$? = $ac_status" >&514553 echo "$as_me:14553: \$? = $ac_status" >&5 14660 14554 if (exit $ac_status) && test -s "$ac_outfile"; then 14661 14555 # The compiler can only warn and ignore the option if not recognized … … 14757 14651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14758 14652 -e 's:$: $lt_compiler_flag:'` 14759 (eval echo "\"\$as_me:14 759: $lt_compile\"" >&5)14653 (eval echo "\"\$as_me:14653: $lt_compile\"" >&5) 14760 14654 (eval "$lt_compile" 2>out/conftest.err) 14761 14655 ac_status=$? 14762 14656 cat out/conftest.err >&5 14763 echo "$as_me:14 763: \$? = $ac_status" >&514657 echo "$as_me:14657: \$? = $ac_status" >&5 14764 14658 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14765 14659 then … … 16964 16858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16965 16859 -e 's:$: $lt_compiler_flag:'` 16966 (eval echo "\"\$as_me:16 966: $lt_compile\"" >&5)16860 (eval echo "\"\$as_me:16860: $lt_compile\"" >&5) 16967 16861 (eval "$lt_compile" 2>conftest.err) 16968 16862 ac_status=$? 16969 16863 cat conftest.err >&5 16970 echo "$as_me:16 970: \$? = $ac_status" >&516864 echo "$as_me:16864: \$? = $ac_status" >&5 16971 16865 if (exit $ac_status) && test -s "$ac_outfile"; then 16972 16866 # The compiler can only warn and ignore the option if not recognized … … 17232 17126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17233 17127 -e 's:$: $lt_compiler_flag:'` 17234 (eval echo "\"\$as_me:17 234: $lt_compile\"" >&5)17128 (eval echo "\"\$as_me:17128: $lt_compile\"" >&5) 17235 17129 (eval "$lt_compile" 2>conftest.err) 17236 17130 ac_status=$? 17237 17131 cat conftest.err >&5 17238 echo "$as_me:17 238: \$? = $ac_status" >&517132 echo "$as_me:17132: \$? = $ac_status" >&5 17239 17133 if (exit $ac_status) && test -s "$ac_outfile"; then 17240 17134 # The compiler can only warn and ignore the option if not recognized … … 17336 17230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17337 17231 -e 's:$: $lt_compiler_flag:'` 17338 (eval echo "\"\$as_me:17 338: $lt_compile\"" >&5)17232 (eval echo "\"\$as_me:17232: $lt_compile\"" >&5) 17339 17233 (eval "$lt_compile" 2>out/conftest.err) 17340 17234 ac_status=$? 17341 17235 cat out/conftest.err >&5 17342 echo "$as_me:17 342: \$? = $ac_status" >&517236 echo "$as_me:17236: \$? = $ac_status" >&5 17343 17237 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17344 17238 then
Note: See TracChangeset
for help on using the changeset viewer.