Changeset 1321 for ThirdParty/Glpk


Ignore:
Timestamp:
Jul 11, 2009 3:24:18 PM (10 years ago)
Author:
stefan
Message:

create config.h and config_glpk.h for glpk; check for additional libraries, especially for odbc and mysql drivers (for Osi ticket 72); store additional dependencies in glpk_addlibs.txt

Location:
ThirdParty/Glpk/trunk
Files:
3 added
4 edited

Legend:

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

    r1299 r1321  
    129129$(GLPKDIR)/src/colamd/colamd.c
    130130
    131 # CoinUtils and SYMPHONY include glpmpl.h and have HAVE_CONFIG_H defined
    132 # so we put a dummy config.h file and required include files into the glpk
    133 # include directory. At least a newline is needed to avoid a bug in
    134 # Sun Solaris Studio, 64-bit optimised build.
     131# CoinUtils and SYMPHONY include glpmpl.h, have HAVE_CONFIG_H defined,
     132# and so Glpk attempts to include config.h.
     133# Therefore, we put a simple config.h file into $(GLPKDIR)/include.
     134# It's purpose is to include the config_glpk.h file that is generated
     135# by configure.
    135136libcoinglpk_la_DEPENDENCIES = $(srcdir)/$(GLPKDIR)/include/config.h \
    136137  $(srcdir)/$(GLPKDIR)/include/glpmpl.h \
     
    141142  $(srcdir)/$(GLPKDIR)/include/glpstd.h
    142143
    143 $(srcdir)/$(GLPKDIR)/include/config.h :
    144         echo "" > $(srcdir)/$(GLPKDIR)/include/config.h
     144$(srcdir)/$(GLPKDIR)/include/config.h : $(srcdir)/config.h
     145        cp $(srcdir)/config.h $(srcdir)/$(GLPKDIR)/include/config.h
    145146
    146147$(srcdir)/$(GLPKDIR)/include/glpmpl.h : $(srcdir)/$(GLPKDIR)/src/glpmpl.h
  • ThirdParty/Glpk/trunk/Makefile.in

    r1299 r1321  
    5757        $(srcdir)/../../ltmain.sh $(srcdir)/../../missing \
    5858        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
     59        $(srcdir)/config_glpk.h.in $(srcdir)/glpk_addlibs.txt.in \
    5960        $(top_srcdir)/configure
    6061@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
     
    6970 configure.lineno configure.status.lineno
    7071mkinstalldirs = $(install_sh) -d
    71 CONFIG_CLEAN_FILES =
     72CONFIG_HEADER = config_glpk.h
     73CONFIG_CLEAN_FILES = glpk_addlibs.txt
    7274LTLIBRARIES = $(noinst_LTLIBRARIES)
    7375libcoinglpk_la_LIBADD =
     
    145147COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
    146148COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
     149COIN_HAS_ZLIB_FALSE = @COIN_HAS_ZLIB_FALSE@
     150COIN_HAS_ZLIB_TRUE = @COIN_HAS_ZLIB_TRUE@
    147151CPP = @CPP@
    148152CPPFLAGS = @CPPFLAGS@
     
    167171GLPKINCDIR = @GLPKINCDIR@
    168172GLPKLIB = @GLPKLIB@
     173GLPKOBJDIR = @GLPKOBJDIR@
    169174HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    170175HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    374379
    375380
    376 # CoinUtils and SYMPHONY include glpmpl.h and have HAVE_CONFIG_H defined
    377 # so we put a dummy config.h file and required include files into the glpk
    378 # include directory. At least a newline is needed to avoid a bug in
    379 # Sun Solaris Studio, 64-bit optimised build.
     381# CoinUtils and SYMPHONY include glpmpl.h, have HAVE_CONFIG_H defined,
     382# and so Glpk attempts to include config.h.
     383# Therefore, we put a simple config.h file into $(GLPKDIR)/include.
     384# It's purpose is to include the config_glpk.h file that is generated
     385# by configure.
    380386libcoinglpk_la_DEPENDENCIES = $(srcdir)/$(GLPKDIR)/include/config.h \
    381387  $(srcdir)/$(GLPKDIR)/include/glpmpl.h \
     
    403409DocFiles = README AUTHORS LICENSE
    404410DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
    405 all: all-am
     411all: config_glpk.h
     412        $(MAKE) $(AM_MAKEFLAGS) all-am
    406413
    407414.SUFFIXES:
     
    440447$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    441448        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     449
     450config_glpk.h: stamp-h1
     451        @if test ! -f $@; then \
     452          rm -f stamp-h1; \
     453          $(MAKE) stamp-h1; \
     454        else :; fi
     455
     456stamp-h1: $(srcdir)/config_glpk.h.in $(top_builddir)/config.status
     457        @rm -f stamp-h1
     458        cd $(top_builddir) && $(SHELL) ./config.status config_glpk.h
     459$(srcdir)/config_glpk.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     460        cd $(top_srcdir) && $(AUTOHEADER)
     461        rm -f stamp-h1
     462        touch $@
     463
     464distclean-hdr:
     465        -rm -f config_glpk.h stamp-h1
     466glpk_addlibs.txt: $(top_builddir)/config.status $(srcdir)/glpk_addlibs.txt.in
     467        cd $(top_builddir) && $(SHELL) ./config.status $@
    442468
    443469clean-noinstLTLIBRARIES:
     
    13801406tags: TAGS
    13811407
    1382 TAGS:  $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
     1408TAGS:  $(HEADERS) $(SOURCES) config_glpk.h.in $(TAGS_DEPENDENCIES) \
    13831409                $(TAGS_FILES) $(LISP)
    13841410        tags=; \
    13851411        here=`pwd`; \
    1386         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
     1412        list='$(SOURCES) $(HEADERS) config_glpk.h.in $(LISP) $(TAGS_FILES)'; \
    13871413        unique=`for i in $$list; do \
    13881414            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     
    13961422        fi
    13971423ctags: CTAGS
    1398 CTAGS:  $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
     1424CTAGS:  $(HEADERS) $(SOURCES) config_glpk.h.in $(TAGS_DEPENDENCIES) \
    13991425                $(TAGS_FILES) $(LISP)
    14001426        tags=; \
    14011427        here=`pwd`; \
    1402         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
     1428        list='$(SOURCES) $(HEADERS) config_glpk.h.in $(LISP) $(TAGS_FILES)'; \
    14031429        unique=`for i in $$list; do \
    14041430            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     
    14211447        $(am__remove_distdir)
    14221448        mkdir $(distdir)
    1423         $(mkdir_p) $(distdir)/../.. $(distdir)/../../BuildTools
     1449        $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
    14241450        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    14251451        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    15471573check-am: all-am
    15481574check: check-am
    1549 all-am: Makefile $(LTLIBRARIES)
     1575all-am: Makefile $(LTLIBRARIES) config_glpk.h
    15501576installdirs:
    15511577install: install-am
     
    15841610        -rm -f Makefile
    15851611distclean-am: clean-am distclean-compile distclean-generic \
    1586         distclean-libtool distclean-tags
     1612        distclean-hdr distclean-libtool distclean-tags
    15871613
    15881614dvi: dvi-am
     
    16321658        dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    16331659        distcheck distclean distclean-compile distclean-generic \
    1634         distclean-libtool distclean-tags distcleancheck distdir \
    1635         distuninstallcheck dvi dvi-am html html-am info info-am \
    1636         install install-am install-data install-data-am install-exec \
    1637         install-exec-am install-info install-info-am install-man \
    1638         install-strip installcheck installcheck-am installdirs \
    1639         maintainer-clean maintainer-clean-generic mostlyclean \
    1640         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    1641         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    1642         uninstall-info-am
    1643 
    1644 
    1645 $(srcdir)/$(GLPKDIR)/include/config.h :
    1646         echo "" > $(srcdir)/$(GLPKDIR)/include/config.h
     1660        distclean-hdr distclean-libtool distclean-tags distcleancheck \
     1661        distdir distuninstallcheck dvi dvi-am html html-am info \
     1662        info-am install install-am install-data install-data-am \
     1663        install-exec install-exec-am install-info install-info-am \
     1664        install-man install-strip installcheck installcheck-am \
     1665        installdirs maintainer-clean maintainer-clean-generic \
     1666        mostlyclean mostlyclean-compile mostlyclean-generic \
     1667        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     1668        uninstall-am uninstall-info-am
     1669
     1670
     1671$(srcdir)/$(GLPKDIR)/include/config.h : $(srcdir)/config.h
     1672        cp $(srcdir)/config.h $(srcdir)/$(GLPKDIR)/include/config.h
    16471673
    16481674$(srcdir)/$(GLPKDIR)/include/glpmpl.h : $(srcdir)/$(GLPKDIR)/src/glpmpl.h
  • ThirdParty/Glpk/trunk/configure

    r1299 r1321  
    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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE GLPKDIR 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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GLPKOBJDIR COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10751075  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
    10761076                          link check at configuration time
     1077  --enable-gnu-packages   compile with GNU packages (disabled by default)
     1078  --enable-odbc           enable MathProg ODBC support [default=auto]
     1079  --enable-mysql          enable MathProg MySQL support [default=auto]
    10771080
    10781081Optional Packages:
     
    47224725*-*-irix6*)
    47234726  # Find out which ABI we are using.
    4724   echo '#line 4724 "configure"' > conftest.$ac_ext
     4727  echo '#line 4727 "configure"' > conftest.$ac_ext
    47254728  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    47264729  (eval $ac_compile) 2>&5
     
    63216324
    63226325# Provide some information about the compiler.
    6323 echo "$as_me:6323:" \
     6326echo "$as_me:6326:" \
    63246327     "checking for Fortran 77 compiler version" >&5
    63256328ac_compiler=`set X $ac_compile; echo $2`
     
    73887391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    73897392   -e 's:$: $lt_compiler_flag:'`
    7390    (eval echo "\"\$as_me:7390: $lt_compile\"" >&5)
     7393   (eval echo "\"\$as_me:7393: $lt_compile\"" >&5)
    73917394   (eval "$lt_compile" 2>conftest.err)
    73927395   ac_status=$?
    73937396   cat conftest.err >&5
    7394    echo "$as_me:7394: \$? = $ac_status" >&5
     7397   echo "$as_me:7397: \$? = $ac_status" >&5
    73957398   if (exit $ac_status) && test -s "$ac_outfile"; then
    73967399     # The compiler can only warn and ignore the option if not recognized
     
    76567659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76577660   -e 's:$: $lt_compiler_flag:'`
    7658    (eval echo "\"\$as_me:7658: $lt_compile\"" >&5)
     7661   (eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
    76597662   (eval "$lt_compile" 2>conftest.err)
    76607663   ac_status=$?
    76617664   cat conftest.err >&5
    7662    echo "$as_me:7662: \$? = $ac_status" >&5
     7665   echo "$as_me:7665: \$? = $ac_status" >&5
    76637666   if (exit $ac_status) && test -s "$ac_outfile"; then
    76647667     # The compiler can only warn and ignore the option if not recognized
     
    77607763   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77617764   -e 's:$: $lt_compiler_flag:'`
    7762    (eval echo "\"\$as_me:7762: $lt_compile\"" >&5)
     7765   (eval echo "\"\$as_me:7765: $lt_compile\"" >&5)
    77637766   (eval "$lt_compile" 2>out/conftest.err)
    77647767   ac_status=$?
    77657768   cat out/conftest.err >&5
    7766    echo "$as_me:7766: \$? = $ac_status" >&5
     7769   echo "$as_me:7769: \$? = $ac_status" >&5
    77677770   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77687771   then
     
    1010510108  lt_status=$lt_dlunknown
    1010610109  cat > conftest.$ac_ext <<EOF
    10107 #line 10107 "configure"
     10110#line 10110 "configure"
    1010810111#include "confdefs.h"
    1010910112
     
    1020510208  lt_status=$lt_dlunknown
    1020610209  cat > conftest.$ac_ext <<EOF
    10207 #line 10207 "configure"
     10210#line 10210 "configure"
    1020810211#include "confdefs.h"
    1020910212
     
    1254912552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1255012553   -e 's:$: $lt_compiler_flag:'`
    12551    (eval echo "\"\$as_me:12551: $lt_compile\"" >&5)
     12554   (eval echo "\"\$as_me:12554: $lt_compile\"" >&5)
    1255212555   (eval "$lt_compile" 2>conftest.err)
    1255312556   ac_status=$?
    1255412557   cat conftest.err >&5
    12555    echo "$as_me:12555: \$? = $ac_status" >&5
     12558   echo "$as_me:12558: \$? = $ac_status" >&5
    1255612559   if (exit $ac_status) && test -s "$ac_outfile"; then
    1255712560     # The compiler can only warn and ignore the option if not recognized
     
    1265312656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1265412657   -e 's:$: $lt_compiler_flag:'`
    12655    (eval echo "\"\$as_me:12655: $lt_compile\"" >&5)
     12658   (eval echo "\"\$as_me:12658: $lt_compile\"" >&5)
    1265612659   (eval "$lt_compile" 2>out/conftest.err)
    1265712660   ac_status=$?
    1265812661   cat out/conftest.err >&5
    12659    echo "$as_me:12659: \$? = $ac_status" >&5
     12662   echo "$as_me:12662: \$? = $ac_status" >&5
    1266012663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1266112664   then
     
    1422314226   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1422414227   -e 's:$: $lt_compiler_flag:'`
    14225    (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
     14228   (eval echo "\"\$as_me:14228: $lt_compile\"" >&5)
    1422614229   (eval "$lt_compile" 2>conftest.err)
    1422714230   ac_status=$?
    1422814231   cat conftest.err >&5
    14229    echo "$as_me:14229: \$? = $ac_status" >&5
     14232   echo "$as_me:14232: \$? = $ac_status" >&5
    1423014233   if (exit $ac_status) && test -s "$ac_outfile"; then
    1423114234     # The compiler can only warn and ignore the option if not recognized
     
    1432714330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1432814331   -e 's:$: $lt_compiler_flag:'`
    14329    (eval echo "\"\$as_me:14329: $lt_compile\"" >&5)
     14332   (eval echo "\"\$as_me:14332: $lt_compile\"" >&5)
    1433014333   (eval "$lt_compile" 2>out/conftest.err)
    1433114334   ac_status=$?
    1433214335   cat out/conftest.err >&5
    14333    echo "$as_me:14333: \$? = $ac_status" >&5
     14336   echo "$as_me:14336: \$? = $ac_status" >&5
    1433414337   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1433514338   then
     
    1653416537   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1653516538   -e 's:$: $lt_compiler_flag:'`
    16536    (eval echo "\"\$as_me:16536: $lt_compile\"" >&5)
     16539   (eval echo "\"\$as_me:16539: $lt_compile\"" >&5)
    1653716540   (eval "$lt_compile" 2>conftest.err)
    1653816541   ac_status=$?
    1653916542   cat conftest.err >&5
    16540    echo "$as_me:16540: \$? = $ac_status" >&5
     16543   echo "$as_me:16543: \$? = $ac_status" >&5
    1654116544   if (exit $ac_status) && test -s "$ac_outfile"; then
    1654216545     # The compiler can only warn and ignore the option if not recognized
     
    1680216805   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1680316806   -e 's:$: $lt_compiler_flag:'`
    16804    (eval echo "\"\$as_me:16804: $lt_compile\"" >&5)
     16807   (eval echo "\"\$as_me:16807: $lt_compile\"" >&5)
    1680516808   (eval "$lt_compile" 2>conftest.err)
    1680616809   ac_status=$?
    1680716810   cat conftest.err >&5
    16808    echo "$as_me:16808: \$? = $ac_status" >&5
     16811   echo "$as_me:16811: \$? = $ac_status" >&5
    1680916812   if (exit $ac_status) && test -s "$ac_outfile"; then
    1681016813     # The compiler can only warn and ignore the option if not recognized
     
    1690616909   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1690716910   -e 's:$: $lt_compiler_flag:'`
    16908    (eval echo "\"\$as_me:16908: $lt_compile\"" >&5)
     16911   (eval echo "\"\$as_me:16911: $lt_compile\"" >&5)
    1690916912   (eval "$lt_compile" 2>out/conftest.err)
    1691016913   ac_status=$?
    1691116914   cat out/conftest.err >&5
    16912    echo "$as_me:16912: \$? = $ac_status" >&5
     16915   echo "$as_me:16915: \$? = $ac_status" >&5
    1691316916   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1691416917   then
     
    2004120044    coin_has_glpk=true
    2004220045    glpk_libcheck=no
     20046    GLPKOBJDIR=`cd $coin_glpkobjdir; pwd`
     20047
    2004320048    { echo "$as_me:$LINENO: Using Glpk in ThirdParty/Glpk" >&5
    2004420049echo "$as_me: Using Glpk in ThirdParty/Glpk" >&6;}
     
    2009720102
    2009820103
     20104###########################################################################
     20105#                 GNU packages and C functions                            #
     20106###########################################################################
     20107
     20108ADDLIBS=
     20109
     20110ac_ext=c
     20111ac_cpp='$CPP $CPPFLAGS'
     20112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20114ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20115
     20116
     20117# Check whether --enable-gnu-packages or --disable-gnu-packages was given.
     20118if test "${enable_gnu_packages+set}" = set; then
     20119  enableval="$enable_gnu_packages"
     20120  coin_enable_gnu=$enableval
     20121else
     20122  coin_enable_gnu=no
     20123fi;
     20124
     20125
     20126
     20127
     20128
     20129
     20130
     20131coin_has_zlib=no
     20132if test $coin_enable_gnu = yes; then
     20133  #if test x"" = x; then
     20134#  hdr="#include <zlib.h>"
     20135#else
     20136#  hdr=""
     20137#fi
     20138#AC_CHECK_HEADERS([zlib.h],[coin_has_zlib=yes],[],[$hdr])
     20139
     20140for ac_header in zlib.h
     20141do
     20142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     20143if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20144  echo "$as_me:$LINENO: checking for $ac_header" >&5
     20145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20146if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20147  echo $ECHO_N "(cached) $ECHO_C" >&6
     20148fi
     20149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20151else
     20152  # Is the header compilable?
     20153echo "$as_me:$LINENO: checking $ac_header usability" >&5
     20154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     20155cat >conftest.$ac_ext <<_ACEOF
     20156/* confdefs.h.  */
     20157_ACEOF
     20158cat confdefs.h >>conftest.$ac_ext
     20159cat >>conftest.$ac_ext <<_ACEOF
     20160/* end confdefs.h.  */
     20161$ac_includes_default
     20162#include <$ac_header>
     20163_ACEOF
     20164rm -f conftest.$ac_objext
     20165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20166  (eval $ac_compile) 2>conftest.er1
     20167  ac_status=$?
     20168  grep -v '^ *+' conftest.er1 >conftest.err
     20169  rm -f conftest.er1
     20170  cat conftest.err >&5
     20171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20172  (exit $ac_status); } &&
     20173         { ac_try='test -z "$ac_c_werror_flag"
     20174                         || test ! -s conftest.err'
     20175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20176  (eval $ac_try) 2>&5
     20177  ac_status=$?
     20178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20179  (exit $ac_status); }; } &&
     20180         { ac_try='test -s conftest.$ac_objext'
     20181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20182  (eval $ac_try) 2>&5
     20183  ac_status=$?
     20184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20185  (exit $ac_status); }; }; then
     20186  ac_header_compiler=yes
     20187else
     20188  echo "$as_me: failed program was:" >&5
     20189sed 's/^/| /' conftest.$ac_ext >&5
     20190
     20191ac_header_compiler=no
     20192fi
     20193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     20195echo "${ECHO_T}$ac_header_compiler" >&6
     20196
     20197# Is the header present?
     20198echo "$as_me:$LINENO: checking $ac_header presence" >&5
     20199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     20200cat >conftest.$ac_ext <<_ACEOF
     20201/* confdefs.h.  */
     20202_ACEOF
     20203cat confdefs.h >>conftest.$ac_ext
     20204cat >>conftest.$ac_ext <<_ACEOF
     20205/* end confdefs.h.  */
     20206#include <$ac_header>
     20207_ACEOF
     20208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     20209  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     20210  ac_status=$?
     20211  grep -v '^ *+' conftest.er1 >conftest.err
     20212  rm -f conftest.er1
     20213  cat conftest.err >&5
     20214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20215  (exit $ac_status); } >/dev/null; then
     20216  if test -s conftest.err; then
     20217    ac_cpp_err=$ac_c_preproc_warn_flag
     20218    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     20219  else
     20220    ac_cpp_err=
     20221  fi
     20222else
     20223  ac_cpp_err=yes
     20224fi
     20225if test -z "$ac_cpp_err"; then
     20226  ac_header_preproc=yes
     20227else
     20228  echo "$as_me: failed program was:" >&5
     20229sed 's/^/| /' conftest.$ac_ext >&5
     20230
     20231  ac_header_preproc=no
     20232fi
     20233rm -f conftest.err conftest.$ac_ext
     20234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     20235echo "${ECHO_T}$ac_header_preproc" >&6
     20236
     20237# So?  What about this header?
     20238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     20239  yes:no: )
     20240    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     20241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     20242    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     20243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     20244    ac_header_preproc=yes
     20245    ;;
     20246  no:yes:* )
     20247    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     20248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     20249    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     20250echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     20251    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     20252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     20253    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     20254echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     20255    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     20256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     20257    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     20258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     20259    (
     20260      cat <<\_ASBOX
     20261## --------------------------------------------------------------- ##
     20262## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     20263## --------------------------------------------------------------- ##
     20264_ASBOX
     20265    ) |
     20266      sed "s/^/$as_me: WARNING:     /" >&2
     20267    ;;
     20268esac
     20269echo "$as_me:$LINENO: checking for $ac_header" >&5
     20270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20271if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20272  echo $ECHO_N "(cached) $ECHO_C" >&6
     20273else
     20274  eval "$as_ac_Header=\$ac_header_preproc"
     20275fi
     20276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20278
     20279fi
     20280if test `eval echo '${'$as_ac_Header'}'` = yes; then
     20281  cat >>confdefs.h <<_ACEOF
     20282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     20283_ACEOF
     20284 coin_has_zlib=yes
     20285fi
     20286
     20287done
     20288
     20289
     20290
     20291  if test $coin_has_zlib = yes; then
     20292    echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
     20293echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
     20294if test "${ac_cv_lib_z_gzopen+set}" = set; then
     20295  echo $ECHO_N "(cached) $ECHO_C" >&6
     20296else
     20297  ac_check_lib_save_LIBS=$LIBS
     20298LIBS="-lz  $LIBS"
     20299cat >conftest.$ac_ext <<_ACEOF
     20300/* confdefs.h.  */
     20301_ACEOF
     20302cat confdefs.h >>conftest.$ac_ext
     20303cat >>conftest.$ac_ext <<_ACEOF
     20304/* end confdefs.h.  */
     20305
     20306/* Override any gcc2 internal prototype to avoid an error.  */
     20307#ifdef __cplusplus
     20308extern "C"
     20309#endif
     20310/* We use char because int might match the return type of a gcc2
     20311   builtin and then its argument prototype would still apply.  */
     20312char gzopen ();
     20313int
     20314main ()
     20315{
     20316gzopen ();
     20317  ;
     20318  return 0;
     20319}
     20320_ACEOF
     20321rm -f conftest.$ac_objext conftest$ac_exeext
     20322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20323  (eval $ac_link) 2>conftest.er1
     20324  ac_status=$?
     20325  grep -v '^ *+' conftest.er1 >conftest.err
     20326  rm -f conftest.er1
     20327  cat conftest.err >&5
     20328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20329  (exit $ac_status); } &&
     20330         { ac_try='test -z "$ac_c_werror_flag"
     20331                         || test ! -s conftest.err'
     20332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20333  (eval $ac_try) 2>&5
     20334  ac_status=$?
     20335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20336  (exit $ac_status); }; } &&
     20337         { ac_try='test -s conftest$ac_exeext'
     20338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20339  (eval $ac_try) 2>&5
     20340  ac_status=$?
     20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20342  (exit $ac_status); }; }; then
     20343  ac_cv_lib_z_gzopen=yes
     20344else
     20345  echo "$as_me: failed program was:" >&5
     20346sed 's/^/| /' conftest.$ac_ext >&5
     20347
     20348ac_cv_lib_z_gzopen=no
     20349fi
     20350rm -f conftest.err conftest.$ac_objext \
     20351      conftest$ac_exeext conftest.$ac_ext
     20352LIBS=$ac_check_lib_save_LIBS
     20353fi
     20354echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
     20355echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
     20356if test $ac_cv_lib_z_gzopen = yes; then
     20357  ADDLIBS="-lz $ADDLIBS"
     20358else
     20359  coin_has_zlib=no
     20360fi
     20361
     20362  fi
     20363
     20364  if test $coin_has_zlib = yes; then
     20365
     20366cat >>confdefs.h <<\_ACEOF
     20367#define COIN_HAS_ZLIB 1
     20368_ACEOF
     20369
     20370  fi
     20371fi
     20372
     20373
     20374
     20375if test x$coin_has_zlib = xyes; then
     20376  COIN_HAS_ZLIB_TRUE=
     20377  COIN_HAS_ZLIB_FALSE='#'
     20378else
     20379  COIN_HAS_ZLIB_TRUE='#'
     20380  COIN_HAS_ZLIB_FALSE=
     20381fi
     20382
     20383
     20384if test $coin_has_zlib = "yes"; then
     20385
     20386cat >>confdefs.h <<\_ACEOF
     20387#define HAVE_ZLIB 1
     20388_ACEOF
     20389
     20390fi
     20391
     20392if test $coin_enable_gnu = yes; then
     20393  coin_has_gmp=no
     20394  #if test x"" = x; then
     20395#  hdr="#include <gmp.h>"
     20396#else
     20397#  hdr=""
     20398#fi
     20399#AC_CHECK_HEADERS([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])],[],[$hdr])
     20400
     20401for ac_header in gmp.h
     20402do
     20403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     20404if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20405  echo "$as_me:$LINENO: checking for $ac_header" >&5
     20406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20407if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20408  echo $ECHO_N "(cached) $ECHO_C" >&6
     20409fi
     20410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20412else
     20413  # Is the header compilable?
     20414echo "$as_me:$LINENO: checking $ac_header usability" >&5
     20415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     20416cat >conftest.$ac_ext <<_ACEOF
     20417/* confdefs.h.  */
     20418_ACEOF
     20419cat confdefs.h >>conftest.$ac_ext
     20420cat >>conftest.$ac_ext <<_ACEOF
     20421/* end confdefs.h.  */
     20422$ac_includes_default
     20423#include <$ac_header>
     20424_ACEOF
     20425rm -f conftest.$ac_objext
     20426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20427  (eval $ac_compile) 2>conftest.er1
     20428  ac_status=$?
     20429  grep -v '^ *+' conftest.er1 >conftest.err
     20430  rm -f conftest.er1
     20431  cat conftest.err >&5
     20432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20433  (exit $ac_status); } &&
     20434         { ac_try='test -z "$ac_c_werror_flag"
     20435                         || test ! -s conftest.err'
     20436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20437  (eval $ac_try) 2>&5
     20438  ac_status=$?
     20439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20440  (exit $ac_status); }; } &&
     20441         { ac_try='test -s conftest.$ac_objext'
     20442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20443  (eval $ac_try) 2>&5
     20444  ac_status=$?
     20445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20446  (exit $ac_status); }; }; then
     20447  ac_header_compiler=yes
     20448else
     20449  echo "$as_me: failed program was:" >&5
     20450sed 's/^/| /' conftest.$ac_ext >&5
     20451
     20452ac_header_compiler=no
     20453fi
     20454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     20456echo "${ECHO_T}$ac_header_compiler" >&6
     20457
     20458# Is the header present?
     20459echo "$as_me:$LINENO: checking $ac_header presence" >&5
     20460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     20461cat >conftest.$ac_ext <<_ACEOF
     20462/* confdefs.h.  */
     20463_ACEOF
     20464cat confdefs.h >>conftest.$ac_ext
     20465cat >>conftest.$ac_ext <<_ACEOF
     20466/* end confdefs.h.  */
     20467#include <$ac_header>
     20468_ACEOF
     20469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     20470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     20471  ac_status=$?
     20472  grep -v '^ *+' conftest.er1 >conftest.err
     20473  rm -f conftest.er1
     20474  cat conftest.err >&5
     20475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20476  (exit $ac_status); } >/dev/null; then
     20477  if test -s conftest.err; then
     20478    ac_cpp_err=$ac_c_preproc_warn_flag
     20479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     20480  else
     20481    ac_cpp_err=
     20482  fi
     20483else
     20484  ac_cpp_err=yes
     20485fi
     20486if test -z "$ac_cpp_err"; then
     20487  ac_header_preproc=yes
     20488else
     20489  echo "$as_me: failed program was:" >&5
     20490sed 's/^/| /' conftest.$ac_ext >&5
     20491
     20492  ac_header_preproc=no
     20493fi
     20494rm -f conftest.err conftest.$ac_ext
     20495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     20496echo "${ECHO_T}$ac_header_preproc" >&6
     20497
     20498# So?  What about this header?
     20499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     20500  yes:no: )
     20501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     20502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     20503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     20504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     20505    ac_header_preproc=yes
     20506    ;;
     20507  no:yes:* )
     20508    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     20509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     20510    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     20511echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     20512    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     20513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     20514    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     20515echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     20516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     20517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     20518    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     20519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     20520    (
     20521      cat <<\_ASBOX
     20522## --------------------------------------------------------------- ##
     20523## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     20524## --------------------------------------------------------------- ##
     20525_ASBOX
     20526    ) |
     20527      sed "s/^/$as_me: WARNING:     /" >&2
     20528    ;;
     20529esac
     20530echo "$as_me:$LINENO: checking for $ac_header" >&5
     20531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20532if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20533  echo $ECHO_N "(cached) $ECHO_C" >&6
     20534else
     20535  eval "$as_ac_Header=\$ac_header_preproc"
     20536fi
     20537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20539
     20540fi
     20541if test `eval echo '${'$as_ac_Header'}'` = yes; then
     20542  cat >>confdefs.h <<_ACEOF
     20543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     20544_ACEOF
     20545 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
     20546echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
     20547if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
     20548  echo $ECHO_N "(cached) $ECHO_C" >&6
     20549else
     20550  ac_check_lib_save_LIBS=$LIBS
     20551LIBS="-lgmp  $LIBS"
     20552cat >conftest.$ac_ext <<_ACEOF
     20553/* confdefs.h.  */
     20554_ACEOF
     20555cat confdefs.h >>conftest.$ac_ext
     20556cat >>conftest.$ac_ext <<_ACEOF
     20557/* end confdefs.h.  */
     20558
     20559/* Override any gcc2 internal prototype to avoid an error.  */
     20560#ifdef __cplusplus
     20561extern "C"
     20562#endif
     20563/* We use char because int might match the return type of a gcc2
     20564   builtin and then its argument prototype would still apply.  */
     20565char __gmpz_init ();
     20566int
     20567main ()
     20568{
     20569__gmpz_init ();
     20570  ;
     20571  return 0;
     20572}
     20573_ACEOF
     20574rm -f conftest.$ac_objext conftest$ac_exeext
     20575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20576  (eval $ac_link) 2>conftest.er1
     20577  ac_status=$?
     20578  grep -v '^ *+' conftest.er1 >conftest.err
     20579  rm -f conftest.er1
     20580  cat conftest.err >&5
     20581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20582  (exit $ac_status); } &&
     20583         { ac_try='test -z "$ac_c_werror_flag"
     20584                         || test ! -s conftest.err'
     20585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20586  (eval $ac_try) 2>&5
     20587  ac_status=$?
     20588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20589  (exit $ac_status); }; } &&
     20590         { ac_try='test -s conftest$ac_exeext'
     20591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20592  (eval $ac_try) 2>&5
     20593  ac_status=$?
     20594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20595  (exit $ac_status); }; }; then
     20596  ac_cv_lib_gmp___gmpz_init=yes
     20597else
     20598  echo "$as_me: failed program was:" >&5
     20599sed 's/^/| /' conftest.$ac_ext >&5
     20600
     20601ac_cv_lib_gmp___gmpz_init=no
     20602fi
     20603rm -f conftest.err conftest.$ac_objext \
     20604      conftest$ac_exeext conftest.$ac_ext
     20605LIBS=$ac_check_lib_save_LIBS
     20606fi
     20607echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
     20608echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
     20609if test $ac_cv_lib_gmp___gmpz_init = yes; then
     20610  coin_has_gmp=yes
     20611fi
     20612
     20613fi
     20614
     20615done
     20616
     20617
     20618  if test $coin_has_gmp = yes; then
     20619
     20620cat >>confdefs.h <<\_ACEOF
     20621#define HAVE_GMP 1
     20622_ACEOF
     20623
     20624    ADDLIBS="-lgmp $ADDLIBS"
     20625  fi
     20626fi
     20627
     20628echo "$as_me:$LINENO: checking for vsnprintf" >&5
     20629echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
     20630if test "${ac_cv_func_vsnprintf+set}" = set; then
     20631  echo $ECHO_N "(cached) $ECHO_C" >&6
     20632else
     20633  cat >conftest.$ac_ext <<_ACEOF
     20634/* confdefs.h.  */
     20635_ACEOF
     20636cat confdefs.h >>conftest.$ac_ext
     20637cat >>conftest.$ac_ext <<_ACEOF
     20638/* end confdefs.h.  */
     20639/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
     20640   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     20641#define vsnprintf innocuous_vsnprintf
     20642
     20643/* System header to define __stub macros and hopefully few prototypes,
     20644    which can conflict with char vsnprintf (); below.
     20645    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     20646    <limits.h> exists even on freestanding compilers.  */
     20647
     20648#ifdef __STDC__
     20649# include <limits.h>
     20650#else
     20651# include <assert.h>
     20652#endif
     20653
     20654#undef vsnprintf
     20655
     20656/* Override any gcc2 internal prototype to avoid an error.  */
     20657#ifdef __cplusplus
     20658extern "C"
     20659{
     20660#endif
     20661/* We use char because int might match the return type of a gcc2
     20662   builtin and then its argument prototype would still apply.  */
     20663char vsnprintf ();
     20664/* The GNU C library defines this for functions which it implements
     20665    to always fail with ENOSYS.  Some functions are actually named
     20666    something starting with __ and the normal name is an alias.  */
     20667#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
     20668choke me
     20669#else
     20670char (*f) () = vsnprintf;
     20671#endif
     20672#ifdef __cplusplus
     20673}
     20674#endif
     20675
     20676int
     20677main ()
     20678{
     20679return f != vsnprintf;
     20680  ;
     20681  return 0;
     20682}
     20683_ACEOF
     20684rm -f conftest.$ac_objext conftest$ac_exeext
     20685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20686  (eval $ac_link) 2>conftest.er1
     20687  ac_status=$?
     20688  grep -v '^ *+' conftest.er1 >conftest.err
     20689  rm -f conftest.er1
     20690  cat conftest.err >&5
     20691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20692  (exit $ac_status); } &&
     20693         { ac_try='test -z "$ac_c_werror_flag"
     20694                         || test ! -s conftest.err'
     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); }; } &&
     20700         { ac_try='test -s conftest$ac_exeext'
     20701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20702  (eval $ac_try) 2>&5
     20703  ac_status=$?
     20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20705  (exit $ac_status); }; }; then
     20706  ac_cv_func_vsnprintf=yes
     20707else
     20708  echo "$as_me: failed program was:" >&5
     20709sed 's/^/| /' conftest.$ac_ext >&5
     20710
     20711ac_cv_func_vsnprintf=no
     20712fi
     20713rm -f conftest.err conftest.$ac_objext \
     20714      conftest$ac_exeext conftest.$ac_ext
     20715fi
     20716echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
     20717echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
     20718
     20719
     20720ac_ext=c
     20721ac_cpp='$CPP $CPPFLAGS'
     20722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20724ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20725
     20726
     20727###########################################################################
     20728#                     Database connectivity                               #
     20729###########################################################################
     20730
     20731#whether we have any means to load shared libraries
     20732enable_dl=no
     20733
     20734ac_ext=c
     20735ac_cpp='$CPP $CPPFLAGS'
     20736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20738ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20739
     20740
     20741#if test x"" = x; then
     20742#  hdr="#include <dlfcn.h>"
     20743#else
     20744#  hdr=""
     20745#fi
     20746#AC_CHECK_HEADERS([dlfcn.h],[enable_dl=yes],[],[$hdr])
     20747
     20748for ac_header in dlfcn.h
     20749do
     20750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     20751if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20752  echo "$as_me:$LINENO: checking for $ac_header" >&5
     20753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20754if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20755  echo $ECHO_N "(cached) $ECHO_C" >&6
     20756fi
     20757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20759else
     20760  # Is the header compilable?
     20761echo "$as_me:$LINENO: checking $ac_header usability" >&5
     20762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     20763cat >conftest.$ac_ext <<_ACEOF
     20764/* confdefs.h.  */
     20765_ACEOF
     20766cat confdefs.h >>conftest.$ac_ext
     20767cat >>conftest.$ac_ext <<_ACEOF
     20768/* end confdefs.h.  */
     20769$ac_includes_default
     20770#include <$ac_header>
     20771_ACEOF
     20772rm -f conftest.$ac_objext
     20773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20774  (eval $ac_compile) 2>conftest.er1
     20775  ac_status=$?
     20776  grep -v '^ *+' conftest.er1 >conftest.err
     20777  rm -f conftest.er1
     20778  cat conftest.err >&5
     20779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20780  (exit $ac_status); } &&
     20781         { ac_try='test -z "$ac_c_werror_flag"
     20782                         || test ! -s conftest.err'
     20783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20784  (eval $ac_try) 2>&5
     20785  ac_status=$?
     20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20787  (exit $ac_status); }; } &&
     20788         { ac_try='test -s conftest.$ac_objext'
     20789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20790  (eval $ac_try) 2>&5
     20791  ac_status=$?
     20792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20793  (exit $ac_status); }; }; then
     20794  ac_header_compiler=yes
     20795else
     20796  echo "$as_me: failed program was:" >&5
     20797sed 's/^/| /' conftest.$ac_ext >&5
     20798
     20799ac_header_compiler=no
     20800fi
     20801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     20803echo "${ECHO_T}$ac_header_compiler" >&6
     20804
     20805# Is the header present?
     20806echo "$as_me:$LINENO: checking $ac_header presence" >&5
     20807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     20808cat >conftest.$ac_ext <<_ACEOF
     20809/* confdefs.h.  */
     20810_ACEOF
     20811cat confdefs.h >>conftest.$ac_ext
     20812cat >>conftest.$ac_ext <<_ACEOF
     20813/* end confdefs.h.  */
     20814#include <$ac_header>
     20815_ACEOF
     20816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     20817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     20818  ac_status=$?
     20819  grep -v '^ *+' conftest.er1 >conftest.err
     20820  rm -f conftest.er1
     20821  cat conftest.err >&5
     20822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20823  (exit $ac_status); } >/dev/null; then
     20824  if test -s conftest.err; then
     20825    ac_cpp_err=$ac_c_preproc_warn_flag
     20826    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     20827  else
     20828    ac_cpp_err=
     20829  fi
     20830else
     20831  ac_cpp_err=yes
     20832fi
     20833if test -z "$ac_cpp_err"; then
     20834  ac_header_preproc=yes
     20835else
     20836  echo "$as_me: failed program was:" >&5
     20837sed 's/^/| /' conftest.$ac_ext >&5
     20838
     20839  ac_header_preproc=no
     20840fi
     20841rm -f conftest.err conftest.$ac_ext
     20842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     20843echo "${ECHO_T}$ac_header_preproc" >&6
     20844
     20845# So?  What about this header?
     20846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     20847  yes:no: )
     20848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     20849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     20850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     20851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     20852    ac_header_preproc=yes
     20853    ;;
     20854  no:yes:* )
     20855    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     20856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     20857    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     20858echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     20859    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     20860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     20861    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     20862echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     20863    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     20864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     20865    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     20866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     20867    (
     20868      cat <<\_ASBOX
     20869## --------------------------------------------------------------- ##
     20870## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     20871## --------------------------------------------------------------- ##
     20872_ASBOX
     20873    ) |
     20874      sed "s/^/$as_me: WARNING:     /" >&2
     20875    ;;
     20876esac
     20877echo "$as_me:$LINENO: checking for $ac_header" >&5
     20878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20879if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20880  echo $ECHO_N "(cached) $ECHO_C" >&6
     20881else
     20882  eval "$as_ac_Header=\$ac_header_preproc"
     20883fi
     20884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20886
     20887fi
     20888if test `eval echo '${'$as_ac_Header'}'` = yes; then
     20889  cat >>confdefs.h <<_ACEOF
     20890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     20891_ACEOF
     20892 enable_dl=yes
     20893fi
     20894
     20895done
     20896
     20897
     20898if test "$enable_dl" = "yes"; then
     20899  #if dlfcn.h is there, check also if libdl is there; if so, set corresponding define for GLPK
     20900  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     20901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     20902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     20903  echo $ECHO_N "(cached) $ECHO_C" >&6
     20904else
     20905  ac_check_lib_save_LIBS=$LIBS
     20906LIBS="-ldl  $LIBS"
     20907cat >conftest.$ac_ext <<_ACEOF
     20908/* confdefs.h.  */
     20909_ACEOF
     20910cat confdefs.h >>conftest.$ac_ext
     20911cat >>conftest.$ac_ext <<_ACEOF
     20912/* end confdefs.h.  */
     20913
     20914/* Override any gcc2 internal prototype to avoid an error.  */
     20915#ifdef __cplusplus
     20916extern "C"
     20917#endif
     20918/* We use char because int might match the return type of a gcc2
     20919   builtin and then its argument prototype would still apply.  */
     20920char dlopen ();
     20921int
     20922main ()
     20923{
     20924dlopen ();
     20925  ;
     20926  return 0;
     20927}
     20928_ACEOF
     20929rm -f conftest.$ac_objext conftest$ac_exeext
     20930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20931  (eval $ac_link) 2>conftest.er1
     20932  ac_status=$?
     20933  grep -v '^ *+' conftest.er1 >conftest.err
     20934  rm -f conftest.er1
     20935  cat conftest.err >&5
     20936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20937  (exit $ac_status); } &&
     20938         { ac_try='test -z "$ac_c_werror_flag"
     20939                         || test ! -s conftest.err'
     20940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20941  (eval $ac_try) 2>&5
     20942  ac_status=$?
     20943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20944  (exit $ac_status); }; } &&
     20945         { ac_try='test -s conftest$ac_exeext'
     20946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20947  (eval $ac_try) 2>&5
     20948  ac_status=$?
     20949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20950  (exit $ac_status); }; }; then
     20951  ac_cv_lib_dl_dlopen=yes
     20952else
     20953  echo "$as_me: failed program was:" >&5
     20954sed 's/^/| /' conftest.$ac_ext >&5
     20955
     20956ac_cv_lib_dl_dlopen=no
     20957fi
     20958rm -f conftest.err conftest.$ac_objext \
     20959      conftest$ac_exeext conftest.$ac_ext
     20960LIBS=$ac_check_lib_save_LIBS
     20961fi
     20962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     20963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     20964if test $ac_cv_lib_dl_dlopen = yes; then
     20965
     20966cat >>confdefs.h <<\_ACEOF
     20967#define HAVE_DLFCN 1
     20968_ACEOF
     20969
     20970else
     20971  enable_dl=no
     20972fi
     20973
     20974  if test $enable_dl = yes; then
     20975    ADDLIBS="-ldl $ADDLIBS"
     20976  fi
     20977fi
     20978
     20979if test "$enable_dl" = "no"; then
     20980#if test x"" = x; then
     20981#  hdr="#include <ltdl.h>"
     20982#else
     20983#  hdr=""
     20984#fi
     20985#AC_CHECK_HEADERS([ltdl.h],[enable_dl=yes],[],[$hdr])
     20986
     20987for ac_header in ltdl.h
     20988do
     20989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     20990if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20991  echo "$as_me:$LINENO: checking for $ac_header" >&5
     20992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     20993if eval "test \"\${$as_ac_Header+set}\" = set"; then
     20994  echo $ECHO_N "(cached) $ECHO_C" >&6
     20995fi
     20996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     20998else
     20999  # Is the header compilable?
     21000echo "$as_me:$LINENO: checking $ac_header usability" >&5
     21001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     21002cat >conftest.$ac_ext <<_ACEOF
     21003/* confdefs.h.  */
     21004_ACEOF
     21005cat confdefs.h >>conftest.$ac_ext
     21006cat >>conftest.$ac_ext <<_ACEOF
     21007/* end confdefs.h.  */
     21008$ac_includes_default
     21009#include <$ac_header>
     21010_ACEOF
     21011rm -f conftest.$ac_objext
     21012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21013  (eval $ac_compile) 2>conftest.er1
     21014  ac_status=$?
     21015  grep -v '^ *+' conftest.er1 >conftest.err
     21016  rm -f conftest.er1
     21017  cat conftest.err >&5
     21018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21019  (exit $ac_status); } &&
     21020         { ac_try='test -z "$ac_c_werror_flag"
     21021                         || test ! -s conftest.err'
     21022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21023  (eval $ac_try) 2>&5
     21024  ac_status=$?
     21025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21026  (exit $ac_status); }; } &&
     21027         { ac_try='test -s conftest.$ac_objext'
     21028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21029  (eval $ac_try) 2>&5
     21030  ac_status=$?
     21031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21032  (exit $ac_status); }; }; then
     21033  ac_header_compiler=yes
     21034else
     21035  echo "$as_me: failed program was:" >&5
     21036sed 's/^/| /' conftest.$ac_ext >&5
     21037
     21038ac_header_compiler=no
     21039fi
     21040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     21042echo "${ECHO_T}$ac_header_compiler" >&6
     21043
     21044# Is the header present?
     21045echo "$as_me:$LINENO: checking $ac_header presence" >&5
     21046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     21047cat >conftest.$ac_ext <<_ACEOF
     21048/* confdefs.h.  */
     21049_ACEOF
     21050cat confdefs.h >>conftest.$ac_ext
     21051cat >>conftest.$ac_ext <<_ACEOF
     21052/* end confdefs.h.  */
     21053#include <$ac_header>
     21054_ACEOF
     21055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     21056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     21057  ac_status=$?
     21058  grep -v '^ *+' conftest.er1 >conftest.err
     21059  rm -f conftest.er1
     21060  cat conftest.err >&5
     21061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21062  (exit $ac_status); } >/dev/null; then
     21063  if test -s conftest.err; then
     21064    ac_cpp_err=$ac_c_preproc_warn_flag
     21065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     21066  else
     21067    ac_cpp_err=
     21068  fi
     21069else
     21070  ac_cpp_err=yes
     21071fi
     21072if test -z "$ac_cpp_err"; then
     21073  ac_header_preproc=yes
     21074else
     21075  echo "$as_me: failed program was:" >&5
     21076sed 's/^/| /' conftest.$ac_ext >&5
     21077
     21078  ac_header_preproc=no
     21079fi
     21080rm -f conftest.err conftest.$ac_ext
     21081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     21082echo "${ECHO_T}$ac_header_preproc" >&6
     21083
     21084# So?  What about this header?
     21085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     21086  yes:no: )
     21087    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     21088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     21089    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     21090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     21091    ac_header_preproc=yes
     21092    ;;
     21093  no:yes:* )
     21094    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     21095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     21096    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     21097echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     21098    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     21099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     21100    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     21101echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     21102    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     21103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     21104    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     21105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     21106    (
     21107      cat <<\_ASBOX
     21108## --------------------------------------------------------------- ##
     21109## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     21110## --------------------------------------------------------------- ##
     21111_ASBOX
     21112    ) |
     21113      sed "s/^/$as_me: WARNING:     /" >&2
     21114    ;;
     21115esac
     21116echo "$as_me:$LINENO: checking for $ac_header" >&5
     21117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21118if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21119  echo $ECHO_N "(cached) $ECHO_C" >&6
     21120else
     21121  eval "$as_ac_Header=\$ac_header_preproc"
     21122fi
     21123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21125
     21126fi
     21127if test `eval echo '${'$as_ac_Header'}'` = yes; then
     21128  cat >>confdefs.h <<_ACEOF
     21129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     21130_ACEOF
     21131 enable_dl=yes
     21132fi
     21133
     21134done
     21135
     21136
     21137  if test "$enable_dl" = "yes"; then
     21138    #if ltdl.h is there, check also if libltdl is there; if so, set corresponding define for GLPK
     21139    echo "$as_me:$LINENO: checking for lt_dlopen in -lldtl" >&5
     21140echo $ECHO_N "checking for lt_dlopen in -lldtl... $ECHO_C" >&6
     21141if test "${ac_cv_lib_ldtl_lt_dlopen+set}" = set; then
     21142  echo $ECHO_N "(cached) $ECHO_C" >&6
     21143else
     21144  ac_check_lib_save_LIBS=$LIBS
     21145LIBS="-lldtl  $LIBS"
     21146cat >conftest.$ac_ext <<_ACEOF
     21147/* confdefs.h.  */
     21148_ACEOF
     21149cat confdefs.h >>conftest.$ac_ext
     21150cat >>conftest.$ac_ext <<_ACEOF
     21151/* end confdefs.h.  */
     21152
     21153/* Override any gcc2 internal prototype to avoid an error.  */
     21154#ifdef __cplusplus
     21155extern "C"
     21156#endif
     21157/* We use char because int might match the return type of a gcc2
     21158   builtin and then its argument prototype would still apply.  */
     21159char lt_dlopen ();
     21160int
     21161main ()
     21162{
     21163lt_dlopen ();
     21164  ;
     21165  return 0;
     21166}
     21167_ACEOF
     21168rm -f conftest.$ac_objext conftest$ac_exeext
     21169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21170  (eval $ac_link) 2>conftest.er1
     21171  ac_status=$?
     21172  grep -v '^ *+' conftest.er1 >conftest.err
     21173  rm -f conftest.er1
     21174  cat conftest.err >&5
     21175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21176  (exit $ac_status); } &&
     21177         { ac_try='test -z "$ac_c_werror_flag"
     21178                         || test ! -s conftest.err'
     21179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21180  (eval $ac_try) 2>&5
     21181  ac_status=$?
     21182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21183  (exit $ac_status); }; } &&
     21184         { ac_try='test -s conftest$ac_exeext'
     21185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21186  (eval $ac_try) 2>&5
     21187  ac_status=$?
     21188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21189  (exit $ac_status); }; }; then
     21190  ac_cv_lib_ldtl_lt_dlopen=yes
     21191else
     21192  echo "$as_me: failed program was:" >&5
     21193sed 's/^/| /' conftest.$ac_ext >&5
     21194
     21195ac_cv_lib_ldtl_lt_dlopen=no
     21196fi
     21197rm -f conftest.err conftest.$ac_objext \
     21198      conftest$ac_exeext conftest.$ac_ext
     21199LIBS=$ac_check_lib_save_LIBS
     21200fi
     21201echo "$as_me:$LINENO: result: $ac_cv_lib_ldtl_lt_dlopen" >&5
     21202echo "${ECHO_T}$ac_cv_lib_ldtl_lt_dlopen" >&6
     21203if test $ac_cv_lib_ldtl_lt_dlopen = yes; then
     21204
     21205cat >>confdefs.h <<\_ACEOF
     21206#define HAVE_LTDL 1
     21207_ACEOF
     21208
     21209else
     21210  enable_dl=no
     21211fi
     21212
     21213    if test $enable_dl = yes; then
     21214      ADDLIBS="-lltdl $ADDLIBS"
     21215    fi
     21216  fi
     21217fi
     21218
     21219if test "$enable_dl" = "no"; then
     21220  #if test x"" = x; then
     21221#  hdr="#include <windows.h>"
     21222#else
     21223#  hdr=""
     21224#fi
     21225#AC_CHECK_HEADERS([windows.h],[enable_dl=yes],[],[$hdr])
     21226
     21227for ac_header in windows.h
     21228do
     21229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     21230if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21231  echo "$as_me:$LINENO: checking for $ac_header" >&5
     21232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21233if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21234  echo $ECHO_N "(cached) $ECHO_C" >&6
     21235fi
     21236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21238else
     21239  # Is the header compilable?
     21240echo "$as_me:$LINENO: checking $ac_header usability" >&5
     21241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     21242cat >conftest.$ac_ext <<_ACEOF
     21243/* confdefs.h.  */
     21244_ACEOF
     21245cat confdefs.h >>conftest.$ac_ext
     21246cat >>conftest.$ac_ext <<_ACEOF
     21247/* end confdefs.h.  */
     21248$ac_includes_default
     21249#include <$ac_header>
     21250_ACEOF
     21251rm -f conftest.$ac_objext
     21252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21253  (eval $ac_compile) 2>conftest.er1
     21254  ac_status=$?
     21255  grep -v '^ *+' conftest.er1 >conftest.err
     21256  rm -f conftest.er1
     21257  cat conftest.err >&5
     21258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21259  (exit $ac_status); } &&
     21260         { ac_try='test -z "$ac_c_werror_flag"
     21261                         || test ! -s conftest.err'
     21262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21263  (eval $ac_try) 2>&5
     21264  ac_status=$?
     21265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21266  (exit $ac_status); }; } &&
     21267         { ac_try='test -s conftest.$ac_objext'
     21268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21269  (eval $ac_try) 2>&5
     21270  ac_status=$?
     21271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21272  (exit $ac_status); }; }; then
     21273  ac_header_compiler=yes
     21274else
     21275  echo "$as_me: failed program was:" >&5
     21276sed 's/^/| /' conftest.$ac_ext >&5
     21277
     21278ac_header_compiler=no
     21279fi
     21280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     21282echo "${ECHO_T}$ac_header_compiler" >&6
     21283
     21284# Is the header present?
     21285echo "$as_me:$LINENO: checking $ac_header presence" >&5
     21286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     21287cat >conftest.$ac_ext <<_ACEOF
     21288/* confdefs.h.  */
     21289_ACEOF
     21290cat confdefs.h >>conftest.$ac_ext
     21291cat >>conftest.$ac_ext <<_ACEOF
     21292/* end confdefs.h.  */
     21293#include <$ac_header>
     21294_ACEOF
     21295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     21296  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     21297  ac_status=$?
     21298  grep -v '^ *+' conftest.er1 >conftest.err
     21299  rm -f conftest.er1
     21300  cat conftest.err >&5
     21301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21302  (exit $ac_status); } >/dev/null; then
     21303  if test -s conftest.err; then
     21304    ac_cpp_err=$ac_c_preproc_warn_flag
     21305    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     21306  else
     21307    ac_cpp_err=
     21308  fi
     21309else
     21310  ac_cpp_err=yes
     21311fi
     21312if test -z "$ac_cpp_err"; then
     21313  ac_header_preproc=yes
     21314else
     21315  echo "$as_me: failed program was:" >&5
     21316sed 's/^/| /' conftest.$ac_ext >&5
     21317
     21318  ac_header_preproc=no
     21319fi
     21320rm -f conftest.err conftest.$ac_ext
     21321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     21322echo "${ECHO_T}$ac_header_preproc" >&6
     21323
     21324# So?  What about this header?
     21325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     21326  yes:no: )
     21327    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     21328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     21329    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     21330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     21331    ac_header_preproc=yes
     21332    ;;
     21333  no:yes:* )
     21334    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     21335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     21336    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     21337echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     21338    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     21339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     21340    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     21341echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     21342    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     21343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     21344    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     21345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     21346    (
     21347      cat <<\_ASBOX
     21348## --------------------------------------------------------------- ##
     21349## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     21350## --------------------------------------------------------------- ##
     21351_ASBOX
     21352    ) |
     21353      sed "s/^/$as_me: WARNING:     /" >&2
     21354    ;;
     21355esac
     21356echo "$as_me:$LINENO: checking for $ac_header" >&5
     21357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21358if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21359  echo $ECHO_N "(cached) $ECHO_C" >&6
     21360else
     21361  eval "$as_ac_Header=\$ac_header_preproc"
     21362fi
     21363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21365
     21366fi
     21367if test `eval echo '${'$as_ac_Header'}'` = yes; then
     21368  cat >>confdefs.h <<_ACEOF
     21369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     21370_ACEOF
     21371 enable_dl=yes
     21372fi
     21373
     21374done
     21375
     21376
     21377  if test "$enable_dl" = "yes"; then
     21378
     21379cat >>confdefs.h <<\_ACEOF
     21380#define __WOE__ 1
     21381_ACEOF
     21382
     21383  fi
     21384fi
     21385
     21386# Check whether --enable-odbc or --disable-odbc was given.
     21387if test "${enable_odbc+set}" = set; then
     21388  enableval="$enable_odbc"
     21389  case $enableval in
     21390           yes | unix)
     21391       #if test x"" = x; then
     21392#  hdr="#include <sql.h>"
     21393#else
     21394#  hdr=""
     21395#fi
     21396#AC_CHECK_HEADERS([sql.h],[],[AC_MSG_ERROR(["need sql.h to enable ODBC support"])],[$hdr])
     21397
     21398for ac_header in sql.h
     21399do
     21400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     21401if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21402  echo "$as_me:$LINENO: checking for $ac_header" >&5
     21403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21404if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21405  echo $ECHO_N "(cached) $ECHO_C" >&6
     21406fi
     21407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21409else
     21410  # Is the header compilable?
     21411echo "$as_me:$LINENO: checking $ac_header usability" >&5
     21412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     21413cat >conftest.$ac_ext <<_ACEOF
     21414/* confdefs.h.  */
     21415_ACEOF
     21416cat confdefs.h >>conftest.$ac_ext
     21417cat >>conftest.$ac_ext <<_ACEOF
     21418/* end confdefs.h.  */
     21419$ac_includes_default
     21420#include <$ac_header>
     21421_ACEOF
     21422rm -f conftest.$ac_objext
     21423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21424  (eval $ac_compile) 2>conftest.er1
     21425  ac_status=$?
     21426  grep -v '^ *+' conftest.er1 >conftest.err
     21427  rm -f conftest.er1
     21428  cat conftest.err >&5
     21429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21430  (exit $ac_status); } &&
     21431         { ac_try='test -z "$ac_c_werror_flag"
     21432                         || test ! -s conftest.err'
     21433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21434  (eval $ac_try) 2>&5
     21435  ac_status=$?
     21436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21437  (exit $ac_status); }; } &&
     21438         { ac_try='test -s conftest.$ac_objext'
     21439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21440  (eval $ac_try) 2>&5
     21441  ac_status=$?
     21442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21443  (exit $ac_status); }; }; then
     21444  ac_header_compiler=yes
     21445else
     21446  echo "$as_me: failed program was:" >&5
     21447sed 's/^/| /' conftest.$ac_ext >&5
     21448
     21449ac_header_compiler=no
     21450fi
     21451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     21453echo "${ECHO_T}$ac_header_compiler" >&6
     21454
     21455# Is the header present?
     21456echo "$as_me:$LINENO: checking $ac_header presence" >&5
     21457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     21458cat >conftest.$ac_ext <<_ACEOF
     21459/* confdefs.h.  */
     21460_ACEOF
     21461cat confdefs.h >>conftest.$ac_ext
     21462cat >>conftest.$ac_ext <<_ACEOF
     21463/* end confdefs.h.  */
     21464#include <$ac_header>
     21465_ACEOF
     21466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     21467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     21468  ac_status=$?
     21469  grep -v '^ *+' conftest.er1 >conftest.err
     21470  rm -f conftest.er1
     21471  cat conftest.err >&5
     21472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21473  (exit $ac_status); } >/dev/null; then
     21474  if test -s conftest.err; then
     21475    ac_cpp_err=$ac_c_preproc_warn_flag
     21476    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     21477  else
     21478    ac_cpp_err=
     21479  fi
     21480else
     21481  ac_cpp_err=yes
     21482fi
     21483if test -z "$ac_cpp_err"; then
     21484  ac_header_preproc=yes
     21485else
     21486  echo "$as_me: failed program was:" >&5
     21487sed 's/^/| /' conftest.$ac_ext >&5
     21488
     21489  ac_header_preproc=no
     21490fi
     21491rm -f conftest.err conftest.$ac_ext
     21492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     21493echo "${ECHO_T}$ac_header_preproc" >&6
     21494
     21495# So?  What about this header?
     21496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     21497  yes:no: )
     21498    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     21499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     21500    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     21501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     21502    ac_header_preproc=yes
     21503    ;;
     21504  no:yes:* )
     21505    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     21506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     21507    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     21508echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     21509    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     21510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     21511    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     21512echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     21513    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     21514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     21515    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     21516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     21517    (
     21518      cat <<\_ASBOX
     21519## --------------------------------------------------------------- ##
     21520## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     21521## --------------------------------------------------------------- ##
     21522_ASBOX
     21523    ) |
     21524      sed "s/^/$as_me: WARNING:     /" >&2
     21525    ;;
     21526esac
     21527echo "$as_me:$LINENO: checking for $ac_header" >&5
     21528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21529if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21530  echo $ECHO_N "(cached) $ECHO_C" >&6
     21531else
     21532  eval "$as_ac_Header=\$ac_header_preproc"
     21533fi
     21534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21536
     21537fi
     21538if test `eval echo '${'$as_ac_Header'}'` = yes; then
     21539  cat >>confdefs.h <<_ACEOF
     21540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     21541_ACEOF
     21542
     21543else
     21544  { { echo "$as_me:$LINENO: error: \"need sql.h to enable ODBC support\"" >&5
     21545echo "$as_me: error: \"need sql.h to enable ODBC support\"" >&2;}
     21546   { (exit 1); exit 1; }; }
     21547fi
     21548
     21549done
     21550
     21551
     21552       enable_odbc="$enableval"
     21553     ;;
     21554     no)
     21555       enable_odbc="no"
     21556     ;;
     21557           *)
     21558             { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-odbc" >&5
     21559echo "$as_me: error: invalid value '$enableval' for --enable-odbc" >&2;}
     21560   { (exit 1); exit 1; }; }
     21561           ;;
     21562   esac
     21563else
     21564  #if test x"" = x; then
     21565#  hdr="#include <sql.h>"
     21566#else
     21567#  hdr=""
     21568#fi
     21569#AC_CHECK_HEADERS([sql.h],[enable_odbc=yes],[enable_odbc=no],[$hdr])
     21570
     21571for ac_header in sql.h
     21572do
     21573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     21574if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21575  echo "$as_me:$LINENO: checking for $ac_header" >&5
     21576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21577if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21578  echo $ECHO_N "(cached) $ECHO_C" >&6
     21579fi
     21580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21582else
     21583  # Is the header compilable?
     21584echo "$as_me:$LINENO: checking $ac_header usability" >&5
     21585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     21586cat >conftest.$ac_ext <<_ACEOF
     21587/* confdefs.h.  */
     21588_ACEOF
     21589cat confdefs.h >>conftest.$ac_ext
     21590cat >>conftest.$ac_ext <<_ACEOF
     21591/* end confdefs.h.  */
     21592$ac_includes_default
     21593#include <$ac_header>
     21594_ACEOF
     21595rm -f conftest.$ac_objext
     21596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21597  (eval $ac_compile) 2>conftest.er1
     21598  ac_status=$?
     21599  grep -v '^ *+' conftest.er1 >conftest.err
     21600  rm -f conftest.er1
     21601  cat conftest.err >&5
     21602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21603  (exit $ac_status); } &&
     21604         { ac_try='test -z "$ac_c_werror_flag"
     21605                         || test ! -s conftest.err'
     21606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21607  (eval $ac_try) 2>&5
     21608  ac_status=$?
     21609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21610  (exit $ac_status); }; } &&
     21611         { ac_try='test -s conftest.$ac_objext'
     21612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21613  (eval $ac_try) 2>&5
     21614  ac_status=$?
     21615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21616  (exit $ac_status); }; }; then
     21617  ac_header_compiler=yes
     21618else
     21619  echo "$as_me: failed program was:" >&5
     21620sed 's/^/| /' conftest.$ac_ext >&5
     21621
     21622ac_header_compiler=no
     21623fi
     21624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     21626echo "${ECHO_T}$ac_header_compiler" >&6
     21627
     21628# Is the header present?
     21629echo "$as_me:$LINENO: checking $ac_header presence" >&5
     21630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     21631cat >conftest.$ac_ext <<_ACEOF
     21632/* confdefs.h.  */
     21633_ACEOF
     21634cat confdefs.h >>conftest.$ac_ext
     21635cat >>conftest.$ac_ext <<_ACEOF
     21636/* end confdefs.h.  */
     21637#include <$ac_header>
     21638_ACEOF
     21639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     21640  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     21641  ac_status=$?
     21642  grep -v '^ *+' conftest.er1 >conftest.err
     21643  rm -f conftest.er1
     21644  cat conftest.err >&5
     21645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21646  (exit $ac_status); } >/dev/null; then
     21647  if test -s conftest.err; then
     21648    ac_cpp_err=$ac_c_preproc_warn_flag
     21649    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     21650  else
     21651    ac_cpp_err=
     21652  fi
     21653else
     21654  ac_cpp_err=yes
     21655fi
     21656if test -z "$ac_cpp_err"; then
     21657  ac_header_preproc=yes
     21658else
     21659  echo "$as_me: failed program was:" >&5
     21660sed 's/^/| /' conftest.$ac_ext >&5
     21661
     21662  ac_header_preproc=no
     21663fi
     21664rm -f conftest.err conftest.$ac_ext
     21665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     21666echo "${ECHO_T}$ac_header_preproc" >&6
     21667
     21668# So?  What about this header?
     21669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     21670  yes:no: )
     21671    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     21672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     21673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     21674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     21675    ac_header_preproc=yes
     21676    ;;
     21677  no:yes:* )
     21678    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     21679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     21680    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     21681echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     21682    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     21683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     21684    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     21685echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     21686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     21687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     21688    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     21689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     21690    (
     21691      cat <<\_ASBOX
     21692## --------------------------------------------------------------- ##
     21693## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     21694## --------------------------------------------------------------- ##
     21695_ASBOX
     21696    ) |
     21697      sed "s/^/$as_me: WARNING:     /" >&2
     21698    ;;
     21699esac
     21700echo "$as_me:$LINENO: checking for $ac_header" >&5
     21701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21702if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21703  echo $ECHO_N "(cached) $ECHO_C" >&6
     21704else
     21705  eval "$as_ac_Header=\$ac_header_preproc"
     21706fi
     21707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21709
     21710fi
     21711if test `eval echo '${'$as_ac_Header'}'` = yes; then
     21712  cat >>confdefs.h <<_ACEOF
     21713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     21714_ACEOF
     21715 enable_odbc=yes
     21716else
     21717  enable_odbc=no
     21718fi
     21719
     21720done
     21721
     21722
     21723
     21724fi;
     21725
     21726# Check whether --enable-mysql or --disable-mysql was given.
     21727if test "${enable_mysql+set}" = set; then
     21728  enableval="$enable_mysql"
     21729  case $enableval in
     21730           yes)
     21731       #if test x"" = x; then
     21732#  hdr="#include <mysql.h mysql/mysql.h>"
     21733#else
     21734#  hdr=""
     21735#fi
     21736#AC_CHECK_HEADERS([mysql.h mysql/mysql.h],[],[AC_MSG_ERROR(["need mysql.h to enable MySQL support"])],[$hdr])
     21737
     21738
     21739for ac_header in mysql.h mysql/mysql.h
     21740do
     21741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     21742if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21743  echo "$as_me:$LINENO: checking for $ac_header" >&5
     21744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21745if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21746  echo $ECHO_N "(cached) $ECHO_C" >&6
     21747fi
     21748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21750else
     21751  # Is the header compilable?
     21752echo "$as_me:$LINENO: checking $ac_header usability" >&5
     21753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     21754cat >conftest.$ac_ext <<_ACEOF
     21755/* confdefs.h.  */
     21756_ACEOF
     21757cat confdefs.h >>conftest.$ac_ext
     21758cat >>conftest.$ac_ext <<_ACEOF
     21759/* end confdefs.h.  */
     21760$ac_includes_default
     21761#include <$ac_header>
     21762_ACEOF
     21763rm -f conftest.$ac_objext
     21764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21765  (eval $ac_compile) 2>conftest.er1
     21766  ac_status=$?
     21767  grep -v '^ *+' conftest.er1 >conftest.err
     21768  rm -f conftest.er1
     21769  cat conftest.err >&5
     21770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21771  (exit $ac_status); } &&
     21772         { ac_try='test -z "$ac_c_werror_flag"
     21773                         || test ! -s conftest.err'
     21774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21775  (eval $ac_try) 2>&5
     21776  ac_status=$?
     21777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21778  (exit $ac_status); }; } &&
     21779         { ac_try='test -s conftest.$ac_objext'
     21780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21781  (eval $ac_try) 2>&5
     21782  ac_status=$?
     21783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21784  (exit $ac_status); }; }; then
     21785  ac_header_compiler=yes
     21786else
     21787  echo "$as_me: failed program was:" >&5
     21788sed 's/^/| /' conftest.$ac_ext >&5
     21789
     21790ac_header_compiler=no
     21791fi
     21792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     21794echo "${ECHO_T}$ac_header_compiler" >&6
     21795
     21796# Is the header present?
     21797echo "$as_me:$LINENO: checking $ac_header presence" >&5
     21798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     21799cat >conftest.$ac_ext <<_ACEOF
     21800/* confdefs.h.  */
     21801_ACEOF
     21802cat confdefs.h >>conftest.$ac_ext
     21803cat >>conftest.$ac_ext <<_ACEOF
     21804/* end confdefs.h.  */
     21805#include <$ac_header>
     21806_ACEOF
     21807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     21808  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     21809  ac_status=$?
     21810  grep -v '^ *+' conftest.er1 >conftest.err
     21811  rm -f conftest.er1
     21812  cat conftest.err >&5
     21813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21814  (exit $ac_status); } >/dev/null; then
     21815  if test -s conftest.err; then
     21816    ac_cpp_err=$ac_c_preproc_warn_flag
     21817    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     21818  else
     21819    ac_cpp_err=
     21820  fi
     21821else
     21822  ac_cpp_err=yes
     21823fi
     21824if test -z "$ac_cpp_err"; then
     21825  ac_header_preproc=yes
     21826else
     21827  echo "$as_me: failed program was:" >&5
     21828sed 's/^/| /' conftest.$ac_ext >&5
     21829
     21830  ac_header_preproc=no
     21831fi
     21832rm -f conftest.err conftest.$ac_ext
     21833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     21834echo "${ECHO_T}$ac_header_preproc" >&6
     21835
     21836# So?  What about this header?
     21837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     21838  yes:no: )
     21839    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     21840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     21841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     21842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     21843    ac_header_preproc=yes
     21844    ;;
     21845  no:yes:* )
     21846    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     21847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     21848    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     21849echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     21850    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     21851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     21852    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     21853echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     21854    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     21855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     21856    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     21857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     21858    (
     21859      cat <<\_ASBOX
     21860## --------------------------------------------------------------- ##
     21861## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     21862## --------------------------------------------------------------- ##
     21863_ASBOX
     21864    ) |
     21865      sed "s/^/$as_me: WARNING:     /" >&2
     21866    ;;
     21867esac
     21868echo "$as_me:$LINENO: checking for $ac_header" >&5
     21869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21870if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21871  echo $ECHO_N "(cached) $ECHO_C" >&6
     21872else
     21873  eval "$as_ac_Header=\$ac_header_preproc"
     21874fi
     21875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21877
     21878fi
     21879if test `eval echo '${'$as_ac_Header'}'` = yes; then
     21880  cat >>confdefs.h <<_ACEOF
     21881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     21882_ACEOF
     21883
     21884else
     21885  { { echo "$as_me:$LINENO: error: \"need mysql.h to enable MySQL support\"" >&5
     21886echo "$as_me: error: \"need mysql.h to enable MySQL support\"" >&2;}
     21887   { (exit 1); exit 1; }; }
     21888fi
     21889
     21890done
     21891
     21892
     21893       enable_mysql="$enableval"
     21894     ;;
     21895     no)
     21896       enable_mysql="no"
     21897     ;;
     21898           *)
     21899             { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-mysql" >&5
     21900echo "$as_me: error: invalid value '$enableval' for --enable-mysql" >&2;}
     21901   { (exit 1); exit 1; }; }
     21902           ;;
     21903   esac
     21904else
     21905  #if test x"" = x; then
     21906#  hdr="#include <mysql.h mysql/mysql.h>"
     21907#else
     21908#  hdr=""
     21909#fi
     21910#AC_CHECK_HEADERS([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no],[$hdr])
     21911
     21912
     21913for ac_header in mysql.h mysql/mysql.h
     21914do
     21915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     21916if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21917  echo "$as_me:$LINENO: checking for $ac_header" >&5
     21918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     21919if eval "test \"\${$as_ac_Header+set}\" = set"; then
     21920  echo $ECHO_N "(cached) $ECHO_C" >&6
     21921fi
     21922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     21923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     21924else
     21925  # Is the header compilable?
     21926echo "$as_me:$LINENO: checking $ac_header usability" >&5
     21927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     21928cat >conftest.$ac_ext <<_ACEOF
     21929/* confdefs.h.  */
     21930_ACEOF
     21931cat confdefs.h >>conftest.$ac_ext
     21932cat >>conftest.$ac_ext <<_ACEOF
     21933/* end confdefs.h.  */
     21934$ac_includes_default
     21935#include <$ac_header>
     21936_ACEOF
     21937rm -f conftest.$ac_objext
     21938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21939  (eval $ac_compile) 2>conftest.er1
     21940  ac_status=$?
     21941  grep -v '^ *+' conftest.er1 >conftest.err
     21942  rm -f conftest.er1
     21943  cat conftest.err >&5
     21944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21945  (exit $ac_status); } &&
     21946         { ac_try='test -z "$ac_c_werror_flag"
     21947                         || test ! -s conftest.err'
     21948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21949  (eval $ac_try) 2>&5
     21950  ac_status=$?
     21951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21952  (exit $ac_status); }; } &&
     21953         { ac_try='test -s conftest.$ac_objext'
     21954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21955  (eval $ac_try) 2>&5
     21956  ac_status=$?
     21957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21958  (exit $ac_status); }; }; then
     21959  ac_header_compiler=yes
     21960else
     21961  echo "$as_me: failed program was:" >&5
     21962sed 's/^/| /' conftest.$ac_ext >&5
     21963
     21964ac_header_compiler=no
     21965fi
     21966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     21968echo "${ECHO_T}$ac_header_compiler" >&6
     21969
     21970# Is the header present?
     21971echo "$as_me:$LINENO: checking $ac_header presence" >&5
     21972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     21973cat >conftest.$ac_ext <<_ACEOF
     21974/* confdefs.h.  */
     21975_ACEOF
     21976cat confdefs.h >>conftest.$ac_ext
     21977cat >>conftest.$ac_ext <<_ACEOF
     21978/* end confdefs.h.  */
     21979#include <$ac_header>
     21980_ACEOF
     21981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     21982  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     21983  ac_status=$?
     21984  grep -v '^ *+' conftest.er1 >conftest.err
     21985  rm -f conftest.er1
     21986  cat conftest.err >&5
     21987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21988  (exit $ac_status); } >/dev/null; then
     21989  if test -s conftest.err; then
     21990    ac_cpp_err=$ac_c_preproc_warn_flag
     21991    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     21992  else
     21993    ac_cpp_err=
     21994  fi
     21995else
     21996  ac_cpp_err=yes
     21997fi
     21998if test -z "$ac_cpp_err"; then
     21999  ac_header_preproc=yes
     22000else
     22001  echo "$as_me: failed program was:" >&5
     22002sed 's/^/| /' conftest.$ac_ext >&5
     22003
     22004  ac_header_preproc=no
     22005fi
     22006rm -f conftest.err conftest.$ac_ext
     22007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     22008echo "${ECHO_T}$ac_header_preproc" >&6
     22009
     22010# So?  What about this header?
     22011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     22012  yes:no: )
     22013    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     22014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     22015    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     22016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     22017    ac_header_preproc=yes
     22018    ;;
     22019  no:yes:* )
     22020    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     22021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     22022    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     22023echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     22024    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     22025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     22026    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     22027echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     22028    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     22029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     22030    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     22031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     22032    (
     22033      cat <<\_ASBOX
     22034## --------------------------------------------------------------- ##
     22035## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     22036## --------------------------------------------------------------- ##
     22037_ASBOX
     22038    ) |
     22039      sed "s/^/$as_me: WARNING:     /" >&2
     22040    ;;
     22041esac
     22042echo "$as_me:$LINENO: checking for $ac_header" >&5
     22043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     22044if eval "test \"\${$as_ac_Header+set}\" = set"; then
     22045  echo $ECHO_N "(cached) $ECHO_C" >&6
     22046else
     22047  eval "$as_ac_Header=\$ac_header_preproc"
     22048fi
     22049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     22050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     22051
     22052fi
     22053if test `eval echo '${'$as_ac_Header'}'` = yes; then
     22054  cat >>confdefs.h <<_ACEOF
     22055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     22056_ACEOF
     22057 enable_mysql=yes
     22058else
     22059  enable_mysql=no
     22060fi
     22061
     22062done
     22063
     22064
     22065
     22066fi;
     22067
     22068ac_ext=c
     22069ac_cpp='$CPP $CPPFLAGS'
     22070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22072ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22073
     22074
     22075if test "$enable_dl" = "yes" && ( test "$enable_odbc" = "yes" || test "$enable_odbc" = "unix"); then
     22076  echo "$as_me:$LINENO: checking checking name of ODBC library" >&5
     22077echo $ECHO_N "checking checking name of ODBC library... $ECHO_C" >&6
     22078  case $build in
     22079    *-cygwin* |  *-mingw32*)
     22080       case "$CC" in
     22081         *cl* )
     22082            odbclibname="odbc32.dll"
     22083         ;;
     22084         *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows?
     22085            if test "$enable_odbc" = "yes"; then
     22086              odbclibname="libiodbc.dll"
     22087            else
     22088              odbclibname="libodbc.dll"
     22089            fi
     22090         ;;
     22091       esac
     22092    ;;
     22093    *-mingw64*)
     22094       case "$CC" in
     22095         *cl* )
     22096            odbclibname="odbc64.dll"
     22097         ;;
     22098         *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows?
     22099            if test "$enable_odbc" = "yes"; then
     22100              odbclibname="libiodbc.dll"
     22101            else
     22102              odbclibname="libodbc.dll"
     22103            fi
     22104         ;;
     22105       esac
     22106    ;;
     22107    *-darwin*)
     22108       if test "$enable_odbc" = "yes"; then
     22109          odbclibname="libiodbc.dylib"
     22110       else
     22111          odbclibname="libodbc.dylib"
     22112       fi
     22113    ;;
     22114    *)
     22115       if test "$enable_odbc" = "yes"; then
     22116          odbclibname="libiodbc.so"
     22117       else
     22118          odbclibname="libodbc.so"
     22119       fi
     22120    ;;
     22121  esac
     22122
     22123
     22124cat >>confdefs.h <<_ACEOF
     22125#define ODBC_DLNAME "$odbclibname"
     22126_ACEOF
     22127
     22128  echo "$as_me:$LINENO: result: $odbclibname" >&5
     22129echo "${ECHO_T}$odbclibname" >&6
     22130fi
     22131
     22132if test "$enable_dl" = "yes" && test "$enable_mysql" = "yes" ; then
     22133  echo "$as_me:$LINENO: checking checking name of MySQL library" >&5
     22134echo $ECHO_N "checking checking name of MySQL library... $ECHO_C" >&6
     22135  case $build in
     22136    *-cygwin* |  *-mingw*)
     22137       case "$CC" in
     22138         *cl* )
     22139            mysqllibname="libmysql.dll"
     22140         ;;
     22141         *) #FIXME: what is the correct library name for using MySQL with gnu compiler under Windows?
     22142            mysqllibname="libmysqlclient.dll"
     22143            CFLAGS="-I/usr/include/mysql $CFLAGS"
     22144         ;;
     22145       esac
     22146    ;;
     22147    *-darwin*)
     22148       mysqllibname="libmysqlclient.dylib"
     22149       CFLAGS="-I/usr/include/mysql $CFLAGS"
     22150    ;;
     22151    *)
     22152       mysqllibname="libmysqlclient.so"
     22153       CFLAGS="-I/usr/include/mysql $CFLAGS"
     22154    ;;
     22155  esac
     22156
     22157
     22158cat >>confdefs.h <<_ACEOF
     22159#define MYSQL_DLNAME "$mysqllibname"
     22160_ACEOF
     22161
     22162  echo "$as_me:$LINENO: result: $mysqllibname" >&5
     22163echo "${ECHO_T}$mysqllibname" >&6
     22164fi
     22165
    2009922166GLPKDIR=glpk
    2010022167
    2010122168
    20102           ac_config_files="$ac_config_files Makefile"
     22169                    ac_config_files="$ac_config_files Makefile glpk_addlibs.txt"
     22170
     22171          ac_config_headers="$ac_config_headers config_glpk.h"
    2010322172
    2010422173
     
    2023422303fi
    2023522304
    20236 # Transform confdefs.h into DEFS.
    20237 # Protect against shell expansion while executing Makefile rules.
    20238 # Protect against Makefile macro expansion.
    20239 #
    20240 # If the first sed substitution is executed (which looks for macros that
    20241 # take arguments), then we branch to the quote section.  Otherwise,
    20242 # look for a macro that doesn't take arguments.
    20243 cat >confdef2opt.sed <<\_ACEOF
    20244 t clear
    20245 : clear
    20246 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
    20247 t quote
    20248 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
    20249 t quote
    20250 d
    20251 : quote
    20252 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
    20253 s,\[,\\&,g
    20254 s,\],\\&,g
    20255 s,\$,$$,g
    20256 p
    20257 _ACEOF
    20258 # We use echo to avoid assuming a particular line-breaking character.
    20259 # The extra dot is to prevent the shell from consuming trailing
    20260 # line-breaks from the sub-command output.  A line-break within
    20261 # single-quotes doesn't work because, if this script is created in a
    20262 # platform that uses two characters for line-breaks (e.g., DOS), tr
    20263 # would break.
    20264 ac_LF_and_DOT=`echo; echo .`
    20265 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
    20266 rm -f confdef2opt.sed
    20267 
     22305DEFS=-DHAVE_CONFIG_H
    2026822306
    2026922307ac_libobjs=
     
    2034222380Usually this means the macro was only invoked conditionally." >&5
    2034322381echo "$as_me: error: conditional \"COIN_BUILD_GLPK\" was never defined.
     22382Usually this means the macro was only invoked conditionally." >&2;}
     22383   { (exit 1); exit 1; }; }
     22384fi
     22385if test -z "${COIN_HAS_ZLIB_TRUE}" && test -z "${COIN_HAS_ZLIB_FALSE}"; then
     22386  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ZLIB\" was never defined.
     22387Usually this means the macro was only invoked conditionally." >&5
     22388echo "$as_me: error: conditional \"COIN_HAS_ZLIB\" was never defined.
    2034422389Usually this means the macro was only invoked conditionally." >&2;}
    2034522390   { (exit 1); exit 1; }; }
     
    2066222707  --file=FILE[:TEMPLATE]
    2066322708                   instantiate the configuration file FILE
     22709  --header=FILE[:TEMPLATE]
     22710                   instantiate the configuration header FILE
    2066422711
    2066522712Configuration files:
    2066622713$config_files
     22714
     22715Configuration headers:
     22716$config_headers
    2066722717
    2066822718Configuration commands:
     
    2078522835  # Handling of arguments.
    2078622836  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     22837  "glpk_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES glpk_addlibs.txt" ;;
    2078722838  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
     22839  "config_glpk.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_glpk.h" ;;
    2078822840  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    2078922841echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     
    2079822850if $ac_need_defaults; then
    2079922851  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     22852  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    2080022853  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    2080122854fi
     
    2096823021s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
    2096923022s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
     23023s,@GLPKOBJDIR@,$GLPKOBJDIR,;t t
    2097023024s,@COIN_BUILD_GLPK_TRUE@,$COIN_BUILD_GLPK_TRUE,;t t
    2097123025s,@COIN_BUILD_GLPK_FALSE@,$COIN_BUILD_GLPK_FALSE,;t t
    2097223026s,@MAKEOKFILE@,$MAKEOKFILE,;t t
     23027s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t
     23028s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t
    2097323029s,@GLPKDIR@,$GLPKDIR,;t t
    2097423030s,@LIBEXT@,$LIBEXT,;t t
     
    2121223268  fi
    2121323269
     23270done
     23271_ACEOF
     23272cat >>$CONFIG_STATUS <<\_ACEOF
     23273
     23274#
     23275# CONFIG_HEADER section.
     23276#
     23277
     23278# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     23279# NAME is the cpp macro being defined and VALUE is the value it is being given.
     23280#
     23281# ac_d sets the value in "#define NAME VALUE" lines.
     23282ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
     23283ac_dB='[         ].*$,\1#\2'
     23284ac_dC=' '
     23285ac_dD=',;t'
     23286# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     23287ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     23288ac_uB='$,\1#\2define\3'
     23289ac_uC=' '
     23290ac_uD=',;t'
     23291
     23292for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     23293  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     23294  case $ac_file in
     23295  - | *:- | *:-:* ) # input from stdin
     23296        cat >$tmp/stdin
     23297        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     23298        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     23299  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     23300        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     23301  * )   ac_file_in=$ac_file.in ;;
     23302  esac
     23303
     23304  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     23305echo "$as_me: creating $ac_file" >&6;}
     23306
     23307  # First look for the input files in the build tree, otherwise in the
     23308  # src tree.
     23309  ac_file_inputs=`IFS=:
     23310    for f in $ac_file_in; do
     23311      case $f in
     23312      -) echo $tmp/stdin ;;
     23313      [\\/$]*)
     23314         # Absolute (can't be DOS-style, as IFS=:)
     23315         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     23316echo "$as_me: error: cannot find input file: $f" >&2;}
     23317   { (exit 1); exit 1; }; }
     23318         # Do quote $f, to prevent DOS paths from being IFS'd.
     23319         echo "$f";;
     23320      *) # Relative
     23321         if test -f "$f"; then
     23322           # Build tree
     23323           echo "$f"
     23324         elif test -f "$srcdir/$f"; then
     23325           # Source tree
     23326           echo "$srcdir/$f"
     23327         else
     23328           # /dev/null tree
     23329           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     23330echo "$as_me: error: cannot find input file: $f" >&2;}
     23331   { (exit 1); exit 1; }; }
     23332         fi;;
     23333      esac
     23334    done` || { (exit 1); exit 1; }
     23335  # Remove the trailing spaces.
     23336  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
     23337
     23338_ACEOF
     23339
     23340# Transform confdefs.h into two sed scripts, `conftest.defines' and
     23341# `conftest.undefs', that substitutes the proper values into
     23342# config.h.in to produce config.h.  The first handles `#define'
     23343# templates, and the second `#undef' templates.
     23344# And first: Protect against being on the right side of a sed subst in
     23345# config.status.  Protect against being in an unquoted here document
     23346# in config.status.
     23347rm -f conftest.defines conftest.undefs
     23348# Using a here document instead of a string reduces the quoting nightmare.
     23349# Putting comments in sed scripts is not portable.
     23350#
     23351# `end' is used to avoid that the second main sed command (meant for
     23352# 0-ary CPP macros) applies to n-ary macro definitions.
     23353# See the Autoconf documentation for `clear'.
     23354cat >confdef2sed.sed <<\_ACEOF
     23355s/[\\&,]/\\&/g
     23356s,[\\$`],\\&,g
     23357t clear
     23358: clear
     23359s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     23360t end
     23361s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     23362: end
     23363_ACEOF
     23364# If some macros were called several times there might be several times
     23365# the same #defines, which is useless.  Nevertheless, we may not want to
     23366# sort them, since we want the *last* AC-DEFINE to be honored.
     23367uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     23368sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     23369rm -f confdef2sed.sed
     23370
     23371# This sed command replaces #undef with comments.  This is necessary, for
     23372# example, in the case of _POSIX_SOURCE, which is predefined and required
     23373# on some systems where configure will not decide to define it.
     23374cat >>conftest.undefs <<\_ACEOF
     23375s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     23376_ACEOF
     23377
     23378# Break up conftest.defines because some shells have a limit on the size
     23379# of here documents, and old seds have small limits too (100 cmds).
     23380echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     23381echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     23382echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     23383echo '  :' >>$CONFIG_STATUS
     23384rm -f conftest.tail
     23385while grep . conftest.defines >/dev/null
     23386do
     23387  # Write a limited-size here document to $tmp/defines.sed.
     23388  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     23389  # Speed up: don't consider the non `#define' lines.
     23390  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
     23391  # Work around the forget-to-reset-the-flag bug.
     23392  echo 't clr' >>$CONFIG_STATUS
     23393  echo ': clr' >>$CONFIG_STATUS
     23394  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     23395  echo 'CEOF
     23396  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     23397  rm -f $tmp/in
     23398  mv $tmp/out $tmp/in
     23399' >>$CONFIG_STATUS
     23400  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     23401  rm -f conftest.defines
     23402  mv conftest.tail conftest.defines
     23403done
     23404rm -f conftest.defines
     23405echo '  fi # grep' >>$CONFIG_STATUS
     23406echo >>$CONFIG_STATUS
     23407
     23408# Break up conftest.undefs because some shells have a limit on the size
     23409# of here documents, and old seds have small limits too (100 cmds).
     23410echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     23411rm -f conftest.tail
     23412while grep . conftest.undefs >/dev/null
     23413do
     23414  # Write a limited-size here document to $tmp/undefs.sed.
     23415  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     23416  # Speed up: don't consider the non `#undef'
     23417  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     23418  # Work around the forget-to-reset-the-flag bug.
     23419  echo 't clr' >>$CONFIG_STATUS
     23420  echo ': clr' >>$CONFIG_STATUS
     23421  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     23422  echo 'CEOF
     23423  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     23424  rm -f $tmp/in
     23425  mv $tmp/out $tmp/in
     23426' >>$CONFIG_STATUS
     23427  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     23428  rm -f conftest.undefs
     23429  mv conftest.tail conftest.undefs
     23430done
     23431rm -f conftest.undefs
     23432
     23433cat >>$CONFIG_STATUS <<\_ACEOF
     23434  # Let's still pretend it is `configure' which instantiates (i.e., don't
     23435  # use $as_me), people would be surprised to read:
     23436  #    /* config.h.  Generated by config.status.  */
     23437  if test x"$ac_file" = x-; then
     23438    echo "/* Generated by configure.  */" >$tmp/config.h
     23439  else
     23440    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     23441  fi
     23442  cat $tmp/in >>$tmp/config.h
     23443  rm -f $tmp/in
     23444  if test x"$ac_file" != x-; then
     23445    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     23446      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     23447echo "$as_me: $ac_file is unchanged" >&6;}
     23448    else
     23449      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     23450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     23451         X"$ac_file" : 'X\(//\)[^/]' \| \
     23452         X"$ac_file" : 'X\(//\)$' \| \
     23453         X"$ac_file" : 'X\(/\)' \| \
     23454         .     : '\(.\)' 2>/dev/null ||
     23455echo X"$ac_file" |
     23456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     23457          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     23458          /^X\(\/\/\)$/{ s//\1/; q; }
     23459          /^X\(\/\).*/{ s//\1/; q; }
     23460          s/.*/./; q'`
     23461      { if $as_mkdir_p; then
     23462    mkdir -p "$ac_dir"
     23463  else
     23464    as_dir="$ac_dir"
     23465    as_dirs=
     23466    while test ! -d "$as_dir"; do
     23467      as_dirs="$as_dir $as_dirs"
     23468      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     23469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     23470         X"$as_dir" : 'X\(//\)[^/]' \| \
     23471         X"$as_dir" : 'X\(//\)$' \| \
     23472         X"$as_dir" : 'X\(/\)' \| \
     23473         .     : '\(.\)' 2>/dev/null ||
     23474echo X"$as_dir" |
     23475    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     23476          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     23477          /^X\(\/\/\)$/{ s//\1/; q; }
     23478          /^X\(\/\).*/{ s//\1/; q; }
     23479          s/.*/./; q'`
     23480    done
     23481    test ! -n "$as_dirs" || mkdir $as_dirs
     23482  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     23483echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     23484   { (exit 1); exit 1; }; }; }
     23485
     23486      rm -f $ac_file
     23487      mv $tmp/config.h $ac_file
     23488    fi
     23489  else
     23490    cat $tmp/config.h
     23491    rm -f $tmp/config.h
     23492  fi
     23493# Compute $ac_file's index in $config_headers.
     23494_am_stamp_count=1
     23495for _am_header in $config_headers :; do
     23496  case $_am_header in
     23497    $ac_file | $ac_file:* )
     23498      break ;;
     23499    * )
     23500      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
     23501  esac
     23502done
     23503echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
     23504$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     23505         X$ac_file : 'X\(//\)[^/]' \| \
     23506         X$ac_file : 'X\(//\)$' \| \
     23507         X$ac_file : 'X\(/\)' \| \
     23508         .     : '\(.\)' 2>/dev/null ||
     23509echo X$ac_file |
     23510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     23511          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     23512          /^X\(\/\/\)$/{ s//\1/; q; }
     23513          /^X\(\/\).*/{ s//\1/; q; }
     23514          s/.*/./; q'`/stamp-h$_am_stamp_count
    2121423515done
    2121523516_ACEOF
  • ThirdParty/Glpk/trunk/configure.ac

    r1299 r1321  
    1 # Copyright (C) 2007-2008 Stefan Vigerske and others.
     1# Copyright (C) 2007-2009 Stefan Vigerske and others.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    8787AC_SUBST(MAKEOKFILE)
    8888
     89###########################################################################
     90#                 GNU packages and C functions                            #
     91###########################################################################
     92
     93ADDLIBS=
     94
     95AC_LANG_PUSH(C)
     96
     97AC_COIN_CHECK_GNU_ZLIB
     98if test $coin_has_zlib = "yes"; then
     99  AC_DEFINE([HAVE_ZLIB], [1], [Define to 1 if GNU zlib is available])
     100fi
     101
     102if test $coin_enable_gnu = yes; then
     103  coin_has_gmp=no
     104  AC_COIN_CHECK_HEADER([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])])
     105  if test $coin_has_gmp = yes; then
     106    AC_DEFINE([HAVE_GMP],[1],[Define to 1 if GMP is available])
     107    ADDLIBS="-lgmp $ADDLIBS"
     108  fi
     109fi
     110
     111AC_CHECK_FUNC([vsnprintf])
     112
     113AC_LANG_POP(C)
     114
     115###########################################################################
     116#                     Database connectivity                               #
     117###########################################################################
     118
     119#whether we have any means to load shared libraries
     120enable_dl=no
     121
     122AC_LANG_PUSH(C)
     123
     124AC_COIN_CHECK_HEADER([dlfcn.h],[enable_dl=yes])
     125if test "$enable_dl" = "yes"; then
     126  #if dlfcn.h is there, check also if libdl is there; if so, set corresponding define for GLPK
     127  AC_CHECK_LIB(dl,[dlopen],[AC_DEFINE([HAVE_DLFCN],[1],[Define to 1 if dlfcn support is available])],[enable_dl=no])
     128  if test $enable_dl = yes; then
     129    ADDLIBS="-ldl $ADDLIBS"
     130  fi
     131fi
     132
     133if test "$enable_dl" = "no"; then
     134AC_COIN_CHECK_HEADER([ltdl.h],[enable_dl=yes])
     135  if test "$enable_dl" = "yes"; then
     136    #if ltdl.h is there, check also if libltdl is there; if so, set corresponding define for GLPK
     137    AC_CHECK_LIB(ldtl,[lt_dlopen],[AC_DEFINE([HAVE_LTDL],[1],[Define to 1 if ltdl support is available])],[enable_dl=no])
     138    if test $enable_dl = yes; then
     139      ADDLIBS="-lltdl $ADDLIBS"
     140    fi
     141  fi
     142fi
     143
     144if test "$enable_dl" = "no"; then
     145  AC_COIN_CHECK_HEADER([windows.h],[enable_dl=yes])
     146  if test "$enable_dl" = "yes"; then
     147    AC_DEFINE([__WOE__],[1],[Define to 1 if windows dll support is available])
     148  fi
     149fi
     150
     151AC_ARG_ENABLE(odbc,
     152        AC_HELP_STRING([--enable-odbc],[enable MathProg ODBC support [[default=auto]]]),
     153        [case $enableval in
     154           yes | unix)
     155       AC_COIN_CHECK_HEADER([sql.h],,[AC_MSG_ERROR(["need sql.h to enable ODBC support"])])
     156       enable_odbc="$enableval"
     157     ;;
     158     no)
     159       enable_odbc="no"
     160     ;;
     161           *)
     162             AC_MSG_ERROR([invalid value '$enableval' for --enable-odbc])
     163           ;;
     164   esac],
     165        [AC_COIN_CHECK_HEADER([sql.h],[enable_odbc=yes],[enable_odbc=no])]
     166)
     167
     168AC_ARG_ENABLE(mysql,
     169        AC_HELP_STRING([--enable-mysql],[enable MathProg MySQL support [[default=auto]]]),
     170        [case $enableval in
     171           yes)
     172       AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],,[AC_MSG_ERROR(["need mysql.h to enable MySQL support"])])
     173       enable_mysql="$enableval"
     174     ;;
     175     no)
     176       enable_mysql="no"
     177     ;;
     178           *)
     179             AC_MSG_ERROR([invalid value '$enableval' for --enable-mysql])
     180           ;;
     181   esac],
     182        [AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no])]
     183)
     184
     185AC_LANG_POP(C)
     186       
     187if test "$enable_dl" = "yes" && ( test "$enable_odbc" = "yes" || test "$enable_odbc" = "unix"); then
     188  AC_MSG_CHECKING([checking name of ODBC library])
     189  case $build in
     190    *-cygwin* |  *-mingw32*)
     191       case "$CC" in
     192         *cl* )
     193            odbclibname="odbc32.dll"
     194         ;;
     195         *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows?
     196            if test "$enable_odbc" = "yes"; then
     197              odbclibname="libiodbc.dll"
     198            else
     199              odbclibname="libodbc.dll"
     200            fi
     201         ;;
     202       esac
     203    ;;
     204    *-mingw64*)
     205       case "$CC" in
     206         *cl* )
     207            odbclibname="odbc64.dll"
     208         ;;
     209         *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows?
     210            if test "$enable_odbc" = "yes"; then
     211              odbclibname="libiodbc.dll"
     212            else
     213              odbclibname="libodbc.dll"
     214            fi
     215         ;;
     216       esac
     217    ;;
     218    *-darwin*)
     219       if test "$enable_odbc" = "yes"; then
     220          odbclibname="libiodbc.dylib"
     221       else
     222          odbclibname="libodbc.dylib"
     223       fi
     224    ;;
     225    *)
     226       if test "$enable_odbc" = "yes"; then
     227          odbclibname="libiodbc.so"
     228       else
     229          odbclibname="libodbc.so"
     230       fi
     231    ;;
     232  esac
     233
     234  AC_DEFINE_UNQUOTED([ODBC_DLNAME], ["$odbclibname"], ["Set to the name of the ODBC dynamic library"])
     235  AC_MSG_RESULT([$odbclibname])
     236fi
     237
     238if test "$enable_dl" = "yes" && test "$enable_mysql" = "yes" ; then
     239  AC_MSG_CHECKING([checking name of MySQL library])
     240  case $build in
     241    *-cygwin* |  *-mingw*)
     242       case "$CC" in
     243         *cl* )
     244            mysqllibname="libmysql.dll"
     245         ;;
     246         *) #FIXME: what is the correct library name for using MySQL with gnu compiler under Windows?
     247            mysqllibname="libmysqlclient.dll"
     248            CFLAGS="-I/usr/include/mysql $CFLAGS"
     249         ;;
     250       esac
     251    ;;
     252    *-darwin*)
     253       mysqllibname="libmysqlclient.dylib"
     254       CFLAGS="-I/usr/include/mysql $CFLAGS"
     255    ;;
     256    *)
     257       mysqllibname="libmysqlclient.so"
     258       CFLAGS="-I/usr/include/mysql $CFLAGS"
     259    ;;
     260  esac
     261
     262  AC_DEFINE_UNQUOTED([MYSQL_DLNAME], ["$mysqllibname"], ["Set to the name of the MySQL dynamic library"])
     263  AC_MSG_RESULT([$mysqllibname])
     264fi
     265
    89266GLPKDIR=glpk
    90267AC_SUBST(GLPKDIR)
    91268
    92 AC_CONFIG_FILES([Makefile])
     269AC_CONFIG_FILES([Makefile glpk_addlibs.txt])
     270AC_CONFIG_HEADER([config_glpk.h])
    93271
    94272AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.