Changeset 2665
- Timestamp:
- Dec 1, 2012 1:38:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Metis/trunk/configure
r2627 r2665 1067 1067 icl/link). Default when mentioned: mingw. Default 1068 1068 when not mentioned: disabled. 1069 --enable-static-standardlibs 1070 whether to link against static standard libraries 1071 (libgcc, libgfortran, libstdc++) 1069 1072 --disable-pkg-config disable use of pkg-config (if available) 1070 1073 --enable-static[=PKGS] … … 1903 1906 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} 1904 1907 fi 1908 1909 1910 1911 # check whether to add flags for static linking against standard libraries 1912 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given. 1913 if test "${enable_static_standardlibs+set}" = set; then 1914 enableval="$enable_static_standardlibs" 1915 case "$enableval" in 1916 no | yes | auto ) ;; 1917 *) 1918 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5 1919 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;} 1920 { (exit 1); exit 1; }; } ;; 1921 esac 1922 use_static_standardlibs=$enableval 1923 else 1924 if test $enable_shared = yes ; then 1925 use_static_standardlibs = no 1926 else 1927 use_static_standardlibs = auto 1928 fi 1929 1930 1931 fi; 1932 1933 1905 1934 1906 1935 … … 3029 3058 CFLAGS="$OPT_CFLAGS" 3030 3059 fi 3060 3031 3061 else 3032 3062 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3196 3226 ;; 3197 3227 esac 3228 3229 # check whether to add flags for static linking against standard libraries to LDFLAGS 3230 if test x$use_static_standardlibs != xno ; then 3231 case $build in 3232 *-mingw*) 3233 static_standardlib_flag=-static 3234 ;; 3235 *) 3236 static_standardlib_flag=-static-libgcc 3237 ;; 3238 esac 3239 case " $LDFLAGS " in 3240 *" $static_standardlib_flag "* ) ;; 3241 *) 3242 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5 3243 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6 3244 coin_save_LDFLAGS="$LDFLAGS" 3245 LDFLAGS="$LDFLAGS $static_standardlib_flag" 3246 cat >conftest.$ac_ext <<_ACEOF 3247 /* confdefs.h. */ 3248 _ACEOF 3249 cat confdefs.h >>conftest.$ac_ext 3250 cat >>conftest.$ac_ext <<_ACEOF 3251 /* end confdefs.h. */ 3252 3253 int 3254 main () 3255 { 3256 int i=0; 3257 ; 3258 return 0; 3259 } 3260 _ACEOF 3261 rm -f conftest.$ac_objext conftest$ac_exeext 3262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3263 (eval $ac_link) 2>conftest.er1 3264 ac_status=$? 3265 grep -v '^ *+' conftest.er1 >conftest.err 3266 rm -f conftest.er1 3267 cat conftest.err >&5 3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3269 (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\"") >&5 3273 (eval $ac_try) 2>&5 3274 ac_status=$? 3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3276 (exit $ac_status); }; } && 3277 { ac_try='test -s conftest$ac_exeext' 3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3279 (eval $ac_try) 2>&5 3280 ac_status=$? 3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3282 (exit $ac_status); }; }; then 3283 echo "$as_me:$LINENO: result: yes" >&5 3284 echo "${ECHO_T}yes" >&6 3285 else 3286 echo "$as_me: failed program was:" >&5 3287 sed 's/^/| /' conftest.$ac_ext >&5 3288 3289 echo "$as_me:$LINENO: result: no" >&5 3290 echo "${ECHO_T}no" >&6 3291 LDFLAGS="$coin_save_LDFLAGS" 3292 if test $use_static_standardlibs = yes ; then 3293 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5 3294 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;} 3295 { (exit 1); exit 1; }; } 3296 fi 3297 3298 fi 3299 rm -f conftest.err conftest.$ac_objext \ 3300 conftest$ac_exeext conftest.$ac_ext 3301 ;; 3302 esac 3303 fi 3198 3304 3199 3305 ac_ext=c … … 5046 5152 *-*-irix6*) 5047 5153 # Find out which ABI we are using. 5048 echo '#line 5 048"configure"' > conftest.$ac_ext5154 echo '#line 5154 "configure"' > conftest.$ac_ext 5049 5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5050 5156 (eval $ac_compile) 2>&5 … … 6645 6751 6646 6752 # Provide some information about the compiler. 6647 echo "$as_me:6 647:" \6753 echo "$as_me:6753:" \ 6648 6754 "checking for Fortran 77 compiler version" >&5 6649 6755 ac_compiler=`set X $ac_compile; echo $2` … … 7712 7818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7713 7819 -e 's:$: $lt_compiler_flag:'` 7714 (eval echo "\"\$as_me:7 714: $lt_compile\"" >&5)7820 (eval echo "\"\$as_me:7820: $lt_compile\"" >&5) 7715 7821 (eval "$lt_compile" 2>conftest.err) 7716 7822 ac_status=$? 7717 7823 cat conftest.err >&5 7718 echo "$as_me:7 718: \$? = $ac_status" >&57824 echo "$as_me:7824: \$? = $ac_status" >&5 7719 7825 if (exit $ac_status) && test -s "$ac_outfile"; then 7720 7826 # The compiler can only warn and ignore the option if not recognized … … 7980 8086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7981 8087 -e 's:$: $lt_compiler_flag:'` 7982 (eval echo "\"\$as_me: 7982: $lt_compile\"" >&5)8088 (eval echo "\"\$as_me:8088: $lt_compile\"" >&5) 7983 8089 (eval "$lt_compile" 2>conftest.err) 7984 8090 ac_status=$? 7985 8091 cat conftest.err >&5 7986 echo "$as_me: 7986: \$? = $ac_status" >&58092 echo "$as_me:8092: \$? = $ac_status" >&5 7987 8093 if (exit $ac_status) && test -s "$ac_outfile"; then 7988 8094 # The compiler can only warn and ignore the option if not recognized … … 8084 8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8085 8191 -e 's:$: $lt_compiler_flag:'` 8086 (eval echo "\"\$as_me:8 086: $lt_compile\"" >&5)8192 (eval echo "\"\$as_me:8192: $lt_compile\"" >&5) 8087 8193 (eval "$lt_compile" 2>out/conftest.err) 8088 8194 ac_status=$? 8089 8195 cat out/conftest.err >&5 8090 echo "$as_me:8 090: \$? = $ac_status" >&58196 echo "$as_me:8196: \$? = $ac_status" >&5 8091 8197 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8092 8198 then … … 10429 10535 lt_status=$lt_dlunknown 10430 10536 cat > conftest.$ac_ext <<EOF 10431 #line 10 431"configure"10537 #line 10537 "configure" 10432 10538 #include "confdefs.h" 10433 10539 … … 10529 10635 lt_status=$lt_dlunknown 10530 10636 cat > conftest.$ac_ext <<EOF 10531 #line 10 531"configure"10637 #line 10637 "configure" 10532 10638 #include "confdefs.h" 10533 10639 … … 12873 12979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12874 12980 -e 's:$: $lt_compiler_flag:'` 12875 (eval echo "\"\$as_me:12 875: $lt_compile\"" >&5)12981 (eval echo "\"\$as_me:12981: $lt_compile\"" >&5) 12876 12982 (eval "$lt_compile" 2>conftest.err) 12877 12983 ac_status=$? 12878 12984 cat conftest.err >&5 12879 echo "$as_me:12 879: \$? = $ac_status" >&512985 echo "$as_me:12985: \$? = $ac_status" >&5 12880 12986 if (exit $ac_status) && test -s "$ac_outfile"; then 12881 12987 # The compiler can only warn and ignore the option if not recognized … … 12977 13083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12978 13084 -e 's:$: $lt_compiler_flag:'` 12979 (eval echo "\"\$as_me:1 2979: $lt_compile\"" >&5)13085 (eval echo "\"\$as_me:13085: $lt_compile\"" >&5) 12980 13086 (eval "$lt_compile" 2>out/conftest.err) 12981 13087 ac_status=$? 12982 13088 cat out/conftest.err >&5 12983 echo "$as_me:1 2983: \$? = $ac_status" >&513089 echo "$as_me:13089: \$? = $ac_status" >&5 12984 13090 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12985 13091 then … … 14547 14653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14548 14654 -e 's:$: $lt_compiler_flag:'` 14549 (eval echo "\"\$as_me:14 549: $lt_compile\"" >&5)14655 (eval echo "\"\$as_me:14655: $lt_compile\"" >&5) 14550 14656 (eval "$lt_compile" 2>conftest.err) 14551 14657 ac_status=$? 14552 14658 cat conftest.err >&5 14553 echo "$as_me:14 553: \$? = $ac_status" >&514659 echo "$as_me:14659: \$? = $ac_status" >&5 14554 14660 if (exit $ac_status) && test -s "$ac_outfile"; then 14555 14661 # The compiler can only warn and ignore the option if not recognized … … 14651 14757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14652 14758 -e 's:$: $lt_compiler_flag:'` 14653 (eval echo "\"\$as_me:14 653: $lt_compile\"" >&5)14759 (eval echo "\"\$as_me:14759: $lt_compile\"" >&5) 14654 14760 (eval "$lt_compile" 2>out/conftest.err) 14655 14761 ac_status=$? 14656 14762 cat out/conftest.err >&5 14657 echo "$as_me:14 657: \$? = $ac_status" >&514763 echo "$as_me:14763: \$? = $ac_status" >&5 14658 14764 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14659 14765 then … … 16858 16964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16859 16965 -e 's:$: $lt_compiler_flag:'` 16860 (eval echo "\"\$as_me:16 860: $lt_compile\"" >&5)16966 (eval echo "\"\$as_me:16966: $lt_compile\"" >&5) 16861 16967 (eval "$lt_compile" 2>conftest.err) 16862 16968 ac_status=$? 16863 16969 cat conftest.err >&5 16864 echo "$as_me:16 864: \$? = $ac_status" >&516970 echo "$as_me:16970: \$? = $ac_status" >&5 16865 16971 if (exit $ac_status) && test -s "$ac_outfile"; then 16866 16972 # The compiler can only warn and ignore the option if not recognized … … 17126 17232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17127 17233 -e 's:$: $lt_compiler_flag:'` 17128 (eval echo "\"\$as_me:17 128: $lt_compile\"" >&5)17234 (eval echo "\"\$as_me:17234: $lt_compile\"" >&5) 17129 17235 (eval "$lt_compile" 2>conftest.err) 17130 17236 ac_status=$? 17131 17237 cat conftest.err >&5 17132 echo "$as_me:17 132: \$? = $ac_status" >&517238 echo "$as_me:17238: \$? = $ac_status" >&5 17133 17239 if (exit $ac_status) && test -s "$ac_outfile"; then 17134 17240 # The compiler can only warn and ignore the option if not recognized … … 17230 17336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17231 17337 -e 's:$: $lt_compiler_flag:'` 17232 (eval echo "\"\$as_me:17 232: $lt_compile\"" >&5)17338 (eval echo "\"\$as_me:17338: $lt_compile\"" >&5) 17233 17339 (eval "$lt_compile" 2>out/conftest.err) 17234 17340 ac_status=$? 17235 17341 cat out/conftest.err >&5 17236 echo "$as_me:17 236: \$? = $ac_status" >&517342 echo "$as_me:17342: \$? = $ac_status" >&5 17237 17343 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17238 17344 then
Note: See TracChangeset
for help on using the changeset viewer.