Changeset 273
- Timestamp:
- Mar 26, 2007 4:42:19 PM (14 years ago)
- Location:
- ThirdParty/Blas/stable/1.0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Blas/stable/1.0/Makefile.am
r49 r273 1 # Copyright (C) 2003, 200 6International Business Machines and others.1 # Copyright (C) 2003, 2007 International Business Machines and others. 2 2 # All Rights Reserved. 3 3 # This file is distributed under the Common Public License. … … 9 9 EXTRA_DIST = get.blas INSTALL.BLAS 10 10 11 noinst_LTLIBRARIES = libcoinblas.la 11 if SKIPMAKE 12 noinst_LTLIBRARIES = 13 else 14 noinst_LTLIBRARIES = libcoinblas.la 15 endif 12 16 13 17 nodist_libcoinblas_la_SOURCES = \ … … 57 61 58 62 # Files that are generated and should be cleaned with make distclean 59 DISTCLEANFILES = 63 DISTCLEANFILES = $(MAKEOKFILE) 60 64 61 65 include ../../BuildTools/Makemain.inc -
ThirdParty/Blas/stable/1.0/Makefile.in
r218 r273 15 15 @SET_MAKE@ 16 16 17 # Copyright (C) 2003, 200 6International Business Machines and others.17 # Copyright (C) 2003, 2007 International Business Machines and others. 18 18 # All Rights Reserved. 19 19 # This file is distributed under the Common Public License. … … 78 78 dtrmv.lo dtrsm.lo dtrsv.lo idamax.lo lsame.lo xerbla.lo 79 79 libcoinblas_la_OBJECTS = $(nodist_libcoinblas_la_OBJECTS) 80 @SKIPMAKE_FALSE@am_libcoinblas_la_rpath = 80 81 DEFAULT_INCLUDES = -I. -I$(srcdir) 81 82 F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) … … 120 121 CDEFS = @CDEFS@ 121 122 CFLAGS = @CFLAGS@ 123 COIN_BUILD_BLAS_FALSE = @COIN_BUILD_BLAS_FALSE@ 124 COIN_BUILD_BLAS_TRUE = @COIN_BUILD_BLAS_TRUE@ 125 COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@ 126 COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@ 122 127 CPP = @CPP@ 123 128 CPPFLAGS = @CPPFLAGS@ … … 140 145 FADDLIBS = @FADDLIBS@ 141 146 FFLAGS = @FFLAGS@ 147 FLIBS = @FLIBS@ 142 148 HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@ 143 149 HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@ … … 159 165 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ 160 166 MAKEINFO = @MAKEINFO@ 167 MAKEOKFILE = @MAKEOKFILE@ 161 168 MPICC = @MPICC@ 162 169 MPIF77 = @MPIF77@ … … 175 182 SET_MAKE = @SET_MAKE@ 176 183 SHELL = @SHELL@ 184 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@ 185 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@ 177 186 STRIP = @STRIP@ 178 187 VERSION = @VERSION@ … … 232 241 AUTOMAKE_OPTIONS = foreign 233 242 EXTRA_DIST = get.blas INSTALL.BLAS $(am__append_1) 234 noinst_LTLIBRARIES = libcoinblas.la 243 @SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinblas.la 244 @SKIPMAKE_TRUE@noinst_LTLIBRARIES = 235 245 nodist_libcoinblas_la_SOURCES = \ 236 246 dasum.f \ … … 279 289 280 290 # Files that are generated and should be cleaned with make distclean 281 DISTCLEANFILES = $( am__append_2) $(VPATH_DISTCLEANFILES)291 DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES) 282 292 all: all-am 283 293 … … 327 337 done 328 338 libcoinblas.la: $(libcoinblas_la_OBJECTS) $(libcoinblas_la_DEPENDENCIES) 329 $(F77LINK) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)339 $(F77LINK) $(am_libcoinblas_la_rpath) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS) 330 340 331 341 mostlyclean-compile: -
ThirdParty/Blas/stable/1.0/configure
r218 r273 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1100 1100 --with-tags[=TAGS] 1101 1101 include additional configurations [automatic] 1102 --with-blas specify BLAS library (or BUILD for compilation) 1102 1103 1103 1104 Some influential environment variables: … … 3196 3197 3197 3198 # Provide some information about the compiler. 3198 echo "$as_me:319 8:" \3199 echo "$as_me:3199:" \ 3199 3200 "checking for Fortran 77 compiler version" >&5 3200 3201 ac_compiler=`set X $ac_compile; echo $2` … … 4795 4796 4796 4797 4797 unset ac_cv_file__________libtool4798 unset ac_cv_file_______libtool4799 unset ac_cv_file____libtool4800 4801 4798 LIBTOOL= 4802 echo "$as_me:$LINENO: checking for ../libtool" >&5 4803 echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6 4804 if test "${ac_cv_file____libtool+set}" = set; then 4805 echo $ECHO_N "(cached) $ECHO_C" >&6 4806 else 4807 test "$cross_compiling" = yes && 4808 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 4809 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 4810 { (exit 1); exit 1; }; } 4811 if test -r "../libtool"; then 4812 ac_cv_file____libtool=yes 4813 else 4814 ac_cv_file____libtool=no 4815 fi 4816 fi 4817 echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5 4818 echo "${ECHO_T}$ac_cv_file____libtool" >&6 4819 if test $ac_cv_file____libtool = yes; then 4799 if test -r ../libtool; then 4820 4800 coin_config_dir=.. 4821 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 4822 fi 4823 4801 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 4802 fi 4824 4803 if test "x$LIBTOOL" = x; then 4825 echo "$as_me:$LINENO: checking for ../../libtool" >&5 4826 echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6 4827 if test "${ac_cv_file_______libtool+set}" = set; then 4828 echo $ECHO_N "(cached) $ECHO_C" >&6 4829 else 4830 test "$cross_compiling" = yes && 4831 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 4832 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 4833 { (exit 1); exit 1; }; } 4834 if test -r "../../libtool"; then 4835 ac_cv_file_______libtool=yes 4836 else 4837 ac_cv_file_______libtool=no 4838 fi 4839 fi 4840 echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5 4841 echo "${ECHO_T}$ac_cv_file_______libtool" >&6 4842 if test $ac_cv_file_______libtool = yes; then 4843 coin_config_dir=../.. 4844 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 4845 fi 4846 4847 fi 4848 # if test "x$LIBTOOL" = x; then 4849 # AC_CHECK_FILE([../../../libtool], 4850 # [coin_config_dir=../../.. 4851 # LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool']) 4852 # fi 4804 if test -r ../../libtool; then 4805 coin_config_dir=../.. 4806 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 4807 fi 4808 fi 4853 4809 4854 4810 if test "x$LIBTOOL" = x; then … … 5403 5359 *-*-irix6*) 5404 5360 # Find out which ABI we are using. 5405 echo '#line 5 405"configure"' > conftest.$ac_ext5361 echo '#line 5361 "configure"' > conftest.$ac_ext 5406 5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5407 5363 (eval $ac_compile) 2>&5 … … 7832 7788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7833 7789 -e 's:$: $lt_compiler_flag:'` 7834 (eval echo "\"\$as_me:7 834: $lt_compile\"" >&5)7790 (eval echo "\"\$as_me:7790: $lt_compile\"" >&5) 7835 7791 (eval "$lt_compile" 2>conftest.err) 7836 7792 ac_status=$? 7837 7793 cat conftest.err >&5 7838 echo "$as_me:7 838: \$? = $ac_status" >&57794 echo "$as_me:7794: \$? = $ac_status" >&5 7839 7795 if (exit $ac_status) && test -s "$ac_outfile"; then 7840 7796 # The compiler can only warn and ignore the option if not recognized … … 8100 8056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8101 8057 -e 's:$: $lt_compiler_flag:'` 8102 (eval echo "\"\$as_me:8 102: $lt_compile\"" >&5)8058 (eval echo "\"\$as_me:8058: $lt_compile\"" >&5) 8103 8059 (eval "$lt_compile" 2>conftest.err) 8104 8060 ac_status=$? 8105 8061 cat conftest.err >&5 8106 echo "$as_me:8 106: \$? = $ac_status" >&58062 echo "$as_me:8062: \$? = $ac_status" >&5 8107 8063 if (exit $ac_status) && test -s "$ac_outfile"; then 8108 8064 # The compiler can only warn and ignore the option if not recognized … … 8204 8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8205 8161 -e 's:$: $lt_compiler_flag:'` 8206 (eval echo "\"\$as_me:8 206: $lt_compile\"" >&5)8162 (eval echo "\"\$as_me:8162: $lt_compile\"" >&5) 8207 8163 (eval "$lt_compile" 2>out/conftest.err) 8208 8164 ac_status=$? 8209 8165 cat out/conftest.err >&5 8210 echo "$as_me:8 210: \$? = $ac_status" >&58166 echo "$as_me:8166: \$? = $ac_status" >&5 8211 8167 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8212 8168 then … … 10549 10505 lt_status=$lt_dlunknown 10550 10506 cat > conftest.$ac_ext <<EOF 10551 #line 105 51"configure"10507 #line 10507 "configure" 10552 10508 #include "confdefs.h" 10553 10509 … … 10649 10605 lt_status=$lt_dlunknown 10650 10606 cat > conftest.$ac_ext <<EOF 10651 #line 106 51"configure"10607 #line 10607 "configure" 10652 10608 #include "confdefs.h" 10653 10609 … … 12993 12949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12994 12950 -e 's:$: $lt_compiler_flag:'` 12995 (eval echo "\"\$as_me:129 95: $lt_compile\"" >&5)12951 (eval echo "\"\$as_me:12951: $lt_compile\"" >&5) 12996 12952 (eval "$lt_compile" 2>conftest.err) 12997 12953 ac_status=$? 12998 12954 cat conftest.err >&5 12999 echo "$as_me:129 99: \$? = $ac_status" >&512955 echo "$as_me:12955: \$? = $ac_status" >&5 13000 12956 if (exit $ac_status) && test -s "$ac_outfile"; then 13001 12957 # The compiler can only warn and ignore the option if not recognized … … 13097 13053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13098 13054 -e 's:$: $lt_compiler_flag:'` 13099 (eval echo "\"\$as_me:130 99: $lt_compile\"" >&5)13055 (eval echo "\"\$as_me:13055: $lt_compile\"" >&5) 13100 13056 (eval "$lt_compile" 2>out/conftest.err) 13101 13057 ac_status=$? 13102 13058 cat out/conftest.err >&5 13103 echo "$as_me:13 103: \$? = $ac_status" >&513059 echo "$as_me:13059: \$? = $ac_status" >&5 13104 13060 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13105 13061 then … … 14667 14623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14668 14624 -e 's:$: $lt_compiler_flag:'` 14669 (eval echo "\"\$as_me:146 69: $lt_compile\"" >&5)14625 (eval echo "\"\$as_me:14625: $lt_compile\"" >&5) 14670 14626 (eval "$lt_compile" 2>conftest.err) 14671 14627 ac_status=$? 14672 14628 cat conftest.err >&5 14673 echo "$as_me:146 73: \$? = $ac_status" >&514629 echo "$as_me:14629: \$? = $ac_status" >&5 14674 14630 if (exit $ac_status) && test -s "$ac_outfile"; then 14675 14631 # The compiler can only warn and ignore the option if not recognized … … 14771 14727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14772 14728 -e 's:$: $lt_compiler_flag:'` 14773 (eval echo "\"\$as_me:147 73: $lt_compile\"" >&5)14729 (eval echo "\"\$as_me:14729: $lt_compile\"" >&5) 14774 14730 (eval "$lt_compile" 2>out/conftest.err) 14775 14731 ac_status=$? 14776 14732 cat out/conftest.err >&5 14777 echo "$as_me:147 77: \$? = $ac_status" >&514733 echo "$as_me:14733: \$? = $ac_status" >&5 14778 14734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14779 14735 then … … 16978 16934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16979 16935 -e 's:$: $lt_compiler_flag:'` 16980 (eval echo "\"\$as_me:169 80: $lt_compile\"" >&5)16936 (eval echo "\"\$as_me:16936: $lt_compile\"" >&5) 16981 16937 (eval "$lt_compile" 2>conftest.err) 16982 16938 ac_status=$? 16983 16939 cat conftest.err >&5 16984 echo "$as_me:169 84: \$? = $ac_status" >&516940 echo "$as_me:16940: \$? = $ac_status" >&5 16985 16941 if (exit $ac_status) && test -s "$ac_outfile"; then 16986 16942 # The compiler can only warn and ignore the option if not recognized … … 17246 17202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17247 17203 -e 's:$: $lt_compiler_flag:'` 17248 (eval echo "\"\$as_me:172 48: $lt_compile\"" >&5)17204 (eval echo "\"\$as_me:17204: $lt_compile\"" >&5) 17249 17205 (eval "$lt_compile" 2>conftest.err) 17250 17206 ac_status=$? 17251 17207 cat conftest.err >&5 17252 echo "$as_me:172 52: \$? = $ac_status" >&517208 echo "$as_me:17208: \$? = $ac_status" >&5 17253 17209 if (exit $ac_status) && test -s "$ac_outfile"; then 17254 17210 # The compiler can only warn and ignore the option if not recognized … … 17350 17306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17351 17307 -e 's:$: $lt_compiler_flag:'` 17352 (eval echo "\"\$as_me:173 52: $lt_compile\"" >&5)17308 (eval echo "\"\$as_me:17308: $lt_compile\"" >&5) 17353 17309 (eval "$lt_compile" 2>out/conftest.err) 17354 17310 ac_status=$? 17355 17311 cat out/conftest.err >&5 17356 echo "$as_me:173 56: \$? = $ac_status" >&517312 echo "$as_me:17312: \$? = $ac_status" >&5 17357 17313 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17358 17314 then … … 20064 20020 20065 20021 case $build in 20022 *x86_64-*) 20023 # Here we need to check if -m32 is specified. If so, we need to correct sys_lib_search_path_spec 20024 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20025 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20026 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20027 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20028 mv conftest.bla libtool 20029 chmod 755 libtool 20030 fi 20031 ;; 20066 20032 *-cygwin* | *-mingw*) 20067 20033 case "$CXX" in … … 20203 20169 } 20204 20170 20171 # Check if Blas is already available on the system or provided by user 20172 ac_ext=f 20173 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20174 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20175 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20176 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 20177 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 20178 if test "${ac_cv_prog_f77_v+set}" = set; then 20179 echo $ECHO_N "(cached) $ECHO_C" >&6 20180 else 20181 cat >conftest.$ac_ext <<_ACEOF 20182 program main 20183 20184 end 20185 _ACEOF 20186 rm -f conftest.$ac_objext 20187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20188 (eval $ac_compile) 2>conftest.er1 20189 ac_status=$? 20190 grep -v '^ *+' conftest.er1 >conftest.err 20191 rm -f conftest.er1 20192 cat conftest.err >&5 20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20194 (exit $ac_status); } && 20195 { ac_try='test -z "$ac_f77_werror_flag" 20196 || test ! -s conftest.err' 20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20198 (eval $ac_try) 2>&5 20199 ac_status=$? 20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20201 (exit $ac_status); }; } && 20202 { ac_try='test -s conftest.$ac_objext' 20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20204 (eval $ac_try) 2>&5 20205 ac_status=$? 20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20207 (exit $ac_status); }; }; then 20208 ac_cv_prog_f77_v= 20209 # Try some options frequently used verbose output 20210 for ac_verb in -v -verbose --verbose -V -\#\#\#; do 20211 cat >conftest.$ac_ext <<_ACEOF 20212 program main 20213 20214 end 20215 _ACEOF 20216 20217 # Compile and link our simple test program by passing a flag (argument 20218 # 1 to this macro) to the Fortran compiler in order to get 20219 # "verbose" output that we can then parse for the Fortran linker 20220 # flags. 20221 ac_save_FFLAGS=$FFLAGS 20222 FFLAGS="$FFLAGS $ac_verb" 20223 (eval echo $as_me:20223: \"$ac_link\") >&5 20224 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 20225 echo "$ac_f77_v_output" >&5 20226 FFLAGS=$ac_save_FFLAGS 20227 20228 rm -f conftest* 20229 20230 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 20231 # /foo, /bar, and /baz are search directories for the Fortran linker. 20232 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 20233 ac_f77_v_output="`echo $ac_f77_v_output | 20234 grep 'LPATH is:' | 20235 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 20236 20237 case $ac_f77_v_output in 20238 # If we are using xlf then replace all the commas with spaces. 20239 *xlfentry*) 20240 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 20241 20242 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 20243 # $LIBS confuse us, and the libraries appear later in the output anyway). 20244 *mGLOB_options_string*) 20245 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 20246 20247 # If we are using Cray Fortran then delete quotes. 20248 # Use "\"" instead of '"' for font-lock-mode. 20249 # FIXME: a more general fix for quoted arguments with spaces? 20250 *cft90*) 20251 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 20252 esac 20253 20254 20255 # look for -l* and *.a constructs in the output 20256 for ac_arg in $ac_f77_v_output; do 20257 case $ac_arg in 20258 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 20259 ac_cv_prog_f77_v=$ac_verb 20260 break 2 ;; 20261 esac 20262 done 20263 done 20264 if test -z "$ac_cv_prog_f77_v"; then 20265 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 20266 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 20267 fi 20268 else 20269 echo "$as_me: failed program was:" >&5 20270 sed 's/^/| /' conftest.$ac_ext >&5 20271 20272 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 20273 echo "$as_me: WARNING: compilation failed" >&2;} 20274 fi 20275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20276 20277 fi 20278 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 20279 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 20280 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 20281 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 20282 if test "${ac_cv_f77_libs+set}" = set; then 20283 echo $ECHO_N "(cached) $ECHO_C" >&6 20284 else 20285 if test "x$FLIBS" != "x"; then 20286 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 20287 else 20288 20289 cat >conftest.$ac_ext <<_ACEOF 20290 program main 20291 20292 end 20293 _ACEOF 20294 20295 # Compile and link our simple test program by passing a flag (argument 20296 # 1 to this macro) to the Fortran compiler in order to get 20297 # "verbose" output that we can then parse for the Fortran linker 20298 # flags. 20299 ac_save_FFLAGS=$FFLAGS 20300 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 20301 (eval echo $as_me:20301: \"$ac_link\") >&5 20302 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 20303 echo "$ac_f77_v_output" >&5 20304 FFLAGS=$ac_save_FFLAGS 20305 20306 rm -f conftest* 20307 20308 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 20309 # /foo, /bar, and /baz are search directories for the Fortran linker. 20310 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 20311 ac_f77_v_output="`echo $ac_f77_v_output | 20312 grep 'LPATH is:' | 20313 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 20314 20315 case $ac_f77_v_output in 20316 # If we are using xlf then replace all the commas with spaces. 20317 *xlfentry*) 20318 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 20319 20320 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 20321 # $LIBS confuse us, and the libraries appear later in the output anyway). 20322 *mGLOB_options_string*) 20323 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 20324 20325 # If we are using Cray Fortran then delete quotes. 20326 # Use "\"" instead of '"' for font-lock-mode. 20327 # FIXME: a more general fix for quoted arguments with spaces? 20328 *cft90*) 20329 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 20330 esac 20331 20332 20333 20334 ac_cv_f77_libs= 20335 20336 # Save positional arguments (if any) 20337 ac_save_positional="$@" 20338 20339 set X $ac_f77_v_output 20340 while test $# != 1; do 20341 shift 20342 ac_arg=$1 20343 case $ac_arg in 20344 [\\/]*.a | ?:[\\/]*.a) 20345 ac_exists=false 20346 for ac_i in $ac_cv_f77_libs; do 20347 if test x"$ac_arg" = x"$ac_i"; then 20348 ac_exists=true 20349 break 20350 fi 20351 done 20352 20353 if test x"$ac_exists" = xtrue; then 20354 : 20355 else 20356 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20357 fi 20358 20359 ;; 20360 -bI:*) 20361 ac_exists=false 20362 for ac_i in $ac_cv_f77_libs; do 20363 if test x"$ac_arg" = x"$ac_i"; then 20364 ac_exists=true 20365 break 20366 fi 20367 done 20368 20369 if test x"$ac_exists" = xtrue; then 20370 : 20371 else 20372 if test "$ac_compiler_gnu" = yes; then 20373 for ac_link_opt in $ac_arg; do 20374 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 20375 done 20376 else 20377 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20378 fi 20379 fi 20380 20381 ;; 20382 # Ignore these flags. 20383 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) 20384 ;; 20385 -lkernel32) 20386 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20387 ;; 20388 -[LRuY]) 20389 # These flags, when seen by themselves, take an argument. 20390 # We remove the space between option and argument and re-iterate 20391 # unless we find an empty arg or a new option (starting with -) 20392 case $2 in 20393 "" | -*);; 20394 *) 20395 ac_arg="$ac_arg$2" 20396 shift; shift 20397 set X $ac_arg "$@" 20398 ;; 20399 esac 20400 ;; 20401 -YP,*) 20402 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 20403 ac_exists=false 20404 for ac_i in $ac_cv_f77_libs; do 20405 if test x"$ac_j" = x"$ac_i"; then 20406 ac_exists=true 20407 break 20408 fi 20409 done 20410 20411 if test x"$ac_exists" = xtrue; then 20412 : 20413 else 20414 ac_arg="$ac_arg $ac_j" 20415 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 20416 fi 20417 20418 done 20419 ;; 20420 -[lLR]*) 20421 ac_exists=false 20422 for ac_i in $ac_cv_f77_libs; do 20423 if test x"$ac_arg" = x"$ac_i"; then 20424 ac_exists=true 20425 break 20426 fi 20427 done 20428 20429 if test x"$ac_exists" = xtrue; then 20430 : 20431 else 20432 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20433 fi 20434 20435 ;; 20436 # Ignore everything else. 20437 esac 20438 done 20439 # restore positional arguments 20440 set X $ac_save_positional; shift 20441 20442 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 20443 # then we insist that the "run path" must be an absolute path (i.e. it 20444 # must begin with a "/"). 20445 case `(uname -sr) 2>/dev/null` in 20446 "SunOS 5"*) 20447 ac_ld_run_path=`echo $ac_f77_v_output | 20448 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 20449 test "x$ac_ld_run_path" != x && 20450 if test "$ac_compiler_gnu" = yes; then 20451 for ac_link_opt in $ac_ld_run_path; do 20452 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 20453 done 20454 else 20455 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 20456 fi 20457 ;; 20458 esac 20459 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 20460 20461 fi 20462 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 20463 echo "${ECHO_T}$ac_cv_f77_libs" >&6 20464 FLIBS="$ac_cv_f77_libs" 20465 20466 20467 ac_ext=c 20468 ac_cpp='$CPP $CPPFLAGS' 20469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20471 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20472 20473 ac_ext=f 20474 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20475 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20476 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20477 20478 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 20479 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 20480 if test "${ac_cv_f77_dummy_main+set}" = set; then 20481 echo $ECHO_N "(cached) $ECHO_C" >&6 20482 else 20483 ac_f77_dm_save_LIBS=$LIBS 20484 LIBS="$LIBS $FLIBS" 20485 ac_fortran_dm_var=F77_DUMMY_MAIN 20486 ac_ext=c 20487 ac_cpp='$CPP $CPPFLAGS' 20488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20490 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20491 20492 # First, try linking without a dummy main: 20493 cat >conftest.$ac_ext <<_ACEOF 20494 /* confdefs.h. */ 20495 _ACEOF 20496 cat confdefs.h >>conftest.$ac_ext 20497 cat >>conftest.$ac_ext <<_ACEOF 20498 /* end confdefs.h. */ 20499 20500 #ifdef F77_DUMMY_MAIN 20501 20502 # ifdef __cplusplus 20503 extern "C" 20504 # endif 20505 int F77_DUMMY_MAIN() { return 1; } 20506 20507 #endif 20508 int 20509 main () 20510 { 20511 20512 ; 20513 return 0; 20514 } 20515 _ACEOF 20516 rm -f conftest.$ac_objext conftest$ac_exeext 20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20518 (eval $ac_link) 2>conftest.er1 20519 ac_status=$? 20520 grep -v '^ *+' conftest.er1 >conftest.err 20521 rm -f conftest.er1 20522 cat conftest.err >&5 20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20524 (exit $ac_status); } && 20525 { ac_try='test -z "$ac_c_werror_flag" 20526 || test ! -s conftest.err' 20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20528 (eval $ac_try) 2>&5 20529 ac_status=$? 20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20531 (exit $ac_status); }; } && 20532 { ac_try='test -s conftest$ac_exeext' 20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20534 (eval $ac_try) 2>&5 20535 ac_status=$? 20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20537 (exit $ac_status); }; }; then 20538 ac_cv_fortran_dummy_main=none 20539 else 20540 echo "$as_me: failed program was:" >&5 20541 sed 's/^/| /' conftest.$ac_ext >&5 20542 20543 ac_cv_fortran_dummy_main=unknown 20544 fi 20545 rm -f conftest.err conftest.$ac_objext \ 20546 conftest$ac_exeext conftest.$ac_ext 20547 20548 if test $ac_cv_fortran_dummy_main = unknown; then 20549 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 20550 cat >conftest.$ac_ext <<_ACEOF 20551 /* confdefs.h. */ 20552 _ACEOF 20553 cat confdefs.h >>conftest.$ac_ext 20554 cat >>conftest.$ac_ext <<_ACEOF 20555 /* end confdefs.h. */ 20556 #define $ac_fortran_dm_var $ac_func 20557 #ifdef F77_DUMMY_MAIN 20558 20559 # ifdef __cplusplus 20560 extern "C" 20561 # endif 20562 int F77_DUMMY_MAIN() { return 1; } 20563 20564 #endif 20565 int 20566 main () 20567 { 20568 20569 ; 20570 return 0; 20571 } 20572 _ACEOF 20573 rm -f conftest.$ac_objext conftest$ac_exeext 20574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20575 (eval $ac_link) 2>conftest.er1 20576 ac_status=$? 20577 grep -v '^ *+' conftest.er1 >conftest.err 20578 rm -f conftest.er1 20579 cat conftest.err >&5 20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20581 (exit $ac_status); } && 20582 { ac_try='test -z "$ac_c_werror_flag" 20583 || test ! -s conftest.err' 20584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20585 (eval $ac_try) 2>&5 20586 ac_status=$? 20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20588 (exit $ac_status); }; } && 20589 { ac_try='test -s conftest$ac_exeext' 20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20591 (eval $ac_try) 2>&5 20592 ac_status=$? 20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20594 (exit $ac_status); }; }; then 20595 ac_cv_fortran_dummy_main=$ac_func; break 20596 else 20597 echo "$as_me: failed program was:" >&5 20598 sed 's/^/| /' conftest.$ac_ext >&5 20599 20600 fi 20601 rm -f conftest.err conftest.$ac_objext \ 20602 conftest$ac_exeext conftest.$ac_ext 20603 done 20604 fi 20605 ac_ext=f 20606 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20607 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20608 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20609 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 20610 rm -f conftest* 20611 LIBS=$ac_f77_dm_save_LIBS 20612 20613 fi 20614 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 20615 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 20616 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 20617 if test "$F77_DUMMY_MAIN" != unknown; then 20618 if test $F77_DUMMY_MAIN != none; then 20619 20620 cat >>confdefs.h <<_ACEOF 20621 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN 20622 _ACEOF 20623 20624 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 20625 20626 cat >>confdefs.h <<\_ACEOF 20627 #define FC_DUMMY_MAIN_EQ_F77 1 20628 _ACEOF 20629 20630 fi 20631 fi 20632 else 20633 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails 20634 See \`config.log' for more details." >&5 20635 echo "$as_me: error: linking to Fortran libraries from C fails 20636 See \`config.log' for more details." >&2;} 20637 { (exit 1); exit 1; }; } 20638 fi 20639 20640 20641 ac_ext=c 20642 ac_cpp='$CPP $CPPFLAGS' 20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20646 20647 ac_ext=f 20648 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20649 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20650 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20651 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 20652 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 20653 if test "${ac_cv_f77_mangling+set}" = set; then 20654 echo $ECHO_N "(cached) $ECHO_C" >&6 20655 else 20656 cat >conftest.$ac_ext <<_ACEOF 20657 subroutine foobar() 20658 return 20659 end 20660 subroutine foo_bar() 20661 return 20662 end 20663 _ACEOF 20664 rm -f conftest.$ac_objext 20665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20666 (eval $ac_compile) 2>conftest.er1 20667 ac_status=$? 20668 grep -v '^ *+' conftest.er1 >conftest.err 20669 rm -f conftest.er1 20670 cat conftest.err >&5 20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20672 (exit $ac_status); } && 20673 { ac_try='test -z "$ac_f77_werror_flag" 20674 || test ! -s conftest.err' 20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20676 (eval $ac_try) 2>&5 20677 ac_status=$? 20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20679 (exit $ac_status); }; } && 20680 { ac_try='test -s conftest.$ac_objext' 20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20682 (eval $ac_try) 2>&5 20683 ac_status=$? 20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20685 (exit $ac_status); }; }; then 20686 mv conftest.$ac_objext cfortran_test.$ac_objext 20687 20688 ac_save_LIBS=$LIBS 20689 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 20690 20691 ac_ext=c 20692 ac_cpp='$CPP $CPPFLAGS' 20693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20695 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20696 ac_success=no 20697 for ac_foobar in foobar FOOBAR; do 20698 for ac_underscore in "" "_"; do 20699 ac_func="$ac_foobar$ac_underscore" 20700 cat >conftest.$ac_ext <<_ACEOF 20701 /* confdefs.h. */ 20702 _ACEOF 20703 cat confdefs.h >>conftest.$ac_ext 20704 cat >>conftest.$ac_ext <<_ACEOF 20705 /* end confdefs.h. */ 20706 20707 /* Override any gcc2 internal prototype to avoid an error. */ 20708 #ifdef __cplusplus 20709 extern "C" 20710 #endif 20711 /* We use char because int might match the return type of a gcc2 20712 builtin and then its argument prototype would still apply. */ 20713 char $ac_func (); 20714 #ifdef F77_DUMMY_MAIN 20715 20716 # ifdef __cplusplus 20717 extern "C" 20718 # endif 20719 int F77_DUMMY_MAIN() { return 1; } 20720 20721 #endif 20722 int 20723 main () 20724 { 20725 $ac_func (); 20726 ; 20727 return 0; 20728 } 20729 _ACEOF 20730 rm -f conftest.$ac_objext conftest$ac_exeext 20731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20732 (eval $ac_link) 2>conftest.er1 20733 ac_status=$? 20734 grep -v '^ *+' conftest.er1 >conftest.err 20735 rm -f conftest.er1 20736 cat conftest.err >&5 20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20738 (exit $ac_status); } && 20739 { ac_try='test -z "$ac_c_werror_flag" 20740 || test ! -s conftest.err' 20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20742 (eval $ac_try) 2>&5 20743 ac_status=$? 20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20745 (exit $ac_status); }; } && 20746 { ac_try='test -s conftest$ac_exeext' 20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20748 (eval $ac_try) 2>&5 20749 ac_status=$? 20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20751 (exit $ac_status); }; }; then 20752 ac_success=yes; break 2 20753 else 20754 echo "$as_me: failed program was:" >&5 20755 sed 's/^/| /' conftest.$ac_ext >&5 20756 20757 fi 20758 rm -f conftest.err conftest.$ac_objext \ 20759 conftest$ac_exeext conftest.$ac_ext 20760 done 20761 done 20762 ac_ext=f 20763 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20764 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20765 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20766 20767 if test "$ac_success" = "yes"; then 20768 case $ac_foobar in 20769 foobar) 20770 ac_case=lower 20771 ac_foo_bar=foo_bar 20772 ;; 20773 FOOBAR) 20774 ac_case=upper 20775 ac_foo_bar=FOO_BAR 20776 ;; 20777 esac 20778 20779 ac_ext=c 20780 ac_cpp='$CPP $CPPFLAGS' 20781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20783 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20784 ac_success_extra=no 20785 for ac_extra in "" "_"; do 20786 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 20787 cat >conftest.$ac_ext <<_ACEOF 20788 /* confdefs.h. */ 20789 _ACEOF 20790 cat confdefs.h >>conftest.$ac_ext 20791 cat >>conftest.$ac_ext <<_ACEOF 20792 /* end confdefs.h. */ 20793 20794 /* Override any gcc2 internal prototype to avoid an error. */ 20795 #ifdef __cplusplus 20796 extern "C" 20797 #endif 20798 /* We use char because int might match the return type of a gcc2 20799 builtin and then its argument prototype would still apply. */ 20800 char $ac_func (); 20801 #ifdef F77_DUMMY_MAIN 20802 20803 # ifdef __cplusplus 20804 extern "C" 20805 # endif 20806 int F77_DUMMY_MAIN() { return 1; } 20807 20808 #endif 20809 int 20810 main () 20811 { 20812 $ac_func (); 20813 ; 20814 return 0; 20815 } 20816 _ACEOF 20817 rm -f conftest.$ac_objext conftest$ac_exeext 20818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20819 (eval $ac_link) 2>conftest.er1 20820 ac_status=$? 20821 grep -v '^ *+' conftest.er1 >conftest.err 20822 rm -f conftest.er1 20823 cat conftest.err >&5 20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20825 (exit $ac_status); } && 20826 { ac_try='test -z "$ac_c_werror_flag" 20827 || test ! -s conftest.err' 20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20829 (eval $ac_try) 2>&5 20830 ac_status=$? 20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20832 (exit $ac_status); }; } && 20833 { ac_try='test -s conftest$ac_exeext' 20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20835 (eval $ac_try) 2>&5 20836 ac_status=$? 20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20838 (exit $ac_status); }; }; then 20839 ac_success_extra=yes; break 20840 else 20841 echo "$as_me: failed program was:" >&5 20842 sed 's/^/| /' conftest.$ac_ext >&5 20843 20844 fi 20845 rm -f conftest.err conftest.$ac_objext \ 20846 conftest$ac_exeext conftest.$ac_ext 20847 done 20848 ac_ext=f 20849 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20850 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20851 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20852 20853 if test "$ac_success_extra" = "yes"; then 20854 ac_cv_f77_mangling="$ac_case case" 20855 if test -z "$ac_underscore"; then 20856 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 20857 else 20858 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 20859 fi 20860 if test -z "$ac_extra"; then 20861 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 20862 else 20863 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 20864 fi 20865 else 20866 ac_cv_f77_mangling="unknown" 20867 fi 20868 else 20869 ac_cv_f77_mangling="unknown" 20870 fi 20871 20872 LIBS=$ac_save_LIBS 20873 rm -f cfortran_test* conftest* 20874 else 20875 echo "$as_me: failed program was:" >&5 20876 sed 's/^/| /' conftest.$ac_ext >&5 20877 20878 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program 20879 See \`config.log' for more details." >&5 20880 echo "$as_me: error: cannot compile a simple Fortran program 20881 See \`config.log' for more details." >&2;} 20882 { (exit 1); exit 1; }; } 20883 fi 20884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20885 20886 fi 20887 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 20888 echo "${ECHO_T}$ac_cv_f77_mangling" >&6 20889 20890 ac_ext=c 20891 ac_cpp='$CPP $CPPFLAGS' 20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20895 20896 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack; then 20897 coin_blasobjdir=../Blas 20898 else 20899 coin_blasobjdir=../ThirdParty/Blas 20900 fi 20901 coin_blassrcdir=$srcdir/$coin_blasobjdir 20902 20903 20904 # Check whether --with-blas or --without-blas was given. 20905 if test "${with_blas+set}" = set; then 20906 withval="$with_blas" 20907 use_blas=$withval 20908 else 20909 use_blas= 20910 fi; 20911 20912 MAKEOKFILE=.MakeOk 20913 # Check if user supplied option makes sense 20914 if test x"$use_blas" != x; then 20915 if test "$use_blas" = "BUILD"; then 20916 # Don't check for course code if this is executed in ThirdParty/Blas 20917 if test "$PACKAGE_NAME" != ThirdPartyBlas; then 20918 if test -r $coin_blasobjdir/.MakeOk; then :; else 20919 { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5 20920 echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;} 20921 { (exit 1); exit 1; }; } 20922 fi 20923 fi 20924 elif test "$use_blas" != no ; then 20925 echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5 20926 echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6 20927 LIBS="$use_blas $LIBS" 20928 ADDLIBS="$use_blas $ADDLIBS" 20929 case $ac_ext in 20930 f) 20931 cat >conftest.$ac_ext <<_ACEOF 20932 /* confdefs.h. */ 20933 _ACEOF 20934 cat confdefs.h >>conftest.$ac_ext 20935 cat >>conftest.$ac_ext <<_ACEOF 20936 /* end confdefs.h. */ 20937 20938 int 20939 main () 20940 { 20941 call daxpy 20942 ; 20943 return 0; 20944 } 20945 _ACEOF 20946 rm -f conftest.$ac_objext conftest$ac_exeext 20947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20948 (eval $ac_link) 2>conftest.er1 20949 ac_status=$? 20950 grep -v '^ *+' conftest.er1 >conftest.err 20951 rm -f conftest.er1 20952 cat conftest.err >&5 20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20954 (exit $ac_status); } && 20955 { ac_try='test -z "$ac_c_werror_flag" 20956 || test ! -s conftest.err' 20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20958 (eval $ac_try) 2>&5 20959 ac_status=$? 20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20961 (exit $ac_status); }; } && 20962 { ac_try='test -s conftest$ac_exeext' 20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20964 (eval $ac_try) 2>&5 20965 ac_status=$? 20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20967 (exit $ac_status); }; }; then 20968 echo "$as_me:$LINENO: result: yes" >&5 20969 echo "${ECHO_T}yes" >&6 20970 else 20971 echo "$as_me: failed program was:" >&5 20972 sed 's/^/| /' conftest.$ac_ext >&5 20973 20974 echo "$as_me:$LINENO: result: no" >&5 20975 echo "${ECHO_T}no" >&6 20976 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 20977 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 20978 { (exit 1); exit 1; }; } 20979 fi 20980 rm -f conftest.err conftest.$ac_objext \ 20981 conftest$ac_exeext conftest.$ac_ext 20982 ;; 20983 c) 20984 ac_ext=f 20985 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20986 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20987 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20988 case $ac_cv_f77_mangling in 20989 upper*) ac_val="DAXPY" ;; 20990 lower*) ac_val="daxpy" ;; 20991 *) ac_val="unknown" ;; 20992 esac 20993 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 20994 20995 cfuncdaxpy="$ac_val" 20996 20997 ac_ext=c 20998 ac_cpp='$CPP $CPPFLAGS' 20999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21001 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21002 21003 if test x"$coin_need_flibs" = xyes; then 21004 flink_try=no; 21005 else 21006 cat >conftest.$ac_ext <<_ACEOF 21007 /* confdefs.h. */ 21008 _ACEOF 21009 cat confdefs.h >>conftest.$ac_ext 21010 cat >>conftest.$ac_ext <<_ACEOF 21011 /* end confdefs.h. */ 21012 void $cfuncdaxpy(); 21013 #ifdef F77_DUMMY_MAIN 21014 21015 # ifdef __cplusplus 21016 extern "C" 21017 # endif 21018 int F77_DUMMY_MAIN() { return 1; } 21019 21020 #endif 21021 int 21022 main () 21023 { 21024 $cfuncdaxpy() 21025 ; 21026 return 0; 21027 } 21028 _ACEOF 21029 rm -f conftest.$ac_objext conftest$ac_exeext 21030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21031 (eval $ac_link) 2>conftest.er1 21032 ac_status=$? 21033 grep -v '^ *+' conftest.er1 >conftest.err 21034 rm -f conftest.er1 21035 cat conftest.err >&5 21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21037 (exit $ac_status); } && 21038 { ac_try='test -z "$ac_c_werror_flag" 21039 || test ! -s conftest.err' 21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21041 (eval $ac_try) 2>&5 21042 ac_status=$? 21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21044 (exit $ac_status); }; } && 21045 { ac_try='test -s conftest$ac_exeext' 21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21047 (eval $ac_try) 2>&5 21048 ac_status=$? 21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21050 (exit $ac_status); }; }; then 21051 flink_try=yes 21052 else 21053 echo "$as_me: failed program was:" >&5 21054 sed 's/^/| /' conftest.$ac_ext >&5 21055 21056 flink_try=no 21057 fi 21058 rm -f conftest.err conftest.$ac_objext \ 21059 conftest$ac_exeext conftest.$ac_ext 21060 fi 21061 if test $flink_try = yes; then 21062 echo "$as_me:$LINENO: result: yes" >&5 21063 echo "${ECHO_T}yes" >&6 21064 else 21065 if test x"$FLIBS" != x; then 21066 flink_save_libs="$LIBS" 21067 LIBS="$LIBS $FLIBS" 21068 cat >conftest.$ac_ext <<_ACEOF 21069 /* confdefs.h. */ 21070 _ACEOF 21071 cat confdefs.h >>conftest.$ac_ext 21072 cat >>conftest.$ac_ext <<_ACEOF 21073 /* end confdefs.h. */ 21074 void $cfuncdaxpy(); 21075 #ifdef F77_DUMMY_MAIN 21076 21077 # ifdef __cplusplus 21078 extern "C" 21079 # endif 21080 int F77_DUMMY_MAIN() { return 1; } 21081 21082 #endif 21083 int 21084 main () 21085 { 21086 $cfuncdaxpy() 21087 ; 21088 return 0; 21089 } 21090 _ACEOF 21091 rm -f conftest.$ac_objext conftest$ac_exeext 21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21093 (eval $ac_link) 2>conftest.er1 21094 ac_status=$? 21095 grep -v '^ *+' conftest.er1 >conftest.err 21096 rm -f conftest.er1 21097 cat conftest.err >&5 21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21099 (exit $ac_status); } && 21100 { ac_try='test -z "$ac_c_werror_flag" 21101 || test ! -s conftest.err' 21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21103 (eval $ac_try) 2>&5 21104 ac_status=$? 21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21106 (exit $ac_status); }; } && 21107 { ac_try='test -s conftest$ac_exeext' 21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21109 (eval $ac_try) 2>&5 21110 ac_status=$? 21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21112 (exit $ac_status); }; }; then 21113 LIBS="$flink_save_libs" 21114 echo "$as_me:$LINENO: result: yes" >&5 21115 echo "${ECHO_T}yes" >&6 21116 coin_need_flibs=yes 21117 else 21118 echo "$as_me: failed program was:" >&5 21119 sed 's/^/| /' conftest.$ac_ext >&5 21120 21121 LIBS="$flink_save_libs" 21122 echo "$as_me:$LINENO: result: no" >&5 21123 echo "${ECHO_T}no" >&6 21124 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21125 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21126 { (exit 1); exit 1; }; } 21127 fi 21128 rm -f conftest.err conftest.$ac_objext \ 21129 conftest$ac_exeext conftest.$ac_ext 21130 else 21131 echo "$as_me:$LINENO: result: no" >&5 21132 echo "${ECHO_T}no" >&6 21133 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21134 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21135 { (exit 1); exit 1; }; } 21136 fi 21137 fi 21138 ;; 21139 cc|cpp) 21140 ac_ext=f 21141 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21142 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21143 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21144 case $ac_cv_f77_mangling in 21145 upper*) ac_val="DAXPY" ;; 21146 lower*) ac_val="daxpy" ;; 21147 *) ac_val="unknown" ;; 21148 esac 21149 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21150 21151 cfuncdaxpy="$ac_val" 21152 21153 ac_ext=c 21154 ac_cpp='$CPP $CPPFLAGS' 21155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21157 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21158 21159 if test x"$coin_need_flibs" = xyes; then 21160 flink_try=no; 21161 else 21162 cat >conftest.$ac_ext <<_ACEOF 21163 /* confdefs.h. */ 21164 _ACEOF 21165 cat confdefs.h >>conftest.$ac_ext 21166 cat >>conftest.$ac_ext <<_ACEOF 21167 /* end confdefs.h. */ 21168 extern "C" {void $cfuncdaxpy();} 21169 #ifdef F77_DUMMY_MAIN 21170 21171 # ifdef __cplusplus 21172 extern "C" 21173 # endif 21174 int F77_DUMMY_MAIN() { return 1; } 21175 21176 #endif 21177 int 21178 main () 21179 { 21180 $cfuncdaxpy() 21181 ; 21182 return 0; 21183 } 21184 _ACEOF 21185 rm -f conftest.$ac_objext conftest$ac_exeext 21186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21187 (eval $ac_link) 2>conftest.er1 21188 ac_status=$? 21189 grep -v '^ *+' conftest.er1 >conftest.err 21190 rm -f conftest.er1 21191 cat conftest.err >&5 21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21193 (exit $ac_status); } && 21194 { ac_try='test -z "$ac_c_werror_flag" 21195 || test ! -s conftest.err' 21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21197 (eval $ac_try) 2>&5 21198 ac_status=$? 21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21200 (exit $ac_status); }; } && 21201 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 21207 flink_try=yes 21208 else 21209 echo "$as_me: failed program was:" >&5 21210 sed 's/^/| /' conftest.$ac_ext >&5 21211 21212 flink_try=no 21213 fi 21214 rm -f conftest.err conftest.$ac_objext \ 21215 conftest$ac_exeext conftest.$ac_ext 21216 fi 21217 if test $flink_try = yes; then 21218 echo "$as_me:$LINENO: result: yes" >&5 21219 echo "${ECHO_T}yes" >&6 21220 else 21221 if test x"$FLIBS" != x; then 21222 flink_save_libs="$LIBS" 21223 LIBS="$LIBS $FLIBS" 21224 cat >conftest.$ac_ext <<_ACEOF 21225 /* confdefs.h. */ 21226 _ACEOF 21227 cat confdefs.h >>conftest.$ac_ext 21228 cat >>conftest.$ac_ext <<_ACEOF 21229 /* end confdefs.h. */ 21230 extern "C" {void $cfuncdaxpy();} 21231 #ifdef F77_DUMMY_MAIN 21232 21233 # ifdef __cplusplus 21234 extern "C" 21235 # endif 21236 int F77_DUMMY_MAIN() { return 1; } 21237 21238 #endif 21239 int 21240 main () 21241 { 21242 $cfuncdaxpy() 21243 ; 21244 return 0; 21245 } 21246 _ACEOF 21247 rm -f conftest.$ac_objext conftest$ac_exeext 21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21249 (eval $ac_link) 2>conftest.er1 21250 ac_status=$? 21251 grep -v '^ *+' conftest.er1 >conftest.err 21252 rm -f conftest.er1 21253 cat conftest.err >&5 21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21255 (exit $ac_status); } && 21256 { ac_try='test -z "$ac_c_werror_flag" 21257 || test ! -s conftest.err' 21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21259 (eval $ac_try) 2>&5 21260 ac_status=$? 21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21262 (exit $ac_status); }; } && 21263 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 21269 LIBS="$flink_save_libs" 21270 echo "$as_me:$LINENO: result: yes" >&5 21271 echo "${ECHO_T}yes" >&6 21272 coin_need_flibs=yes 21273 else 21274 echo "$as_me: failed program was:" >&5 21275 sed 's/^/| /' conftest.$ac_ext >&5 21276 21277 LIBS="$flink_save_libs" 21278 echo "$as_me:$LINENO: result: no" >&5 21279 echo "${ECHO_T}no" >&6 21280 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21281 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21282 { (exit 1); exit 1; }; } 21283 fi 21284 rm -f conftest.err conftest.$ac_objext \ 21285 conftest$ac_exeext conftest.$ac_ext 21286 else 21287 echo "$as_me:$LINENO: result: no" >&5 21288 echo "${ECHO_T}no" >&6 21289 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21290 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21291 { (exit 1); exit 1; }; } 21292 fi 21293 fi 21294 ;; 21295 esac 21296 21297 fi 21298 else 21299 # Try to autodetect the library for blas based on build system 21300 #AC_MSG_CHECKING([default locations for BLAS]) 21301 skip_lblas_check=no 21302 case $build in 21303 *-sgi-*) 21304 SAVE_LIBS="$LIBS" 21305 echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5 21306 echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6 21307 LIBS="-lcomplib.sgimath $LIBS" 21308 case $ac_ext in 21309 f) 21310 cat >conftest.$ac_ext <<_ACEOF 21311 /* confdefs.h. */ 21312 _ACEOF 21313 cat confdefs.h >>conftest.$ac_ext 21314 cat >>conftest.$ac_ext <<_ACEOF 21315 /* end confdefs.h. */ 21316 21317 #ifdef F77_DUMMY_MAIN 21318 21319 # ifdef __cplusplus 21320 extern "C" 21321 # endif 21322 int F77_DUMMY_MAIN() { return 1; } 21323 21324 #endif 21325 int 21326 main () 21327 { 21328 call daxpy 21329 ; 21330 return 0; 21331 } 21332 _ACEOF 21333 rm -f conftest.$ac_objext conftest$ac_exeext 21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21335 (eval $ac_link) 2>conftest.er1 21336 ac_status=$? 21337 grep -v '^ *+' conftest.er1 >conftest.err 21338 rm -f conftest.er1 21339 cat conftest.err >&5 21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21341 (exit $ac_status); } && 21342 { ac_try='test -z "$ac_c_werror_flag" 21343 || test ! -s conftest.err' 21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21345 (eval $ac_try) 2>&5 21346 ac_status=$? 21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21348 (exit $ac_status); }; } && 21349 { ac_try='test -s conftest$ac_exeext' 21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21351 (eval $ac_try) 2>&5 21352 ac_status=$? 21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21354 (exit $ac_status); }; }; then 21355 echo "$as_me:$LINENO: result: yes" >&5 21356 echo "${ECHO_T}yes" >&6 21357 use_blas=-lcomplib.sgimath; 21358 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21359 else 21360 echo "$as_me: failed program was:" >&5 21361 sed 's/^/| /' conftest.$ac_ext >&5 21362 21363 echo "$as_me:$LINENO: result: no" >&5 21364 echo "${ECHO_T}no" >&6 21365 SAVE_LIBS="$LIBS" 21366 fi 21367 rm -f conftest.err conftest.$ac_objext \ 21368 conftest$ac_exeext conftest.$ac_ext 21369 ;; 21370 c) 21371 ac_ext=f 21372 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21373 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21374 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21375 case $ac_cv_f77_mangling in 21376 upper*) ac_val="DAXPY" ;; 21377 lower*) ac_val="daxpy" ;; 21378 *) ac_val="unknown" ;; 21379 esac 21380 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21381 21382 cfuncdaxpy="$ac_val" 21383 21384 ac_ext=c 21385 ac_cpp='$CPP $CPPFLAGS' 21386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21389 21390 if test x"$coin_need_flibs" = xyes; then 21391 flink_try=no; 21392 else 21393 cat >conftest.$ac_ext <<_ACEOF 21394 /* confdefs.h. */ 21395 _ACEOF 21396 cat confdefs.h >>conftest.$ac_ext 21397 cat >>conftest.$ac_ext <<_ACEOF 21398 /* end confdefs.h. */ 21399 void $cfuncdaxpy(); 21400 #ifdef F77_DUMMY_MAIN 21401 21402 # ifdef __cplusplus 21403 extern "C" 21404 # endif 21405 int F77_DUMMY_MAIN() { return 1; } 21406 21407 #endif 21408 int 21409 main () 21410 { 21411 $cfuncdaxpy() 21412 ; 21413 return 0; 21414 } 21415 _ACEOF 21416 rm -f conftest.$ac_objext conftest$ac_exeext 21417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21418 (eval $ac_link) 2>conftest.er1 21419 ac_status=$? 21420 grep -v '^ *+' conftest.er1 >conftest.err 21421 rm -f conftest.er1 21422 cat conftest.err >&5 21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21424 (exit $ac_status); } && 21425 { ac_try='test -z "$ac_c_werror_flag" 21426 || test ! -s conftest.err' 21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21428 (eval $ac_try) 2>&5 21429 ac_status=$? 21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21431 (exit $ac_status); }; } && 21432 { ac_try='test -s conftest$ac_exeext' 21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21434 (eval $ac_try) 2>&5 21435 ac_status=$? 21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21437 (exit $ac_status); }; }; then 21438 flink_try=yes 21439 else 21440 echo "$as_me: failed program was:" >&5 21441 sed 's/^/| /' conftest.$ac_ext >&5 21442 21443 flink_try=no 21444 fi 21445 rm -f conftest.err conftest.$ac_objext \ 21446 conftest$ac_exeext conftest.$ac_ext 21447 fi 21448 if test $flink_try = yes; then 21449 echo "$as_me:$LINENO: result: yes" >&5 21450 echo "${ECHO_T}yes" >&6 21451 use_blas=-lcomplib.sgimath; 21452 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21453 else 21454 if test x"$FLIBS" != x; then 21455 flink_save_libs="$LIBS" 21456 LIBS="$LIBS $FLIBS" 21457 cat >conftest.$ac_ext <<_ACEOF 21458 /* confdefs.h. */ 21459 _ACEOF 21460 cat confdefs.h >>conftest.$ac_ext 21461 cat >>conftest.$ac_ext <<_ACEOF 21462 /* end confdefs.h. */ 21463 void $cfuncdaxpy(); 21464 #ifdef F77_DUMMY_MAIN 21465 21466 # ifdef __cplusplus 21467 extern "C" 21468 # endif 21469 int F77_DUMMY_MAIN() { return 1; } 21470 21471 #endif 21472 int 21473 main () 21474 { 21475 $cfuncdaxpy() 21476 ; 21477 return 0; 21478 } 21479 _ACEOF 21480 rm -f conftest.$ac_objext conftest$ac_exeext 21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21482 (eval $ac_link) 2>conftest.er1 21483 ac_status=$? 21484 grep -v '^ *+' conftest.er1 >conftest.err 21485 rm -f conftest.er1 21486 cat conftest.err >&5 21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21488 (exit $ac_status); } && 21489 { ac_try='test -z "$ac_c_werror_flag" 21490 || test ! -s conftest.err' 21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21492 (eval $ac_try) 2>&5 21493 ac_status=$? 21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21495 (exit $ac_status); }; } && 21496 { ac_try='test -s conftest$ac_exeext' 21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21498 (eval $ac_try) 2>&5 21499 ac_status=$? 21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21501 (exit $ac_status); }; }; then 21502 LIBS="$flink_save_libs" 21503 echo "$as_me:$LINENO: result: yes" >&5 21504 echo "${ECHO_T}yes" >&6 21505 use_blas=-lcomplib.sgimath; 21506 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21507 coin_need_flibs=yes 21508 else 21509 echo "$as_me: failed program was:" >&5 21510 sed 's/^/| /' conftest.$ac_ext >&5 21511 21512 LIBS="$flink_save_libs" 21513 echo "$as_me:$LINENO: result: no" >&5 21514 echo "${ECHO_T}no" >&6 21515 SAVE_LIBS="$LIBS" 21516 fi 21517 rm -f conftest.err conftest.$ac_objext \ 21518 conftest$ac_exeext conftest.$ac_ext 21519 else 21520 echo "$as_me:$LINENO: result: no" >&5 21521 echo "${ECHO_T}no" >&6 21522 SAVE_LIBS="$LIBS" 21523 fi 21524 fi 21525 ;; 21526 cc|cpp) 21527 ac_ext=f 21528 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21529 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21530 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21531 case $ac_cv_f77_mangling in 21532 upper*) ac_val="DAXPY" ;; 21533 lower*) ac_val="daxpy" ;; 21534 *) ac_val="unknown" ;; 21535 esac 21536 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21537 21538 cfuncdaxpy="$ac_val" 21539 21540 ac_ext=c 21541 ac_cpp='$CPP $CPPFLAGS' 21542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21544 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21545 21546 if test x"$coin_need_flibs" = xyes; then 21547 flink_try=no; 21548 else 21549 cat >conftest.$ac_ext <<_ACEOF 21550 /* confdefs.h. */ 21551 _ACEOF 21552 cat confdefs.h >>conftest.$ac_ext 21553 cat >>conftest.$ac_ext <<_ACEOF 21554 /* end confdefs.h. */ 21555 extern "C" {void $cfuncdaxpy();} 21556 #ifdef F77_DUMMY_MAIN 21557 21558 # ifdef __cplusplus 21559 extern "C" 21560 # endif 21561 int F77_DUMMY_MAIN() { return 1; } 21562 21563 #endif 21564 int 21565 main () 21566 { 21567 $cfuncdaxpy() 21568 ; 21569 return 0; 21570 } 21571 _ACEOF 21572 rm -f conftest.$ac_objext conftest$ac_exeext 21573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21574 (eval $ac_link) 2>conftest.er1 21575 ac_status=$? 21576 grep -v '^ *+' conftest.er1 >conftest.err 21577 rm -f conftest.er1 21578 cat conftest.err >&5 21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21580 (exit $ac_status); } && 21581 { ac_try='test -z "$ac_c_werror_flag" 21582 || test ! -s conftest.err' 21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21584 (eval $ac_try) 2>&5 21585 ac_status=$? 21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21587 (exit $ac_status); }; } && 21588 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 21594 flink_try=yes 21595 else 21596 echo "$as_me: failed program was:" >&5 21597 sed 's/^/| /' conftest.$ac_ext >&5 21598 21599 flink_try=no 21600 fi 21601 rm -f conftest.err conftest.$ac_objext \ 21602 conftest$ac_exeext conftest.$ac_ext 21603 fi 21604 if test $flink_try = yes; then 21605 echo "$as_me:$LINENO: result: yes" >&5 21606 echo "${ECHO_T}yes" >&6 21607 use_blas=-lcomplib.sgimath; 21608 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21609 else 21610 if test x"$FLIBS" != x; then 21611 flink_save_libs="$LIBS" 21612 LIBS="$LIBS $FLIBS" 21613 cat >conftest.$ac_ext <<_ACEOF 21614 /* confdefs.h. */ 21615 _ACEOF 21616 cat confdefs.h >>conftest.$ac_ext 21617 cat >>conftest.$ac_ext <<_ACEOF 21618 /* end confdefs.h. */ 21619 extern "C" {void $cfuncdaxpy();} 21620 #ifdef F77_DUMMY_MAIN 21621 21622 # ifdef __cplusplus 21623 extern "C" 21624 # endif 21625 int F77_DUMMY_MAIN() { return 1; } 21626 21627 #endif 21628 int 21629 main () 21630 { 21631 $cfuncdaxpy() 21632 ; 21633 return 0; 21634 } 21635 _ACEOF 21636 rm -f conftest.$ac_objext conftest$ac_exeext 21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21638 (eval $ac_link) 2>conftest.er1 21639 ac_status=$? 21640 grep -v '^ *+' conftest.er1 >conftest.err 21641 rm -f conftest.er1 21642 cat conftest.err >&5 21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21644 (exit $ac_status); } && 21645 { ac_try='test -z "$ac_c_werror_flag" 21646 || test ! -s conftest.err' 21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21648 (eval $ac_try) 2>&5 21649 ac_status=$? 21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21651 (exit $ac_status); }; } && 21652 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 21658 LIBS="$flink_save_libs" 21659 echo "$as_me:$LINENO: result: yes" >&5 21660 echo "${ECHO_T}yes" >&6 21661 use_blas=-lcomplib.sgimath; 21662 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21663 coin_need_flibs=yes 21664 else 21665 echo "$as_me: failed program was:" >&5 21666 sed 's/^/| /' conftest.$ac_ext >&5 21667 21668 LIBS="$flink_save_libs" 21669 echo "$as_me:$LINENO: result: no" >&5 21670 echo "${ECHO_T}no" >&6 21671 SAVE_LIBS="$LIBS" 21672 fi 21673 rm -f conftest.err conftest.$ac_objext \ 21674 conftest$ac_exeext conftest.$ac_ext 21675 else 21676 echo "$as_me:$LINENO: result: no" >&5 21677 echo "${ECHO_T}no" >&6 21678 SAVE_LIBS="$LIBS" 21679 fi 21680 fi 21681 ;; 21682 esac 21683 21684 ;; 21685 *-sun-*) 21686 SAVE_LIBS="$LIBS" 21687 echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has BLAS" >&5 21688 echo $ECHO_N "checking whether -xlic_lib=sunperf has BLAS... $ECHO_C" >&6 21689 LIBS="-xlic_lib=sunperf $LIBS" 21690 case $ac_ext in 21691 f) 21692 cat >conftest.$ac_ext <<_ACEOF 21693 /* confdefs.h. */ 21694 _ACEOF 21695 cat confdefs.h >>conftest.$ac_ext 21696 cat >>conftest.$ac_ext <<_ACEOF 21697 /* end confdefs.h. */ 21698 21699 #ifdef F77_DUMMY_MAIN 21700 21701 # ifdef __cplusplus 21702 extern "C" 21703 # endif 21704 int F77_DUMMY_MAIN() { return 1; } 21705 21706 #endif 21707 int 21708 main () 21709 { 21710 call daxpy 21711 ; 21712 return 0; 21713 } 21714 _ACEOF 21715 rm -f conftest.$ac_objext conftest$ac_exeext 21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21717 (eval $ac_link) 2>conftest.er1 21718 ac_status=$? 21719 grep -v '^ *+' conftest.er1 >conftest.err 21720 rm -f conftest.er1 21721 cat conftest.err >&5 21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21723 (exit $ac_status); } && 21724 { ac_try='test -z "$ac_c_werror_flag" 21725 || test ! -s conftest.err' 21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21727 (eval $ac_try) 2>&5 21728 ac_status=$? 21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21730 (exit $ac_status); }; } && 21731 { ac_try='test -s conftest$ac_exeext' 21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21733 (eval $ac_try) 2>&5 21734 ac_status=$? 21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21736 (exit $ac_status); }; }; then 21737 echo "$as_me:$LINENO: result: yes" >&5 21738 echo "${ECHO_T}yes" >&6 21739 use_blas='-xlic_lib=sunperf' 21740 ADDLIBS="-xlic_lib=sunperf $ADDLIBS" 21741 else 21742 echo "$as_me: failed program was:" >&5 21743 sed 's/^/| /' conftest.$ac_ext >&5 21744 21745 echo "$as_me:$LINENO: result: no" >&5 21746 echo "${ECHO_T}no" >&6 21747 LIBS="$SAVE_LIBS" 21748 fi 21749 rm -f conftest.err conftest.$ac_objext \ 21750 conftest$ac_exeext conftest.$ac_ext 21751 ;; 21752 c) 21753 ac_ext=f 21754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21757 case $ac_cv_f77_mangling in 21758 upper*) ac_val="DAXPY" ;; 21759 lower*) ac_val="daxpy" ;; 21760 *) ac_val="unknown" ;; 21761 esac 21762 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21763 21764 cfuncdaxpy="$ac_val" 21765 21766 ac_ext=c 21767 ac_cpp='$CPP $CPPFLAGS' 21768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21770 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21771 21772 if test x"$coin_need_flibs" = xyes; then 21773 flink_try=no; 21774 else 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 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 flink_try=yes 21821 else 21822 echo "$as_me: failed program was:" >&5 21823 sed 's/^/| /' conftest.$ac_ext >&5 21824 21825 flink_try=no 21826 fi 21827 rm -f conftest.err conftest.$ac_objext \ 21828 conftest$ac_exeext conftest.$ac_ext 21829 fi 21830 if test $flink_try = yes; then 21831 echo "$as_me:$LINENO: result: yes" >&5 21832 echo "${ECHO_T}yes" >&6 21833 use_blas='-xlic_lib=sunperf' 21834 ADDLIBS="-xlic_lib=sunperf $ADDLIBS" 21835 else 21836 if test x"$FLIBS" != x; then 21837 flink_save_libs="$LIBS" 21838 LIBS="$LIBS $FLIBS" 21839 cat >conftest.$ac_ext <<_ACEOF 21840 /* confdefs.h. */ 21841 _ACEOF 21842 cat confdefs.h >>conftest.$ac_ext 21843 cat >>conftest.$ac_ext <<_ACEOF 21844 /* end confdefs.h. */ 21845 void $cfuncdaxpy(); 21846 #ifdef F77_DUMMY_MAIN 21847 21848 # ifdef __cplusplus 21849 extern "C" 21850 # endif 21851 int F77_DUMMY_MAIN() { return 1; } 21852 21853 #endif 21854 int 21855 main () 21856 { 21857 $cfuncdaxpy() 21858 ; 21859 return 0; 21860 } 21861 _ACEOF 21862 rm -f conftest.$ac_objext conftest$ac_exeext 21863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21864 (eval $ac_link) 2>conftest.er1 21865 ac_status=$? 21866 grep -v '^ *+' conftest.er1 >conftest.err 21867 rm -f conftest.er1 21868 cat conftest.err >&5 21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21870 (exit $ac_status); } && 21871 { ac_try='test -z "$ac_c_werror_flag" 21872 || test ! -s conftest.err' 21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21874 (eval $ac_try) 2>&5 21875 ac_status=$? 21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21877 (exit $ac_status); }; } && 21878 { ac_try='test -s conftest$ac_exeext' 21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21880 (eval $ac_try) 2>&5 21881 ac_status=$? 21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21883 (exit $ac_status); }; }; then 21884 LIBS="$flink_save_libs" 21885 echo "$as_me:$LINENO: result: yes" >&5 21886 echo "${ECHO_T}yes" >&6 21887 use_blas='-xlic_lib=sunperf' 21888 ADDLIBS="-xlic_lib=sunperf $ADDLIBS" 21889 coin_need_flibs=yes 21890 else 21891 echo "$as_me: failed program was:" >&5 21892 sed 's/^/| /' conftest.$ac_ext >&5 21893 21894 LIBS="$flink_save_libs" 21895 echo "$as_me:$LINENO: result: no" >&5 21896 echo "${ECHO_T}no" >&6 21897 LIBS="$SAVE_LIBS" 21898 fi 21899 rm -f conftest.err conftest.$ac_objext \ 21900 conftest$ac_exeext conftest.$ac_ext 21901 else 21902 echo "$as_me:$LINENO: result: no" >&5 21903 echo "${ECHO_T}no" >&6 21904 LIBS="$SAVE_LIBS" 21905 fi 21906 fi 21907 ;; 21908 cc|cpp) 21909 ac_ext=f 21910 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21911 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21912 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21913 case $ac_cv_f77_mangling in 21914 upper*) ac_val="DAXPY" ;; 21915 lower*) ac_val="daxpy" ;; 21916 *) ac_val="unknown" ;; 21917 esac 21918 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21919 21920 cfuncdaxpy="$ac_val" 21921 21922 ac_ext=c 21923 ac_cpp='$CPP $CPPFLAGS' 21924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21927 21928 if test x"$coin_need_flibs" = xyes; then 21929 flink_try=no; 21930 else 21931 cat >conftest.$ac_ext <<_ACEOF 21932 /* confdefs.h. */ 21933 _ACEOF 21934 cat confdefs.h >>conftest.$ac_ext 21935 cat >>conftest.$ac_ext <<_ACEOF 21936 /* end confdefs.h. */ 21937 extern "C" {void $cfuncdaxpy();} 21938 #ifdef F77_DUMMY_MAIN 21939 21940 # ifdef __cplusplus 21941 extern "C" 21942 # endif 21943 int F77_DUMMY_MAIN() { return 1; } 21944 21945 #endif 21946 int 21947 main () 21948 { 21949 $cfuncdaxpy() 21950 ; 21951 return 0; 21952 } 21953 _ACEOF 21954 rm -f conftest.$ac_objext conftest$ac_exeext 21955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21956 (eval $ac_link) 2>conftest.er1 21957 ac_status=$? 21958 grep -v '^ *+' conftest.er1 >conftest.err 21959 rm -f conftest.er1 21960 cat conftest.err >&5 21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21962 (exit $ac_status); } && 21963 { ac_try='test -z "$ac_c_werror_flag" 21964 || test ! -s conftest.err' 21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21966 (eval $ac_try) 2>&5 21967 ac_status=$? 21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21969 (exit $ac_status); }; } && 21970 { ac_try='test -s conftest$ac_exeext' 21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21972 (eval $ac_try) 2>&5 21973 ac_status=$? 21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21975 (exit $ac_status); }; }; then 21976 flink_try=yes 21977 else 21978 echo "$as_me: failed program was:" >&5 21979 sed 's/^/| /' conftest.$ac_ext >&5 21980 21981 flink_try=no 21982 fi 21983 rm -f conftest.err conftest.$ac_objext \ 21984 conftest$ac_exeext conftest.$ac_ext 21985 fi 21986 if test $flink_try = yes; then 21987 echo "$as_me:$LINENO: result: yes" >&5 21988 echo "${ECHO_T}yes" >&6 21989 use_blas='-xlic_lib=sunperf' 21990 ADDLIBS="-xlic_lib=sunperf $ADDLIBS" 21991 else 21992 if test x"$FLIBS" != x; then 21993 flink_save_libs="$LIBS" 21994 LIBS="$LIBS $FLIBS" 21995 cat >conftest.$ac_ext <<_ACEOF 21996 /* confdefs.h. */ 21997 _ACEOF 21998 cat confdefs.h >>conftest.$ac_ext 21999 cat >>conftest.$ac_ext <<_ACEOF 22000 /* end confdefs.h. */ 22001 extern "C" {void $cfuncdaxpy();} 22002 #ifdef F77_DUMMY_MAIN 22003 22004 # ifdef __cplusplus 22005 extern "C" 22006 # endif 22007 int F77_DUMMY_MAIN() { return 1; } 22008 22009 #endif 22010 int 22011 main () 22012 { 22013 $cfuncdaxpy() 22014 ; 22015 return 0; 22016 } 22017 _ACEOF 22018 rm -f conftest.$ac_objext conftest$ac_exeext 22019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22020 (eval $ac_link) 2>conftest.er1 22021 ac_status=$? 22022 grep -v '^ *+' conftest.er1 >conftest.err 22023 rm -f conftest.er1 22024 cat conftest.err >&5 22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22026 (exit $ac_status); } && 22027 { ac_try='test -z "$ac_c_werror_flag" 22028 || test ! -s conftest.err' 22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22030 (eval $ac_try) 2>&5 22031 ac_status=$? 22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22033 (exit $ac_status); }; } && 22034 { ac_try='test -s conftest$ac_exeext' 22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22036 (eval $ac_try) 2>&5 22037 ac_status=$? 22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22039 (exit $ac_status); }; }; then 22040 LIBS="$flink_save_libs" 22041 echo "$as_me:$LINENO: result: yes" >&5 22042 echo "${ECHO_T}yes" >&6 22043 use_blas='-xlic_lib=sunperf' 22044 ADDLIBS="-xlic_lib=sunperf $ADDLIBS" 22045 coin_need_flibs=yes 22046 else 22047 echo "$as_me: failed program was:" >&5 22048 sed 's/^/| /' conftest.$ac_ext >&5 22049 22050 LIBS="$flink_save_libs" 22051 echo "$as_me:$LINENO: result: no" >&5 22052 echo "${ECHO_T}no" >&6 22053 LIBS="$SAVE_LIBS" 22054 fi 22055 rm -f conftest.err conftest.$ac_objext \ 22056 conftest$ac_exeext conftest.$ac_ext 22057 else 22058 echo "$as_me:$LINENO: result: no" >&5 22059 echo "${ECHO_T}no" >&6 22060 LIBS="$SAVE_LIBS" 22061 fi 22062 fi 22063 ;; 22064 esac 22065 22066 ;; 22067 # On cygwin, consider -lblas only if doscompile is disabled. The prebuilt 22068 # library will want to link with cygwin, hence won't run standalone in DOS. 22069 *-cygwin*) 22070 if test "$enable_doscompile" = mingw; then 22071 skip_lblas_check=yes 22072 fi 22073 ;; 22074 esac 22075 22076 if test -z "$use_blas" && test $skip_lblas_check = no; then 22077 SAVE_LIBS="$LIBS" 22078 echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5 22079 echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6 22080 LIBS="-lblas $LIBS" 22081 case $ac_ext in 22082 f) 22083 cat >conftest.$ac_ext <<_ACEOF 22084 /* confdefs.h. */ 22085 _ACEOF 22086 cat confdefs.h >>conftest.$ac_ext 22087 cat >>conftest.$ac_ext <<_ACEOF 22088 /* end confdefs.h. */ 22089 22090 #ifdef F77_DUMMY_MAIN 22091 22092 # ifdef __cplusplus 22093 extern "C" 22094 # endif 22095 int F77_DUMMY_MAIN() { return 1; } 22096 22097 #endif 22098 int 22099 main () 22100 { 22101 call daxpy 22102 ; 22103 return 0; 22104 } 22105 _ACEOF 22106 rm -f conftest.$ac_objext conftest$ac_exeext 22107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22108 (eval $ac_link) 2>conftest.er1 22109 ac_status=$? 22110 grep -v '^ *+' conftest.er1 >conftest.err 22111 rm -f conftest.er1 22112 cat conftest.err >&5 22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22114 (exit $ac_status); } && 22115 { ac_try='test -z "$ac_c_werror_flag" 22116 || test ! -s conftest.err' 22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22118 (eval $ac_try) 2>&5 22119 ac_status=$? 22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22121 (exit $ac_status); }; } && 22122 { ac_try='test -s conftest$ac_exeext' 22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22124 (eval $ac_try) 2>&5 22125 ac_status=$? 22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22127 (exit $ac_status); }; }; then 22128 echo "$as_me:$LINENO: result: yes" >&5 22129 echo "${ECHO_T}yes" >&6 22130 ADDLIBS="-lblas $ADDLIBS" 22131 use_blas='-lblas' 22132 else 22133 echo "$as_me: failed program was:" >&5 22134 sed 's/^/| /' conftest.$ac_ext >&5 22135 22136 echo "$as_me:$LINENO: result: no" >&5 22137 echo "${ECHO_T}no" >&6 22138 LIBS="$SAVE_LIBS" 22139 fi 22140 rm -f conftest.err conftest.$ac_objext \ 22141 conftest$ac_exeext conftest.$ac_ext 22142 ;; 22143 c) 22144 ac_ext=f 22145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22148 case $ac_cv_f77_mangling in 22149 upper*) ac_val="DAXPY" ;; 22150 lower*) ac_val="daxpy" ;; 22151 *) ac_val="unknown" ;; 22152 esac 22153 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22154 22155 cfuncdaxpy="$ac_val" 22156 22157 ac_ext=c 22158 ac_cpp='$CPP $CPPFLAGS' 22159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22161 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22162 22163 if test x"$coin_need_flibs" = xyes; then 22164 flink_try=no; 22165 else 22166 cat >conftest.$ac_ext <<_ACEOF 22167 /* confdefs.h. */ 22168 _ACEOF 22169 cat confdefs.h >>conftest.$ac_ext 22170 cat >>conftest.$ac_ext <<_ACEOF 22171 /* end confdefs.h. */ 22172 void $cfuncdaxpy(); 22173 #ifdef F77_DUMMY_MAIN 22174 22175 # ifdef __cplusplus 22176 extern "C" 22177 # endif 22178 int F77_DUMMY_MAIN() { return 1; } 22179 22180 #endif 22181 int 22182 main () 22183 { 22184 $cfuncdaxpy() 22185 ; 22186 return 0; 22187 } 22188 _ACEOF 22189 rm -f conftest.$ac_objext conftest$ac_exeext 22190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22191 (eval $ac_link) 2>conftest.er1 22192 ac_status=$? 22193 grep -v '^ *+' conftest.er1 >conftest.err 22194 rm -f conftest.er1 22195 cat conftest.err >&5 22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22197 (exit $ac_status); } && 22198 { ac_try='test -z "$ac_c_werror_flag" 22199 || test ! -s conftest.err' 22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22201 (eval $ac_try) 2>&5 22202 ac_status=$? 22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22204 (exit $ac_status); }; } && 22205 { ac_try='test -s conftest$ac_exeext' 22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22207 (eval $ac_try) 2>&5 22208 ac_status=$? 22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22210 (exit $ac_status); }; }; then 22211 flink_try=yes 22212 else 22213 echo "$as_me: failed program was:" >&5 22214 sed 's/^/| /' conftest.$ac_ext >&5 22215 22216 flink_try=no 22217 fi 22218 rm -f conftest.err conftest.$ac_objext \ 22219 conftest$ac_exeext conftest.$ac_ext 22220 fi 22221 if test $flink_try = yes; then 22222 echo "$as_me:$LINENO: result: yes" >&5 22223 echo "${ECHO_T}yes" >&6 22224 ADDLIBS="-lblas $ADDLIBS" 22225 use_blas='-lblas' 22226 else 22227 if test x"$FLIBS" != x; then 22228 flink_save_libs="$LIBS" 22229 LIBS="$LIBS $FLIBS" 22230 cat >conftest.$ac_ext <<_ACEOF 22231 /* confdefs.h. */ 22232 _ACEOF 22233 cat confdefs.h >>conftest.$ac_ext 22234 cat >>conftest.$ac_ext <<_ACEOF 22235 /* end confdefs.h. */ 22236 void $cfuncdaxpy(); 22237 #ifdef F77_DUMMY_MAIN 22238 22239 # ifdef __cplusplus 22240 extern "C" 22241 # endif 22242 int F77_DUMMY_MAIN() { return 1; } 22243 22244 #endif 22245 int 22246 main () 22247 { 22248 $cfuncdaxpy() 22249 ; 22250 return 0; 22251 } 22252 _ACEOF 22253 rm -f conftest.$ac_objext conftest$ac_exeext 22254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22255 (eval $ac_link) 2>conftest.er1 22256 ac_status=$? 22257 grep -v '^ *+' conftest.er1 >conftest.err 22258 rm -f conftest.er1 22259 cat conftest.err >&5 22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22261 (exit $ac_status); } && 22262 { ac_try='test -z "$ac_c_werror_flag" 22263 || test ! -s conftest.err' 22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22265 (eval $ac_try) 2>&5 22266 ac_status=$? 22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22268 (exit $ac_status); }; } && 22269 { ac_try='test -s conftest$ac_exeext' 22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22271 (eval $ac_try) 2>&5 22272 ac_status=$? 22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22274 (exit $ac_status); }; }; then 22275 LIBS="$flink_save_libs" 22276 echo "$as_me:$LINENO: result: yes" >&5 22277 echo "${ECHO_T}yes" >&6 22278 ADDLIBS="-lblas $ADDLIBS" 22279 use_blas='-lblas' 22280 coin_need_flibs=yes 22281 else 22282 echo "$as_me: failed program was:" >&5 22283 sed 's/^/| /' conftest.$ac_ext >&5 22284 22285 LIBS="$flink_save_libs" 22286 echo "$as_me:$LINENO: result: no" >&5 22287 echo "${ECHO_T}no" >&6 22288 LIBS="$SAVE_LIBS" 22289 fi 22290 rm -f conftest.err conftest.$ac_objext \ 22291 conftest$ac_exeext conftest.$ac_ext 22292 else 22293 echo "$as_me:$LINENO: result: no" >&5 22294 echo "${ECHO_T}no" >&6 22295 LIBS="$SAVE_LIBS" 22296 fi 22297 fi 22298 ;; 22299 cc|cpp) 22300 ac_ext=f 22301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22304 case $ac_cv_f77_mangling in 22305 upper*) ac_val="DAXPY" ;; 22306 lower*) ac_val="daxpy" ;; 22307 *) ac_val="unknown" ;; 22308 esac 22309 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22310 22311 cfuncdaxpy="$ac_val" 22312 22313 ac_ext=c 22314 ac_cpp='$CPP $CPPFLAGS' 22315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22317 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22318 22319 if test x"$coin_need_flibs" = xyes; then 22320 flink_try=no; 22321 else 22322 cat >conftest.$ac_ext <<_ACEOF 22323 /* confdefs.h. */ 22324 _ACEOF 22325 cat confdefs.h >>conftest.$ac_ext 22326 cat >>conftest.$ac_ext <<_ACEOF 22327 /* end confdefs.h. */ 22328 extern "C" {void $cfuncdaxpy();} 22329 #ifdef F77_DUMMY_MAIN 22330 22331 # ifdef __cplusplus 22332 extern "C" 22333 # endif 22334 int F77_DUMMY_MAIN() { return 1; } 22335 22336 #endif 22337 int 22338 main () 22339 { 22340 $cfuncdaxpy() 22341 ; 22342 return 0; 22343 } 22344 _ACEOF 22345 rm -f conftest.$ac_objext conftest$ac_exeext 22346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22347 (eval $ac_link) 2>conftest.er1 22348 ac_status=$? 22349 grep -v '^ *+' conftest.er1 >conftest.err 22350 rm -f conftest.er1 22351 cat conftest.err >&5 22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22353 (exit $ac_status); } && 22354 { ac_try='test -z "$ac_c_werror_flag" 22355 || test ! -s conftest.err' 22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22357 (eval $ac_try) 2>&5 22358 ac_status=$? 22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22360 (exit $ac_status); }; } && 22361 { ac_try='test -s conftest$ac_exeext' 22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22363 (eval $ac_try) 2>&5 22364 ac_status=$? 22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22366 (exit $ac_status); }; }; then 22367 flink_try=yes 22368 else 22369 echo "$as_me: failed program was:" >&5 22370 sed 's/^/| /' conftest.$ac_ext >&5 22371 22372 flink_try=no 22373 fi 22374 rm -f conftest.err conftest.$ac_objext \ 22375 conftest$ac_exeext conftest.$ac_ext 22376 fi 22377 if test $flink_try = yes; then 22378 echo "$as_me:$LINENO: result: yes" >&5 22379 echo "${ECHO_T}yes" >&6 22380 ADDLIBS="-lblas $ADDLIBS" 22381 use_blas='-lblas' 22382 else 22383 if test x"$FLIBS" != x; then 22384 flink_save_libs="$LIBS" 22385 LIBS="$LIBS $FLIBS" 22386 cat >conftest.$ac_ext <<_ACEOF 22387 /* confdefs.h. */ 22388 _ACEOF 22389 cat confdefs.h >>conftest.$ac_ext 22390 cat >>conftest.$ac_ext <<_ACEOF 22391 /* end confdefs.h. */ 22392 extern "C" {void $cfuncdaxpy();} 22393 #ifdef F77_DUMMY_MAIN 22394 22395 # ifdef __cplusplus 22396 extern "C" 22397 # endif 22398 int F77_DUMMY_MAIN() { return 1; } 22399 22400 #endif 22401 int 22402 main () 22403 { 22404 $cfuncdaxpy() 22405 ; 22406 return 0; 22407 } 22408 _ACEOF 22409 rm -f conftest.$ac_objext conftest$ac_exeext 22410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22411 (eval $ac_link) 2>conftest.er1 22412 ac_status=$? 22413 grep -v '^ *+' conftest.er1 >conftest.err 22414 rm -f conftest.er1 22415 cat conftest.err >&5 22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22417 (exit $ac_status); } && 22418 { ac_try='test -z "$ac_c_werror_flag" 22419 || test ! -s conftest.err' 22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22421 (eval $ac_try) 2>&5 22422 ac_status=$? 22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22424 (exit $ac_status); }; } && 22425 { ac_try='test -s conftest$ac_exeext' 22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22427 (eval $ac_try) 2>&5 22428 ac_status=$? 22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22430 (exit $ac_status); }; }; then 22431 LIBS="$flink_save_libs" 22432 echo "$as_me:$LINENO: result: yes" >&5 22433 echo "${ECHO_T}yes" >&6 22434 ADDLIBS="-lblas $ADDLIBS" 22435 use_blas='-lblas' 22436 coin_need_flibs=yes 22437 else 22438 echo "$as_me: failed program was:" >&5 22439 sed 's/^/| /' conftest.$ac_ext >&5 22440 22441 LIBS="$flink_save_libs" 22442 echo "$as_me:$LINENO: result: no" >&5 22443 echo "${ECHO_T}no" >&6 22444 LIBS="$SAVE_LIBS" 22445 fi 22446 rm -f conftest.err conftest.$ac_objext \ 22447 conftest$ac_exeext conftest.$ac_ext 22448 else 22449 echo "$as_me:$LINENO: result: no" >&5 22450 echo "${ECHO_T}no" >&6 22451 LIBS="$SAVE_LIBS" 22452 fi 22453 fi 22454 ;; 22455 esac 22456 22457 fi 22458 22459 # If we have no other ideas, consider building BLAS. 22460 if test -z "$use_blas"; then 22461 if test "$PACKAGE_NAME" != ThirdPartyBlas; then 22462 if test -r $coin_blasobjdir/.MakeOk; then 22463 use_blas=BUILD 22464 fi 22465 fi 22466 fi 22467 fi 22468 22469 if test "$use_blas" = BUILD; then 22470 coin_need_flibs=yes 22471 fi 22472 22473 22474 22475 if test x"$use_blas" != x; then 22476 COIN_HAS_BLAS_TRUE= 22477 COIN_HAS_BLAS_FALSE='#' 22478 else 22479 COIN_HAS_BLAS_TRUE='#' 22480 COIN_HAS_BLAS_FALSE= 22481 fi 22482 22483 22484 22485 if test "$use_blas" = BUILD; then 22486 COIN_BUILD_BLAS_TRUE= 22487 COIN_BUILD_BLAS_FALSE='#' 22488 else 22489 COIN_BUILD_BLAS_TRUE='#' 22490 COIN_BUILD_BLAS_FALSE= 22491 fi 22492 22493 22494 if test x"$use_blas" = x || test "$use_blas" = no; then 22495 coin_has_blas=no 22496 else 22497 coin_has_blas=yes 22498 22499 cat >>confdefs.h <<\_ACEOF 22500 #define COIN_HAS_BLAS 1 22501 _ACEOF 22502 22503 fi 22504 22505 MAKEOKFILE=.MakeOk 22506 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then 22507 rm -f $MAKEOKFILE 22508 { echo "$as_me:$LINENO: The Blas sources don't need to be compiled" >&5 22509 echo "$as_me: The Blas sources don't need to be compiled" >&6;} 22510 MAKEOKFILE= 22511 else 22512 touch $MAKEOKFILE 22513 fi 22514 22515 22516 22517 if test -z "$MAKEOKFILE"; then 22518 SKIPMAKE_TRUE= 22519 SKIPMAKE_FALSE='#' 22520 else 22521 SKIPMAKE_TRUE='#' 22522 SKIPMAKE_FALSE= 22523 fi 22524 22525 20205 22526 ac_config_files="$ac_config_files Makefile" 20206 22527 20207 22528 20208 22529 20209 FADDLIBS="$ADDLIBS" 20210 if test x"$coin_need_flibs" = xyes; then 20211 ADDLIBS="$ADDLIBS $FLIBS" 20212 fi 20213 20214 # library extension 20215 20216 case "$CC" in 20217 cl* | */cl* | CL* | */CL*) 20218 LIBEXT=lib ;; 20219 *) LIBEXT=a ;; 20220 esac 20221 20222 # Define VPATH_DISTCLEANFILES to be everything that needs to be 20223 # cleaned for distclean in a vpath configuration 20224 20225 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 20226 20227 cat >confcache <<\_ACEOF 22530 if test x$coin_skip_ac_output != xyes; then 22531 22532 FADDLIBS="$ADDLIBS" 22533 if test x"$coin_need_flibs" = xyes; then 22534 ADDLIBS="$ADDLIBS $FLIBS" 22535 fi 22536 22537 # library extension 22538 22539 case "$CC" in 22540 cl* | */cl* | CL* | */CL*) 22541 LIBEXT=lib ;; 22542 *) LIBEXT=a ;; 22543 esac 22544 22545 # Define VPATH_DISTCLEANFILES to be everything that needs to be 22546 # cleaned for distclean in a vpath configuration 22547 22548 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 22549 22550 # Take out subdirectories if their configuration concluded that they 22551 # don't need to be compiled 22552 if test x"$coin_ac_skip_subdirs" != x; then 22553 new_subdirs= 22554 for i in $subdirs; do 22555 skipme=no 22556 for j in $coin_ac_skip_subdirs; do 22557 if test $i = $j; then 22558 skipme=yes; 22559 fi 22560 done 22561 if test $skipme = no; then 22562 new_subdirs="$new_subdirs $i" 22563 fi 22564 done 22565 subdirs="$new_subdirs" 22566 fi 22567 22568 cat >confcache <<\_ACEOF 20228 22569 # This file is a shell script that caches the results of configure 20229 22570 # tests run on this system so they can be shared between configure … … 20386 22727 Usually this means the macro was only invoked conditionally." >&5 20387 22728 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22729 Usually this means the macro was only invoked conditionally." >&2;} 22730 { (exit 1); exit 1; }; } 22731 fi 22732 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then 22733 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined. 22734 Usually this means the macro was only invoked conditionally." >&5 22735 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined. 22736 Usually this means the macro was only invoked conditionally." >&2;} 22737 { (exit 1); exit 1; }; } 22738 fi 22739 if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then 22740 { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined. 22741 Usually this means the macro was only invoked conditionally." >&5 22742 echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined. 22743 Usually this means the macro was only invoked conditionally." >&2;} 22744 { (exit 1); exit 1; }; } 22745 fi 22746 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then 22747 { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined. 22748 Usually this means the macro was only invoked conditionally." >&5 22749 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined. 20388 22750 Usually this means the macro was only invoked conditionally." >&2;} 20389 22751 { (exit 1); exit 1; }; } … … 21011 23373 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 21012 23374 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 23375 s,@FLIBS@,$FLIBS,;t t 23376 s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t 23377 s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t 23378 s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t 23379 s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t 23380 s,@MAKEOKFILE@,$MAKEOKFILE,;t t 23381 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t 23382 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t 21013 23383 s,@LIBEXT@,$LIBEXT,;t t 21014 23384 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t … … 21486 23856 21487 23857 21488 if test x"$coin_vpath_link_files" = x; then : ; else21489 lnkcmd=21490 if test "$enable_doscompile" = yes; then21491 lnkcmd=cp21492 fi21493 case "$CC" in21494 cl* | */cl* | CL* | */CL*)21495 lnkcmd=cp ;;21496 esac21497 if test "$lnkcmd" = cp; then21498 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&523858 if test x"$coin_vpath_link_files" = x; then : ; else 23859 lnkcmd= 23860 if test "$enable_doscompile" = yes; then 23861 lnkcmd=cp 23862 fi 23863 case "$CC" in 23864 cl* | */cl* | CL* | */CL*) 23865 lnkcmd=cp ;; 23866 esac 23867 if test "$lnkcmd" = cp; then 23868 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 21499 23869 echo "$as_me: Copying data files for VPATH configuration" >&6;} 21500 else21501 echo "$as_me:$LINENO: checking whether ln -s works" >&523870 else 23871 echo "$as_me:$LINENO: checking whether ln -s works" >&5 21502 23872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 21503 23873 LN_S=$as_ln_s … … 21510 23880 fi 21511 23881 21512 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&523882 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 21513 23883 echo "$as_me: Creating VPATH links for data files" >&6;} 21514 lnkcmd="$LN_S"21515 fi21516 for file in $coin_vpath_link_files; do21517 dir=`(dirname "./$file") 2>/dev/null ||23884 lnkcmd="$LN_S" 23885 fi 23886 for file in $coin_vpath_link_files; do 23887 dir=`(dirname "./$file") 2>/dev/null || 21518 23888 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21519 23889 X"./$file" : 'X\(//\)[^/]' \| \ … … 21527 23897 /^X\(\/\).*/{ s//\1/; q; } 21528 23898 s/.*/./; q'` 21529 if test -d $dir; then : ; else21530 { if $as_mkdir_p; then23899 if test -d $dir; then : ; else 23900 { if $as_mkdir_p; then 21531 23901 mkdir -p $dir 21532 23902 else … … 21553 23923 { (exit 1); exit 1; }; }; } 21554 23924 21555 fi21556 rm -f $file21557 $lnkcmd $abs_source_dir/$file $file21558 done21559 fi21560 21561 if test x$coin_projectdir = xyes; then21562 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&523925 fi 23926 rm -f $file 23927 $lnkcmd $abs_source_dir/$file $file 23928 done 23929 fi 23930 23931 if test x$coin_projectdir = xyes; then 23932 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 21563 23933 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 21564 else21565 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&523934 else 23935 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 21566 23936 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 21567 fi 21568 23937 fi 23938 else 23939 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 23940 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 23941 fi 23942 23943 -
ThirdParty/Blas/stable/1.0/configure.ac
r218 r273 1 # Copyright (C) 2006 International Business Machines.1 # Copyright (C) 2006, 2007 International Business Machines. 2 2 # All Rights Reserved. 3 3 # This file is distributed under the Common Public License. … … 49 49 AC_COIN_INIT_AUTO_TOOLS 50 50 51 # Check if Blas is already available on the system or provided by user 52 AC_COIN_HAS_BLAS 53 MAKEOKFILE=.MakeOk 54 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then 55 rm -f $MAKEOKFILE 56 AC_MSG_NOTICE([The Blas sources don't need to be compiled]) 57 MAKEOKFILE= 58 else 59 touch $MAKEOKFILE 60 fi 61 AC_SUBST(MAKEOKFILE) 62 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE") 63 51 64 AC_CONFIG_FILES([Makefile]) 52 65
Note: See TracChangeset
for help on using the changeset viewer.