Changeset 1377 for ThirdParty/Blas


Ignore:
Timestamp:
Jul 26, 2009 2:33:00 PM (10 years ago)
Author:
stefan
Message:

towards making thirdparty projects behave like normal projects: add addlibs and dummy README files; install lib, header, addlibs and README file; compile always but require code to be available

Location:
ThirdParty/Blas/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Blas/trunk/Makefile.am

    r1184 r1377  
    99EXTRA_DIST = get.blas INSTALL.BLAS
    1010
    11 if SKIPMAKE
    12   noinst_LTLIBRARIES =
    13 else
    14   noinst_LTLIBRARIES = libcoinblas.la
    15 endif
     11thirdpartylibdir = $(prefix)/lib/ThirdParty
     12thirdpartylib_LTLIBRARIES = libcoinblas.la
    1613
    17 nodist_libcoinblas_la_SOURCES = \
     14libcoinblas_la_SOURCES = \
    1815        dasum.f \
    1916        daxpy.f \
     
    5653libcoinblas_la_LDFLAGS = $(LT_LDFLAGS)
    5754
     55addlibsdir = $(prefix)/share/doc/coin/ThirdParty/Blas
     56addlibs_DATA = blas_addlibs.txt README
     57
    5858########################################################################
    5959#                         Maintainer Stuff                             #
  • ThirdParty/Blas/trunk/Makefile.in

    r1184 r1377  
    2828#                    Documentation installation                        #
    2929########################################################################
     30
    3031
    3132srcdir = @srcdir@
     
    5152build_triplet = @build@
    5253host_triplet = @host@
    53 DIST_COMMON = $(am__configure_deps) \
     54DIST_COMMON = README $(am__configure_deps) \
    5455        $(srcdir)/../../BuildTools/Makemain.inc \
    5556        $(srcdir)/../../config.guess $(srcdir)/../../config.sub \
    5657        $(srcdir)/../../install-sh $(srcdir)/../../ltmain.sh \
    5758        $(srcdir)/../../missing $(srcdir)/Makefile.am \
    58         $(srcdir)/Makefile.in $(top_srcdir)/configure
     59        $(srcdir)/Makefile.in $(srcdir)/blas_addlibs.txt.in \
     60        $(top_srcdir)/configure
    5961@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    6062@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    6870 configure.lineno configure.status.lineno
    6971mkinstalldirs = $(install_sh) -d
    70 CONFIG_CLEAN_FILES =
    71 LTLIBRARIES = $(noinst_LTLIBRARIES)
     72CONFIG_CLEAN_FILES = blas_addlibs.txt
     73am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     74am__vpath_adj = case $$p in \
     75    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     76    *) f=$$p;; \
     77  esac;
     78am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     79am__installdirs = "$(DESTDIR)$(thirdpartylibdir)" \
     80        "$(DESTDIR)$(addlibsdir)"
     81thirdpartylibLTLIBRARIES_INSTALL = $(INSTALL)
     82LTLIBRARIES = $(thirdpartylib_LTLIBRARIES)
    7283libcoinblas_la_LIBADD =
    73 nodist_libcoinblas_la_OBJECTS = dasum.lo daxpy.lo dcopy.lo ddot.lo \
     84am_libcoinblas_la_OBJECTS = dasum.lo daxpy.lo dcopy.lo ddot.lo \
    7485        dgbmv.lo dgemm.lo dgemv.lo dger.lo dnrm2.lo drot.lo drotg.lo \
    7586        drotm.lo drotmg.lo dsbmv.lo dscal.lo dsdot.lo dspmv.lo \
     
    7788        dsyr.lo dsyrk.lo dtbmv.lo dtbsv.lo dtpmv.lo dtpsv.lo dtrmm.lo \
    7889        dtrmv.lo dtrsm.lo dtrsv.lo idamax.lo lsame.lo xerbla.lo
    79 libcoinblas_la_OBJECTS = $(nodist_libcoinblas_la_OBJECTS)
    80 @SKIPMAKE_FALSE@am_libcoinblas_la_rpath =
     90libcoinblas_la_OBJECTS = $(am_libcoinblas_la_OBJECTS)
    8191DEFAULT_INCLUDES = -I. -I$(srcdir)
    8292F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS)
     
    8696F77LINK = $(LIBTOOL) --tag=F77 --mode=link $(F77LD) $(AM_FFLAGS) \
    8797        $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    88 SOURCES = $(nodist_libcoinblas_la_SOURCES)
    89 DIST_SOURCES =
     98SOURCES = $(libcoinblas_la_SOURCES)
     99DIST_SOURCES = $(libcoinblas_la_SOURCES)
     100addlibsDATA_INSTALL = $(INSTALL_DATA)
     101DATA = $(addlibs_DATA)
    90102ETAGS = etags
    91103CTAGS = ctags
     
    116128AUX_DIR = @AUX_DIR@
    117129AWK = @AWK@
     130BLASDOCDIR = @BLASDOCDIR@
     131BLASOBJDIR = @BLASOBJDIR@
     132BLASSRCDIR = @BLASSRCDIR@
    118133BUILDTOOLSDIR = @BUILDTOOLSDIR@
    119134CC = @CC@
     
    121136CDEFS = @CDEFS@
    122137CFLAGS = @CFLAGS@
    123 COIN_BUILD_BLAS_FALSE = @COIN_BUILD_BLAS_FALSE@
    124 COIN_BUILD_BLAS_TRUE = @COIN_BUILD_BLAS_TRUE@
    125138COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@
    126139COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@
     
    145158FADDLIBS = @FADDLIBS@
    146159FFLAGS = @FFLAGS@
    147 FLIBS = @FLIBS@
    148160HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    149161HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    165177MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    166178MAKEINFO = @MAKEINFO@
    167 MAKEOKFILE = @MAKEOKFILE@
    168179MPICC = @MPICC@
    169180MPIF77 = @MPIF77@
     
    182193SET_MAKE = @SET_MAKE@
    183194SHELL = @SHELL@
    184 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
    185 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    186195STRIP = @STRIP@
    187196VERSION = @VERSION@
     
    242251AUTOMAKE_OPTIONS = foreign
    243252EXTRA_DIST = get.blas INSTALL.BLAS $(am__append_1)
    244 @SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinblas.la
    245 @SKIPMAKE_TRUE@noinst_LTLIBRARIES =
    246 nodist_libcoinblas_la_SOURCES = \
     253thirdpartylibdir = $(prefix)/lib/ThirdParty
     254thirdpartylib_LTLIBRARIES = libcoinblas.la
     255libcoinblas_la_SOURCES = \
    247256        dasum.f \
    248257        daxpy.f \
     
    284293
    285294libcoinblas_la_LDFLAGS = $(LT_LDFLAGS)
     295addlibsdir = $(prefix)/share/doc/coin/ThirdParty/Blas
     296addlibs_DATA = blas_addlibs.txt README
    286297
    287298########################################################################
     
    330341$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    331342        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    332 
    333 clean-noinstLTLIBRARIES:
    334         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
    335         @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
     343blas_addlibs.txt: $(top_builddir)/config.status $(srcdir)/blas_addlibs.txt.in
     344        cd $(top_builddir) && $(SHELL) ./config.status $@
     345install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES)
     346        @$(NORMAL_INSTALL)
     347        test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     348        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     349          if test -f $$p; then \
     350            f=$(am__strip_dir) \
     351            echo " $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     352            $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     353          else :; fi; \
     354        done
     355
     356uninstall-thirdpartylibLTLIBRARIES:
     357        @$(NORMAL_UNINSTALL)
     358        @set -x; list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     359          p=$(am__strip_dir) \
     360          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(thirdpartylibdir)/$$p'"; \
     361          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(thirdpartylibdir)/$$p"; \
     362        done
     363
     364clean-thirdpartylibLTLIBRARIES:
     365        -test -z "$(thirdpartylib_LTLIBRARIES)" || rm -f $(thirdpartylib_LTLIBRARIES)
     366        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
    336367          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
    337368          test "$$dir" != "$$p" || dir=.; \
     
    340371        done
    341372libcoinblas.la: $(libcoinblas_la_OBJECTS) $(libcoinblas_la_DEPENDENCIES)
    342         $(F77LINK) $(am_libcoinblas_la_rpath) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)
     373        $(F77LINK) -rpath $(thirdpartylibdir) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)
    343374
    344375mostlyclean-compile:
     
    366397        -rm -f libtool
    367398uninstall-info-am:
     399install-addlibsDATA: $(addlibs_DATA)
     400        @$(NORMAL_INSTALL)
     401        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     402        @list='$(addlibs_DATA)'; for p in $$list; do \
     403          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     404          f=$(am__strip_dir) \
     405          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     406          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     407        done
     408
     409uninstall-addlibsDATA:
     410        @$(NORMAL_UNINSTALL)
     411        @list='$(addlibs_DATA)'; for p in $$list; do \
     412          f=$(am__strip_dir) \
     413          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     414          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     415        done
    368416
    369417ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    418466        $(am__remove_distdir)
    419467        mkdir $(distdir)
    420         $(mkdir_p) $(distdir)/../.. $(distdir)/../../BuildTools
     468        $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
    421469        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    422470        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    544592check-am: all-am
    545593check: check-am
    546 all-am: Makefile $(LTLIBRARIES)
     594all-am: Makefile $(LTLIBRARIES) $(DATA)
    547595installdirs:
     596        for dir in "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(addlibsdir)"; do \
     597          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     598        done
    548599install: install-am
    549600install-exec: install-exec-am
     
    573624clean: clean-am
    574625
    575 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
     626clean-am: clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
    576627        mostlyclean-am
    577628
     
    592643info-am:
    593644
    594 install-data-am:
     645install-data-am: install-addlibsDATA install-thirdpartylibLTLIBRARIES
    595646
    596647install-exec-am:
     
    621672ps-am:
    622673
    623 uninstall-am: uninstall-info-am
     674uninstall-am: uninstall-addlibsDATA uninstall-info-am \
     675        uninstall-thirdpartylibLTLIBRARIES
    624676
    625677.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
    626         clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \
    627         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    628         distcheck distclean distclean-compile distclean-generic \
    629         distclean-libtool distclean-tags distcleancheck distdir \
    630         distuninstallcheck dvi dvi-am html html-am info info-am \
    631         install install-am install-data install-data-am install-exec \
    632         install-exec-am install-info install-info-am install-man \
    633         install-strip installcheck installcheck-am installdirs \
    634         maintainer-clean maintainer-clean-generic mostlyclean \
    635         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    636         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    637         uninstall-info-am
     678        clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
     679        ctags dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \
     680        dist-zip distcheck distclean distclean-compile \
     681        distclean-generic distclean-libtool distclean-tags \
     682        distcleancheck distdir distuninstallcheck dvi dvi-am html \
     683        html-am info info-am install install-addlibsDATA install-am \
     684        install-data install-data-am install-exec install-exec-am \
     685        install-info install-info-am install-man install-strip \
     686        install-thirdpartylibLTLIBRARIES installcheck installcheck-am \
     687        installdirs maintainer-clean maintainer-clean-generic \
     688        mostlyclean mostlyclean-compile mostlyclean-generic \
     689        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     690        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     691        uninstall-thirdpartylibLTLIBRARIES
    638692
    639693
  • ThirdParty/Blas/trunk/configure

    r1326 r1377  
    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 sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     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 sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS BLASSRCDIR BLASOBJDIR BLASDOCDIR COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11001100  --with-tags[=TAGS]
    11011101                          include additional configurations [automatic]
    1102   --with-blas             specify BLAS library (or BUILD for compilation)
    11031102
    11041103Some influential environment variables:
     
    16211620# that we are in a project main directory
    16221621coin_projectdir=yes
     1622
     1623# Check if a library version is set for libtool
     1624
    16231625
    16241626
     
    32893291
    32903292# Provide some information about the compiler.
    3291 echo "$as_me:3291:" \
     3293echo "$as_me:3293:" \
    32923294     "checking for Fortran 77 compiler version" >&5
    32933295ac_compiler=`set X $ac_compile; echo $2`
     
    54385440*-*-irix6*)
    54395441  # Find out which ABI we are using.
    5440   echo '#line 5440 "configure"' > conftest.$ac_ext
     5442  echo '#line 5442 "configure"' > conftest.$ac_ext
    54415443  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54425444  (eval $ac_compile) 2>&5
     
    78677869   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78687870   -e 's:$: $lt_compiler_flag:'`
    7869    (eval echo "\"\$as_me:7869: $lt_compile\"" >&5)
     7871   (eval echo "\"\$as_me:7871: $lt_compile\"" >&5)
    78707872   (eval "$lt_compile" 2>conftest.err)
    78717873   ac_status=$?
    78727874   cat conftest.err >&5
    7873    echo "$as_me:7873: \$? = $ac_status" >&5
     7875   echo "$as_me:7875: \$? = $ac_status" >&5
    78747876   if (exit $ac_status) && test -s "$ac_outfile"; then
    78757877     # The compiler can only warn and ignore the option if not recognized
     
    81358137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81368138   -e 's:$: $lt_compiler_flag:'`
    8137    (eval echo "\"\$as_me:8137: $lt_compile\"" >&5)
     8139   (eval echo "\"\$as_me:8139: $lt_compile\"" >&5)
    81388140   (eval "$lt_compile" 2>conftest.err)
    81398141   ac_status=$?
    81408142   cat conftest.err >&5
    8141    echo "$as_me:8141: \$? = $ac_status" >&5
     8143   echo "$as_me:8143: \$? = $ac_status" >&5
    81428144   if (exit $ac_status) && test -s "$ac_outfile"; then
    81438145     # The compiler can only warn and ignore the option if not recognized
     
    82398241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82408242   -e 's:$: $lt_compiler_flag:'`
    8241    (eval echo "\"\$as_me:8241: $lt_compile\"" >&5)
     8243   (eval echo "\"\$as_me:8243: $lt_compile\"" >&5)
    82428244   (eval "$lt_compile" 2>out/conftest.err)
    82438245   ac_status=$?
    82448246   cat out/conftest.err >&5
    8245    echo "$as_me:8245: \$? = $ac_status" >&5
     8247   echo "$as_me:8247: \$? = $ac_status" >&5
    82468248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82478249   then
     
    1058410586  lt_status=$lt_dlunknown
    1058510587  cat > conftest.$ac_ext <<EOF
    10586 #line 10586 "configure"
     10588#line 10588 "configure"
    1058710589#include "confdefs.h"
    1058810590
     
    1068410686  lt_status=$lt_dlunknown
    1068510687  cat > conftest.$ac_ext <<EOF
    10686 #line 10686 "configure"
     10688#line 10688 "configure"
    1068710689#include "confdefs.h"
    1068810690
     
    1302813030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1302913031   -e 's:$: $lt_compiler_flag:'`
    13030    (eval echo "\"\$as_me:13030: $lt_compile\"" >&5)
     13032   (eval echo "\"\$as_me:13032: $lt_compile\"" >&5)
    1303113033   (eval "$lt_compile" 2>conftest.err)
    1303213034   ac_status=$?
    1303313035   cat conftest.err >&5
    13034    echo "$as_me:13034: \$? = $ac_status" >&5
     13036   echo "$as_me:13036: \$? = $ac_status" >&5
    1303513037   if (exit $ac_status) && test -s "$ac_outfile"; then
    1303613038     # The compiler can only warn and ignore the option if not recognized
     
    1313213134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1313313135   -e 's:$: $lt_compiler_flag:'`
    13134    (eval echo "\"\$as_me:13134: $lt_compile\"" >&5)
     13136   (eval echo "\"\$as_me:13136: $lt_compile\"" >&5)
    1313513137   (eval "$lt_compile" 2>out/conftest.err)
    1313613138   ac_status=$?
    1313713139   cat out/conftest.err >&5
    13138    echo "$as_me:13138: \$? = $ac_status" >&5
     13140   echo "$as_me:13140: \$? = $ac_status" >&5
    1313913141   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1314013142   then
     
    1470214704   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1470314705   -e 's:$: $lt_compiler_flag:'`
    14704    (eval echo "\"\$as_me:14704: $lt_compile\"" >&5)
     14706   (eval echo "\"\$as_me:14706: $lt_compile\"" >&5)
    1470514707   (eval "$lt_compile" 2>conftest.err)
    1470614708   ac_status=$?
    1470714709   cat conftest.err >&5
    14708    echo "$as_me:14708: \$? = $ac_status" >&5
     14710   echo "$as_me:14710: \$? = $ac_status" >&5
    1470914711   if (exit $ac_status) && test -s "$ac_outfile"; then
    1471014712     # The compiler can only warn and ignore the option if not recognized
     
    1480614808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1480714809   -e 's:$: $lt_compiler_flag:'`
    14808    (eval echo "\"\$as_me:14808: $lt_compile\"" >&5)
     14810   (eval echo "\"\$as_me:14810: $lt_compile\"" >&5)
    1480914811   (eval "$lt_compile" 2>out/conftest.err)
    1481014812   ac_status=$?
    1481114813   cat out/conftest.err >&5
    14812    echo "$as_me:14812: \$? = $ac_status" >&5
     14814   echo "$as_me:14814: \$? = $ac_status" >&5
    1481314815   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1481414816   then
     
    1701317015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1701417016   -e 's:$: $lt_compiler_flag:'`
    17015    (eval echo "\"\$as_me:17015: $lt_compile\"" >&5)
     17017   (eval echo "\"\$as_me:17017: $lt_compile\"" >&5)
    1701617018   (eval "$lt_compile" 2>conftest.err)
    1701717019   ac_status=$?
    1701817020   cat conftest.err >&5
    17019    echo "$as_me:17019: \$? = $ac_status" >&5
     17021   echo "$as_me:17021: \$? = $ac_status" >&5
    1702017022   if (exit $ac_status) && test -s "$ac_outfile"; then
    1702117023     # The compiler can only warn and ignore the option if not recognized
     
    1728117283   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1728217284   -e 's:$: $lt_compiler_flag:'`
    17283    (eval echo "\"\$as_me:17283: $lt_compile\"" >&5)
     17285   (eval echo "\"\$as_me:17285: $lt_compile\"" >&5)
    1728417286   (eval "$lt_compile" 2>conftest.err)
    1728517287   ac_status=$?
    1728617288   cat conftest.err >&5
    17287    echo "$as_me:17287: \$? = $ac_status" >&5
     17289   echo "$as_me:17289: \$? = $ac_status" >&5
    1728817290   if (exit $ac_status) && test -s "$ac_outfile"; then
    1728917291     # The compiler can only warn and ignore the option if not recognized
     
    1738517387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1738617388   -e 's:$: $lt_compiler_flag:'`
    17387    (eval echo "\"\$as_me:17387: $lt_compile\"" >&5)
     17389   (eval echo "\"\$as_me:17389: $lt_compile\"" >&5)
    1738817390   (eval "$lt_compile" 2>out/conftest.err)
    1738917391   ac_status=$?
    1739017392   cat out/conftest.err >&5
    17391    echo "$as_me:17391: \$? = $ac_status" >&5
     17393   echo "$as_me:17393: \$? = $ac_status" >&5
    1739217394   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1739317395   then
     
    2027020272LT_LDFLAGS=
    2027120273
     20274# Check if we want to set the library version
     20275echo "$as_me:$LINENO: checking if library version is set" >&5
     20276echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
     20277if test x"$coin_libversion" != x; then
     20278  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
     20279  echo "$as_me:$LINENO: result: $coin_libversion" >&5
     20280echo "${ECHO_T}$coin_libversion" >&6
     20281else
     20282  echo "$as_me:$LINENO: result: no" >&5
     20283echo "${ECHO_T}no" >&6
     20284fi
     20285
     20286
    2027220287
    2027320288#END
    2027420289}
    2027520290
    20276 # Check if Blas is already available on the system or provided by user
    20277 ac_ext=f
    20278 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20279 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20280 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20281 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
    20282 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
    20283 if test "${ac_cv_prog_f77_v+set}" = set; then
    20284   echo $ECHO_N "(cached) $ECHO_C" >&6
    20285 else
    20286   cat >conftest.$ac_ext <<_ACEOF
    20287       program main
    20288 
    20289       end
    20290 _ACEOF
    20291 rm -f conftest.$ac_objext
    20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    20293   (eval $ac_compile) 2>conftest.er1
    20294   ac_status=$?
    20295   grep -v '^ *+' conftest.er1 >conftest.err
    20296   rm -f conftest.er1
    20297   cat conftest.err >&5
    20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20299   (exit $ac_status); } &&
    20300          { ac_try='test -z "$ac_f77_werror_flag"
    20301                          || test ! -s conftest.err'
    20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20303   (eval $ac_try) 2>&5
    20304   ac_status=$?
    20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20306   (exit $ac_status); }; } &&
    20307          { ac_try='test -s conftest.$ac_objext'
    20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20309   (eval $ac_try) 2>&5
    20310   ac_status=$?
    20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20312   (exit $ac_status); }; }; then
    20313   ac_cv_prog_f77_v=
    20314 # Try some options frequently used verbose output
    20315 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
    20316   cat >conftest.$ac_ext <<_ACEOF
    20317       program main
    20318 
    20319       end
    20320 _ACEOF
    20321 
    20322 # Compile and link our simple test program by passing a flag (argument
    20323 # 1 to this macro) to the Fortran compiler in order to get
    20324 # "verbose" output that we can then parse for the Fortran linker
    20325 # flags.
    20326 ac_save_FFLAGS=$FFLAGS
    20327 FFLAGS="$FFLAGS $ac_verb"
    20328 (eval echo $as_me:20328: \"$ac_link\") >&5
    20329 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    20330 echo "$ac_f77_v_output" >&5
    20331 FFLAGS=$ac_save_FFLAGS
    20332 
    20333 rm -f conftest*
    20334 
    20335 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
    20336 # /foo, /bar, and /baz are search directories for the Fortran linker.
    20337 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
    20338 ac_f77_v_output="`echo $ac_f77_v_output |
    20339         grep 'LPATH is:' |
    20340         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
    20341 
    20342 case $ac_f77_v_output in
    20343   # If we are using xlf then replace all the commas with spaces.
    20344   *xlfentry*)
    20345     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
    20346 
    20347   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
    20348   # $LIBS confuse us, and the libraries appear later in the output anyway).
    20349   *mGLOB_options_string*)
    20350     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
    20351 
    20352   # If we are using Cray Fortran then delete quotes.
    20353   # Use "\"" instead of '"' for font-lock-mode.
    20354   # FIXME: a more general fix for quoted arguments with spaces?
    20355   *cft90*)
    20356     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
    20357 esac
    20358 
    20359 
    20360   # look for -l* and *.a constructs in the output
    20361   for ac_arg in $ac_f77_v_output; do
    20362      case $ac_arg in
    20363         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
    20364           ac_cv_prog_f77_v=$ac_verb
    20365           break 2 ;;
    20366      esac
    20367   done
    20368 done
    20369 if test -z "$ac_cv_prog_f77_v"; then
    20370    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
    20371 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
    20372 fi
    20373 else
    20374   echo "$as_me: failed program was:" >&5
    20375 sed 's/^/| /' conftest.$ac_ext >&5
    20376 
    20377 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
    20378 echo "$as_me: WARNING: compilation failed" >&2;}
    20379 fi
    20380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    20381 
    20382 fi
    20383 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
    20384 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
    20385 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
    20386 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
    20387 if test "${ac_cv_f77_libs+set}" = set; then
    20388   echo $ECHO_N "(cached) $ECHO_C" >&6
    20389 else
    20390   if test "x$FLIBS" != "x"; then
    20391   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
    20392 else
    20393 
    20394 cat >conftest.$ac_ext <<_ACEOF
    20395       program main
    20396 
    20397       end
    20398 _ACEOF
    20399 
    20400 # Compile and link our simple test program by passing a flag (argument
    20401 # 1 to this macro) to the Fortran compiler in order to get
    20402 # "verbose" output that we can then parse for the Fortran linker
    20403 # flags.
    20404 ac_save_FFLAGS=$FFLAGS
    20405 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    20406 (eval echo $as_me:20406: \"$ac_link\") >&5
    20407 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    20408 echo "$ac_f77_v_output" >&5
    20409 FFLAGS=$ac_save_FFLAGS
    20410 
    20411 rm -f conftest*
    20412 
    20413 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
    20414 # /foo, /bar, and /baz are search directories for the Fortran linker.
    20415 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
    20416 ac_f77_v_output="`echo $ac_f77_v_output |
    20417         grep 'LPATH is:' |
    20418         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
    20419 
    20420 case $ac_f77_v_output in
    20421   # If we are using xlf then replace all the commas with spaces.
    20422   *xlfentry*)
    20423     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
    20424 
    20425   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
    20426   # $LIBS confuse us, and the libraries appear later in the output anyway).
    20427   *mGLOB_options_string*)
    20428     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
    20429 
    20430   # If we are using Cray Fortran then delete quotes.
    20431   # Use "\"" instead of '"' for font-lock-mode.
    20432   # FIXME: a more general fix for quoted arguments with spaces?
    20433   *cft90*)
    20434     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
    20435 esac
    20436 
    20437 
    20438 
    20439 ac_cv_f77_libs=
    20440 
    20441 # Save positional arguments (if any)
    20442 ac_save_positional="$@"
    20443 
    20444 set X $ac_f77_v_output
    20445 while test $# != 1; do
    20446   shift
    20447   ac_arg=$1
    20448   case $ac_arg in
    20449         [\\/]*.a | ?:[\\/]*.a)
    20450             ac_exists=false
    20451   for ac_i in $ac_cv_f77_libs; do
    20452     if test x"$ac_arg" = x"$ac_i"; then
    20453       ac_exists=true
    20454       break
     20291echo "$as_me:$LINENO: checking for COIN project Blas" >&5
     20292echo $ECHO_N "checking for COIN project Blas... $ECHO_C" >&6
     20293
     20294# First check, if the sub-project is actually available (ToDo: allow
     20295# other locations)
     20296
     20297coin_has_blas=unavailable
     20298if test x"$COIN_SKIP_PROJECTS" != x; then
     20299  for dir in $COIN_SKIP_PROJECTS; do
     20300    if test $dir = Blas; then
     20301      coin_has_blas=skipping
    2045520302    fi
    2045620303  done
    20457 
    20458   if test x"$ac_exists" = xtrue; then
    20459   :
    20460 else
    20461   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20462 fi
    20463 
    20464           ;;
    20465         -bI:*)
    20466             ac_exists=false
    20467   for ac_i in $ac_cv_f77_libs; do
    20468     if test x"$ac_arg" = x"$ac_i"; then
    20469       ac_exists=true
    20470       break
    20471     fi
    20472   done
    20473 
    20474   if test x"$ac_exists" = xtrue; then
    20475   :
    20476 else
    20477   if test "$ac_compiler_gnu" = yes; then
    20478   for ac_link_opt in $ac_arg; do
    20479     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
    20480   done
    20481 else
    20482   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20483 fi
    20484 fi
    20485 
    20486           ;;
    20487           # Ignore these flags.
    20488         -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
    20489           ;;
    20490         -lkernel32)
    20491           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20492           ;;
    20493         -[LRuY])
    20494           # These flags, when seen by themselves, take an argument.
    20495           # We remove the space between option and argument and re-iterate
    20496           # unless we find an empty arg or a new option (starting with -)
    20497           case $2 in
    20498              "" | -*);;
    20499              *)
    20500                 ac_arg="$ac_arg$2"
    20501                 shift; shift
    20502                 set X $ac_arg "$@"
    20503                 ;;
    20504           esac
    20505           ;;
    20506         -YP,*)
    20507           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
    20508               ac_exists=false
    20509   for ac_i in $ac_cv_f77_libs; do
    20510     if test x"$ac_j" = x"$ac_i"; then
    20511       ac_exists=true
    20512       break
    20513     fi
    20514   done
    20515 
    20516   if test x"$ac_exists" = xtrue; then
    20517   :
    20518 else
    20519   ac_arg="$ac_arg $ac_j"
    20520                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
    20521 fi
    20522 
    20523           done
    20524           ;;
    20525         -[lLR]*)
    20526             ac_exists=false
    20527   for ac_i in $ac_cv_f77_libs; do
    20528     if test x"$ac_arg" = x"$ac_i"; then
    20529       ac_exists=true
    20530       break
    20531     fi
    20532   done
    20533 
    20534   if test x"$ac_exists" = xtrue; then
    20535   :
    20536 else
    20537   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20538 fi
    20539 
    20540           ;;
    20541           # Ignore everything else.
    20542   esac
    20543 done
    20544 # restore positional arguments
    20545 set X $ac_save_positional; shift
    20546 
    20547 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
    20548 # then we insist that the "run path" must be an absolute path (i.e. it
    20549 # must begin with a "/").
    20550 case `(uname -sr) 2>/dev/null` in
    20551    "SunOS 5"*)
    20552       ac_ld_run_path=`echo $ac_f77_v_output |
    20553                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
    20554       test "x$ac_ld_run_path" != x &&
    20555         if test "$ac_compiler_gnu" = yes; then
    20556   for ac_link_opt in $ac_ld_run_path; do
    20557     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
    20558   done
    20559 else
    20560   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
    20561 fi
    20562       ;;
    20563 esac
    20564 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
    20565 
    20566 fi
    20567 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
    20568 echo "${ECHO_T}$ac_cv_f77_libs" >&6
    20569 FLIBS="$ac_cv_f77_libs"
    20570 
    20571 
    20572 ac_ext=c
    20573 ac_cpp='$CPP $CPPFLAGS'
    20574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20577 
    20578 ac_ext=f
    20579 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20580 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20581 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20582 
    20583 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
    20584 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
    20585 if test "${ac_cv_f77_dummy_main+set}" = set; then
    20586   echo $ECHO_N "(cached) $ECHO_C" >&6
    20587 else
    20588   ac_f77_dm_save_LIBS=$LIBS
    20589  LIBS="$LIBS $FLIBS"
    20590  ac_fortran_dm_var=F77_DUMMY_MAIN
    20591  ac_ext=c
    20592 ac_cpp='$CPP $CPPFLAGS'
    20593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20596 
    20597  # First, try linking without a dummy main:
    20598  cat >conftest.$ac_ext <<_ACEOF
    20599 /* confdefs.h.  */
    20600 _ACEOF
    20601 cat confdefs.h >>conftest.$ac_ext
    20602 cat >>conftest.$ac_ext <<_ACEOF
    20603 /* end confdefs.h.  */
    20604 
    20605 #ifdef F77_DUMMY_MAIN
    20606 
    20607 #  ifdef __cplusplus
    20608      extern "C"
    20609 #  endif
    20610    int F77_DUMMY_MAIN() { return 1; }
    20611 
    20612 #endif
    20613 int
    20614 main ()
    20615 {
    20616 
    20617   ;
    20618   return 0;
    20619 }
    20620 _ACEOF
    20621 rm -f conftest.$ac_objext conftest$ac_exeext
    20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20623   (eval $ac_link) 2>conftest.er1
    20624   ac_status=$?
    20625   grep -v '^ *+' conftest.er1 >conftest.err
    20626   rm -f conftest.er1
    20627   cat conftest.err >&5
    20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20629   (exit $ac_status); } &&
    20630          { ac_try='test -z "$ac_c_werror_flag"
    20631                          || test ! -s conftest.err'
    20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20633   (eval $ac_try) 2>&5
    20634   ac_status=$?
    20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20636   (exit $ac_status); }; } &&
    20637          { ac_try='test -s conftest$ac_exeext'
    20638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20639   (eval $ac_try) 2>&5
    20640   ac_status=$?
    20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20642   (exit $ac_status); }; }; then
    20643   ac_cv_fortran_dummy_main=none
    20644 else
    20645   echo "$as_me: failed program was:" >&5
    20646 sed 's/^/| /' conftest.$ac_ext >&5
    20647 
    20648 ac_cv_fortran_dummy_main=unknown
    20649 fi
    20650 rm -f conftest.err conftest.$ac_objext \
    20651       conftest$ac_exeext conftest.$ac_ext
    20652 
    20653  if test $ac_cv_fortran_dummy_main = unknown; then
    20654    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
    20655      cat >conftest.$ac_ext <<_ACEOF
    20656 /* confdefs.h.  */
    20657 _ACEOF
    20658 cat confdefs.h >>conftest.$ac_ext
    20659 cat >>conftest.$ac_ext <<_ACEOF
    20660 /* end confdefs.h.  */
    20661 #define $ac_fortran_dm_var $ac_func
    20662 #ifdef F77_DUMMY_MAIN
    20663 
    20664 #  ifdef __cplusplus
    20665      extern "C"
    20666 #  endif
    20667    int F77_DUMMY_MAIN() { return 1; }
    20668 
    20669 #endif
    20670 int
    20671 main ()
    20672 {
    20673 
    20674   ;
    20675   return 0;
    20676 }
    20677 _ACEOF
    20678 rm -f conftest.$ac_objext conftest$ac_exeext
    20679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20680   (eval $ac_link) 2>conftest.er1
    20681   ac_status=$?
    20682   grep -v '^ *+' conftest.er1 >conftest.err
    20683   rm -f conftest.er1
    20684   cat conftest.err >&5
    20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20686   (exit $ac_status); } &&
    20687          { ac_try='test -z "$ac_c_werror_flag"
    20688                          || test ! -s conftest.err'
    20689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20690   (eval $ac_try) 2>&5
    20691   ac_status=$?
    20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20693   (exit $ac_status); }; } &&
    20694          { ac_try='test -s conftest$ac_exeext'
    20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20696   (eval $ac_try) 2>&5
    20697   ac_status=$?
    20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20699   (exit $ac_status); }; }; then
    20700   ac_cv_fortran_dummy_main=$ac_func; break
    20701 else
    20702   echo "$as_me: failed program was:" >&5
    20703 sed 's/^/| /' conftest.$ac_ext >&5
    20704 
    20705 fi
    20706 rm -f conftest.err conftest.$ac_objext \
    20707       conftest$ac_exeext conftest.$ac_ext
    20708    done
    20709  fi
    20710  ac_ext=f
    20711 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20712 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20713 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20714  ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
    20715  rm -f conftest*
    20716  LIBS=$ac_f77_dm_save_LIBS
    20717 
    20718 fi
    20719 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
    20720 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
    20721 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
    20722 if test "$F77_DUMMY_MAIN" != unknown; then
    20723   if test $F77_DUMMY_MAIN != none; then
    20724 
    20725 cat >>confdefs.h <<_ACEOF
    20726 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
    20727 _ACEOF
    20728 
    20729   if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
    20730 
    20731 cat >>confdefs.h <<\_ACEOF
    20732 #define FC_DUMMY_MAIN_EQ_F77 1
    20733 _ACEOF
    20734 
    20735   fi
    20736 fi
    20737 else
    20738   { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
    20739 See \`config.log' for more details." >&5
    20740 echo "$as_me: error: linking to Fortran libraries from C fails
    20741 See \`config.log' for more details." >&2;}
    20742    { (exit 1); exit 1; }; }
    20743 fi
    20744 
    20745 
    20746 ac_ext=c
    20747 ac_cpp='$CPP $CPPFLAGS'
    20748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20751 
    20752 ac_ext=f
    20753 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20754 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20755 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20756 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
    20757 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
    20758 if test "${ac_cv_f77_mangling+set}" = set; then
    20759   echo $ECHO_N "(cached) $ECHO_C" >&6
    20760 else
    20761   cat >conftest.$ac_ext <<_ACEOF
    20762       subroutine foobar()
    20763       return
    20764       end
    20765       subroutine foo_bar()
    20766       return
    20767       end
    20768 _ACEOF
    20769 rm -f conftest.$ac_objext
    20770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    20771   (eval $ac_compile) 2>conftest.er1
    20772   ac_status=$?
    20773   grep -v '^ *+' conftest.er1 >conftest.err
    20774   rm -f conftest.er1
    20775   cat conftest.err >&5
    20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20777   (exit $ac_status); } &&
    20778          { ac_try='test -z "$ac_f77_werror_flag"
    20779                          || test ! -s conftest.err'
    20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20781   (eval $ac_try) 2>&5
    20782   ac_status=$?
    20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20784   (exit $ac_status); }; } &&
    20785          { ac_try='test -s conftest.$ac_objext'
    20786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20787   (eval $ac_try) 2>&5
    20788   ac_status=$?
    20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20790   (exit $ac_status); }; }; then
    20791   mv conftest.$ac_objext cfortran_test.$ac_objext
    20792 
    20793   ac_save_LIBS=$LIBS
    20794   LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
    20795 
    20796   ac_ext=c
    20797 ac_cpp='$CPP $CPPFLAGS'
    20798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20801   ac_success=no
    20802   for ac_foobar in foobar FOOBAR; do
    20803     for ac_underscore in "" "_"; do
    20804       ac_func="$ac_foobar$ac_underscore"
    20805       cat >conftest.$ac_ext <<_ACEOF
    20806 /* confdefs.h.  */
    20807 _ACEOF
    20808 cat confdefs.h >>conftest.$ac_ext
    20809 cat >>conftest.$ac_ext <<_ACEOF
    20810 /* end confdefs.h.  */
    20811 
    20812 /* Override any gcc2 internal prototype to avoid an error.  */
    20813 #ifdef __cplusplus
    20814 extern "C"
    20815 #endif
    20816 /* We use char because int might match the return type of a gcc2
    20817    builtin and then its argument prototype would still apply.  */
    20818 char $ac_func ();
    20819 #ifdef F77_DUMMY_MAIN
    20820 
    20821 #  ifdef __cplusplus
    20822      extern "C"
    20823 #  endif
    20824    int F77_DUMMY_MAIN() { return 1; }
    20825 
    20826 #endif
    20827 int
    20828 main ()
    20829 {
    20830 $ac_func ();
    20831   ;
    20832   return 0;
    20833 }
    20834 _ACEOF
    20835 rm -f conftest.$ac_objext conftest$ac_exeext
    20836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20837   (eval $ac_link) 2>conftest.er1
    20838   ac_status=$?
    20839   grep -v '^ *+' conftest.er1 >conftest.err
    20840   rm -f conftest.er1
    20841   cat conftest.err >&5
    20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20843   (exit $ac_status); } &&
    20844          { ac_try='test -z "$ac_c_werror_flag"
    20845                          || test ! -s conftest.err'
    20846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20847   (eval $ac_try) 2>&5
    20848   ac_status=$?
    20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20850   (exit $ac_status); }; } &&
    20851          { ac_try='test -s conftest$ac_exeext'
    20852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20853   (eval $ac_try) 2>&5
    20854   ac_status=$?
    20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20856   (exit $ac_status); }; }; then
    20857   ac_success=yes; break 2
    20858 else
    20859   echo "$as_me: failed program was:" >&5
    20860 sed 's/^/| /' conftest.$ac_ext >&5
    20861 
    20862 fi
    20863 rm -f conftest.err conftest.$ac_objext \
    20864       conftest$ac_exeext conftest.$ac_ext
    20865     done
    20866   done
    20867   ac_ext=f
    20868 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20869 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20870 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20871 
    20872   if test "$ac_success" = "yes"; then
    20873      case $ac_foobar in
    20874         foobar)
    20875            ac_case=lower
    20876            ac_foo_bar=foo_bar
    20877            ;;
    20878         FOOBAR)
    20879            ac_case=upper
    20880            ac_foo_bar=FOO_BAR
    20881            ;;
    20882      esac
    20883 
    20884      ac_ext=c
    20885 ac_cpp='$CPP $CPPFLAGS'
    20886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20889      ac_success_extra=no
    20890      for ac_extra in "" "_"; do
    20891         ac_func="$ac_foo_bar$ac_underscore$ac_extra"
    20892         cat >conftest.$ac_ext <<_ACEOF
    20893 /* confdefs.h.  */
    20894 _ACEOF
    20895 cat confdefs.h >>conftest.$ac_ext
    20896 cat >>conftest.$ac_ext <<_ACEOF
    20897 /* end confdefs.h.  */
    20898 
    20899 /* Override any gcc2 internal prototype to avoid an error.  */
    20900 #ifdef __cplusplus
    20901 extern "C"
    20902 #endif
    20903 /* We use char because int might match the return type of a gcc2
    20904    builtin and then its argument prototype would still apply.  */
    20905 char $ac_func ();
    20906 #ifdef F77_DUMMY_MAIN
    20907 
    20908 #  ifdef __cplusplus
    20909      extern "C"
    20910 #  endif
    20911    int F77_DUMMY_MAIN() { return 1; }
    20912 
    20913 #endif
    20914 int
    20915 main ()
    20916 {
    20917 $ac_func ();
    20918   ;
    20919   return 0;
    20920 }
    20921 _ACEOF
    20922 rm -f conftest.$ac_objext conftest$ac_exeext
    20923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20924   (eval $ac_link) 2>conftest.er1
    20925   ac_status=$?
    20926   grep -v '^ *+' conftest.er1 >conftest.err
    20927   rm -f conftest.er1
    20928   cat conftest.err >&5
    20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20930   (exit $ac_status); } &&
    20931          { ac_try='test -z "$ac_c_werror_flag"
    20932                          || test ! -s conftest.err'
    20933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20934   (eval $ac_try) 2>&5
    20935   ac_status=$?
    20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20937   (exit $ac_status); }; } &&
    20938          { ac_try='test -s conftest$ac_exeext'
    20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20940   (eval $ac_try) 2>&5
    20941   ac_status=$?
    20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20943   (exit $ac_status); }; }; then
    20944   ac_success_extra=yes; break
    20945 else
    20946   echo "$as_me: failed program was:" >&5
    20947 sed 's/^/| /' conftest.$ac_ext >&5
    20948 
    20949 fi
    20950 rm -f conftest.err conftest.$ac_objext \
    20951       conftest$ac_exeext conftest.$ac_ext
    20952      done
    20953      ac_ext=f
    20954 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20955 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20956 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20957 
    20958      if test "$ac_success_extra" = "yes"; then
    20959         ac_cv_f77_mangling="$ac_case case"
    20960         if test -z "$ac_underscore"; then
    20961            ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
    20962         else
    20963            ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
    20964         fi
    20965         if test -z "$ac_extra"; then
    20966            ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
    20967         else
    20968            ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
    20969         fi
    20970       else
    20971         ac_cv_f77_mangling="unknown"
    20972       fi
     20304fi
     20305
     20306if test $coin_has_blas != skipping; then
     20307  if test $PACKAGE_TARNAME = blas; then
     20308    coin_has_blas=.
    2097320309  else
    20974      ac_cv_f77_mangling="unknown"
    20975   fi
    20976 
    20977   LIBS=$ac_save_LIBS
    20978   rm -f cfortran_test* conftest*
    20979 else
    20980   echo "$as_me: failed program was:" >&5
    20981 sed 's/^/| /' conftest.$ac_ext >&5
    20982 
    20983 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
    20984 See \`config.log' for more details." >&5
    20985 echo "$as_me: error: cannot compile a simple Fortran program
    20986 See \`config.log' for more details." >&2;}
    20987    { (exit 1); exit 1; }; }
    20988 fi
    20989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    20990 
    20991 fi
    20992 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
    20993 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
    20994 
    20995 ac_ext=c
    20996 ac_cpp='$CPP $CPPFLAGS'
    20997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21000 
    21001 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then
    21002   coin_blasobjdir=../Blas
    21003 else
    21004   coin_blasobjdir=../ThirdParty/Blas
    21005 fi
    21006 coin_blassrcdir=$srcdir/$coin_blasobjdir
    21007 
    21008 
    21009 # Check whether --with-blas or --without-blas was given.
    21010 if test "${with_blas+set}" = set; then
    21011   withval="$with_blas"
    21012   use_blas=$withval
    21013 else
    21014   use_blas=
    21015 fi;
    21016 
    21017 MAKEOKFILE=.MakeOk
    21018 # Check if user supplied option makes sense
    21019 if test x"$use_blas" != x; then
    21020   if test "$use_blas" = "BUILD"; then
    21021     # Don't check for course code if this is executed in ThirdParty/Blas
    21022     if test "$PACKAGE_NAME" != ThirdPartyBlas; then
    21023       if test -r $coin_blasobjdir/.MakeOk; then :; else
    21024         { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5
    21025 echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;}
    21026    { (exit 1); exit 1; }; }
    21027       fi
    21028     fi
    21029   elif test "$use_blas" != no ; then
    21030     echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
    21031 echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
    21032     LIBS="$use_blas $LIBS"
    21033     ADDLIBS="$use_blas $ADDLIBS"
    21034     case $ac_ext in
    21035   f)
    21036     cat >conftest.$ac_ext <<_ACEOF
    21037 /* confdefs.h.  */
    21038 _ACEOF
    21039 cat confdefs.h >>conftest.$ac_ext
    21040 cat >>conftest.$ac_ext <<_ACEOF
    21041 /* end confdefs.h.  */
    21042 
    21043 int
    21044 main ()
    21045 {
    21046       call daxpy
    21047   ;
    21048   return 0;
    21049 }
    21050 _ACEOF
    21051 rm -f conftest.$ac_objext conftest$ac_exeext
    21052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21053   (eval $ac_link) 2>conftest.er1
    21054   ac_status=$?
    21055   grep -v '^ *+' conftest.er1 >conftest.err
    21056   rm -f conftest.er1
    21057   cat conftest.err >&5
    21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21059   (exit $ac_status); } &&
    21060          { ac_try='test -z "$ac_c_werror_flag"
    21061                          || test ! -s conftest.err'
    21062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21063   (eval $ac_try) 2>&5
    21064   ac_status=$?
    21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21066   (exit $ac_status); }; } &&
    21067          { ac_try='test -s conftest$ac_exeext'
    21068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21069   (eval $ac_try) 2>&5
    21070   ac_status=$?
    21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21072   (exit $ac_status); }; }; then
    21073   echo "$as_me:$LINENO: result: yes" >&5
    21074 echo "${ECHO_T}yes" >&6
    21075 else
    21076   echo "$as_me: failed program was:" >&5
    21077 sed 's/^/| /' conftest.$ac_ext >&5
    21078 
    21079 echo "$as_me:$LINENO: result: no" >&5
    21080 echo "${ECHO_T}no" >&6
    21081                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21082 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21083    { (exit 1); exit 1; }; }
    21084 fi
    21085 rm -f conftest.err conftest.$ac_objext \
    21086       conftest$ac_exeext conftest.$ac_ext
    21087     ;;
    21088   c)
    21089     ac_ext=f
    21090 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21091 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21092 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21093 case $ac_cv_f77_mangling in
    21094   upper*) ac_val="DAXPY" ;;
    21095   lower*) ac_val="daxpy" ;;
    21096   *)      ac_val="unknown" ;;
    21097 esac
    21098 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21099 
    21100 cfuncdaxpy="$ac_val"
    21101 
    21102 ac_ext=c
    21103 ac_cpp='$CPP $CPPFLAGS'
    21104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21107 
    21108     if test x"$coin_need_flibs" = xyes; then
    21109       flink_try=no;
    21110     else
    21111       cat >conftest.$ac_ext <<_ACEOF
    21112 /* confdefs.h.  */
    21113 _ACEOF
    21114 cat confdefs.h >>conftest.$ac_ext
    21115 cat >>conftest.$ac_ext <<_ACEOF
    21116 /* end confdefs.h.  */
    21117 void $cfuncdaxpy();
    21118 #ifdef F77_DUMMY_MAIN
    21119 
    21120 #  ifdef __cplusplus
    21121      extern "C"
    21122 #  endif
    21123    int F77_DUMMY_MAIN() { return 1; }
    21124 
    21125 #endif
    21126 int
    21127 main ()
    21128 {
    21129 $cfuncdaxpy()
    21130   ;
    21131   return 0;
    21132 }
    21133 _ACEOF
    21134 rm -f conftest.$ac_objext conftest$ac_exeext
    21135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21136   (eval $ac_link) 2>conftest.er1
    21137   ac_status=$?
    21138   grep -v '^ *+' conftest.er1 >conftest.err
    21139   rm -f conftest.er1
    21140   cat conftest.err >&5
    21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21142   (exit $ac_status); } &&
    21143          { ac_try='test -z "$ac_c_werror_flag"
    21144                          || test ! -s conftest.err'
    21145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21146   (eval $ac_try) 2>&5
    21147   ac_status=$?
    21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21149   (exit $ac_status); }; } &&
    21150          { ac_try='test -s conftest$ac_exeext'
    21151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21152   (eval $ac_try) 2>&5
    21153   ac_status=$?
    21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21155   (exit $ac_status); }; }; then
    21156   flink_try=yes
    21157 else
    21158   echo "$as_me: failed program was:" >&5
    21159 sed 's/^/| /' conftest.$ac_ext >&5
    21160 
    21161 flink_try=no
    21162 fi
    21163 rm -f conftest.err conftest.$ac_objext \
    21164       conftest$ac_exeext conftest.$ac_ext
    21165     fi
    21166     if test $flink_try = yes; then
    21167       echo "$as_me:$LINENO: result: yes" >&5
    21168 echo "${ECHO_T}yes" >&6
    21169     else
    21170       if test x"$FLIBS" != x; then
    21171         flink_save_libs="$LIBS"
    21172         LIBS="$LIBS $FLIBS"
    21173         cat >conftest.$ac_ext <<_ACEOF
    21174 /* confdefs.h.  */
    21175 _ACEOF
    21176 cat confdefs.h >>conftest.$ac_ext
    21177 cat >>conftest.$ac_ext <<_ACEOF
    21178 /* end confdefs.h.  */
    21179 void $cfuncdaxpy();
    21180 #ifdef F77_DUMMY_MAIN
    21181 
    21182 #  ifdef __cplusplus
    21183      extern "C"
    21184 #  endif
    21185    int F77_DUMMY_MAIN() { return 1; }
    21186 
    21187 #endif
    21188 int
    21189 main ()
    21190 {
    21191 $cfuncdaxpy()
    21192   ;
    21193   return 0;
    21194 }
    21195 _ACEOF
    21196 rm -f conftest.$ac_objext conftest$ac_exeext
    21197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21198   (eval $ac_link) 2>conftest.er1
    21199   ac_status=$?
    21200   grep -v '^ *+' conftest.er1 >conftest.err
    21201   rm -f conftest.er1
    21202   cat conftest.err >&5
    21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21204   (exit $ac_status); } &&
    21205          { ac_try='test -z "$ac_c_werror_flag"
    21206                          || test ! -s conftest.err'
    21207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21208   (eval $ac_try) 2>&5
    21209   ac_status=$?
    21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21211   (exit $ac_status); }; } &&
    21212          { ac_try='test -s conftest$ac_exeext'
    21213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21214   (eval $ac_try) 2>&5
    21215   ac_status=$?
    21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21217   (exit $ac_status); }; }; then
    21218   LIBS="$flink_save_libs"
    21219                      echo "$as_me:$LINENO: result: yes" >&5
    21220 echo "${ECHO_T}yes" >&6
    21221                      coin_need_flibs=yes
    21222 else
    21223   echo "$as_me: failed program was:" >&5
    21224 sed 's/^/| /' conftest.$ac_ext >&5
    21225 
    21226 LIBS="$flink_save_libs"
    21227                      echo "$as_me:$LINENO: result: no" >&5
    21228 echo "${ECHO_T}no" >&6
    21229                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21230 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21231    { (exit 1); exit 1; }; }
    21232 fi
    21233 rm -f conftest.err conftest.$ac_objext \
    21234       conftest$ac_exeext conftest.$ac_ext
    21235       else
    21236         echo "$as_me:$LINENO: result: no" >&5
    21237 echo "${ECHO_T}no" >&6
    21238                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21239 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21240    { (exit 1); exit 1; }; }
    21241       fi
    21242     fi
    21243     ;;
    21244   cc|cpp)
    21245     ac_ext=f
    21246 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21247 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21248 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21249 case $ac_cv_f77_mangling in
    21250   upper*) ac_val="DAXPY" ;;
    21251   lower*) ac_val="daxpy" ;;
    21252   *)      ac_val="unknown" ;;
    21253 esac
    21254 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21255 
    21256 cfuncdaxpy="$ac_val"
    21257 
    21258 ac_ext=c
    21259 ac_cpp='$CPP $CPPFLAGS'
    21260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21263 
    21264     if test x"$coin_need_flibs" = xyes; then
    21265       flink_try=no;
    21266     else
    21267       cat >conftest.$ac_ext <<_ACEOF
    21268 /* confdefs.h.  */
    21269 _ACEOF
    21270 cat confdefs.h >>conftest.$ac_ext
    21271 cat >>conftest.$ac_ext <<_ACEOF
    21272 /* end confdefs.h.  */
    21273 extern "C" {void $cfuncdaxpy();}
    21274 #ifdef F77_DUMMY_MAIN
    21275 
    21276 #  ifdef __cplusplus
    21277      extern "C"
    21278 #  endif
    21279    int F77_DUMMY_MAIN() { return 1; }
    21280 
    21281 #endif
    21282 int
    21283 main ()
    21284 {
    21285 $cfuncdaxpy()
    21286   ;
    21287   return 0;
    21288 }
    21289 _ACEOF
    21290 rm -f conftest.$ac_objext conftest$ac_exeext
    21291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21292   (eval $ac_link) 2>conftest.er1
    21293   ac_status=$?
    21294   grep -v '^ *+' conftest.er1 >conftest.err
    21295   rm -f conftest.er1
    21296   cat conftest.err >&5
    21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21298   (exit $ac_status); } &&
    21299          { ac_try='test -z "$ac_c_werror_flag"
    21300                          || test ! -s conftest.err'
    21301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21302   (eval $ac_try) 2>&5
    21303   ac_status=$?
    21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21305   (exit $ac_status); }; } &&
    21306          { ac_try='test -s conftest$ac_exeext'
    21307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21308   (eval $ac_try) 2>&5
    21309   ac_status=$?
    21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21311   (exit $ac_status); }; }; then
    21312   flink_try=yes
    21313 else
    21314   echo "$as_me: failed program was:" >&5
    21315 sed 's/^/| /' conftest.$ac_ext >&5
    21316 
    21317 flink_try=no
    21318 fi
    21319 rm -f conftest.err conftest.$ac_objext \
    21320       conftest$ac_exeext conftest.$ac_ext
    21321     fi
    21322     if test $flink_try = yes; then
    21323       echo "$as_me:$LINENO: result: yes" >&5
    21324 echo "${ECHO_T}yes" >&6
    21325     else
    21326       if test x"$FLIBS" != x; then
    21327         flink_save_libs="$LIBS"
    21328         LIBS="$LIBS $FLIBS"
    21329         cat >conftest.$ac_ext <<_ACEOF
    21330 /* confdefs.h.  */
    21331 _ACEOF
    21332 cat confdefs.h >>conftest.$ac_ext
    21333 cat >>conftest.$ac_ext <<_ACEOF
    21334 /* end confdefs.h.  */
    21335 extern "C" {void $cfuncdaxpy();}
    21336 #ifdef F77_DUMMY_MAIN
    21337 
    21338 #  ifdef __cplusplus
    21339      extern "C"
    21340 #  endif
    21341    int F77_DUMMY_MAIN() { return 1; }
    21342 
    21343 #endif
    21344 int
    21345 main ()
    21346 {
    21347 $cfuncdaxpy()
    21348   ;
    21349   return 0;
    21350 }
    21351 _ACEOF
    21352 rm -f conftest.$ac_objext conftest$ac_exeext
    21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21354   (eval $ac_link) 2>conftest.er1
    21355   ac_status=$?
    21356   grep -v '^ *+' conftest.er1 >conftest.err
    21357   rm -f conftest.er1
    21358   cat conftest.err >&5
    21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21360   (exit $ac_status); } &&
    21361          { ac_try='test -z "$ac_c_werror_flag"
    21362                          || test ! -s conftest.err'
    21363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21364   (eval $ac_try) 2>&5
    21365   ac_status=$?
    21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21367   (exit $ac_status); }; } &&
    21368          { ac_try='test -s conftest$ac_exeext'
    21369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21370   (eval $ac_try) 2>&5
    21371   ac_status=$?
    21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21373   (exit $ac_status); }; }; then
    21374   LIBS="$flink_save_libs"
    21375                      echo "$as_me:$LINENO: result: yes" >&5
    21376 echo "${ECHO_T}yes" >&6
    21377                      coin_need_flibs=yes
    21378 else
    21379   echo "$as_me: failed program was:" >&5
    21380 sed 's/^/| /' conftest.$ac_ext >&5
    21381 
    21382 LIBS="$flink_save_libs"
    21383                      echo "$as_me:$LINENO: result: no" >&5
    21384 echo "${ECHO_T}no" >&6
    21385                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21386 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21387    { (exit 1); exit 1; }; }
    21388 fi
    21389 rm -f conftest.err conftest.$ac_objext \
    21390       conftest$ac_exeext conftest.$ac_ext
    21391       else
    21392         echo "$as_me:$LINENO: result: no" >&5
    21393 echo "${ECHO_T}no" >&6
    21394                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21395 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21396    { (exit 1); exit 1; }; }
    21397       fi
    21398     fi
    21399     ;;
    21400 esac
    21401 
    21402   fi
    21403 else
    21404 # Try to autodetect the library for blas based on build system
    21405   #AC_MSG_CHECKING([default locations for BLAS])
    21406   skip_lblas_check=no
    21407   case $build in
    21408     *-sgi-*)
    21409       SAVE_LIBS="$LIBS"
    21410       echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
    21411 echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
    21412       LIBS="-lcomplib.sgimath $LIBS"
    21413       case $ac_ext in
    21414   f)
    21415     cat >conftest.$ac_ext <<_ACEOF
    21416 /* confdefs.h.  */
    21417 _ACEOF
    21418 cat confdefs.h >>conftest.$ac_ext
    21419 cat >>conftest.$ac_ext <<_ACEOF
    21420 /* end confdefs.h.  */
    21421 
    21422 #ifdef F77_DUMMY_MAIN
    21423 
    21424 #  ifdef __cplusplus
    21425      extern "C"
    21426 #  endif
    21427    int F77_DUMMY_MAIN() { return 1; }
    21428 
    21429 #endif
    21430 int
    21431 main ()
    21432 {
    21433       call daxpy
    21434   ;
    21435   return 0;
    21436 }
    21437 _ACEOF
    21438 rm -f conftest.$ac_objext conftest$ac_exeext
    21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21440   (eval $ac_link) 2>conftest.er1
    21441   ac_status=$?
    21442   grep -v '^ *+' conftest.er1 >conftest.err
    21443   rm -f conftest.er1
    21444   cat conftest.err >&5
    21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21446   (exit $ac_status); } &&
    21447          { ac_try='test -z "$ac_c_werror_flag"
    21448                          || test ! -s conftest.err'
    21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21450   (eval $ac_try) 2>&5
    21451   ac_status=$?
    21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21453   (exit $ac_status); }; } &&
    21454          { ac_try='test -s conftest$ac_exeext'
    21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21456   (eval $ac_try) 2>&5
    21457   ac_status=$?
    21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21459   (exit $ac_status); }; }; then
    21460   echo "$as_me:$LINENO: result: yes" >&5
    21461 echo "${ECHO_T}yes" >&6
    21462                          use_blas=-lcomplib.sgimath;
    21463                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21464 else
    21465   echo "$as_me: failed program was:" >&5
    21466 sed 's/^/| /' conftest.$ac_ext >&5
    21467 
    21468 echo "$as_me:$LINENO: result: no" >&5
    21469 echo "${ECHO_T}no" >&6
    21470                          SAVE_LIBS="$LIBS"
    21471 fi
    21472 rm -f conftest.err conftest.$ac_objext \
    21473       conftest$ac_exeext conftest.$ac_ext
    21474     ;;
    21475   c)
    21476     ac_ext=f
    21477 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21478 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21479 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21480 case $ac_cv_f77_mangling in
    21481   upper*) ac_val="DAXPY" ;;
    21482   lower*) ac_val="daxpy" ;;
    21483   *)      ac_val="unknown" ;;
    21484 esac
    21485 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21486 
    21487 cfuncdaxpy="$ac_val"
    21488 
    21489 ac_ext=c
    21490 ac_cpp='$CPP $CPPFLAGS'
    21491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21494 
    21495     if test x"$coin_need_flibs" = xyes; then
    21496       flink_try=no;
    21497     else
    21498       cat >conftest.$ac_ext <<_ACEOF
    21499 /* confdefs.h.  */
    21500 _ACEOF
    21501 cat confdefs.h >>conftest.$ac_ext
    21502 cat >>conftest.$ac_ext <<_ACEOF
    21503 /* end confdefs.h.  */
    21504 void $cfuncdaxpy();
    21505 #ifdef F77_DUMMY_MAIN
    21506 
    21507 #  ifdef __cplusplus
    21508      extern "C"
    21509 #  endif
    21510    int F77_DUMMY_MAIN() { return 1; }
    21511 
    21512 #endif
    21513 int
    21514 main ()
    21515 {
    21516 $cfuncdaxpy()
    21517   ;
    21518   return 0;
    21519 }
    21520 _ACEOF
    21521 rm -f conftest.$ac_objext conftest$ac_exeext
    21522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21523   (eval $ac_link) 2>conftest.er1
    21524   ac_status=$?
    21525   grep -v '^ *+' conftest.er1 >conftest.err
    21526   rm -f conftest.er1
    21527   cat conftest.err >&5
    21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21529   (exit $ac_status); } &&
    21530          { ac_try='test -z "$ac_c_werror_flag"
    21531                          || test ! -s conftest.err'
    21532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21533   (eval $ac_try) 2>&5
    21534   ac_status=$?
    21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21536   (exit $ac_status); }; } &&
    21537          { ac_try='test -s conftest$ac_exeext'
    21538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21539   (eval $ac_try) 2>&5
    21540   ac_status=$?
    21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21542   (exit $ac_status); }; }; then
    21543   flink_try=yes
    21544 else
    21545   echo "$as_me: failed program was:" >&5
    21546 sed 's/^/| /' conftest.$ac_ext >&5
    21547 
    21548 flink_try=no
    21549 fi
    21550 rm -f conftest.err conftest.$ac_objext \
    21551       conftest$ac_exeext conftest.$ac_ext
    21552     fi
    21553     if test $flink_try = yes; then
    21554       echo "$as_me:$LINENO: result: yes" >&5
    21555 echo "${ECHO_T}yes" >&6
    21556                          use_blas=-lcomplib.sgimath;
    21557                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21558     else
    21559       if test x"$FLIBS" != x; then
    21560         flink_save_libs="$LIBS"
    21561         LIBS="$LIBS $FLIBS"
    21562         cat >conftest.$ac_ext <<_ACEOF
    21563 /* confdefs.h.  */
    21564 _ACEOF
    21565 cat confdefs.h >>conftest.$ac_ext
    21566 cat >>conftest.$ac_ext <<_ACEOF
    21567 /* end confdefs.h.  */
    21568 void $cfuncdaxpy();
    21569 #ifdef F77_DUMMY_MAIN
    21570 
    21571 #  ifdef __cplusplus
    21572      extern "C"
    21573 #  endif
    21574    int F77_DUMMY_MAIN() { return 1; }
    21575 
    21576 #endif
    21577 int
    21578 main ()
    21579 {
    21580 $cfuncdaxpy()
    21581   ;
    21582   return 0;
    21583 }
    21584 _ACEOF
    21585 rm -f conftest.$ac_objext conftest$ac_exeext
    21586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21587   (eval $ac_link) 2>conftest.er1
    21588   ac_status=$?
    21589   grep -v '^ *+' conftest.er1 >conftest.err
    21590   rm -f conftest.er1
    21591   cat conftest.err >&5
    21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21593   (exit $ac_status); } &&
    21594          { ac_try='test -z "$ac_c_werror_flag"
    21595                          || test ! -s conftest.err'
    21596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21597   (eval $ac_try) 2>&5
    21598   ac_status=$?
    21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21600   (exit $ac_status); }; } &&
    21601          { ac_try='test -s conftest$ac_exeext'
    21602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21603   (eval $ac_try) 2>&5
    21604   ac_status=$?
    21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21606   (exit $ac_status); }; }; then
    21607   LIBS="$flink_save_libs"
    21608                      echo "$as_me:$LINENO: result: yes" >&5
    21609 echo "${ECHO_T}yes" >&6
    21610                          use_blas=-lcomplib.sgimath;
    21611                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21612                      coin_need_flibs=yes
    21613 else
    21614   echo "$as_me: failed program was:" >&5
    21615 sed 's/^/| /' conftest.$ac_ext >&5
    21616 
    21617 LIBS="$flink_save_libs"
    21618                      echo "$as_me:$LINENO: result: no" >&5
    21619 echo "${ECHO_T}no" >&6
    21620                          SAVE_LIBS="$LIBS"
    21621 fi
    21622 rm -f conftest.err conftest.$ac_objext \
    21623       conftest$ac_exeext conftest.$ac_ext
    21624       else
    21625         echo "$as_me:$LINENO: result: no" >&5
    21626 echo "${ECHO_T}no" >&6
    21627                          SAVE_LIBS="$LIBS"
    21628       fi
    21629     fi
    21630     ;;
    21631   cc|cpp)
    21632     ac_ext=f
    21633 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21634 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21635 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21636 case $ac_cv_f77_mangling in
    21637   upper*) ac_val="DAXPY" ;;
    21638   lower*) ac_val="daxpy" ;;
    21639   *)      ac_val="unknown" ;;
    21640 esac
    21641 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21642 
    21643 cfuncdaxpy="$ac_val"
    21644 
    21645 ac_ext=c
    21646 ac_cpp='$CPP $CPPFLAGS'
    21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21650 
    21651     if test x"$coin_need_flibs" = xyes; then
    21652       flink_try=no;
    21653     else
    21654       cat >conftest.$ac_ext <<_ACEOF
    21655 /* confdefs.h.  */
    21656 _ACEOF
    21657 cat confdefs.h >>conftest.$ac_ext
    21658 cat >>conftest.$ac_ext <<_ACEOF
    21659 /* end confdefs.h.  */
    21660 extern "C" {void $cfuncdaxpy();}
    21661 #ifdef F77_DUMMY_MAIN
    21662 
    21663 #  ifdef __cplusplus
    21664      extern "C"
    21665 #  endif
    21666    int F77_DUMMY_MAIN() { return 1; }
    21667 
    21668 #endif
    21669 int
    21670 main ()
    21671 {
    21672 $cfuncdaxpy()
    21673   ;
    21674   return 0;
    21675 }
    21676 _ACEOF
    21677 rm -f conftest.$ac_objext conftest$ac_exeext
    21678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21679   (eval $ac_link) 2>conftest.er1
    21680   ac_status=$?
    21681   grep -v '^ *+' conftest.er1 >conftest.err
    21682   rm -f conftest.er1
    21683   cat conftest.err >&5
    21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21685   (exit $ac_status); } &&
    21686          { ac_try='test -z "$ac_c_werror_flag"
    21687                          || test ! -s conftest.err'
    21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21689   (eval $ac_try) 2>&5
    21690   ac_status=$?
    21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21692   (exit $ac_status); }; } &&
    21693          { ac_try='test -s conftest$ac_exeext'
    21694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21695   (eval $ac_try) 2>&5
    21696   ac_status=$?
    21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21698   (exit $ac_status); }; }; then
    21699   flink_try=yes
    21700 else
    21701   echo "$as_me: failed program was:" >&5
    21702 sed 's/^/| /' conftest.$ac_ext >&5
    21703 
    21704 flink_try=no
    21705 fi
    21706 rm -f conftest.err conftest.$ac_objext \
    21707       conftest$ac_exeext conftest.$ac_ext
    21708     fi
    21709     if test $flink_try = yes; then
    21710       echo "$as_me:$LINENO: result: yes" >&5
    21711 echo "${ECHO_T}yes" >&6
    21712                          use_blas=-lcomplib.sgimath;
    21713                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21714     else
    21715       if test x"$FLIBS" != x; then
    21716         flink_save_libs="$LIBS"
    21717         LIBS="$LIBS $FLIBS"
    21718         cat >conftest.$ac_ext <<_ACEOF
    21719 /* confdefs.h.  */
    21720 _ACEOF
    21721 cat confdefs.h >>conftest.$ac_ext
    21722 cat >>conftest.$ac_ext <<_ACEOF
    21723 /* end confdefs.h.  */
    21724 extern "C" {void $cfuncdaxpy();}
    21725 #ifdef F77_DUMMY_MAIN
    21726 
    21727 #  ifdef __cplusplus
    21728      extern "C"
    21729 #  endif
    21730    int F77_DUMMY_MAIN() { return 1; }
    21731 
    21732 #endif
    21733 int
    21734 main ()
    21735 {
    21736 $cfuncdaxpy()
    21737   ;
    21738   return 0;
    21739 }
    21740 _ACEOF
    21741 rm -f conftest.$ac_objext conftest$ac_exeext
    21742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21743   (eval $ac_link) 2>conftest.er1
    21744   ac_status=$?
    21745   grep -v '^ *+' conftest.er1 >conftest.err
    21746   rm -f conftest.er1
    21747   cat conftest.err >&5
    21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21749   (exit $ac_status); } &&
    21750          { ac_try='test -z "$ac_c_werror_flag"
    21751                          || test ! -s conftest.err'
    21752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21753   (eval $ac_try) 2>&5
    21754   ac_status=$?
    21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21756   (exit $ac_status); }; } &&
    21757          { ac_try='test -s conftest$ac_exeext'
    21758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21759   (eval $ac_try) 2>&5
    21760   ac_status=$?
    21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21762   (exit $ac_status); }; }; then
    21763   LIBS="$flink_save_libs"
    21764                      echo "$as_me:$LINENO: result: yes" >&5
    21765 echo "${ECHO_T}yes" >&6
    21766                          use_blas=-lcomplib.sgimath;
    21767                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21768                      coin_need_flibs=yes
    21769 else
    21770   echo "$as_me: failed program was:" >&5
    21771 sed 's/^/| /' conftest.$ac_ext >&5
    21772 
    21773 LIBS="$flink_save_libs"
    21774                      echo "$as_me:$LINENO: result: no" >&5
    21775 echo "${ECHO_T}no" >&6
    21776                          SAVE_LIBS="$LIBS"
    21777 fi
    21778 rm -f conftest.err conftest.$ac_objext \
    21779       conftest$ac_exeext conftest.$ac_ext
    21780       else
    21781         echo "$as_me:$LINENO: result: no" >&5
    21782 echo "${ECHO_T}no" >&6
    21783                          SAVE_LIBS="$LIBS"
    21784       fi
    21785     fi
    21786     ;;
    21787 esac
    21788 
    21789       ;;
    21790 
    21791 # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
    21792 # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
    21793 # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
    21794 # that CC and cc will understand -library in Studio 13. The main extra
    21795 # function of -xlic_lib and -library is to arrange for the Fortran run-time
    21796 # libraries to be linked for C++ and C. We can arrange that explicitly.
    21797     *-*-solaris*)
    21798       SAVE_LIBS="$LIBS"
    21799       echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
    21800 echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
    21801       LIBS="-lsunperf $FLIBS $LIBS"
    21802       case $ac_ext in
    21803   f)
    21804     cat >conftest.$ac_ext <<_ACEOF
    21805 /* confdefs.h.  */
    21806 _ACEOF
    21807 cat confdefs.h >>conftest.$ac_ext
    21808 cat >>conftest.$ac_ext <<_ACEOF
    21809 /* end confdefs.h.  */
    21810 
    21811 #ifdef F77_DUMMY_MAIN
    21812 
    21813 #  ifdef __cplusplus
    21814      extern "C"
    21815 #  endif
    21816    int F77_DUMMY_MAIN() { return 1; }
    21817 
    21818 #endif
    21819 int
    21820 main ()
    21821 {
    21822       call daxpy
    21823   ;
    21824   return 0;
    21825 }
    21826 _ACEOF
    21827 rm -f conftest.$ac_objext conftest$ac_exeext
    21828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21829   (eval $ac_link) 2>conftest.er1
    21830   ac_status=$?
    21831   grep -v '^ *+' conftest.er1 >conftest.err
    21832   rm -f conftest.er1
    21833   cat conftest.err >&5
    21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21835   (exit $ac_status); } &&
    21836          { ac_try='test -z "$ac_c_werror_flag"
    21837                          || test ! -s conftest.err'
    21838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21839   (eval $ac_try) 2>&5
    21840   ac_status=$?
    21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21842   (exit $ac_status); }; } &&
    21843          { ac_try='test -s conftest$ac_exeext'
    21844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21845   (eval $ac_try) 2>&5
    21846   ac_status=$?
    21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21848   (exit $ac_status); }; }; then
    21849   echo "$as_me:$LINENO: result: yes" >&5
    21850 echo "${ECHO_T}yes" >&6
    21851                          use_blas='-lsunperf'
    21852                          ADDLIBS="-lsunperf $ADDLIBS"
    21853                          coin_need_flibs=yes
    21854 else
    21855   echo "$as_me: failed program was:" >&5
    21856 sed 's/^/| /' conftest.$ac_ext >&5
    21857 
    21858 echo "$as_me:$LINENO: result: no" >&5
    21859 echo "${ECHO_T}no" >&6
    21860                          LIBS="$SAVE_LIBS"
    21861 fi
    21862 rm -f conftest.err conftest.$ac_objext \
    21863       conftest$ac_exeext conftest.$ac_ext
    21864     ;;
    21865   c)
    21866     ac_ext=f
    21867 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21868 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21869 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21870 case $ac_cv_f77_mangling in
    21871   upper*) ac_val="DAXPY" ;;
    21872   lower*) ac_val="daxpy" ;;
    21873   *)      ac_val="unknown" ;;
    21874 esac
    21875 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21876 
    21877 cfuncdaxpy="$ac_val"
    21878 
    21879 ac_ext=c
    21880 ac_cpp='$CPP $CPPFLAGS'
    21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21884 
    21885     if test x"$coin_need_flibs" = xyes; then
    21886       flink_try=no;
    21887     else
    21888       cat >conftest.$ac_ext <<_ACEOF
    21889 /* confdefs.h.  */
    21890 _ACEOF
    21891 cat confdefs.h >>conftest.$ac_ext
    21892 cat >>conftest.$ac_ext <<_ACEOF
    21893 /* end confdefs.h.  */
    21894 void $cfuncdaxpy();
    21895 #ifdef F77_DUMMY_MAIN
    21896 
    21897 #  ifdef __cplusplus
    21898      extern "C"
    21899 #  endif
    21900    int F77_DUMMY_MAIN() { return 1; }
    21901 
    21902 #endif
    21903 int
    21904 main ()
    21905 {
    21906 $cfuncdaxpy()
    21907   ;
    21908   return 0;
    21909 }
    21910 _ACEOF
    21911 rm -f conftest.$ac_objext conftest$ac_exeext
    21912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21913   (eval $ac_link) 2>conftest.er1
    21914   ac_status=$?
    21915   grep -v '^ *+' conftest.er1 >conftest.err
    21916   rm -f conftest.er1
    21917   cat conftest.err >&5
    21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21919   (exit $ac_status); } &&
    21920          { ac_try='test -z "$ac_c_werror_flag"
    21921                          || test ! -s conftest.err'
    21922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21923   (eval $ac_try) 2>&5
    21924   ac_status=$?
    21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21926   (exit $ac_status); }; } &&
    21927          { ac_try='test -s conftest$ac_exeext'
    21928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21929   (eval $ac_try) 2>&5
    21930   ac_status=$?
    21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21932   (exit $ac_status); }; }; then
    21933   flink_try=yes
    21934 else
    21935   echo "$as_me: failed program was:" >&5
    21936 sed 's/^/| /' conftest.$ac_ext >&5
    21937 
    21938 flink_try=no
    21939 fi
    21940 rm -f conftest.err conftest.$ac_objext \
    21941       conftest$ac_exeext conftest.$ac_ext
    21942     fi
    21943     if test $flink_try = yes; then
    21944       echo "$as_me:$LINENO: result: yes" >&5
    21945 echo "${ECHO_T}yes" >&6
    21946                          use_blas='-lsunperf'
    21947                          ADDLIBS="-lsunperf $ADDLIBS"
    21948                          coin_need_flibs=yes
    21949     else
    21950       if test x"$FLIBS" != x; then
    21951         flink_save_libs="$LIBS"
    21952         LIBS="$LIBS $FLIBS"
    21953         cat >conftest.$ac_ext <<_ACEOF
    21954 /* confdefs.h.  */
    21955 _ACEOF
    21956 cat confdefs.h >>conftest.$ac_ext
    21957 cat >>conftest.$ac_ext <<_ACEOF
    21958 /* end confdefs.h.  */
    21959 void $cfuncdaxpy();
    21960 #ifdef F77_DUMMY_MAIN
    21961 
    21962 #  ifdef __cplusplus
    21963      extern "C"
    21964 #  endif
    21965    int F77_DUMMY_MAIN() { return 1; }
    21966 
    21967 #endif
    21968 int
    21969 main ()
    21970 {
    21971 $cfuncdaxpy()
    21972   ;
    21973   return 0;
    21974 }
    21975 _ACEOF
    21976 rm -f conftest.$ac_objext conftest$ac_exeext
    21977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21978   (eval $ac_link) 2>conftest.er1
    21979   ac_status=$?
    21980   grep -v '^ *+' conftest.er1 >conftest.err
    21981   rm -f conftest.er1
    21982   cat conftest.err >&5
    21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21984   (exit $ac_status); } &&
    21985          { ac_try='test -z "$ac_c_werror_flag"
    21986                          || test ! -s conftest.err'
    21987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21988   (eval $ac_try) 2>&5
    21989   ac_status=$?
    21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21991   (exit $ac_status); }; } &&
    21992          { ac_try='test -s conftest$ac_exeext'
    21993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21994   (eval $ac_try) 2>&5
    21995   ac_status=$?
    21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21997   (exit $ac_status); }; }; then
    21998   LIBS="$flink_save_libs"
    21999                      echo "$as_me:$LINENO: result: yes" >&5
    22000 echo "${ECHO_T}yes" >&6
    22001                          use_blas='-lsunperf'
    22002                          ADDLIBS="-lsunperf $ADDLIBS"
    22003                          coin_need_flibs=yes
    22004                      coin_need_flibs=yes
    22005 else
    22006   echo "$as_me: failed program was:" >&5
    22007 sed 's/^/| /' conftest.$ac_ext >&5
    22008 
    22009 LIBS="$flink_save_libs"
    22010                      echo "$as_me:$LINENO: result: no" >&5
    22011 echo "${ECHO_T}no" >&6
    22012                          LIBS="$SAVE_LIBS"
    22013 fi
    22014 rm -f conftest.err conftest.$ac_objext \
    22015       conftest$ac_exeext conftest.$ac_ext
    22016       else
    22017         echo "$as_me:$LINENO: result: no" >&5
    22018 echo "${ECHO_T}no" >&6
    22019                          LIBS="$SAVE_LIBS"
    22020       fi
    22021     fi
    22022     ;;
    22023   cc|cpp)
    22024     ac_ext=f
    22025 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22026 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22027 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22028 case $ac_cv_f77_mangling in
    22029   upper*) ac_val="DAXPY" ;;
    22030   lower*) ac_val="daxpy" ;;
    22031   *)      ac_val="unknown" ;;
    22032 esac
    22033 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22034 
    22035 cfuncdaxpy="$ac_val"
    22036 
    22037 ac_ext=c
    22038 ac_cpp='$CPP $CPPFLAGS'
    22039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22042 
    22043     if test x"$coin_need_flibs" = xyes; then
    22044       flink_try=no;
    22045     else
    22046       cat >conftest.$ac_ext <<_ACEOF
    22047 /* confdefs.h.  */
    22048 _ACEOF
    22049 cat confdefs.h >>conftest.$ac_ext
    22050 cat >>conftest.$ac_ext <<_ACEOF
    22051 /* end confdefs.h.  */
    22052 extern "C" {void $cfuncdaxpy();}
    22053 #ifdef F77_DUMMY_MAIN
    22054 
    22055 #  ifdef __cplusplus
    22056      extern "C"
    22057 #  endif
    22058    int F77_DUMMY_MAIN() { return 1; }
    22059 
    22060 #endif
    22061 int
    22062 main ()
    22063 {
    22064 $cfuncdaxpy()
    22065   ;
    22066   return 0;
    22067 }
    22068 _ACEOF
    22069 rm -f conftest.$ac_objext conftest$ac_exeext
    22070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22071   (eval $ac_link) 2>conftest.er1
    22072   ac_status=$?
    22073   grep -v '^ *+' conftest.er1 >conftest.err
    22074   rm -f conftest.er1
    22075   cat conftest.err >&5
    22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22077   (exit $ac_status); } &&
    22078          { ac_try='test -z "$ac_c_werror_flag"
    22079                          || test ! -s conftest.err'
    22080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22081   (eval $ac_try) 2>&5
    22082   ac_status=$?
    22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22084   (exit $ac_status); }; } &&
    22085          { ac_try='test -s conftest$ac_exeext'
    22086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22087   (eval $ac_try) 2>&5
    22088   ac_status=$?
    22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22090   (exit $ac_status); }; }; then
    22091   flink_try=yes
    22092 else
    22093   echo "$as_me: failed program was:" >&5
    22094 sed 's/^/| /' conftest.$ac_ext >&5
    22095 
    22096 flink_try=no
    22097 fi
    22098 rm -f conftest.err conftest.$ac_objext \
    22099       conftest$ac_exeext conftest.$ac_ext
    22100     fi
    22101     if test $flink_try = yes; then
    22102       echo "$as_me:$LINENO: result: yes" >&5
    22103 echo "${ECHO_T}yes" >&6
    22104                          use_blas='-lsunperf'
    22105                          ADDLIBS="-lsunperf $ADDLIBS"
    22106                          coin_need_flibs=yes
    22107     else
    22108       if test x"$FLIBS" != x; then
    22109         flink_save_libs="$LIBS"
    22110         LIBS="$LIBS $FLIBS"
    22111         cat >conftest.$ac_ext <<_ACEOF
    22112 /* confdefs.h.  */
    22113 _ACEOF
    22114 cat confdefs.h >>conftest.$ac_ext
    22115 cat >>conftest.$ac_ext <<_ACEOF
    22116 /* end confdefs.h.  */
    22117 extern "C" {void $cfuncdaxpy();}
    22118 #ifdef F77_DUMMY_MAIN
    22119 
    22120 #  ifdef __cplusplus
    22121      extern "C"
    22122 #  endif
    22123    int F77_DUMMY_MAIN() { return 1; }
    22124 
    22125 #endif
    22126 int
    22127 main ()
    22128 {
    22129 $cfuncdaxpy()
    22130   ;
    22131   return 0;
    22132 }
    22133 _ACEOF
    22134 rm -f conftest.$ac_objext conftest$ac_exeext
    22135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22136   (eval $ac_link) 2>conftest.er1
    22137   ac_status=$?
    22138   grep -v '^ *+' conftest.er1 >conftest.err
    22139   rm -f conftest.er1
    22140   cat conftest.err >&5
    22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22142   (exit $ac_status); } &&
    22143          { ac_try='test -z "$ac_c_werror_flag"
    22144                          || test ! -s conftest.err'
    22145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22146   (eval $ac_try) 2>&5
    22147   ac_status=$?
    22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22149   (exit $ac_status); }; } &&
    22150          { ac_try='test -s conftest$ac_exeext'
    22151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22152   (eval $ac_try) 2>&5
    22153   ac_status=$?
    22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22155   (exit $ac_status); }; }; then
    22156   LIBS="$flink_save_libs"
    22157                      echo "$as_me:$LINENO: result: yes" >&5
    22158 echo "${ECHO_T}yes" >&6
    22159                          use_blas='-lsunperf'
    22160                          ADDLIBS="-lsunperf $ADDLIBS"
    22161                          coin_need_flibs=yes
    22162                      coin_need_flibs=yes
    22163 else
    22164   echo "$as_me: failed program was:" >&5
    22165 sed 's/^/| /' conftest.$ac_ext >&5
    22166 
    22167 LIBS="$flink_save_libs"
    22168                      echo "$as_me:$LINENO: result: no" >&5
    22169 echo "${ECHO_T}no" >&6
    22170                          LIBS="$SAVE_LIBS"
    22171 fi
    22172 rm -f conftest.err conftest.$ac_objext \
    22173       conftest$ac_exeext conftest.$ac_ext
    22174       else
    22175         echo "$as_me:$LINENO: result: no" >&5
    22176 echo "${ECHO_T}no" >&6
    22177                          LIBS="$SAVE_LIBS"
    22178       fi
    22179     fi
    22180     ;;
    22181 esac
    22182 
    22183       ;;
    22184     *-cygwin* | *-mingw*)
    22185 # On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
    22186 # library will want to link with cygwin, hence won't run standalone in DOS.
    22187       if test "$enable_doscompile" = mingw; then
    22188         skip_lblas_check=yes
    22189       fi
    22190       case "$CC" in
    22191         cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    22192           SAVE_LIBS="$LIBS"
    22193           echo "$as_me:$LINENO: checking for BLAS in MKL" >&5
    22194 echo $ECHO_N "checking for BLAS in MKL... $ECHO_C" >&6
    22195           LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
    22196           case $ac_ext in
    22197   f)
    22198     cat >conftest.$ac_ext <<_ACEOF
    22199 /* confdefs.h.  */
    22200 _ACEOF
    22201 cat confdefs.h >>conftest.$ac_ext
    22202 cat >>conftest.$ac_ext <<_ACEOF
    22203 /* end confdefs.h.  */
    22204 
    22205 #ifdef F77_DUMMY_MAIN
    22206 
    22207 #  ifdef __cplusplus
    22208      extern "C"
    22209 #  endif
    22210    int F77_DUMMY_MAIN() { return 1; }
    22211 
    22212 #endif
    22213 int
    22214 main ()
    22215 {
    22216       call daxpy
    22217   ;
    22218   return 0;
    22219 }
    22220 _ACEOF
    22221 rm -f conftest.$ac_objext conftest$ac_exeext
    22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22223   (eval $ac_link) 2>conftest.er1
    22224   ac_status=$?
    22225   grep -v '^ *+' conftest.er1 >conftest.err
    22226   rm -f conftest.er1
    22227   cat conftest.err >&5
    22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22229   (exit $ac_status); } &&
    22230          { ac_try='test -z "$ac_c_werror_flag"
    22231                          || test ! -s conftest.err'
    22232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22233   (eval $ac_try) 2>&5
    22234   ac_status=$?
    22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22236   (exit $ac_status); }; } &&
    22237          { ac_try='test -s conftest$ac_exeext'
    22238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22239   (eval $ac_try) 2>&5
    22240   ac_status=$?
    22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22242   (exit $ac_status); }; }; then
    22243   echo "$as_me:$LINENO: result: yes" >&5
    22244 echo "${ECHO_T}yes" >&6
    22245                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22246                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22247 else
    22248   echo "$as_me: failed program was:" >&5
    22249 sed 's/^/| /' conftest.$ac_ext >&5
    22250 
    22251 echo "$as_me:$LINENO: result: no" >&5
    22252 echo "${ECHO_T}no" >&6
    22253                              LIBS="$SAVE_LIBS"
    22254 fi
    22255 rm -f conftest.err conftest.$ac_objext \
    22256       conftest$ac_exeext conftest.$ac_ext
    22257     ;;
    22258   c)
    22259     ac_ext=f
    22260 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22261 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22262 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22263 case $ac_cv_f77_mangling in
    22264   upper*) ac_val="DAXPY" ;;
    22265   lower*) ac_val="daxpy" ;;
    22266   *)      ac_val="unknown" ;;
    22267 esac
    22268 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22269 
    22270 cfuncdaxpy="$ac_val"
    22271 
    22272 ac_ext=c
    22273 ac_cpp='$CPP $CPPFLAGS'
    22274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22277 
    22278     if test x"$coin_need_flibs" = xyes; then
    22279       flink_try=no;
    22280     else
    22281       cat >conftest.$ac_ext <<_ACEOF
    22282 /* confdefs.h.  */
    22283 _ACEOF
    22284 cat confdefs.h >>conftest.$ac_ext
    22285 cat >>conftest.$ac_ext <<_ACEOF
    22286 /* end confdefs.h.  */
    22287 void $cfuncdaxpy();
    22288 #ifdef F77_DUMMY_MAIN
    22289 
    22290 #  ifdef __cplusplus
    22291      extern "C"
    22292 #  endif
    22293    int F77_DUMMY_MAIN() { return 1; }
    22294 
    22295 #endif
    22296 int
    22297 main ()
    22298 {
    22299 $cfuncdaxpy()
    22300   ;
    22301   return 0;
    22302 }
    22303 _ACEOF
    22304 rm -f conftest.$ac_objext conftest$ac_exeext
    22305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22306   (eval $ac_link) 2>conftest.er1
    22307   ac_status=$?
    22308   grep -v '^ *+' conftest.er1 >conftest.err
    22309   rm -f conftest.er1
    22310   cat conftest.err >&5
    22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22312   (exit $ac_status); } &&
    22313          { ac_try='test -z "$ac_c_werror_flag"
    22314                          || test ! -s conftest.err'
    22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22316   (eval $ac_try) 2>&5
    22317   ac_status=$?
    22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22319   (exit $ac_status); }; } &&
    22320          { ac_try='test -s conftest$ac_exeext'
    22321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22322   (eval $ac_try) 2>&5
    22323   ac_status=$?
    22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22325   (exit $ac_status); }; }; then
    22326   flink_try=yes
    22327 else
    22328   echo "$as_me: failed program was:" >&5
    22329 sed 's/^/| /' conftest.$ac_ext >&5
    22330 
    22331 flink_try=no
    22332 fi
    22333 rm -f conftest.err conftest.$ac_objext \
    22334       conftest$ac_exeext conftest.$ac_ext
    22335     fi
    22336     if test $flink_try = yes; then
    22337       echo "$as_me:$LINENO: result: yes" >&5
    22338 echo "${ECHO_T}yes" >&6
    22339                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22340                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22341     else
    22342       if test x"$FLIBS" != x; then
    22343         flink_save_libs="$LIBS"
    22344         LIBS="$LIBS $FLIBS"
    22345         cat >conftest.$ac_ext <<_ACEOF
    22346 /* confdefs.h.  */
    22347 _ACEOF
    22348 cat confdefs.h >>conftest.$ac_ext
    22349 cat >>conftest.$ac_ext <<_ACEOF
    22350 /* end confdefs.h.  */
    22351 void $cfuncdaxpy();
    22352 #ifdef F77_DUMMY_MAIN
    22353 
    22354 #  ifdef __cplusplus
    22355      extern "C"
    22356 #  endif
    22357    int F77_DUMMY_MAIN() { return 1; }
    22358 
    22359 #endif
    22360 int
    22361 main ()
    22362 {
    22363 $cfuncdaxpy()
    22364   ;
    22365   return 0;
    22366 }
    22367 _ACEOF
    22368 rm -f conftest.$ac_objext conftest$ac_exeext
    22369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22370   (eval $ac_link) 2>conftest.er1
    22371   ac_status=$?
    22372   grep -v '^ *+' conftest.er1 >conftest.err
    22373   rm -f conftest.er1
    22374   cat conftest.err >&5
    22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22376   (exit $ac_status); } &&
    22377          { ac_try='test -z "$ac_c_werror_flag"
    22378                          || test ! -s conftest.err'
    22379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22380   (eval $ac_try) 2>&5
    22381   ac_status=$?
    22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22383   (exit $ac_status); }; } &&
    22384          { ac_try='test -s conftest$ac_exeext'
    22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22386   (eval $ac_try) 2>&5
    22387   ac_status=$?
    22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22389   (exit $ac_status); }; }; then
    22390   LIBS="$flink_save_libs"
    22391                      echo "$as_me:$LINENO: result: yes" >&5
    22392 echo "${ECHO_T}yes" >&6
    22393                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22394                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22395                      coin_need_flibs=yes
    22396 else
    22397   echo "$as_me: failed program was:" >&5
    22398 sed 's/^/| /' conftest.$ac_ext >&5
    22399 
    22400 LIBS="$flink_save_libs"
    22401                      echo "$as_me:$LINENO: result: no" >&5
    22402 echo "${ECHO_T}no" >&6
    22403                              LIBS="$SAVE_LIBS"
    22404 fi
    22405 rm -f conftest.err conftest.$ac_objext \
    22406       conftest$ac_exeext conftest.$ac_ext
    22407       else
    22408         echo "$as_me:$LINENO: result: no" >&5
    22409 echo "${ECHO_T}no" >&6
    22410                              LIBS="$SAVE_LIBS"
    22411       fi
    22412     fi
    22413     ;;
    22414   cc|cpp)
    22415     ac_ext=f
    22416 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22417 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22418 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22419 case $ac_cv_f77_mangling in
    22420   upper*) ac_val="DAXPY" ;;
    22421   lower*) ac_val="daxpy" ;;
    22422   *)      ac_val="unknown" ;;
    22423 esac
    22424 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22425 
    22426 cfuncdaxpy="$ac_val"
    22427 
    22428 ac_ext=c
    22429 ac_cpp='$CPP $CPPFLAGS'
    22430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22433 
    22434     if test x"$coin_need_flibs" = xyes; then
    22435       flink_try=no;
    22436     else
    22437       cat >conftest.$ac_ext <<_ACEOF
    22438 /* confdefs.h.  */
    22439 _ACEOF
    22440 cat confdefs.h >>conftest.$ac_ext
    22441 cat >>conftest.$ac_ext <<_ACEOF
    22442 /* end confdefs.h.  */
    22443 extern "C" {void $cfuncdaxpy();}
    22444 #ifdef F77_DUMMY_MAIN
    22445 
    22446 #  ifdef __cplusplus
    22447      extern "C"
    22448 #  endif
    22449    int F77_DUMMY_MAIN() { return 1; }
    22450 
    22451 #endif
    22452 int
    22453 main ()
    22454 {
    22455 $cfuncdaxpy()
    22456   ;
    22457   return 0;
    22458 }
    22459 _ACEOF
    22460 rm -f conftest.$ac_objext conftest$ac_exeext
    22461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22462   (eval $ac_link) 2>conftest.er1
    22463   ac_status=$?
    22464   grep -v '^ *+' conftest.er1 >conftest.err
    22465   rm -f conftest.er1
    22466   cat conftest.err >&5
    22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22468   (exit $ac_status); } &&
    22469          { ac_try='test -z "$ac_c_werror_flag"
    22470                          || test ! -s conftest.err'
    22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22472   (eval $ac_try) 2>&5
    22473   ac_status=$?
    22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22475   (exit $ac_status); }; } &&
    22476          { ac_try='test -s conftest$ac_exeext'
    22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22478   (eval $ac_try) 2>&5
    22479   ac_status=$?
    22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22481   (exit $ac_status); }; }; then
    22482   flink_try=yes
    22483 else
    22484   echo "$as_me: failed program was:" >&5
    22485 sed 's/^/| /' conftest.$ac_ext >&5
    22486 
    22487 flink_try=no
    22488 fi
    22489 rm -f conftest.err conftest.$ac_objext \
    22490       conftest$ac_exeext conftest.$ac_ext
    22491     fi
    22492     if test $flink_try = yes; then
    22493       echo "$as_me:$LINENO: result: yes" >&5
    22494 echo "${ECHO_T}yes" >&6
    22495                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22496                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22497     else
    22498       if test x"$FLIBS" != x; then
    22499         flink_save_libs="$LIBS"
    22500         LIBS="$LIBS $FLIBS"
    22501         cat >conftest.$ac_ext <<_ACEOF
    22502 /* confdefs.h.  */
    22503 _ACEOF
    22504 cat confdefs.h >>conftest.$ac_ext
    22505 cat >>conftest.$ac_ext <<_ACEOF
    22506 /* end confdefs.h.  */
    22507 extern "C" {void $cfuncdaxpy();}
    22508 #ifdef F77_DUMMY_MAIN
    22509 
    22510 #  ifdef __cplusplus
    22511      extern "C"
    22512 #  endif
    22513    int F77_DUMMY_MAIN() { return 1; }
    22514 
    22515 #endif
    22516 int
    22517 main ()
    22518 {
    22519 $cfuncdaxpy()
    22520   ;
    22521   return 0;
    22522 }
    22523 _ACEOF
    22524 rm -f conftest.$ac_objext conftest$ac_exeext
    22525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22526   (eval $ac_link) 2>conftest.er1
    22527   ac_status=$?
    22528   grep -v '^ *+' conftest.er1 >conftest.err
    22529   rm -f conftest.er1
    22530   cat conftest.err >&5
    22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22532   (exit $ac_status); } &&
    22533          { ac_try='test -z "$ac_c_werror_flag"
    22534                          || test ! -s conftest.err'
    22535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22536   (eval $ac_try) 2>&5
    22537   ac_status=$?
    22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22539   (exit $ac_status); }; } &&
    22540          { ac_try='test -s conftest$ac_exeext'
    22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22542   (eval $ac_try) 2>&5
    22543   ac_status=$?
    22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22545   (exit $ac_status); }; }; then
    22546   LIBS="$flink_save_libs"
    22547                      echo "$as_me:$LINENO: result: yes" >&5
    22548 echo "${ECHO_T}yes" >&6
    22549                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22550                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22551                      coin_need_flibs=yes
    22552 else
    22553   echo "$as_me: failed program was:" >&5
    22554 sed 's/^/| /' conftest.$ac_ext >&5
    22555 
    22556 LIBS="$flink_save_libs"
    22557                      echo "$as_me:$LINENO: result: no" >&5
    22558 echo "${ECHO_T}no" >&6
    22559                              LIBS="$SAVE_LIBS"
    22560 fi
    22561 rm -f conftest.err conftest.$ac_objext \
    22562       conftest$ac_exeext conftest.$ac_ext
    22563       else
    22564         echo "$as_me:$LINENO: result: no" >&5
    22565 echo "${ECHO_T}no" >&6
    22566                              LIBS="$SAVE_LIBS"
    22567       fi
    22568     fi
    22569     ;;
    22570 esac
    22571 
    22572           ;;
    22573       esac
    22574       ;;
    22575   esac
    22576 
    22577   if test -z "$use_blas" && test $skip_lblas_check = no; then
    22578     SAVE_LIBS="$LIBS"
    22579     echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
    22580 echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
    22581     LIBS="-lblas $LIBS"
    22582     case $ac_ext in
    22583   f)
    22584     cat >conftest.$ac_ext <<_ACEOF
    22585 /* confdefs.h.  */
    22586 _ACEOF
    22587 cat confdefs.h >>conftest.$ac_ext
    22588 cat >>conftest.$ac_ext <<_ACEOF
    22589 /* end confdefs.h.  */
    22590 
    22591 #ifdef F77_DUMMY_MAIN
    22592 
    22593 #  ifdef __cplusplus
    22594      extern "C"
    22595 #  endif
    22596    int F77_DUMMY_MAIN() { return 1; }
    22597 
    22598 #endif
    22599 int
    22600 main ()
    22601 {
    22602       call daxpy
    22603   ;
    22604   return 0;
    22605 }
    22606 _ACEOF
    22607 rm -f conftest.$ac_objext conftest$ac_exeext
    22608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22609   (eval $ac_link) 2>conftest.er1
    22610   ac_status=$?
    22611   grep -v '^ *+' conftest.er1 >conftest.err
    22612   rm -f conftest.er1
    22613   cat conftest.err >&5
    22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22615   (exit $ac_status); } &&
    22616          { ac_try='test -z "$ac_c_werror_flag"
    22617                          || test ! -s conftest.err'
    22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22619   (eval $ac_try) 2>&5
    22620   ac_status=$?
    22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22622   (exit $ac_status); }; } &&
    22623          { ac_try='test -s conftest$ac_exeext'
    22624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22625   (eval $ac_try) 2>&5
    22626   ac_status=$?
    22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22628   (exit $ac_status); }; }; then
    22629   echo "$as_me:$LINENO: result: yes" >&5
    22630 echo "${ECHO_T}yes" >&6
    22631                        ADDLIBS="-lblas $ADDLIBS"
    22632                        use_blas='-lblas'
    22633 else
    22634   echo "$as_me: failed program was:" >&5
    22635 sed 's/^/| /' conftest.$ac_ext >&5
    22636 
    22637 echo "$as_me:$LINENO: result: no" >&5
    22638 echo "${ECHO_T}no" >&6
    22639                        LIBS="$SAVE_LIBS"
    22640 fi
    22641 rm -f conftest.err conftest.$ac_objext \
    22642       conftest$ac_exeext conftest.$ac_ext
    22643     ;;
    22644   c)
    22645     ac_ext=f
    22646 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22647 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22648 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22649 case $ac_cv_f77_mangling in
    22650   upper*) ac_val="DAXPY" ;;
    22651   lower*) ac_val="daxpy" ;;
    22652   *)      ac_val="unknown" ;;
    22653 esac
    22654 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22655 
    22656 cfuncdaxpy="$ac_val"
    22657 
    22658 ac_ext=c
    22659 ac_cpp='$CPP $CPPFLAGS'
    22660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22663 
    22664     if test x"$coin_need_flibs" = xyes; then
    22665       flink_try=no;
    22666     else
    22667       cat >conftest.$ac_ext <<_ACEOF
    22668 /* confdefs.h.  */
    22669 _ACEOF
    22670 cat confdefs.h >>conftest.$ac_ext
    22671 cat >>conftest.$ac_ext <<_ACEOF
    22672 /* end confdefs.h.  */
    22673 void $cfuncdaxpy();
    22674 #ifdef F77_DUMMY_MAIN
    22675 
    22676 #  ifdef __cplusplus
    22677      extern "C"
    22678 #  endif
    22679    int F77_DUMMY_MAIN() { return 1; }
    22680 
    22681 #endif
    22682 int
    22683 main ()
    22684 {
    22685 $cfuncdaxpy()
    22686   ;
    22687   return 0;
    22688 }
    22689 _ACEOF
    22690 rm -f conftest.$ac_objext conftest$ac_exeext
    22691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22692   (eval $ac_link) 2>conftest.er1
    22693   ac_status=$?
    22694   grep -v '^ *+' conftest.er1 >conftest.err
    22695   rm -f conftest.er1
    22696   cat conftest.err >&5
    22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22698   (exit $ac_status); } &&
    22699          { ac_try='test -z "$ac_c_werror_flag"
    22700                          || test ! -s conftest.err'
    22701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22702   (eval $ac_try) 2>&5
    22703   ac_status=$?
    22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22705   (exit $ac_status); }; } &&
    22706          { ac_try='test -s conftest$ac_exeext'
    22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22708   (eval $ac_try) 2>&5
    22709   ac_status=$?
    22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22711   (exit $ac_status); }; }; then
    22712   flink_try=yes
    22713 else
    22714   echo "$as_me: failed program was:" >&5
    22715 sed 's/^/| /' conftest.$ac_ext >&5
    22716 
    22717 flink_try=no
    22718 fi
    22719 rm -f conftest.err conftest.$ac_objext \
    22720       conftest$ac_exeext conftest.$ac_ext
    22721     fi
    22722     if test $flink_try = yes; then
    22723       echo "$as_me:$LINENO: result: yes" >&5
    22724 echo "${ECHO_T}yes" >&6
    22725                        ADDLIBS="-lblas $ADDLIBS"
    22726                        use_blas='-lblas'
    22727     else
    22728       if test x"$FLIBS" != x; then
    22729         flink_save_libs="$LIBS"
    22730         LIBS="$LIBS $FLIBS"
    22731         cat >conftest.$ac_ext <<_ACEOF
    22732 /* confdefs.h.  */
    22733 _ACEOF
    22734 cat confdefs.h >>conftest.$ac_ext
    22735 cat >>conftest.$ac_ext <<_ACEOF
    22736 /* end confdefs.h.  */
    22737 void $cfuncdaxpy();
    22738 #ifdef F77_DUMMY_MAIN
    22739 
    22740 #  ifdef __cplusplus
    22741      extern "C"
    22742 #  endif
    22743    int F77_DUMMY_MAIN() { return 1; }
    22744 
    22745 #endif
    22746 int
    22747 main ()
    22748 {
    22749 $cfuncdaxpy()
    22750   ;
    22751   return 0;
    22752 }
    22753 _ACEOF
    22754 rm -f conftest.$ac_objext conftest$ac_exeext
    22755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22756   (eval $ac_link) 2>conftest.er1
    22757   ac_status=$?
    22758   grep -v '^ *+' conftest.er1 >conftest.err
    22759   rm -f conftest.er1
    22760   cat conftest.err >&5
    22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22762   (exit $ac_status); } &&
    22763          { ac_try='test -z "$ac_c_werror_flag"
    22764                          || test ! -s conftest.err'
    22765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22766   (eval $ac_try) 2>&5
    22767   ac_status=$?
    22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22769   (exit $ac_status); }; } &&
    22770          { ac_try='test -s conftest$ac_exeext'
    22771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22772   (eval $ac_try) 2>&5
    22773   ac_status=$?
    22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22775   (exit $ac_status); }; }; then
    22776   LIBS="$flink_save_libs"
    22777                      echo "$as_me:$LINENO: result: yes" >&5
    22778 echo "${ECHO_T}yes" >&6
    22779                        ADDLIBS="-lblas $ADDLIBS"
    22780                        use_blas='-lblas'
    22781                      coin_need_flibs=yes
    22782 else
    22783   echo "$as_me: failed program was:" >&5
    22784 sed 's/^/| /' conftest.$ac_ext >&5
    22785 
    22786 LIBS="$flink_save_libs"
    22787                      echo "$as_me:$LINENO: result: no" >&5
    22788 echo "${ECHO_T}no" >&6
    22789                        LIBS="$SAVE_LIBS"
    22790 fi
    22791 rm -f conftest.err conftest.$ac_objext \
    22792       conftest$ac_exeext conftest.$ac_ext
    22793       else
    22794         echo "$as_me:$LINENO: result: no" >&5
    22795 echo "${ECHO_T}no" >&6
    22796                        LIBS="$SAVE_LIBS"
    22797       fi
    22798     fi
    22799     ;;
    22800   cc|cpp)
    22801     ac_ext=f
    22802 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22803 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22804 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22805 case $ac_cv_f77_mangling in
    22806   upper*) ac_val="DAXPY" ;;
    22807   lower*) ac_val="daxpy" ;;
    22808   *)      ac_val="unknown" ;;
    22809 esac
    22810 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22811 
    22812 cfuncdaxpy="$ac_val"
    22813 
    22814 ac_ext=c
    22815 ac_cpp='$CPP $CPPFLAGS'
    22816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22819 
    22820     if test x"$coin_need_flibs" = xyes; then
    22821       flink_try=no;
    22822     else
    22823       cat >conftest.$ac_ext <<_ACEOF
    22824 /* confdefs.h.  */
    22825 _ACEOF
    22826 cat confdefs.h >>conftest.$ac_ext
    22827 cat >>conftest.$ac_ext <<_ACEOF
    22828 /* end confdefs.h.  */
    22829 extern "C" {void $cfuncdaxpy();}
    22830 #ifdef F77_DUMMY_MAIN
    22831 
    22832 #  ifdef __cplusplus
    22833      extern "C"
    22834 #  endif
    22835    int F77_DUMMY_MAIN() { return 1; }
    22836 
    22837 #endif
    22838 int
    22839 main ()
    22840 {
    22841 $cfuncdaxpy()
    22842   ;
    22843   return 0;
    22844 }
    22845 _ACEOF
    22846 rm -f conftest.$ac_objext conftest$ac_exeext
    22847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22848   (eval $ac_link) 2>conftest.er1
    22849   ac_status=$?
    22850   grep -v '^ *+' conftest.er1 >conftest.err
    22851   rm -f conftest.er1
    22852   cat conftest.err >&5
    22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22854   (exit $ac_status); } &&
    22855          { ac_try='test -z "$ac_c_werror_flag"
    22856                          || test ! -s conftest.err'
    22857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22858   (eval $ac_try) 2>&5
    22859   ac_status=$?
    22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22861   (exit $ac_status); }; } &&
    22862          { ac_try='test -s conftest$ac_exeext'
    22863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22864   (eval $ac_try) 2>&5
    22865   ac_status=$?
    22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22867   (exit $ac_status); }; }; then
    22868   flink_try=yes
    22869 else
    22870   echo "$as_me: failed program was:" >&5
    22871 sed 's/^/| /' conftest.$ac_ext >&5
    22872 
    22873 flink_try=no
    22874 fi
    22875 rm -f conftest.err conftest.$ac_objext \
    22876       conftest$ac_exeext conftest.$ac_ext
    22877     fi
    22878     if test $flink_try = yes; then
    22879       echo "$as_me:$LINENO: result: yes" >&5
    22880 echo "${ECHO_T}yes" >&6
    22881                        ADDLIBS="-lblas $ADDLIBS"
    22882                        use_blas='-lblas'
    22883     else
    22884       if test x"$FLIBS" != x; then
    22885         flink_save_libs="$LIBS"
    22886         LIBS="$LIBS $FLIBS"
    22887         cat >conftest.$ac_ext <<_ACEOF
    22888 /* confdefs.h.  */
    22889 _ACEOF
    22890 cat confdefs.h >>conftest.$ac_ext
    22891 cat >>conftest.$ac_ext <<_ACEOF
    22892 /* end confdefs.h.  */
    22893 extern "C" {void $cfuncdaxpy();}
    22894 #ifdef F77_DUMMY_MAIN
    22895 
    22896 #  ifdef __cplusplus
    22897      extern "C"
    22898 #  endif
    22899    int F77_DUMMY_MAIN() { return 1; }
    22900 
    22901 #endif
    22902 int
    22903 main ()
    22904 {
    22905 $cfuncdaxpy()
    22906   ;
    22907   return 0;
    22908 }
    22909 _ACEOF
    22910 rm -f conftest.$ac_objext conftest$ac_exeext
    22911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22912   (eval $ac_link) 2>conftest.er1
    22913   ac_status=$?
    22914   grep -v '^ *+' conftest.er1 >conftest.err
    22915   rm -f conftest.er1
    22916   cat conftest.err >&5
    22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22918   (exit $ac_status); } &&
    22919          { ac_try='test -z "$ac_c_werror_flag"
    22920                          || test ! -s conftest.err'
    22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22922   (eval $ac_try) 2>&5
    22923   ac_status=$?
    22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22925   (exit $ac_status); }; } &&
    22926          { ac_try='test -s conftest$ac_exeext'
    22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22928   (eval $ac_try) 2>&5
    22929   ac_status=$?
    22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22931   (exit $ac_status); }; }; then
    22932   LIBS="$flink_save_libs"
    22933                      echo "$as_me:$LINENO: result: yes" >&5
    22934 echo "${ECHO_T}yes" >&6
    22935                        ADDLIBS="-lblas $ADDLIBS"
    22936                        use_blas='-lblas'
    22937                      coin_need_flibs=yes
    22938 else
    22939   echo "$as_me: failed program was:" >&5
    22940 sed 's/^/| /' conftest.$ac_ext >&5
    22941 
    22942 LIBS="$flink_save_libs"
    22943                      echo "$as_me:$LINENO: result: no" >&5
    22944 echo "${ECHO_T}no" >&6
    22945                        LIBS="$SAVE_LIBS"
    22946 fi
    22947 rm -f conftest.err conftest.$ac_objext \
    22948       conftest$ac_exeext conftest.$ac_ext
    22949       else
    22950         echo "$as_me:$LINENO: result: no" >&5
    22951 echo "${ECHO_T}no" >&6
    22952                        LIBS="$SAVE_LIBS"
    22953       fi
    22954     fi
    22955     ;;
    22956 esac
    22957 
    22958   fi
    22959 
    22960 # If we have no other ideas, consider building BLAS.
    22961   if test -z "$use_blas"; then
    22962     if test "$PACKAGE_NAME" != ThirdPartyBlas; then
    22963       if test -r $coin_blasobjdir/.MakeOk; then
    22964         use_blas=BUILD
    22965       fi
     20310    if test -d $srcdir/../Blas; then
     20311      coin_has_blas=../Blas
    2296620312    fi
    2296720313  fi
    2296820314fi
    2296920315
    22970 if test "$use_blas" = BUILD; then
    22971   coin_need_flibs=yes
    22972 fi
    22973 
    22974 
    22975 
    22976 if test x"$use_blas" != x; then
    22977   COIN_HAS_BLAS_TRUE=
    22978   COIN_HAS_BLAS_FALSE='#'
    22979 else
    22980   COIN_HAS_BLAS_TRUE='#'
    22981   COIN_HAS_BLAS_FALSE=
    22982 fi
    22983 
    22984 
    22985 
    22986 if test "$use_blas" = BUILD; then
    22987   COIN_BUILD_BLAS_TRUE=
    22988   COIN_BUILD_BLAS_FALSE='#'
    22989 else
    22990   COIN_BUILD_BLAS_TRUE='#'
    22991   COIN_BUILD_BLAS_FALSE=
    22992 fi
    22993 
    22994 
    22995 if test x"$use_blas" = x || test "$use_blas" = no; then
    22996   coin_has_blas=no
    22997 else
    22998   coin_has_blas=yes
     20316if test $coin_has_blas != unavailable &&
     20317   test $coin_has_blas != skipping; then
     20318  # Set the #define if the component is available
    2299920319
    2300020320cat >>confdefs.h <<\_ACEOF
     
    2300220322_ACEOF
    2300320323
    23004 fi
    23005 
    23006 MAKEOKFILE=.MakeOk
    23007 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
    23008   rm -f $MAKEOKFILE
    23009   { echo "$as_me:$LINENO: The Blas sources don't need to be compiled" >&5
    23010 echo "$as_me: The Blas sources don't need to be compiled" >&6;}
    23011   MAKEOKFILE=
    23012 else
    23013   touch $MAKEOKFILE
    23014 fi
    23015 
    23016 
    23017 
    23018 if test -z "$MAKEOKFILE"; then
    23019   SKIPMAKE_TRUE=
    23020   SKIPMAKE_FALSE='#'
    23021 else
    23022   SKIPMAKE_TRUE='#'
    23023   SKIPMAKE_FALSE=
    23024 fi
    23025 
    23026 
    23027           ac_config_files="$ac_config_files Makefile"
     20324
     20325  # Set the variables for source and object code location
     20326
     20327  BLASSRCDIR=`cd $srcdir/$coin_has_blas; pwd`
     20328
     20329  BLASOBJDIR=`pwd`/$coin_has_blas
     20330
     20331  BLASDOCDIR=$abs_lib_dir/../share/doc/coin/Blas
     20332fi
     20333
     20334  # Define the Makefile conditional
     20335
     20336
     20337if test $coin_has_blas != unavailable &&
     20338                test $coin_has_blas != skipping; then
     20339  COIN_HAS_BLAS_TRUE=
     20340  COIN_HAS_BLAS_FALSE='#'
     20341else
     20342  COIN_HAS_BLAS_TRUE='#'
     20343  COIN_HAS_BLAS_FALSE=
     20344fi
     20345
     20346echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     20347echo "${ECHO_T}$coin_has_blas" >&6
     20348
     20349
     20350# Check if Blas is already available on the system or provided by user
     20351#AC_COIN_HAS_BLAS
     20352#MAKEOKFILE=.MakeOk
     20353#if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
     20354#  rm -f $MAKEOKFILE
     20355#  AC_MSG_NOTICE([The Blas sources don't need to be compiled])
     20356#  MAKEOKFILE=
     20357#else
     20358#  touch $MAKEOKFILE
     20359#fi
     20360#AC_SUBST(MAKEOKFILE)
     20361#AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     20362
     20363                    ac_config_files="$ac_config_files Makefile blas_addlibs.txt"
    2302820364
    2302920365
     
    2325320589Usually this means the macro was only invoked conditionally." >&5
    2325420590echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
    23255 Usually this means the macro was only invoked conditionally." >&2;}
    23256    { (exit 1); exit 1; }; }
    23257 fi
    23258 if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
    23259   { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
    23260 Usually this means the macro was only invoked conditionally." >&5
    23261 echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
    23262 Usually this means the macro was only invoked conditionally." >&2;}
    23263    { (exit 1); exit 1; }; }
    23264 fi
    23265 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
    23266   { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
    23267 Usually this means the macro was only invoked conditionally." >&5
    23268 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2326920591Usually this means the macro was only invoked conditionally." >&2;}
    2327020592   { (exit 1); exit 1; }; }
     
    2371021032  # Handling of arguments.
    2371121033  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     21034  "blas_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES blas_addlibs.txt" ;;
    2371221035  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2371321036  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     
    2389321216s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2389421217s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    23895 s,@FLIBS@,$FLIBS,;t t
     21218s,@BLASSRCDIR@,$BLASSRCDIR,;t t
     21219s,@BLASOBJDIR@,$BLASOBJDIR,;t t
     21220s,@BLASDOCDIR@,$BLASDOCDIR,;t t
    2389621221s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
    2389721222s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
    23898 s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
    23899 s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
    23900 s,@MAKEOKFILE@,$MAKEOKFILE,;t t
    23901 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
    23902 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2390321223s,@LIBEXT@,$LIBEXT,;t t
    2390421224s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
  • ThirdParty/Blas/trunk/configure.ac

    r1184 r1377  
    5353AC_COIN_INIT_AUTO_TOOLS
    5454
     55AC_COIN_HAS_PROJECT(Blas)
     56
    5557# Check if Blas is already available on the system or provided by user
    56 AC_COIN_HAS_BLAS
    57 MAKEOKFILE=.MakeOk
    58 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
    59   rm -f $MAKEOKFILE
    60   AC_MSG_NOTICE([The Blas sources don't need to be compiled])
    61   MAKEOKFILE=
    62 else
    63   touch $MAKEOKFILE
    64 fi
    65 AC_SUBST(MAKEOKFILE)
    66 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     58#AC_COIN_HAS_BLAS
     59#MAKEOKFILE=.MakeOk
     60#if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
     61#  rm -f $MAKEOKFILE
     62#  AC_MSG_NOTICE([The Blas sources don't need to be compiled])
     63#  MAKEOKFILE=
     64#else
     65#  touch $MAKEOKFILE
     66#fi
     67#AC_SUBST(MAKEOKFILE)
     68#AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
    6769
    68 AC_CONFIG_FILES([Makefile])
     70AC_CONFIG_FILES([Makefile blas_addlibs.txt])
    6971
    7072AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.