Changeset 277


Ignore:
Timestamp:
Mar 26, 2007 4:55:45 PM (14 years ago)
Author:
andreasw
Message:

synchronizing Lapack stable 1.0 with trunk (rev 270)

Location:
ThirdParty/Lapack/stable/1.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/stable/1.0/Makefile.am

    r217 r277  
    1 # Copyright (C) 2006 International Business Machines and others.
     1# Copyright (C) 2006, 2007 International Business Machines and others.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    99EXTRA_DIST = get.lapack INSTALL.LAPACK
    1010
    11 noinst_LTLIBRARIES = libcoinlapack.la
     11if SKIPMAKE
     12  noinst_LTLIBRARIES =
     13else
     14  noinst_LTLIBRARIES = libcoinlapack.la
     15endif
    1216
    1317LAPACK_FILES = \
     
    5963
    6064# Files that are generated and should be cleaned with make distclean
    61 DISTCLEANFILES = $(LAPACK_FILES)
     65DISTCLEANFILES = $(LAPACK_FILES) $(MAKEOKFILE)
    6266
    6367include ../../BuildTools/Makemain.inc
  • ThirdParty/Lapack/stable/1.0/Makefile.in

    r217 r277  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2006 International Business Machines and others.
     17# Copyright (C) 2006, 2007 International Business Machines and others.
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    8181nodist_libcoinlapack_la_OBJECTS = $(am__objects_1)
    8282libcoinlapack_la_OBJECTS = $(nodist_libcoinlapack_la_OBJECTS)
     83@SKIPMAKE_FALSE@am_libcoinlapack_la_rpath =
    8384DEFAULT_INCLUDES = -I. -I$(srcdir)
    8485F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS)
     
    123124CDEFS = @CDEFS@
    124125CFLAGS = @CFLAGS@
     126COIN_BUILD_BLAS_FALSE = @COIN_BUILD_BLAS_FALSE@
     127COIN_BUILD_BLAS_TRUE = @COIN_BUILD_BLAS_TRUE@
     128COIN_BUILD_LAPACK_FALSE = @COIN_BUILD_LAPACK_FALSE@
     129COIN_BUILD_LAPACK_TRUE = @COIN_BUILD_LAPACK_TRUE@
     130COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@
     131COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@
     132COIN_HAS_LAPACK_FALSE = @COIN_HAS_LAPACK_FALSE@
     133COIN_HAS_LAPACK_TRUE = @COIN_HAS_LAPACK_TRUE@
    125134CPP = @CPP@
    126135CPPFLAGS = @CPPFLAGS@
     
    143152FADDLIBS = @FADDLIBS@
    144153FFLAGS = @FFLAGS@
     154FLIBS = @FLIBS@
    145155HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    146156HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    162172MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    163173MAKEINFO = @MAKEINFO@
     174MAKEOKFILE = @MAKEOKFILE@
    164175MPICC = @MPICC@
    165176MPIF77 = @MPIF77@
     
    178189SET_MAKE = @SET_MAKE@
    179190SHELL = @SHELL@
     191SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
     192SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    180193STRIP = @STRIP@
    181194VERSION = @VERSION@
     
    235248AUTOMAKE_OPTIONS = foreign
    236249EXTRA_DIST = get.lapack INSTALL.LAPACK $(am__append_1)
    237 noinst_LTLIBRARIES = libcoinlapack.la
     250@SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinlapack.la
     251@SKIPMAKE_TRUE@noinst_LTLIBRARIES =
    238252LAPACK_FILES = \
    239253        dgetf2.f \
     
    283297
    284298# Files that are generated and should be cleaned with make distclean
    285 DISTCLEANFILES = $(LAPACK_FILES) $(am__append_2) \
     299DISTCLEANFILES = $(LAPACK_FILES) $(MAKEOKFILE) $(am__append_2) \
    286300        $(VPATH_DISTCLEANFILES)
    287301all: all-am
     
    332346        done
    333347libcoinlapack.la: $(libcoinlapack_la_OBJECTS) $(libcoinlapack_la_DEPENDENCIES)
    334         $(F77LINK) $(libcoinlapack_la_LDFLAGS) $(libcoinlapack_la_OBJECTS) $(libcoinlapack_la_LIBADD) $(LIBS)
     348        $(F77LINK) $(am_libcoinlapack_la_rpath) $(libcoinlapack_la_LDFLAGS) $(libcoinlapack_la_OBJECTS) $(libcoinlapack_la_LIBADD) $(LIBS)
    335349
    336350mostlyclean-compile:
  • ThirdParty/Lapack/stable/1.0/configure

    r217 r277  
    473473#endif"
    474474
    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'
     475ac_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 COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_BUILD_LAPACK_TRUE COIN_BUILD_LAPACK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11011101  --with-tags[=TAGS]
    11021102                          include additional configurations [automatic]
     1103  --with-blas             specify BLAS library (or BUILD for compilation)
     1104  --with-lapack           specify LAPACK library (or BUILD for compilation)
    11031105
    11041106Some influential environment variables:
     
    31973199
    31983200# Provide some information about the compiler.
    3199 echo "$as_me:3199:" \
     3201echo "$as_me:3201:" \
    32003202     "checking for Fortran 77 compiler version" >&5
    32013203ac_compiler=`set X $ac_compile; echo $2`
     
    47964798
    47974799
    4798 unset ac_cv_file__________libtool
    4799 unset ac_cv_file_______libtool
    4800 unset ac_cv_file____libtool
    4801 
    48024800LIBTOOL=
    4803 echo "$as_me:$LINENO: checking for ../libtool" >&5
    4804 echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
    4805 if test "${ac_cv_file____libtool+set}" = set; then
    4806   echo $ECHO_N "(cached) $ECHO_C" >&6
    4807 else
    4808   test "$cross_compiling" = yes &&
    4809   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    4810 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    4811    { (exit 1); exit 1; }; }
    4812 if test -r "../libtool"; then
    4813   ac_cv_file____libtool=yes
    4814 else
    4815   ac_cv_file____libtool=no
    4816 fi
    4817 fi
    4818 echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
    4819 echo "${ECHO_T}$ac_cv_file____libtool" >&6
    4820 if test $ac_cv_file____libtool = yes; then
     4801if test -r ../libtool; then
    48214802  coin_config_dir=..
    4822                LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
    4823 fi
    4824 
     4803  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     4804fi
    48254805if test "x$LIBTOOL" = x; then
    4826   echo "$as_me:$LINENO: checking for ../../libtool" >&5
    4827 echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
    4828 if test "${ac_cv_file_______libtool+set}" = set; then
    4829   echo $ECHO_N "(cached) $ECHO_C" >&6
    4830 else
    4831   test "$cross_compiling" = yes &&
    4832   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    4833 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    4834    { (exit 1); exit 1; }; }
    4835 if test -r "../../libtool"; then
    4836   ac_cv_file_______libtool=yes
    4837 else
    4838   ac_cv_file_______libtool=no
    4839 fi
    4840 fi
    4841 echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
    4842 echo "${ECHO_T}$ac_cv_file_______libtool" >&6
    4843 if test $ac_cv_file_______libtool = yes; then
    4844   coin_config_dir=../..
    4845                  LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
    4846 fi
    4847 
    4848 fi
    4849 # if test "x$LIBTOOL" = x; then
    4850 #   AC_CHECK_FILE([../../../libtool],
    4851 #                 [coin_config_dir=../../..
    4852 #                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
    4853 # fi
     4806  if test -r ../../libtool; then
     4807    coin_config_dir=../..
     4808    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     4809  fi
     4810fi
    48544811
    48554812if test "x$LIBTOOL" = x; then
     
    54045361*-*-irix6*)
    54055362  # Find out which ABI we are using.
    5406   echo '#line 5406 "configure"' > conftest.$ac_ext
     5363  echo '#line 5363 "configure"' > conftest.$ac_ext
    54075364  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54085365  (eval $ac_compile) 2>&5
     
    78337790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78347791   -e 's:$: $lt_compiler_flag:'`
    7835    (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
     7792   (eval echo "\"\$as_me:7792: $lt_compile\"" >&5)
    78367793   (eval "$lt_compile" 2>conftest.err)
    78377794   ac_status=$?
    78387795   cat conftest.err >&5
    7839    echo "$as_me:7839: \$? = $ac_status" >&5
     7796   echo "$as_me:7796: \$? = $ac_status" >&5
    78407797   if (exit $ac_status) && test -s "$ac_outfile"; then
    78417798     # The compiler can only warn and ignore the option if not recognized
     
    81018058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81028059   -e 's:$: $lt_compiler_flag:'`
    8103    (eval echo "\"\$as_me:8103: $lt_compile\"" >&5)
     8060   (eval echo "\"\$as_me:8060: $lt_compile\"" >&5)
    81048061   (eval "$lt_compile" 2>conftest.err)
    81058062   ac_status=$?
    81068063   cat conftest.err >&5
    8107    echo "$as_me:8107: \$? = $ac_status" >&5
     8064   echo "$as_me:8064: \$? = $ac_status" >&5
    81088065   if (exit $ac_status) && test -s "$ac_outfile"; then
    81098066     # The compiler can only warn and ignore the option if not recognized
     
    82058162   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82068163   -e 's:$: $lt_compiler_flag:'`
    8207    (eval echo "\"\$as_me:8207: $lt_compile\"" >&5)
     8164   (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
    82088165   (eval "$lt_compile" 2>out/conftest.err)
    82098166   ac_status=$?
    82108167   cat out/conftest.err >&5
    8211    echo "$as_me:8211: \$? = $ac_status" >&5
     8168   echo "$as_me:8168: \$? = $ac_status" >&5
    82128169   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82138170   then
     
    1055010507  lt_status=$lt_dlunknown
    1055110508  cat > conftest.$ac_ext <<EOF
    10552 #line 10552 "configure"
     10509#line 10509 "configure"
    1055310510#include "confdefs.h"
    1055410511
     
    1065010607  lt_status=$lt_dlunknown
    1065110608  cat > conftest.$ac_ext <<EOF
    10652 #line 10652 "configure"
     10609#line 10609 "configure"
    1065310610#include "confdefs.h"
    1065410611
     
    1299412951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1299512952   -e 's:$: $lt_compiler_flag:'`
    12996    (eval echo "\"\$as_me:12996: $lt_compile\"" >&5)
     12953   (eval echo "\"\$as_me:12953: $lt_compile\"" >&5)
    1299712954   (eval "$lt_compile" 2>conftest.err)
    1299812955   ac_status=$?
    1299912956   cat conftest.err >&5
    13000    echo "$as_me:13000: \$? = $ac_status" >&5
     12957   echo "$as_me:12957: \$? = $ac_status" >&5
    1300112958   if (exit $ac_status) && test -s "$ac_outfile"; then
    1300212959     # The compiler can only warn and ignore the option if not recognized
     
    1309813055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1309913056   -e 's:$: $lt_compiler_flag:'`
    13100    (eval echo "\"\$as_me:13100: $lt_compile\"" >&5)
     13057   (eval echo "\"\$as_me:13057: $lt_compile\"" >&5)
    1310113058   (eval "$lt_compile" 2>out/conftest.err)
    1310213059   ac_status=$?
    1310313060   cat out/conftest.err >&5
    13104    echo "$as_me:13104: \$? = $ac_status" >&5
     13061   echo "$as_me:13061: \$? = $ac_status" >&5
    1310513062   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1310613063   then
     
    1466814625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1466914626   -e 's:$: $lt_compiler_flag:'`
    14670    (eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
     14627   (eval echo "\"\$as_me:14627: $lt_compile\"" >&5)
    1467114628   (eval "$lt_compile" 2>conftest.err)
    1467214629   ac_status=$?
    1467314630   cat conftest.err >&5
    14674    echo "$as_me:14674: \$? = $ac_status" >&5
     14631   echo "$as_me:14631: \$? = $ac_status" >&5
    1467514632   if (exit $ac_status) && test -s "$ac_outfile"; then
    1467614633     # The compiler can only warn and ignore the option if not recognized
     
    1477214729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1477314730   -e 's:$: $lt_compiler_flag:'`
    14774    (eval echo "\"\$as_me:14774: $lt_compile\"" >&5)
     14731   (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
    1477514732   (eval "$lt_compile" 2>out/conftest.err)
    1477614733   ac_status=$?
    1477714734   cat out/conftest.err >&5
    14778    echo "$as_me:14778: \$? = $ac_status" >&5
     14735   echo "$as_me:14735: \$? = $ac_status" >&5
    1477914736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1478014737   then
     
    1697916936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1698016937   -e 's:$: $lt_compiler_flag:'`
    16981    (eval echo "\"\$as_me:16981: $lt_compile\"" >&5)
     16938   (eval echo "\"\$as_me:16938: $lt_compile\"" >&5)
    1698216939   (eval "$lt_compile" 2>conftest.err)
    1698316940   ac_status=$?
    1698416941   cat conftest.err >&5
    16985    echo "$as_me:16985: \$? = $ac_status" >&5
     16942   echo "$as_me:16942: \$? = $ac_status" >&5
    1698616943   if (exit $ac_status) && test -s "$ac_outfile"; then
    1698716944     # The compiler can only warn and ignore the option if not recognized
     
    1724717204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1724817205   -e 's:$: $lt_compiler_flag:'`
    17249    (eval echo "\"\$as_me:17249: $lt_compile\"" >&5)
     17206   (eval echo "\"\$as_me:17206: $lt_compile\"" >&5)
    1725017207   (eval "$lt_compile" 2>conftest.err)
    1725117208   ac_status=$?
    1725217209   cat conftest.err >&5
    17253    echo "$as_me:17253: \$? = $ac_status" >&5
     17210   echo "$as_me:17210: \$? = $ac_status" >&5
    1725417211   if (exit $ac_status) && test -s "$ac_outfile"; then
    1725517212     # The compiler can only warn and ignore the option if not recognized
     
    1735117308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1735217309   -e 's:$: $lt_compiler_flag:'`
    17353    (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
     17310   (eval echo "\"\$as_me:17310: $lt_compile\"" >&5)
    1735417311   (eval "$lt_compile" 2>out/conftest.err)
    1735517312   ac_status=$?
    1735617313   cat out/conftest.err >&5
    17357    echo "$as_me:17357: \$? = $ac_status" >&5
     17314   echo "$as_me:17314: \$? = $ac_status" >&5
    1735817315   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1735917316   then
     
    2006520022
    2006620023  case $build in
     20024    *x86_64-*)
     20025# Here we need to check if -m32 is specified.  If so, we need to correct sys_lib_search_path_spec
     20026      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
     20027        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
     20028echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
     20029        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
     20030        mv conftest.bla libtool
     20031        chmod 755 libtool
     20032      fi
     20033      ;;
    2006720034    *-cygwin* | *-mingw*)
    2006820035    case "$CXX" in
     
    2020420171}
    2020520172
     20173# Check if Lapack is already available on the system or provided by user
     20174ac_ext=f
     20175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20178echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     20179echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     20180if test "${ac_cv_prog_f77_v+set}" = set; then
     20181  echo $ECHO_N "(cached) $ECHO_C" >&6
     20182else
     20183  cat >conftest.$ac_ext <<_ACEOF
     20184      program main
     20185
     20186      end
     20187_ACEOF
     20188rm -f conftest.$ac_objext
     20189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20190  (eval $ac_compile) 2>conftest.er1
     20191  ac_status=$?
     20192  grep -v '^ *+' conftest.er1 >conftest.err
     20193  rm -f conftest.er1
     20194  cat conftest.err >&5
     20195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20196  (exit $ac_status); } &&
     20197         { ac_try='test -z "$ac_f77_werror_flag"
     20198                         || test ! -s conftest.err'
     20199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20200  (eval $ac_try) 2>&5
     20201  ac_status=$?
     20202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20203  (exit $ac_status); }; } &&
     20204         { ac_try='test -s conftest.$ac_objext'
     20205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20206  (eval $ac_try) 2>&5
     20207  ac_status=$?
     20208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20209  (exit $ac_status); }; }; then
     20210  ac_cv_prog_f77_v=
     20211# Try some options frequently used verbose output
     20212for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     20213  cat >conftest.$ac_ext <<_ACEOF
     20214      program main
     20215
     20216      end
     20217_ACEOF
     20218
     20219# Compile and link our simple test program by passing a flag (argument
     20220# 1 to this macro) to the Fortran compiler in order to get
     20221# "verbose" output that we can then parse for the Fortran linker
     20222# flags.
     20223ac_save_FFLAGS=$FFLAGS
     20224FFLAGS="$FFLAGS $ac_verb"
     20225(eval echo $as_me:20225: \"$ac_link\") >&5
     20226ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20227echo "$ac_f77_v_output" >&5
     20228FFLAGS=$ac_save_FFLAGS
     20229
     20230rm -f conftest*
     20231
     20232# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20233# /foo, /bar, and /baz are search directories for the Fortran linker.
     20234# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20235ac_f77_v_output="`echo $ac_f77_v_output |
     20236        grep 'LPATH is:' |
     20237        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20238
     20239case $ac_f77_v_output in
     20240  # If we are using xlf then replace all the commas with spaces.
     20241  *xlfentry*)
     20242    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20243
     20244  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20245  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20246  *mGLOB_options_string*)
     20247    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20248
     20249  # If we are using Cray Fortran then delete quotes.
     20250  # Use "\"" instead of '"' for font-lock-mode.
     20251  # FIXME: a more general fix for quoted arguments with spaces?
     20252  *cft90*)
     20253    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20254esac
     20255
     20256
     20257  # look for -l* and *.a constructs in the output
     20258  for ac_arg in $ac_f77_v_output; do
     20259     case $ac_arg in
     20260        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     20261          ac_cv_prog_f77_v=$ac_verb
     20262          break 2 ;;
     20263     esac
     20264  done
     20265done
     20266if test -z "$ac_cv_prog_f77_v"; then
     20267   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     20268echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     20269fi
     20270else
     20271  echo "$as_me: failed program was:" >&5
     20272sed 's/^/| /' conftest.$ac_ext >&5
     20273
     20274{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     20275echo "$as_me: WARNING: compilation failed" >&2;}
     20276fi
     20277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20278
     20279fi
     20280echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     20281echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     20282echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     20283echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     20284if test "${ac_cv_f77_libs+set}" = set; then
     20285  echo $ECHO_N "(cached) $ECHO_C" >&6
     20286else
     20287  if test "x$FLIBS" != "x"; then
     20288  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     20289else
     20290
     20291cat >conftest.$ac_ext <<_ACEOF
     20292      program main
     20293
     20294      end
     20295_ACEOF
     20296
     20297# Compile and link our simple test program by passing a flag (argument
     20298# 1 to this macro) to the Fortran compiler in order to get
     20299# "verbose" output that we can then parse for the Fortran linker
     20300# flags.
     20301ac_save_FFLAGS=$FFLAGS
     20302FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     20303(eval echo $as_me:20303: \"$ac_link\") >&5
     20304ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20305echo "$ac_f77_v_output" >&5
     20306FFLAGS=$ac_save_FFLAGS
     20307
     20308rm -f conftest*
     20309
     20310# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20311# /foo, /bar, and /baz are search directories for the Fortran linker.
     20312# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20313ac_f77_v_output="`echo $ac_f77_v_output |
     20314        grep 'LPATH is:' |
     20315        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20316
     20317case $ac_f77_v_output in
     20318  # If we are using xlf then replace all the commas with spaces.
     20319  *xlfentry*)
     20320    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20321
     20322  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20323  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20324  *mGLOB_options_string*)
     20325    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20326
     20327  # If we are using Cray Fortran then delete quotes.
     20328  # Use "\"" instead of '"' for font-lock-mode.
     20329  # FIXME: a more general fix for quoted arguments with spaces?
     20330  *cft90*)
     20331    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20332esac
     20333
     20334
     20335
     20336ac_cv_f77_libs=
     20337
     20338# Save positional arguments (if any)
     20339ac_save_positional="$@"
     20340
     20341set X $ac_f77_v_output
     20342while test $# != 1; do
     20343  shift
     20344  ac_arg=$1
     20345  case $ac_arg in
     20346        [\\/]*.a | ?:[\\/]*.a)
     20347            ac_exists=false
     20348  for ac_i in $ac_cv_f77_libs; do
     20349    if test x"$ac_arg" = x"$ac_i"; then
     20350      ac_exists=true
     20351      break
     20352    fi
     20353  done
     20354
     20355  if test x"$ac_exists" = xtrue; then
     20356  :
     20357else
     20358  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20359fi
     20360
     20361          ;;
     20362        -bI:*)
     20363            ac_exists=false
     20364  for ac_i in $ac_cv_f77_libs; do
     20365    if test x"$ac_arg" = x"$ac_i"; then
     20366      ac_exists=true
     20367      break
     20368    fi
     20369  done
     20370
     20371  if test x"$ac_exists" = xtrue; then
     20372  :
     20373else
     20374  if test "$ac_compiler_gnu" = yes; then
     20375  for ac_link_opt in $ac_arg; do
     20376    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20377  done
     20378else
     20379  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20380fi
     20381fi
     20382
     20383          ;;
     20384          # Ignore these flags.
     20385        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     20386          ;;
     20387        -lkernel32)
     20388          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20389          ;;
     20390        -[LRuY])
     20391          # These flags, when seen by themselves, take an argument.
     20392          # We remove the space between option and argument and re-iterate
     20393          # unless we find an empty arg or a new option (starting with -)
     20394          case $2 in
     20395             "" | -*);;
     20396             *)
     20397                ac_arg="$ac_arg$2"
     20398                shift; shift
     20399                set X $ac_arg "$@"
     20400                ;;
     20401          esac
     20402          ;;
     20403        -YP,*)
     20404          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     20405              ac_exists=false
     20406  for ac_i in $ac_cv_f77_libs; do
     20407    if test x"$ac_j" = x"$ac_i"; then
     20408      ac_exists=true
     20409      break
     20410    fi
     20411  done
     20412
     20413  if test x"$ac_exists" = xtrue; then
     20414  :
     20415else
     20416  ac_arg="$ac_arg $ac_j"
     20417                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     20418fi
     20419
     20420          done
     20421          ;;
     20422        -[lLR]*)
     20423            ac_exists=false
     20424  for ac_i in $ac_cv_f77_libs; do
     20425    if test x"$ac_arg" = x"$ac_i"; then
     20426      ac_exists=true
     20427      break
     20428    fi
     20429  done
     20430
     20431  if test x"$ac_exists" = xtrue; then
     20432  :
     20433else
     20434  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20435fi
     20436
     20437          ;;
     20438          # Ignore everything else.
     20439  esac
     20440done
     20441# restore positional arguments
     20442set X $ac_save_positional; shift
     20443
     20444# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     20445# then we insist that the "run path" must be an absolute path (i.e. it
     20446# must begin with a "/").
     20447case `(uname -sr) 2>/dev/null` in
     20448   "SunOS 5"*)
     20449      ac_ld_run_path=`echo $ac_f77_v_output |
     20450                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     20451      test "x$ac_ld_run_path" != x &&
     20452        if test "$ac_compiler_gnu" = yes; then
     20453  for ac_link_opt in $ac_ld_run_path; do
     20454    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20455  done
     20456else
     20457  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     20458fi
     20459      ;;
     20460esac
     20461fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     20462
     20463fi
     20464echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     20465echo "${ECHO_T}$ac_cv_f77_libs" >&6
     20466FLIBS="$ac_cv_f77_libs"
     20467
     20468
     20469ac_ext=c
     20470ac_cpp='$CPP $CPPFLAGS'
     20471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20473ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20474
     20475ac_ext=f
     20476ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20477ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20478ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20479
     20480echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     20481echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     20482if test "${ac_cv_f77_dummy_main+set}" = set; then
     20483  echo $ECHO_N "(cached) $ECHO_C" >&6
     20484else
     20485  ac_f77_dm_save_LIBS=$LIBS
     20486 LIBS="$LIBS $FLIBS"
     20487 ac_fortran_dm_var=F77_DUMMY_MAIN
     20488 ac_ext=c
     20489ac_cpp='$CPP $CPPFLAGS'
     20490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20492ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20493
     20494 # First, try linking without a dummy main:
     20495 cat >conftest.$ac_ext <<_ACEOF
     20496/* confdefs.h.  */
     20497_ACEOF
     20498cat confdefs.h >>conftest.$ac_ext
     20499cat >>conftest.$ac_ext <<_ACEOF
     20500/* end confdefs.h.  */
     20501
     20502#ifdef F77_DUMMY_MAIN
     20503
     20504#  ifdef __cplusplus
     20505     extern "C"
     20506#  endif
     20507   int F77_DUMMY_MAIN() { return 1; }
     20508
     20509#endif
     20510int
     20511main ()
     20512{
     20513
     20514  ;
     20515  return 0;
     20516}
     20517_ACEOF
     20518rm -f conftest.$ac_objext conftest$ac_exeext
     20519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20520  (eval $ac_link) 2>conftest.er1
     20521  ac_status=$?
     20522  grep -v '^ *+' conftest.er1 >conftest.err
     20523  rm -f conftest.er1
     20524  cat conftest.err >&5
     20525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20526  (exit $ac_status); } &&
     20527         { ac_try='test -z "$ac_c_werror_flag"
     20528                         || test ! -s conftest.err'
     20529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20530  (eval $ac_try) 2>&5
     20531  ac_status=$?
     20532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20533  (exit $ac_status); }; } &&
     20534         { ac_try='test -s conftest$ac_exeext'
     20535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20536  (eval $ac_try) 2>&5
     20537  ac_status=$?
     20538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20539  (exit $ac_status); }; }; then
     20540  ac_cv_fortran_dummy_main=none
     20541else
     20542  echo "$as_me: failed program was:" >&5
     20543sed 's/^/| /' conftest.$ac_ext >&5
     20544
     20545ac_cv_fortran_dummy_main=unknown
     20546fi
     20547rm -f conftest.err conftest.$ac_objext \
     20548      conftest$ac_exeext conftest.$ac_ext
     20549
     20550 if test $ac_cv_fortran_dummy_main = unknown; then
     20551   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     20552     cat >conftest.$ac_ext <<_ACEOF
     20553/* confdefs.h.  */
     20554_ACEOF
     20555cat confdefs.h >>conftest.$ac_ext
     20556cat >>conftest.$ac_ext <<_ACEOF
     20557/* end confdefs.h.  */
     20558#define $ac_fortran_dm_var $ac_func
     20559#ifdef F77_DUMMY_MAIN
     20560
     20561#  ifdef __cplusplus
     20562     extern "C"
     20563#  endif
     20564   int F77_DUMMY_MAIN() { return 1; }
     20565
     20566#endif
     20567int
     20568main ()
     20569{
     20570
     20571  ;
     20572  return 0;
     20573}
     20574_ACEOF
     20575rm -f conftest.$ac_objext conftest$ac_exeext
     20576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20577  (eval $ac_link) 2>conftest.er1
     20578  ac_status=$?
     20579  grep -v '^ *+' conftest.er1 >conftest.err
     20580  rm -f conftest.er1
     20581  cat conftest.err >&5
     20582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20583  (exit $ac_status); } &&
     20584         { ac_try='test -z "$ac_c_werror_flag"
     20585                         || test ! -s conftest.err'
     20586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20587  (eval $ac_try) 2>&5
     20588  ac_status=$?
     20589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20590  (exit $ac_status); }; } &&
     20591         { ac_try='test -s conftest$ac_exeext'
     20592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20593  (eval $ac_try) 2>&5
     20594  ac_status=$?
     20595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20596  (exit $ac_status); }; }; then
     20597  ac_cv_fortran_dummy_main=$ac_func; break
     20598else
     20599  echo "$as_me: failed program was:" >&5
     20600sed 's/^/| /' conftest.$ac_ext >&5
     20601
     20602fi
     20603rm -f conftest.err conftest.$ac_objext \
     20604      conftest$ac_exeext conftest.$ac_ext
     20605   done
     20606 fi
     20607 ac_ext=f
     20608ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20609ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20610ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20611 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     20612 rm -f conftest*
     20613 LIBS=$ac_f77_dm_save_LIBS
     20614
     20615fi
     20616echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     20617echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     20618F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     20619if test "$F77_DUMMY_MAIN" != unknown; then
     20620  if test $F77_DUMMY_MAIN != none; then
     20621
     20622cat >>confdefs.h <<_ACEOF
     20623#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     20624_ACEOF
     20625
     20626  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     20627
     20628cat >>confdefs.h <<\_ACEOF
     20629#define FC_DUMMY_MAIN_EQ_F77 1
     20630_ACEOF
     20631
     20632  fi
     20633fi
     20634else
     20635  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     20636See \`config.log' for more details." >&5
     20637echo "$as_me: error: linking to Fortran libraries from C fails
     20638See \`config.log' for more details." >&2;}
     20639   { (exit 1); exit 1; }; }
     20640fi
     20641
     20642
     20643ac_ext=c
     20644ac_cpp='$CPP $CPPFLAGS'
     20645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20647ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20648
     20649ac_ext=f
     20650ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20651ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20652ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20653echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     20654echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     20655if test "${ac_cv_f77_mangling+set}" = set; then
     20656  echo $ECHO_N "(cached) $ECHO_C" >&6
     20657else
     20658  cat >conftest.$ac_ext <<_ACEOF
     20659      subroutine foobar()
     20660      return
     20661      end
     20662      subroutine foo_bar()
     20663      return
     20664      end
     20665_ACEOF
     20666rm -f conftest.$ac_objext
     20667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20668  (eval $ac_compile) 2>conftest.er1
     20669  ac_status=$?
     20670  grep -v '^ *+' conftest.er1 >conftest.err
     20671  rm -f conftest.er1
     20672  cat conftest.err >&5
     20673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20674  (exit $ac_status); } &&
     20675         { ac_try='test -z "$ac_f77_werror_flag"
     20676                         || test ! -s conftest.err'
     20677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20678  (eval $ac_try) 2>&5
     20679  ac_status=$?
     20680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20681  (exit $ac_status); }; } &&
     20682         { ac_try='test -s conftest.$ac_objext'
     20683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20684  (eval $ac_try) 2>&5
     20685  ac_status=$?
     20686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20687  (exit $ac_status); }; }; then
     20688  mv conftest.$ac_objext cfortran_test.$ac_objext
     20689
     20690  ac_save_LIBS=$LIBS
     20691  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     20692
     20693  ac_ext=c
     20694ac_cpp='$CPP $CPPFLAGS'
     20695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20697ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20698  ac_success=no
     20699  for ac_foobar in foobar FOOBAR; do
     20700    for ac_underscore in "" "_"; do
     20701      ac_func="$ac_foobar$ac_underscore"
     20702      cat >conftest.$ac_ext <<_ACEOF
     20703/* confdefs.h.  */
     20704_ACEOF
     20705cat confdefs.h >>conftest.$ac_ext
     20706cat >>conftest.$ac_ext <<_ACEOF
     20707/* end confdefs.h.  */
     20708
     20709/* Override any gcc2 internal prototype to avoid an error.  */
     20710#ifdef __cplusplus
     20711extern "C"
     20712#endif
     20713/* We use char because int might match the return type of a gcc2
     20714   builtin and then its argument prototype would still apply.  */
     20715char $ac_func ();
     20716#ifdef F77_DUMMY_MAIN
     20717
     20718#  ifdef __cplusplus
     20719     extern "C"
     20720#  endif
     20721   int F77_DUMMY_MAIN() { return 1; }
     20722
     20723#endif
     20724int
     20725main ()
     20726{
     20727$ac_func ();
     20728  ;
     20729  return 0;
     20730}
     20731_ACEOF
     20732rm -f conftest.$ac_objext conftest$ac_exeext
     20733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20734  (eval $ac_link) 2>conftest.er1
     20735  ac_status=$?
     20736  grep -v '^ *+' conftest.er1 >conftest.err
     20737  rm -f conftest.er1
     20738  cat conftest.err >&5
     20739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20740  (exit $ac_status); } &&
     20741         { ac_try='test -z "$ac_c_werror_flag"
     20742                         || test ! -s conftest.err'
     20743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20744  (eval $ac_try) 2>&5
     20745  ac_status=$?
     20746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20747  (exit $ac_status); }; } &&
     20748         { ac_try='test -s conftest$ac_exeext'
     20749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20750  (eval $ac_try) 2>&5
     20751  ac_status=$?
     20752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20753  (exit $ac_status); }; }; then
     20754  ac_success=yes; break 2
     20755else
     20756  echo "$as_me: failed program was:" >&5
     20757sed 's/^/| /' conftest.$ac_ext >&5
     20758
     20759fi
     20760rm -f conftest.err conftest.$ac_objext \
     20761      conftest$ac_exeext conftest.$ac_ext
     20762    done
     20763  done
     20764  ac_ext=f
     20765ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20766ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20767ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20768
     20769  if test "$ac_success" = "yes"; then
     20770     case $ac_foobar in
     20771        foobar)
     20772           ac_case=lower
     20773           ac_foo_bar=foo_bar
     20774           ;;
     20775        FOOBAR)
     20776           ac_case=upper
     20777           ac_foo_bar=FOO_BAR
     20778           ;;
     20779     esac
     20780
     20781     ac_ext=c
     20782ac_cpp='$CPP $CPPFLAGS'
     20783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20785ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20786     ac_success_extra=no
     20787     for ac_extra in "" "_"; do
     20788        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     20789        cat >conftest.$ac_ext <<_ACEOF
     20790/* confdefs.h.  */
     20791_ACEOF
     20792cat confdefs.h >>conftest.$ac_ext
     20793cat >>conftest.$ac_ext <<_ACEOF
     20794/* end confdefs.h.  */
     20795
     20796/* Override any gcc2 internal prototype to avoid an error.  */
     20797#ifdef __cplusplus
     20798extern "C"
     20799#endif
     20800/* We use char because int might match the return type of a gcc2
     20801   builtin and then its argument prototype would still apply.  */
     20802char $ac_func ();
     20803#ifdef F77_DUMMY_MAIN
     20804
     20805#  ifdef __cplusplus
     20806     extern "C"
     20807#  endif
     20808   int F77_DUMMY_MAIN() { return 1; }
     20809
     20810#endif
     20811int
     20812main ()
     20813{
     20814$ac_func ();
     20815  ;
     20816  return 0;
     20817}
     20818_ACEOF
     20819rm -f conftest.$ac_objext conftest$ac_exeext
     20820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20821  (eval $ac_link) 2>conftest.er1
     20822  ac_status=$?
     20823  grep -v '^ *+' conftest.er1 >conftest.err
     20824  rm -f conftest.er1
     20825  cat conftest.err >&5
     20826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20827  (exit $ac_status); } &&
     20828         { ac_try='test -z "$ac_c_werror_flag"
     20829                         || test ! -s conftest.err'
     20830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20831  (eval $ac_try) 2>&5
     20832  ac_status=$?
     20833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20834  (exit $ac_status); }; } &&
     20835         { ac_try='test -s conftest$ac_exeext'
     20836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20837  (eval $ac_try) 2>&5
     20838  ac_status=$?
     20839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20840  (exit $ac_status); }; }; then
     20841  ac_success_extra=yes; break
     20842else
     20843  echo "$as_me: failed program was:" >&5
     20844sed 's/^/| /' conftest.$ac_ext >&5
     20845
     20846fi
     20847rm -f conftest.err conftest.$ac_objext \
     20848      conftest$ac_exeext conftest.$ac_ext
     20849     done
     20850     ac_ext=f
     20851ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20852ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20853ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20854
     20855     if test "$ac_success_extra" = "yes"; then
     20856        ac_cv_f77_mangling="$ac_case case"
     20857        if test -z "$ac_underscore"; then
     20858           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     20859        else
     20860           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     20861        fi
     20862        if test -z "$ac_extra"; then
     20863           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     20864        else
     20865           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     20866        fi
     20867      else
     20868        ac_cv_f77_mangling="unknown"
     20869      fi
     20870  else
     20871     ac_cv_f77_mangling="unknown"
     20872  fi
     20873
     20874  LIBS=$ac_save_LIBS
     20875  rm -f cfortran_test* conftest*
     20876else
     20877  echo "$as_me: failed program was:" >&5
     20878sed 's/^/| /' conftest.$ac_ext >&5
     20879
     20880{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     20881See \`config.log' for more details." >&5
     20882echo "$as_me: error: cannot compile a simple Fortran program
     20883See \`config.log' for more details." >&2;}
     20884   { (exit 1); exit 1; }; }
     20885fi
     20886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20887
     20888fi
     20889echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     20890echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     20891
     20892ac_ext=c
     20893ac_cpp='$CPP $CPPFLAGS'
     20894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20896ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20897
     20898if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack; then
     20899  coin_blasobjdir=../Blas
     20900else
     20901  coin_blasobjdir=../ThirdParty/Blas
     20902fi
     20903coin_blassrcdir=$srcdir/$coin_blasobjdir
     20904
     20905
     20906# Check whether --with-blas or --without-blas was given.
     20907if test "${with_blas+set}" = set; then
     20908  withval="$with_blas"
     20909  use_blas=$withval
     20910else
     20911  use_blas=
     20912fi;
     20913
     20914MAKEOKFILE=.MakeOk
     20915# Check if user supplied option makes sense
     20916if test x"$use_blas" != x; then
     20917  if test "$use_blas" = "BUILD"; then
     20918    # Don't check for course code if this is executed in ThirdParty/Blas
     20919    if test "$PACKAGE_NAME" != ThirdPartyBlas; then
     20920      if test -r $coin_blasobjdir/.MakeOk; then :; else
     20921        { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5
     20922echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;}
     20923   { (exit 1); exit 1; }; }
     20924      fi
     20925    fi
     20926  elif test "$use_blas" != no ; then
     20927    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
     20928echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
     20929    LIBS="$use_blas $LIBS"
     20930    ADDLIBS="$use_blas $ADDLIBS"
     20931    case $ac_ext in
     20932  f)
     20933    cat >conftest.$ac_ext <<_ACEOF
     20934/* confdefs.h.  */
     20935_ACEOF
     20936cat confdefs.h >>conftest.$ac_ext
     20937cat >>conftest.$ac_ext <<_ACEOF
     20938/* end confdefs.h.  */
     20939
     20940int
     20941main ()
     20942{
     20943      call daxpy
     20944  ;
     20945  return 0;
     20946}
     20947_ACEOF
     20948rm -f conftest.$ac_objext conftest$ac_exeext
     20949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20950  (eval $ac_link) 2>conftest.er1
     20951  ac_status=$?
     20952  grep -v '^ *+' conftest.er1 >conftest.err
     20953  rm -f conftest.er1
     20954  cat conftest.err >&5
     20955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20956  (exit $ac_status); } &&
     20957         { ac_try='test -z "$ac_c_werror_flag"
     20958                         || test ! -s conftest.err'
     20959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20960  (eval $ac_try) 2>&5
     20961  ac_status=$?
     20962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20963  (exit $ac_status); }; } &&
     20964         { ac_try='test -s conftest$ac_exeext'
     20965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20966  (eval $ac_try) 2>&5
     20967  ac_status=$?
     20968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20969  (exit $ac_status); }; }; then
     20970  echo "$as_me:$LINENO: result: yes" >&5
     20971echo "${ECHO_T}yes" >&6
     20972else
     20973  echo "$as_me: failed program was:" >&5
     20974sed 's/^/| /' conftest.$ac_ext >&5
     20975
     20976echo "$as_me:$LINENO: result: no" >&5
     20977echo "${ECHO_T}no" >&6
     20978                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     20979echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     20980   { (exit 1); exit 1; }; }
     20981fi
     20982rm -f conftest.err conftest.$ac_objext \
     20983      conftest$ac_exeext conftest.$ac_ext
     20984    ;;
     20985  c)
     20986    ac_ext=f
     20987ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20988ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20989ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20990case $ac_cv_f77_mangling in
     20991  upper*) ac_val="DAXPY" ;;
     20992  lower*) ac_val="daxpy" ;;
     20993  *)      ac_val="unknown" ;;
     20994esac
     20995case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     20996
     20997cfuncdaxpy="$ac_val"
     20998
     20999ac_ext=c
     21000ac_cpp='$CPP $CPPFLAGS'
     21001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21003ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21004
     21005    if test x"$coin_need_flibs" = xyes; then
     21006      flink_try=no;
     21007    else
     21008      cat >conftest.$ac_ext <<_ACEOF
     21009/* confdefs.h.  */
     21010_ACEOF
     21011cat confdefs.h >>conftest.$ac_ext
     21012cat >>conftest.$ac_ext <<_ACEOF
     21013/* end confdefs.h.  */
     21014void $cfuncdaxpy();
     21015#ifdef F77_DUMMY_MAIN
     21016
     21017#  ifdef __cplusplus
     21018     extern "C"
     21019#  endif
     21020   int F77_DUMMY_MAIN() { return 1; }
     21021
     21022#endif
     21023int
     21024main ()
     21025{
     21026$cfuncdaxpy()
     21027  ;
     21028  return 0;
     21029}
     21030_ACEOF
     21031rm -f conftest.$ac_objext conftest$ac_exeext
     21032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21033  (eval $ac_link) 2>conftest.er1
     21034  ac_status=$?
     21035  grep -v '^ *+' conftest.er1 >conftest.err
     21036  rm -f conftest.er1
     21037  cat conftest.err >&5
     21038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21039  (exit $ac_status); } &&
     21040         { ac_try='test -z "$ac_c_werror_flag"
     21041                         || test ! -s conftest.err'
     21042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21043  (eval $ac_try) 2>&5
     21044  ac_status=$?
     21045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21046  (exit $ac_status); }; } &&
     21047         { ac_try='test -s conftest$ac_exeext'
     21048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21049  (eval $ac_try) 2>&5
     21050  ac_status=$?
     21051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21052  (exit $ac_status); }; }; then
     21053  flink_try=yes
     21054else
     21055  echo "$as_me: failed program was:" >&5
     21056sed 's/^/| /' conftest.$ac_ext >&5
     21057
     21058flink_try=no
     21059fi
     21060rm -f conftest.err conftest.$ac_objext \
     21061      conftest$ac_exeext conftest.$ac_ext
     21062    fi
     21063    if test $flink_try = yes; then
     21064      echo "$as_me:$LINENO: result: yes" >&5
     21065echo "${ECHO_T}yes" >&6
     21066    else
     21067      if test x"$FLIBS" != x; then
     21068        flink_save_libs="$LIBS"
     21069        LIBS="$LIBS $FLIBS"
     21070        cat >conftest.$ac_ext <<_ACEOF
     21071/* confdefs.h.  */
     21072_ACEOF
     21073cat confdefs.h >>conftest.$ac_ext
     21074cat >>conftest.$ac_ext <<_ACEOF
     21075/* end confdefs.h.  */
     21076void $cfuncdaxpy();
     21077#ifdef F77_DUMMY_MAIN
     21078
     21079#  ifdef __cplusplus
     21080     extern "C"
     21081#  endif
     21082   int F77_DUMMY_MAIN() { return 1; }
     21083
     21084#endif
     21085int
     21086main ()
     21087{
     21088$cfuncdaxpy()
     21089  ;
     21090  return 0;
     21091}
     21092_ACEOF
     21093rm -f conftest.$ac_objext conftest$ac_exeext
     21094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21095  (eval $ac_link) 2>conftest.er1
     21096  ac_status=$?
     21097  grep -v '^ *+' conftest.er1 >conftest.err
     21098  rm -f conftest.er1
     21099  cat conftest.err >&5
     21100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21101  (exit $ac_status); } &&
     21102         { ac_try='test -z "$ac_c_werror_flag"
     21103                         || test ! -s conftest.err'
     21104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21105  (eval $ac_try) 2>&5
     21106  ac_status=$?
     21107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21108  (exit $ac_status); }; } &&
     21109         { ac_try='test -s conftest$ac_exeext'
     21110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21111  (eval $ac_try) 2>&5
     21112  ac_status=$?
     21113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21114  (exit $ac_status); }; }; then
     21115  LIBS="$flink_save_libs"
     21116                     echo "$as_me:$LINENO: result: yes" >&5
     21117echo "${ECHO_T}yes" >&6
     21118                     coin_need_flibs=yes
     21119else
     21120  echo "$as_me: failed program was:" >&5
     21121sed 's/^/| /' conftest.$ac_ext >&5
     21122
     21123LIBS="$flink_save_libs"
     21124                     echo "$as_me:$LINENO: result: no" >&5
     21125echo "${ECHO_T}no" >&6
     21126                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21127echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21128   { (exit 1); exit 1; }; }
     21129fi
     21130rm -f conftest.err conftest.$ac_objext \
     21131      conftest$ac_exeext conftest.$ac_ext
     21132      else
     21133        echo "$as_me:$LINENO: result: no" >&5
     21134echo "${ECHO_T}no" >&6
     21135                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21136echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21137   { (exit 1); exit 1; }; }
     21138      fi
     21139    fi
     21140    ;;
     21141  cc|cpp)
     21142    ac_ext=f
     21143ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21144ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21145ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21146case $ac_cv_f77_mangling in
     21147  upper*) ac_val="DAXPY" ;;
     21148  lower*) ac_val="daxpy" ;;
     21149  *)      ac_val="unknown" ;;
     21150esac
     21151case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21152
     21153cfuncdaxpy="$ac_val"
     21154
     21155ac_ext=c
     21156ac_cpp='$CPP $CPPFLAGS'
     21157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21159ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21160
     21161    if test x"$coin_need_flibs" = xyes; then
     21162      flink_try=no;
     21163    else
     21164      cat >conftest.$ac_ext <<_ACEOF
     21165/* confdefs.h.  */
     21166_ACEOF
     21167cat confdefs.h >>conftest.$ac_ext
     21168cat >>conftest.$ac_ext <<_ACEOF
     21169/* end confdefs.h.  */
     21170extern "C" {void $cfuncdaxpy();}
     21171#ifdef F77_DUMMY_MAIN
     21172
     21173#  ifdef __cplusplus
     21174     extern "C"
     21175#  endif
     21176   int F77_DUMMY_MAIN() { return 1; }
     21177
     21178#endif
     21179int
     21180main ()
     21181{
     21182$cfuncdaxpy()
     21183  ;
     21184  return 0;
     21185}
     21186_ACEOF
     21187rm -f conftest.$ac_objext conftest$ac_exeext
     21188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21189  (eval $ac_link) 2>conftest.er1
     21190  ac_status=$?
     21191  grep -v '^ *+' conftest.er1 >conftest.err
     21192  rm -f conftest.er1
     21193  cat conftest.err >&5
     21194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21195  (exit $ac_status); } &&
     21196         { ac_try='test -z "$ac_c_werror_flag"
     21197                         || test ! -s conftest.err'
     21198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21199  (eval $ac_try) 2>&5
     21200  ac_status=$?
     21201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21202  (exit $ac_status); }; } &&
     21203         { ac_try='test -s conftest$ac_exeext'
     21204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21205  (eval $ac_try) 2>&5
     21206  ac_status=$?
     21207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21208  (exit $ac_status); }; }; then
     21209  flink_try=yes
     21210else
     21211  echo "$as_me: failed program was:" >&5
     21212sed 's/^/| /' conftest.$ac_ext >&5
     21213
     21214flink_try=no
     21215fi
     21216rm -f conftest.err conftest.$ac_objext \
     21217      conftest$ac_exeext conftest.$ac_ext
     21218    fi
     21219    if test $flink_try = yes; then
     21220      echo "$as_me:$LINENO: result: yes" >&5
     21221echo "${ECHO_T}yes" >&6
     21222    else
     21223      if test x"$FLIBS" != x; then
     21224        flink_save_libs="$LIBS"
     21225        LIBS="$LIBS $FLIBS"
     21226        cat >conftest.$ac_ext <<_ACEOF
     21227/* confdefs.h.  */
     21228_ACEOF
     21229cat confdefs.h >>conftest.$ac_ext
     21230cat >>conftest.$ac_ext <<_ACEOF
     21231/* end confdefs.h.  */
     21232extern "C" {void $cfuncdaxpy();}
     21233#ifdef F77_DUMMY_MAIN
     21234
     21235#  ifdef __cplusplus
     21236     extern "C"
     21237#  endif
     21238   int F77_DUMMY_MAIN() { return 1; }
     21239
     21240#endif
     21241int
     21242main ()
     21243{
     21244$cfuncdaxpy()
     21245  ;
     21246  return 0;
     21247}
     21248_ACEOF
     21249rm -f conftest.$ac_objext conftest$ac_exeext
     21250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21251  (eval $ac_link) 2>conftest.er1
     21252  ac_status=$?
     21253  grep -v '^ *+' conftest.er1 >conftest.err
     21254  rm -f conftest.er1
     21255  cat conftest.err >&5
     21256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21257  (exit $ac_status); } &&
     21258         { ac_try='test -z "$ac_c_werror_flag"
     21259                         || test ! -s conftest.err'
     21260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21261  (eval $ac_try) 2>&5
     21262  ac_status=$?
     21263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21264  (exit $ac_status); }; } &&
     21265         { ac_try='test -s conftest$ac_exeext'
     21266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21267  (eval $ac_try) 2>&5
     21268  ac_status=$?
     21269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21270  (exit $ac_status); }; }; then
     21271  LIBS="$flink_save_libs"
     21272                     echo "$as_me:$LINENO: result: yes" >&5
     21273echo "${ECHO_T}yes" >&6
     21274                     coin_need_flibs=yes
     21275else
     21276  echo "$as_me: failed program was:" >&5
     21277sed 's/^/| /' conftest.$ac_ext >&5
     21278
     21279LIBS="$flink_save_libs"
     21280                     echo "$as_me:$LINENO: result: no" >&5
     21281echo "${ECHO_T}no" >&6
     21282                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21283echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21284   { (exit 1); exit 1; }; }
     21285fi
     21286rm -f conftest.err conftest.$ac_objext \
     21287      conftest$ac_exeext conftest.$ac_ext
     21288      else
     21289        echo "$as_me:$LINENO: result: no" >&5
     21290echo "${ECHO_T}no" >&6
     21291                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21292echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21293   { (exit 1); exit 1; }; }
     21294      fi
     21295    fi
     21296    ;;
     21297esac
     21298
     21299  fi
     21300else
     21301# Try to autodetect the library for blas based on build system
     21302  #AC_MSG_CHECKING([default locations for BLAS])
     21303  skip_lblas_check=no
     21304  case $build in
     21305    *-sgi-*)
     21306      SAVE_LIBS="$LIBS"
     21307      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
     21308echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
     21309      LIBS="-lcomplib.sgimath $LIBS"
     21310      case $ac_ext in
     21311  f)
     21312    cat >conftest.$ac_ext <<_ACEOF
     21313/* confdefs.h.  */
     21314_ACEOF
     21315cat confdefs.h >>conftest.$ac_ext
     21316cat >>conftest.$ac_ext <<_ACEOF
     21317/* end confdefs.h.  */
     21318
     21319#ifdef F77_DUMMY_MAIN
     21320
     21321#  ifdef __cplusplus
     21322     extern "C"
     21323#  endif
     21324   int F77_DUMMY_MAIN() { return 1; }
     21325
     21326#endif
     21327int
     21328main ()
     21329{
     21330      call daxpy
     21331  ;
     21332  return 0;
     21333}
     21334_ACEOF
     21335rm -f conftest.$ac_objext conftest$ac_exeext
     21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21337  (eval $ac_link) 2>conftest.er1
     21338  ac_status=$?
     21339  grep -v '^ *+' conftest.er1 >conftest.err
     21340  rm -f conftest.er1
     21341  cat conftest.err >&5
     21342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21343  (exit $ac_status); } &&
     21344         { ac_try='test -z "$ac_c_werror_flag"
     21345                         || test ! -s conftest.err'
     21346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21347  (eval $ac_try) 2>&5
     21348  ac_status=$?
     21349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21350  (exit $ac_status); }; } &&
     21351         { ac_try='test -s conftest$ac_exeext'
     21352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21353  (eval $ac_try) 2>&5
     21354  ac_status=$?
     21355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21356  (exit $ac_status); }; }; then
     21357  echo "$as_me:$LINENO: result: yes" >&5
     21358echo "${ECHO_T}yes" >&6
     21359                         use_blas=-lcomplib.sgimath;
     21360                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21361else
     21362  echo "$as_me: failed program was:" >&5
     21363sed 's/^/| /' conftest.$ac_ext >&5
     21364
     21365echo "$as_me:$LINENO: result: no" >&5
     21366echo "${ECHO_T}no" >&6
     21367                         SAVE_LIBS="$LIBS"
     21368fi
     21369rm -f conftest.err conftest.$ac_objext \
     21370      conftest$ac_exeext conftest.$ac_ext
     21371    ;;
     21372  c)
     21373    ac_ext=f
     21374ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21375ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21376ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21377case $ac_cv_f77_mangling in
     21378  upper*) ac_val="DAXPY" ;;
     21379  lower*) ac_val="daxpy" ;;
     21380  *)      ac_val="unknown" ;;
     21381esac
     21382case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21383
     21384cfuncdaxpy="$ac_val"
     21385
     21386ac_ext=c
     21387ac_cpp='$CPP $CPPFLAGS'
     21388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21390ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21391
     21392    if test x"$coin_need_flibs" = xyes; then
     21393      flink_try=no;
     21394    else
     21395      cat >conftest.$ac_ext <<_ACEOF
     21396/* confdefs.h.  */
     21397_ACEOF
     21398cat confdefs.h >>conftest.$ac_ext
     21399cat >>conftest.$ac_ext <<_ACEOF
     21400/* end confdefs.h.  */
     21401void $cfuncdaxpy();
     21402#ifdef F77_DUMMY_MAIN
     21403
     21404#  ifdef __cplusplus
     21405     extern "C"
     21406#  endif
     21407   int F77_DUMMY_MAIN() { return 1; }
     21408
     21409#endif
     21410int
     21411main ()
     21412{
     21413$cfuncdaxpy()
     21414  ;
     21415  return 0;
     21416}
     21417_ACEOF
     21418rm -f conftest.$ac_objext conftest$ac_exeext
     21419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21420  (eval $ac_link) 2>conftest.er1
     21421  ac_status=$?
     21422  grep -v '^ *+' conftest.er1 >conftest.err
     21423  rm -f conftest.er1
     21424  cat conftest.err >&5
     21425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21426  (exit $ac_status); } &&
     21427         { ac_try='test -z "$ac_c_werror_flag"
     21428                         || test ! -s conftest.err'
     21429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21430  (eval $ac_try) 2>&5
     21431  ac_status=$?
     21432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21433  (exit $ac_status); }; } &&
     21434         { ac_try='test -s conftest$ac_exeext'
     21435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21436  (eval $ac_try) 2>&5
     21437  ac_status=$?
     21438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21439  (exit $ac_status); }; }; then
     21440  flink_try=yes
     21441else
     21442  echo "$as_me: failed program was:" >&5
     21443sed 's/^/| /' conftest.$ac_ext >&5
     21444
     21445flink_try=no
     21446fi
     21447rm -f conftest.err conftest.$ac_objext \
     21448      conftest$ac_exeext conftest.$ac_ext
     21449    fi
     21450    if test $flink_try = yes; then
     21451      echo "$as_me:$LINENO: result: yes" >&5
     21452echo "${ECHO_T}yes" >&6
     21453                         use_blas=-lcomplib.sgimath;
     21454                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21455    else
     21456      if test x"$FLIBS" != x; then
     21457        flink_save_libs="$LIBS"
     21458        LIBS="$LIBS $FLIBS"
     21459        cat >conftest.$ac_ext <<_ACEOF
     21460/* confdefs.h.  */
     21461_ACEOF
     21462cat confdefs.h >>conftest.$ac_ext
     21463cat >>conftest.$ac_ext <<_ACEOF
     21464/* end confdefs.h.  */
     21465void $cfuncdaxpy();
     21466#ifdef F77_DUMMY_MAIN
     21467
     21468#  ifdef __cplusplus
     21469     extern "C"
     21470#  endif
     21471   int F77_DUMMY_MAIN() { return 1; }
     21472
     21473#endif
     21474int
     21475main ()
     21476{
     21477$cfuncdaxpy()
     21478  ;
     21479  return 0;
     21480}
     21481_ACEOF
     21482rm -f conftest.$ac_objext conftest$ac_exeext
     21483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21484  (eval $ac_link) 2>conftest.er1
     21485  ac_status=$?
     21486  grep -v '^ *+' conftest.er1 >conftest.err
     21487  rm -f conftest.er1
     21488  cat conftest.err >&5
     21489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21490  (exit $ac_status); } &&
     21491         { ac_try='test -z "$ac_c_werror_flag"
     21492                         || test ! -s conftest.err'
     21493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21494  (eval $ac_try) 2>&5
     21495  ac_status=$?
     21496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21497  (exit $ac_status); }; } &&
     21498         { ac_try='test -s conftest$ac_exeext'
     21499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21500  (eval $ac_try) 2>&5
     21501  ac_status=$?
     21502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21503  (exit $ac_status); }; }; then
     21504  LIBS="$flink_save_libs"
     21505                     echo "$as_me:$LINENO: result: yes" >&5
     21506echo "${ECHO_T}yes" >&6
     21507                         use_blas=-lcomplib.sgimath;
     21508                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21509                     coin_need_flibs=yes
     21510else
     21511  echo "$as_me: failed program was:" >&5
     21512sed 's/^/| /' conftest.$ac_ext >&5
     21513
     21514LIBS="$flink_save_libs"
     21515                     echo "$as_me:$LINENO: result: no" >&5
     21516echo "${ECHO_T}no" >&6
     21517                         SAVE_LIBS="$LIBS"
     21518fi
     21519rm -f conftest.err conftest.$ac_objext \
     21520      conftest$ac_exeext conftest.$ac_ext
     21521      else
     21522        echo "$as_me:$LINENO: result: no" >&5
     21523echo "${ECHO_T}no" >&6
     21524                         SAVE_LIBS="$LIBS"
     21525      fi
     21526    fi
     21527    ;;
     21528  cc|cpp)
     21529    ac_ext=f
     21530ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21531ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21532ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21533case $ac_cv_f77_mangling in
     21534  upper*) ac_val="DAXPY" ;;
     21535  lower*) ac_val="daxpy" ;;
     21536  *)      ac_val="unknown" ;;
     21537esac
     21538case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21539
     21540cfuncdaxpy="$ac_val"
     21541
     21542ac_ext=c
     21543ac_cpp='$CPP $CPPFLAGS'
     21544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21546ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21547
     21548    if test x"$coin_need_flibs" = xyes; then
     21549      flink_try=no;
     21550    else
     21551      cat >conftest.$ac_ext <<_ACEOF
     21552/* confdefs.h.  */
     21553_ACEOF
     21554cat confdefs.h >>conftest.$ac_ext
     21555cat >>conftest.$ac_ext <<_ACEOF
     21556/* end confdefs.h.  */
     21557extern "C" {void $cfuncdaxpy();}
     21558#ifdef F77_DUMMY_MAIN
     21559
     21560#  ifdef __cplusplus
     21561     extern "C"
     21562#  endif
     21563   int F77_DUMMY_MAIN() { return 1; }
     21564
     21565#endif
     21566int
     21567main ()
     21568{
     21569$cfuncdaxpy()
     21570  ;
     21571  return 0;
     21572}
     21573_ACEOF
     21574rm -f conftest.$ac_objext conftest$ac_exeext
     21575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21576  (eval $ac_link) 2>conftest.er1
     21577  ac_status=$?
     21578  grep -v '^ *+' conftest.er1 >conftest.err
     21579  rm -f conftest.er1
     21580  cat conftest.err >&5
     21581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21582  (exit $ac_status); } &&
     21583         { ac_try='test -z "$ac_c_werror_flag"
     21584                         || test ! -s conftest.err'
     21585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21586  (eval $ac_try) 2>&5
     21587  ac_status=$?
     21588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21589  (exit $ac_status); }; } &&
     21590         { ac_try='test -s conftest$ac_exeext'
     21591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21592  (eval $ac_try) 2>&5
     21593  ac_status=$?
     21594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21595  (exit $ac_status); }; }; then
     21596  flink_try=yes
     21597else
     21598  echo "$as_me: failed program was:" >&5
     21599sed 's/^/| /' conftest.$ac_ext >&5
     21600
     21601flink_try=no
     21602fi
     21603rm -f conftest.err conftest.$ac_objext \
     21604      conftest$ac_exeext conftest.$ac_ext
     21605    fi
     21606    if test $flink_try = yes; then
     21607      echo "$as_me:$LINENO: result: yes" >&5
     21608echo "${ECHO_T}yes" >&6
     21609                         use_blas=-lcomplib.sgimath;
     21610                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21611    else
     21612      if test x"$FLIBS" != x; then
     21613        flink_save_libs="$LIBS"
     21614        LIBS="$LIBS $FLIBS"
     21615        cat >conftest.$ac_ext <<_ACEOF
     21616/* confdefs.h.  */
     21617_ACEOF
     21618cat confdefs.h >>conftest.$ac_ext
     21619cat >>conftest.$ac_ext <<_ACEOF
     21620/* end confdefs.h.  */
     21621extern "C" {void $cfuncdaxpy();}
     21622#ifdef F77_DUMMY_MAIN
     21623
     21624#  ifdef __cplusplus
     21625     extern "C"
     21626#  endif
     21627   int F77_DUMMY_MAIN() { return 1; }
     21628
     21629#endif
     21630int
     21631main ()
     21632{
     21633$cfuncdaxpy()
     21634  ;
     21635  return 0;
     21636}
     21637_ACEOF
     21638rm -f conftest.$ac_objext conftest$ac_exeext
     21639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21640  (eval $ac_link) 2>conftest.er1
     21641  ac_status=$?
     21642  grep -v '^ *+' conftest.er1 >conftest.err
     21643  rm -f conftest.er1
     21644  cat conftest.err >&5
     21645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21646  (exit $ac_status); } &&
     21647         { ac_try='test -z "$ac_c_werror_flag"
     21648                         || test ! -s conftest.err'
     21649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21650  (eval $ac_try) 2>&5
     21651  ac_status=$?
     21652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21653  (exit $ac_status); }; } &&
     21654         { ac_try='test -s conftest$ac_exeext'
     21655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21656  (eval $ac_try) 2>&5
     21657  ac_status=$?
     21658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21659  (exit $ac_status); }; }; then
     21660  LIBS="$flink_save_libs"
     21661                     echo "$as_me:$LINENO: result: yes" >&5
     21662echo "${ECHO_T}yes" >&6
     21663                         use_blas=-lcomplib.sgimath;
     21664                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21665                     coin_need_flibs=yes
     21666else
     21667  echo "$as_me: failed program was:" >&5
     21668sed 's/^/| /' conftest.$ac_ext >&5
     21669
     21670LIBS="$flink_save_libs"
     21671                     echo "$as_me:$LINENO: result: no" >&5
     21672echo "${ECHO_T}no" >&6
     21673                         SAVE_LIBS="$LIBS"
     21674fi
     21675rm -f conftest.err conftest.$ac_objext \
     21676      conftest$ac_exeext conftest.$ac_ext
     21677      else
     21678        echo "$as_me:$LINENO: result: no" >&5
     21679echo "${ECHO_T}no" >&6
     21680                         SAVE_LIBS="$LIBS"
     21681      fi
     21682    fi
     21683    ;;
     21684esac
     21685
     21686      ;;
     21687    *-sun-*)
     21688      SAVE_LIBS="$LIBS"
     21689      echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has BLAS" >&5
     21690echo $ECHO_N "checking whether -xlic_lib=sunperf has BLAS... $ECHO_C" >&6
     21691      LIBS="-xlic_lib=sunperf $LIBS"
     21692      case $ac_ext in
     21693  f)
     21694    cat >conftest.$ac_ext <<_ACEOF
     21695/* confdefs.h.  */
     21696_ACEOF
     21697cat confdefs.h >>conftest.$ac_ext
     21698cat >>conftest.$ac_ext <<_ACEOF
     21699/* end confdefs.h.  */
     21700
     21701#ifdef F77_DUMMY_MAIN
     21702
     21703#  ifdef __cplusplus
     21704     extern "C"
     21705#  endif
     21706   int F77_DUMMY_MAIN() { return 1; }
     21707
     21708#endif
     21709int
     21710main ()
     21711{
     21712      call daxpy
     21713  ;
     21714  return 0;
     21715}
     21716_ACEOF
     21717rm -f conftest.$ac_objext conftest$ac_exeext
     21718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21719  (eval $ac_link) 2>conftest.er1
     21720  ac_status=$?
     21721  grep -v '^ *+' conftest.er1 >conftest.err
     21722  rm -f conftest.er1
     21723  cat conftest.err >&5
     21724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21725  (exit $ac_status); } &&
     21726         { ac_try='test -z "$ac_c_werror_flag"
     21727                         || test ! -s conftest.err'
     21728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21729  (eval $ac_try) 2>&5
     21730  ac_status=$?
     21731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21732  (exit $ac_status); }; } &&
     21733         { ac_try='test -s conftest$ac_exeext'
     21734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21735  (eval $ac_try) 2>&5
     21736  ac_status=$?
     21737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21738  (exit $ac_status); }; }; then
     21739  echo "$as_me:$LINENO: result: yes" >&5
     21740echo "${ECHO_T}yes" >&6
     21741                         use_blas='-xlic_lib=sunperf'
     21742                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21743else
     21744  echo "$as_me: failed program was:" >&5
     21745sed 's/^/| /' conftest.$ac_ext >&5
     21746
     21747echo "$as_me:$LINENO: result: no" >&5
     21748echo "${ECHO_T}no" >&6
     21749                         LIBS="$SAVE_LIBS"
     21750fi
     21751rm -f conftest.err conftest.$ac_objext \
     21752      conftest$ac_exeext conftest.$ac_ext
     21753    ;;
     21754  c)
     21755    ac_ext=f
     21756ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21757ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21758ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21759case $ac_cv_f77_mangling in
     21760  upper*) ac_val="DAXPY" ;;
     21761  lower*) ac_val="daxpy" ;;
     21762  *)      ac_val="unknown" ;;
     21763esac
     21764case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21765
     21766cfuncdaxpy="$ac_val"
     21767
     21768ac_ext=c
     21769ac_cpp='$CPP $CPPFLAGS'
     21770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21772ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21773
     21774    if test x"$coin_need_flibs" = xyes; then
     21775      flink_try=no;
     21776    else
     21777      cat >conftest.$ac_ext <<_ACEOF
     21778/* confdefs.h.  */
     21779_ACEOF
     21780cat confdefs.h >>conftest.$ac_ext
     21781cat >>conftest.$ac_ext <<_ACEOF
     21782/* end confdefs.h.  */
     21783void $cfuncdaxpy();
     21784#ifdef F77_DUMMY_MAIN
     21785
     21786#  ifdef __cplusplus
     21787     extern "C"
     21788#  endif
     21789   int F77_DUMMY_MAIN() { return 1; }
     21790
     21791#endif
     21792int
     21793main ()
     21794{
     21795$cfuncdaxpy()
     21796  ;
     21797  return 0;
     21798}
     21799_ACEOF
     21800rm -f conftest.$ac_objext conftest$ac_exeext
     21801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21802  (eval $ac_link) 2>conftest.er1
     21803  ac_status=$?
     21804  grep -v '^ *+' conftest.er1 >conftest.err
     21805  rm -f conftest.er1
     21806  cat conftest.err >&5
     21807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21808  (exit $ac_status); } &&
     21809         { ac_try='test -z "$ac_c_werror_flag"
     21810                         || test ! -s conftest.err'
     21811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21812  (eval $ac_try) 2>&5
     21813  ac_status=$?
     21814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21815  (exit $ac_status); }; } &&
     21816         { ac_try='test -s conftest$ac_exeext'
     21817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21818  (eval $ac_try) 2>&5
     21819  ac_status=$?
     21820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21821  (exit $ac_status); }; }; then
     21822  flink_try=yes
     21823else
     21824  echo "$as_me: failed program was:" >&5
     21825sed 's/^/| /' conftest.$ac_ext >&5
     21826
     21827flink_try=no
     21828fi
     21829rm -f conftest.err conftest.$ac_objext \
     21830      conftest$ac_exeext conftest.$ac_ext
     21831    fi
     21832    if test $flink_try = yes; then
     21833      echo "$as_me:$LINENO: result: yes" >&5
     21834echo "${ECHO_T}yes" >&6
     21835                         use_blas='-xlic_lib=sunperf'
     21836                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21837    else
     21838      if test x"$FLIBS" != x; then
     21839        flink_save_libs="$LIBS"
     21840        LIBS="$LIBS $FLIBS"
     21841        cat >conftest.$ac_ext <<_ACEOF
     21842/* confdefs.h.  */
     21843_ACEOF
     21844cat confdefs.h >>conftest.$ac_ext
     21845cat >>conftest.$ac_ext <<_ACEOF
     21846/* end confdefs.h.  */
     21847void $cfuncdaxpy();
     21848#ifdef F77_DUMMY_MAIN
     21849
     21850#  ifdef __cplusplus
     21851     extern "C"
     21852#  endif
     21853   int F77_DUMMY_MAIN() { return 1; }
     21854
     21855#endif
     21856int
     21857main ()
     21858{
     21859$cfuncdaxpy()
     21860  ;
     21861  return 0;
     21862}
     21863_ACEOF
     21864rm -f conftest.$ac_objext conftest$ac_exeext
     21865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21866  (eval $ac_link) 2>conftest.er1
     21867  ac_status=$?
     21868  grep -v '^ *+' conftest.er1 >conftest.err
     21869  rm -f conftest.er1
     21870  cat conftest.err >&5
     21871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21872  (exit $ac_status); } &&
     21873         { ac_try='test -z "$ac_c_werror_flag"
     21874                         || test ! -s conftest.err'
     21875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21876  (eval $ac_try) 2>&5
     21877  ac_status=$?
     21878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21879  (exit $ac_status); }; } &&
     21880         { ac_try='test -s conftest$ac_exeext'
     21881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21882  (eval $ac_try) 2>&5
     21883  ac_status=$?
     21884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21885  (exit $ac_status); }; }; then
     21886  LIBS="$flink_save_libs"
     21887                     echo "$as_me:$LINENO: result: yes" >&5
     21888echo "${ECHO_T}yes" >&6
     21889                         use_blas='-xlic_lib=sunperf'
     21890                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21891                     coin_need_flibs=yes
     21892else
     21893  echo "$as_me: failed program was:" >&5
     21894sed 's/^/| /' conftest.$ac_ext >&5
     21895
     21896LIBS="$flink_save_libs"
     21897                     echo "$as_me:$LINENO: result: no" >&5
     21898echo "${ECHO_T}no" >&6
     21899                         LIBS="$SAVE_LIBS"
     21900fi
     21901rm -f conftest.err conftest.$ac_objext \
     21902      conftest$ac_exeext conftest.$ac_ext
     21903      else
     21904        echo "$as_me:$LINENO: result: no" >&5
     21905echo "${ECHO_T}no" >&6
     21906                         LIBS="$SAVE_LIBS"
     21907      fi
     21908    fi
     21909    ;;
     21910  cc|cpp)
     21911    ac_ext=f
     21912ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21913ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21914ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21915case $ac_cv_f77_mangling in
     21916  upper*) ac_val="DAXPY" ;;
     21917  lower*) ac_val="daxpy" ;;
     21918  *)      ac_val="unknown" ;;
     21919esac
     21920case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21921
     21922cfuncdaxpy="$ac_val"
     21923
     21924ac_ext=c
     21925ac_cpp='$CPP $CPPFLAGS'
     21926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21928ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21929
     21930    if test x"$coin_need_flibs" = xyes; then
     21931      flink_try=no;
     21932    else
     21933      cat >conftest.$ac_ext <<_ACEOF
     21934/* confdefs.h.  */
     21935_ACEOF
     21936cat confdefs.h >>conftest.$ac_ext
     21937cat >>conftest.$ac_ext <<_ACEOF
     21938/* end confdefs.h.  */
     21939extern "C" {void $cfuncdaxpy();}
     21940#ifdef F77_DUMMY_MAIN
     21941
     21942#  ifdef __cplusplus
     21943     extern "C"
     21944#  endif
     21945   int F77_DUMMY_MAIN() { return 1; }
     21946
     21947#endif
     21948int
     21949main ()
     21950{
     21951$cfuncdaxpy()
     21952  ;
     21953  return 0;
     21954}
     21955_ACEOF
     21956rm -f conftest.$ac_objext conftest$ac_exeext
     21957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21958  (eval $ac_link) 2>conftest.er1
     21959  ac_status=$?
     21960  grep -v '^ *+' conftest.er1 >conftest.err
     21961  rm -f conftest.er1
     21962  cat conftest.err >&5
     21963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21964  (exit $ac_status); } &&
     21965         { ac_try='test -z "$ac_c_werror_flag"
     21966                         || test ! -s conftest.err'
     21967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21968  (eval $ac_try) 2>&5
     21969  ac_status=$?
     21970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21971  (exit $ac_status); }; } &&
     21972         { ac_try='test -s conftest$ac_exeext'
     21973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21974  (eval $ac_try) 2>&5
     21975  ac_status=$?
     21976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21977  (exit $ac_status); }; }; then
     21978  flink_try=yes
     21979else
     21980  echo "$as_me: failed program was:" >&5
     21981sed 's/^/| /' conftest.$ac_ext >&5
     21982
     21983flink_try=no
     21984fi
     21985rm -f conftest.err conftest.$ac_objext \
     21986      conftest$ac_exeext conftest.$ac_ext
     21987    fi
     21988    if test $flink_try = yes; then
     21989      echo "$as_me:$LINENO: result: yes" >&5
     21990echo "${ECHO_T}yes" >&6
     21991                         use_blas='-xlic_lib=sunperf'
     21992                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21993    else
     21994      if test x"$FLIBS" != x; then
     21995        flink_save_libs="$LIBS"
     21996        LIBS="$LIBS $FLIBS"
     21997        cat >conftest.$ac_ext <<_ACEOF
     21998/* confdefs.h.  */
     21999_ACEOF
     22000cat confdefs.h >>conftest.$ac_ext
     22001cat >>conftest.$ac_ext <<_ACEOF
     22002/* end confdefs.h.  */
     22003extern "C" {void $cfuncdaxpy();}
     22004#ifdef F77_DUMMY_MAIN
     22005
     22006#  ifdef __cplusplus
     22007     extern "C"
     22008#  endif
     22009   int F77_DUMMY_MAIN() { return 1; }
     22010
     22011#endif
     22012int
     22013main ()
     22014{
     22015$cfuncdaxpy()
     22016  ;
     22017  return 0;
     22018}
     22019_ACEOF
     22020rm -f conftest.$ac_objext conftest$ac_exeext
     22021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22022  (eval $ac_link) 2>conftest.er1
     22023  ac_status=$?
     22024  grep -v '^ *+' conftest.er1 >conftest.err
     22025  rm -f conftest.er1
     22026  cat conftest.err >&5
     22027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22028  (exit $ac_status); } &&
     22029         { ac_try='test -z "$ac_c_werror_flag"
     22030                         || test ! -s conftest.err'
     22031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22032  (eval $ac_try) 2>&5
     22033  ac_status=$?
     22034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22035  (exit $ac_status); }; } &&
     22036         { ac_try='test -s conftest$ac_exeext'
     22037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22038  (eval $ac_try) 2>&5
     22039  ac_status=$?
     22040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22041  (exit $ac_status); }; }; then
     22042  LIBS="$flink_save_libs"
     22043                     echo "$as_me:$LINENO: result: yes" >&5
     22044echo "${ECHO_T}yes" >&6
     22045                         use_blas='-xlic_lib=sunperf'
     22046                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22047                     coin_need_flibs=yes
     22048else
     22049  echo "$as_me: failed program was:" >&5
     22050sed 's/^/| /' conftest.$ac_ext >&5
     22051
     22052LIBS="$flink_save_libs"
     22053                     echo "$as_me:$LINENO: result: no" >&5
     22054echo "${ECHO_T}no" >&6
     22055                         LIBS="$SAVE_LIBS"
     22056fi
     22057rm -f conftest.err conftest.$ac_objext \
     22058      conftest$ac_exeext conftest.$ac_ext
     22059      else
     22060        echo "$as_me:$LINENO: result: no" >&5
     22061echo "${ECHO_T}no" >&6
     22062                         LIBS="$SAVE_LIBS"
     22063      fi
     22064    fi
     22065    ;;
     22066esac
     22067
     22068      ;;
     22069# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
     22070# library will want to link with cygwin, hence won't run standalone in DOS.
     22071    *-cygwin*)
     22072      if test "$enable_doscompile" = mingw; then
     22073        skip_lblas_check=yes
     22074      fi
     22075      ;;
     22076  esac
     22077
     22078  if test -z "$use_blas" && test $skip_lblas_check = no; then
     22079    SAVE_LIBS="$LIBS"
     22080    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
     22081echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
     22082    LIBS="-lblas $LIBS"
     22083    case $ac_ext in
     22084  f)
     22085    cat >conftest.$ac_ext <<_ACEOF
     22086/* confdefs.h.  */
     22087_ACEOF
     22088cat confdefs.h >>conftest.$ac_ext
     22089cat >>conftest.$ac_ext <<_ACEOF
     22090/* end confdefs.h.  */
     22091
     22092#ifdef F77_DUMMY_MAIN
     22093
     22094#  ifdef __cplusplus
     22095     extern "C"
     22096#  endif
     22097   int F77_DUMMY_MAIN() { return 1; }
     22098
     22099#endif
     22100int
     22101main ()
     22102{
     22103      call daxpy
     22104  ;
     22105  return 0;
     22106}
     22107_ACEOF
     22108rm -f conftest.$ac_objext conftest$ac_exeext
     22109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22110  (eval $ac_link) 2>conftest.er1
     22111  ac_status=$?
     22112  grep -v '^ *+' conftest.er1 >conftest.err
     22113  rm -f conftest.er1
     22114  cat conftest.err >&5
     22115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22116  (exit $ac_status); } &&
     22117         { ac_try='test -z "$ac_c_werror_flag"
     22118                         || test ! -s conftest.err'
     22119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22120  (eval $ac_try) 2>&5
     22121  ac_status=$?
     22122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22123  (exit $ac_status); }; } &&
     22124         { ac_try='test -s conftest$ac_exeext'
     22125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22126  (eval $ac_try) 2>&5
     22127  ac_status=$?
     22128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22129  (exit $ac_status); }; }; then
     22130  echo "$as_me:$LINENO: result: yes" >&5
     22131echo "${ECHO_T}yes" >&6
     22132                       ADDLIBS="-lblas $ADDLIBS"
     22133                       use_blas='-lblas'
     22134else
     22135  echo "$as_me: failed program was:" >&5
     22136sed 's/^/| /' conftest.$ac_ext >&5
     22137
     22138echo "$as_me:$LINENO: result: no" >&5
     22139echo "${ECHO_T}no" >&6
     22140                       LIBS="$SAVE_LIBS"
     22141fi
     22142rm -f conftest.err conftest.$ac_objext \
     22143      conftest$ac_exeext conftest.$ac_ext
     22144    ;;
     22145  c)
     22146    ac_ext=f
     22147ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22148ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22149ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22150case $ac_cv_f77_mangling in
     22151  upper*) ac_val="DAXPY" ;;
     22152  lower*) ac_val="daxpy" ;;
     22153  *)      ac_val="unknown" ;;
     22154esac
     22155case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22156
     22157cfuncdaxpy="$ac_val"
     22158
     22159ac_ext=c
     22160ac_cpp='$CPP $CPPFLAGS'
     22161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22163ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22164
     22165    if test x"$coin_need_flibs" = xyes; then
     22166      flink_try=no;
     22167    else
     22168      cat >conftest.$ac_ext <<_ACEOF
     22169/* confdefs.h.  */
     22170_ACEOF
     22171cat confdefs.h >>conftest.$ac_ext
     22172cat >>conftest.$ac_ext <<_ACEOF
     22173/* end confdefs.h.  */
     22174void $cfuncdaxpy();
     22175#ifdef F77_DUMMY_MAIN
     22176
     22177#  ifdef __cplusplus
     22178     extern "C"
     22179#  endif
     22180   int F77_DUMMY_MAIN() { return 1; }
     22181
     22182#endif
     22183int
     22184main ()
     22185{
     22186$cfuncdaxpy()
     22187  ;
     22188  return 0;
     22189}
     22190_ACEOF
     22191rm -f conftest.$ac_objext conftest$ac_exeext
     22192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22193  (eval $ac_link) 2>conftest.er1
     22194  ac_status=$?
     22195  grep -v '^ *+' conftest.er1 >conftest.err
     22196  rm -f conftest.er1
     22197  cat conftest.err >&5
     22198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22199  (exit $ac_status); } &&
     22200         { ac_try='test -z "$ac_c_werror_flag"
     22201                         || test ! -s conftest.err'
     22202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22203  (eval $ac_try) 2>&5
     22204  ac_status=$?
     22205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22206  (exit $ac_status); }; } &&
     22207         { ac_try='test -s conftest$ac_exeext'
     22208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22209  (eval $ac_try) 2>&5
     22210  ac_status=$?
     22211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22212  (exit $ac_status); }; }; then
     22213  flink_try=yes
     22214else
     22215  echo "$as_me: failed program was:" >&5
     22216sed 's/^/| /' conftest.$ac_ext >&5
     22217
     22218flink_try=no
     22219fi
     22220rm -f conftest.err conftest.$ac_objext \
     22221      conftest$ac_exeext conftest.$ac_ext
     22222    fi
     22223    if test $flink_try = yes; then
     22224      echo "$as_me:$LINENO: result: yes" >&5
     22225echo "${ECHO_T}yes" >&6
     22226                       ADDLIBS="-lblas $ADDLIBS"
     22227                       use_blas='-lblas'
     22228    else
     22229      if test x"$FLIBS" != x; then
     22230        flink_save_libs="$LIBS"
     22231        LIBS="$LIBS $FLIBS"
     22232        cat >conftest.$ac_ext <<_ACEOF
     22233/* confdefs.h.  */
     22234_ACEOF
     22235cat confdefs.h >>conftest.$ac_ext
     22236cat >>conftest.$ac_ext <<_ACEOF
     22237/* end confdefs.h.  */
     22238void $cfuncdaxpy();
     22239#ifdef F77_DUMMY_MAIN
     22240
     22241#  ifdef __cplusplus
     22242     extern "C"
     22243#  endif
     22244   int F77_DUMMY_MAIN() { return 1; }
     22245
     22246#endif
     22247int
     22248main ()
     22249{
     22250$cfuncdaxpy()
     22251  ;
     22252  return 0;
     22253}
     22254_ACEOF
     22255rm -f conftest.$ac_objext conftest$ac_exeext
     22256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22257  (eval $ac_link) 2>conftest.er1
     22258  ac_status=$?
     22259  grep -v '^ *+' conftest.er1 >conftest.err
     22260  rm -f conftest.er1
     22261  cat conftest.err >&5
     22262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22263  (exit $ac_status); } &&
     22264         { ac_try='test -z "$ac_c_werror_flag"
     22265                         || test ! -s conftest.err'
     22266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22267  (eval $ac_try) 2>&5
     22268  ac_status=$?
     22269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22270  (exit $ac_status); }; } &&
     22271         { ac_try='test -s conftest$ac_exeext'
     22272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22273  (eval $ac_try) 2>&5
     22274  ac_status=$?
     22275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22276  (exit $ac_status); }; }; then
     22277  LIBS="$flink_save_libs"
     22278                     echo "$as_me:$LINENO: result: yes" >&5
     22279echo "${ECHO_T}yes" >&6
     22280                       ADDLIBS="-lblas $ADDLIBS"
     22281                       use_blas='-lblas'
     22282                     coin_need_flibs=yes
     22283else
     22284  echo "$as_me: failed program was:" >&5
     22285sed 's/^/| /' conftest.$ac_ext >&5
     22286
     22287LIBS="$flink_save_libs"
     22288                     echo "$as_me:$LINENO: result: no" >&5
     22289echo "${ECHO_T}no" >&6
     22290                       LIBS="$SAVE_LIBS"
     22291fi
     22292rm -f conftest.err conftest.$ac_objext \
     22293      conftest$ac_exeext conftest.$ac_ext
     22294      else
     22295        echo "$as_me:$LINENO: result: no" >&5
     22296echo "${ECHO_T}no" >&6
     22297                       LIBS="$SAVE_LIBS"
     22298      fi
     22299    fi
     22300    ;;
     22301  cc|cpp)
     22302    ac_ext=f
     22303ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22304ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22305ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22306case $ac_cv_f77_mangling in
     22307  upper*) ac_val="DAXPY" ;;
     22308  lower*) ac_val="daxpy" ;;
     22309  *)      ac_val="unknown" ;;
     22310esac
     22311case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22312
     22313cfuncdaxpy="$ac_val"
     22314
     22315ac_ext=c
     22316ac_cpp='$CPP $CPPFLAGS'
     22317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22319ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22320
     22321    if test x"$coin_need_flibs" = xyes; then
     22322      flink_try=no;
     22323    else
     22324      cat >conftest.$ac_ext <<_ACEOF
     22325/* confdefs.h.  */
     22326_ACEOF
     22327cat confdefs.h >>conftest.$ac_ext
     22328cat >>conftest.$ac_ext <<_ACEOF
     22329/* end confdefs.h.  */
     22330extern "C" {void $cfuncdaxpy();}
     22331#ifdef F77_DUMMY_MAIN
     22332
     22333#  ifdef __cplusplus
     22334     extern "C"
     22335#  endif
     22336   int F77_DUMMY_MAIN() { return 1; }
     22337
     22338#endif
     22339int
     22340main ()
     22341{
     22342$cfuncdaxpy()
     22343  ;
     22344  return 0;
     22345}
     22346_ACEOF
     22347rm -f conftest.$ac_objext conftest$ac_exeext
     22348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22349  (eval $ac_link) 2>conftest.er1
     22350  ac_status=$?
     22351  grep -v '^ *+' conftest.er1 >conftest.err
     22352  rm -f conftest.er1
     22353  cat conftest.err >&5
     22354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22355  (exit $ac_status); } &&
     22356         { ac_try='test -z "$ac_c_werror_flag"
     22357                         || test ! -s conftest.err'
     22358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22359  (eval $ac_try) 2>&5
     22360  ac_status=$?
     22361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22362  (exit $ac_status); }; } &&
     22363         { ac_try='test -s conftest$ac_exeext'
     22364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22365  (eval $ac_try) 2>&5
     22366  ac_status=$?
     22367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22368  (exit $ac_status); }; }; then
     22369  flink_try=yes
     22370else
     22371  echo "$as_me: failed program was:" >&5
     22372sed 's/^/| /' conftest.$ac_ext >&5
     22373
     22374flink_try=no
     22375fi
     22376rm -f conftest.err conftest.$ac_objext \
     22377      conftest$ac_exeext conftest.$ac_ext
     22378    fi
     22379    if test $flink_try = yes; then
     22380      echo "$as_me:$LINENO: result: yes" >&5
     22381echo "${ECHO_T}yes" >&6
     22382                       ADDLIBS="-lblas $ADDLIBS"
     22383                       use_blas='-lblas'
     22384    else
     22385      if test x"$FLIBS" != x; then
     22386        flink_save_libs="$LIBS"
     22387        LIBS="$LIBS $FLIBS"
     22388        cat >conftest.$ac_ext <<_ACEOF
     22389/* confdefs.h.  */
     22390_ACEOF
     22391cat confdefs.h >>conftest.$ac_ext
     22392cat >>conftest.$ac_ext <<_ACEOF
     22393/* end confdefs.h.  */
     22394extern "C" {void $cfuncdaxpy();}
     22395#ifdef F77_DUMMY_MAIN
     22396
     22397#  ifdef __cplusplus
     22398     extern "C"
     22399#  endif
     22400   int F77_DUMMY_MAIN() { return 1; }
     22401
     22402#endif
     22403int
     22404main ()
     22405{
     22406$cfuncdaxpy()
     22407  ;
     22408  return 0;
     22409}
     22410_ACEOF
     22411rm -f conftest.$ac_objext conftest$ac_exeext
     22412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22413  (eval $ac_link) 2>conftest.er1
     22414  ac_status=$?
     22415  grep -v '^ *+' conftest.er1 >conftest.err
     22416  rm -f conftest.er1
     22417  cat conftest.err >&5
     22418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22419  (exit $ac_status); } &&
     22420         { ac_try='test -z "$ac_c_werror_flag"
     22421                         || test ! -s conftest.err'
     22422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22423  (eval $ac_try) 2>&5
     22424  ac_status=$?
     22425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22426  (exit $ac_status); }; } &&
     22427         { ac_try='test -s conftest$ac_exeext'
     22428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22429  (eval $ac_try) 2>&5
     22430  ac_status=$?
     22431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22432  (exit $ac_status); }; }; then
     22433  LIBS="$flink_save_libs"
     22434                     echo "$as_me:$LINENO: result: yes" >&5
     22435echo "${ECHO_T}yes" >&6
     22436                       ADDLIBS="-lblas $ADDLIBS"
     22437                       use_blas='-lblas'
     22438                     coin_need_flibs=yes
     22439else
     22440  echo "$as_me: failed program was:" >&5
     22441sed 's/^/| /' conftest.$ac_ext >&5
     22442
     22443LIBS="$flink_save_libs"
     22444                     echo "$as_me:$LINENO: result: no" >&5
     22445echo "${ECHO_T}no" >&6
     22446                       LIBS="$SAVE_LIBS"
     22447fi
     22448rm -f conftest.err conftest.$ac_objext \
     22449      conftest$ac_exeext conftest.$ac_ext
     22450      else
     22451        echo "$as_me:$LINENO: result: no" >&5
     22452echo "${ECHO_T}no" >&6
     22453                       LIBS="$SAVE_LIBS"
     22454      fi
     22455    fi
     22456    ;;
     22457esac
     22458
     22459  fi
     22460
     22461# If we have no other ideas, consider building BLAS.
     22462  if test -z "$use_blas"; then
     22463    if test "$PACKAGE_NAME" != ThirdPartyBlas; then
     22464      if test -r $coin_blasobjdir/.MakeOk; then
     22465        use_blas=BUILD
     22466      fi
     22467    fi
     22468  fi
     22469fi
     22470
     22471if test "$use_blas" = BUILD; then
     22472  coin_need_flibs=yes
     22473fi
     22474
     22475
     22476
     22477if test x"$use_blas" != x; then
     22478  COIN_HAS_BLAS_TRUE=
     22479  COIN_HAS_BLAS_FALSE='#'
     22480else
     22481  COIN_HAS_BLAS_TRUE='#'
     22482  COIN_HAS_BLAS_FALSE=
     22483fi
     22484
     22485
     22486
     22487if test "$use_blas" = BUILD; then
     22488  COIN_BUILD_BLAS_TRUE=
     22489  COIN_BUILD_BLAS_FALSE='#'
     22490else
     22491  COIN_BUILD_BLAS_TRUE='#'
     22492  COIN_BUILD_BLAS_FALSE=
     22493fi
     22494
     22495
     22496if test x"$use_blas" = x || test "$use_blas" = no; then
     22497  coin_has_blas=no
     22498else
     22499  coin_has_blas=yes
     22500
     22501cat >>confdefs.h <<\_ACEOF
     22502#define COIN_HAS_BLAS 1
     22503_ACEOF
     22504
     22505fi
     22506
     22507coin_lapackobjdir=../ThirdParty/Lapack
     22508coin_lapacksrcdir=$srcdir/$coin_lapackobjdir
     22509
     22510
     22511# Check whether --with-lapack or --without-lapack was given.
     22512if test "${with_lapack+set}" = set; then
     22513  withval="$with_lapack"
     22514  use_lapack=$withval
     22515else
     22516  use_lapack=
     22517fi;
     22518
     22519# Check if user supplied option makes sense
     22520if test x"$use_lapack" != x; then
     22521  if test "$use_lapack" = "BUILD"; then
     22522    # Don't check for course code if this is executed in ThirdParty/Blas
     22523    if test "$PACKAGE_NAME" != ThirdPartyLapack; then
     22524      if test -r $coin_lapackobjdir/.MakeOk; then :; else
     22525        { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&5
     22526echo "$as_me: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&2;}
     22527   { (exit 1); exit 1; }; }
     22528      fi
     22529    fi
     22530  else
     22531    echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5
     22532echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6
     22533    LIBS="$use_lapack $LIBS"
     22534    ADDLIBS="$use_lapack $ADDLIBS"
     22535    case $ac_ext in
     22536  f)
     22537    cat >conftest.$ac_ext <<_ACEOF
     22538/* confdefs.h.  */
     22539_ACEOF
     22540cat confdefs.h >>conftest.$ac_ext
     22541cat >>conftest.$ac_ext <<_ACEOF
     22542/* end confdefs.h.  */
     22543
     22544#ifdef F77_DUMMY_MAIN
     22545
     22546#  ifdef __cplusplus
     22547     extern "C"
     22548#  endif
     22549   int F77_DUMMY_MAIN() { return 1; }
     22550
     22551#endif
     22552int
     22553main ()
     22554{
     22555      call dsyev
     22556  ;
     22557  return 0;
     22558}
     22559_ACEOF
     22560rm -f conftest.$ac_objext conftest$ac_exeext
     22561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22562  (eval $ac_link) 2>conftest.er1
     22563  ac_status=$?
     22564  grep -v '^ *+' conftest.er1 >conftest.err
     22565  rm -f conftest.er1
     22566  cat conftest.err >&5
     22567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22568  (exit $ac_status); } &&
     22569         { ac_try='test -z "$ac_c_werror_flag"
     22570                         || test ! -s conftest.err'
     22571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22572  (eval $ac_try) 2>&5
     22573  ac_status=$?
     22574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22575  (exit $ac_status); }; } &&
     22576         { ac_try='test -s conftest$ac_exeext'
     22577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22578  (eval $ac_try) 2>&5
     22579  ac_status=$?
     22580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22581  (exit $ac_status); }; }; then
     22582  echo "$as_me:$LINENO: result: yes" >&5
     22583echo "${ECHO_T}yes" >&6
     22584else
     22585  echo "$as_me: failed program was:" >&5
     22586sed 's/^/| /' conftest.$ac_ext >&5
     22587
     22588echo "$as_me:$LINENO: result: no" >&5
     22589echo "${ECHO_T}no" >&6
     22590                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     22591echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     22592   { (exit 1); exit 1; }; }
     22593fi
     22594rm -f conftest.err conftest.$ac_objext \
     22595      conftest$ac_exeext conftest.$ac_ext
     22596    ;;
     22597  c)
     22598    ac_ext=f
     22599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22602case $ac_cv_f77_mangling in
     22603  upper*) ac_val="DSYEV" ;;
     22604  lower*) ac_val="dsyev" ;;
     22605  *)      ac_val="unknown" ;;
     22606esac
     22607case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22608
     22609cfuncdsyev="$ac_val"
     22610
     22611ac_ext=c
     22612ac_cpp='$CPP $CPPFLAGS'
     22613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22615ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22616
     22617    if test x"$coin_need_flibs" = xyes; then
     22618      flink_try=no;
     22619    else
     22620      cat >conftest.$ac_ext <<_ACEOF
     22621/* confdefs.h.  */
     22622_ACEOF
     22623cat confdefs.h >>conftest.$ac_ext
     22624cat >>conftest.$ac_ext <<_ACEOF
     22625/* end confdefs.h.  */
     22626void $cfuncdsyev();
     22627#ifdef F77_DUMMY_MAIN
     22628
     22629#  ifdef __cplusplus
     22630     extern "C"
     22631#  endif
     22632   int F77_DUMMY_MAIN() { return 1; }
     22633
     22634#endif
     22635int
     22636main ()
     22637{
     22638$cfuncdsyev()
     22639  ;
     22640  return 0;
     22641}
     22642_ACEOF
     22643rm -f conftest.$ac_objext conftest$ac_exeext
     22644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22645  (eval $ac_link) 2>conftest.er1
     22646  ac_status=$?
     22647  grep -v '^ *+' conftest.er1 >conftest.err
     22648  rm -f conftest.er1
     22649  cat conftest.err >&5
     22650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22651  (exit $ac_status); } &&
     22652         { ac_try='test -z "$ac_c_werror_flag"
     22653                         || test ! -s conftest.err'
     22654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22655  (eval $ac_try) 2>&5
     22656  ac_status=$?
     22657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22658  (exit $ac_status); }; } &&
     22659         { ac_try='test -s conftest$ac_exeext'
     22660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22661  (eval $ac_try) 2>&5
     22662  ac_status=$?
     22663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22664  (exit $ac_status); }; }; then
     22665  flink_try=yes
     22666else
     22667  echo "$as_me: failed program was:" >&5
     22668sed 's/^/| /' conftest.$ac_ext >&5
     22669
     22670flink_try=no
     22671fi
     22672rm -f conftest.err conftest.$ac_objext \
     22673      conftest$ac_exeext conftest.$ac_ext
     22674    fi
     22675    if test $flink_try = yes; then
     22676      echo "$as_me:$LINENO: result: yes" >&5
     22677echo "${ECHO_T}yes" >&6
     22678    else
     22679      if test x"$FLIBS" != x; then
     22680        flink_save_libs="$LIBS"
     22681        LIBS="$LIBS $FLIBS"
     22682        cat >conftest.$ac_ext <<_ACEOF
     22683/* confdefs.h.  */
     22684_ACEOF
     22685cat confdefs.h >>conftest.$ac_ext
     22686cat >>conftest.$ac_ext <<_ACEOF
     22687/* end confdefs.h.  */
     22688void $cfuncdsyev();
     22689#ifdef F77_DUMMY_MAIN
     22690
     22691#  ifdef __cplusplus
     22692     extern "C"
     22693#  endif
     22694   int F77_DUMMY_MAIN() { return 1; }
     22695
     22696#endif
     22697int
     22698main ()
     22699{
     22700$cfuncdsyev()
     22701  ;
     22702  return 0;
     22703}
     22704_ACEOF
     22705rm -f conftest.$ac_objext conftest$ac_exeext
     22706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22707  (eval $ac_link) 2>conftest.er1
     22708  ac_status=$?
     22709  grep -v '^ *+' conftest.er1 >conftest.err
     22710  rm -f conftest.er1
     22711  cat conftest.err >&5
     22712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22713  (exit $ac_status); } &&
     22714         { ac_try='test -z "$ac_c_werror_flag"
     22715                         || test ! -s conftest.err'
     22716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22717  (eval $ac_try) 2>&5
     22718  ac_status=$?
     22719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22720  (exit $ac_status); }; } &&
     22721         { ac_try='test -s conftest$ac_exeext'
     22722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22723  (eval $ac_try) 2>&5
     22724  ac_status=$?
     22725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22726  (exit $ac_status); }; }; then
     22727  LIBS="$flink_save_libs"
     22728                     echo "$as_me:$LINENO: result: yes" >&5
     22729echo "${ECHO_T}yes" >&6
     22730                     coin_need_flibs=yes
     22731else
     22732  echo "$as_me: failed program was:" >&5
     22733sed 's/^/| /' conftest.$ac_ext >&5
     22734
     22735LIBS="$flink_save_libs"
     22736                     echo "$as_me:$LINENO: result: no" >&5
     22737echo "${ECHO_T}no" >&6
     22738                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     22739echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     22740   { (exit 1); exit 1; }; }
     22741fi
     22742rm -f conftest.err conftest.$ac_objext \
     22743      conftest$ac_exeext conftest.$ac_ext
     22744      else
     22745        echo "$as_me:$LINENO: result: no" >&5
     22746echo "${ECHO_T}no" >&6
     22747                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     22748echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     22749   { (exit 1); exit 1; }; }
     22750      fi
     22751    fi
     22752    ;;
     22753  cc|cpp)
     22754    ac_ext=f
     22755ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22756ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22757ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22758case $ac_cv_f77_mangling in
     22759  upper*) ac_val="DSYEV" ;;
     22760  lower*) ac_val="dsyev" ;;
     22761  *)      ac_val="unknown" ;;
     22762esac
     22763case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22764
     22765cfuncdsyev="$ac_val"
     22766
     22767ac_ext=c
     22768ac_cpp='$CPP $CPPFLAGS'
     22769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22771ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22772
     22773    if test x"$coin_need_flibs" = xyes; then
     22774      flink_try=no;
     22775    else
     22776      cat >conftest.$ac_ext <<_ACEOF
     22777/* confdefs.h.  */
     22778_ACEOF
     22779cat confdefs.h >>conftest.$ac_ext
     22780cat >>conftest.$ac_ext <<_ACEOF
     22781/* end confdefs.h.  */
     22782extern "C" {void $cfuncdsyev();}
     22783#ifdef F77_DUMMY_MAIN
     22784
     22785#  ifdef __cplusplus
     22786     extern "C"
     22787#  endif
     22788   int F77_DUMMY_MAIN() { return 1; }
     22789
     22790#endif
     22791int
     22792main ()
     22793{
     22794$cfuncdsyev()
     22795  ;
     22796  return 0;
     22797}
     22798_ACEOF
     22799rm -f conftest.$ac_objext conftest$ac_exeext
     22800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22801  (eval $ac_link) 2>conftest.er1
     22802  ac_status=$?
     22803  grep -v '^ *+' conftest.er1 >conftest.err
     22804  rm -f conftest.er1
     22805  cat conftest.err >&5
     22806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22807  (exit $ac_status); } &&
     22808         { ac_try='test -z "$ac_c_werror_flag"
     22809                         || test ! -s conftest.err'
     22810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22811  (eval $ac_try) 2>&5
     22812  ac_status=$?
     22813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22814  (exit $ac_status); }; } &&
     22815         { ac_try='test -s conftest$ac_exeext'
     22816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22817  (eval $ac_try) 2>&5
     22818  ac_status=$?
     22819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22820  (exit $ac_status); }; }; then
     22821  flink_try=yes
     22822else
     22823  echo "$as_me: failed program was:" >&5
     22824sed 's/^/| /' conftest.$ac_ext >&5
     22825
     22826flink_try=no
     22827fi
     22828rm -f conftest.err conftest.$ac_objext \
     22829      conftest$ac_exeext conftest.$ac_ext
     22830    fi
     22831    if test $flink_try = yes; then
     22832      echo "$as_me:$LINENO: result: yes" >&5
     22833echo "${ECHO_T}yes" >&6
     22834    else
     22835      if test x"$FLIBS" != x; then
     22836        flink_save_libs="$LIBS"
     22837        LIBS="$LIBS $FLIBS"
     22838        cat >conftest.$ac_ext <<_ACEOF
     22839/* confdefs.h.  */
     22840_ACEOF
     22841cat confdefs.h >>conftest.$ac_ext
     22842cat >>conftest.$ac_ext <<_ACEOF
     22843/* end confdefs.h.  */
     22844extern "C" {void $cfuncdsyev();}
     22845#ifdef F77_DUMMY_MAIN
     22846
     22847#  ifdef __cplusplus
     22848     extern "C"
     22849#  endif
     22850   int F77_DUMMY_MAIN() { return 1; }
     22851
     22852#endif
     22853int
     22854main ()
     22855{
     22856$cfuncdsyev()
     22857  ;
     22858  return 0;
     22859}
     22860_ACEOF
     22861rm -f conftest.$ac_objext conftest$ac_exeext
     22862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22863  (eval $ac_link) 2>conftest.er1
     22864  ac_status=$?
     22865  grep -v '^ *+' conftest.er1 >conftest.err
     22866  rm -f conftest.er1
     22867  cat conftest.err >&5
     22868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22869  (exit $ac_status); } &&
     22870         { ac_try='test -z "$ac_c_werror_flag"
     22871                         || test ! -s conftest.err'
     22872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22873  (eval $ac_try) 2>&5
     22874  ac_status=$?
     22875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22876  (exit $ac_status); }; } &&
     22877         { ac_try='test -s conftest$ac_exeext'
     22878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22879  (eval $ac_try) 2>&5
     22880  ac_status=$?
     22881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22882  (exit $ac_status); }; }; then
     22883  LIBS="$flink_save_libs"
     22884                     echo "$as_me:$LINENO: result: yes" >&5
     22885echo "${ECHO_T}yes" >&6
     22886                     coin_need_flibs=yes
     22887else
     22888  echo "$as_me: failed program was:" >&5
     22889sed 's/^/| /' conftest.$ac_ext >&5
     22890
     22891LIBS="$flink_save_libs"
     22892                     echo "$as_me:$LINENO: result: no" >&5
     22893echo "${ECHO_T}no" >&6
     22894                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     22895echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     22896   { (exit 1); exit 1; }; }
     22897fi
     22898rm -f conftest.err conftest.$ac_objext \
     22899      conftest$ac_exeext conftest.$ac_ext
     22900      else
     22901        echo "$as_me:$LINENO: result: no" >&5
     22902echo "${ECHO_T}no" >&6
     22903                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     22904echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     22905   { (exit 1); exit 1; }; }
     22906      fi
     22907    fi
     22908    ;;
     22909esac
     22910
     22911  fi
     22912else
     22913  if test x$coin_has_blas = xyes; then
     22914    # First try to see if LAPACK is already available with BLAS library
     22915    echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
     22916echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6
     22917    case $ac_ext in
     22918  f)
     22919    cat >conftest.$ac_ext <<_ACEOF
     22920/* confdefs.h.  */
     22921_ACEOF
     22922cat confdefs.h >>conftest.$ac_ext
     22923cat >>conftest.$ac_ext <<_ACEOF
     22924/* end confdefs.h.  */
     22925
     22926#ifdef F77_DUMMY_MAIN
     22927
     22928#  ifdef __cplusplus
     22929     extern "C"
     22930#  endif
     22931   int F77_DUMMY_MAIN() { return 1; }
     22932
     22933#endif
     22934int
     22935main ()
     22936{
     22937      call dsyev
     22938  ;
     22939  return 0;
     22940}
     22941_ACEOF
     22942rm -f conftest.$ac_objext conftest$ac_exeext
     22943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22944  (eval $ac_link) 2>conftest.er1
     22945  ac_status=$?
     22946  grep -v '^ *+' conftest.er1 >conftest.err
     22947  rm -f conftest.er1
     22948  cat conftest.err >&5
     22949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22950  (exit $ac_status); } &&
     22951         { ac_try='test -z "$ac_c_werror_flag"
     22952                         || test ! -s conftest.err'
     22953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22954  (eval $ac_try) 2>&5
     22955  ac_status=$?
     22956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22957  (exit $ac_status); }; } &&
     22958         { ac_try='test -s conftest$ac_exeext'
     22959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22960  (eval $ac_try) 2>&5
     22961  ac_status=$?
     22962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22963  (exit $ac_status); }; }; then
     22964  echo "$as_me:$LINENO: result: yes" >&5
     22965echo "${ECHO_T}yes" >&6; use_lapack=ok
     22966else
     22967  echo "$as_me: failed program was:" >&5
     22968sed 's/^/| /' conftest.$ac_ext >&5
     22969
     22970echo "$as_me:$LINENO: result: no" >&5
     22971echo "${ECHO_T}no" >&6
     22972fi
     22973rm -f conftest.err conftest.$ac_objext \
     22974      conftest$ac_exeext conftest.$ac_ext
     22975    ;;
     22976  c)
     22977    ac_ext=f
     22978ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22979ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22980ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22981case $ac_cv_f77_mangling in
     22982  upper*) ac_val="DSYEV" ;;
     22983  lower*) ac_val="dsyev" ;;
     22984  *)      ac_val="unknown" ;;
     22985esac
     22986case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22987
     22988cfuncdsyev="$ac_val"
     22989
     22990ac_ext=c
     22991ac_cpp='$CPP $CPPFLAGS'
     22992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22994ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22995
     22996    if test x"$coin_need_flibs" = xyes; then
     22997      flink_try=no;
     22998    else
     22999      cat >conftest.$ac_ext <<_ACEOF
     23000/* confdefs.h.  */
     23001_ACEOF
     23002cat confdefs.h >>conftest.$ac_ext
     23003cat >>conftest.$ac_ext <<_ACEOF
     23004/* end confdefs.h.  */
     23005void $cfuncdsyev();
     23006#ifdef F77_DUMMY_MAIN
     23007
     23008#  ifdef __cplusplus
     23009     extern "C"
     23010#  endif
     23011   int F77_DUMMY_MAIN() { return 1; }
     23012
     23013#endif
     23014int
     23015main ()
     23016{
     23017$cfuncdsyev()
     23018  ;
     23019  return 0;
     23020}
     23021_ACEOF
     23022rm -f conftest.$ac_objext conftest$ac_exeext
     23023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23024  (eval $ac_link) 2>conftest.er1
     23025  ac_status=$?
     23026  grep -v '^ *+' conftest.er1 >conftest.err
     23027  rm -f conftest.er1
     23028  cat conftest.err >&5
     23029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23030  (exit $ac_status); } &&
     23031         { ac_try='test -z "$ac_c_werror_flag"
     23032                         || test ! -s conftest.err'
     23033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23034  (eval $ac_try) 2>&5
     23035  ac_status=$?
     23036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23037  (exit $ac_status); }; } &&
     23038         { ac_try='test -s conftest$ac_exeext'
     23039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23040  (eval $ac_try) 2>&5
     23041  ac_status=$?
     23042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23043  (exit $ac_status); }; }; then
     23044  flink_try=yes
     23045else
     23046  echo "$as_me: failed program was:" >&5
     23047sed 's/^/| /' conftest.$ac_ext >&5
     23048
     23049flink_try=no
     23050fi
     23051rm -f conftest.err conftest.$ac_objext \
     23052      conftest$ac_exeext conftest.$ac_ext
     23053    fi
     23054    if test $flink_try = yes; then
     23055      echo "$as_me:$LINENO: result: yes" >&5
     23056echo "${ECHO_T}yes" >&6; use_lapack=ok
     23057    else
     23058      if test x"$FLIBS" != x; then
     23059        flink_save_libs="$LIBS"
     23060        LIBS="$LIBS $FLIBS"
     23061        cat >conftest.$ac_ext <<_ACEOF
     23062/* confdefs.h.  */
     23063_ACEOF
     23064cat confdefs.h >>conftest.$ac_ext
     23065cat >>conftest.$ac_ext <<_ACEOF
     23066/* end confdefs.h.  */
     23067void $cfuncdsyev();
     23068#ifdef F77_DUMMY_MAIN
     23069
     23070#  ifdef __cplusplus
     23071     extern "C"
     23072#  endif
     23073   int F77_DUMMY_MAIN() { return 1; }
     23074
     23075#endif
     23076int
     23077main ()
     23078{
     23079$cfuncdsyev()
     23080  ;
     23081  return 0;
     23082}
     23083_ACEOF
     23084rm -f conftest.$ac_objext conftest$ac_exeext
     23085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23086  (eval $ac_link) 2>conftest.er1
     23087  ac_status=$?
     23088  grep -v '^ *+' conftest.er1 >conftest.err
     23089  rm -f conftest.er1
     23090  cat conftest.err >&5
     23091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23092  (exit $ac_status); } &&
     23093         { ac_try='test -z "$ac_c_werror_flag"
     23094                         || test ! -s conftest.err'
     23095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23096  (eval $ac_try) 2>&5
     23097  ac_status=$?
     23098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23099  (exit $ac_status); }; } &&
     23100         { ac_try='test -s conftest$ac_exeext'
     23101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23102  (eval $ac_try) 2>&5
     23103  ac_status=$?
     23104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23105  (exit $ac_status); }; }; then
     23106  LIBS="$flink_save_libs"
     23107                     echo "$as_me:$LINENO: result: yes" >&5
     23108echo "${ECHO_T}yes" >&6; use_lapack=ok
     23109                     coin_need_flibs=yes
     23110else
     23111  echo "$as_me: failed program was:" >&5
     23112sed 's/^/| /' conftest.$ac_ext >&5
     23113
     23114LIBS="$flink_save_libs"
     23115                     echo "$as_me:$LINENO: result: no" >&5
     23116echo "${ECHO_T}no" >&6
     23117fi
     23118rm -f conftest.err conftest.$ac_objext \
     23119      conftest$ac_exeext conftest.$ac_ext
     23120      else
     23121        echo "$as_me:$LINENO: result: no" >&5
     23122echo "${ECHO_T}no" >&6
     23123      fi
     23124    fi
     23125    ;;
     23126  cc|cpp)
     23127    ac_ext=f
     23128ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23129ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23130ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23131case $ac_cv_f77_mangling in
     23132  upper*) ac_val="DSYEV" ;;
     23133  lower*) ac_val="dsyev" ;;
     23134  *)      ac_val="unknown" ;;
     23135esac
     23136case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23137
     23138cfuncdsyev="$ac_val"
     23139
     23140ac_ext=c
     23141ac_cpp='$CPP $CPPFLAGS'
     23142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23144ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23145
     23146    if test x"$coin_need_flibs" = xyes; then
     23147      flink_try=no;
     23148    else
     23149      cat >conftest.$ac_ext <<_ACEOF
     23150/* confdefs.h.  */
     23151_ACEOF
     23152cat confdefs.h >>conftest.$ac_ext
     23153cat >>conftest.$ac_ext <<_ACEOF
     23154/* end confdefs.h.  */
     23155extern "C" {void $cfuncdsyev();}
     23156#ifdef F77_DUMMY_MAIN
     23157
     23158#  ifdef __cplusplus
     23159     extern "C"
     23160#  endif
     23161   int F77_DUMMY_MAIN() { return 1; }
     23162
     23163#endif
     23164int
     23165main ()
     23166{
     23167$cfuncdsyev()
     23168  ;
     23169  return 0;
     23170}
     23171_ACEOF
     23172rm -f conftest.$ac_objext conftest$ac_exeext
     23173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23174  (eval $ac_link) 2>conftest.er1
     23175  ac_status=$?
     23176  grep -v '^ *+' conftest.er1 >conftest.err
     23177  rm -f conftest.er1
     23178  cat conftest.err >&5
     23179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23180  (exit $ac_status); } &&
     23181         { ac_try='test -z "$ac_c_werror_flag"
     23182                         || test ! -s conftest.err'
     23183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23184  (eval $ac_try) 2>&5
     23185  ac_status=$?
     23186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23187  (exit $ac_status); }; } &&
     23188         { ac_try='test -s conftest$ac_exeext'
     23189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23190  (eval $ac_try) 2>&5
     23191  ac_status=$?
     23192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23193  (exit $ac_status); }; }; then
     23194  flink_try=yes
     23195else
     23196  echo "$as_me: failed program was:" >&5
     23197sed 's/^/| /' conftest.$ac_ext >&5
     23198
     23199flink_try=no
     23200fi
     23201rm -f conftest.err conftest.$ac_objext \
     23202      conftest$ac_exeext conftest.$ac_ext
     23203    fi
     23204    if test $flink_try = yes; then
     23205      echo "$as_me:$LINENO: result: yes" >&5
     23206echo "${ECHO_T}yes" >&6; use_lapack=ok
     23207    else
     23208      if test x"$FLIBS" != x; then
     23209        flink_save_libs="$LIBS"
     23210        LIBS="$LIBS $FLIBS"
     23211        cat >conftest.$ac_ext <<_ACEOF
     23212/* confdefs.h.  */
     23213_ACEOF
     23214cat confdefs.h >>conftest.$ac_ext
     23215cat >>conftest.$ac_ext <<_ACEOF
     23216/* end confdefs.h.  */
     23217extern "C" {void $cfuncdsyev();}
     23218#ifdef F77_DUMMY_MAIN
     23219
     23220#  ifdef __cplusplus
     23221     extern "C"
     23222#  endif
     23223   int F77_DUMMY_MAIN() { return 1; }
     23224
     23225#endif
     23226int
     23227main ()
     23228{
     23229$cfuncdsyev()
     23230  ;
     23231  return 0;
     23232}
     23233_ACEOF
     23234rm -f conftest.$ac_objext conftest$ac_exeext
     23235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23236  (eval $ac_link) 2>conftest.er1
     23237  ac_status=$?
     23238  grep -v '^ *+' conftest.er1 >conftest.err
     23239  rm -f conftest.er1
     23240  cat conftest.err >&5
     23241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23242  (exit $ac_status); } &&
     23243         { ac_try='test -z "$ac_c_werror_flag"
     23244                         || test ! -s conftest.err'
     23245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23246  (eval $ac_try) 2>&5
     23247  ac_status=$?
     23248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23249  (exit $ac_status); }; } &&
     23250         { ac_try='test -s conftest$ac_exeext'
     23251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23252  (eval $ac_try) 2>&5
     23253  ac_status=$?
     23254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23255  (exit $ac_status); }; }; then
     23256  LIBS="$flink_save_libs"
     23257                     echo "$as_me:$LINENO: result: yes" >&5
     23258echo "${ECHO_T}yes" >&6; use_lapack=ok
     23259                     coin_need_flibs=yes
     23260else
     23261  echo "$as_me: failed program was:" >&5
     23262sed 's/^/| /' conftest.$ac_ext >&5
     23263
     23264LIBS="$flink_save_libs"
     23265                     echo "$as_me:$LINENO: result: no" >&5
     23266echo "${ECHO_T}no" >&6
     23267fi
     23268rm -f conftest.err conftest.$ac_objext \
     23269      conftest$ac_exeext conftest.$ac_ext
     23270      else
     23271        echo "$as_me:$LINENO: result: no" >&5
     23272echo "${ECHO_T}no" >&6
     23273      fi
     23274    fi
     23275    ;;
     23276esac
     23277
     23278  fi
     23279  skip_llapack_check=no
     23280  if test -z "$use_lapack"; then
     23281    # Try to autodetect the library for lapack based on build system
     23282    case $build in
     23283      *-sgi-*)
     23284        SAVE_LIBS="$LIBS"
     23285        echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5
     23286echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6
     23287        LIBS="-lcomplib.sgimath $LIBS"
     23288        case $ac_ext in
     23289  f)
     23290    cat >conftest.$ac_ext <<_ACEOF
     23291/* confdefs.h.  */
     23292_ACEOF
     23293cat confdefs.h >>conftest.$ac_ext
     23294cat >>conftest.$ac_ext <<_ACEOF
     23295/* end confdefs.h.  */
     23296
     23297#ifdef F77_DUMMY_MAIN
     23298
     23299#  ifdef __cplusplus
     23300     extern "C"
     23301#  endif
     23302   int F77_DUMMY_MAIN() { return 1; }
     23303
     23304#endif
     23305int
     23306main ()
     23307{
     23308      call dsyev
     23309  ;
     23310  return 0;
     23311}
     23312_ACEOF
     23313rm -f conftest.$ac_objext conftest$ac_exeext
     23314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23315  (eval $ac_link) 2>conftest.er1
     23316  ac_status=$?
     23317  grep -v '^ *+' conftest.er1 >conftest.err
     23318  rm -f conftest.er1
     23319  cat conftest.err >&5
     23320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23321  (exit $ac_status); } &&
     23322         { ac_try='test -z "$ac_c_werror_flag"
     23323                         || test ! -s conftest.err'
     23324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23325  (eval $ac_try) 2>&5
     23326  ac_status=$?
     23327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23328  (exit $ac_status); }; } &&
     23329         { ac_try='test -s conftest$ac_exeext'
     23330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23331  (eval $ac_try) 2>&5
     23332  ac_status=$?
     23333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23334  (exit $ac_status); }; }; then
     23335  echo "$as_me:$LINENO: result: yes" >&5
     23336echo "${ECHO_T}yes" >&6
     23337                           use_lapack=-lcomplib.sgimath;
     23338                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23339else
     23340  echo "$as_me: failed program was:" >&5
     23341sed 's/^/| /' conftest.$ac_ext >&5
     23342
     23343echo "$as_me:$LINENO: result: no" >&5
     23344echo "${ECHO_T}no" >&6
     23345                           SAVE_LIBS="$LIBS"
     23346fi
     23347rm -f conftest.err conftest.$ac_objext \
     23348      conftest$ac_exeext conftest.$ac_ext
     23349    ;;
     23350  c)
     23351    ac_ext=f
     23352ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23353ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23354ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23355case $ac_cv_f77_mangling in
     23356  upper*) ac_val="DSYEV" ;;
     23357  lower*) ac_val="dsyev" ;;
     23358  *)      ac_val="unknown" ;;
     23359esac
     23360case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23361
     23362cfuncdsyev="$ac_val"
     23363
     23364ac_ext=c
     23365ac_cpp='$CPP $CPPFLAGS'
     23366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23368ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23369
     23370    if test x"$coin_need_flibs" = xyes; then
     23371      flink_try=no;
     23372    else
     23373      cat >conftest.$ac_ext <<_ACEOF
     23374/* confdefs.h.  */
     23375_ACEOF
     23376cat confdefs.h >>conftest.$ac_ext
     23377cat >>conftest.$ac_ext <<_ACEOF
     23378/* end confdefs.h.  */
     23379void $cfuncdsyev();
     23380#ifdef F77_DUMMY_MAIN
     23381
     23382#  ifdef __cplusplus
     23383     extern "C"
     23384#  endif
     23385   int F77_DUMMY_MAIN() { return 1; }
     23386
     23387#endif
     23388int
     23389main ()
     23390{
     23391$cfuncdsyev()
     23392  ;
     23393  return 0;
     23394}
     23395_ACEOF
     23396rm -f conftest.$ac_objext conftest$ac_exeext
     23397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23398  (eval $ac_link) 2>conftest.er1
     23399  ac_status=$?
     23400  grep -v '^ *+' conftest.er1 >conftest.err
     23401  rm -f conftest.er1
     23402  cat conftest.err >&5
     23403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23404  (exit $ac_status); } &&
     23405         { ac_try='test -z "$ac_c_werror_flag"
     23406                         || test ! -s conftest.err'
     23407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23408  (eval $ac_try) 2>&5
     23409  ac_status=$?
     23410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23411  (exit $ac_status); }; } &&
     23412         { ac_try='test -s conftest$ac_exeext'
     23413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23414  (eval $ac_try) 2>&5
     23415  ac_status=$?
     23416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23417  (exit $ac_status); }; }; then
     23418  flink_try=yes
     23419else
     23420  echo "$as_me: failed program was:" >&5
     23421sed 's/^/| /' conftest.$ac_ext >&5
     23422
     23423flink_try=no
     23424fi
     23425rm -f conftest.err conftest.$ac_objext \
     23426      conftest$ac_exeext conftest.$ac_ext
     23427    fi
     23428    if test $flink_try = yes; then
     23429      echo "$as_me:$LINENO: result: yes" >&5
     23430echo "${ECHO_T}yes" >&6
     23431                           use_lapack=-lcomplib.sgimath;
     23432                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23433    else
     23434      if test x"$FLIBS" != x; then
     23435        flink_save_libs="$LIBS"
     23436        LIBS="$LIBS $FLIBS"
     23437        cat >conftest.$ac_ext <<_ACEOF
     23438/* confdefs.h.  */
     23439_ACEOF
     23440cat confdefs.h >>conftest.$ac_ext
     23441cat >>conftest.$ac_ext <<_ACEOF
     23442/* end confdefs.h.  */
     23443void $cfuncdsyev();
     23444#ifdef F77_DUMMY_MAIN
     23445
     23446#  ifdef __cplusplus
     23447     extern "C"
     23448#  endif
     23449   int F77_DUMMY_MAIN() { return 1; }
     23450
     23451#endif
     23452int
     23453main ()
     23454{
     23455$cfuncdsyev()
     23456  ;
     23457  return 0;
     23458}
     23459_ACEOF
     23460rm -f conftest.$ac_objext conftest$ac_exeext
     23461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23462  (eval $ac_link) 2>conftest.er1
     23463  ac_status=$?
     23464  grep -v '^ *+' conftest.er1 >conftest.err
     23465  rm -f conftest.er1
     23466  cat conftest.err >&5
     23467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23468  (exit $ac_status); } &&
     23469         { ac_try='test -z "$ac_c_werror_flag"
     23470                         || test ! -s conftest.err'
     23471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23472  (eval $ac_try) 2>&5
     23473  ac_status=$?
     23474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23475  (exit $ac_status); }; } &&
     23476         { ac_try='test -s conftest$ac_exeext'
     23477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23478  (eval $ac_try) 2>&5
     23479  ac_status=$?
     23480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23481  (exit $ac_status); }; }; then
     23482  LIBS="$flink_save_libs"
     23483                     echo "$as_me:$LINENO: result: yes" >&5
     23484echo "${ECHO_T}yes" >&6
     23485                           use_lapack=-lcomplib.sgimath;
     23486                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23487                     coin_need_flibs=yes
     23488else
     23489  echo "$as_me: failed program was:" >&5
     23490sed 's/^/| /' conftest.$ac_ext >&5
     23491
     23492LIBS="$flink_save_libs"
     23493                     echo "$as_me:$LINENO: result: no" >&5
     23494echo "${ECHO_T}no" >&6
     23495                           SAVE_LIBS="$LIBS"
     23496fi
     23497rm -f conftest.err conftest.$ac_objext \
     23498      conftest$ac_exeext conftest.$ac_ext
     23499      else
     23500        echo "$as_me:$LINENO: result: no" >&5
     23501echo "${ECHO_T}no" >&6
     23502                           SAVE_LIBS="$LIBS"
     23503      fi
     23504    fi
     23505    ;;
     23506  cc|cpp)
     23507    ac_ext=f
     23508ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23509ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23510ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23511case $ac_cv_f77_mangling in
     23512  upper*) ac_val="DSYEV" ;;
     23513  lower*) ac_val="dsyev" ;;
     23514  *)      ac_val="unknown" ;;
     23515esac
     23516case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23517
     23518cfuncdsyev="$ac_val"
     23519
     23520ac_ext=c
     23521ac_cpp='$CPP $CPPFLAGS'
     23522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23524ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23525
     23526    if test x"$coin_need_flibs" = xyes; then
     23527      flink_try=no;
     23528    else
     23529      cat >conftest.$ac_ext <<_ACEOF
     23530/* confdefs.h.  */
     23531_ACEOF
     23532cat confdefs.h >>conftest.$ac_ext
     23533cat >>conftest.$ac_ext <<_ACEOF
     23534/* end confdefs.h.  */
     23535extern "C" {void $cfuncdsyev();}
     23536#ifdef F77_DUMMY_MAIN
     23537
     23538#  ifdef __cplusplus
     23539     extern "C"
     23540#  endif
     23541   int F77_DUMMY_MAIN() { return 1; }
     23542
     23543#endif
     23544int
     23545main ()
     23546{
     23547$cfuncdsyev()
     23548  ;
     23549  return 0;
     23550}
     23551_ACEOF
     23552rm -f conftest.$ac_objext conftest$ac_exeext
     23553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23554  (eval $ac_link) 2>conftest.er1
     23555  ac_status=$?
     23556  grep -v '^ *+' conftest.er1 >conftest.err
     23557  rm -f conftest.er1
     23558  cat conftest.err >&5
     23559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23560  (exit $ac_status); } &&
     23561         { ac_try='test -z "$ac_c_werror_flag"
     23562                         || test ! -s conftest.err'
     23563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23564  (eval $ac_try) 2>&5
     23565  ac_status=$?
     23566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23567  (exit $ac_status); }; } &&
     23568         { ac_try='test -s conftest$ac_exeext'
     23569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23570  (eval $ac_try) 2>&5
     23571  ac_status=$?
     23572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23573  (exit $ac_status); }; }; then
     23574  flink_try=yes
     23575else
     23576  echo "$as_me: failed program was:" >&5
     23577sed 's/^/| /' conftest.$ac_ext >&5
     23578
     23579flink_try=no
     23580fi
     23581rm -f conftest.err conftest.$ac_objext \
     23582      conftest$ac_exeext conftest.$ac_ext
     23583    fi
     23584    if test $flink_try = yes; then
     23585      echo "$as_me:$LINENO: result: yes" >&5
     23586echo "${ECHO_T}yes" >&6
     23587                           use_lapack=-lcomplib.sgimath;
     23588                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23589    else
     23590      if test x"$FLIBS" != x; then
     23591        flink_save_libs="$LIBS"
     23592        LIBS="$LIBS $FLIBS"
     23593        cat >conftest.$ac_ext <<_ACEOF
     23594/* confdefs.h.  */
     23595_ACEOF
     23596cat confdefs.h >>conftest.$ac_ext
     23597cat >>conftest.$ac_ext <<_ACEOF
     23598/* end confdefs.h.  */
     23599extern "C" {void $cfuncdsyev();}
     23600#ifdef F77_DUMMY_MAIN
     23601
     23602#  ifdef __cplusplus
     23603     extern "C"
     23604#  endif
     23605   int F77_DUMMY_MAIN() { return 1; }
     23606
     23607#endif
     23608int
     23609main ()
     23610{
     23611$cfuncdsyev()
     23612  ;
     23613  return 0;
     23614}
     23615_ACEOF
     23616rm -f conftest.$ac_objext conftest$ac_exeext
     23617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23618  (eval $ac_link) 2>conftest.er1
     23619  ac_status=$?
     23620  grep -v '^ *+' conftest.er1 >conftest.err
     23621  rm -f conftest.er1
     23622  cat conftest.err >&5
     23623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23624  (exit $ac_status); } &&
     23625         { ac_try='test -z "$ac_c_werror_flag"
     23626                         || test ! -s conftest.err'
     23627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23628  (eval $ac_try) 2>&5
     23629  ac_status=$?
     23630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23631  (exit $ac_status); }; } &&
     23632         { ac_try='test -s conftest$ac_exeext'
     23633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23634  (eval $ac_try) 2>&5
     23635  ac_status=$?
     23636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23637  (exit $ac_status); }; }; then
     23638  LIBS="$flink_save_libs"
     23639                     echo "$as_me:$LINENO: result: yes" >&5
     23640echo "${ECHO_T}yes" >&6
     23641                           use_lapack=-lcomplib.sgimath;
     23642                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23643                     coin_need_flibs=yes
     23644else
     23645  echo "$as_me: failed program was:" >&5
     23646sed 's/^/| /' conftest.$ac_ext >&5
     23647
     23648LIBS="$flink_save_libs"
     23649                     echo "$as_me:$LINENO: result: no" >&5
     23650echo "${ECHO_T}no" >&6
     23651                           SAVE_LIBS="$LIBS"
     23652fi
     23653rm -f conftest.err conftest.$ac_objext \
     23654      conftest$ac_exeext conftest.$ac_ext
     23655      else
     23656        echo "$as_me:$LINENO: result: no" >&5
     23657echo "${ECHO_T}no" >&6
     23658                           SAVE_LIBS="$LIBS"
     23659      fi
     23660    fi
     23661    ;;
     23662esac
     23663
     23664        ;;
     23665      *-sun-*)
     23666        SAVE_LIBS="$LIBS"
     23667        echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has LAPACK" >&5
     23668echo $ECHO_N "checking whether -xlic_lib=sunperf has LAPACK... $ECHO_C" >&6
     23669        LIBS="-xlic_lib=sunperf $LIBS"
     23670        case $ac_ext in
     23671  f)
     23672    cat >conftest.$ac_ext <<_ACEOF
     23673/* confdefs.h.  */
     23674_ACEOF
     23675cat confdefs.h >>conftest.$ac_ext
     23676cat >>conftest.$ac_ext <<_ACEOF
     23677/* end confdefs.h.  */
     23678
     23679#ifdef F77_DUMMY_MAIN
     23680
     23681#  ifdef __cplusplus
     23682     extern "C"
     23683#  endif
     23684   int F77_DUMMY_MAIN() { return 1; }
     23685
     23686#endif
     23687int
     23688main ()
     23689{
     23690      call dsyev
     23691  ;
     23692  return 0;
     23693}
     23694_ACEOF
     23695rm -f conftest.$ac_objext conftest$ac_exeext
     23696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23697  (eval $ac_link) 2>conftest.er1
     23698  ac_status=$?
     23699  grep -v '^ *+' conftest.er1 >conftest.err
     23700  rm -f conftest.er1
     23701  cat conftest.err >&5
     23702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23703  (exit $ac_status); } &&
     23704         { ac_try='test -z "$ac_c_werror_flag"
     23705                         || test ! -s conftest.err'
     23706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23707  (eval $ac_try) 2>&5
     23708  ac_status=$?
     23709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23710  (exit $ac_status); }; } &&
     23711         { ac_try='test -s conftest$ac_exeext'
     23712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23713  (eval $ac_try) 2>&5
     23714  ac_status=$?
     23715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23716  (exit $ac_status); }; }; then
     23717  echo "$as_me:$LINENO: result: yes" >&5
     23718echo "${ECHO_T}yes" >&6
     23719                           use_lapack='-xlic_lib=sunperf'
     23720                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     23721else
     23722  echo "$as_me: failed program was:" >&5
     23723sed 's/^/| /' conftest.$ac_ext >&5
     23724
     23725echo "$as_me:$LINENO: result: no" >&5
     23726echo "${ECHO_T}no" >&6
     23727                           LIBS="$SAVE_LIBS"
     23728fi
     23729rm -f conftest.err conftest.$ac_objext \
     23730      conftest$ac_exeext conftest.$ac_ext
     23731    ;;
     23732  c)
     23733    ac_ext=f
     23734ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23735ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23736ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23737case $ac_cv_f77_mangling in
     23738  upper*) ac_val="DSYEV" ;;
     23739  lower*) ac_val="dsyev" ;;
     23740  *)      ac_val="unknown" ;;
     23741esac
     23742case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23743
     23744cfuncdsyev="$ac_val"
     23745
     23746ac_ext=c
     23747ac_cpp='$CPP $CPPFLAGS'
     23748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23750ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23751
     23752    if test x"$coin_need_flibs" = xyes; then
     23753      flink_try=no;
     23754    else
     23755      cat >conftest.$ac_ext <<_ACEOF
     23756/* confdefs.h.  */
     23757_ACEOF
     23758cat confdefs.h >>conftest.$ac_ext
     23759cat >>conftest.$ac_ext <<_ACEOF
     23760/* end confdefs.h.  */
     23761void $cfuncdsyev();
     23762#ifdef F77_DUMMY_MAIN
     23763
     23764#  ifdef __cplusplus
     23765     extern "C"
     23766#  endif
     23767   int F77_DUMMY_MAIN() { return 1; }
     23768
     23769#endif
     23770int
     23771main ()
     23772{
     23773$cfuncdsyev()
     23774  ;
     23775  return 0;
     23776}
     23777_ACEOF
     23778rm -f conftest.$ac_objext conftest$ac_exeext
     23779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23780  (eval $ac_link) 2>conftest.er1
     23781  ac_status=$?
     23782  grep -v '^ *+' conftest.er1 >conftest.err
     23783  rm -f conftest.er1
     23784  cat conftest.err >&5
     23785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23786  (exit $ac_status); } &&
     23787         { ac_try='test -z "$ac_c_werror_flag"
     23788                         || test ! -s conftest.err'
     23789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23790  (eval $ac_try) 2>&5
     23791  ac_status=$?
     23792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23793  (exit $ac_status); }; } &&
     23794         { ac_try='test -s conftest$ac_exeext'
     23795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23796  (eval $ac_try) 2>&5
     23797  ac_status=$?
     23798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23799  (exit $ac_status); }; }; then
     23800  flink_try=yes
     23801else
     23802  echo "$as_me: failed program was:" >&5
     23803sed 's/^/| /' conftest.$ac_ext >&5
     23804
     23805flink_try=no
     23806fi
     23807rm -f conftest.err conftest.$ac_objext \
     23808      conftest$ac_exeext conftest.$ac_ext
     23809    fi
     23810    if test $flink_try = yes; then
     23811      echo "$as_me:$LINENO: result: yes" >&5
     23812echo "${ECHO_T}yes" >&6
     23813                           use_lapack='-xlic_lib=sunperf'
     23814                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     23815    else
     23816      if test x"$FLIBS" != x; then
     23817        flink_save_libs="$LIBS"
     23818        LIBS="$LIBS $FLIBS"
     23819        cat >conftest.$ac_ext <<_ACEOF
     23820/* confdefs.h.  */
     23821_ACEOF
     23822cat confdefs.h >>conftest.$ac_ext
     23823cat >>conftest.$ac_ext <<_ACEOF
     23824/* end confdefs.h.  */
     23825void $cfuncdsyev();
     23826#ifdef F77_DUMMY_MAIN
     23827
     23828#  ifdef __cplusplus
     23829     extern "C"
     23830#  endif
     23831   int F77_DUMMY_MAIN() { return 1; }
     23832
     23833#endif
     23834int
     23835main ()
     23836{
     23837$cfuncdsyev()
     23838  ;
     23839  return 0;
     23840}
     23841_ACEOF
     23842rm -f conftest.$ac_objext conftest$ac_exeext
     23843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23844  (eval $ac_link) 2>conftest.er1
     23845  ac_status=$?
     23846  grep -v '^ *+' conftest.er1 >conftest.err
     23847  rm -f conftest.er1
     23848  cat conftest.err >&5
     23849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23850  (exit $ac_status); } &&
     23851         { ac_try='test -z "$ac_c_werror_flag"
     23852                         || test ! -s conftest.err'
     23853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23854  (eval $ac_try) 2>&5
     23855  ac_status=$?
     23856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23857  (exit $ac_status); }; } &&
     23858         { ac_try='test -s conftest$ac_exeext'
     23859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23860  (eval $ac_try) 2>&5
     23861  ac_status=$?
     23862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23863  (exit $ac_status); }; }; then
     23864  LIBS="$flink_save_libs"
     23865                     echo "$as_me:$LINENO: result: yes" >&5
     23866echo "${ECHO_T}yes" >&6
     23867                           use_lapack='-xlic_lib=sunperf'
     23868                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     23869                     coin_need_flibs=yes
     23870else
     23871  echo "$as_me: failed program was:" >&5
     23872sed 's/^/| /' conftest.$ac_ext >&5
     23873
     23874LIBS="$flink_save_libs"
     23875                     echo "$as_me:$LINENO: result: no" >&5
     23876echo "${ECHO_T}no" >&6
     23877                           LIBS="$SAVE_LIBS"
     23878fi
     23879rm -f conftest.err conftest.$ac_objext \
     23880      conftest$ac_exeext conftest.$ac_ext
     23881      else
     23882        echo "$as_me:$LINENO: result: no" >&5
     23883echo "${ECHO_T}no" >&6
     23884                           LIBS="$SAVE_LIBS"
     23885      fi
     23886    fi
     23887    ;;
     23888  cc|cpp)
     23889    ac_ext=f
     23890ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23891ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23892ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23893case $ac_cv_f77_mangling in
     23894  upper*) ac_val="DSYEV" ;;
     23895  lower*) ac_val="dsyev" ;;
     23896  *)      ac_val="unknown" ;;
     23897esac
     23898case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23899
     23900cfuncdsyev="$ac_val"
     23901
     23902ac_ext=c
     23903ac_cpp='$CPP $CPPFLAGS'
     23904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23906ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23907
     23908    if test x"$coin_need_flibs" = xyes; then
     23909      flink_try=no;
     23910    else
     23911      cat >conftest.$ac_ext <<_ACEOF
     23912/* confdefs.h.  */
     23913_ACEOF
     23914cat confdefs.h >>conftest.$ac_ext
     23915cat >>conftest.$ac_ext <<_ACEOF
     23916/* end confdefs.h.  */
     23917extern "C" {void $cfuncdsyev();}
     23918#ifdef F77_DUMMY_MAIN
     23919
     23920#  ifdef __cplusplus
     23921     extern "C"
     23922#  endif
     23923   int F77_DUMMY_MAIN() { return 1; }
     23924
     23925#endif
     23926int
     23927main ()
     23928{
     23929$cfuncdsyev()
     23930  ;
     23931  return 0;
     23932}
     23933_ACEOF
     23934rm -f conftest.$ac_objext conftest$ac_exeext
     23935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23936  (eval $ac_link) 2>conftest.er1
     23937  ac_status=$?
     23938  grep -v '^ *+' conftest.er1 >conftest.err
     23939  rm -f conftest.er1
     23940  cat conftest.err >&5
     23941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23942  (exit $ac_status); } &&
     23943         { ac_try='test -z "$ac_c_werror_flag"
     23944                         || test ! -s conftest.err'
     23945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23946  (eval $ac_try) 2>&5
     23947  ac_status=$?
     23948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23949  (exit $ac_status); }; } &&
     23950         { ac_try='test -s conftest$ac_exeext'
     23951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23952  (eval $ac_try) 2>&5
     23953  ac_status=$?
     23954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23955  (exit $ac_status); }; }; then
     23956  flink_try=yes
     23957else
     23958  echo "$as_me: failed program was:" >&5
     23959sed 's/^/| /' conftest.$ac_ext >&5
     23960
     23961flink_try=no
     23962fi
     23963rm -f conftest.err conftest.$ac_objext \
     23964      conftest$ac_exeext conftest.$ac_ext
     23965    fi
     23966    if test $flink_try = yes; then
     23967      echo "$as_me:$LINENO: result: yes" >&5
     23968echo "${ECHO_T}yes" >&6
     23969                           use_lapack='-xlic_lib=sunperf'
     23970                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     23971    else
     23972      if test x"$FLIBS" != x; then
     23973        flink_save_libs="$LIBS"
     23974        LIBS="$LIBS $FLIBS"
     23975        cat >conftest.$ac_ext <<_ACEOF
     23976/* confdefs.h.  */
     23977_ACEOF
     23978cat confdefs.h >>conftest.$ac_ext
     23979cat >>conftest.$ac_ext <<_ACEOF
     23980/* end confdefs.h.  */
     23981extern "C" {void $cfuncdsyev();}
     23982#ifdef F77_DUMMY_MAIN
     23983
     23984#  ifdef __cplusplus
     23985     extern "C"
     23986#  endif
     23987   int F77_DUMMY_MAIN() { return 1; }
     23988
     23989#endif
     23990int
     23991main ()
     23992{
     23993$cfuncdsyev()
     23994  ;
     23995  return 0;
     23996}
     23997_ACEOF
     23998rm -f conftest.$ac_objext conftest$ac_exeext
     23999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24000  (eval $ac_link) 2>conftest.er1
     24001  ac_status=$?
     24002  grep -v '^ *+' conftest.er1 >conftest.err
     24003  rm -f conftest.er1
     24004  cat conftest.err >&5
     24005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24006  (exit $ac_status); } &&
     24007         { ac_try='test -z "$ac_c_werror_flag"
     24008                         || test ! -s conftest.err'
     24009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24010  (eval $ac_try) 2>&5
     24011  ac_status=$?
     24012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24013  (exit $ac_status); }; } &&
     24014         { ac_try='test -s conftest$ac_exeext'
     24015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24016  (eval $ac_try) 2>&5
     24017  ac_status=$?
     24018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24019  (exit $ac_status); }; }; then
     24020  LIBS="$flink_save_libs"
     24021                     echo "$as_me:$LINENO: result: yes" >&5
     24022echo "${ECHO_T}yes" >&6
     24023                           use_lapack='-xlic_lib=sunperf'
     24024                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     24025                     coin_need_flibs=yes
     24026else
     24027  echo "$as_me: failed program was:" >&5
     24028sed 's/^/| /' conftest.$ac_ext >&5
     24029
     24030LIBS="$flink_save_libs"
     24031                     echo "$as_me:$LINENO: result: no" >&5
     24032echo "${ECHO_T}no" >&6
     24033                           LIBS="$SAVE_LIBS"
     24034fi
     24035rm -f conftest.err conftest.$ac_objext \
     24036      conftest$ac_exeext conftest.$ac_ext
     24037      else
     24038        echo "$as_me:$LINENO: result: no" >&5
     24039echo "${ECHO_T}no" >&6
     24040                           LIBS="$SAVE_LIBS"
     24041      fi
     24042    fi
     24043    ;;
     24044esac
     24045
     24046        ;;
     24047# On cygwin, do this check only if doscompile is disabled. The prebuilt library
     24048# will want to link with cygwin, hence won't run standalone in DOS.
     24049      *-cygwin*)
     24050        if test "$enable_doscompile" = mingw; then
     24051          skip_llapack_check=yes
     24052        fi
     24053        ;;
     24054    esac
     24055  fi
     24056
     24057  if test -z "$use_lapack" && test $skip_llapack_check = no; then
     24058    SAVE_LIBS="$LIBS"
     24059    echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5
     24060echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6
     24061    LIBS="-llapack $LIBS"
     24062    case $ac_ext in
     24063  f)
     24064    cat >conftest.$ac_ext <<_ACEOF
     24065/* confdefs.h.  */
     24066_ACEOF
     24067cat confdefs.h >>conftest.$ac_ext
     24068cat >>conftest.$ac_ext <<_ACEOF
     24069/* end confdefs.h.  */
     24070
     24071#ifdef F77_DUMMY_MAIN
     24072
     24073#  ifdef __cplusplus
     24074     extern "C"
     24075#  endif
     24076   int F77_DUMMY_MAIN() { return 1; }
     24077
     24078#endif
     24079int
     24080main ()
     24081{
     24082      call dsyev
     24083  ;
     24084  return 0;
     24085}
     24086_ACEOF
     24087rm -f conftest.$ac_objext conftest$ac_exeext
     24088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24089  (eval $ac_link) 2>conftest.er1
     24090  ac_status=$?
     24091  grep -v '^ *+' conftest.er1 >conftest.err
     24092  rm -f conftest.er1
     24093  cat conftest.err >&5
     24094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24095  (exit $ac_status); } &&
     24096         { ac_try='test -z "$ac_c_werror_flag"
     24097                         || test ! -s conftest.err'
     24098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24099  (eval $ac_try) 2>&5
     24100  ac_status=$?
     24101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24102  (exit $ac_status); }; } &&
     24103         { ac_try='test -s conftest$ac_exeext'
     24104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24105  (eval $ac_try) 2>&5
     24106  ac_status=$?
     24107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24108  (exit $ac_status); }; }; then
     24109  echo "$as_me:$LINENO: result: yes" >&5
     24110echo "${ECHO_T}yes" >&6
     24111                       ADDLIBS="-llapack $ADDLIBS"
     24112                       use_lapack='-llapack'
     24113else
     24114  echo "$as_me: failed program was:" >&5
     24115sed 's/^/| /' conftest.$ac_ext >&5
     24116
     24117echo "$as_me:$LINENO: result: no" >&5
     24118echo "${ECHO_T}no" >&6
     24119                       LIBS="$SAVE_LIBS"
     24120fi
     24121rm -f conftest.err conftest.$ac_objext \
     24122      conftest$ac_exeext conftest.$ac_ext
     24123    ;;
     24124  c)
     24125    ac_ext=f
     24126ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24127ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24128ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24129case $ac_cv_f77_mangling in
     24130  upper*) ac_val="DSYEV" ;;
     24131  lower*) ac_val="dsyev" ;;
     24132  *)      ac_val="unknown" ;;
     24133esac
     24134case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24135
     24136cfuncdsyev="$ac_val"
     24137
     24138ac_ext=c
     24139ac_cpp='$CPP $CPPFLAGS'
     24140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24142ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24143
     24144    if test x"$coin_need_flibs" = xyes; then
     24145      flink_try=no;
     24146    else
     24147      cat >conftest.$ac_ext <<_ACEOF
     24148/* confdefs.h.  */
     24149_ACEOF
     24150cat confdefs.h >>conftest.$ac_ext
     24151cat >>conftest.$ac_ext <<_ACEOF
     24152/* end confdefs.h.  */
     24153void $cfuncdsyev();
     24154#ifdef F77_DUMMY_MAIN
     24155
     24156#  ifdef __cplusplus
     24157     extern "C"
     24158#  endif
     24159   int F77_DUMMY_MAIN() { return 1; }
     24160
     24161#endif
     24162int
     24163main ()
     24164{
     24165$cfuncdsyev()
     24166  ;
     24167  return 0;
     24168}
     24169_ACEOF
     24170rm -f conftest.$ac_objext conftest$ac_exeext
     24171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24172  (eval $ac_link) 2>conftest.er1
     24173  ac_status=$?
     24174  grep -v '^ *+' conftest.er1 >conftest.err
     24175  rm -f conftest.er1
     24176  cat conftest.err >&5
     24177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24178  (exit $ac_status); } &&
     24179         { ac_try='test -z "$ac_c_werror_flag"
     24180                         || test ! -s conftest.err'
     24181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24182  (eval $ac_try) 2>&5
     24183  ac_status=$?
     24184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24185  (exit $ac_status); }; } &&
     24186         { ac_try='test -s conftest$ac_exeext'
     24187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24188  (eval $ac_try) 2>&5
     24189  ac_status=$?
     24190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24191  (exit $ac_status); }; }; then
     24192  flink_try=yes
     24193else
     24194  echo "$as_me: failed program was:" >&5
     24195sed 's/^/| /' conftest.$ac_ext >&5
     24196
     24197flink_try=no
     24198fi
     24199rm -f conftest.err conftest.$ac_objext \
     24200      conftest$ac_exeext conftest.$ac_ext
     24201    fi
     24202    if test $flink_try = yes; then
     24203      echo "$as_me:$LINENO: result: yes" >&5
     24204echo "${ECHO_T}yes" >&6
     24205                       ADDLIBS="-llapack $ADDLIBS"
     24206                       use_lapack='-llapack'
     24207    else
     24208      if test x"$FLIBS" != x; then
     24209        flink_save_libs="$LIBS"
     24210        LIBS="$LIBS $FLIBS"
     24211        cat >conftest.$ac_ext <<_ACEOF
     24212/* confdefs.h.  */
     24213_ACEOF
     24214cat confdefs.h >>conftest.$ac_ext
     24215cat >>conftest.$ac_ext <<_ACEOF
     24216/* end confdefs.h.  */
     24217void $cfuncdsyev();
     24218#ifdef F77_DUMMY_MAIN
     24219
     24220#  ifdef __cplusplus
     24221     extern "C"
     24222#  endif
     24223   int F77_DUMMY_MAIN() { return 1; }
     24224
     24225#endif
     24226int
     24227main ()
     24228{
     24229$cfuncdsyev()
     24230  ;
     24231  return 0;
     24232}
     24233_ACEOF
     24234rm -f conftest.$ac_objext conftest$ac_exeext
     24235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24236  (eval $ac_link) 2>conftest.er1
     24237  ac_status=$?
     24238  grep -v '^ *+' conftest.er1 >conftest.err
     24239  rm -f conftest.er1
     24240  cat conftest.err >&5
     24241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24242  (exit $ac_status); } &&
     24243         { ac_try='test -z "$ac_c_werror_flag"
     24244                         || test ! -s conftest.err'
     24245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24246  (eval $ac_try) 2>&5
     24247  ac_status=$?
     24248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24249  (exit $ac_status); }; } &&
     24250         { ac_try='test -s conftest$ac_exeext'
     24251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24252  (eval $ac_try) 2>&5
     24253  ac_status=$?
     24254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24255  (exit $ac_status); }; }; then
     24256  LIBS="$flink_save_libs"
     24257                     echo "$as_me:$LINENO: result: yes" >&5
     24258echo "${ECHO_T}yes" >&6
     24259                       ADDLIBS="-llapack $ADDLIBS"
     24260                       use_lapack='-llapack'
     24261                     coin_need_flibs=yes
     24262else
     24263  echo "$as_me: failed program was:" >&5
     24264sed 's/^/| /' conftest.$ac_ext >&5
     24265
     24266LIBS="$flink_save_libs"
     24267                     echo "$as_me:$LINENO: result: no" >&5
     24268echo "${ECHO_T}no" >&6
     24269                       LIBS="$SAVE_LIBS"
     24270fi
     24271rm -f conftest.err conftest.$ac_objext \
     24272      conftest$ac_exeext conftest.$ac_ext
     24273      else
     24274        echo "$as_me:$LINENO: result: no" >&5
     24275echo "${ECHO_T}no" >&6
     24276                       LIBS="$SAVE_LIBS"
     24277      fi
     24278    fi
     24279    ;;
     24280  cc|cpp)
     24281    ac_ext=f
     24282ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24283ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24284ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24285case $ac_cv_f77_mangling in
     24286  upper*) ac_val="DSYEV" ;;
     24287  lower*) ac_val="dsyev" ;;
     24288  *)      ac_val="unknown" ;;
     24289esac
     24290case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24291
     24292cfuncdsyev="$ac_val"
     24293
     24294ac_ext=c
     24295ac_cpp='$CPP $CPPFLAGS'
     24296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24298ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24299
     24300    if test x"$coin_need_flibs" = xyes; then
     24301      flink_try=no;
     24302    else
     24303      cat >conftest.$ac_ext <<_ACEOF
     24304/* confdefs.h.  */
     24305_ACEOF
     24306cat confdefs.h >>conftest.$ac_ext
     24307cat >>conftest.$ac_ext <<_ACEOF
     24308/* end confdefs.h.  */
     24309extern "C" {void $cfuncdsyev();}
     24310#ifdef F77_DUMMY_MAIN
     24311
     24312#  ifdef __cplusplus
     24313     extern "C"
     24314#  endif
     24315   int F77_DUMMY_MAIN() { return 1; }
     24316
     24317#endif
     24318int
     24319main ()
     24320{
     24321$cfuncdsyev()
     24322  ;
     24323  return 0;
     24324}
     24325_ACEOF
     24326rm -f conftest.$ac_objext conftest$ac_exeext
     24327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24328  (eval $ac_link) 2>conftest.er1
     24329  ac_status=$?
     24330  grep -v '^ *+' conftest.er1 >conftest.err
     24331  rm -f conftest.er1
     24332  cat conftest.err >&5
     24333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24334  (exit $ac_status); } &&
     24335         { ac_try='test -z "$ac_c_werror_flag"
     24336                         || test ! -s conftest.err'
     24337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24338  (eval $ac_try) 2>&5
     24339  ac_status=$?
     24340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24341  (exit $ac_status); }; } &&
     24342         { ac_try='test -s conftest$ac_exeext'
     24343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24344  (eval $ac_try) 2>&5
     24345  ac_status=$?
     24346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24347  (exit $ac_status); }; }; then
     24348  flink_try=yes
     24349else
     24350  echo "$as_me: failed program was:" >&5
     24351sed 's/^/| /' conftest.$ac_ext >&5
     24352
     24353flink_try=no
     24354fi
     24355rm -f conftest.err conftest.$ac_objext \
     24356      conftest$ac_exeext conftest.$ac_ext
     24357    fi
     24358    if test $flink_try = yes; then
     24359      echo "$as_me:$LINENO: result: yes" >&5
     24360echo "${ECHO_T}yes" >&6
     24361                       ADDLIBS="-llapack $ADDLIBS"
     24362                       use_lapack='-llapack'
     24363    else
     24364      if test x"$FLIBS" != x; then
     24365        flink_save_libs="$LIBS"
     24366        LIBS="$LIBS $FLIBS"
     24367        cat >conftest.$ac_ext <<_ACEOF
     24368/* confdefs.h.  */
     24369_ACEOF
     24370cat confdefs.h >>conftest.$ac_ext
     24371cat >>conftest.$ac_ext <<_ACEOF
     24372/* end confdefs.h.  */
     24373extern "C" {void $cfuncdsyev();}
     24374#ifdef F77_DUMMY_MAIN
     24375
     24376#  ifdef __cplusplus
     24377     extern "C"
     24378#  endif
     24379   int F77_DUMMY_MAIN() { return 1; }
     24380
     24381#endif
     24382int
     24383main ()
     24384{
     24385$cfuncdsyev()
     24386  ;
     24387  return 0;
     24388}
     24389_ACEOF
     24390rm -f conftest.$ac_objext conftest$ac_exeext
     24391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24392  (eval $ac_link) 2>conftest.er1
     24393  ac_status=$?
     24394  grep -v '^ *+' conftest.er1 >conftest.err
     24395  rm -f conftest.er1
     24396  cat conftest.err >&5
     24397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24398  (exit $ac_status); } &&
     24399         { ac_try='test -z "$ac_c_werror_flag"
     24400                         || test ! -s conftest.err'
     24401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24402  (eval $ac_try) 2>&5
     24403  ac_status=$?
     24404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24405  (exit $ac_status); }; } &&
     24406         { ac_try='test -s conftest$ac_exeext'
     24407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24408  (eval $ac_try) 2>&5
     24409  ac_status=$?
     24410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24411  (exit $ac_status); }; }; then
     24412  LIBS="$flink_save_libs"
     24413                     echo "$as_me:$LINENO: result: yes" >&5
     24414echo "${ECHO_T}yes" >&6
     24415                       ADDLIBS="-llapack $ADDLIBS"
     24416                       use_lapack='-llapack'
     24417                     coin_need_flibs=yes
     24418else
     24419  echo "$as_me: failed program was:" >&5
     24420sed 's/^/| /' conftest.$ac_ext >&5
     24421
     24422LIBS="$flink_save_libs"
     24423                     echo "$as_me:$LINENO: result: no" >&5
     24424echo "${ECHO_T}no" >&6
     24425                       LIBS="$SAVE_LIBS"
     24426fi
     24427rm -f conftest.err conftest.$ac_objext \
     24428      conftest$ac_exeext conftest.$ac_ext
     24429      else
     24430        echo "$as_me:$LINENO: result: no" >&5
     24431echo "${ECHO_T}no" >&6
     24432                       LIBS="$SAVE_LIBS"
     24433      fi
     24434    fi
     24435    ;;
     24436esac
     24437
     24438  fi
     24439
     24440# If we have no other ideas, consider building LAPACK.
     24441  if test -z "$use_lapack"; then
     24442    if test "$PACKAGE_NAME" != ThirdPartyLapack; then
     24443      if test -r $coin_lapackobjdir/.MakeOk; then
     24444        use_lapack=BUILD
     24445      fi
     24446    fi
     24447  fi
     24448fi
     24449
     24450if test "$use_lapack" = BUILD; then
     24451  coin_need_flibs=yes
     24452fi
     24453
     24454
     24455
     24456if test x"$use_lapack" != x; then
     24457  COIN_HAS_LAPACK_TRUE=
     24458  COIN_HAS_LAPACK_FALSE='#'
     24459else
     24460  COIN_HAS_LAPACK_TRUE='#'
     24461  COIN_HAS_LAPACK_FALSE=
     24462fi
     24463
     24464
     24465
     24466if test "$use_lapack" = BUILD; then
     24467  COIN_BUILD_LAPACK_TRUE=
     24468  COIN_BUILD_LAPACK_FALSE='#'
     24469else
     24470  COIN_BUILD_LAPACK_TRUE='#'
     24471  COIN_BUILD_LAPACK_FALSE=
     24472fi
     24473
     24474
     24475if test x"$use_lapack" = x; then
     24476  coin_has_lapack=no
     24477else
     24478  coin_has_lapack=yes
     24479
     24480cat >>confdefs.h <<\_ACEOF
     24481#define COIN_HAS_LAPACK 1
     24482_ACEOF
     24483
     24484fi
     24485
     24486MAKEOKFILE=.MakeOk
     24487if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then
     24488  rm -f $MAKEOKFILE
     24489  { echo "$as_me:$LINENO: The Lapack sources don't need to be compiled" >&5
     24490echo "$as_me: The Lapack sources don't need to be compiled" >&6;}
     24491  MAKEOKFILE=
     24492else
     24493  touch $MAKEOKFILE
     24494fi
     24495
     24496
     24497
     24498if test -z "$MAKEOKFILE"; then
     24499  SKIPMAKE_TRUE=
     24500  SKIPMAKE_FALSE='#'
     24501else
     24502  SKIPMAKE_TRUE='#'
     24503  SKIPMAKE_FALSE=
     24504fi
     24505
     24506
    2020624507#############################################################################
    2020724508#               Create links to the required source files                   #
    2020824509#############################################################################
    2020924510
    20210 lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
    20211 for file in $lapack_source_files; do
    20212             ac_config_links="$ac_config_links $file:LAPACK/SRC/$file"
    20213 
    20214 done
    20215           ac_config_links="$ac_config_links dlamch.f:LAPACK/INSTALL/dlamch.f"
    20216 
     24511if test x"$MAKEOKFILE" != x; then
     24512  lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
     24513  for file in $lapack_source_files; do
     24514              ac_config_links="$ac_config_links $file:LAPACK/SRC/$file"
     24515
     24516  done
     24517            ac_config_links="$ac_config_links dlamch.f:LAPACK/INSTALL/dlamch.f"
     24518
     24519fi
    2021724520
    2021824521          ac_config_files="$ac_config_files Makefile"
     
    2022024523
    2022124524
    20222 FADDLIBS="$ADDLIBS"
    20223 if test x"$coin_need_flibs" = xyes; then
    20224   ADDLIBS="$ADDLIBS $FLIBS"
    20225 fi
    20226 
    20227 # library extension
    20228 
    20229 case "$CC" in
    20230   cl* | */cl* | CL* | */CL*)
    20231        LIBEXT=lib ;;
    20232     *) LIBEXT=a ;;
    20233 esac
    20234 
    20235 # Define VPATH_DISTCLEANFILES to be everything that needs to be
    20236 # cleaned for distclean in a vpath configuration
    20237 
    20238 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
    20239 
    20240 cat >confcache <<\_ACEOF
     24525if test x$coin_skip_ac_output != xyes; then
     24526
     24527  FADDLIBS="$ADDLIBS"
     24528  if test x"$coin_need_flibs" = xyes; then
     24529    ADDLIBS="$ADDLIBS $FLIBS"
     24530  fi
     24531
     24532  # library extension
     24533
     24534  case "$CC" in
     24535    cl* | */cl* | CL* | */CL*)
     24536         LIBEXT=lib ;;
     24537      *) LIBEXT=a ;;
     24538  esac
     24539
     24540  # Define VPATH_DISTCLEANFILES to be everything that needs to be
     24541  # cleaned for distclean in a vpath configuration
     24542
     24543  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
     24544
     24545  # Take out subdirectories if their configuration concluded that they
     24546  # don't need to be compiled
     24547  if test x"$coin_ac_skip_subdirs" != x; then
     24548    new_subdirs=
     24549    for i in $subdirs; do
     24550      skipme=no
     24551      for j in $coin_ac_skip_subdirs; do
     24552        if test $i = $j; then
     24553          skipme=yes;
     24554        fi
     24555      done
     24556      if test $skipme = no; then
     24557        new_subdirs="$new_subdirs $i"
     24558      fi
     24559    done
     24560    subdirs="$new_subdirs"
     24561  fi
     24562
     24563  cat >confcache <<\_ACEOF
    2024124564# This file is a shell script that caches the results of configure
    2024224565# tests run on this system so they can be shared between configure
     
    2039924722Usually this means the macro was only invoked conditionally." >&5
    2040024723echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
     24724Usually this means the macro was only invoked conditionally." >&2;}
     24725   { (exit 1); exit 1; }; }
     24726fi
     24727if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24728  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24729Usually this means the macro was only invoked conditionally." >&5
     24730echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24731Usually this means the macro was only invoked conditionally." >&2;}
     24732   { (exit 1); exit 1; }; }
     24733fi
     24734if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
     24735  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     24736Usually this means the macro was only invoked conditionally." >&5
     24737echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     24738Usually this means the macro was only invoked conditionally." >&2;}
     24739   { (exit 1); exit 1; }; }
     24740fi
     24741if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
     24742  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
     24743Usually this means the macro was only invoked conditionally." >&5
     24744echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
     24745Usually this means the macro was only invoked conditionally." >&2;}
     24746   { (exit 1); exit 1; }; }
     24747fi
     24748if test -z "${COIN_BUILD_LAPACK_TRUE}" && test -z "${COIN_BUILD_LAPACK_FALSE}"; then
     24749  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_LAPACK\" was never defined.
     24750Usually this means the macro was only invoked conditionally." >&5
     24751echo "$as_me: error: conditional \"COIN_BUILD_LAPACK\" was never defined.
     24752Usually this means the macro was only invoked conditionally." >&2;}
     24753   { (exit 1); exit 1; }; }
     24754fi
     24755if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
     24756  { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
     24757Usually this means the macro was only invoked conditionally." >&5
     24758echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2040124759Usually this means the macro was only invoked conditionally." >&2;}
    2040224760   { (exit 1); exit 1; }; }
     
    2103025388s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2103125389s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     25390s,@FLIBS@,$FLIBS,;t t
     25391s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
     25392s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
     25393s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
     25394s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
     25395s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t
     25396s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t
     25397s,@COIN_BUILD_LAPACK_TRUE@,$COIN_BUILD_LAPACK_TRUE,;t t
     25398s,@COIN_BUILD_LAPACK_FALSE@,$COIN_BUILD_LAPACK_FALSE,;t t
     25399s,@MAKEOKFILE@,$MAKEOKFILE,;t t
     25400s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
     25401s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2103225402s,@LIBEXT@,$LIBEXT,;t t
    2103325403s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     
    2164326013
    2164426014
    21645 if test x"$coin_vpath_link_files" = x; then : ; else
    21646   lnkcmd=
    21647   if test "$enable_doscompile" = yes; then
    21648     lnkcmd=cp
    21649   fi
    21650   case "$CC" in
    21651     cl* | */cl* | CL* | */CL*)
    21652       lnkcmd=cp ;;
    21653   esac
    21654   if test "$lnkcmd" = cp; then
    21655     { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
     26015  if test x"$coin_vpath_link_files" = x; then : ; else
     26016    lnkcmd=
     26017    if test "$enable_doscompile" = yes; then
     26018      lnkcmd=cp
     26019    fi
     26020    case "$CC" in
     26021      cl* | */cl* | CL* | */CL*)
     26022        lnkcmd=cp ;;
     26023    esac
     26024    if test "$lnkcmd" = cp; then
     26025      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
    2165626026echo "$as_me: Copying data files for VPATH configuration" >&6;}
    21657   else
    21658     echo "$as_me:$LINENO: checking whether ln -s works" >&5
     26027    else
     26028      echo "$as_me:$LINENO: checking whether ln -s works" >&5
    2165926029echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2166026030LN_S=$as_ln_s
     
    2166726037fi
    2166826038
    21669     { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
     26039      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
    2167026040echo "$as_me: Creating VPATH links for data files" >&6;}
    21671     lnkcmd="$LN_S"
    21672   fi
    21673   for file in $coin_vpath_link_files; do
    21674     dir=`(dirname "./$file") 2>/dev/null ||
     26041      lnkcmd="$LN_S"
     26042    fi
     26043    for file in $coin_vpath_link_files; do
     26044      dir=`(dirname "./$file") 2>/dev/null ||
    2167526045$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    2167626046         X"./$file" : 'X\(//\)[^/]' \| \
     
    2168426054          /^X\(\/\).*/{ s//\1/; q; }
    2168526055          s/.*/./; q'`
    21686     if test -d $dir; then : ; else
    21687       { if $as_mkdir_p; then
     26056      if test -d $dir; then : ; else
     26057        { if $as_mkdir_p; then
    2168826058    mkdir -p $dir
    2168926059  else
     
    2171026080   { (exit 1); exit 1; }; }; }
    2171126081
    21712     fi
    21713     rm -f $file
    21714     $lnkcmd $abs_source_dir/$file $file
    21715   done
    21716 fi
    21717 
    21718 if test x$coin_projectdir = xyes; then
    21719   { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
     26082      fi
     26083      rm -f $file
     26084      $lnkcmd $abs_source_dir/$file $file
     26085    done
     26086  fi
     26087
     26088  if test x$coin_projectdir = xyes; then
     26089    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
    2172026090echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
    21721 else
    21722   { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
     26091  else
     26092    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
    2172326093echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
    21724 fi
    21725 
     26094  fi
     26095else
     26096  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
     26097echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
     26098fi
     26099
     26100
  • ThirdParty/Lapack/stable/1.0/configure.ac

    r217 r277  
    1 # Copyright (C) 2006 International Business Machines.
     1# Copyright (C) 2006, 2007 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    5050AC_COIN_INIT_AUTO_TOOLS
    5151
     52# Check if Lapack is already available on the system or provided by user
     53AC_COIN_HAS_BLAS
     54AC_COIN_HAS_LAPACK
     55MAKEOKFILE=.MakeOk
     56if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then
     57  rm -f $MAKEOKFILE
     58  AC_MSG_NOTICE([The Lapack sources don't need to be compiled])
     59  MAKEOKFILE=
     60else
     61  touch $MAKEOKFILE
     62fi
     63AC_SUBST(MAKEOKFILE)
     64AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     65
    5266#############################################################################
    5367#               Create links to the required source files                   #
    5468#############################################################################
    5569
    56 lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
    57 for file in $lapack_source_files; do
    58   AC_CONFIG_LINKS($file:LAPACK/SRC/$file)
    59 done
    60 AC_CONFIG_LINKS(dlamch.f:LAPACK/INSTALL/dlamch.f)
     70if test x"$MAKEOKFILE" != x; then
     71  lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
     72  for file in $lapack_source_files; do
     73    AC_CONFIG_LINKS($file:LAPACK/SRC/$file)
     74  done
     75  AC_CONFIG_LINKS(dlamch.f:LAPACK/INSTALL/dlamch.f)
     76fi
    6177
    6278AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.