Changeset 2664 for ThirdParty/Lapack/trunk
- Timestamp:
- Dec 1, 2012 1:38:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Lapack/trunk/configure
r2649 r2664 1087 1087 icl/link). Default when mentioned: mingw. Default 1088 1088 when not mentioned: disabled. 1089 --enable-static-standardlibs 1090 whether to link against static standard libraries 1091 (libgcc, libgfortran, libstdc++) 1089 1092 --disable-pkg-config disable use of pkg-config (if available) 1090 1093 --disable-interpackage-dependencies … … 1941 1944 1942 1945 1946 # check whether to add flags for static linking against standard libraries 1947 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given. 1948 if test "${enable_static_standardlibs+set}" = set; then 1949 enableval="$enable_static_standardlibs" 1950 case "$enableval" in 1951 no | yes | auto ) ;; 1952 *) 1953 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5 1954 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;} 1955 { (exit 1); exit 1; }; } ;; 1956 esac 1957 use_static_standardlibs=$enableval 1958 else 1959 if test $enable_shared = yes ; then 1960 use_static_standardlibs = no 1961 else 1962 use_static_standardlibs = auto 1963 fi 1964 1965 1966 fi; 1967 1968 1969 1970 1971 1943 1972 1944 1973 ac_ext=c … … 3064 3093 CFLAGS="$OPT_CFLAGS" 3065 3094 fi 3095 3066 3096 else 3067 3097 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3232 3262 esac 3233 3263 3264 # check whether to add flags for static linking against standard libraries to LDFLAGS 3265 if test x$use_static_standardlibs != xno ; then 3266 case $build in 3267 *-mingw*) 3268 static_standardlib_flag=-static 3269 ;; 3270 *) 3271 static_standardlib_flag=-static-libgcc 3272 ;; 3273 esac 3274 case " $LDFLAGS " in 3275 *" $static_standardlib_flag "* ) ;; 3276 *) 3277 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5 3278 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6 3279 coin_save_LDFLAGS="$LDFLAGS" 3280 LDFLAGS="$LDFLAGS $static_standardlib_flag" 3281 cat >conftest.$ac_ext <<_ACEOF 3282 /* confdefs.h. */ 3283 _ACEOF 3284 cat confdefs.h >>conftest.$ac_ext 3285 cat >>conftest.$ac_ext <<_ACEOF 3286 /* end confdefs.h. */ 3287 3288 int 3289 main () 3290 { 3291 int i=0; 3292 ; 3293 return 0; 3294 } 3295 _ACEOF 3296 rm -f conftest.$ac_objext conftest$ac_exeext 3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3298 (eval $ac_link) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } && 3305 { ac_try='test -z "$ac_c_werror_flag" 3306 || test ! -s conftest.err' 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; } && 3312 { ac_try='test -s conftest$ac_exeext' 3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3314 (eval $ac_try) 2>&5 3315 ac_status=$? 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); }; }; then 3318 echo "$as_me:$LINENO: result: yes" >&5 3319 echo "${ECHO_T}yes" >&6 3320 else 3321 echo "$as_me: failed program was:" >&5 3322 sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 echo "$as_me:$LINENO: result: no" >&5 3325 echo "${ECHO_T}no" >&6 3326 LDFLAGS="$coin_save_LDFLAGS" 3327 if test $use_static_standardlibs = yes ; then 3328 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5 3329 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;} 3330 { (exit 1); exit 1; }; } 3331 fi 3332 3333 fi 3334 rm -f conftest.err conftest.$ac_objext \ 3335 conftest$ac_exeext conftest.$ac_ext 3336 ;; 3337 esac 3338 fi 3339 3234 3340 ac_ext=c 3235 3341 ac_cpp='$CPP $CPPFLAGS' … … 3252 3358 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3253 3359 esac 3360 3254 3361 3255 3362 … … 3467 3574 3468 3575 # Provide some information about the compiler. 3469 echo "$as_me:3 469:" \3576 echo "$as_me:3576:" \ 3470 3577 "checking for Fortran 77 compiler version" >&5 3471 3578 ac_compiler=`set X $ac_compile; echo $2` … … 3834 3941 FFLAGS="$OPT_FFLAGS" 3835 3942 fi 3943 3836 3944 else 3837 3945 FFLAGS="$FFLAGS $ADD_FFLAGS" … … 3976 4084 esac 3977 4085 4086 # check whether to add flag for static linking against standard libraries to LDFLAGS 4087 if test x$use_static_standardlibs != xno ; then 4088 case $build in 4089 *-mingw*) 4090 static_standardlib_flag=-static 4091 ;; 4092 *) 4093 static_standardlib_flag=-static-libgfortran 4094 ;; 4095 esac 4096 case " $LDFLAGS " in 4097 *" $static_standardlib_flag "* ) ;; 4098 *) 4099 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5 4100 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6 4101 coin_save_LDFLAGS="$LDFLAGS" 4102 LDFLAGS="$LDFLAGS $static_standardlib_flag" 4103 cat >conftest.$ac_ext <<_ACEOF 4104 program main 4105 integer i 4106 end 4107 _ACEOF 4108 rm -f conftest.$ac_objext conftest$ac_exeext 4109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4110 (eval $ac_link) 2>conftest.er1 4111 ac_status=$? 4112 grep -v '^ *+' conftest.er1 >conftest.err 4113 rm -f conftest.er1 4114 cat conftest.err >&5 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4116 (exit $ac_status); } && 4117 { ac_try='test -z "$ac_f77_werror_flag" 4118 || test ! -s conftest.err' 4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4120 (eval $ac_try) 2>&5 4121 ac_status=$? 4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); }; } && 4124 { ac_try='test -s conftest$ac_exeext' 4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4126 (eval $ac_try) 2>&5 4127 ac_status=$? 4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4129 (exit $ac_status); }; }; then 4130 echo "$as_me:$LINENO: result: yes" >&5 4131 echo "${ECHO_T}yes" >&6 4132 else 4133 echo "$as_me: failed program was:" >&5 4134 sed 's/^/| /' conftest.$ac_ext >&5 4135 4136 echo "$as_me:$LINENO: result: no" >&5 4137 echo "${ECHO_T}no" >&6 4138 LDFLAGS="$coin_save_LDFLAGS" 4139 if test $use_static_standardlibs = yes ; then 4140 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5 4141 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;} 4142 { (exit 1); exit 1; }; } 4143 fi 4144 4145 fi 4146 rm -f conftest.err conftest.$ac_objext \ 4147 conftest$ac_exeext conftest.$ac_ext 4148 ;; 4149 esac 4150 fi 4151 3978 4152 ac_ext=c 3979 4153 ac_cpp='$CPP $CPPFLAGS' … … 4038 4212 ac_save_FFLAGS=$FFLAGS 4039 4213 FFLAGS="$FFLAGS $ac_verb" 4040 (eval echo $as_me:4 040: \"$ac_link\") >&54214 (eval echo $as_me:4214: \"$ac_link\") >&5 4041 4215 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4042 4216 echo "$ac_f77_v_output" >&5 … … 4116 4290 ac_save_FFLAGS=$FFLAGS 4117 4291 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 4118 (eval echo $as_me:4 118: \"$ac_link\") >&54292 (eval echo $as_me:4292: \"$ac_link\") >&5 4119 4293 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4120 4294 echo "$ac_f77_v_output" >&5 … … 10119 10293 *-*-irix6*) 10120 10294 # Find out which ABI we are using. 10121 echo '#line 10 121"configure"' > conftest.$ac_ext10295 echo '#line 10295 "configure"' > conftest.$ac_ext 10122 10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10123 10297 (eval $ac_compile) 2>&5 … … 12596 12770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12597 12771 -e 's:$: $lt_compiler_flag:'` 12598 (eval echo "\"\$as_me:12 598: $lt_compile\"" >&5)12772 (eval echo "\"\$as_me:12772: $lt_compile\"" >&5) 12599 12773 (eval "$lt_compile" 2>conftest.err) 12600 12774 ac_status=$? 12601 12775 cat conftest.err >&5 12602 echo "$as_me:12 602: \$? = $ac_status" >&512776 echo "$as_me:12776: \$? = $ac_status" >&5 12603 12777 if (exit $ac_status) && test -s "$ac_outfile"; then 12604 12778 # The compiler can only warn and ignore the option if not recognized … … 12864 13038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12865 13039 -e 's:$: $lt_compiler_flag:'` 12866 (eval echo "\"\$as_me:1 2866: $lt_compile\"" >&5)13040 (eval echo "\"\$as_me:13040: $lt_compile\"" >&5) 12867 13041 (eval "$lt_compile" 2>conftest.err) 12868 13042 ac_status=$? 12869 13043 cat conftest.err >&5 12870 echo "$as_me:1 2870: \$? = $ac_status" >&513044 echo "$as_me:13044: \$? = $ac_status" >&5 12871 13045 if (exit $ac_status) && test -s "$ac_outfile"; then 12872 13046 # The compiler can only warn and ignore the option if not recognized … … 12968 13142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12969 13143 -e 's:$: $lt_compiler_flag:'` 12970 (eval echo "\"\$as_me:1 2970: $lt_compile\"" >&5)13144 (eval echo "\"\$as_me:13144: $lt_compile\"" >&5) 12971 13145 (eval "$lt_compile" 2>out/conftest.err) 12972 13146 ac_status=$? 12973 13147 cat out/conftest.err >&5 12974 echo "$as_me:1 2974: \$? = $ac_status" >&513148 echo "$as_me:13148: \$? = $ac_status" >&5 12975 13149 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12976 13150 then … … 15385 15559 lt_status=$lt_dlunknown 15386 15560 cat > conftest.$ac_ext <<EOF 15387 #line 15 387"configure"15561 #line 15561 "configure" 15388 15562 #include "confdefs.h" 15389 15563 … … 15485 15659 lt_status=$lt_dlunknown 15486 15660 cat > conftest.$ac_ext <<EOF 15487 #line 15 487"configure"15661 #line 15661 "configure" 15488 15662 #include "confdefs.h" 15489 15663 … … 17845 18019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17846 18020 -e 's:$: $lt_compiler_flag:'` 17847 (eval echo "\"\$as_me:1 7847: $lt_compile\"" >&5)18021 (eval echo "\"\$as_me:18021: $lt_compile\"" >&5) 17848 18022 (eval "$lt_compile" 2>conftest.err) 17849 18023 ac_status=$? 17850 18024 cat conftest.err >&5 17851 echo "$as_me:1 7851: \$? = $ac_status" >&518025 echo "$as_me:18025: \$? = $ac_status" >&5 17852 18026 if (exit $ac_status) && test -s "$ac_outfile"; then 17853 18027 # The compiler can only warn and ignore the option if not recognized … … 17949 18123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17950 18124 -e 's:$: $lt_compiler_flag:'` 17951 (eval echo "\"\$as_me:1 7951: $lt_compile\"" >&5)18125 (eval echo "\"\$as_me:18125: $lt_compile\"" >&5) 17952 18126 (eval "$lt_compile" 2>out/conftest.err) 17953 18127 ac_status=$? 17954 18128 cat out/conftest.err >&5 17955 echo "$as_me:1 7955: \$? = $ac_status" >&518129 echo "$as_me:18129: \$? = $ac_status" >&5 17956 18130 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17957 18131 then … … 19519 19693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19520 19694 -e 's:$: $lt_compiler_flag:'` 19521 (eval echo "\"\$as_me:19 521: $lt_compile\"" >&5)19695 (eval echo "\"\$as_me:19695: $lt_compile\"" >&5) 19522 19696 (eval "$lt_compile" 2>conftest.err) 19523 19697 ac_status=$? 19524 19698 cat conftest.err >&5 19525 echo "$as_me:19 525: \$? = $ac_status" >&519699 echo "$as_me:19699: \$? = $ac_status" >&5 19526 19700 if (exit $ac_status) && test -s "$ac_outfile"; then 19527 19701 # The compiler can only warn and ignore the option if not recognized … … 19623 19797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19624 19798 -e 's:$: $lt_compiler_flag:'` 19625 (eval echo "\"\$as_me:19 625: $lt_compile\"" >&5)19799 (eval echo "\"\$as_me:19799: $lt_compile\"" >&5) 19626 19800 (eval "$lt_compile" 2>out/conftest.err) 19627 19801 ac_status=$? 19628 19802 cat out/conftest.err >&5 19629 echo "$as_me:19 629: \$? = $ac_status" >&519803 echo "$as_me:19803: \$? = $ac_status" >&5 19630 19804 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19631 19805 then … … 21830 22004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21831 22005 -e 's:$: $lt_compiler_flag:'` 21832 (eval echo "\"\$as_me:2 1832: $lt_compile\"" >&5)22006 (eval echo "\"\$as_me:22006: $lt_compile\"" >&5) 21833 22007 (eval "$lt_compile" 2>conftest.err) 21834 22008 ac_status=$? 21835 22009 cat conftest.err >&5 21836 echo "$as_me:2 1836: \$? = $ac_status" >&522010 echo "$as_me:22010: \$? = $ac_status" >&5 21837 22011 if (exit $ac_status) && test -s "$ac_outfile"; then 21838 22012 # The compiler can only warn and ignore the option if not recognized … … 22098 22272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22099 22273 -e 's:$: $lt_compiler_flag:'` 22100 (eval echo "\"\$as_me:22 100: $lt_compile\"" >&5)22274 (eval echo "\"\$as_me:22274: $lt_compile\"" >&5) 22101 22275 (eval "$lt_compile" 2>conftest.err) 22102 22276 ac_status=$? 22103 22277 cat conftest.err >&5 22104 echo "$as_me:22 104: \$? = $ac_status" >&522278 echo "$as_me:22278: \$? = $ac_status" >&5 22105 22279 if (exit $ac_status) && test -s "$ac_outfile"; then 22106 22280 # The compiler can only warn and ignore the option if not recognized … … 22202 22376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22203 22377 -e 's:$: $lt_compiler_flag:'` 22204 (eval echo "\"\$as_me:22 204: $lt_compile\"" >&5)22378 (eval echo "\"\$as_me:22378: $lt_compile\"" >&5) 22205 22379 (eval "$lt_compile" 2>out/conftest.err) 22206 22380 ac_status=$? 22207 22381 cat out/conftest.err >&5 22208 echo "$as_me:22 208: \$? = $ac_status" >&522382 echo "$as_me:22382: \$? = $ac_status" >&5 22209 22383 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22210 22384 then
Note: See TracChangeset
for help on using the changeset viewer.