Changeset 1411 for ThirdParty/Lapack/trunk/configure
- Timestamp:
- Sep 13, 2009 2:24:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Lapack/trunk/configure
r1396 r1411 473 473 #endif" 474 474 475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 DLAMCH_FFLAGS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS BLASSRCDIR BLASOBJDIR BLASDOCDIR COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE LAPACKSRCDIR LAPACKOBJDIR LAPACKDOCDIR COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 DLAMCH_FFLAGS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_BUILD_LAPACK_TRUE COIN_BUILD_LAPACK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1105 1105 --with-tags[=TAGS] 1106 1106 include additional configurations [automatic] 1107 --with-blas specify BLAS library (or BUILD for compilation) 1108 --with-lapack specify LAPACK library (or BUILD for compilation) 1107 1109 1108 1110 Some influential environment variables: … … 3298 3300 3299 3301 # Provide some information about the compiler. 3300 echo "$as_me:330 0:" \3302 echo "$as_me:3302:" \ 3301 3303 "checking for Fortran 77 compiler version" >&5 3302 3304 ac_compiler=`set X $ac_compile; echo $2` … … 5479 5481 *-*-irix6*) 5480 5482 # Find out which ABI we are using. 5481 echo '#line 548 1"configure"' > conftest.$ac_ext5483 echo '#line 5483 "configure"' > conftest.$ac_ext 5482 5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5483 5485 (eval $ac_compile) 2>&5 … … 7908 7910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7909 7911 -e 's:$: $lt_compiler_flag:'` 7910 (eval echo "\"\$as_me:791 0: $lt_compile\"" >&5)7912 (eval echo "\"\$as_me:7912: $lt_compile\"" >&5) 7911 7913 (eval "$lt_compile" 2>conftest.err) 7912 7914 ac_status=$? 7913 7915 cat conftest.err >&5 7914 echo "$as_me:791 4: \$? = $ac_status" >&57916 echo "$as_me:7916: \$? = $ac_status" >&5 7915 7917 if (exit $ac_status) && test -s "$ac_outfile"; then 7916 7918 # The compiler can only warn and ignore the option if not recognized … … 8176 8178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8177 8179 -e 's:$: $lt_compiler_flag:'` 8178 (eval echo "\"\$as_me:81 78: $lt_compile\"" >&5)8180 (eval echo "\"\$as_me:8180: $lt_compile\"" >&5) 8179 8181 (eval "$lt_compile" 2>conftest.err) 8180 8182 ac_status=$? 8181 8183 cat conftest.err >&5 8182 echo "$as_me:818 2: \$? = $ac_status" >&58184 echo "$as_me:8184: \$? = $ac_status" >&5 8183 8185 if (exit $ac_status) && test -s "$ac_outfile"; then 8184 8186 # The compiler can only warn and ignore the option if not recognized … … 8280 8282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8281 8283 -e 's:$: $lt_compiler_flag:'` 8282 (eval echo "\"\$as_me:828 2: $lt_compile\"" >&5)8284 (eval echo "\"\$as_me:8284: $lt_compile\"" >&5) 8283 8285 (eval "$lt_compile" 2>out/conftest.err) 8284 8286 ac_status=$? 8285 8287 cat out/conftest.err >&5 8286 echo "$as_me:828 6: \$? = $ac_status" >&58288 echo "$as_me:8288: \$? = $ac_status" >&5 8287 8289 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8288 8290 then … … 10625 10627 lt_status=$lt_dlunknown 10626 10628 cat > conftest.$ac_ext <<EOF 10627 #line 1062 7"configure"10629 #line 10629 "configure" 10628 10630 #include "confdefs.h" 10629 10631 … … 10725 10727 lt_status=$lt_dlunknown 10726 10728 cat > conftest.$ac_ext <<EOF 10727 #line 1072 7"configure"10729 #line 10729 "configure" 10728 10730 #include "confdefs.h" 10729 10731 … … 13069 13071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13070 13072 -e 's:$: $lt_compiler_flag:'` 13071 (eval echo "\"\$as_me:1307 1: $lt_compile\"" >&5)13073 (eval echo "\"\$as_me:13073: $lt_compile\"" >&5) 13072 13074 (eval "$lt_compile" 2>conftest.err) 13073 13075 ac_status=$? 13074 13076 cat conftest.err >&5 13075 echo "$as_me:1307 5: \$? = $ac_status" >&513077 echo "$as_me:13077: \$? = $ac_status" >&5 13076 13078 if (exit $ac_status) && test -s "$ac_outfile"; then 13077 13079 # The compiler can only warn and ignore the option if not recognized … … 13173 13175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13174 13176 -e 's:$: $lt_compiler_flag:'` 13175 (eval echo "\"\$as_me:1317 5: $lt_compile\"" >&5)13177 (eval echo "\"\$as_me:13177: $lt_compile\"" >&5) 13176 13178 (eval "$lt_compile" 2>out/conftest.err) 13177 13179 ac_status=$? 13178 13180 cat out/conftest.err >&5 13179 echo "$as_me:131 79: \$? = $ac_status" >&513181 echo "$as_me:13181: \$? = $ac_status" >&5 13180 13182 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13181 13183 then … … 14743 14745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14744 14746 -e 's:$: $lt_compiler_flag:'` 14745 (eval echo "\"\$as_me:1474 5: $lt_compile\"" >&5)14747 (eval echo "\"\$as_me:14747: $lt_compile\"" >&5) 14746 14748 (eval "$lt_compile" 2>conftest.err) 14747 14749 ac_status=$? 14748 14750 cat conftest.err >&5 14749 echo "$as_me:147 49: \$? = $ac_status" >&514751 echo "$as_me:14751: \$? = $ac_status" >&5 14750 14752 if (exit $ac_status) && test -s "$ac_outfile"; then 14751 14753 # The compiler can only warn and ignore the option if not recognized … … 14847 14849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14848 14850 -e 's:$: $lt_compiler_flag:'` 14849 (eval echo "\"\$as_me:148 49: $lt_compile\"" >&5)14851 (eval echo "\"\$as_me:14851: $lt_compile\"" >&5) 14850 14852 (eval "$lt_compile" 2>out/conftest.err) 14851 14853 ac_status=$? 14852 14854 cat out/conftest.err >&5 14853 echo "$as_me:1485 3: \$? = $ac_status" >&514855 echo "$as_me:14855: \$? = $ac_status" >&5 14854 14856 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14855 14857 then … … 17054 17056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17055 17057 -e 's:$: $lt_compiler_flag:'` 17056 (eval echo "\"\$as_me:1705 6: $lt_compile\"" >&5)17058 (eval echo "\"\$as_me:17058: $lt_compile\"" >&5) 17057 17059 (eval "$lt_compile" 2>conftest.err) 17058 17060 ac_status=$? 17059 17061 cat conftest.err >&5 17060 echo "$as_me:1706 0: \$? = $ac_status" >&517062 echo "$as_me:17062: \$? = $ac_status" >&5 17061 17063 if (exit $ac_status) && test -s "$ac_outfile"; then 17062 17064 # The compiler can only warn and ignore the option if not recognized … … 17322 17324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17323 17325 -e 's:$: $lt_compiler_flag:'` 17324 (eval echo "\"\$as_me:1732 4: $lt_compile\"" >&5)17326 (eval echo "\"\$as_me:17326: $lt_compile\"" >&5) 17325 17327 (eval "$lt_compile" 2>conftest.err) 17326 17328 ac_status=$? 17327 17329 cat conftest.err >&5 17328 echo "$as_me:173 28: \$? = $ac_status" >&517330 echo "$as_me:17330: \$? = $ac_status" >&5 17329 17331 if (exit $ac_status) && test -s "$ac_outfile"; then 17330 17332 # The compiler can only warn and ignore the option if not recognized … … 17426 17428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17427 17429 -e 's:$: $lt_compiler_flag:'` 17428 (eval echo "\"\$as_me:174 28: $lt_compile\"" >&5)17430 (eval echo "\"\$as_me:17430: $lt_compile\"" >&5) 17429 17431 (eval "$lt_compile" 2>out/conftest.err) 17430 17432 ac_status=$? 17431 17433 cat out/conftest.err >&5 17432 echo "$as_me:1743 2: \$? = $ac_status" >&517434 echo "$as_me:17434: \$? = $ac_status" >&5 17433 17435 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17434 17436 then … … 20328 20330 } 20329 20331 20330 echo "$as_me:$LINENO: checking for COIN project Blas" >&5 20331 echo $ECHO_N "checking for COIN project Blas... $ECHO_C" >&6 20332 20333 # First check, if the sub-project is actually available (ToDo: allow 20334 # other locations) 20335 20336 coin_has_blas=unavailable 20337 if test x"$COIN_SKIP_PROJECTS" != x; then 20338 for dir in $COIN_SKIP_PROJECTS; do 20339 if test $dir = Blas; then 20340 coin_has_blas=skipping 20332 # Check if Lapack is already available on the system or provided by user 20333 #save_LIBS="$LIBS" 20334 ac_ext=f 20335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20338 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 20339 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 20340 if test "${ac_cv_prog_f77_v+set}" = set; then 20341 echo $ECHO_N "(cached) $ECHO_C" >&6 20342 else 20343 cat >conftest.$ac_ext <<_ACEOF 20344 program main 20345 20346 end 20347 _ACEOF 20348 rm -f conftest.$ac_objext 20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20350 (eval $ac_compile) 2>conftest.er1 20351 ac_status=$? 20352 grep -v '^ *+' conftest.er1 >conftest.err 20353 rm -f conftest.er1 20354 cat conftest.err >&5 20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20356 (exit $ac_status); } && 20357 { ac_try='test -z "$ac_f77_werror_flag" 20358 || test ! -s conftest.err' 20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20360 (eval $ac_try) 2>&5 20361 ac_status=$? 20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20363 (exit $ac_status); }; } && 20364 { ac_try='test -s conftest.$ac_objext' 20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20366 (eval $ac_try) 2>&5 20367 ac_status=$? 20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20369 (exit $ac_status); }; }; then 20370 ac_cv_prog_f77_v= 20371 # Try some options frequently used verbose output 20372 for ac_verb in -v -verbose --verbose -V -\#\#\#; do 20373 cat >conftest.$ac_ext <<_ACEOF 20374 program main 20375 20376 end 20377 _ACEOF 20378 20379 # Compile and link our simple test program by passing a flag (argument 20380 # 1 to this macro) to the Fortran compiler in order to get 20381 # "verbose" output that we can then parse for the Fortran linker 20382 # flags. 20383 ac_save_FFLAGS=$FFLAGS 20384 FFLAGS="$FFLAGS $ac_verb" 20385 (eval echo $as_me:20385: \"$ac_link\") >&5 20386 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 20387 echo "$ac_f77_v_output" >&5 20388 FFLAGS=$ac_save_FFLAGS 20389 20390 rm -f conftest* 20391 20392 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 20393 # /foo, /bar, and /baz are search directories for the Fortran linker. 20394 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 20395 ac_f77_v_output="`echo $ac_f77_v_output | 20396 grep 'LPATH is:' | 20397 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 20398 20399 case $ac_f77_v_output in 20400 # If we are using xlf then replace all the commas with spaces. 20401 *xlfentry*) 20402 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 20403 20404 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 20405 # $LIBS confuse us, and the libraries appear later in the output anyway). 20406 *mGLOB_options_string*) 20407 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 20408 20409 # If we are using Cray Fortran then delete quotes. 20410 # Use "\"" instead of '"' for font-lock-mode. 20411 # FIXME: a more general fix for quoted arguments with spaces? 20412 *cft90*) 20413 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 20414 esac 20415 20416 20417 # look for -l* and *.a constructs in the output 20418 for ac_arg in $ac_f77_v_output; do 20419 case $ac_arg in 20420 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 20421 ac_cv_prog_f77_v=$ac_verb 20422 break 2 ;; 20423 esac 20424 done 20425 done 20426 if test -z "$ac_cv_prog_f77_v"; then 20427 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 20428 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 20429 fi 20430 else 20431 echo "$as_me: failed program was:" >&5 20432 sed 's/^/| /' conftest.$ac_ext >&5 20433 20434 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 20435 echo "$as_me: WARNING: compilation failed" >&2;} 20436 fi 20437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20438 20439 fi 20440 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 20441 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 20442 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 20443 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 20444 if test "${ac_cv_f77_libs+set}" = set; then 20445 echo $ECHO_N "(cached) $ECHO_C" >&6 20446 else 20447 if test "x$FLIBS" != "x"; then 20448 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 20449 else 20450 20451 cat >conftest.$ac_ext <<_ACEOF 20452 program main 20453 20454 end 20455 _ACEOF 20456 20457 # Compile and link our simple test program by passing a flag (argument 20458 # 1 to this macro) to the Fortran compiler in order to get 20459 # "verbose" output that we can then parse for the Fortran linker 20460 # flags. 20461 ac_save_FFLAGS=$FFLAGS 20462 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 20463 (eval echo $as_me:20463: \"$ac_link\") >&5 20464 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 20465 echo "$ac_f77_v_output" >&5 20466 FFLAGS=$ac_save_FFLAGS 20467 20468 rm -f conftest* 20469 20470 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 20471 # /foo, /bar, and /baz are search directories for the Fortran linker. 20472 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 20473 ac_f77_v_output="`echo $ac_f77_v_output | 20474 grep 'LPATH is:' | 20475 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 20476 20477 case $ac_f77_v_output in 20478 # If we are using xlf then replace all the commas with spaces. 20479 *xlfentry*) 20480 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 20481 20482 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 20483 # $LIBS confuse us, and the libraries appear later in the output anyway). 20484 *mGLOB_options_string*) 20485 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 20486 20487 # If we are using Cray Fortran then delete quotes. 20488 # Use "\"" instead of '"' for font-lock-mode. 20489 # FIXME: a more general fix for quoted arguments with spaces? 20490 *cft90*) 20491 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 20492 esac 20493 20494 20495 20496 ac_cv_f77_libs= 20497 20498 # Save positional arguments (if any) 20499 ac_save_positional="$@" 20500 20501 set X $ac_f77_v_output 20502 while test $# != 1; do 20503 shift 20504 ac_arg=$1 20505 case $ac_arg in 20506 [\\/]*.a | ?:[\\/]*.a) 20507 ac_exists=false 20508 for ac_i in $ac_cv_f77_libs; do 20509 if test x"$ac_arg" = x"$ac_i"; then 20510 ac_exists=true 20511 break 20341 20512 fi 20342 20513 done 20343 fi 20344 20345 if test $coin_has_blas != skipping; then 20346 if test $PACKAGE_TARNAME = blas; then 20347 coin_has_blas=. 20514 20515 if test x"$ac_exists" = xtrue; then 20516 : 20517 else 20518 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20519 fi 20520 20521 ;; 20522 -bI:*) 20523 ac_exists=false 20524 for ac_i in $ac_cv_f77_libs; do 20525 if test x"$ac_arg" = x"$ac_i"; then 20526 ac_exists=true 20527 break 20528 fi 20529 done 20530 20531 if test x"$ac_exists" = xtrue; then 20532 : 20533 else 20534 if test "$ac_compiler_gnu" = yes; then 20535 for ac_link_opt in $ac_arg; do 20536 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 20537 done 20538 else 20539 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20540 fi 20541 fi 20542 20543 ;; 20544 # Ignore these flags. 20545 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) 20546 ;; 20547 -lkernel32) 20548 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20549 ;; 20550 -[LRuY]) 20551 # These flags, when seen by themselves, take an argument. 20552 # We remove the space between option and argument and re-iterate 20553 # unless we find an empty arg or a new option (starting with -) 20554 case $2 in 20555 "" | -*);; 20556 *) 20557 ac_arg="$ac_arg$2" 20558 shift; shift 20559 set X $ac_arg "$@" 20560 ;; 20561 esac 20562 ;; 20563 -YP,*) 20564 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 20565 ac_exists=false 20566 for ac_i in $ac_cv_f77_libs; do 20567 if test x"$ac_j" = x"$ac_i"; then 20568 ac_exists=true 20569 break 20570 fi 20571 done 20572 20573 if test x"$ac_exists" = xtrue; then 20574 : 20575 else 20576 ac_arg="$ac_arg $ac_j" 20577 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 20578 fi 20579 20580 done 20581 ;; 20582 -[lLR]*) 20583 ac_exists=false 20584 for ac_i in $ac_cv_f77_libs; do 20585 if test x"$ac_arg" = x"$ac_i"; then 20586 ac_exists=true 20587 break 20588 fi 20589 done 20590 20591 if test x"$ac_exists" = xtrue; then 20592 : 20593 else 20594 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20595 fi 20596 20597 ;; 20598 # Ignore everything else. 20599 esac 20600 done 20601 # restore positional arguments 20602 set X $ac_save_positional; shift 20603 20604 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 20605 # then we insist that the "run path" must be an absolute path (i.e. it 20606 # must begin with a "/"). 20607 case `(uname -sr) 2>/dev/null` in 20608 "SunOS 5"*) 20609 ac_ld_run_path=`echo $ac_f77_v_output | 20610 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 20611 test "x$ac_ld_run_path" != x && 20612 if test "$ac_compiler_gnu" = yes; then 20613 for ac_link_opt in $ac_ld_run_path; do 20614 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 20615 done 20616 else 20617 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 20618 fi 20619 ;; 20620 esac 20621 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 20622 20623 fi 20624 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 20625 echo "${ECHO_T}$ac_cv_f77_libs" >&6 20626 FLIBS="$ac_cv_f77_libs" 20627 20628 20629 ac_ext=c 20630 ac_cpp='$CPP $CPPFLAGS' 20631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20633 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20634 20635 ac_ext=f 20636 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20637 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20638 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20639 20640 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 20641 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 20642 if test "${ac_cv_f77_dummy_main+set}" = set; then 20643 echo $ECHO_N "(cached) $ECHO_C" >&6 20644 else 20645 ac_f77_dm_save_LIBS=$LIBS 20646 LIBS="$LIBS $FLIBS" 20647 ac_fortran_dm_var=F77_DUMMY_MAIN 20648 ac_ext=c 20649 ac_cpp='$CPP $CPPFLAGS' 20650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20652 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20653 20654 # First, try linking without a dummy main: 20655 cat >conftest.$ac_ext <<_ACEOF 20656 /* confdefs.h. */ 20657 _ACEOF 20658 cat confdefs.h >>conftest.$ac_ext 20659 cat >>conftest.$ac_ext <<_ACEOF 20660 /* end confdefs.h. */ 20661 20662 #ifdef F77_DUMMY_MAIN 20663 20664 # ifdef __cplusplus 20665 extern "C" 20666 # endif 20667 int F77_DUMMY_MAIN() { return 1; } 20668 20669 #endif 20670 int 20671 main () 20672 { 20673 20674 ; 20675 return 0; 20676 } 20677 _ACEOF 20678 rm -f conftest.$ac_objext conftest$ac_exeext 20679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20680 (eval $ac_link) 2>conftest.er1 20681 ac_status=$? 20682 grep -v '^ *+' conftest.er1 >conftest.err 20683 rm -f conftest.er1 20684 cat conftest.err >&5 20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20686 (exit $ac_status); } && 20687 { ac_try='test -z "$ac_c_werror_flag" 20688 || test ! -s conftest.err' 20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20690 (eval $ac_try) 2>&5 20691 ac_status=$? 20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20693 (exit $ac_status); }; } && 20694 { ac_try='test -s conftest$ac_exeext' 20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20696 (eval $ac_try) 2>&5 20697 ac_status=$? 20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20699 (exit $ac_status); }; }; then 20700 ac_cv_fortran_dummy_main=none 20701 else 20702 echo "$as_me: failed program was:" >&5 20703 sed 's/^/| /' conftest.$ac_ext >&5 20704 20705 ac_cv_fortran_dummy_main=unknown 20706 fi 20707 rm -f conftest.err conftest.$ac_objext \ 20708 conftest$ac_exeext conftest.$ac_ext 20709 20710 if test $ac_cv_fortran_dummy_main = unknown; then 20711 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 20712 cat >conftest.$ac_ext <<_ACEOF 20713 /* confdefs.h. */ 20714 _ACEOF 20715 cat confdefs.h >>conftest.$ac_ext 20716 cat >>conftest.$ac_ext <<_ACEOF 20717 /* end confdefs.h. */ 20718 #define $ac_fortran_dm_var $ac_func 20719 #ifdef F77_DUMMY_MAIN 20720 20721 # ifdef __cplusplus 20722 extern "C" 20723 # endif 20724 int F77_DUMMY_MAIN() { return 1; } 20725 20726 #endif 20727 int 20728 main () 20729 { 20730 20731 ; 20732 return 0; 20733 } 20734 _ACEOF 20735 rm -f conftest.$ac_objext conftest$ac_exeext 20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20737 (eval $ac_link) 2>conftest.er1 20738 ac_status=$? 20739 grep -v '^ *+' conftest.er1 >conftest.err 20740 rm -f conftest.er1 20741 cat conftest.err >&5 20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20743 (exit $ac_status); } && 20744 { ac_try='test -z "$ac_c_werror_flag" 20745 || test ! -s conftest.err' 20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20747 (eval $ac_try) 2>&5 20748 ac_status=$? 20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20750 (exit $ac_status); }; } && 20751 { ac_try='test -s conftest$ac_exeext' 20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20753 (eval $ac_try) 2>&5 20754 ac_status=$? 20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20756 (exit $ac_status); }; }; then 20757 ac_cv_fortran_dummy_main=$ac_func; break 20758 else 20759 echo "$as_me: failed program was:" >&5 20760 sed 's/^/| /' conftest.$ac_ext >&5 20761 20762 fi 20763 rm -f conftest.err conftest.$ac_objext \ 20764 conftest$ac_exeext conftest.$ac_ext 20765 done 20766 fi 20767 ac_ext=f 20768 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20769 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20770 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20771 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 20772 rm -f conftest* 20773 LIBS=$ac_f77_dm_save_LIBS 20774 20775 fi 20776 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 20777 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 20778 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 20779 if test "$F77_DUMMY_MAIN" != unknown; then 20780 if test $F77_DUMMY_MAIN != none; then 20781 20782 cat >>confdefs.h <<_ACEOF 20783 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN 20784 _ACEOF 20785 20786 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 20787 20788 cat >>confdefs.h <<\_ACEOF 20789 #define FC_DUMMY_MAIN_EQ_F77 1 20790 _ACEOF 20791 20792 fi 20793 fi 20794 else 20795 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails 20796 See \`config.log' for more details." >&5 20797 echo "$as_me: error: linking to Fortran libraries from C fails 20798 See \`config.log' for more details." >&2;} 20799 { (exit 1); exit 1; }; } 20800 fi 20801 20802 20803 ac_ext=c 20804 ac_cpp='$CPP $CPPFLAGS' 20805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20807 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20808 20809 ac_ext=f 20810 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20811 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20812 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20813 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 20814 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 20815 if test "${ac_cv_f77_mangling+set}" = set; then 20816 echo $ECHO_N "(cached) $ECHO_C" >&6 20817 else 20818 cat >conftest.$ac_ext <<_ACEOF 20819 subroutine foobar() 20820 return 20821 end 20822 subroutine foo_bar() 20823 return 20824 end 20825 _ACEOF 20826 rm -f conftest.$ac_objext 20827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20828 (eval $ac_compile) 2>conftest.er1 20829 ac_status=$? 20830 grep -v '^ *+' conftest.er1 >conftest.err 20831 rm -f conftest.er1 20832 cat conftest.err >&5 20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20834 (exit $ac_status); } && 20835 { ac_try='test -z "$ac_f77_werror_flag" 20836 || test ! -s conftest.err' 20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20838 (eval $ac_try) 2>&5 20839 ac_status=$? 20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20841 (exit $ac_status); }; } && 20842 { ac_try='test -s conftest.$ac_objext' 20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20844 (eval $ac_try) 2>&5 20845 ac_status=$? 20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20847 (exit $ac_status); }; }; then 20848 mv conftest.$ac_objext cfortran_test.$ac_objext 20849 20850 ac_save_LIBS=$LIBS 20851 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 20852 20853 ac_ext=c 20854 ac_cpp='$CPP $CPPFLAGS' 20855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20857 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20858 ac_success=no 20859 for ac_foobar in foobar FOOBAR; do 20860 for ac_underscore in "" "_"; do 20861 ac_func="$ac_foobar$ac_underscore" 20862 cat >conftest.$ac_ext <<_ACEOF 20863 /* confdefs.h. */ 20864 _ACEOF 20865 cat confdefs.h >>conftest.$ac_ext 20866 cat >>conftest.$ac_ext <<_ACEOF 20867 /* end confdefs.h. */ 20868 20869 /* Override any gcc2 internal prototype to avoid an error. */ 20870 #ifdef __cplusplus 20871 extern "C" 20872 #endif 20873 /* We use char because int might match the return type of a gcc2 20874 builtin and then its argument prototype would still apply. */ 20875 char $ac_func (); 20876 #ifdef F77_DUMMY_MAIN 20877 20878 # ifdef __cplusplus 20879 extern "C" 20880 # endif 20881 int F77_DUMMY_MAIN() { return 1; } 20882 20883 #endif 20884 int 20885 main () 20886 { 20887 $ac_func (); 20888 ; 20889 return 0; 20890 } 20891 _ACEOF 20892 rm -f conftest.$ac_objext conftest$ac_exeext 20893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20894 (eval $ac_link) 2>conftest.er1 20895 ac_status=$? 20896 grep -v '^ *+' conftest.er1 >conftest.err 20897 rm -f conftest.er1 20898 cat conftest.err >&5 20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20900 (exit $ac_status); } && 20901 { ac_try='test -z "$ac_c_werror_flag" 20902 || test ! -s conftest.err' 20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20904 (eval $ac_try) 2>&5 20905 ac_status=$? 20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20907 (exit $ac_status); }; } && 20908 { ac_try='test -s conftest$ac_exeext' 20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20910 (eval $ac_try) 2>&5 20911 ac_status=$? 20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20913 (exit $ac_status); }; }; then 20914 ac_success=yes; break 2 20915 else 20916 echo "$as_me: failed program was:" >&5 20917 sed 's/^/| /' conftest.$ac_ext >&5 20918 20919 fi 20920 rm -f conftest.err conftest.$ac_objext \ 20921 conftest$ac_exeext conftest.$ac_ext 20922 done 20923 done 20924 ac_ext=f 20925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20928 20929 if test "$ac_success" = "yes"; then 20930 case $ac_foobar in 20931 foobar) 20932 ac_case=lower 20933 ac_foo_bar=foo_bar 20934 ;; 20935 FOOBAR) 20936 ac_case=upper 20937 ac_foo_bar=FOO_BAR 20938 ;; 20939 esac 20940 20941 ac_ext=c 20942 ac_cpp='$CPP $CPPFLAGS' 20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20946 ac_success_extra=no 20947 for ac_extra in "" "_"; do 20948 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 20949 cat >conftest.$ac_ext <<_ACEOF 20950 /* confdefs.h. */ 20951 _ACEOF 20952 cat confdefs.h >>conftest.$ac_ext 20953 cat >>conftest.$ac_ext <<_ACEOF 20954 /* end confdefs.h. */ 20955 20956 /* Override any gcc2 internal prototype to avoid an error. */ 20957 #ifdef __cplusplus 20958 extern "C" 20959 #endif 20960 /* We use char because int might match the return type of a gcc2 20961 builtin and then its argument prototype would still apply. */ 20962 char $ac_func (); 20963 #ifdef F77_DUMMY_MAIN 20964 20965 # ifdef __cplusplus 20966 extern "C" 20967 # endif 20968 int F77_DUMMY_MAIN() { return 1; } 20969 20970 #endif 20971 int 20972 main () 20973 { 20974 $ac_func (); 20975 ; 20976 return 0; 20977 } 20978 _ACEOF 20979 rm -f conftest.$ac_objext conftest$ac_exeext 20980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20981 (eval $ac_link) 2>conftest.er1 20982 ac_status=$? 20983 grep -v '^ *+' conftest.er1 >conftest.err 20984 rm -f conftest.er1 20985 cat conftest.err >&5 20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20987 (exit $ac_status); } && 20988 { ac_try='test -z "$ac_c_werror_flag" 20989 || test ! -s conftest.err' 20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20991 (eval $ac_try) 2>&5 20992 ac_status=$? 20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20994 (exit $ac_status); }; } && 20995 { ac_try='test -s conftest$ac_exeext' 20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20997 (eval $ac_try) 2>&5 20998 ac_status=$? 20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21000 (exit $ac_status); }; }; then 21001 ac_success_extra=yes; break 21002 else 21003 echo "$as_me: failed program was:" >&5 21004 sed 's/^/| /' conftest.$ac_ext >&5 21005 21006 fi 21007 rm -f conftest.err conftest.$ac_objext \ 21008 conftest$ac_exeext conftest.$ac_ext 21009 done 21010 ac_ext=f 21011 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21012 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21013 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21014 21015 if test "$ac_success_extra" = "yes"; then 21016 ac_cv_f77_mangling="$ac_case case" 21017 if test -z "$ac_underscore"; then 21018 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 21019 else 21020 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 21021 fi 21022 if test -z "$ac_extra"; then 21023 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 21024 else 21025 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 21026 fi 21027 else 21028 ac_cv_f77_mangling="unknown" 21029 fi 20348 21030 else 20349 if test -d $srcdir/../Blas; then 20350 coin_has_blas=../Blas 21031 ac_cv_f77_mangling="unknown" 21032 fi 21033 21034 LIBS=$ac_save_LIBS 21035 rm -f cfortran_test* conftest* 21036 else 21037 echo "$as_me: failed program was:" >&5 21038 sed 's/^/| /' conftest.$ac_ext >&5 21039 21040 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program 21041 See \`config.log' for more details." >&5 21042 echo "$as_me: error: cannot compile a simple Fortran program 21043 See \`config.log' for more details." >&2;} 21044 { (exit 1); exit 1; }; } 21045 fi 21046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21047 21048 fi 21049 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 21050 echo "${ECHO_T}$ac_cv_f77_mangling" >&6 21051 21052 ac_ext=c 21053 ac_cpp='$CPP $CPPFLAGS' 21054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21056 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21057 21058 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then 21059 coin_blasobjdir=../Blas 21060 else 21061 coin_blasobjdir=../ThirdParty/Blas 21062 fi 21063 coin_blassrcdir=$srcdir/$coin_blasobjdir 21064 21065 21066 # Check whether --with-blas or --without-blas was given. 21067 if test "${with_blas+set}" = set; then 21068 withval="$with_blas" 21069 use_blas=$withval 21070 else 21071 use_blas= 21072 fi; 21073 21074 MAKEOKFILE=.MakeOk 21075 # Check if user supplied option makes sense 21076 if test x"$use_blas" != x; then 21077 if test "$use_blas" = "BUILD"; then 21078 # Don't check for course code if this is executed in ThirdParty/Blas 21079 if test "$PACKAGE_NAME" != ThirdPartyBlas; then 21080 if test -r $coin_blasobjdir/.MakeOk; then :; else 21081 { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5 21082 echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;} 21083 { (exit 1); exit 1; }; } 21084 fi 21085 fi 21086 elif test "$use_blas" != no ; then 21087 echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5 21088 echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6 21089 LIBS="$use_blas $LIBS" 21090 ADDLIBS="$use_blas $ADDLIBS" 21091 case $ac_ext in 21092 f) 21093 cat >conftest.$ac_ext <<_ACEOF 21094 /* confdefs.h. */ 21095 _ACEOF 21096 cat confdefs.h >>conftest.$ac_ext 21097 cat >>conftest.$ac_ext <<_ACEOF 21098 /* end confdefs.h. */ 21099 21100 int 21101 main () 21102 { 21103 call daxpy 21104 ; 21105 return 0; 21106 } 21107 _ACEOF 21108 rm -f conftest.$ac_objext conftest$ac_exeext 21109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21110 (eval $ac_link) 2>conftest.er1 21111 ac_status=$? 21112 grep -v '^ *+' conftest.er1 >conftest.err 21113 rm -f conftest.er1 21114 cat conftest.err >&5 21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21116 (exit $ac_status); } && 21117 { ac_try='test -z "$ac_c_werror_flag" 21118 || test ! -s conftest.err' 21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21120 (eval $ac_try) 2>&5 21121 ac_status=$? 21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21123 (exit $ac_status); }; } && 21124 { ac_try='test -s conftest$ac_exeext' 21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21126 (eval $ac_try) 2>&5 21127 ac_status=$? 21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21129 (exit $ac_status); }; }; then 21130 echo "$as_me:$LINENO: result: yes" >&5 21131 echo "${ECHO_T}yes" >&6 21132 else 21133 echo "$as_me: failed program was:" >&5 21134 sed 's/^/| /' conftest.$ac_ext >&5 21135 21136 echo "$as_me:$LINENO: result: no" >&5 21137 echo "${ECHO_T}no" >&6 21138 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21139 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21140 { (exit 1); exit 1; }; } 21141 fi 21142 rm -f conftest.err conftest.$ac_objext \ 21143 conftest$ac_exeext conftest.$ac_ext 21144 ;; 21145 c) 21146 ac_ext=f 21147 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21148 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21149 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21150 case $ac_cv_f77_mangling in 21151 upper*) ac_val="DAXPY" ;; 21152 lower*) ac_val="daxpy" ;; 21153 *) ac_val="unknown" ;; 21154 esac 21155 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21156 21157 cfuncdaxpy="$ac_val" 21158 21159 ac_ext=c 21160 ac_cpp='$CPP $CPPFLAGS' 21161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21163 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21164 21165 if test x"$coin_need_flibs" = xyes; then 21166 flink_try=no; 21167 else 21168 cat >conftest.$ac_ext <<_ACEOF 21169 /* confdefs.h. */ 21170 _ACEOF 21171 cat confdefs.h >>conftest.$ac_ext 21172 cat >>conftest.$ac_ext <<_ACEOF 21173 /* end confdefs.h. */ 21174 void $cfuncdaxpy(); 21175 #ifdef F77_DUMMY_MAIN 21176 21177 # ifdef __cplusplus 21178 extern "C" 21179 # endif 21180 int F77_DUMMY_MAIN() { return 1; } 21181 21182 #endif 21183 int 21184 main () 21185 { 21186 $cfuncdaxpy() 21187 ; 21188 return 0; 21189 } 21190 _ACEOF 21191 rm -f conftest.$ac_objext conftest$ac_exeext 21192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21193 (eval $ac_link) 2>conftest.er1 21194 ac_status=$? 21195 grep -v '^ *+' conftest.er1 >conftest.err 21196 rm -f conftest.er1 21197 cat conftest.err >&5 21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21199 (exit $ac_status); } && 21200 { ac_try='test -z "$ac_c_werror_flag" 21201 || test ! -s conftest.err' 21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21203 (eval $ac_try) 2>&5 21204 ac_status=$? 21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21206 (exit $ac_status); }; } && 21207 { ac_try='test -s conftest$ac_exeext' 21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21209 (eval $ac_try) 2>&5 21210 ac_status=$? 21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21212 (exit $ac_status); }; }; then 21213 flink_try=yes 21214 else 21215 echo "$as_me: failed program was:" >&5 21216 sed 's/^/| /' conftest.$ac_ext >&5 21217 21218 flink_try=no 21219 fi 21220 rm -f conftest.err conftest.$ac_objext \ 21221 conftest$ac_exeext conftest.$ac_ext 21222 fi 21223 if test $flink_try = yes; then 21224 echo "$as_me:$LINENO: result: yes" >&5 21225 echo "${ECHO_T}yes" >&6 21226 else 21227 if test x"$FLIBS" != x; then 21228 flink_save_libs="$LIBS" 21229 LIBS="$LIBS $FLIBS" 21230 cat >conftest.$ac_ext <<_ACEOF 21231 /* confdefs.h. */ 21232 _ACEOF 21233 cat confdefs.h >>conftest.$ac_ext 21234 cat >>conftest.$ac_ext <<_ACEOF 21235 /* end confdefs.h. */ 21236 void $cfuncdaxpy(); 21237 #ifdef F77_DUMMY_MAIN 21238 21239 # ifdef __cplusplus 21240 extern "C" 21241 # endif 21242 int F77_DUMMY_MAIN() { return 1; } 21243 21244 #endif 21245 int 21246 main () 21247 { 21248 $cfuncdaxpy() 21249 ; 21250 return 0; 21251 } 21252 _ACEOF 21253 rm -f conftest.$ac_objext conftest$ac_exeext 21254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21255 (eval $ac_link) 2>conftest.er1 21256 ac_status=$? 21257 grep -v '^ *+' conftest.er1 >conftest.err 21258 rm -f conftest.er1 21259 cat conftest.err >&5 21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21261 (exit $ac_status); } && 21262 { ac_try='test -z "$ac_c_werror_flag" 21263 || test ! -s conftest.err' 21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21265 (eval $ac_try) 2>&5 21266 ac_status=$? 21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21268 (exit $ac_status); }; } && 21269 { ac_try='test -s conftest$ac_exeext' 21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21271 (eval $ac_try) 2>&5 21272 ac_status=$? 21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21274 (exit $ac_status); }; }; then 21275 LIBS="$flink_save_libs" 21276 echo "$as_me:$LINENO: result: yes" >&5 21277 echo "${ECHO_T}yes" >&6 21278 coin_need_flibs=yes 21279 else 21280 echo "$as_me: failed program was:" >&5 21281 sed 's/^/| /' conftest.$ac_ext >&5 21282 21283 LIBS="$flink_save_libs" 21284 echo "$as_me:$LINENO: result: no" >&5 21285 echo "${ECHO_T}no" >&6 21286 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21287 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21288 { (exit 1); exit 1; }; } 21289 fi 21290 rm -f conftest.err conftest.$ac_objext \ 21291 conftest$ac_exeext conftest.$ac_ext 21292 else 21293 echo "$as_me:$LINENO: result: no" >&5 21294 echo "${ECHO_T}no" >&6 21295 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21296 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21297 { (exit 1); exit 1; }; } 21298 fi 21299 fi 21300 ;; 21301 cc|cpp) 21302 ac_ext=f 21303 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21304 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21305 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21306 case $ac_cv_f77_mangling in 21307 upper*) ac_val="DAXPY" ;; 21308 lower*) ac_val="daxpy" ;; 21309 *) ac_val="unknown" ;; 21310 esac 21311 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21312 21313 cfuncdaxpy="$ac_val" 21314 21315 ac_ext=c 21316 ac_cpp='$CPP $CPPFLAGS' 21317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21319 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21320 21321 if test x"$coin_need_flibs" = xyes; then 21322 flink_try=no; 21323 else 21324 cat >conftest.$ac_ext <<_ACEOF 21325 /* confdefs.h. */ 21326 _ACEOF 21327 cat confdefs.h >>conftest.$ac_ext 21328 cat >>conftest.$ac_ext <<_ACEOF 21329 /* end confdefs.h. */ 21330 extern "C" {void $cfuncdaxpy();} 21331 #ifdef F77_DUMMY_MAIN 21332 21333 # ifdef __cplusplus 21334 extern "C" 21335 # endif 21336 int F77_DUMMY_MAIN() { return 1; } 21337 21338 #endif 21339 int 21340 main () 21341 { 21342 $cfuncdaxpy() 21343 ; 21344 return 0; 21345 } 21346 _ACEOF 21347 rm -f conftest.$ac_objext conftest$ac_exeext 21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21349 (eval $ac_link) 2>conftest.er1 21350 ac_status=$? 21351 grep -v '^ *+' conftest.er1 >conftest.err 21352 rm -f conftest.er1 21353 cat conftest.err >&5 21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21355 (exit $ac_status); } && 21356 { ac_try='test -z "$ac_c_werror_flag" 21357 || test ! -s conftest.err' 21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21359 (eval $ac_try) 2>&5 21360 ac_status=$? 21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21362 (exit $ac_status); }; } && 21363 { ac_try='test -s conftest$ac_exeext' 21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21365 (eval $ac_try) 2>&5 21366 ac_status=$? 21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21368 (exit $ac_status); }; }; then 21369 flink_try=yes 21370 else 21371 echo "$as_me: failed program was:" >&5 21372 sed 's/^/| /' conftest.$ac_ext >&5 21373 21374 flink_try=no 21375 fi 21376 rm -f conftest.err conftest.$ac_objext \ 21377 conftest$ac_exeext conftest.$ac_ext 21378 fi 21379 if test $flink_try = yes; then 21380 echo "$as_me:$LINENO: result: yes" >&5 21381 echo "${ECHO_T}yes" >&6 21382 else 21383 if test x"$FLIBS" != x; then 21384 flink_save_libs="$LIBS" 21385 LIBS="$LIBS $FLIBS" 21386 cat >conftest.$ac_ext <<_ACEOF 21387 /* confdefs.h. */ 21388 _ACEOF 21389 cat confdefs.h >>conftest.$ac_ext 21390 cat >>conftest.$ac_ext <<_ACEOF 21391 /* end confdefs.h. */ 21392 extern "C" {void $cfuncdaxpy();} 21393 #ifdef F77_DUMMY_MAIN 21394 21395 # ifdef __cplusplus 21396 extern "C" 21397 # endif 21398 int F77_DUMMY_MAIN() { return 1; } 21399 21400 #endif 21401 int 21402 main () 21403 { 21404 $cfuncdaxpy() 21405 ; 21406 return 0; 21407 } 21408 _ACEOF 21409 rm -f conftest.$ac_objext conftest$ac_exeext 21410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21411 (eval $ac_link) 2>conftest.er1 21412 ac_status=$? 21413 grep -v '^ *+' conftest.er1 >conftest.err 21414 rm -f conftest.er1 21415 cat conftest.err >&5 21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21417 (exit $ac_status); } && 21418 { ac_try='test -z "$ac_c_werror_flag" 21419 || test ! -s conftest.err' 21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21421 (eval $ac_try) 2>&5 21422 ac_status=$? 21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21424 (exit $ac_status); }; } && 21425 { ac_try='test -s conftest$ac_exeext' 21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21427 (eval $ac_try) 2>&5 21428 ac_status=$? 21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21430 (exit $ac_status); }; }; then 21431 LIBS="$flink_save_libs" 21432 echo "$as_me:$LINENO: result: yes" >&5 21433 echo "${ECHO_T}yes" >&6 21434 coin_need_flibs=yes 21435 else 21436 echo "$as_me: failed program was:" >&5 21437 sed 's/^/| /' conftest.$ac_ext >&5 21438 21439 LIBS="$flink_save_libs" 21440 echo "$as_me:$LINENO: result: no" >&5 21441 echo "${ECHO_T}no" >&6 21442 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21443 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21444 { (exit 1); exit 1; }; } 21445 fi 21446 rm -f conftest.err conftest.$ac_objext \ 21447 conftest$ac_exeext conftest.$ac_ext 21448 else 21449 echo "$as_me:$LINENO: result: no" >&5 21450 echo "${ECHO_T}no" >&6 21451 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21452 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21453 { (exit 1); exit 1; }; } 21454 fi 21455 fi 21456 ;; 21457 esac 21458 21459 fi 21460 else 21461 # Try to autodetect the library for blas based on build system 21462 #AC_MSG_CHECKING([default locations for BLAS]) 21463 skip_lblas_check=no 21464 case $build in 21465 *-sgi-*) 21466 SAVE_LIBS="$LIBS" 21467 echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5 21468 echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6 21469 LIBS="-lcomplib.sgimath $LIBS" 21470 case $ac_ext in 21471 f) 21472 cat >conftest.$ac_ext <<_ACEOF 21473 /* confdefs.h. */ 21474 _ACEOF 21475 cat confdefs.h >>conftest.$ac_ext 21476 cat >>conftest.$ac_ext <<_ACEOF 21477 /* end confdefs.h. */ 21478 21479 #ifdef F77_DUMMY_MAIN 21480 21481 # ifdef __cplusplus 21482 extern "C" 21483 # endif 21484 int F77_DUMMY_MAIN() { return 1; } 21485 21486 #endif 21487 int 21488 main () 21489 { 21490 call daxpy 21491 ; 21492 return 0; 21493 } 21494 _ACEOF 21495 rm -f conftest.$ac_objext conftest$ac_exeext 21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21497 (eval $ac_link) 2>conftest.er1 21498 ac_status=$? 21499 grep -v '^ *+' conftest.er1 >conftest.err 21500 rm -f conftest.er1 21501 cat conftest.err >&5 21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21503 (exit $ac_status); } && 21504 { ac_try='test -z "$ac_c_werror_flag" 21505 || test ! -s conftest.err' 21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21507 (eval $ac_try) 2>&5 21508 ac_status=$? 21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21510 (exit $ac_status); }; } && 21511 { ac_try='test -s conftest$ac_exeext' 21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21513 (eval $ac_try) 2>&5 21514 ac_status=$? 21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21516 (exit $ac_status); }; }; then 21517 echo "$as_me:$LINENO: result: yes" >&5 21518 echo "${ECHO_T}yes" >&6 21519 use_blas=-lcomplib.sgimath; 21520 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21521 else 21522 echo "$as_me: failed program was:" >&5 21523 sed 's/^/| /' conftest.$ac_ext >&5 21524 21525 echo "$as_me:$LINENO: result: no" >&5 21526 echo "${ECHO_T}no" >&6 21527 SAVE_LIBS="$LIBS" 21528 fi 21529 rm -f conftest.err conftest.$ac_objext \ 21530 conftest$ac_exeext conftest.$ac_ext 21531 ;; 21532 c) 21533 ac_ext=f 21534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21537 case $ac_cv_f77_mangling in 21538 upper*) ac_val="DAXPY" ;; 21539 lower*) ac_val="daxpy" ;; 21540 *) ac_val="unknown" ;; 21541 esac 21542 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21543 21544 cfuncdaxpy="$ac_val" 21545 21546 ac_ext=c 21547 ac_cpp='$CPP $CPPFLAGS' 21548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21550 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21551 21552 if test x"$coin_need_flibs" = xyes; then 21553 flink_try=no; 21554 else 21555 cat >conftest.$ac_ext <<_ACEOF 21556 /* confdefs.h. */ 21557 _ACEOF 21558 cat confdefs.h >>conftest.$ac_ext 21559 cat >>conftest.$ac_ext <<_ACEOF 21560 /* end confdefs.h. */ 21561 void $cfuncdaxpy(); 21562 #ifdef F77_DUMMY_MAIN 21563 21564 # ifdef __cplusplus 21565 extern "C" 21566 # endif 21567 int F77_DUMMY_MAIN() { return 1; } 21568 21569 #endif 21570 int 21571 main () 21572 { 21573 $cfuncdaxpy() 21574 ; 21575 return 0; 21576 } 21577 _ACEOF 21578 rm -f conftest.$ac_objext conftest$ac_exeext 21579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21580 (eval $ac_link) 2>conftest.er1 21581 ac_status=$? 21582 grep -v '^ *+' conftest.er1 >conftest.err 21583 rm -f conftest.er1 21584 cat conftest.err >&5 21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21586 (exit $ac_status); } && 21587 { ac_try='test -z "$ac_c_werror_flag" 21588 || test ! -s conftest.err' 21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21590 (eval $ac_try) 2>&5 21591 ac_status=$? 21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21593 (exit $ac_status); }; } && 21594 { ac_try='test -s conftest$ac_exeext' 21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21596 (eval $ac_try) 2>&5 21597 ac_status=$? 21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21599 (exit $ac_status); }; }; then 21600 flink_try=yes 21601 else 21602 echo "$as_me: failed program was:" >&5 21603 sed 's/^/| /' conftest.$ac_ext >&5 21604 21605 flink_try=no 21606 fi 21607 rm -f conftest.err conftest.$ac_objext \ 21608 conftest$ac_exeext conftest.$ac_ext 21609 fi 21610 if test $flink_try = yes; then 21611 echo "$as_me:$LINENO: result: yes" >&5 21612 echo "${ECHO_T}yes" >&6 21613 use_blas=-lcomplib.sgimath; 21614 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21615 else 21616 if test x"$FLIBS" != x; then 21617 flink_save_libs="$LIBS" 21618 LIBS="$LIBS $FLIBS" 21619 cat >conftest.$ac_ext <<_ACEOF 21620 /* confdefs.h. */ 21621 _ACEOF 21622 cat confdefs.h >>conftest.$ac_ext 21623 cat >>conftest.$ac_ext <<_ACEOF 21624 /* end confdefs.h. */ 21625 void $cfuncdaxpy(); 21626 #ifdef F77_DUMMY_MAIN 21627 21628 # ifdef __cplusplus 21629 extern "C" 21630 # endif 21631 int F77_DUMMY_MAIN() { return 1; } 21632 21633 #endif 21634 int 21635 main () 21636 { 21637 $cfuncdaxpy() 21638 ; 21639 return 0; 21640 } 21641 _ACEOF 21642 rm -f conftest.$ac_objext conftest$ac_exeext 21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21644 (eval $ac_link) 2>conftest.er1 21645 ac_status=$? 21646 grep -v '^ *+' conftest.er1 >conftest.err 21647 rm -f conftest.er1 21648 cat conftest.err >&5 21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21650 (exit $ac_status); } && 21651 { ac_try='test -z "$ac_c_werror_flag" 21652 || test ! -s conftest.err' 21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21654 (eval $ac_try) 2>&5 21655 ac_status=$? 21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21657 (exit $ac_status); }; } && 21658 { ac_try='test -s conftest$ac_exeext' 21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21660 (eval $ac_try) 2>&5 21661 ac_status=$? 21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21663 (exit $ac_status); }; }; then 21664 LIBS="$flink_save_libs" 21665 echo "$as_me:$LINENO: result: yes" >&5 21666 echo "${ECHO_T}yes" >&6 21667 use_blas=-lcomplib.sgimath; 21668 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21669 coin_need_flibs=yes 21670 else 21671 echo "$as_me: failed program was:" >&5 21672 sed 's/^/| /' conftest.$ac_ext >&5 21673 21674 LIBS="$flink_save_libs" 21675 echo "$as_me:$LINENO: result: no" >&5 21676 echo "${ECHO_T}no" >&6 21677 SAVE_LIBS="$LIBS" 21678 fi 21679 rm -f conftest.err conftest.$ac_objext \ 21680 conftest$ac_exeext conftest.$ac_ext 21681 else 21682 echo "$as_me:$LINENO: result: no" >&5 21683 echo "${ECHO_T}no" >&6 21684 SAVE_LIBS="$LIBS" 21685 fi 21686 fi 21687 ;; 21688 cc|cpp) 21689 ac_ext=f 21690 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21691 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21692 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21693 case $ac_cv_f77_mangling in 21694 upper*) ac_val="DAXPY" ;; 21695 lower*) ac_val="daxpy" ;; 21696 *) ac_val="unknown" ;; 21697 esac 21698 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21699 21700 cfuncdaxpy="$ac_val" 21701 21702 ac_ext=c 21703 ac_cpp='$CPP $CPPFLAGS' 21704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21706 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21707 21708 if test x"$coin_need_flibs" = xyes; then 21709 flink_try=no; 21710 else 21711 cat >conftest.$ac_ext <<_ACEOF 21712 /* confdefs.h. */ 21713 _ACEOF 21714 cat confdefs.h >>conftest.$ac_ext 21715 cat >>conftest.$ac_ext <<_ACEOF 21716 /* end confdefs.h. */ 21717 extern "C" {void $cfuncdaxpy();} 21718 #ifdef F77_DUMMY_MAIN 21719 21720 # ifdef __cplusplus 21721 extern "C" 21722 # endif 21723 int F77_DUMMY_MAIN() { return 1; } 21724 21725 #endif 21726 int 21727 main () 21728 { 21729 $cfuncdaxpy() 21730 ; 21731 return 0; 21732 } 21733 _ACEOF 21734 rm -f conftest.$ac_objext conftest$ac_exeext 21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21736 (eval $ac_link) 2>conftest.er1 21737 ac_status=$? 21738 grep -v '^ *+' conftest.er1 >conftest.err 21739 rm -f conftest.er1 21740 cat conftest.err >&5 21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21742 (exit $ac_status); } && 21743 { ac_try='test -z "$ac_c_werror_flag" 21744 || test ! -s conftest.err' 21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21746 (eval $ac_try) 2>&5 21747 ac_status=$? 21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21749 (exit $ac_status); }; } && 21750 { ac_try='test -s conftest$ac_exeext' 21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21752 (eval $ac_try) 2>&5 21753 ac_status=$? 21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21755 (exit $ac_status); }; }; then 21756 flink_try=yes 21757 else 21758 echo "$as_me: failed program was:" >&5 21759 sed 's/^/| /' conftest.$ac_ext >&5 21760 21761 flink_try=no 21762 fi 21763 rm -f conftest.err conftest.$ac_objext \ 21764 conftest$ac_exeext conftest.$ac_ext 21765 fi 21766 if test $flink_try = yes; then 21767 echo "$as_me:$LINENO: result: yes" >&5 21768 echo "${ECHO_T}yes" >&6 21769 use_blas=-lcomplib.sgimath; 21770 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21771 else 21772 if test x"$FLIBS" != x; then 21773 flink_save_libs="$LIBS" 21774 LIBS="$LIBS $FLIBS" 21775 cat >conftest.$ac_ext <<_ACEOF 21776 /* confdefs.h. */ 21777 _ACEOF 21778 cat confdefs.h >>conftest.$ac_ext 21779 cat >>conftest.$ac_ext <<_ACEOF 21780 /* end confdefs.h. */ 21781 extern "C" {void $cfuncdaxpy();} 21782 #ifdef F77_DUMMY_MAIN 21783 21784 # ifdef __cplusplus 21785 extern "C" 21786 # endif 21787 int F77_DUMMY_MAIN() { return 1; } 21788 21789 #endif 21790 int 21791 main () 21792 { 21793 $cfuncdaxpy() 21794 ; 21795 return 0; 21796 } 21797 _ACEOF 21798 rm -f conftest.$ac_objext conftest$ac_exeext 21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21800 (eval $ac_link) 2>conftest.er1 21801 ac_status=$? 21802 grep -v '^ *+' conftest.er1 >conftest.err 21803 rm -f conftest.er1 21804 cat conftest.err >&5 21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21806 (exit $ac_status); } && 21807 { ac_try='test -z "$ac_c_werror_flag" 21808 || test ! -s conftest.err' 21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21810 (eval $ac_try) 2>&5 21811 ac_status=$? 21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21813 (exit $ac_status); }; } && 21814 { ac_try='test -s conftest$ac_exeext' 21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21816 (eval $ac_try) 2>&5 21817 ac_status=$? 21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21819 (exit $ac_status); }; }; then 21820 LIBS="$flink_save_libs" 21821 echo "$as_me:$LINENO: result: yes" >&5 21822 echo "${ECHO_T}yes" >&6 21823 use_blas=-lcomplib.sgimath; 21824 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21825 coin_need_flibs=yes 21826 else 21827 echo "$as_me: failed program was:" >&5 21828 sed 's/^/| /' conftest.$ac_ext >&5 21829 21830 LIBS="$flink_save_libs" 21831 echo "$as_me:$LINENO: result: no" >&5 21832 echo "${ECHO_T}no" >&6 21833 SAVE_LIBS="$LIBS" 21834 fi 21835 rm -f conftest.err conftest.$ac_objext \ 21836 conftest$ac_exeext conftest.$ac_ext 21837 else 21838 echo "$as_me:$LINENO: result: no" >&5 21839 echo "${ECHO_T}no" >&6 21840 SAVE_LIBS="$LIBS" 21841 fi 21842 fi 21843 ;; 21844 esac 21845 21846 ;; 21847 21848 # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio 21849 # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't 21850 # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims 21851 # that CC and cc will understand -library in Studio 13. The main extra 21852 # function of -xlic_lib and -library is to arrange for the Fortran run-time 21853 # libraries to be linked for C++ and C. We can arrange that explicitly. 21854 *-*-solaris*) 21855 SAVE_LIBS="$LIBS" 21856 echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5 21857 echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6 21858 LIBS="-lsunperf $FLIBS $LIBS" 21859 case $ac_ext in 21860 f) 21861 cat >conftest.$ac_ext <<_ACEOF 21862 /* confdefs.h. */ 21863 _ACEOF 21864 cat confdefs.h >>conftest.$ac_ext 21865 cat >>conftest.$ac_ext <<_ACEOF 21866 /* end confdefs.h. */ 21867 21868 #ifdef F77_DUMMY_MAIN 21869 21870 # ifdef __cplusplus 21871 extern "C" 21872 # endif 21873 int F77_DUMMY_MAIN() { return 1; } 21874 21875 #endif 21876 int 21877 main () 21878 { 21879 call daxpy 21880 ; 21881 return 0; 21882 } 21883 _ACEOF 21884 rm -f conftest.$ac_objext conftest$ac_exeext 21885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21886 (eval $ac_link) 2>conftest.er1 21887 ac_status=$? 21888 grep -v '^ *+' conftest.er1 >conftest.err 21889 rm -f conftest.er1 21890 cat conftest.err >&5 21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21892 (exit $ac_status); } && 21893 { ac_try='test -z "$ac_c_werror_flag" 21894 || test ! -s conftest.err' 21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21896 (eval $ac_try) 2>&5 21897 ac_status=$? 21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21899 (exit $ac_status); }; } && 21900 { ac_try='test -s conftest$ac_exeext' 21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21902 (eval $ac_try) 2>&5 21903 ac_status=$? 21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21905 (exit $ac_status); }; }; then 21906 echo "$as_me:$LINENO: result: yes" >&5 21907 echo "${ECHO_T}yes" >&6 21908 use_blas='-lsunperf' 21909 ADDLIBS="-lsunperf $ADDLIBS" 21910 coin_need_flibs=yes 21911 else 21912 echo "$as_me: failed program was:" >&5 21913 sed 's/^/| /' conftest.$ac_ext >&5 21914 21915 echo "$as_me:$LINENO: result: no" >&5 21916 echo "${ECHO_T}no" >&6 21917 LIBS="$SAVE_LIBS" 21918 fi 21919 rm -f conftest.err conftest.$ac_objext \ 21920 conftest$ac_exeext conftest.$ac_ext 21921 ;; 21922 c) 21923 ac_ext=f 21924 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21925 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21926 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21927 case $ac_cv_f77_mangling in 21928 upper*) ac_val="DAXPY" ;; 21929 lower*) ac_val="daxpy" ;; 21930 *) ac_val="unknown" ;; 21931 esac 21932 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21933 21934 cfuncdaxpy="$ac_val" 21935 21936 ac_ext=c 21937 ac_cpp='$CPP $CPPFLAGS' 21938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21940 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21941 21942 if test x"$coin_need_flibs" = xyes; then 21943 flink_try=no; 21944 else 21945 cat >conftest.$ac_ext <<_ACEOF 21946 /* confdefs.h. */ 21947 _ACEOF 21948 cat confdefs.h >>conftest.$ac_ext 21949 cat >>conftest.$ac_ext <<_ACEOF 21950 /* end confdefs.h. */ 21951 void $cfuncdaxpy(); 21952 #ifdef F77_DUMMY_MAIN 21953 21954 # ifdef __cplusplus 21955 extern "C" 21956 # endif 21957 int F77_DUMMY_MAIN() { return 1; } 21958 21959 #endif 21960 int 21961 main () 21962 { 21963 $cfuncdaxpy() 21964 ; 21965 return 0; 21966 } 21967 _ACEOF 21968 rm -f conftest.$ac_objext conftest$ac_exeext 21969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21970 (eval $ac_link) 2>conftest.er1 21971 ac_status=$? 21972 grep -v '^ *+' conftest.er1 >conftest.err 21973 rm -f conftest.er1 21974 cat conftest.err >&5 21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21976 (exit $ac_status); } && 21977 { ac_try='test -z "$ac_c_werror_flag" 21978 || test ! -s conftest.err' 21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21980 (eval $ac_try) 2>&5 21981 ac_status=$? 21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21983 (exit $ac_status); }; } && 21984 { ac_try='test -s conftest$ac_exeext' 21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21986 (eval $ac_try) 2>&5 21987 ac_status=$? 21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21989 (exit $ac_status); }; }; then 21990 flink_try=yes 21991 else 21992 echo "$as_me: failed program was:" >&5 21993 sed 's/^/| /' conftest.$ac_ext >&5 21994 21995 flink_try=no 21996 fi 21997 rm -f conftest.err conftest.$ac_objext \ 21998 conftest$ac_exeext conftest.$ac_ext 21999 fi 22000 if test $flink_try = yes; then 22001 echo "$as_me:$LINENO: result: yes" >&5 22002 echo "${ECHO_T}yes" >&6 22003 use_blas='-lsunperf' 22004 ADDLIBS="-lsunperf $ADDLIBS" 22005 coin_need_flibs=yes 22006 else 22007 if test x"$FLIBS" != x; then 22008 flink_save_libs="$LIBS" 22009 LIBS="$LIBS $FLIBS" 22010 cat >conftest.$ac_ext <<_ACEOF 22011 /* confdefs.h. */ 22012 _ACEOF 22013 cat confdefs.h >>conftest.$ac_ext 22014 cat >>conftest.$ac_ext <<_ACEOF 22015 /* end confdefs.h. */ 22016 void $cfuncdaxpy(); 22017 #ifdef F77_DUMMY_MAIN 22018 22019 # ifdef __cplusplus 22020 extern "C" 22021 # endif 22022 int F77_DUMMY_MAIN() { return 1; } 22023 22024 #endif 22025 int 22026 main () 22027 { 22028 $cfuncdaxpy() 22029 ; 22030 return 0; 22031 } 22032 _ACEOF 22033 rm -f conftest.$ac_objext conftest$ac_exeext 22034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22035 (eval $ac_link) 2>conftest.er1 22036 ac_status=$? 22037 grep -v '^ *+' conftest.er1 >conftest.err 22038 rm -f conftest.er1 22039 cat conftest.err >&5 22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22041 (exit $ac_status); } && 22042 { ac_try='test -z "$ac_c_werror_flag" 22043 || test ! -s conftest.err' 22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22045 (eval $ac_try) 2>&5 22046 ac_status=$? 22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22048 (exit $ac_status); }; } && 22049 { ac_try='test -s conftest$ac_exeext' 22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22051 (eval $ac_try) 2>&5 22052 ac_status=$? 22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22054 (exit $ac_status); }; }; then 22055 LIBS="$flink_save_libs" 22056 echo "$as_me:$LINENO: result: yes" >&5 22057 echo "${ECHO_T}yes" >&6 22058 use_blas='-lsunperf' 22059 ADDLIBS="-lsunperf $ADDLIBS" 22060 coin_need_flibs=yes 22061 coin_need_flibs=yes 22062 else 22063 echo "$as_me: failed program was:" >&5 22064 sed 's/^/| /' conftest.$ac_ext >&5 22065 22066 LIBS="$flink_save_libs" 22067 echo "$as_me:$LINENO: result: no" >&5 22068 echo "${ECHO_T}no" >&6 22069 LIBS="$SAVE_LIBS" 22070 fi 22071 rm -f conftest.err conftest.$ac_objext \ 22072 conftest$ac_exeext conftest.$ac_ext 22073 else 22074 echo "$as_me:$LINENO: result: no" >&5 22075 echo "${ECHO_T}no" >&6 22076 LIBS="$SAVE_LIBS" 22077 fi 22078 fi 22079 ;; 22080 cc|cpp) 22081 ac_ext=f 22082 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22083 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22084 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22085 case $ac_cv_f77_mangling in 22086 upper*) ac_val="DAXPY" ;; 22087 lower*) ac_val="daxpy" ;; 22088 *) ac_val="unknown" ;; 22089 esac 22090 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22091 22092 cfuncdaxpy="$ac_val" 22093 22094 ac_ext=c 22095 ac_cpp='$CPP $CPPFLAGS' 22096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22098 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22099 22100 if test x"$coin_need_flibs" = xyes; then 22101 flink_try=no; 22102 else 22103 cat >conftest.$ac_ext <<_ACEOF 22104 /* confdefs.h. */ 22105 _ACEOF 22106 cat confdefs.h >>conftest.$ac_ext 22107 cat >>conftest.$ac_ext <<_ACEOF 22108 /* end confdefs.h. */ 22109 extern "C" {void $cfuncdaxpy();} 22110 #ifdef F77_DUMMY_MAIN 22111 22112 # ifdef __cplusplus 22113 extern "C" 22114 # endif 22115 int F77_DUMMY_MAIN() { return 1; } 22116 22117 #endif 22118 int 22119 main () 22120 { 22121 $cfuncdaxpy() 22122 ; 22123 return 0; 22124 } 22125 _ACEOF 22126 rm -f conftest.$ac_objext conftest$ac_exeext 22127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22128 (eval $ac_link) 2>conftest.er1 22129 ac_status=$? 22130 grep -v '^ *+' conftest.er1 >conftest.err 22131 rm -f conftest.er1 22132 cat conftest.err >&5 22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22134 (exit $ac_status); } && 22135 { ac_try='test -z "$ac_c_werror_flag" 22136 || test ! -s conftest.err' 22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22138 (eval $ac_try) 2>&5 22139 ac_status=$? 22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22141 (exit $ac_status); }; } && 22142 { ac_try='test -s conftest$ac_exeext' 22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22144 (eval $ac_try) 2>&5 22145 ac_status=$? 22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22147 (exit $ac_status); }; }; then 22148 flink_try=yes 22149 else 22150 echo "$as_me: failed program was:" >&5 22151 sed 's/^/| /' conftest.$ac_ext >&5 22152 22153 flink_try=no 22154 fi 22155 rm -f conftest.err conftest.$ac_objext \ 22156 conftest$ac_exeext conftest.$ac_ext 22157 fi 22158 if test $flink_try = yes; then 22159 echo "$as_me:$LINENO: result: yes" >&5 22160 echo "${ECHO_T}yes" >&6 22161 use_blas='-lsunperf' 22162 ADDLIBS="-lsunperf $ADDLIBS" 22163 coin_need_flibs=yes 22164 else 22165 if test x"$FLIBS" != x; then 22166 flink_save_libs="$LIBS" 22167 LIBS="$LIBS $FLIBS" 22168 cat >conftest.$ac_ext <<_ACEOF 22169 /* confdefs.h. */ 22170 _ACEOF 22171 cat confdefs.h >>conftest.$ac_ext 22172 cat >>conftest.$ac_ext <<_ACEOF 22173 /* end confdefs.h. */ 22174 extern "C" {void $cfuncdaxpy();} 22175 #ifdef F77_DUMMY_MAIN 22176 22177 # ifdef __cplusplus 22178 extern "C" 22179 # endif 22180 int F77_DUMMY_MAIN() { return 1; } 22181 22182 #endif 22183 int 22184 main () 22185 { 22186 $cfuncdaxpy() 22187 ; 22188 return 0; 22189 } 22190 _ACEOF 22191 rm -f conftest.$ac_objext conftest$ac_exeext 22192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22193 (eval $ac_link) 2>conftest.er1 22194 ac_status=$? 22195 grep -v '^ *+' conftest.er1 >conftest.err 22196 rm -f conftest.er1 22197 cat conftest.err >&5 22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22199 (exit $ac_status); } && 22200 { ac_try='test -z "$ac_c_werror_flag" 22201 || test ! -s conftest.err' 22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22203 (eval $ac_try) 2>&5 22204 ac_status=$? 22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22206 (exit $ac_status); }; } && 22207 { ac_try='test -s conftest$ac_exeext' 22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22209 (eval $ac_try) 2>&5 22210 ac_status=$? 22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22212 (exit $ac_status); }; }; then 22213 LIBS="$flink_save_libs" 22214 echo "$as_me:$LINENO: result: yes" >&5 22215 echo "${ECHO_T}yes" >&6 22216 use_blas='-lsunperf' 22217 ADDLIBS="-lsunperf $ADDLIBS" 22218 coin_need_flibs=yes 22219 coin_need_flibs=yes 22220 else 22221 echo "$as_me: failed program was:" >&5 22222 sed 's/^/| /' conftest.$ac_ext >&5 22223 22224 LIBS="$flink_save_libs" 22225 echo "$as_me:$LINENO: result: no" >&5 22226 echo "${ECHO_T}no" >&6 22227 LIBS="$SAVE_LIBS" 22228 fi 22229 rm -f conftest.err conftest.$ac_objext \ 22230 conftest$ac_exeext conftest.$ac_ext 22231 else 22232 echo "$as_me:$LINENO: result: no" >&5 22233 echo "${ECHO_T}no" >&6 22234 LIBS="$SAVE_LIBS" 22235 fi 22236 fi 22237 ;; 22238 esac 22239 22240 ;; 22241 *-cygwin* | *-mingw*) 22242 # On cygwin, consider -lblas only if doscompile is disabled. The prebuilt 22243 # library will want to link with cygwin, hence won't run standalone in DOS. 22244 if test "$enable_doscompile" = mingw; then 22245 skip_lblas_check=yes 22246 fi 22247 case "$CC" in 22248 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 22249 SAVE_LIBS="$LIBS" 22250 echo "$as_me:$LINENO: checking for BLAS in MKL" >&5 22251 echo $ECHO_N "checking for BLAS in MKL... $ECHO_C" >&6 22252 LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS" 22253 case $ac_ext in 22254 f) 22255 cat >conftest.$ac_ext <<_ACEOF 22256 /* confdefs.h. */ 22257 _ACEOF 22258 cat confdefs.h >>conftest.$ac_ext 22259 cat >>conftest.$ac_ext <<_ACEOF 22260 /* end confdefs.h. */ 22261 22262 #ifdef F77_DUMMY_MAIN 22263 22264 # ifdef __cplusplus 22265 extern "C" 22266 # endif 22267 int F77_DUMMY_MAIN() { return 1; } 22268 22269 #endif 22270 int 22271 main () 22272 { 22273 call daxpy 22274 ; 22275 return 0; 22276 } 22277 _ACEOF 22278 rm -f conftest.$ac_objext conftest$ac_exeext 22279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22280 (eval $ac_link) 2>conftest.er1 22281 ac_status=$? 22282 grep -v '^ *+' conftest.er1 >conftest.err 22283 rm -f conftest.er1 22284 cat conftest.err >&5 22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22286 (exit $ac_status); } && 22287 { ac_try='test -z "$ac_c_werror_flag" 22288 || test ! -s conftest.err' 22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22290 (eval $ac_try) 2>&5 22291 ac_status=$? 22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22293 (exit $ac_status); }; } && 22294 { ac_try='test -s conftest$ac_exeext' 22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22296 (eval $ac_try) 2>&5 22297 ac_status=$? 22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22299 (exit $ac_status); }; }; then 22300 echo "$as_me:$LINENO: result: yes" >&5 22301 echo "${ECHO_T}yes" >&6 22302 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22303 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22304 else 22305 echo "$as_me: failed program was:" >&5 22306 sed 's/^/| /' conftest.$ac_ext >&5 22307 22308 echo "$as_me:$LINENO: result: no" >&5 22309 echo "${ECHO_T}no" >&6 22310 LIBS="$SAVE_LIBS" 22311 fi 22312 rm -f conftest.err conftest.$ac_objext \ 22313 conftest$ac_exeext conftest.$ac_ext 22314 ;; 22315 c) 22316 ac_ext=f 22317 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22318 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22319 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22320 case $ac_cv_f77_mangling in 22321 upper*) ac_val="DAXPY" ;; 22322 lower*) ac_val="daxpy" ;; 22323 *) ac_val="unknown" ;; 22324 esac 22325 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22326 22327 cfuncdaxpy="$ac_val" 22328 22329 ac_ext=c 22330 ac_cpp='$CPP $CPPFLAGS' 22331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22333 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22334 22335 if test x"$coin_need_flibs" = xyes; then 22336 flink_try=no; 22337 else 22338 cat >conftest.$ac_ext <<_ACEOF 22339 /* confdefs.h. */ 22340 _ACEOF 22341 cat confdefs.h >>conftest.$ac_ext 22342 cat >>conftest.$ac_ext <<_ACEOF 22343 /* end confdefs.h. */ 22344 void $cfuncdaxpy(); 22345 #ifdef F77_DUMMY_MAIN 22346 22347 # ifdef __cplusplus 22348 extern "C" 22349 # endif 22350 int F77_DUMMY_MAIN() { return 1; } 22351 22352 #endif 22353 int 22354 main () 22355 { 22356 $cfuncdaxpy() 22357 ; 22358 return 0; 22359 } 22360 _ACEOF 22361 rm -f conftest.$ac_objext conftest$ac_exeext 22362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22363 (eval $ac_link) 2>conftest.er1 22364 ac_status=$? 22365 grep -v '^ *+' conftest.er1 >conftest.err 22366 rm -f conftest.er1 22367 cat conftest.err >&5 22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22369 (exit $ac_status); } && 22370 { ac_try='test -z "$ac_c_werror_flag" 22371 || test ! -s conftest.err' 22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22373 (eval $ac_try) 2>&5 22374 ac_status=$? 22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22376 (exit $ac_status); }; } && 22377 { ac_try='test -s conftest$ac_exeext' 22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22379 (eval $ac_try) 2>&5 22380 ac_status=$? 22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22382 (exit $ac_status); }; }; then 22383 flink_try=yes 22384 else 22385 echo "$as_me: failed program was:" >&5 22386 sed 's/^/| /' conftest.$ac_ext >&5 22387 22388 flink_try=no 22389 fi 22390 rm -f conftest.err conftest.$ac_objext \ 22391 conftest$ac_exeext conftest.$ac_ext 22392 fi 22393 if test $flink_try = yes; then 22394 echo "$as_me:$LINENO: result: yes" >&5 22395 echo "${ECHO_T}yes" >&6 22396 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22397 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22398 else 22399 if test x"$FLIBS" != x; then 22400 flink_save_libs="$LIBS" 22401 LIBS="$LIBS $FLIBS" 22402 cat >conftest.$ac_ext <<_ACEOF 22403 /* confdefs.h. */ 22404 _ACEOF 22405 cat confdefs.h >>conftest.$ac_ext 22406 cat >>conftest.$ac_ext <<_ACEOF 22407 /* end confdefs.h. */ 22408 void $cfuncdaxpy(); 22409 #ifdef F77_DUMMY_MAIN 22410 22411 # ifdef __cplusplus 22412 extern "C" 22413 # endif 22414 int F77_DUMMY_MAIN() { return 1; } 22415 22416 #endif 22417 int 22418 main () 22419 { 22420 $cfuncdaxpy() 22421 ; 22422 return 0; 22423 } 22424 _ACEOF 22425 rm -f conftest.$ac_objext conftest$ac_exeext 22426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22427 (eval $ac_link) 2>conftest.er1 22428 ac_status=$? 22429 grep -v '^ *+' conftest.er1 >conftest.err 22430 rm -f conftest.er1 22431 cat conftest.err >&5 22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22433 (exit $ac_status); } && 22434 { ac_try='test -z "$ac_c_werror_flag" 22435 || test ! -s conftest.err' 22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22437 (eval $ac_try) 2>&5 22438 ac_status=$? 22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22440 (exit $ac_status); }; } && 22441 { ac_try='test -s conftest$ac_exeext' 22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22443 (eval $ac_try) 2>&5 22444 ac_status=$? 22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22446 (exit $ac_status); }; }; then 22447 LIBS="$flink_save_libs" 22448 echo "$as_me:$LINENO: result: yes" >&5 22449 echo "${ECHO_T}yes" >&6 22450 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22451 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22452 coin_need_flibs=yes 22453 else 22454 echo "$as_me: failed program was:" >&5 22455 sed 's/^/| /' conftest.$ac_ext >&5 22456 22457 LIBS="$flink_save_libs" 22458 echo "$as_me:$LINENO: result: no" >&5 22459 echo "${ECHO_T}no" >&6 22460 LIBS="$SAVE_LIBS" 22461 fi 22462 rm -f conftest.err conftest.$ac_objext \ 22463 conftest$ac_exeext conftest.$ac_ext 22464 else 22465 echo "$as_me:$LINENO: result: no" >&5 22466 echo "${ECHO_T}no" >&6 22467 LIBS="$SAVE_LIBS" 22468 fi 22469 fi 22470 ;; 22471 cc|cpp) 22472 ac_ext=f 22473 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22474 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22475 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22476 case $ac_cv_f77_mangling in 22477 upper*) ac_val="DAXPY" ;; 22478 lower*) ac_val="daxpy" ;; 22479 *) ac_val="unknown" ;; 22480 esac 22481 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22482 22483 cfuncdaxpy="$ac_val" 22484 22485 ac_ext=c 22486 ac_cpp='$CPP $CPPFLAGS' 22487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22489 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22490 22491 if test x"$coin_need_flibs" = xyes; then 22492 flink_try=no; 22493 else 22494 cat >conftest.$ac_ext <<_ACEOF 22495 /* confdefs.h. */ 22496 _ACEOF 22497 cat confdefs.h >>conftest.$ac_ext 22498 cat >>conftest.$ac_ext <<_ACEOF 22499 /* end confdefs.h. */ 22500 extern "C" {void $cfuncdaxpy();} 22501 #ifdef F77_DUMMY_MAIN 22502 22503 # ifdef __cplusplus 22504 extern "C" 22505 # endif 22506 int F77_DUMMY_MAIN() { return 1; } 22507 22508 #endif 22509 int 22510 main () 22511 { 22512 $cfuncdaxpy() 22513 ; 22514 return 0; 22515 } 22516 _ACEOF 22517 rm -f conftest.$ac_objext conftest$ac_exeext 22518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22519 (eval $ac_link) 2>conftest.er1 22520 ac_status=$? 22521 grep -v '^ *+' conftest.er1 >conftest.err 22522 rm -f conftest.er1 22523 cat conftest.err >&5 22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22525 (exit $ac_status); } && 22526 { ac_try='test -z "$ac_c_werror_flag" 22527 || test ! -s conftest.err' 22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22529 (eval $ac_try) 2>&5 22530 ac_status=$? 22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22532 (exit $ac_status); }; } && 22533 { ac_try='test -s conftest$ac_exeext' 22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22535 (eval $ac_try) 2>&5 22536 ac_status=$? 22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22538 (exit $ac_status); }; }; then 22539 flink_try=yes 22540 else 22541 echo "$as_me: failed program was:" >&5 22542 sed 's/^/| /' conftest.$ac_ext >&5 22543 22544 flink_try=no 22545 fi 22546 rm -f conftest.err conftest.$ac_objext \ 22547 conftest$ac_exeext conftest.$ac_ext 22548 fi 22549 if test $flink_try = yes; then 22550 echo "$as_me:$LINENO: result: yes" >&5 22551 echo "${ECHO_T}yes" >&6 22552 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22553 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22554 else 22555 if test x"$FLIBS" != x; then 22556 flink_save_libs="$LIBS" 22557 LIBS="$LIBS $FLIBS" 22558 cat >conftest.$ac_ext <<_ACEOF 22559 /* confdefs.h. */ 22560 _ACEOF 22561 cat confdefs.h >>conftest.$ac_ext 22562 cat >>conftest.$ac_ext <<_ACEOF 22563 /* end confdefs.h. */ 22564 extern "C" {void $cfuncdaxpy();} 22565 #ifdef F77_DUMMY_MAIN 22566 22567 # ifdef __cplusplus 22568 extern "C" 22569 # endif 22570 int F77_DUMMY_MAIN() { return 1; } 22571 22572 #endif 22573 int 22574 main () 22575 { 22576 $cfuncdaxpy() 22577 ; 22578 return 0; 22579 } 22580 _ACEOF 22581 rm -f conftest.$ac_objext conftest$ac_exeext 22582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22583 (eval $ac_link) 2>conftest.er1 22584 ac_status=$? 22585 grep -v '^ *+' conftest.er1 >conftest.err 22586 rm -f conftest.er1 22587 cat conftest.err >&5 22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22589 (exit $ac_status); } && 22590 { ac_try='test -z "$ac_c_werror_flag" 22591 || test ! -s conftest.err' 22592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22593 (eval $ac_try) 2>&5 22594 ac_status=$? 22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22596 (exit $ac_status); }; } && 22597 { ac_try='test -s conftest$ac_exeext' 22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22599 (eval $ac_try) 2>&5 22600 ac_status=$? 22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22602 (exit $ac_status); }; }; then 22603 LIBS="$flink_save_libs" 22604 echo "$as_me:$LINENO: result: yes" >&5 22605 echo "${ECHO_T}yes" >&6 22606 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22607 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22608 coin_need_flibs=yes 22609 else 22610 echo "$as_me: failed program was:" >&5 22611 sed 's/^/| /' conftest.$ac_ext >&5 22612 22613 LIBS="$flink_save_libs" 22614 echo "$as_me:$LINENO: result: no" >&5 22615 echo "${ECHO_T}no" >&6 22616 LIBS="$SAVE_LIBS" 22617 fi 22618 rm -f conftest.err conftest.$ac_objext \ 22619 conftest$ac_exeext conftest.$ac_ext 22620 else 22621 echo "$as_me:$LINENO: result: no" >&5 22622 echo "${ECHO_T}no" >&6 22623 LIBS="$SAVE_LIBS" 22624 fi 22625 fi 22626 ;; 22627 esac 22628 22629 ;; 22630 esac 22631 ;; 22632 esac 22633 22634 if test -z "$use_blas" && test $skip_lblas_check = no; then 22635 SAVE_LIBS="$LIBS" 22636 echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5 22637 echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6 22638 LIBS="-lblas $LIBS" 22639 case $ac_ext in 22640 f) 22641 cat >conftest.$ac_ext <<_ACEOF 22642 /* confdefs.h. */ 22643 _ACEOF 22644 cat confdefs.h >>conftest.$ac_ext 22645 cat >>conftest.$ac_ext <<_ACEOF 22646 /* end confdefs.h. */ 22647 22648 #ifdef F77_DUMMY_MAIN 22649 22650 # ifdef __cplusplus 22651 extern "C" 22652 # endif 22653 int F77_DUMMY_MAIN() { return 1; } 22654 22655 #endif 22656 int 22657 main () 22658 { 22659 call daxpy 22660 ; 22661 return 0; 22662 } 22663 _ACEOF 22664 rm -f conftest.$ac_objext conftest$ac_exeext 22665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22666 (eval $ac_link) 2>conftest.er1 22667 ac_status=$? 22668 grep -v '^ *+' conftest.er1 >conftest.err 22669 rm -f conftest.er1 22670 cat conftest.err >&5 22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22672 (exit $ac_status); } && 22673 { ac_try='test -z "$ac_c_werror_flag" 22674 || test ! -s conftest.err' 22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22676 (eval $ac_try) 2>&5 22677 ac_status=$? 22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22679 (exit $ac_status); }; } && 22680 { ac_try='test -s conftest$ac_exeext' 22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22682 (eval $ac_try) 2>&5 22683 ac_status=$? 22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22685 (exit $ac_status); }; }; then 22686 echo "$as_me:$LINENO: result: yes" >&5 22687 echo "${ECHO_T}yes" >&6 22688 ADDLIBS="-lblas $ADDLIBS" 22689 use_blas='-lblas' 22690 else 22691 echo "$as_me: failed program was:" >&5 22692 sed 's/^/| /' conftest.$ac_ext >&5 22693 22694 echo "$as_me:$LINENO: result: no" >&5 22695 echo "${ECHO_T}no" >&6 22696 LIBS="$SAVE_LIBS" 22697 fi 22698 rm -f conftest.err conftest.$ac_objext \ 22699 conftest$ac_exeext conftest.$ac_ext 22700 ;; 22701 c) 22702 ac_ext=f 22703 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22704 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22705 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22706 case $ac_cv_f77_mangling in 22707 upper*) ac_val="DAXPY" ;; 22708 lower*) ac_val="daxpy" ;; 22709 *) ac_val="unknown" ;; 22710 esac 22711 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22712 22713 cfuncdaxpy="$ac_val" 22714 22715 ac_ext=c 22716 ac_cpp='$CPP $CPPFLAGS' 22717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22719 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22720 22721 if test x"$coin_need_flibs" = xyes; then 22722 flink_try=no; 22723 else 22724 cat >conftest.$ac_ext <<_ACEOF 22725 /* confdefs.h. */ 22726 _ACEOF 22727 cat confdefs.h >>conftest.$ac_ext 22728 cat >>conftest.$ac_ext <<_ACEOF 22729 /* end confdefs.h. */ 22730 void $cfuncdaxpy(); 22731 #ifdef F77_DUMMY_MAIN 22732 22733 # ifdef __cplusplus 22734 extern "C" 22735 # endif 22736 int F77_DUMMY_MAIN() { return 1; } 22737 22738 #endif 22739 int 22740 main () 22741 { 22742 $cfuncdaxpy() 22743 ; 22744 return 0; 22745 } 22746 _ACEOF 22747 rm -f conftest.$ac_objext conftest$ac_exeext 22748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22749 (eval $ac_link) 2>conftest.er1 22750 ac_status=$? 22751 grep -v '^ *+' conftest.er1 >conftest.err 22752 rm -f conftest.er1 22753 cat conftest.err >&5 22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22755 (exit $ac_status); } && 22756 { ac_try='test -z "$ac_c_werror_flag" 22757 || test ! -s conftest.err' 22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22759 (eval $ac_try) 2>&5 22760 ac_status=$? 22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22762 (exit $ac_status); }; } && 22763 { ac_try='test -s conftest$ac_exeext' 22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22765 (eval $ac_try) 2>&5 22766 ac_status=$? 22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22768 (exit $ac_status); }; }; then 22769 flink_try=yes 22770 else 22771 echo "$as_me: failed program was:" >&5 22772 sed 's/^/| /' conftest.$ac_ext >&5 22773 22774 flink_try=no 22775 fi 22776 rm -f conftest.err conftest.$ac_objext \ 22777 conftest$ac_exeext conftest.$ac_ext 22778 fi 22779 if test $flink_try = yes; then 22780 echo "$as_me:$LINENO: result: yes" >&5 22781 echo "${ECHO_T}yes" >&6 22782 ADDLIBS="-lblas $ADDLIBS" 22783 use_blas='-lblas' 22784 else 22785 if test x"$FLIBS" != x; then 22786 flink_save_libs="$LIBS" 22787 LIBS="$LIBS $FLIBS" 22788 cat >conftest.$ac_ext <<_ACEOF 22789 /* confdefs.h. */ 22790 _ACEOF 22791 cat confdefs.h >>conftest.$ac_ext 22792 cat >>conftest.$ac_ext <<_ACEOF 22793 /* end confdefs.h. */ 22794 void $cfuncdaxpy(); 22795 #ifdef F77_DUMMY_MAIN 22796 22797 # ifdef __cplusplus 22798 extern "C" 22799 # endif 22800 int F77_DUMMY_MAIN() { return 1; } 22801 22802 #endif 22803 int 22804 main () 22805 { 22806 $cfuncdaxpy() 22807 ; 22808 return 0; 22809 } 22810 _ACEOF 22811 rm -f conftest.$ac_objext conftest$ac_exeext 22812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22813 (eval $ac_link) 2>conftest.er1 22814 ac_status=$? 22815 grep -v '^ *+' conftest.er1 >conftest.err 22816 rm -f conftest.er1 22817 cat conftest.err >&5 22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22819 (exit $ac_status); } && 22820 { ac_try='test -z "$ac_c_werror_flag" 22821 || test ! -s conftest.err' 22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22823 (eval $ac_try) 2>&5 22824 ac_status=$? 22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22826 (exit $ac_status); }; } && 22827 { ac_try='test -s conftest$ac_exeext' 22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22829 (eval $ac_try) 2>&5 22830 ac_status=$? 22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22832 (exit $ac_status); }; }; then 22833 LIBS="$flink_save_libs" 22834 echo "$as_me:$LINENO: result: yes" >&5 22835 echo "${ECHO_T}yes" >&6 22836 ADDLIBS="-lblas $ADDLIBS" 22837 use_blas='-lblas' 22838 coin_need_flibs=yes 22839 else 22840 echo "$as_me: failed program was:" >&5 22841 sed 's/^/| /' conftest.$ac_ext >&5 22842 22843 LIBS="$flink_save_libs" 22844 echo "$as_me:$LINENO: result: no" >&5 22845 echo "${ECHO_T}no" >&6 22846 LIBS="$SAVE_LIBS" 22847 fi 22848 rm -f conftest.err conftest.$ac_objext \ 22849 conftest$ac_exeext conftest.$ac_ext 22850 else 22851 echo "$as_me:$LINENO: result: no" >&5 22852 echo "${ECHO_T}no" >&6 22853 LIBS="$SAVE_LIBS" 22854 fi 22855 fi 22856 ;; 22857 cc|cpp) 22858 ac_ext=f 22859 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22860 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22861 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22862 case $ac_cv_f77_mangling in 22863 upper*) ac_val="DAXPY" ;; 22864 lower*) ac_val="daxpy" ;; 22865 *) ac_val="unknown" ;; 22866 esac 22867 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22868 22869 cfuncdaxpy="$ac_val" 22870 22871 ac_ext=c 22872 ac_cpp='$CPP $CPPFLAGS' 22873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22875 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22876 22877 if test x"$coin_need_flibs" = xyes; then 22878 flink_try=no; 22879 else 22880 cat >conftest.$ac_ext <<_ACEOF 22881 /* confdefs.h. */ 22882 _ACEOF 22883 cat confdefs.h >>conftest.$ac_ext 22884 cat >>conftest.$ac_ext <<_ACEOF 22885 /* end confdefs.h. */ 22886 extern "C" {void $cfuncdaxpy();} 22887 #ifdef F77_DUMMY_MAIN 22888 22889 # ifdef __cplusplus 22890 extern "C" 22891 # endif 22892 int F77_DUMMY_MAIN() { return 1; } 22893 22894 #endif 22895 int 22896 main () 22897 { 22898 $cfuncdaxpy() 22899 ; 22900 return 0; 22901 } 22902 _ACEOF 22903 rm -f conftest.$ac_objext conftest$ac_exeext 22904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22905 (eval $ac_link) 2>conftest.er1 22906 ac_status=$? 22907 grep -v '^ *+' conftest.er1 >conftest.err 22908 rm -f conftest.er1 22909 cat conftest.err >&5 22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22911 (exit $ac_status); } && 22912 { ac_try='test -z "$ac_c_werror_flag" 22913 || test ! -s conftest.err' 22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22915 (eval $ac_try) 2>&5 22916 ac_status=$? 22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22918 (exit $ac_status); }; } && 22919 { ac_try='test -s conftest$ac_exeext' 22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22921 (eval $ac_try) 2>&5 22922 ac_status=$? 22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22924 (exit $ac_status); }; }; then 22925 flink_try=yes 22926 else 22927 echo "$as_me: failed program was:" >&5 22928 sed 's/^/| /' conftest.$ac_ext >&5 22929 22930 flink_try=no 22931 fi 22932 rm -f conftest.err conftest.$ac_objext \ 22933 conftest$ac_exeext conftest.$ac_ext 22934 fi 22935 if test $flink_try = yes; then 22936 echo "$as_me:$LINENO: result: yes" >&5 22937 echo "${ECHO_T}yes" >&6 22938 ADDLIBS="-lblas $ADDLIBS" 22939 use_blas='-lblas' 22940 else 22941 if test x"$FLIBS" != x; then 22942 flink_save_libs="$LIBS" 22943 LIBS="$LIBS $FLIBS" 22944 cat >conftest.$ac_ext <<_ACEOF 22945 /* confdefs.h. */ 22946 _ACEOF 22947 cat confdefs.h >>conftest.$ac_ext 22948 cat >>conftest.$ac_ext <<_ACEOF 22949 /* end confdefs.h. */ 22950 extern "C" {void $cfuncdaxpy();} 22951 #ifdef F77_DUMMY_MAIN 22952 22953 # ifdef __cplusplus 22954 extern "C" 22955 # endif 22956 int F77_DUMMY_MAIN() { return 1; } 22957 22958 #endif 22959 int 22960 main () 22961 { 22962 $cfuncdaxpy() 22963 ; 22964 return 0; 22965 } 22966 _ACEOF 22967 rm -f conftest.$ac_objext conftest$ac_exeext 22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22969 (eval $ac_link) 2>conftest.er1 22970 ac_status=$? 22971 grep -v '^ *+' conftest.er1 >conftest.err 22972 rm -f conftest.er1 22973 cat conftest.err >&5 22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22975 (exit $ac_status); } && 22976 { ac_try='test -z "$ac_c_werror_flag" 22977 || test ! -s conftest.err' 22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22979 (eval $ac_try) 2>&5 22980 ac_status=$? 22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22982 (exit $ac_status); }; } && 22983 { ac_try='test -s conftest$ac_exeext' 22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22985 (eval $ac_try) 2>&5 22986 ac_status=$? 22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22988 (exit $ac_status); }; }; then 22989 LIBS="$flink_save_libs" 22990 echo "$as_me:$LINENO: result: yes" >&5 22991 echo "${ECHO_T}yes" >&6 22992 ADDLIBS="-lblas $ADDLIBS" 22993 use_blas='-lblas' 22994 coin_need_flibs=yes 22995 else 22996 echo "$as_me: failed program was:" >&5 22997 sed 's/^/| /' conftest.$ac_ext >&5 22998 22999 LIBS="$flink_save_libs" 23000 echo "$as_me:$LINENO: result: no" >&5 23001 echo "${ECHO_T}no" >&6 23002 LIBS="$SAVE_LIBS" 23003 fi 23004 rm -f conftest.err conftest.$ac_objext \ 23005 conftest$ac_exeext conftest.$ac_ext 23006 else 23007 echo "$as_me:$LINENO: result: no" >&5 23008 echo "${ECHO_T}no" >&6 23009 LIBS="$SAVE_LIBS" 23010 fi 23011 fi 23012 ;; 23013 esac 23014 23015 fi 23016 23017 # If we have no other ideas, consider building BLAS. 23018 if test -z "$use_blas"; then 23019 if test "$PACKAGE_NAME" != ThirdPartyBlas; then 23020 if test -r $coin_blasobjdir/.MakeOk; then 23021 use_blas=BUILD 23022 fi 20351 23023 fi 20352 23024 fi 20353 23025 fi 20354 23026 20355 if test $coin_has_blas != unavailable && 20356 test $coin_has_blas != skipping; then 20357 # Set the #define if the component is available 23027 if test "$use_blas" = BUILD; then 23028 coin_need_flibs=yes 23029 fi 23030 23031 23032 23033 if test x"$use_blas" != x; then 23034 COIN_HAS_BLAS_TRUE= 23035 COIN_HAS_BLAS_FALSE='#' 23036 else 23037 COIN_HAS_BLAS_TRUE='#' 23038 COIN_HAS_BLAS_FALSE= 23039 fi 23040 23041 23042 23043 if test "$use_blas" = BUILD; then 23044 COIN_BUILD_BLAS_TRUE= 23045 COIN_BUILD_BLAS_FALSE='#' 23046 else 23047 COIN_BUILD_BLAS_TRUE='#' 23048 COIN_BUILD_BLAS_FALSE= 23049 fi 23050 23051 23052 if test x"$use_blas" = x || test "$use_blas" = no; then 23053 coin_has_blas=no 23054 else 23055 coin_has_blas=yes 20358 23056 20359 23057 cat >>confdefs.h <<\_ACEOF … … 20361 23059 _ACEOF 20362 23060 20363 20364 # Set the variables for source and object code location 20365 20366 BLASSRCDIR=`cd $srcdir/$coin_has_blas; pwd` 20367 20368 BLASOBJDIR=`pwd`/$coin_has_blas 20369 20370 BLASDOCDIR=$abs_lib_dir/../share/doc/coin/Blas 20371 fi 20372 20373 # Define the Makefile conditional 20374 20375 20376 if test $coin_has_blas != unavailable && 20377 test $coin_has_blas != skipping; then 20378 COIN_HAS_BLAS_TRUE= 20379 COIN_HAS_BLAS_FALSE='#' 20380 else 20381 COIN_HAS_BLAS_TRUE='#' 20382 COIN_HAS_BLAS_FALSE= 20383 fi 20384 20385 echo "$as_me:$LINENO: result: $coin_has_blas" >&5 20386 echo "${ECHO_T}$coin_has_blas" >&6 20387 20388 echo "$as_me:$LINENO: checking for COIN project Lapack" >&5 20389 echo $ECHO_N "checking for COIN project Lapack... $ECHO_C" >&6 20390 20391 # First check, if the sub-project is actually available (ToDo: allow 20392 # other locations) 20393 20394 coin_has_lapack=unavailable 20395 if test x"$COIN_SKIP_PROJECTS" != x; then 20396 for dir in $COIN_SKIP_PROJECTS; do 20397 if test $dir = Lapack; then 20398 coin_has_lapack=skipping 23061 fi 23062 23063 #LIBS="$save_LIBS" # we need to make sure that blas libraries are not in LIBS 23064 23065 coin_lapackobjdir=../ThirdParty/Lapack 23066 coin_lapacksrcdir=$srcdir/$coin_lapackobjdir 23067 23068 23069 # Check whether --with-lapack or --without-lapack was given. 23070 if test "${with_lapack+set}" = set; then 23071 withval="$with_lapack" 23072 use_lapack=$withval 23073 else 23074 use_lapack= 23075 fi; 23076 23077 # Check if user supplied option makes sense 23078 if test x"$use_lapack" != x; then 23079 if test "$use_lapack" = "BUILD"; then 23080 # Don't check for course code if this is executed in ThirdParty/Lapack 23081 if test "$PACKAGE_NAME" != ThirdPartyLapack; then 23082 if test -r $coin_lapackobjdir/.MakeOk; then :; else 23083 { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&5 23084 echo "$as_me: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&2;} 23085 { (exit 1); exit 1; }; } 23086 fi 20399 23087 fi 20400 done 20401 fi 20402 20403 if test $coin_has_lapack != skipping; then 20404 if test $PACKAGE_TARNAME = lapack; then 20405 coin_has_lapack=. 20406 else 20407 if test -d $srcdir/../Lapack; then 20408 coin_has_lapack=../Lapack 23088 elif test "$use_lapack" != no; then 23089 echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5 23090 echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6 23091 LIBS="$use_lapack $LIBS" 23092 ADDLIBS="$use_lapack $ADDLIBS" 23093 case $ac_ext in 23094 f) 23095 cat >conftest.$ac_ext <<_ACEOF 23096 /* confdefs.h. */ 23097 _ACEOF 23098 cat confdefs.h >>conftest.$ac_ext 23099 cat >>conftest.$ac_ext <<_ACEOF 23100 /* end confdefs.h. */ 23101 23102 #ifdef F77_DUMMY_MAIN 23103 23104 # ifdef __cplusplus 23105 extern "C" 23106 # endif 23107 int F77_DUMMY_MAIN() { return 1; } 23108 23109 #endif 23110 int 23111 main () 23112 { 23113 call dsyev 23114 ; 23115 return 0; 23116 } 23117 _ACEOF 23118 rm -f conftest.$ac_objext conftest$ac_exeext 23119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23120 (eval $ac_link) 2>conftest.er1 23121 ac_status=$? 23122 grep -v '^ *+' conftest.er1 >conftest.err 23123 rm -f conftest.er1 23124 cat conftest.err >&5 23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23126 (exit $ac_status); } && 23127 { ac_try='test -z "$ac_c_werror_flag" 23128 || test ! -s conftest.err' 23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23130 (eval $ac_try) 2>&5 23131 ac_status=$? 23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23133 (exit $ac_status); }; } && 23134 { ac_try='test -s conftest$ac_exeext' 23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23136 (eval $ac_try) 2>&5 23137 ac_status=$? 23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23139 (exit $ac_status); }; }; then 23140 echo "$as_me:$LINENO: result: yes" >&5 23141 echo "${ECHO_T}yes" >&6 23142 else 23143 echo "$as_me: failed program was:" >&5 23144 sed 's/^/| /' conftest.$ac_ext >&5 23145 23146 echo "$as_me:$LINENO: result: no" >&5 23147 echo "${ECHO_T}no" >&6 23148 { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5 23149 echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;} 23150 { (exit 1); exit 1; }; } 23151 fi 23152 rm -f conftest.err conftest.$ac_objext \ 23153 conftest$ac_exeext conftest.$ac_ext 23154 ;; 23155 c) 23156 ac_ext=f 23157 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 23158 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23159 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 23160 case $ac_cv_f77_mangling in 23161 upper*) ac_val="DSYEV" ;; 23162 lower*) ac_val="dsyev" ;; 23163 *) ac_val="unknown" ;; 23164 esac 23165 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 23166 23167 cfuncdsyev="$ac_val" 23168 23169 ac_ext=c 23170 ac_cpp='$CPP $CPPFLAGS' 23171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23173 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23174 23175 if test x"$coin_need_flibs" = xyes; then 23176 flink_try=no; 23177 else 23178 cat >conftest.$ac_ext <<_ACEOF 23179 /* confdefs.h. */ 23180 _ACEOF 23181 cat confdefs.h >>conftest.$ac_ext 23182 cat >>conftest.$ac_ext <<_ACEOF 23183 /* end confdefs.h. */ 23184 void $cfuncdsyev(); 23185 #ifdef F77_DUMMY_MAIN 23186 23187 # ifdef __cplusplus 23188 extern "C" 23189 # endif 23190 int F77_DUMMY_MAIN() { return 1; } 23191 23192 #endif 23193 int 23194 main () 23195 { 23196 $cfuncdsyev() 23197 ; 23198 return 0; 23199 } 23200 _ACEOF 23201 rm -f conftest.$ac_objext conftest$ac_exeext 23202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23203 (eval $ac_link) 2>conftest.er1 23204 ac_status=$? 23205 grep -v '^ *+' conftest.er1 >conftest.err 23206 rm -f conftest.er1 23207 cat conftest.err >&5 23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23209 (exit $ac_status); } && 23210 { ac_try='test -z "$ac_c_werror_flag" 23211 || test ! -s conftest.err' 23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23213 (eval $ac_try) 2>&5 23214 ac_status=$? 23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23216 (exit $ac_status); }; } && 23217 { ac_try='test -s conftest$ac_exeext' 23218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23219 (eval $ac_try) 2>&5 23220 ac_status=$? 23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23222 (exit $ac_status); }; }; then 23223 flink_try=yes 23224 else 23225 echo "$as_me: failed program was:" >&5 23226 sed 's/^/| /' conftest.$ac_ext >&5 23227 23228 flink_try=no 23229 fi 23230 rm -f conftest.err conftest.$ac_objext \ 23231 conftest$ac_exeext conftest.$ac_ext 23232 fi 23233 if test $flink_try = yes; then 23234 echo "$as_me:$LINENO: result: yes" >&5 23235 echo "${ECHO_T}yes" >&6 23236 else 23237 if test x"$FLIBS" != x; then 23238 flink_save_libs="$LIBS" 23239 LIBS="$LIBS $FLIBS" 23240 cat >conftest.$ac_ext <<_ACEOF 23241 /* confdefs.h. */ 23242 _ACEOF 23243 cat confdefs.h >>conftest.$ac_ext 23244 cat >>conftest.$ac_ext <<_ACEOF 23245 /* end confdefs.h. */ 23246 void $cfuncdsyev(); 23247 #ifdef F77_DUMMY_MAIN 23248 23249 # ifdef __cplusplus 23250 extern "C" 23251 # endif 23252 int F77_DUMMY_MAIN() { return 1; } 23253 23254 #endif 23255 int 23256 main () 23257 { 23258 $cfuncdsyev() 23259 ; 23260 return 0; 23261 } 23262 _ACEOF 23263 rm -f conftest.$ac_objext conftest$ac_exeext 23264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23265 (eval $ac_link) 2>conftest.er1 23266 ac_status=$? 23267 grep -v '^ *+' conftest.er1 >conftest.err 23268 rm -f conftest.er1 23269 cat conftest.err >&5 23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23271 (exit $ac_status); } && 23272 { ac_try='test -z "$ac_c_werror_flag" 23273 || test ! -s conftest.err' 23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23275 (eval $ac_try) 2>&5 23276 ac_status=$? 23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23278 (exit $ac_status); }; } && 23279 { ac_try='test -s conftest$ac_exeext' 23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23281 (eval $ac_try) 2>&5 23282 ac_status=$? 23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23284 (exit $ac_status); }; }; then 23285 LIBS="$flink_save_libs" 23286 echo "$as_me:$LINENO: result: yes" >&5 23287 echo "${ECHO_T}yes" >&6 23288 coin_need_flibs=yes 23289 else 23290 echo "$as_me: failed program was:" >&5 23291 sed 's/^/| /' conftest.$ac_ext >&5 23292 23293 LIBS="$flink_save_libs" 23294 echo "$as_me:$LINENO: result: no" >&5 23295 echo "${ECHO_T}no" >&6 23296 { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5 23297 echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;} 23298 { (exit 1); exit 1; }; } 23299 fi 23300 rm -f conftest.err conftest.$ac_objext \ 23301 conftest$ac_exeext conftest.$ac_ext 23302 else 23303 echo "$as_me:$LINENO: result: no" >&5 23304 echo "${ECHO_T}no" >&6 23305 { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5 23306 echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;} 23307 { (exit 1); exit 1; }; } 23308 fi 23309 fi 23310 ;; 23311 cc|cpp) 23312 ac_ext=f 23313 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 23314 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23315 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 23316 case $ac_cv_f77_mangling in 23317 upper*) ac_val="DSYEV" ;; 23318 lower*) ac_val="dsyev" ;; 23319 *) ac_val="unknown" ;; 23320 esac 23321 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 23322 23323 cfuncdsyev="$ac_val" 23324 23325 ac_ext=c 23326 ac_cpp='$CPP $CPPFLAGS' 23327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23329 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23330 23331 if test x"$coin_need_flibs" = xyes; then 23332 flink_try=no; 23333 else 23334 cat >conftest.$ac_ext <<_ACEOF 23335 /* confdefs.h. */ 23336 _ACEOF 23337 cat confdefs.h >>conftest.$ac_ext 23338 cat >>conftest.$ac_ext <<_ACEOF 23339 /* end confdefs.h. */ 23340 extern "C" {void $cfuncdsyev();} 23341 #ifdef F77_DUMMY_MAIN 23342 23343 # ifdef __cplusplus 23344 extern "C" 23345 # endif 23346 int F77_DUMMY_MAIN() { return 1; } 23347 23348 #endif 23349 int 23350 main () 23351 { 23352 $cfuncdsyev() 23353 ; 23354 return 0; 23355 } 23356 _ACEOF 23357 rm -f conftest.$ac_objext conftest$ac_exeext 23358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23359 (eval $ac_link) 2>conftest.er1 23360 ac_status=$? 23361 grep -v '^ *+' conftest.er1 >conftest.err 23362 rm -f conftest.er1 23363 cat conftest.err >&5 23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23365 (exit $ac_status); } && 23366 { ac_try='test -z "$ac_c_werror_flag" 23367 || test ! -s conftest.err' 23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23369 (eval $ac_try) 2>&5 23370 ac_status=$? 23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23372 (exit $ac_status); }; } && 23373 { ac_try='test -s conftest$ac_exeext' 23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23375 (eval $ac_try) 2>&5 23376 ac_status=$? 23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23378 (exit $ac_status); }; }; then 23379 flink_try=yes 23380 else 23381 echo "$as_me: failed program was:" >&5 23382 sed 's/^/| /' conftest.$ac_ext >&5 23383 23384 flink_try=no 23385 fi 23386 rm -f conftest.err conftest.$ac_objext \ 23387 conftest$ac_exeext conftest.$ac_ext 23388 fi 23389 if test $flink_try = yes; then 23390 echo "$as_me:$LINENO: result: yes" >&5 23391 echo "${ECHO_T}yes" >&6 23392 else 23393 if test x"$FLIBS" != x; then 23394 flink_save_libs="$LIBS" 23395 LIBS="$LIBS $FLIBS" 23396 cat >conftest.$ac_ext <<_ACEOF 23397 /* confdefs.h. */ 23398 _ACEOF 23399 cat confdefs.h >>conftest.$ac_ext 23400 cat >>conftest.$ac_ext <<_ACEOF 23401 /* end confdefs.h. */ 23402 extern "C" {void $cfuncdsyev();} 23403 #ifdef F77_DUMMY_MAIN 23404 23405 # ifdef __cplusplus 23406 extern "C" 23407 # endif 23408 int F77_DUMMY_MAIN() { return 1; } 23409 23410 #endif 23411 int 23412 main () 23413 { 23414 $cfuncdsyev() 23415 ; 23416 return 0; 23417 } 23418 _ACEOF 23419 rm -f conftest.$ac_objext conftest$ac_exeext 23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23421 (eval $ac_link) 2>conftest.er1 23422 ac_status=$? 23423 grep -v '^ *+' conftest.er1 >conftest.err 23424 rm -f conftest.er1 23425 cat conftest.err >&5 23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23427 (exit $ac_status); } && 23428 { ac_try='test -z "$ac_c_werror_flag" 23429 || test ! -s conftest.err' 23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23431 (eval $ac_try) 2>&5 23432 ac_status=$? 23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23434 (exit $ac_status); }; } && 23435 { ac_try='test -s conftest$ac_exeext' 23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23437 (eval $ac_try) 2>&5 23438 ac_status=$? 23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23440 (exit $ac_status); }; }; then 23441 LIBS="$flink_save_libs" 23442 echo "$as_me:$LINENO: result: yes" >&5 23443 echo "${ECHO_T}yes" >&6 23444 coin_need_flibs=yes 23445 else 23446 echo "$as_me: failed program was:" >&5 23447 sed 's/^/| /' conftest.$ac_ext >&5 23448 23449 LIBS="$flink_save_libs" 23450 echo "$as_me:$LINENO: result: no" >&5 23451 echo "${ECHO_T}no" >&6 23452 { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5 23453 echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;} 23454 { (exit 1); exit 1; }; } 23455 fi 23456 rm -f conftest.err conftest.$ac_objext \ 23457 conftest$ac_exeext conftest.$ac_ext 23458 else 23459 echo "$as_me:$LINENO: result: no" >&5 23460 echo "${ECHO_T}no" >&6 23461 { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5 23462 echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;} 23463 { (exit 1); exit 1; }; } 23464 fi 23465 fi 23466 ;; 23467 esac 23468 23469 fi 23470 else 23471 if test x$coin_has_blas = xyes; then 23472 # First try to see if LAPACK is already available with BLAS library 23473 echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5 23474 echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6 23475 case $ac_ext in 23476 f) 23477 cat >conftest.$ac_ext <<_ACEOF 23478 /* confdefs.h. */ 23479 _ACEOF 23480 cat confdefs.h >>conftest.$ac_ext 23481 cat >>conftest.$ac_ext <<_ACEOF 23482 /* end confdefs.h. */ 23483 23484 #ifdef F77_DUMMY_MAIN 23485 23486 # ifdef __cplusplus 23487 extern "C" 23488 # endif 23489 int F77_DUMMY_MAIN() { return 1; } 23490 23491 #endif 23492 int 23493 main () 23494 { 23495 call dsyev 23496 ; 23497 return 0; 23498 } 23499 _ACEOF 23500 rm -f conftest.$ac_objext conftest$ac_exeext 23501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23502 (eval $ac_link) 2>conftest.er1 23503 ac_status=$? 23504 grep -v '^ *+' conftest.er1 >conftest.err 23505 rm -f conftest.er1 23506 cat conftest.err >&5 23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23508 (exit $ac_status); } && 23509 { ac_try='test -z "$ac_c_werror_flag" 23510 || test ! -s conftest.err' 23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23512 (eval $ac_try) 2>&5 23513 ac_status=$? 23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23515 (exit $ac_status); }; } && 23516 { ac_try='test -s conftest$ac_exeext' 23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23518 (eval $ac_try) 2>&5 23519 ac_status=$? 23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23521 (exit $ac_status); }; }; then 23522 echo "$as_me:$LINENO: result: yes" >&5 23523 echo "${ECHO_T}yes" >&6; use_lapack=ok 23524 else 23525 echo "$as_me: failed program was:" >&5 23526 sed 's/^/| /' conftest.$ac_ext >&5 23527 23528 echo "$as_me:$LINENO: result: no" >&5 23529 echo "${ECHO_T}no" >&6 23530 fi 23531 rm -f conftest.err conftest.$ac_objext \ 23532 conftest$ac_exeext conftest.$ac_ext 23533 ;; 23534 c) 23535 ac_ext=f 23536 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 23537 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23538 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 23539 case $ac_cv_f77_mangling in 23540 upper*) ac_val="DSYEV" ;; 23541 lower*) ac_val="dsyev" ;; 23542 *) ac_val="unknown" ;; 23543 esac 23544 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 23545 23546 cfuncdsyev="$ac_val" 23547 23548 ac_ext=c 23549 ac_cpp='$CPP $CPPFLAGS' 23550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23552 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23553 23554 if test x"$coin_need_flibs" = xyes; then 23555 flink_try=no; 23556 else 23557 cat >conftest.$ac_ext <<_ACEOF 23558 /* confdefs.h. */ 23559 _ACEOF 23560 cat confdefs.h >>conftest.$ac_ext 23561 cat >>conftest.$ac_ext <<_ACEOF 23562 /* end confdefs.h. */ 23563 void $cfuncdsyev(); 23564 #ifdef F77_DUMMY_MAIN 23565 23566 # ifdef __cplusplus 23567 extern "C" 23568 # endif 23569 int F77_DUMMY_MAIN() { return 1; } 23570 23571 #endif 23572 int 23573 main () 23574 { 23575 $cfuncdsyev() 23576 ; 23577 return 0; 23578 } 23579 _ACEOF 23580 rm -f conftest.$ac_objext conftest$ac_exeext 23581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23582 (eval $ac_link) 2>conftest.er1 23583 ac_status=$? 23584 grep -v '^ *+' conftest.er1 >conftest.err 23585 rm -f conftest.er1 23586 cat conftest.err >&5 23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23588 (exit $ac_status); } && 23589 { ac_try='test -z "$ac_c_werror_flag" 23590 || test ! -s conftest.err' 23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23592 (eval $ac_try) 2>&5 23593 ac_status=$? 23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23595 (exit $ac_status); }; } && 23596 { ac_try='test -s conftest$ac_exeext' 23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23598 (eval $ac_try) 2>&5 23599 ac_status=$? 23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23601 (exit $ac_status); }; }; then 23602 flink_try=yes 23603 else 23604 echo "$as_me: failed program was:" >&5 23605 sed 's/^/| /' conftest.$ac_ext >&5 23606 23607 flink_try=no 23608 fi 23609 rm -f conftest.err conftest.$ac_objext \ 23610 conftest$ac_exeext conftest.$ac_ext 23611 fi 23612 if test $flink_try = yes; then 23613 echo "$as_me:$LINENO: result: yes" >&5 23614 echo "${ECHO_T}yes" >&6; use_lapack=ok 23615 else 23616 if test x"$FLIBS" != x; then 23617 flink_save_libs="$LIBS" 23618 LIBS="$LIBS $FLIBS" 23619 cat >conftest.$ac_ext <<_ACEOF 23620 /* confdefs.h. */ 23621 _ACEOF 23622 cat confdefs.h >>conftest.$ac_ext 23623 cat >>conftest.$ac_ext <<_ACEOF 23624 /* end confdefs.h. */ 23625 void $cfuncdsyev(); 23626 #ifdef F77_DUMMY_MAIN 23627 23628 # ifdef __cplusplus 23629 extern "C" 23630 # endif 23631 int F77_DUMMY_MAIN() { return 1; } 23632 23633 #endif 23634 int 23635 main () 23636 { 23637 $cfuncdsyev() 23638 ; 23639 return 0; 23640 } 23641 _ACEOF 23642 rm -f conftest.$ac_objext conftest$ac_exeext 23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23644 (eval $ac_link) 2>conftest.er1 23645 ac_status=$? 23646 grep -v '^ *+' conftest.er1 >conftest.err 23647 rm -f conftest.er1 23648 cat conftest.err >&5 23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23650 (exit $ac_status); } && 23651 { ac_try='test -z "$ac_c_werror_flag" 23652 || test ! -s conftest.err' 23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23654 (eval $ac_try) 2>&5 23655 ac_status=$? 23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23657 (exit $ac_status); }; } && 23658 { ac_try='test -s conftest$ac_exeext' 23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23660 (eval $ac_try) 2>&5 23661 ac_status=$? 23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23663 (exit $ac_status); }; }; then 23664 LIBS="$flink_save_libs" 23665 echo "$as_me:$LINENO: result: yes" >&5 23666 echo "${ECHO_T}yes" >&6; use_lapack=ok 23667 coin_need_flibs=yes 23668 else 23669 echo "$as_me: failed program was:" >&5 23670 sed 's/^/| /' conftest.$ac_ext >&5 23671 23672 LIBS="$flink_save_libs" 23673 echo "$as_me:$LINENO: result: no" >&5 23674 echo "${ECHO_T}no" >&6 23675 fi 23676 rm -f conftest.err conftest.$ac_objext \ 23677 conftest$ac_exeext conftest.$ac_ext 23678 else 23679 echo "$as_me:$LINENO: result: no" >&5 23680 echo "${ECHO_T}no" >&6 23681 fi 23682 fi 23683 ;; 23684 cc|cpp) 23685 ac_ext=f 23686 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 23687 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23688 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 23689 case $ac_cv_f77_mangling in 23690 upper*) ac_val="DSYEV" ;; 23691 lower*) ac_val="dsyev" ;; 23692 *) ac_val="unknown" ;; 23693 esac 23694 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 23695 23696 cfuncdsyev="$ac_val" 23697 23698 ac_ext=c 23699 ac_cpp='$CPP $CPPFLAGS' 23700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23702 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23703 23704 if test x"$coin_need_flibs" = xyes; then 23705 flink_try=no; 23706 else 23707 cat >conftest.$ac_ext <<_ACEOF 23708 /* confdefs.h. */ 23709 _ACEOF 23710 cat confdefs.h >>conftest.$ac_ext 23711 cat >>conftest.$ac_ext <<_ACEOF 23712 /* end confdefs.h. */ 23713 extern "C" {void $cfuncdsyev();} 23714 #ifdef F77_DUMMY_MAIN 23715 23716 # ifdef __cplusplus 23717 extern "C" 23718 # endif 23719 int F77_DUMMY_MAIN() { return 1; } 23720 23721 #endif 23722 int 23723 main () 23724 { 23725 $cfuncdsyev() 23726 ; 23727 return 0; 23728 } 23729 _ACEOF 23730 rm -f conftest.$ac_objext conftest$ac_exeext 23731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23732 (eval $ac_link) 2>conftest.er1 23733 ac_status=$? 23734 grep -v '^ *+' conftest.er1 >conftest.err 23735 rm -f conftest.er1 23736 cat conftest.err >&5 23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23738 (exit $ac_status); } && 23739 { ac_try='test -z "$ac_c_werror_flag" 23740 || test ! -s conftest.err' 23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23742 (eval $ac_try) 2>&5 23743 ac_status=$? 23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23745 (exit $ac_status); }; } && 23746 { ac_try='test -s conftest$ac_exeext' 23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23748 (eval $ac_try) 2>&5 23749 ac_status=$? 23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23751 (exit $ac_status); }; }; then 23752 flink_try=yes 23753 else 23754 echo "$as_me: failed program was:" >&5 23755 sed 's/^/| /' conftest.$ac_ext >&5 23756 23757 flink_try=no 23758 fi 23759 rm -f conftest.err conftest.$ac_objext \ 23760 conftest$ac_exeext conftest.$ac_ext 23761 fi 23762 if test $flink_try = yes; then 23763 echo "$as_me:$LINENO: result: yes" >&5 23764 echo "${ECHO_T}yes" >&6; use_lapack=ok 23765 else 23766 if test x"$FLIBS" != x; then 23767 flink_save_libs="$LIBS" 23768 LIBS="$LIBS $FLIBS" 23769 cat >conftest.$ac_ext <<_ACEOF 23770 /* confdefs.h. */ 23771 _ACEOF 23772 cat confdefs.h >>conftest.$ac_ext 23773 cat >>conftest.$ac_ext <<_ACEOF 23774 /* end confdefs.h. */ 23775 extern "C" {void $cfuncdsyev();} 23776 #ifdef F77_DUMMY_MAIN 23777 23778 # ifdef __cplusplus 23779 extern "C" 23780 # endif 23781 int F77_DUMMY_MAIN() { return 1; } 23782 23783 #endif 23784 int 23785 main () 23786 { 23787 $cfuncdsyev() 23788 ; 23789 return 0; 23790 } 23791 _ACEOF 23792 rm -f conftest.$ac_objext conftest$ac_exeext 23793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23794 (eval $ac_link) 2>conftest.er1 23795 ac_status=$? 23796 grep -v '^ *+' conftest.er1 >conftest.err 23797 rm -f conftest.er1 23798 cat conftest.err >&5 23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23800 (exit $ac_status); } && 23801 { ac_try='test -z "$ac_c_werror_flag" 23802 || test ! -s conftest.err' 23803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23804 (eval $ac_try) 2>&5 23805 ac_status=$? 23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23807 (exit $ac_status); }; } && 23808 { ac_try='test -s conftest$ac_exeext' 23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23810 (eval $ac_try) 2>&5 23811 ac_status=$? 23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23813 (exit $ac_status); }; }; then 23814 LIBS="$flink_save_libs" 23815 echo "$as_me:$LINENO: result: yes" >&5 23816 echo "${ECHO_T}yes" >&6; use_lapack=ok 23817 coin_need_flibs=yes 23818 else 23819 echo "$as_me: failed program was:" >&5 23820 sed 's/^/| /' conftest.$ac_ext >&5 23821 23822 LIBS="$flink_save_libs" 23823 echo "$as_me:$LINENO: result: no" >&5 23824 echo "${ECHO_T}no" >&6 23825 fi 23826 rm -f conftest.err conftest.$ac_objext \ 23827 conftest$ac_exeext conftest.$ac_ext 23828 else 23829 echo "$as_me:$LINENO: result: no" >&5 23830 echo "${ECHO_T}no" >&6 23831 fi 23832 fi 23833 ;; 23834 esac 23835 23836 fi 23837 skip_llapack_check=no 23838 if test -z "$use_lapack"; then 23839 # Try to autodetect the library for lapack based on build system 23840 case $build in 23841 *-sgi-*) 23842 SAVE_LIBS="$LIBS" 23843 echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5 23844 echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6 23845 LIBS="-lcomplib.sgimath $LIBS" 23846 case $ac_ext in 23847 f) 23848 cat >conftest.$ac_ext <<_ACEOF 23849 /* confdefs.h. */ 23850 _ACEOF 23851 cat confdefs.h >>conftest.$ac_ext 23852 cat >>conftest.$ac_ext <<_ACEOF 23853 /* end confdefs.h. */ 23854 23855 #ifdef F77_DUMMY_MAIN 23856 23857 # ifdef __cplusplus 23858 extern "C" 23859 # endif 23860 int F77_DUMMY_MAIN() { return 1; } 23861 23862 #endif 23863 int 23864 main () 23865 { 23866 call dsyev 23867 ; 23868 return 0; 23869 } 23870 _ACEOF 23871 rm -f conftest.$ac_objext conftest$ac_exeext 23872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23873 (eval $ac_link) 2>conftest.er1 23874 ac_status=$? 23875 grep -v '^ *+' conftest.er1 >conftest.err 23876 rm -f conftest.er1 23877 cat conftest.err >&5 23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23879 (exit $ac_status); } && 23880 { ac_try='test -z "$ac_c_werror_flag" 23881 || test ! -s conftest.err' 23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23883 (eval $ac_try) 2>&5 23884 ac_status=$? 23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23886 (exit $ac_status); }; } && 23887 { ac_try='test -s conftest$ac_exeext' 23888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23889 (eval $ac_try) 2>&5 23890 ac_status=$? 23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23892 (exit $ac_status); }; }; then 23893 echo "$as_me:$LINENO: result: yes" >&5 23894 echo "${ECHO_T}yes" >&6 23895 use_lapack=-lcomplib.sgimath; 23896 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 23897 else 23898 echo "$as_me: failed program was:" >&5 23899 sed 's/^/| /' conftest.$ac_ext >&5 23900 23901 echo "$as_me:$LINENO: result: no" >&5 23902 echo "${ECHO_T}no" >&6 23903 SAVE_LIBS="$LIBS" 23904 fi 23905 rm -f conftest.err conftest.$ac_objext \ 23906 conftest$ac_exeext conftest.$ac_ext 23907 ;; 23908 c) 23909 ac_ext=f 23910 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 23911 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23912 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 23913 case $ac_cv_f77_mangling in 23914 upper*) ac_val="DSYEV" ;; 23915 lower*) ac_val="dsyev" ;; 23916 *) ac_val="unknown" ;; 23917 esac 23918 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 23919 23920 cfuncdsyev="$ac_val" 23921 23922 ac_ext=c 23923 ac_cpp='$CPP $CPPFLAGS' 23924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23927 23928 if test x"$coin_need_flibs" = xyes; then 23929 flink_try=no; 23930 else 23931 cat >conftest.$ac_ext <<_ACEOF 23932 /* confdefs.h. */ 23933 _ACEOF 23934 cat confdefs.h >>conftest.$ac_ext 23935 cat >>conftest.$ac_ext <<_ACEOF 23936 /* end confdefs.h. */ 23937 void $cfuncdsyev(); 23938 #ifdef F77_DUMMY_MAIN 23939 23940 # ifdef __cplusplus 23941 extern "C" 23942 # endif 23943 int F77_DUMMY_MAIN() { return 1; } 23944 23945 #endif 23946 int 23947 main () 23948 { 23949 $cfuncdsyev() 23950 ; 23951 return 0; 23952 } 23953 _ACEOF 23954 rm -f conftest.$ac_objext conftest$ac_exeext 23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23956 (eval $ac_link) 2>conftest.er1 23957 ac_status=$? 23958 grep -v '^ *+' conftest.er1 >conftest.err 23959 rm -f conftest.er1 23960 cat conftest.err >&5 23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23962 (exit $ac_status); } && 23963 { ac_try='test -z "$ac_c_werror_flag" 23964 || test ! -s conftest.err' 23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23966 (eval $ac_try) 2>&5 23967 ac_status=$? 23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23969 (exit $ac_status); }; } && 23970 { ac_try='test -s conftest$ac_exeext' 23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23972 (eval $ac_try) 2>&5 23973 ac_status=$? 23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23975 (exit $ac_status); }; }; then 23976 flink_try=yes 23977 else 23978 echo "$as_me: failed program was:" >&5 23979 sed 's/^/| /' conftest.$ac_ext >&5 23980 23981 flink_try=no 23982 fi 23983 rm -f conftest.err conftest.$ac_objext \ 23984 conftest$ac_exeext conftest.$ac_ext 23985 fi 23986 if test $flink_try = yes; then 23987 echo "$as_me:$LINENO: result: yes" >&5 23988 echo "${ECHO_T}yes" >&6 23989 use_lapack=-lcomplib.sgimath; 23990 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 23991 else 23992 if test x"$FLIBS" != x; then 23993 flink_save_libs="$LIBS" 23994 LIBS="$LIBS $FLIBS" 23995 cat >conftest.$ac_ext <<_ACEOF 23996 /* confdefs.h. */ 23997 _ACEOF 23998 cat confdefs.h >>conftest.$ac_ext 23999 cat >>conftest.$ac_ext <<_ACEOF 24000 /* end confdefs.h. */ 24001 void $cfuncdsyev(); 24002 #ifdef F77_DUMMY_MAIN 24003 24004 # ifdef __cplusplus 24005 extern "C" 24006 # endif 24007 int F77_DUMMY_MAIN() { return 1; } 24008 24009 #endif 24010 int 24011 main () 24012 { 24013 $cfuncdsyev() 24014 ; 24015 return 0; 24016 } 24017 _ACEOF 24018 rm -f conftest.$ac_objext conftest$ac_exeext 24019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24020 (eval $ac_link) 2>conftest.er1 24021 ac_status=$? 24022 grep -v '^ *+' conftest.er1 >conftest.err 24023 rm -f conftest.er1 24024 cat conftest.err >&5 24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24026 (exit $ac_status); } && 24027 { ac_try='test -z "$ac_c_werror_flag" 24028 || test ! -s conftest.err' 24029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24030 (eval $ac_try) 2>&5 24031 ac_status=$? 24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24033 (exit $ac_status); }; } && 24034 { ac_try='test -s conftest$ac_exeext' 24035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24036 (eval $ac_try) 2>&5 24037 ac_status=$? 24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24039 (exit $ac_status); }; }; then 24040 LIBS="$flink_save_libs" 24041 echo "$as_me:$LINENO: result: yes" >&5 24042 echo "${ECHO_T}yes" >&6 24043 use_lapack=-lcomplib.sgimath; 24044 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 24045 coin_need_flibs=yes 24046 else 24047 echo "$as_me: failed program was:" >&5 24048 sed 's/^/| /' conftest.$ac_ext >&5 24049 24050 LIBS="$flink_save_libs" 24051 echo "$as_me:$LINENO: result: no" >&5 24052 echo "${ECHO_T}no" >&6 24053 SAVE_LIBS="$LIBS" 24054 fi 24055 rm -f conftest.err conftest.$ac_objext \ 24056 conftest$ac_exeext conftest.$ac_ext 24057 else 24058 echo "$as_me:$LINENO: result: no" >&5 24059 echo "${ECHO_T}no" >&6 24060 SAVE_LIBS="$LIBS" 24061 fi 24062 fi 24063 ;; 24064 cc|cpp) 24065 ac_ext=f 24066 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 24067 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24068 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 24069 case $ac_cv_f77_mangling in 24070 upper*) ac_val="DSYEV" ;; 24071 lower*) ac_val="dsyev" ;; 24072 *) ac_val="unknown" ;; 24073 esac 24074 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 24075 24076 cfuncdsyev="$ac_val" 24077 24078 ac_ext=c 24079 ac_cpp='$CPP $CPPFLAGS' 24080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24082 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24083 24084 if test x"$coin_need_flibs" = xyes; then 24085 flink_try=no; 24086 else 24087 cat >conftest.$ac_ext <<_ACEOF 24088 /* confdefs.h. */ 24089 _ACEOF 24090 cat confdefs.h >>conftest.$ac_ext 24091 cat >>conftest.$ac_ext <<_ACEOF 24092 /* end confdefs.h. */ 24093 extern "C" {void $cfuncdsyev();} 24094 #ifdef F77_DUMMY_MAIN 24095 24096 # ifdef __cplusplus 24097 extern "C" 24098 # endif 24099 int F77_DUMMY_MAIN() { return 1; } 24100 24101 #endif 24102 int 24103 main () 24104 { 24105 $cfuncdsyev() 24106 ; 24107 return 0; 24108 } 24109 _ACEOF 24110 rm -f conftest.$ac_objext conftest$ac_exeext 24111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24112 (eval $ac_link) 2>conftest.er1 24113 ac_status=$? 24114 grep -v '^ *+' conftest.er1 >conftest.err 24115 rm -f conftest.er1 24116 cat conftest.err >&5 24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24118 (exit $ac_status); } && 24119 { ac_try='test -z "$ac_c_werror_flag" 24120 || test ! -s conftest.err' 24121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24122 (eval $ac_try) 2>&5 24123 ac_status=$? 24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24125 (exit $ac_status); }; } && 24126 { ac_try='test -s conftest$ac_exeext' 24127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24128 (eval $ac_try) 2>&5 24129 ac_status=$? 24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24131 (exit $ac_status); }; }; then 24132 flink_try=yes 24133 else 24134 echo "$as_me: failed program was:" >&5 24135 sed 's/^/| /' conftest.$ac_ext >&5 24136 24137 flink_try=no 24138 fi 24139 rm -f conftest.err conftest.$ac_objext \ 24140 conftest$ac_exeext conftest.$ac_ext 24141 fi 24142 if test $flink_try = yes; then 24143 echo "$as_me:$LINENO: result: yes" >&5 24144 echo "${ECHO_T}yes" >&6 24145 use_lapack=-lcomplib.sgimath; 24146 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 24147 else 24148 if test x"$FLIBS" != x; then 24149 flink_save_libs="$LIBS" 24150 LIBS="$LIBS $FLIBS" 24151 cat >conftest.$ac_ext <<_ACEOF 24152 /* confdefs.h. */ 24153 _ACEOF 24154 cat confdefs.h >>conftest.$ac_ext 24155 cat >>conftest.$ac_ext <<_ACEOF 24156 /* end confdefs.h. */ 24157 extern "C" {void $cfuncdsyev();} 24158 #ifdef F77_DUMMY_MAIN 24159 24160 # ifdef __cplusplus 24161 extern "C" 24162 # endif 24163 int F77_DUMMY_MAIN() { return 1; } 24164 24165 #endif 24166 int 24167 main () 24168 { 24169 $cfuncdsyev() 24170 ; 24171 return 0; 24172 } 24173 _ACEOF 24174 rm -f conftest.$ac_objext conftest$ac_exeext 24175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24176 (eval $ac_link) 2>conftest.er1 24177 ac_status=$? 24178 grep -v '^ *+' conftest.er1 >conftest.err 24179 rm -f conftest.er1 24180 cat conftest.err >&5 24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24182 (exit $ac_status); } && 24183 { ac_try='test -z "$ac_c_werror_flag" 24184 || test ! -s conftest.err' 24185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24186 (eval $ac_try) 2>&5 24187 ac_status=$? 24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24189 (exit $ac_status); }; } && 24190 { ac_try='test -s conftest$ac_exeext' 24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24192 (eval $ac_try) 2>&5 24193 ac_status=$? 24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24195 (exit $ac_status); }; }; then 24196 LIBS="$flink_save_libs" 24197 echo "$as_me:$LINENO: result: yes" >&5 24198 echo "${ECHO_T}yes" >&6 24199 use_lapack=-lcomplib.sgimath; 24200 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 24201 coin_need_flibs=yes 24202 else 24203 echo "$as_me: failed program was:" >&5 24204 sed 's/^/| /' conftest.$ac_ext >&5 24205 24206 LIBS="$flink_save_libs" 24207 echo "$as_me:$LINENO: result: no" >&5 24208 echo "${ECHO_T}no" >&6 24209 SAVE_LIBS="$LIBS" 24210 fi 24211 rm -f conftest.err conftest.$ac_objext \ 24212 conftest$ac_exeext conftest.$ac_ext 24213 else 24214 echo "$as_me:$LINENO: result: no" >&5 24215 echo "${ECHO_T}no" >&6 24216 SAVE_LIBS="$LIBS" 24217 fi 24218 fi 24219 ;; 24220 esac 24221 24222 ;; 24223 24224 # See comments in COIN_HAS_BLAS. 24225 *-*-solaris*) 24226 SAVE_LIBS="$LIBS" 24227 echo "$as_me:$LINENO: checking for LAPACK in libsunperf" >&5 24228 echo $ECHO_N "checking for LAPACK in libsunperf... $ECHO_C" >&6 24229 LIBS="-lsunperf $FLIBS $LIBS" 24230 case $ac_ext in 24231 f) 24232 cat >conftest.$ac_ext <<_ACEOF 24233 /* confdefs.h. */ 24234 _ACEOF 24235 cat confdefs.h >>conftest.$ac_ext 24236 cat >>conftest.$ac_ext <<_ACEOF 24237 /* end confdefs.h. */ 24238 24239 #ifdef F77_DUMMY_MAIN 24240 24241 # ifdef __cplusplus 24242 extern "C" 24243 # endif 24244 int F77_DUMMY_MAIN() { return 1; } 24245 24246 #endif 24247 int 24248 main () 24249 { 24250 call dsyev 24251 ; 24252 return 0; 24253 } 24254 _ACEOF 24255 rm -f conftest.$ac_objext conftest$ac_exeext 24256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24257 (eval $ac_link) 2>conftest.er1 24258 ac_status=$? 24259 grep -v '^ *+' conftest.er1 >conftest.err 24260 rm -f conftest.er1 24261 cat conftest.err >&5 24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24263 (exit $ac_status); } && 24264 { ac_try='test -z "$ac_c_werror_flag" 24265 || test ! -s conftest.err' 24266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24267 (eval $ac_try) 2>&5 24268 ac_status=$? 24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24270 (exit $ac_status); }; } && 24271 { ac_try='test -s conftest$ac_exeext' 24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24273 (eval $ac_try) 2>&5 24274 ac_status=$? 24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24276 (exit $ac_status); }; }; then 24277 echo "$as_me:$LINENO: result: yes" >&5 24278 echo "${ECHO_T}yes" >&6 24279 use_blas='-lsunperf' 24280 ADDLIBS="-lsunperf $ADDLIBS" 24281 coin_need_flibs=yes 24282 else 24283 echo "$as_me: failed program was:" >&5 24284 sed 's/^/| /' conftest.$ac_ext >&5 24285 24286 echo "$as_me:$LINENO: result: no" >&5 24287 echo "${ECHO_T}no" >&6 24288 LIBS="$SAVE_LIBS" 24289 fi 24290 rm -f conftest.err conftest.$ac_objext \ 24291 conftest$ac_exeext conftest.$ac_ext 24292 ;; 24293 c) 24294 ac_ext=f 24295 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 24296 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24297 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 24298 case $ac_cv_f77_mangling in 24299 upper*) ac_val="DSYEV" ;; 24300 lower*) ac_val="dsyev" ;; 24301 *) ac_val="unknown" ;; 24302 esac 24303 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 24304 24305 cfuncdsyev="$ac_val" 24306 24307 ac_ext=c 24308 ac_cpp='$CPP $CPPFLAGS' 24309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24311 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24312 24313 if test x"$coin_need_flibs" = xyes; then 24314 flink_try=no; 24315 else 24316 cat >conftest.$ac_ext <<_ACEOF 24317 /* confdefs.h. */ 24318 _ACEOF 24319 cat confdefs.h >>conftest.$ac_ext 24320 cat >>conftest.$ac_ext <<_ACEOF 24321 /* end confdefs.h. */ 24322 void $cfuncdsyev(); 24323 #ifdef F77_DUMMY_MAIN 24324 24325 # ifdef __cplusplus 24326 extern "C" 24327 # endif 24328 int F77_DUMMY_MAIN() { return 1; } 24329 24330 #endif 24331 int 24332 main () 24333 { 24334 $cfuncdsyev() 24335 ; 24336 return 0; 24337 } 24338 _ACEOF 24339 rm -f conftest.$ac_objext conftest$ac_exeext 24340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24341 (eval $ac_link) 2>conftest.er1 24342 ac_status=$? 24343 grep -v '^ *+' conftest.er1 >conftest.err 24344 rm -f conftest.er1 24345 cat conftest.err >&5 24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24347 (exit $ac_status); } && 24348 { ac_try='test -z "$ac_c_werror_flag" 24349 || test ! -s conftest.err' 24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24351 (eval $ac_try) 2>&5 24352 ac_status=$? 24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24354 (exit $ac_status); }; } && 24355 { ac_try='test -s conftest$ac_exeext' 24356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24357 (eval $ac_try) 2>&5 24358 ac_status=$? 24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24360 (exit $ac_status); }; }; then 24361 flink_try=yes 24362 else 24363 echo "$as_me: failed program was:" >&5 24364 sed 's/^/| /' conftest.$ac_ext >&5 24365 24366 flink_try=no 24367 fi 24368 rm -f conftest.err conftest.$ac_objext \ 24369 conftest$ac_exeext conftest.$ac_ext 24370 fi 24371 if test $flink_try = yes; then 24372 echo "$as_me:$LINENO: result: yes" >&5 24373 echo "${ECHO_T}yes" >&6 24374 use_blas='-lsunperf' 24375 ADDLIBS="-lsunperf $ADDLIBS" 24376 coin_need_flibs=yes 24377 else 24378 if test x"$FLIBS" != x; then 24379 flink_save_libs="$LIBS" 24380 LIBS="$LIBS $FLIBS" 24381 cat >conftest.$ac_ext <<_ACEOF 24382 /* confdefs.h. */ 24383 _ACEOF 24384 cat confdefs.h >>conftest.$ac_ext 24385 cat >>conftest.$ac_ext <<_ACEOF 24386 /* end confdefs.h. */ 24387 void $cfuncdsyev(); 24388 #ifdef F77_DUMMY_MAIN 24389 24390 # ifdef __cplusplus 24391 extern "C" 24392 # endif 24393 int F77_DUMMY_MAIN() { return 1; } 24394 24395 #endif 24396 int 24397 main () 24398 { 24399 $cfuncdsyev() 24400 ; 24401 return 0; 24402 } 24403 _ACEOF 24404 rm -f conftest.$ac_objext conftest$ac_exeext 24405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24406 (eval $ac_link) 2>conftest.er1 24407 ac_status=$? 24408 grep -v '^ *+' conftest.er1 >conftest.err 24409 rm -f conftest.er1 24410 cat conftest.err >&5 24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24412 (exit $ac_status); } && 24413 { ac_try='test -z "$ac_c_werror_flag" 24414 || test ! -s conftest.err' 24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24416 (eval $ac_try) 2>&5 24417 ac_status=$? 24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24419 (exit $ac_status); }; } && 24420 { ac_try='test -s conftest$ac_exeext' 24421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24422 (eval $ac_try) 2>&5 24423 ac_status=$? 24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24425 (exit $ac_status); }; }; then 24426 LIBS="$flink_save_libs" 24427 echo "$as_me:$LINENO: result: yes" >&5 24428 echo "${ECHO_T}yes" >&6 24429 use_blas='-lsunperf' 24430 ADDLIBS="-lsunperf $ADDLIBS" 24431 coin_need_flibs=yes 24432 coin_need_flibs=yes 24433 else 24434 echo "$as_me: failed program was:" >&5 24435 sed 's/^/| /' conftest.$ac_ext >&5 24436 24437 LIBS="$flink_save_libs" 24438 echo "$as_me:$LINENO: result: no" >&5 24439 echo "${ECHO_T}no" >&6 24440 LIBS="$SAVE_LIBS" 24441 fi 24442 rm -f conftest.err conftest.$ac_objext \ 24443 conftest$ac_exeext conftest.$ac_ext 24444 else 24445 echo "$as_me:$LINENO: result: no" >&5 24446 echo "${ECHO_T}no" >&6 24447 LIBS="$SAVE_LIBS" 24448 fi 24449 fi 24450 ;; 24451 cc|cpp) 24452 ac_ext=f 24453 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 24454 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24455 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 24456 case $ac_cv_f77_mangling in 24457 upper*) ac_val="DSYEV" ;; 24458 lower*) ac_val="dsyev" ;; 24459 *) ac_val="unknown" ;; 24460 esac 24461 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 24462 24463 cfuncdsyev="$ac_val" 24464 24465 ac_ext=c 24466 ac_cpp='$CPP $CPPFLAGS' 24467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24469 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24470 24471 if test x"$coin_need_flibs" = xyes; then 24472 flink_try=no; 24473 else 24474 cat >conftest.$ac_ext <<_ACEOF 24475 /* confdefs.h. */ 24476 _ACEOF 24477 cat confdefs.h >>conftest.$ac_ext 24478 cat >>conftest.$ac_ext <<_ACEOF 24479 /* end confdefs.h. */ 24480 extern "C" {void $cfuncdsyev();} 24481 #ifdef F77_DUMMY_MAIN 24482 24483 # ifdef __cplusplus 24484 extern "C" 24485 # endif 24486 int F77_DUMMY_MAIN() { return 1; } 24487 24488 #endif 24489 int 24490 main () 24491 { 24492 $cfuncdsyev() 24493 ; 24494 return 0; 24495 } 24496 _ACEOF 24497 rm -f conftest.$ac_objext conftest$ac_exeext 24498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24499 (eval $ac_link) 2>conftest.er1 24500 ac_status=$? 24501 grep -v '^ *+' conftest.er1 >conftest.err 24502 rm -f conftest.er1 24503 cat conftest.err >&5 24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24505 (exit $ac_status); } && 24506 { ac_try='test -z "$ac_c_werror_flag" 24507 || test ! -s conftest.err' 24508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24509 (eval $ac_try) 2>&5 24510 ac_status=$? 24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24512 (exit $ac_status); }; } && 24513 { ac_try='test -s conftest$ac_exeext' 24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24515 (eval $ac_try) 2>&5 24516 ac_status=$? 24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24518 (exit $ac_status); }; }; then 24519 flink_try=yes 24520 else 24521 echo "$as_me: failed program was:" >&5 24522 sed 's/^/| /' conftest.$ac_ext >&5 24523 24524 flink_try=no 24525 fi 24526 rm -f conftest.err conftest.$ac_objext \ 24527 conftest$ac_exeext conftest.$ac_ext 24528 fi 24529 if test $flink_try = yes; then 24530 echo "$as_me:$LINENO: result: yes" >&5 24531 echo "${ECHO_T}yes" >&6 24532 use_blas='-lsunperf' 24533 ADDLIBS="-lsunperf $ADDLIBS" 24534 coin_need_flibs=yes 24535 else 24536 if test x"$FLIBS" != x; then 24537 flink_save_libs="$LIBS" 24538 LIBS="$LIBS $FLIBS" 24539 cat >conftest.$ac_ext <<_ACEOF 24540 /* confdefs.h. */ 24541 _ACEOF 24542 cat confdefs.h >>conftest.$ac_ext 24543 cat >>conftest.$ac_ext <<_ACEOF 24544 /* end confdefs.h. */ 24545 extern "C" {void $cfuncdsyev();} 24546 #ifdef F77_DUMMY_MAIN 24547 24548 # ifdef __cplusplus 24549 extern "C" 24550 # endif 24551 int F77_DUMMY_MAIN() { return 1; } 24552 24553 #endif 24554 int 24555 main () 24556 { 24557 $cfuncdsyev() 24558 ; 24559 return 0; 24560 } 24561 _ACEOF 24562 rm -f conftest.$ac_objext conftest$ac_exeext 24563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24564 (eval $ac_link) 2>conftest.er1 24565 ac_status=$? 24566 grep -v '^ *+' conftest.er1 >conftest.err 24567 rm -f conftest.er1 24568 cat conftest.err >&5 24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24570 (exit $ac_status); } && 24571 { ac_try='test -z "$ac_c_werror_flag" 24572 || test ! -s conftest.err' 24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24574 (eval $ac_try) 2>&5 24575 ac_status=$? 24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24577 (exit $ac_status); }; } && 24578 { ac_try='test -s conftest$ac_exeext' 24579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24580 (eval $ac_try) 2>&5 24581 ac_status=$? 24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24583 (exit $ac_status); }; }; then 24584 LIBS="$flink_save_libs" 24585 echo "$as_me:$LINENO: result: yes" >&5 24586 echo "${ECHO_T}yes" >&6 24587 use_blas='-lsunperf' 24588 ADDLIBS="-lsunperf $ADDLIBS" 24589 coin_need_flibs=yes 24590 coin_need_flibs=yes 24591 else 24592 echo "$as_me: failed program was:" >&5 24593 sed 's/^/| /' conftest.$ac_ext >&5 24594 24595 LIBS="$flink_save_libs" 24596 echo "$as_me:$LINENO: result: no" >&5 24597 echo "${ECHO_T}no" >&6 24598 LIBS="$SAVE_LIBS" 24599 fi 24600 rm -f conftest.err conftest.$ac_objext \ 24601 conftest$ac_exeext conftest.$ac_ext 24602 else 24603 echo "$as_me:$LINENO: result: no" >&5 24604 echo "${ECHO_T}no" >&6 24605 LIBS="$SAVE_LIBS" 24606 fi 24607 fi 24608 ;; 24609 esac 24610 24611 ;; 24612 # On cygwin, do this check only if doscompile is disabled. The prebuilt library 24613 # will want to link with cygwin, hence won't run standalone in DOS. 24614 *-cygwin*) 24615 if test "$enable_doscompile" = mingw; then 24616 skip_llapack_check=yes 24617 fi 24618 ;; 24619 esac 24620 fi 24621 24622 if test -z "$use_lapack" && test $skip_llapack_check = no; then 24623 SAVE_LIBS="$LIBS" 24624 echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5 24625 echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6 24626 LIBS="-llapack $LIBS" 24627 case $ac_ext in 24628 f) 24629 cat >conftest.$ac_ext <<_ACEOF 24630 /* confdefs.h. */ 24631 _ACEOF 24632 cat confdefs.h >>conftest.$ac_ext 24633 cat >>conftest.$ac_ext <<_ACEOF 24634 /* end confdefs.h. */ 24635 24636 #ifdef F77_DUMMY_MAIN 24637 24638 # ifdef __cplusplus 24639 extern "C" 24640 # endif 24641 int F77_DUMMY_MAIN() { return 1; } 24642 24643 #endif 24644 int 24645 main () 24646 { 24647 call dsyev 24648 ; 24649 return 0; 24650 } 24651 _ACEOF 24652 rm -f conftest.$ac_objext conftest$ac_exeext 24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24654 (eval $ac_link) 2>conftest.er1 24655 ac_status=$? 24656 grep -v '^ *+' conftest.er1 >conftest.err 24657 rm -f conftest.er1 24658 cat conftest.err >&5 24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24660 (exit $ac_status); } && 24661 { ac_try='test -z "$ac_c_werror_flag" 24662 || test ! -s conftest.err' 24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24664 (eval $ac_try) 2>&5 24665 ac_status=$? 24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24667 (exit $ac_status); }; } && 24668 { ac_try='test -s conftest$ac_exeext' 24669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24670 (eval $ac_try) 2>&5 24671 ac_status=$? 24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24673 (exit $ac_status); }; }; then 24674 echo "$as_me:$LINENO: result: yes" >&5 24675 echo "${ECHO_T}yes" >&6 24676 ADDLIBS="-llapack $ADDLIBS" 24677 use_lapack='-llapack' 24678 else 24679 echo "$as_me: failed program was:" >&5 24680 sed 's/^/| /' conftest.$ac_ext >&5 24681 24682 echo "$as_me:$LINENO: result: no" >&5 24683 echo "${ECHO_T}no" >&6 24684 LIBS="$SAVE_LIBS" 24685 fi 24686 rm -f conftest.err conftest.$ac_objext \ 24687 conftest$ac_exeext conftest.$ac_ext 24688 ;; 24689 c) 24690 ac_ext=f 24691 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 24692 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24693 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 24694 case $ac_cv_f77_mangling in 24695 upper*) ac_val="DSYEV" ;; 24696 lower*) ac_val="dsyev" ;; 24697 *) ac_val="unknown" ;; 24698 esac 24699 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 24700 24701 cfuncdsyev="$ac_val" 24702 24703 ac_ext=c 24704 ac_cpp='$CPP $CPPFLAGS' 24705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24707 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24708 24709 if test x"$coin_need_flibs" = xyes; then 24710 flink_try=no; 24711 else 24712 cat >conftest.$ac_ext <<_ACEOF 24713 /* confdefs.h. */ 24714 _ACEOF 24715 cat confdefs.h >>conftest.$ac_ext 24716 cat >>conftest.$ac_ext <<_ACEOF 24717 /* end confdefs.h. */ 24718 void $cfuncdsyev(); 24719 #ifdef F77_DUMMY_MAIN 24720 24721 # ifdef __cplusplus 24722 extern "C" 24723 # endif 24724 int F77_DUMMY_MAIN() { return 1; } 24725 24726 #endif 24727 int 24728 main () 24729 { 24730 $cfuncdsyev() 24731 ; 24732 return 0; 24733 } 24734 _ACEOF 24735 rm -f conftest.$ac_objext conftest$ac_exeext 24736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24737 (eval $ac_link) 2>conftest.er1 24738 ac_status=$? 24739 grep -v '^ *+' conftest.er1 >conftest.err 24740 rm -f conftest.er1 24741 cat conftest.err >&5 24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24743 (exit $ac_status); } && 24744 { ac_try='test -z "$ac_c_werror_flag" 24745 || test ! -s conftest.err' 24746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24747 (eval $ac_try) 2>&5 24748 ac_status=$? 24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24750 (exit $ac_status); }; } && 24751 { ac_try='test -s conftest$ac_exeext' 24752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24753 (eval $ac_try) 2>&5 24754 ac_status=$? 24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24756 (exit $ac_status); }; }; then 24757 flink_try=yes 24758 else 24759 echo "$as_me: failed program was:" >&5 24760 sed 's/^/| /' conftest.$ac_ext >&5 24761 24762 flink_try=no 24763 fi 24764 rm -f conftest.err conftest.$ac_objext \ 24765 conftest$ac_exeext conftest.$ac_ext 24766 fi 24767 if test $flink_try = yes; then 24768 echo "$as_me:$LINENO: result: yes" >&5 24769 echo "${ECHO_T}yes" >&6 24770 ADDLIBS="-llapack $ADDLIBS" 24771 use_lapack='-llapack' 24772 else 24773 if test x"$FLIBS" != x; then 24774 flink_save_libs="$LIBS" 24775 LIBS="$LIBS $FLIBS" 24776 cat >conftest.$ac_ext <<_ACEOF 24777 /* confdefs.h. */ 24778 _ACEOF 24779 cat confdefs.h >>conftest.$ac_ext 24780 cat >>conftest.$ac_ext <<_ACEOF 24781 /* end confdefs.h. */ 24782 void $cfuncdsyev(); 24783 #ifdef F77_DUMMY_MAIN 24784 24785 # ifdef __cplusplus 24786 extern "C" 24787 # endif 24788 int F77_DUMMY_MAIN() { return 1; } 24789 24790 #endif 24791 int 24792 main () 24793 { 24794 $cfuncdsyev() 24795 ; 24796 return 0; 24797 } 24798 _ACEOF 24799 rm -f conftest.$ac_objext conftest$ac_exeext 24800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24801 (eval $ac_link) 2>conftest.er1 24802 ac_status=$? 24803 grep -v '^ *+' conftest.er1 >conftest.err 24804 rm -f conftest.er1 24805 cat conftest.err >&5 24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24807 (exit $ac_status); } && 24808 { ac_try='test -z "$ac_c_werror_flag" 24809 || test ! -s conftest.err' 24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24811 (eval $ac_try) 2>&5 24812 ac_status=$? 24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24814 (exit $ac_status); }; } && 24815 { ac_try='test -s conftest$ac_exeext' 24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24817 (eval $ac_try) 2>&5 24818 ac_status=$? 24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24820 (exit $ac_status); }; }; then 24821 LIBS="$flink_save_libs" 24822 echo "$as_me:$LINENO: result: yes" >&5 24823 echo "${ECHO_T}yes" >&6 24824 ADDLIBS="-llapack $ADDLIBS" 24825 use_lapack='-llapack' 24826 coin_need_flibs=yes 24827 else 24828 echo "$as_me: failed program was:" >&5 24829 sed 's/^/| /' conftest.$ac_ext >&5 24830 24831 LIBS="$flink_save_libs" 24832 echo "$as_me:$LINENO: result: no" >&5 24833 echo "${ECHO_T}no" >&6 24834 LIBS="$SAVE_LIBS" 24835 fi 24836 rm -f conftest.err conftest.$ac_objext \ 24837 conftest$ac_exeext conftest.$ac_ext 24838 else 24839 echo "$as_me:$LINENO: result: no" >&5 24840 echo "${ECHO_T}no" >&6 24841 LIBS="$SAVE_LIBS" 24842 fi 24843 fi 24844 ;; 24845 cc|cpp) 24846 ac_ext=f 24847 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 24848 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24849 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 24850 case $ac_cv_f77_mangling in 24851 upper*) ac_val="DSYEV" ;; 24852 lower*) ac_val="dsyev" ;; 24853 *) ac_val="unknown" ;; 24854 esac 24855 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 24856 24857 cfuncdsyev="$ac_val" 24858 24859 ac_ext=c 24860 ac_cpp='$CPP $CPPFLAGS' 24861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24863 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24864 24865 if test x"$coin_need_flibs" = xyes; then 24866 flink_try=no; 24867 else 24868 cat >conftest.$ac_ext <<_ACEOF 24869 /* confdefs.h. */ 24870 _ACEOF 24871 cat confdefs.h >>conftest.$ac_ext 24872 cat >>conftest.$ac_ext <<_ACEOF 24873 /* end confdefs.h. */ 24874 extern "C" {void $cfuncdsyev();} 24875 #ifdef F77_DUMMY_MAIN 24876 24877 # ifdef __cplusplus 24878 extern "C" 24879 # endif 24880 int F77_DUMMY_MAIN() { return 1; } 24881 24882 #endif 24883 int 24884 main () 24885 { 24886 $cfuncdsyev() 24887 ; 24888 return 0; 24889 } 24890 _ACEOF 24891 rm -f conftest.$ac_objext conftest$ac_exeext 24892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24893 (eval $ac_link) 2>conftest.er1 24894 ac_status=$? 24895 grep -v '^ *+' conftest.er1 >conftest.err 24896 rm -f conftest.er1 24897 cat conftest.err >&5 24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24899 (exit $ac_status); } && 24900 { ac_try='test -z "$ac_c_werror_flag" 24901 || test ! -s conftest.err' 24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24903 (eval $ac_try) 2>&5 24904 ac_status=$? 24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24906 (exit $ac_status); }; } && 24907 { ac_try='test -s conftest$ac_exeext' 24908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24909 (eval $ac_try) 2>&5 24910 ac_status=$? 24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24912 (exit $ac_status); }; }; then 24913 flink_try=yes 24914 else 24915 echo "$as_me: failed program was:" >&5 24916 sed 's/^/| /' conftest.$ac_ext >&5 24917 24918 flink_try=no 24919 fi 24920 rm -f conftest.err conftest.$ac_objext \ 24921 conftest$ac_exeext conftest.$ac_ext 24922 fi 24923 if test $flink_try = yes; then 24924 echo "$as_me:$LINENO: result: yes" >&5 24925 echo "${ECHO_T}yes" >&6 24926 ADDLIBS="-llapack $ADDLIBS" 24927 use_lapack='-llapack' 24928 else 24929 if test x"$FLIBS" != x; then 24930 flink_save_libs="$LIBS" 24931 LIBS="$LIBS $FLIBS" 24932 cat >conftest.$ac_ext <<_ACEOF 24933 /* confdefs.h. */ 24934 _ACEOF 24935 cat confdefs.h >>conftest.$ac_ext 24936 cat >>conftest.$ac_ext <<_ACEOF 24937 /* end confdefs.h. */ 24938 extern "C" {void $cfuncdsyev();} 24939 #ifdef F77_DUMMY_MAIN 24940 24941 # ifdef __cplusplus 24942 extern "C" 24943 # endif 24944 int F77_DUMMY_MAIN() { return 1; } 24945 24946 #endif 24947 int 24948 main () 24949 { 24950 $cfuncdsyev() 24951 ; 24952 return 0; 24953 } 24954 _ACEOF 24955 rm -f conftest.$ac_objext conftest$ac_exeext 24956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24957 (eval $ac_link) 2>conftest.er1 24958 ac_status=$? 24959 grep -v '^ *+' conftest.er1 >conftest.err 24960 rm -f conftest.er1 24961 cat conftest.err >&5 24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24963 (exit $ac_status); } && 24964 { ac_try='test -z "$ac_c_werror_flag" 24965 || test ! -s conftest.err' 24966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24967 (eval $ac_try) 2>&5 24968 ac_status=$? 24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24970 (exit $ac_status); }; } && 24971 { ac_try='test -s conftest$ac_exeext' 24972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24973 (eval $ac_try) 2>&5 24974 ac_status=$? 24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24976 (exit $ac_status); }; }; then 24977 LIBS="$flink_save_libs" 24978 echo "$as_me:$LINENO: result: yes" >&5 24979 echo "${ECHO_T}yes" >&6 24980 ADDLIBS="-llapack $ADDLIBS" 24981 use_lapack='-llapack' 24982 coin_need_flibs=yes 24983 else 24984 echo "$as_me: failed program was:" >&5 24985 sed 's/^/| /' conftest.$ac_ext >&5 24986 24987 LIBS="$flink_save_libs" 24988 echo "$as_me:$LINENO: result: no" >&5 24989 echo "${ECHO_T}no" >&6 24990 LIBS="$SAVE_LIBS" 24991 fi 24992 rm -f conftest.err conftest.$ac_objext \ 24993 conftest$ac_exeext conftest.$ac_ext 24994 else 24995 echo "$as_me:$LINENO: result: no" >&5 24996 echo "${ECHO_T}no" >&6 24997 LIBS="$SAVE_LIBS" 24998 fi 24999 fi 25000 ;; 25001 esac 25002 25003 fi 25004 25005 # If we have no other ideas, consider building LAPACK. 25006 if test -z "$use_lapack"; then 25007 if test "$PACKAGE_NAME" != ThirdPartyLapack; then 25008 if test -r $coin_lapackobjdir/.MakeOk; then 25009 use_lapack=BUILD 25010 fi 20409 25011 fi 20410 25012 fi 20411 25013 fi 20412 25014 20413 if test $coin_has_lapack != unavailable && 20414 test $coin_has_lapack != skipping; then 20415 # Set the #define if the component is available 25015 if test "$use_lapack" = BUILD; then 25016 coin_need_flibs=yes 25017 fi 25018 25019 25020 25021 if test x"$use_lapack" != x; then 25022 COIN_HAS_LAPACK_TRUE= 25023 COIN_HAS_LAPACK_FALSE='#' 25024 else 25025 COIN_HAS_LAPACK_TRUE='#' 25026 COIN_HAS_LAPACK_FALSE= 25027 fi 25028 25029 25030 25031 if test "$use_lapack" = BUILD; then 25032 COIN_BUILD_LAPACK_TRUE= 25033 COIN_BUILD_LAPACK_FALSE='#' 25034 else 25035 COIN_BUILD_LAPACK_TRUE='#' 25036 COIN_BUILD_LAPACK_FALSE= 25037 fi 25038 25039 25040 if test x"$use_lapack" = x || test "$use_lapack" = no; then 25041 coin_has_lapack=no 25042 else 25043 coin_has_lapack=yes 20416 25044 20417 25045 cat >>confdefs.h <<\_ACEOF … … 20419 25047 _ACEOF 20420 25048 20421 20422 # Set the variables for source and object code location 20423 20424 LAPACKSRCDIR=`cd $srcdir/$coin_has_lapack; pwd` 20425 20426 LAPACKOBJDIR=`pwd`/$coin_has_lapack 20427 20428 LAPACKDOCDIR=$abs_lib_dir/../share/doc/coin/Lapack 20429 fi 20430 20431 # Define the Makefile conditional 20432 20433 20434 if test $coin_has_lapack != unavailable && 20435 test $coin_has_lapack != skipping; then 20436 COIN_HAS_LAPACK_TRUE= 20437 COIN_HAS_LAPACK_FALSE='#' 20438 else 20439 COIN_HAS_LAPACK_TRUE='#' 20440 COIN_HAS_LAPACK_FALSE= 20441 fi 20442 20443 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5 20444 echo "${ECHO_T}$coin_has_lapack" >&6 20445 20446 20447 # Check if Lapack is already available on the system or provided by user 20448 #save_LIBS="$LIBS" 20449 #AC_COIN_HAS_BLAS 20450 #LIBS="$save_LIBS" # we need to make sure that blas libraries are not in LIBS 20451 20452 #AC_COIN_HAS_LAPACK 20453 #MAKEOKFILE=.MakeOk 20454 #if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then 20455 # rm -f $MAKEOKFILE 20456 # AC_MSG_NOTICE([The Lapack sources don't need to be compiled]) 20457 # MAKEOKFILE= 20458 #else 20459 # touch $MAKEOKFILE 20460 #fi 20461 #AC_SUBST(MAKEOKFILE) 20462 #AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE") 25049 fi 25050 25051 MAKEOKFILE=.MakeOk 25052 if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then 25053 rm -f $MAKEOKFILE 25054 { echo "$as_me:$LINENO: The Lapack sources don't need to be compiled" >&5 25055 echo "$as_me: The Lapack sources don't need to be compiled" >&6;} 25056 MAKEOKFILE= 25057 else 25058 touch $MAKEOKFILE 25059 fi 25060 25061 25062 25063 if test -z "$MAKEOKFILE"; then 25064 SKIPMAKE_TRUE= 25065 SKIPMAKE_FALSE='#' 25066 else 25067 SKIPMAKE_TRUE='#' 25068 SKIPMAKE_FALSE= 25069 fi 25070 20463 25071 20464 25072 ############################################################################# … … 20466 25074 ############################################################################# 20467 25075 20468 #if test x"$MAKEOKFILE" != x; then25076 if test x"$MAKEOKFILE" != x; then 20469 25077 lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f' 20470 25078 for file in $lapack_source_files; do … … 20477 25085 20478 25086 done 20479 #fi20480 20481 ac_config_files="$ac_config_files Makefile lapack_addlibs.txt lapack.pc lapack-uninstalled.pc"25087 fi 25088 25089 ac_config_files="$ac_config_files Makefile" 20482 25090 20483 25091 … … 20710 25318 { (exit 1); exit 1; }; } 20711 25319 fi 25320 if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then 25321 { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined. 25322 Usually this means the macro was only invoked conditionally." >&5 25323 echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined. 25324 Usually this means the macro was only invoked conditionally." >&2;} 25325 { (exit 1); exit 1; }; } 25326 fi 20712 25327 if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then 20713 25328 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined. 20714 25329 Usually this means the macro was only invoked conditionally." >&5 20715 25330 echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined. 25331 Usually this means the macro was only invoked conditionally." >&2;} 25332 { (exit 1); exit 1; }; } 25333 fi 25334 if test -z "${COIN_BUILD_LAPACK_TRUE}" && test -z "${COIN_BUILD_LAPACK_FALSE}"; then 25335 { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_LAPACK\" was never defined. 25336 Usually this means the macro was only invoked conditionally." >&5 25337 echo "$as_me: error: conditional \"COIN_BUILD_LAPACK\" was never defined. 25338 Usually this means the macro was only invoked conditionally." >&2;} 25339 { (exit 1); exit 1; }; } 25340 fi 25341 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then 25342 { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined. 25343 Usually this means the macro was only invoked conditionally." >&5 25344 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined. 20716 25345 Usually this means the macro was only invoked conditionally." >&2;} 20717 25346 { (exit 1); exit 1; }; } … … 21160 25789 # Handling of arguments. 21161 25790 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21162 "lapack_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES lapack_addlibs.txt" ;;21163 "lapack.pc" ) CONFIG_FILES="$CONFIG_FILES lapack.pc" ;;21164 "lapack-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES lapack-uninstalled.pc" ;;21165 25791 "$file" ) CONFIG_LINKS="$CONFIG_LINKS $file:LAPACK/SRC/$file" ;; 21166 25792 "$file_in_install" ) CONFIG_LINKS="$CONFIG_LINKS $file_in_install:LAPACK/INSTALL/$file_in_install" ;; … … 21350 25976 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 21351 25977 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 21352 s,@BLASSRCDIR@,$BLASSRCDIR,;t t 21353 s,@BLASOBJDIR@,$BLASOBJDIR,;t t 21354 s,@BLASDOCDIR@,$BLASDOCDIR,;t t 25978 s,@FLIBS@,$FLIBS,;t t 21355 25979 s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t 21356 25980 s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t 21357 s,@LAPACKSRCDIR@,$LAPACKSRCDIR,;t t 21358 s,@LAPACKOBJDIR@,$LAPACKOBJDIR,;t t 21359 s,@LAPACKDOCDIR@,$LAPACKDOCDIR,;t t 25981 s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t 25982 s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t 21360 25983 s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t 21361 25984 s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t 25985 s,@COIN_BUILD_LAPACK_TRUE@,$COIN_BUILD_LAPACK_TRUE,;t t 25986 s,@COIN_BUILD_LAPACK_FALSE@,$COIN_BUILD_LAPACK_FALSE,;t t 25987 s,@MAKEOKFILE@,$MAKEOKFILE,;t t 25988 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t 25989 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t 21362 25990 s,@LIBEXT@,$LIBEXT,;t t 21363 25991 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
Note: See TracChangeset
for help on using the changeset viewer.