Changeset 487


Ignore:
Timestamp:
Jan 10, 2011 11:18:44 AM (9 years ago)
Author:
pbelotti
Message:

adopting new build system in trunk

Location:
trunk
Files:
1 deleted
333 edited
8 copied

Legend:

Unmodified
Added
Removed
  • trunk

    • Property Externals deleted
    • Property svn:externals
      •  

        old new  
        1 BuildTools  https://projects.coin-or.org/svn/BuildTools/releases/0.5.30
        2 CoinUtils  https://projects.coin-or.org/svn/CoinUtils/releases/2.6.4/CoinUtils
        3 ThirdParty/ASL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/releases/1.0.17
        4 ThirdParty/Blas  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/releases/1.0.14
        5 ThirdParty/HSL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/HSL/releases/1.1.4
        6 ThirdParty/Lapack  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/releases/1.0.21
        7 ThirdParty/Mumps  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/releases/1.1.8
        8 Cbc  https://projects.coin-or.org/svn/Cbc/releases/2.4.2/Cbc
        9 Cgl  https://projects.coin-or.org/svn/Cgl/releases/0.55.0/Cgl
        10 Clp  https://projects.coin-or.org/svn/Clp/releases/1.11.1/Clp
        11 Osi  https://projects.coin-or.org/svn/Osi/releases/0.102.3/Osi
        12 Ipopt  https://projects.coin-or.org/svn/Ipopt/releases/3.8.3/Ipopt
        13 Bonmin  https://projects.coin-or.org/svn/Bonmin/releases/1.4.1/Bonmin
         1BuildTools  https://projects.coin-or.org/svn/BuildTools/stable/0.7
         2CoinUtils  https://projects.coin-or.org/svn/CoinUtils/stable/2.8/CoinUtils
         3ThirdParty/ASL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.2
         4ThirdParty/Blas  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
         5ThirdParty/HSL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/HSL/stable/1.3
         6ThirdParty/Lapack  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
         7ThirdParty/Mumps  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/stable/1.4
         8ThirdParty/Metis  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/stable/1.2
         9Cbc  https://projects.coin-or.org/svn/Cbc/stable/2.7/Cbc
         10Cgl  https://projects.coin-or.org/svn/Cgl/stable/0.57/Cgl
         11Clp  https://projects.coin-or.org/svn/Clp/stable/1.14/Clp
         12Osi  https://projects.coin-or.org/svn/Osi/stable/0.105/Osi
         13Ipopt  https://projects.coin-or.org/svn/Ipopt/trunk/Ipopt
         14Bonmin  https://projects.coin-or.org/svn/Bonmin/trunk/Bonmin
    • Property svn:mergeinfo changed
      /branches/split (added)merged: 477-484
  • trunk/Couenne

  • trunk/Couenne/Makefile.am

    • Property svn:keywords set to Author Date Id Revision
    r393 r487  
    33# This file is distributed under the Common Public License.
    44
    5 ## $Id: Makefile.am 18 2006-12-08 21:33:13Z pbonami $
     5## $Id$
    66
    77# Author:  Andreas Waechter           IBM    2006-04-13
     
    1313########################################################################
    1414
    15 SUBDIRS = \
    16           src/util \
     15SUBDIRS = src/util \
    1716          src/expression
    1817
     
    6766        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    6867
     68install-exec-local: install-doc
     69
     70uninstall-local: uninstall-doc
     71
    6972.PHONY: test unitTest
    7073
     
    7376########################################################################
    7477
    75 addlibsfile = couenne_addlibs.txt
    76 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     78pkgconfiglibdir = $(libdir)/pkgconfig
     79pkgconfiglib_DATA = couenne.pc
    7780
    78 install-exec-local: install-doc
    79         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     81addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Couenne
    8082
    81 uninstall-local: uninstall-doc
    82         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     83install-data-hook:
     84        @$(mkdir_p) "$(addlibsdir)"
     85if COIN_HAS_PKGCONFIG
     86        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
     87        $(PKG_CONFIG) --libs couenne > $(addlibsdir)/couenne_addlibs.txt
     88else
     89if COIN_CXX_IS_CL
     90        echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libBonCouenne.lib libCouenne.lib @COUENNELIB_LIBS_INSTALLED@" > $(addlibsdir)/couenne_addlibs_cpp.txt
     91else
     92        echo -L@abs_lib_dir@ -lBonCouenne -lCouenne @COUENNELIB_LIBS_INSTALLED@ > $(addlibsdir)/couenne_addlibs.txt
     93endif
     94endif
     95
     96uninstall-hook:
     97        rm -f $(addlibsdir)/couenne_addlibs.txt
    8398
    8499########################################################################
     
    89104DISTCLEANFILES =
    90105
    91 include ../BuildTools/Makemain.inc
     106include BuildTools/Makemain.inc
  • trunk/Couenne/Makefile.in

    r393 r487  
    2323# Copyright (C) 2006, 2007 International Business Machines and others.
    2424# All Rights Reserved.
    25 # This file is distributed under the Common Public License.
     25# This file is distributed under the Eclipse Public License.
    2626
    2727# Author:  Andreas Waechter           IBM    2006-04-13
     
    3030#                    Documentation installation                        #
    3131########################################################################
     32
    3233srcdir = @srcdir@
    3334top_srcdir = @top_srcdir@
     
    5960@ALWAYS_FALSE@am__append_2 = test
    6061DIST_COMMON = README $(am__configure_deps) \
    61         $(srcdir)/../BuildTools/Makemain.inc $(srcdir)/../config.guess \
    62         $(srcdir)/../config.sub $(srcdir)/../install-sh \
    63         $(srcdir)/../ltmain.sh $(srcdir)/../missing \
    64         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    65         $(srcdir)/couenne_addlibs.txt.in $(top_srcdir)/configure \
    66         $(top_srcdir)/inc/config_couenne.h.in AUTHORS
     62        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     63        $(srcdir)/Makefile.in $(srcdir)/couenne-uninstalled.pc.in \
     64        $(srcdir)/couenne.pc.in $(top_srcdir)/configure \
     65        $(top_srcdir)/inc/config_couenne.h.in AUTHORS config.guess \
     66        config.sub depcomp install-sh ltmain.sh missing
    6767@HAVE_EXTERNALS_TRUE@am__append_3 = Externals
    6868@HAVE_EXTERNALS_TRUE@am__append_4 = .Externals-stamp
     
    7777mkinstalldirs = $(install_sh) -d
    7878CONFIG_HEADER = $(top_builddir)/inc/config_couenne.h
    79 CONFIG_CLEAN_FILES = couenne_addlibs.txt
     79CONFIG_CLEAN_FILES = couenne.pc couenne-uninstalled.pc
    8080SOURCES =
    8181DIST_SOURCES =
     
    8686        pdf-recursive ps-recursive uninstall-info-recursive \
    8787        uninstall-recursive
     88am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     89am__vpath_adj = case $$p in \
     90    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     91    *) f=$$p;; \
     92  esac;
     93am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     94am__installdirs = "$(DESTDIR)$(pkgconfiglibdir)"
     95pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     96DATA = $(pkgconfiglib_DATA)
    8897ETAGS = etags
    8998CTAGS = ctags
     
    104113distuninstallcheck_listfiles = find . -type f -print
    105114distcleancheck_listfiles = find . -type f -print
     115ABSBUILDDIR = @ABSBUILDDIR@
    106116ACLOCAL = @ACLOCAL@
    107 ADDLIBS = @ADDLIBS@
    108117ADD_CFLAGS = @ADD_CFLAGS@
    109118ADD_CXXFLAGS = @ADD_CXXFLAGS@
     
    114123AMTAR = @AMTAR@
    115124AR = @AR@
    116 ASLLIB = @ASLLIB@
    117 ASL_CPPFLAGS = @ASL_CPPFLAGS@
     125ASL_CFLAGS = @ASL_CFLAGS@
     126ASL_CFLAGS_INSTALLED = @ASL_CFLAGS_INSTALLED@
     127ASL_DATA = @ASL_DATA@
     128ASL_DATA_INSTALLED = @ASL_DATA_INSTALLED@
     129ASL_DEPENDENCIES = @ASL_DEPENDENCIES@
     130ASL_LIBS = @ASL_LIBS@
     131ASL_LIBS_INSTALLED = @ASL_LIBS_INSTALLED@
    118132AUTOCONF = @AUTOCONF@
    119133AUTOHEADER = @AUTOHEADER@
     
    121135AUX_DIR = @AUX_DIR@
    122136AWK = @AWK@
    123 BONMINDOCDIR = @BONMINDOCDIR@
    124 BONMINOBJDIR = @BONMINOBJDIR@
    125 BONMINSRCDIR = @BONMINSRCDIR@
     137BONMIN_CFLAGS = @BONMIN_CFLAGS@
     138BONMIN_CFLAGS_INSTALLED = @BONMIN_CFLAGS_INSTALLED@
     139BONMIN_DATA = @BONMIN_DATA@
     140BONMIN_DATA_INSTALLED = @BONMIN_DATA_INSTALLED@
     141BONMIN_DEPENDENCIES = @BONMIN_DEPENDENCIES@
     142BONMIN_LIBS = @BONMIN_LIBS@
     143BONMIN_LIBS_INSTALLED = @BONMIN_LIBS_INSTALLED@
    126144BUILDTOOLSDIR = @BUILDTOOLSDIR@
    127 CBCDOCDIR = @CBCDOCDIR@
    128 CBCOBJDIR = @CBCOBJDIR@
    129 CBCSRCDIR = @CBCSRCDIR@
    130145CC = @CC@
    131146CCDEPMODE = @CCDEPMODE@
    132147CDEFS = @CDEFS@
    133148CFLAGS = @CFLAGS@
    134 CGLDOCDIR = @CGLDOCDIR@
    135 CGLOBJDIR = @CGLOBJDIR@
    136 CGLSRCDIR = @CGLSRCDIR@
    137 CLPDOCDIR = @CLPDOCDIR@
    138 CLPOBJDIR = @CLPOBJDIR@
    139 CLPSRCDIR = @CLPSRCDIR@
    140 COINUTILSDOCDIR = @COINUTILSDOCDIR@
    141 COINUTILSOBJDIR = @COINUTILSOBJDIR@
    142 COINUTILSSRCDIR = @COINUTILSSRCDIR@
     149COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@
     150COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@
     151COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
     152COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
    143153COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    144154COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
    145155COIN_HAS_BONMIN_FALSE = @COIN_HAS_BONMIN_FALSE@
    146156COIN_HAS_BONMIN_TRUE = @COIN_HAS_BONMIN_TRUE@
    147 COIN_HAS_CBC_FALSE = @COIN_HAS_CBC_FALSE@
    148 COIN_HAS_CBC_TRUE = @COIN_HAS_CBC_TRUE@
    149 COIN_HAS_CGL_FALSE = @COIN_HAS_CGL_FALSE@
    150 COIN_HAS_CGL_TRUE = @COIN_HAS_CGL_TRUE@
    151 COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    152 COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    153 COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    154 COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
    155 COIN_HAS_COUENNE_FALSE = @COIN_HAS_COUENNE_FALSE@
    156 COIN_HAS_COUENNE_TRUE = @COIN_HAS_COUENNE_TRUE@
    157157COIN_HAS_CPX_FALSE = @COIN_HAS_CPX_FALSE@
    158158COIN_HAS_CPX_TRUE = @COIN_HAS_CPX_TRUE@
    159159COIN_HAS_GRB_FALSE = @COIN_HAS_GRB_FALSE@
    160160COIN_HAS_GRB_TRUE = @COIN_HAS_GRB_TRUE@
    161 COIN_HAS_IPOPT_FALSE = @COIN_HAS_IPOPT_FALSE@
    162 COIN_HAS_IPOPT_TRUE = @COIN_HAS_IPOPT_TRUE@
    163161COIN_HAS_MSK_FALSE = @COIN_HAS_MSK_FALSE@
    164162COIN_HAS_MSK_TRUE = @COIN_HAS_MSK_TRUE@
    165163COIN_HAS_NTY_FALSE = @COIN_HAS_NTY_FALSE@
    166164COIN_HAS_NTY_TRUE = @COIN_HAS_NTY_TRUE@
    167 COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    168 COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
    169 COIN_HAS_OSL_FALSE = @COIN_HAS_OSL_FALSE@
    170 COIN_HAS_OSL_TRUE = @COIN_HAS_OSL_TRUE@
     165COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     166COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    171167COIN_HAS_SPX_FALSE = @COIN_HAS_SPX_FALSE@
    172168COIN_HAS_SPX_TRUE = @COIN_HAS_SPX_TRUE@
    173 COIN_HAS_THIRDPARTY_FALSE = @COIN_HAS_THIRDPARTY_FALSE@
    174 COIN_HAS_THIRDPARTY_TRUE = @COIN_HAS_THIRDPARTY_TRUE@
    175169COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    176170COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
    177 COUENNEDOCDIR = @COUENNEDOCDIR@
    178 COUENNEOBJDIR = @COUENNEOBJDIR@
    179 COUENNESRCDIR = @COUENNESRCDIR@
     171COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
     172COIN_PKG_CONFIG_PATH_UNINSTALLED = @COIN_PKG_CONFIG_PATH_UNINSTALLED@
     173COUENNELIB_CFLAGS = @COUENNELIB_CFLAGS@
     174COUENNELIB_CFLAGS_INSTALLED = @COUENNELIB_CFLAGS_INSTALLED@
     175COUENNELIB_DEPENDENCIES = @COUENNELIB_DEPENDENCIES@
     176COUENNELIB_LIBS = @COUENNELIB_LIBS@
     177COUENNELIB_LIBS_INSTALLED = @COUENNELIB_LIBS_INSTALLED@
     178COUENNELIB_PCLIBS = @COUENNELIB_PCLIBS@
     179COUENNELIB_PCREQUIRES = @COUENNELIB_PCREQUIRES@
     180COUENNE_SVN_REV = @COUENNE_SVN_REV@
    180181CPP = @CPP@
    181182CPPFLAGS = @CPPFLAGS@
    182183CPXINCDIR = @CPXINCDIR@
    183 CPXLIB = @CPXLIB@
     184CPX_CFLAGS = @CPX_CFLAGS@
     185CPX_CFLAGS_INSTALLED = @CPX_CFLAGS_INSTALLED@
     186CPX_DATA = @CPX_DATA@
     187CPX_DATA_INSTALLED = @CPX_DATA_INSTALLED@
     188CPX_DEPENDENCIES = @CPX_DEPENDENCIES@
     189CPX_LIBS = @CPX_LIBS@
     190CPX_LIBS_INSTALLED = @CPX_LIBS_INSTALLED@
    184191CXX = @CXX@
    185192CXXCPP = @CXXCPP@
     
    199206EXEEXT = @EXEEXT@
    200207F77 = @F77@
    201 FADDLIBS = @FADDLIBS@
    202208FFLAGS = @FFLAGS@
    203 GRBINCDIR = @GRBINCDIR@
    204 GRBLIB = @GRBLIB@
     209GRB_CFLAGS = @GRB_CFLAGS@
     210GRB_CFLAGS_INSTALLED = @GRB_CFLAGS_INSTALLED@
     211GRB_DATA = @GRB_DATA@
     212GRB_DATA_INSTALLED = @GRB_DATA_INSTALLED@
     213GRB_DEPENDENCIES = @GRB_DEPENDENCIES@
     214GRB_LIBS = @GRB_LIBS@
     215GRB_LIBS_INSTALLED = @GRB_LIBS_INSTALLED@
    205216HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    206217HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    209220INSTALL_SCRIPT = @INSTALL_SCRIPT@
    210221INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    211 IPOPTDOCDIR = @IPOPTDOCDIR@
    212 IPOPTOBJDIR = @IPOPTOBJDIR@
    213 IPOPTSRCDIR = @IPOPTSRCDIR@
    214222LDFLAGS = @LDFLAGS@
    215223LIBEXT = @LIBEXT@
     
    227235MPICC = @MPICC@
    228236MPICXX = @MPICXX@
    229 MSKINCDIR = @MSKINCDIR@
    230 MSKLIB = @MSKLIB@
     237MSK_CFLAGS = @MSK_CFLAGS@
     238MSK_CFLAGS_INSTALLED = @MSK_CFLAGS_INSTALLED@
     239MSK_DATA = @MSK_DATA@
     240MSK_DATA_INSTALLED = @MSK_DATA_INSTALLED@
     241MSK_DEPENDENCIES = @MSK_DEPENDENCIES@
     242MSK_LIBS = @MSK_LIBS@
     243MSK_LIBS_INSTALLED = @MSK_LIBS_INSTALLED@
    231244NTYINCDIR = @NTYINCDIR@
    232245NTYLIB = @NTYLIB@
     
    234247OPT_CFLAGS = @OPT_CFLAGS@
    235248OPT_CXXFLAGS = @OPT_CXXFLAGS@
    236 OSIDOCDIR = @OSIDOCDIR@
    237 OSIOBJDIR = @OSIOBJDIR@
    238 OSISRCDIR = @OSISRCDIR@
    239 OSLINCDIR = @OSLINCDIR@
    240 OSLLIB = @OSLLIB@
    241249PACKAGE = @PACKAGE@
    242250PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    246254PACKAGE_VERSION = @PACKAGE_VERSION@
    247255PATH_SEPARATOR = @PATH_SEPARATOR@
     256PKG_CONFIG = @PKG_CONFIG@
    248257RANLIB = @RANLIB@
    249258RPATH_FLAGS = @RPATH_FLAGS@
    250259SET_MAKE = @SET_MAKE@
    251260SHELL = @SHELL@
    252 SPXINCDIR = @SPXINCDIR@
    253 SPXLIB = @SPXLIB@
     261SPX_CFLAGS = @SPX_CFLAGS@
     262SPX_CFLAGS_INSTALLED = @SPX_CFLAGS_INSTALLED@
     263SPX_DATA = @SPX_DATA@
     264SPX_DATA_INSTALLED = @SPX_DATA_INSTALLED@
     265SPX_DEPENDENCIES = @SPX_DEPENDENCIES@
     266SPX_LIBS = @SPX_LIBS@
     267SPX_LIBS_INSTALLED = @SPX_LIBS_INSTALLED@
    254268STRIP = @STRIP@
    255 THIRDPARTYDOCDIR = @THIRDPARTYDOCDIR@
    256 THIRDPARTYOBJDIR = @THIRDPARTYOBJDIR@
    257 THIRDPARTYSRCDIR = @THIRDPARTYSRCDIR@
    258269VERSION = @VERSION@
    259270VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
    260 XPRINCDIR = @XPRINCDIR@
    261 XPRLIB = @XPRLIB@
     271XPR_CFLAGS = @XPR_CFLAGS@
     272XPR_CFLAGS_INSTALLED = @XPR_CFLAGS_INSTALLED@
     273XPR_DATA = @XPR_DATA@
     274XPR_DATA_INSTALLED = @XPR_DATA_INSTALLED@
     275XPR_DEPENDENCIES = @XPR_DEPENDENCIES@
     276XPR_LIBS = @XPR_LIBS@
     277XPR_LIBS_INSTALLED = @XPR_LIBS_INSTALLED@
    262278abs_bin_dir = @abs_bin_dir@
    263279abs_include_dir = @abs_include_dir@
     
    272288ac_ct_STRIP = @ac_ct_STRIP@
    273289ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     290ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    274291am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    275292am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    292309have_automake = @have_automake@
    293310have_svn = @have_svn@
     311have_svnversion = @have_svnversion@
    294312host = @host@
    295313host_alias = @host_alias@
     
    334352#                  Installation of the addlibs file                    #
    335353########################################################################
    336 addlibsfile = couenne_addlibs.txt
    337 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     354pkgconfiglibdir = $(libdir)/pkgconfig
     355pkgconfiglib_DATA = couenne.pc
     356addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Couenne
    338357
    339358########################################################################
     
    344363DISTCLEANFILES = $(am__append_4) $(VPATH_DISTCLEANFILES)
    345364DocFiles = README AUTHORS LICENSE
    346 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     365DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    347366all: all-recursive
    348367
     
    350369am--refresh:
    351370        @:
    352 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../BuildTools/Makemain.inc $(am__configure_deps)
     371$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/BuildTools/Makemain.inc $(am__configure_deps)
    353372        @for dep in $?; do \
    354373          case '$(am__configure_deps)' in \
     
    398417distclean-hdr:
    399418        -rm -f inc/config_couenne.h inc/stamp-h1
    400 couenne_addlibs.txt: $(top_builddir)/config.status $(srcdir)/couenne_addlibs.txt.in
     419couenne.pc: $(top_builddir)/config.status $(srcdir)/couenne.pc.in
     420        cd $(top_builddir) && $(SHELL) ./config.status $@
     421couenne-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/couenne-uninstalled.pc.in
    401422        cd $(top_builddir) && $(SHELL) ./config.status $@
    402423
     
    410431        -rm -f libtool
    411432uninstall-info-am:
     433install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     434        @$(NORMAL_INSTALL)
     435        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     436        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     437          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     438          f=$(am__strip_dir) \
     439          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     440          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     441        done
     442
     443uninstall-pkgconfiglibDATA:
     444        @$(NORMAL_UNINSTALL)
     445        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     446          f=$(am__strip_dir) \
     447          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     448          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     449        done
    412450
    413451# This directory's subdirectories are mostly independent; you can cd
     
    546584        $(am__remove_distdir)
    547585        mkdir $(distdir)
    548         $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../BuildTools $(distdir)/inc $(distdir)/test
     586        $(mkdir_p) $(distdir)/. $(distdir)/BuildTools $(distdir)/inc $(distdir)/test
    549587        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    550588        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    687725check-am: all-am
    688726check: check-recursive
    689 all-am: Makefile
     727all-am: Makefile $(DATA)
    690728installdirs: installdirs-recursive
    691729installdirs-am:
     730        for dir in "$(DESTDIR)$(pkgconfiglibdir)"; do \
     731          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     732        done
    692733install: install-recursive
    693734install-exec: install-exec-recursive
     
    735776info-am:
    736777
    737 install-data-am:
     778install-data-am: install-pkgconfiglibDATA
     779        @$(NORMAL_INSTALL)
     780        $(MAKE) $(AM_MAKEFLAGS) install-data-hook
    738781
    739782install-exec-am: install-exec-local
     
    763806ps-am:
    764807
    765 uninstall-am: uninstall-info-am uninstall-local
     808uninstall-am: uninstall-info-am uninstall-local \
     809        uninstall-pkgconfiglibDATA
     810        @$(NORMAL_INSTALL)
     811        $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
    766812
    767813uninstall-info: uninstall-info-recursive
     
    775821        distcleancheck distdir distuninstallcheck dvi dvi-am html \
    776822        html-am info info-am install install-am install-data \
    777         install-data-am install-exec install-exec-am \
     823        install-data-am install-data-hook install-exec install-exec-am \
    778824        install-exec-local install-info install-info-am install-man \
    779         install-strip installcheck installcheck-am installdirs \
    780         installdirs-am maintainer-clean maintainer-clean-generic \
    781         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    782         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    783         tags tags-recursive uninstall uninstall-am uninstall-info-am \
    784         uninstall-local
     825        install-pkgconfiglibDATA install-strip installcheck \
     826        installcheck-am installdirs installdirs-am maintainer-clean \
     827        maintainer-clean-generic maintainer-clean-recursive \
     828        mostlyclean mostlyclean-generic mostlyclean-libtool \
     829        mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
     830        uninstall uninstall-am uninstall-hook uninstall-info-am \
     831        uninstall-local uninstall-pkgconfiglibDATA
    785832
    786833
     
    800847        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    801848
     849install-exec-local: install-doc
     850
     851uninstall-local: uninstall-doc
     852
    802853.PHONY: test unitTest
    803854
    804 install-exec-local: install-doc
    805         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    806 
    807 uninstall-local: uninstall-doc
    808         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     855install-data-hook:
     856        @$(mkdir_p) "$(addlibsdir)"
     857@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
     858@COIN_HAS_PKGCONFIG_TRUE@       $(PKG_CONFIG) --libs couenne > $(addlibsdir)/couenne_addlibs.txt
     859@COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libBonCouenne.lib libCouenne.lib @COUENNELIB_LIBS_INSTALLED@" > $(addlibsdir)/couenne_addlibs_cpp.txt
     860@COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@        echo -L@abs_lib_dir@ -lBonCouenne -lCouenne @COUENNELIB_LIBS_INSTALLED@ > $(addlibsdir)/couenne_addlibs.txt
     861
     862uninstall-hook:
     863        rm -f $(addlibsdir)/couenne_addlibs.txt
    809864
    810865install-doc: $(DocFiles)
  • trunk/Couenne/configure

    r400 r487  
    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 build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COUENNE_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BONMIN_LIBS BONMIN_CFLAGS BONMIN_DATA BONMIN_DEPENDENCIES BONMIN_LIBS_INSTALLED BONMIN_CFLAGS_INSTALLED BONMIN_DATA_INSTALLED COUENNELIB_CFLAGS COUENNELIB_LIBS COUENNELIB_PCLIBS COUENNELIB_PCREQUIRES COUENNELIB_DEPENDENCIES COUENNELIB_CFLAGS_INSTALLED COUENNELIB_LIBS_INSTALLED COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE CPXINCDIR GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    994994ac_cv_env_FFLAGS_set=${FFLAGS+set}
    995995ac_cv_env_FFLAGS_value=$FFLAGS
     996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     997ac_env_PKG_CONFIG_value=$PKG_CONFIG
     998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    9961000
    9971001#
     
    10931097                          optimize for fast installation [default=yes]
    10941098  --disable-libtool-lock  avoid locking (might break parallel builds)
     1099  --enable-pkg-config     use pkg-config if available (default is yes)
     1100  --enable-interpackage-dependencies
     1101                          whether to deduce Makefile dependencies from package
     1102                          linker flags (default: yes)
    10951103  --enable-nauty-libcheck use disable-nauty-libcheck to skip the
    1096                           link check at configuration time
    1097   --enable-cplex-libcheck use disable-cplex-libcheck to skip the
    1098                           link check at configuration time
    1099   --enable-gurobi-libcheck
    1100                           use disable-gurobi-libcheck to skip the
    1101                           link check at configuration time
    1102   --enable-mosek-libcheck use disable-mosek-libcheck to skip the
    1103                           link check at configuration time
    1104   --enable-osl-libcheck use disable-osl-libcheck to skip the link
    1105                           check at configuration time
    1106   --enable-soplex-libcheck
    1107                           use disable-soplex-libcheck to skip the
    1108                           link check at configuration time
    1109   --enable-xpress-libcheck
    1110                           use disable-xpress-libcheck to skip the
    11111104                          link check at configuration time
    11121105
     
    11241117  --with-tags[=TAGS]
    11251118                          include additional configurations [automatic]
    1126   --with-asldir           specify path to AMPL solver directory (or BUILD for
    1127                           compilation, or "no" for disabling AMPL)
     1119  --with-coin-instdir     prefix of installation directory for precompiled
     1120                          COIN packages
     1121  --with-bonmin-lib linker flags for using package Bonmin
     1122  --with-bonmin-incdir directory with header files for using package Bonmin
     1123  --with-bonmin-datadir directory with data files for using package Bonmin
     1124  --with-asl-lib linker flags for using package ASL
     1125  --with-asl-incdir directory with header files for using package ASL
     1126  --with-asl-datadir directory with data files for using package ASL
    11281127  --with-nauty-incdir specify the header file directory for library Nauty
    11291128  --with-nauty-lib specify the flags used to link with the library Nauty
    1130   --with-cplex-incdir specify the header file directory for library Cplex
    1131   --with-cplex-lib specify the flags used to link with the library Cplex
    1132   --with-gurobi-incdir specify the header file directory for library Gurobi
    1133   --with-gurobi-lib specify the flags used to link with the library Gurobi
    1134   --with-mosek-incdir specify the header file directory for library Mosek
    1135   --with-mosek-lib specify the flags used to link with the library Mosek
    1136   --with-osl-incdir specify the header file directory for library Osl
    1137   --with-osl-lib specify the flags used to link with the library Osl
    1138   --with-soplex-incdir specify the header file directory for library Soplex
    1139   --with-soplex-lib specify the flags used to link with the library Soplex
    1140   --with-xpress-incdir specify the header file directory for library Xpress
    1141   --with-xpress-lib specify the flags used to link with the library Xpress
     1129  --with-cpx-lib linker flags for using package Cpx
     1130  --with-cpx-incdir directory with header files for using package Cpx
     1131  --with-cpx-datadir directory with data files for using package Cpx
     1132  --with-cplex-incdir     specify the header file directory for library cplex
     1133  --with-grb-lib linker flags for using package Grb
     1134  --with-grb-incdir directory with header files for using package Grb
     1135  --with-grb-datadir directory with data files for using package Grb
     1136  --with-msk-lib linker flags for using package Msk
     1137  --with-msk-incdir directory with header files for using package Msk
     1138  --with-msk-datadir directory with data files for using package Msk
     1139  --with-spx-lib linker flags for using package Spx
     1140  --with-spx-incdir directory with header files for using package Spx
     1141  --with-spx-datadir directory with data files for using package Spx
     1142  --with-xpr-lib linker flags for using package Xpr
     1143  --with-xpr-incdir directory with header files for using package Xpr
     1144  --with-xpr-datadir directory with data files for using package Xpr
    11421145
    11431146Some influential environment variables:
     
    11671170  F77         Fortran 77 compiler command
    11681171  FFLAGS      Fortran 77 compiler flags
     1172  PKG_CONFIG  path to pkg-config utility
    11691173
    11701174Use these variables to override the choices made by `configure' or to help
     
    17001704
    17011705# Initialization specifically for project main directories
    1702 # Initialize the ADDLIBS variable
    1703 ADDLIBS="-lm $LIBS"
    1704 
    17051706
    17061707# As backup, we make sure we don't loose an FLIBS if it has been set
     
    17081709save_FLIBS="$FLIBS"
    17091710
    1710 # Initialize the FADDLIBS variable (which is to be used with a fortran
    1711 # compiler and will not include FLIBS)
    1712 FADDLIBS="$LIBS"
    1713 
    1714 
    17151711# A useful makefile conditional that is always false
    17161712
     
    17291725coin_projectdir=yes
    17301726
    1731 # Set the project's version number. Use m4_ifval here to avoid defining
    1732 # _VERSION when the user has not supplied a parameter.
     1727# Set the project's version number
     1728if test "xCouenne" != x; then
     1729
     1730cat >>confdefs.h <<_ACEOF
     1731#define COUENNE_VERSION "$PACKAGE_VERSION"
     1732_ACEOF
     1733
     1734fi
     1735
     1736# Set the project's SVN revision number. The complicated sed expression
     1737# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
     1738# as a single number.
     1739# Extract the first word of "svnversion", so it can be a program name with args.
     1740set dummy svnversion; ac_word=$2
     1741echo "$as_me:$LINENO: checking for $ac_word" >&5
     1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1743if test "${ac_cv_prog_have_svnversion+set}" = set; then
     1744  echo $ECHO_N "(cached) $ECHO_C" >&6
     1745else
     1746  if test -n "$have_svnversion"; then
     1747  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
     1748else
     1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1750for as_dir in $PATH
     1751do
     1752  IFS=$as_save_IFS
     1753  test -z "$as_dir" && as_dir=.
     1754  for ac_exec_ext in '' $ac_executable_extensions; do
     1755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1756    ac_cv_prog_have_svnversion="yes"
     1757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1758    break 2
     1759  fi
     1760done
     1761done
     1762
     1763  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
     1764fi
     1765fi
     1766have_svnversion=$ac_cv_prog_have_svnversion
     1767if test -n "$have_svnversion"; then
     1768  echo "$as_me:$LINENO: result: $have_svnversion" >&5
     1769echo "${ECHO_T}$have_svnversion" >&6
     1770else
     1771  echo "$as_me:$LINENO: result: no" >&5
     1772echo "${ECHO_T}no" >&6
     1773fi
     1774
     1775if test "x$have_svnversion" = xyes && test "xCouenne" != x; then
     1776
     1777  svn_rev_tmp=`cd $srcdir/$coin_has_couenne ; svnversion`
     1778  COUENNE_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
     1779  if test $COUENNE_SVN_REV != exported; then
     1780
     1781cat >>confdefs.h <<_ACEOF
     1782#define COUENNE_SVN_REV $COUENNE_SVN_REV
     1783_ACEOF
     1784
     1785  fi
     1786fi
     1787
     1788# Capture libtool library version, if given.
    17331789
    17341790
     
    19041960  esac
    19051961fi
     1962
     1963# add automake conditional so we can recognize cl compiler in makefile
     1964coin_cc_is_cl=false
     1965if test x"$CXX" != x; then
     1966  case "$CXX" in
     1967    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     1968      coin_cc_is_cl=true
     1969      ;;
     1970  esac
     1971fi
     1972
     1973
     1974if test $coin_cc_is_cl = true; then
     1975  COIN_CC_IS_CL_TRUE=
     1976  COIN_CC_IS_CL_FALSE='#'
     1977else
     1978  COIN_CC_IS_CL_TRUE='#'
     1979  COIN_CC_IS_CL_FALSE=
     1980fi
     1981
    19061982
    19071983
     
    19852061             fi
    19862062             ;;
     2063  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
    19872064  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    19882065  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    27422819        ;;
    27432820      *)
    2744         coin_opt_cflags="-O3 -fomit-frame-pointer"
     2821        coin_opt_cflags="-O3"
    27452822        coin_add_cflags="-pipe"
    27462823        coin_dbg_cflags="-g"
     
    31243201fi
    31253202
    3126 # Correct ADDLIBS initialization if we are using the MS compiler
     3203# Correct the LD variable if we are using the MS or Intel-windows compiler
    31273204case "$CC" in
    31283205  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    3129     ADDLIBS=
    31303206    case $build in
    31313207  *-mingw*)
     
    31823258             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    31833259  *-darwin*) comps="g++ c++ CC" ;;
     3260  *-linux-gnu*)
     3261             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
    31843262          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    31853263esac
     
    36133691
    36143692
     3693coin_cxx_is_cl=false
    36153694# It seems that we need to cleanup something here for the Windows
    36163695case "$CXX" in
     
    36183697    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
    36193698    mv confdefs.hh confdefs.h
     3699    coin_cxx_is_cl=true
    36203700    ;;
    36213701esac
     3702
     3703# add automake conditional so we can recognize cl compiler in makefile
     3704
     3705
     3706if test $coin_cxx_is_cl = true; then
     3707  COIN_CXX_IS_CL_TRUE=
     3708  COIN_CXX_IS_CL_FALSE='#'
     3709else
     3710  COIN_CXX_IS_CL_TRUE='#'
     3711  COIN_CXX_IS_CL_FALSE=
     3712fi
     3713
    36223714
    36233715# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     
    36543746      *)
    36553747# ToDo decide about unroll-loops
    3656         coin_opt_cxxflags="-O3 -fomit-frame-pointer"
     3748        coin_opt_cxxflags="-O3"
    36573749        coin_add_cxxflags="-pipe"
    36583750        coin_dbg_cxxflags="-g"
     
    40484140fi
    40494141
     4142# correct the LD variable in a mingw build with MS or intel compiler
    40504143case "$CXX" in
    4051   cl* | */cl* | CL* | */CL* )
     4144  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    40524145    case $build in
    40534146  *-mingw*)
     
    40994192  esac
    41004193fi
     4194
     4195# add automake conditional so we can recognize cl compiler in makefile
     4196coin_cc_is_cl=false
     4197if test x"$CXX" != x; then
     4198  case "$CXX" in
     4199    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     4200      coin_cc_is_cl=true
     4201      ;;
     4202  esac
     4203fi
     4204
     4205
     4206if test $coin_cc_is_cl = true; then
     4207  COIN_CC_IS_CL_TRUE=
     4208  COIN_CC_IS_CL_FALSE='#'
     4209else
     4210  COIN_CC_IS_CL_TRUE='#'
     4211  COIN_CC_IS_CL_FALSE=
     4212fi
     4213
    41014214
    41024215
     
    41804293             fi
    41814294             ;;
     4295  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
    41824296  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    41834297  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    47364850        ;;
    47374851      *)
    4738         coin_opt_cflags="-O3 -fomit-frame-pointer"
     4852        coin_opt_cflags="-O3"
    47394853        coin_add_cflags="-pipe"
    47404854        coin_dbg_cflags="-g"
     
    51185232fi
    51195233
    5120 # Correct ADDLIBS initialization if we are using the MS compiler
     5234# Correct the LD variable if we are using the MS or Intel-windows compiler
    51215235case "$CC" in
    51225236  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    5123     ADDLIBS=
    51245237    case $build in
    51255238  *-mingw*)
     
    68907003*-*-irix6*)
    68917004  # Find out which ABI we are using.
    6892   echo '#line 6892 "configure"' > conftest.$ac_ext
     7005  echo '#line 7005 "configure"' > conftest.$ac_ext
    68937006  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    68947007  (eval $ac_compile) 2>&5
     
    80248137
    80258138# Provide some information about the compiler.
    8026 echo "$as_me:8026:" \
     8139echo "$as_me:8139:" \
    80278140     "checking for Fortran 77 compiler version" >&5
    80288141ac_compiler=`set X $ac_compile; echo $2`
     
    90919204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90929205   -e 's:$: $lt_compiler_flag:'`
    9093    (eval echo "\"\$as_me:9093: $lt_compile\"" >&5)
     9206   (eval echo "\"\$as_me:9206: $lt_compile\"" >&5)
    90949207   (eval "$lt_compile" 2>conftest.err)
    90959208   ac_status=$?
    90969209   cat conftest.err >&5
    9097    echo "$as_me:9097: \$? = $ac_status" >&5
     9210   echo "$as_me:9210: \$? = $ac_status" >&5
    90989211   if (exit $ac_status) && test -s "$ac_outfile"; then
    90999212     # The compiler can only warn and ignore the option if not recognized
     
    93599472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    93609473   -e 's:$: $lt_compiler_flag:'`
    9361    (eval echo "\"\$as_me:9361: $lt_compile\"" >&5)
     9474   (eval echo "\"\$as_me:9474: $lt_compile\"" >&5)
    93629475   (eval "$lt_compile" 2>conftest.err)
    93639476   ac_status=$?
    93649477   cat conftest.err >&5
    9365    echo "$as_me:9365: \$? = $ac_status" >&5
     9478   echo "$as_me:9478: \$? = $ac_status" >&5
    93669479   if (exit $ac_status) && test -s "$ac_outfile"; then
    93679480     # The compiler can only warn and ignore the option if not recognized
     
    94639576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    94649577   -e 's:$: $lt_compiler_flag:'`
    9465    (eval echo "\"\$as_me:9465: $lt_compile\"" >&5)
     9578   (eval echo "\"\$as_me:9578: $lt_compile\"" >&5)
    94669579   (eval "$lt_compile" 2>out/conftest.err)
    94679580   ac_status=$?
    94689581   cat out/conftest.err >&5
    9469    echo "$as_me:9469: \$? = $ac_status" >&5
     9582   echo "$as_me:9582: \$? = $ac_status" >&5
    94709583   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    94719584   then
     
    1180811921  lt_status=$lt_dlunknown
    1180911922  cat > conftest.$ac_ext <<EOF
    11810 #line 11810 "configure"
     11923#line 11923 "configure"
    1181111924#include "confdefs.h"
    1181211925
     
    1190812021  lt_status=$lt_dlunknown
    1190912022  cat > conftest.$ac_ext <<EOF
    11910 #line 11910 "configure"
     12023#line 12023 "configure"
    1191112024#include "confdefs.h"
    1191212025
     
    1425214365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1425314366   -e 's:$: $lt_compiler_flag:'`
    14254    (eval echo "\"\$as_me:14254: $lt_compile\"" >&5)
     14367   (eval echo "\"\$as_me:14367: $lt_compile\"" >&5)
    1425514368   (eval "$lt_compile" 2>conftest.err)
    1425614369   ac_status=$?
    1425714370   cat conftest.err >&5
    14258    echo "$as_me:14258: \$? = $ac_status" >&5
     14371   echo "$as_me:14371: \$? = $ac_status" >&5
    1425914372   if (exit $ac_status) && test -s "$ac_outfile"; then
    1426014373     # The compiler can only warn and ignore the option if not recognized
     
    1435614469   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1435714470   -e 's:$: $lt_compiler_flag:'`
    14358    (eval echo "\"\$as_me:14358: $lt_compile\"" >&5)
     14471   (eval echo "\"\$as_me:14471: $lt_compile\"" >&5)
    1435914472   (eval "$lt_compile" 2>out/conftest.err)
    1436014473   ac_status=$?
    1436114474   cat out/conftest.err >&5
    14362    echo "$as_me:14362: \$? = $ac_status" >&5
     14475   echo "$as_me:14475: \$? = $ac_status" >&5
    1436314476   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1436414477   then
     
    1592616039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1592716040   -e 's:$: $lt_compiler_flag:'`
    15928    (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
     16041   (eval echo "\"\$as_me:16041: $lt_compile\"" >&5)
    1592916042   (eval "$lt_compile" 2>conftest.err)
    1593016043   ac_status=$?
    1593116044   cat conftest.err >&5
    15932    echo "$as_me:15932: \$? = $ac_status" >&5
     16045   echo "$as_me:16045: \$? = $ac_status" >&5
    1593316046   if (exit $ac_status) && test -s "$ac_outfile"; then
    1593416047     # The compiler can only warn and ignore the option if not recognized
     
    1603016143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1603116144   -e 's:$: $lt_compiler_flag:'`
    16032    (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
     16145   (eval echo "\"\$as_me:16145: $lt_compile\"" >&5)
    1603316146   (eval "$lt_compile" 2>out/conftest.err)
    1603416147   ac_status=$?
    1603516148   cat out/conftest.err >&5
    16036    echo "$as_me:16036: \$? = $ac_status" >&5
     16149   echo "$as_me:16149: \$? = $ac_status" >&5
    1603716150   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1603816151   then
     
    1823718350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1823818351   -e 's:$: $lt_compiler_flag:'`
    18239    (eval echo "\"\$as_me:18239: $lt_compile\"" >&5)
     18352   (eval echo "\"\$as_me:18352: $lt_compile\"" >&5)
    1824018353   (eval "$lt_compile" 2>conftest.err)
    1824118354   ac_status=$?
    1824218355   cat conftest.err >&5
    18243    echo "$as_me:18243: \$? = $ac_status" >&5
     18356   echo "$as_me:18356: \$? = $ac_status" >&5
    1824418357   if (exit $ac_status) && test -s "$ac_outfile"; then
    1824518358     # The compiler can only warn and ignore the option if not recognized
     
    1850518618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1850618619   -e 's:$: $lt_compiler_flag:'`
    18507    (eval echo "\"\$as_me:18507: $lt_compile\"" >&5)
     18620   (eval echo "\"\$as_me:18620: $lt_compile\"" >&5)
    1850818621   (eval "$lt_compile" 2>conftest.err)
    1850918622   ac_status=$?
    1851018623   cat conftest.err >&5
    18511    echo "$as_me:18511: \$? = $ac_status" >&5
     18624   echo "$as_me:18624: \$? = $ac_status" >&5
    1851218625   if (exit $ac_status) && test -s "$ac_outfile"; then
    1851318626     # The compiler can only warn and ignore the option if not recognized
     
    1860918722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1861018723   -e 's:$: $lt_compiler_flag:'`
    18611    (eval echo "\"\$as_me:18611: $lt_compile\"" >&5)
     18724   (eval echo "\"\$as_me:18724: $lt_compile\"" >&5)
    1861218725   (eval "$lt_compile" 2>out/conftest.err)
    1861318726   ac_status=$?
    1861418727   cat out/conftest.err >&5
    18615    echo "$as_me:18615: \$? = $ac_status" >&5
     18728   echo "$as_me:18728: \$? = $ac_status" >&5
    1861618729   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1861718730   then
     
    2149421607LT_LDFLAGS=
    2149521608
     21609# Check if we want to set the library version
     21610echo "$as_me:$LINENO: checking if library version is set" >&5
     21611echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
     21612if test x"$coin_libversion" != x; then
     21613  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
     21614  echo "$as_me:$LINENO: result: $coin_libversion" >&5
     21615echo "${ECHO_T}$coin_libversion" >&6
     21616else
     21617  echo "$as_me:$LINENO: result: no" >&5
     21618echo "${ECHO_T}no" >&6
     21619fi
     21620
     21621
    2149621622
    2149721623#END
     
    2183121957
    2183221958#############################################################################
    21833 #                              COIN components                              #
     21959#                            COIN-OR components                             #
    2183421960#############################################################################
    2183521961
    21836 echo "$as_me:$LINENO: checking for COIN project ThirdParty" >&5
    21837 echo $ECHO_N "checking for COIN project ThirdParty... $ECHO_C" >&6
    21838 
    21839 # First check, if the sub-project is actually available (ToDo: allow
    21840 # other locations)
    21841 
    21842 coin_has_thirdparty=unavailable
     21962
     21963
     21964# Check whether --enable-pkg-config or --disable-pkg-config was given.
     21965if test "${enable_pkg_config+set}" = set; then
     21966  enableval="$enable_pkg_config"
     21967  use_pkgconfig="$enableval"
     21968else
     21969  use_pkgconfig=yes
     21970fi;
     21971
     21972if test $use_pkgconfig = yes ; then
     21973  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     21974    if test -n "$ac_tool_prefix"; then
     21975  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     21976set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     21977echo "$as_me:$LINENO: checking for $ac_word" >&5
     21978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     21979if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     21980  echo $ECHO_N "(cached) $ECHO_C" >&6
     21981else
     21982  case $PKG_CONFIG in
     21983  [\\/]* | ?:[\\/]*)
     21984  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     21985  ;;
     21986  *)
     21987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     21988for as_dir in $PATH
     21989do
     21990  IFS=$as_save_IFS
     21991  test -z "$as_dir" && as_dir=.
     21992  for ac_exec_ext in '' $ac_executable_extensions; do
     21993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     21994    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     21995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     21996    break 2
     21997  fi
     21998done
     21999done
     22000
     22001  ;;
     22002esac
     22003fi
     22004PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     22005
     22006if test -n "$PKG_CONFIG"; then
     22007  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     22008echo "${ECHO_T}$PKG_CONFIG" >&6
     22009else
     22010  echo "$as_me:$LINENO: result: no" >&5
     22011echo "${ECHO_T}no" >&6
     22012fi
     22013
     22014fi
     22015if test -z "$ac_cv_path_PKG_CONFIG"; then
     22016  ac_pt_PKG_CONFIG=$PKG_CONFIG
     22017  # Extract the first word of "pkg-config", so it can be a program name with args.
     22018set dummy pkg-config; ac_word=$2
     22019echo "$as_me:$LINENO: checking for $ac_word" >&5
     22020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     22021if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     22022  echo $ECHO_N "(cached) $ECHO_C" >&6
     22023else
     22024  case $ac_pt_PKG_CONFIG in
     22025  [\\/]* | ?:[\\/]*)
     22026  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     22027  ;;
     22028  *)
     22029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     22030for as_dir in $PATH
     22031do
     22032  IFS=$as_save_IFS
     22033  test -z "$as_dir" && as_dir=.
     22034  for ac_exec_ext in '' $ac_executable_extensions; do
     22035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     22036    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     22037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     22038    break 2
     22039  fi
     22040done
     22041done
     22042
     22043  ;;
     22044esac
     22045fi
     22046ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     22047
     22048if test -n "$ac_pt_PKG_CONFIG"; then
     22049  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     22050echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     22051else
     22052  echo "$as_me:$LINENO: result: no" >&5
     22053echo "${ECHO_T}no" >&6
     22054fi
     22055
     22056  PKG_CONFIG=$ac_pt_PKG_CONFIG
     22057else
     22058  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     22059fi
     22060
     22061  fi
     22062  if test -n "$PKG_CONFIG"; then
     22063    _pkg_min_version=0.9.0
     22064    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     22065echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     22066    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     22067      echo "$as_me:$LINENO: result: yes" >&5
     22068echo "${ECHO_T}yes" >&6
     22069    else
     22070      echo "$as_me:$LINENO: result: no" >&5
     22071echo "${ECHO_T}no" >&6
     22072      PKG_CONFIG=""
     22073    fi
     22074  fi
     22075
     22076  # check if pkg-config supports the short-errors flag
     22077  if test -n "$PKG_CONFIG" && \
     22078    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     22079    pkg_short_errors=" --short-errors "
     22080  else
     22081    pkg_short_errors=""
     22082  fi
     22083fi
     22084
     22085
     22086
     22087if test -n "$PKG_CONFIG"; then
     22088  COIN_HAS_PKGCONFIG_TRUE=
     22089  COIN_HAS_PKGCONFIG_FALSE='#'
     22090else
     22091  COIN_HAS_PKGCONFIG_TRUE='#'
     22092  COIN_HAS_PKGCONFIG_FALSE=
     22093fi
     22094
     22095
     22096
     22097# assemble pkg-config search path for installed projects
     22098COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22099
     22100# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     22101# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22102# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22103if test "x${prefix}" = xNONE ; then
     22104  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     22105else
     22106  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     22107fi
     22108
     22109
     22110# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22111if test "${with_coin_instdir+set}" = set; then
     22112  withval="$with_coin_instdir"
     22113  if test -d "$withval"; then : ; else
     22114     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22115echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     22116   { (exit 1); exit 1; }; }
     22117   fi
     22118   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     22119
     22120fi;
     22121
     22122
     22123
     22124# assemble additional pkg-config search paths for uninstalled projects
     22125if test x$coin_projectdir = xyes ; then
     22126  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
     22127  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22128  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22129  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     22130  COIN_PKG_CONFIG_PATH_UNINSTALLED=
     22131  if test -e ../coin_subdirs.txt ; then
     22132    for i in `cat ../coin_subdirs.txt` ; do
     22133      if test -d ../$i ; then
     22134        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22135      fi
     22136      if test -d ../$i/pkgconfig ; then
     22137        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22138      fi
     22139    done
     22140  fi
     22141
     22142  if test -e ../../coin_subdirs.txt ; then
     22143    for i in `cat ../../coin_subdirs.txt` ; do
     22144      if test -d ../../$i ; then
     22145        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22146      fi
     22147      if test -d ../../$i/pkgconfig ; then
     22148        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22149      fi
     22150    done
     22151  fi
     22152
     22153
     22154fi
     22155
     22156
     22157
     22158echo "$as_me:$LINENO: checking for COIN-OR package Bonmin" >&5
     22159echo $ECHO_N "checking for COIN-OR package Bonmin... $ECHO_C" >&6
     22160
     22161coin_has_bonmin=notGiven
     22162
     22163# check if user wants to skip package in any case
    2184322164if test x"$COIN_SKIP_PROJECTS" != x; then
    2184422165  for dir in $COIN_SKIP_PROJECTS; do
    21845     if test $dir = ThirdParty; then
    21846       coin_has_thirdparty=skipping
    21847     fi
    21848   done
    21849 fi
    21850 
    21851 if test $coin_has_thirdparty != skipping; then
    21852   if test $PACKAGE_TARNAME = thirdparty; then
    21853     coin_has_thirdparty=.
    21854   else
    21855     if test -d $srcdir/../ThirdParty; then
    21856       coin_has_thirdparty=../ThirdParty
    21857     fi
    21858   fi
    21859 fi
    21860 
    21861 if test $coin_has_thirdparty != unavailable &&
    21862    test $coin_has_thirdparty != skipping; then
    21863   # Set the #define if the component is available
    21864 
    21865 cat >>confdefs.h <<\_ACEOF
    21866 #define COIN_HAS_THIRDPARTY 1
    21867 _ACEOF
    21868 
    21869 
    21870   # Set the variables for source and object code location
    21871 
    21872   THIRDPARTYSRCDIR=`cd $srcdir/$coin_has_thirdparty; pwd`
    21873 
    21874   THIRDPARTYOBJDIR=`pwd`/$coin_has_thirdparty
    21875 
    21876   THIRDPARTYDOCDIR=$abs_lib_dir/../share/doc/coin/ThirdParty
    21877 fi
    21878 
    21879   # Define the Makefile conditional
    21880 
    21881 
    21882 if test $coin_has_thirdparty != unavailable &&
    21883                 test $coin_has_thirdparty != skipping; then
    21884   COIN_HAS_THIRDPARTY_TRUE=
    21885   COIN_HAS_THIRDPARTY_FALSE='#'
    21886 else
    21887   COIN_HAS_THIRDPARTY_TRUE='#'
    21888   COIN_HAS_THIRDPARTY_FALSE=
    21889 fi
    21890 
    21891 echo "$as_me:$LINENO: result: $coin_has_thirdparty" >&5
    21892 echo "${ECHO_T}$coin_has_thirdparty" >&6
    21893 
    21894 echo "$as_me:$LINENO: checking for COIN project CoinUtils" >&5
    21895 echo $ECHO_N "checking for COIN project CoinUtils... $ECHO_C" >&6
    21896 
    21897 # First check, if the sub-project is actually available (ToDo: allow
    21898 # other locations)
    21899 
    21900 coin_has_coinutils=unavailable
    21901 if test x"$COIN_SKIP_PROJECTS" != x; then
    21902   for dir in $COIN_SKIP_PROJECTS; do
    21903     if test $dir = CoinUtils; then
    21904       coin_has_coinutils=skipping
    21905     fi
    21906   done
    21907 fi
    21908 
    21909 if test $coin_has_coinutils != skipping; then
    21910   if test $PACKAGE_TARNAME = coinutils; then
    21911     coin_has_coinutils=.
    21912   else
    21913     if test -d $srcdir/../CoinUtils; then
    21914       coin_has_coinutils=../CoinUtils
    21915     fi
    21916   fi
    21917 fi
    21918 
    21919 if test $coin_has_coinutils != unavailable &&
    21920    test $coin_has_coinutils != skipping; then
    21921   # Set the #define if the component is available
    21922 
    21923 cat >>confdefs.h <<\_ACEOF
    21924 #define COIN_HAS_COINUTILS 1
    21925 _ACEOF
    21926 
    21927 
    21928   # Set the variables for source and object code location
    21929 
    21930   COINUTILSSRCDIR=`cd $srcdir/$coin_has_coinutils; pwd`
    21931 
    21932   COINUTILSOBJDIR=`pwd`/$coin_has_coinutils
    21933 
    21934   COINUTILSDOCDIR=$abs_lib_dir/../share/doc/coin/CoinUtils
    21935 fi
    21936 
    21937   # Define the Makefile conditional
    21938 
    21939 
    21940 if test $coin_has_coinutils != unavailable &&
    21941                 test $coin_has_coinutils != skipping; then
    21942   COIN_HAS_COINUTILS_TRUE=
    21943   COIN_HAS_COINUTILS_FALSE='#'
    21944 else
    21945   COIN_HAS_COINUTILS_TRUE='#'
    21946   COIN_HAS_COINUTILS_FALSE=
    21947 fi
    21948 
    21949 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    21950 echo "${ECHO_T}$coin_has_coinutils" >&6
    21951 
    21952 echo "$as_me:$LINENO: checking for COIN project Clp" >&5
    21953 echo $ECHO_N "checking for COIN project Clp... $ECHO_C" >&6
    21954 
    21955 # First check, if the sub-project is actually available (ToDo: allow
    21956 # other locations)
    21957 
    21958 coin_has_clp=unavailable
    21959 if test x"$COIN_SKIP_PROJECTS" != x; then
    21960   for dir in $COIN_SKIP_PROJECTS; do
    21961     if test $dir = Clp; then
    21962       coin_has_clp=skipping
    21963     fi
    21964   done
    21965 fi
    21966 
    21967 if test $coin_has_clp != skipping; then
    21968   if test $PACKAGE_TARNAME = clp; then
    21969     coin_has_clp=.
    21970   else
    21971     if test -d $srcdir/../Clp; then
    21972       coin_has_clp=../Clp
    21973     fi
    21974   fi
    21975 fi
    21976 
    21977 if test $coin_has_clp != unavailable &&
    21978    test $coin_has_clp != skipping; then
    21979   # Set the #define if the component is available
    21980 
    21981 cat >>confdefs.h <<\_ACEOF
    21982 #define COIN_HAS_CLP 1
    21983 _ACEOF
    21984 
    21985 
    21986   # Set the variables for source and object code location
    21987 
    21988   CLPSRCDIR=`cd $srcdir/$coin_has_clp; pwd`
    21989 
    21990   CLPOBJDIR=`pwd`/$coin_has_clp
    21991 
    21992   CLPDOCDIR=$abs_lib_dir/../share/doc/coin/Clp
    21993 fi
    21994 
    21995   # Define the Makefile conditional
    21996 
    21997 
    21998 if test $coin_has_clp != unavailable &&
    21999                 test $coin_has_clp != skipping; then
    22000   COIN_HAS_CLP_TRUE=
    22001   COIN_HAS_CLP_FALSE='#'
    22002 else
    22003   COIN_HAS_CLP_TRUE='#'
    22004   COIN_HAS_CLP_FALSE=
    22005 fi
    22006 
    22007 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    22008 echo "${ECHO_T}$coin_has_clp" >&6
    22009 
    22010 echo "$as_me:$LINENO: checking for COIN project Bonmin" >&5
    22011 echo $ECHO_N "checking for COIN project Bonmin... $ECHO_C" >&6
    22012 
    22013 # First check, if the sub-project is actually available (ToDo: allow
    22014 # other locations)
    22015 
    22016 coin_has_bonmin=unavailable
    22017 if test x"$COIN_SKIP_PROJECTS" != x; then
    22018   for dir in $COIN_SKIP_PROJECTS; do
    22019     if test $dir = Bonmin; then
     22166    if test $dir = "Bonmin"; then
    2202022167      coin_has_bonmin=skipping
    2202122168    fi
     
    2202322170fi
    2202422171
     22172BONMIN_LIBS=
     22173BONMIN_CFLAGS=
     22174BONMIN_DATA=
     22175
     22176
     22177
     22178
     22179
     22180
     22181
     22182
     22183
     22184
     22185
     22186
     22187
     22188
     22189
     22190
     22191
     22192#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    2202522193if test $coin_has_bonmin != skipping; then
    22026   if test $PACKAGE_TARNAME = bonmin; then
    22027     coin_has_bonmin=.
     22194
     22195# Check whether --with-m4_tolower(Bonmin)-lib or --without-m4_tolower(Bonmin)-lib was given.
     22196if test "${with_bonmin_lib+set}" = set; then
     22197  withval="$with_bonmin_lib"
     22198  if test "$withval" = no ; then
     22199       coin_has_bonmin=skipping
     22200     else
     22201       coin_has_bonmin=yes
     22202       BONMIN_LIBS="$withval"
     22203
     22204         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     22205         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     22206
     22207     fi
     22208
     22209fi;
     22210fi
     22211
     22212if test $coin_has_bonmin != skipping; then
     22213
     22214# Check whether --with-m4_tolower(Bonmin)-incdir or --without-m4_tolower(Bonmin)-incdir was given.
     22215if test "${with_bonmin_incdir+set}" = set; then
     22216  withval="$with_bonmin_incdir"
     22217  if test "$withval" = no ; then
     22218       coin_has_bonmin=skipping
     22219     else
     22220       coin_has_bonmin=yes
     22221       BONMIN_CFLAGS="-I`${CYGPATH_W} $withval`"
     22222       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     22223     fi
     22224
     22225fi;
     22226fi
     22227
     22228if test $coin_has_bonmin != skipping; then
     22229
     22230# Check whether --with-m4_tolower(Bonmin)-datadir or --without-m4_tolower(Bonmin)-datadir was given.
     22231if test "${with_bonmin_datadir+set}" = set; then
     22232  withval="$with_bonmin_datadir"
     22233  if test "$withval" = no ; then
     22234       coin_has_bonmin=skipping
     22235     else
     22236       coin_has_bonmin=yes
     22237       BONMIN_DATA="$withval"
     22238     fi
     22239
     22240fi;
     22241fi
     22242
     22243if test $coin_has_bonmin = notGiven; then
     22244  if test -n "$PKG_CONFIG" ; then
     22245    # set search path for pkg-config
     22246    # need to export variable to be sure that the following pkg-config gets these values
     22247    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22248    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22249    export PKG_CONFIG_PATH
     22250
     22251    # let pkg-config do it's magic
     22252
     22253
     22254
     22255if test -n "$PKG_CONFIG" ; then
     22256  if $PKG_CONFIG --exists "bonmin"; then
     22257    BONMIN_VERSIONS="`$PKG_CONFIG --modversion "bonmin" 2>/dev/null | tr '\n' ' '`"
     22258     cflags=`$PKG_CONFIG --cflags "bonmin" 2>/dev/null`
     22259    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22260        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22261        # but only do this if is not trivial
     22262    if test "$CYGPATH_W" != "echo" ; then
     22263      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22264      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22265    fi
     22266    BONMIN_CFLAGS="$cflags"
     22267    BONMIN_LIBS=`$PKG_CONFIG --libs "bonmin" 2>/dev/null`
     22268    BONMIN_DATA=`$PKG_CONFIG --variable=datadir "bonmin" 2>/dev/null`
     22269     coin_has_bonmin=yes
     22270        echo "$as_me:$LINENO: result: yes: $BONMIN_VERSIONS" >&5
     22271echo "${ECHO_T}yes: $BONMIN_VERSIONS" >&6
     22272
     22273        # adjust linker flags for (i)cl compiler
     22274        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     22275        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22276        then
     22277          BONMIN_LIBS=`echo " $BONMIN_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22278        fi
     22279
     22280        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     22281
     22282          COUENNELIB_PCREQUIRES="bonmin $COUENNELIB_PCREQUIRES"
     22283          COUENNELIB_CFLAGS="$BONMIN_CFLAGS $COUENNELIB_CFLAGS"
     22284          COUENNELIB_LIBS="$BONMIN_LIBS $COUENNELIB_LIBS"
     22285
     22286
     22287
    2202822288  else
    22029     if test -d $srcdir/../Bonmin; then
    22030       coin_has_bonmin=../Bonmin
     22289    BONMIN_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "bonmin"`
     22290      coin_has_bonmin=notGiven
     22291        echo "$as_me:$LINENO: result: not given: $BONMIN_PKG_ERRORS" >&5
     22292echo "${ECHO_T}not given: $BONMIN_PKG_ERRORS" >&6
     22293
     22294  fi
     22295else
     22296  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Bonmin without pkg-config\"" >&5
     22297echo "$as_me: error: \"Cannot check for existance of module Bonmin without pkg-config\"" >&2;}
     22298   { (exit 1); exit 1; }; }
     22299fi
     22300
     22301
     22302
     22303
     22304    # reset PKG_CONFIG_PATH variable
     22305    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22306    export PKG_CONFIG_PATH
     22307
     22308  else
     22309    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22310echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22311
     22312echo "$as_me:$LINENO: checking for COIN-OR package Bonmin (fallback)" >&5
     22313echo $ECHO_N "checking for COIN-OR package Bonmin (fallback)... $ECHO_C" >&6
     22314
     22315coin_has_bonmin=notGiven
     22316BONMIN_LIBS=
     22317BONMIN_LIBS_INSTALLED=
     22318BONMIN_CFLAGS=
     22319BONMIN_CFLAGS_INSTALLED=
     22320BONMIN_DATA=
     22321BONMIN_DATA_INSTALLED=
     22322
     22323# initial list of dependencies is "bonmin", but we need to filter out version number specifications (= x, <= x, >= x)
     22324projtoprocess="bonmin"
     22325
     22326# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22327# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22328# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     22329# also, we setup the DATA variable
     22330allproj=""
     22331allpcfiles=""
     22332allpcifiles=""
     22333while test "x$projtoprocess" != x ; do
     22334
     22335  for proj in $projtoprocess ; do
     22336    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22337    pcfile=""
     22338    save_IFS="$IFS"
     22339    IFS=":"
     22340    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22341      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     22342      if test -r "$dir/${proj}-uninstalled.pc" ; then
     22343        pcfile="$dir/$proj-uninstalled.pc"
     22344        if test -r "$dir/${proj}.pc" ; then
     22345          pcifile="$dir/${proj}.pc"
     22346        else
     22347          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22348echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22349          pcifile=
     22350        fi
     22351        break
     22352      fi
     22353    done
     22354    IFS="$save_IFS"
     22355
     22356    if test "x$pcfile" != x ; then
     22357      # read dependencies from $pcfile and filter it
     22358      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22359
     22360      # add projrequires to the front of the list of projects that have to be processed next
     22361      # at the same time, remove $proj from this list
     22362      projtoprocess=${projtoprocess/$proj/$projrequires}
     22363
     22364      # read DATA from $pcfile, if _DATA is still empty
     22365      if test "x$BONMIN_DATA" = x ; then
     22366        projdatadir=
     22367        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22368        eval `sh -c "$pcfilemod"`
     22369        BONMIN_DATA="$projdatadir"
     22370      fi
     22371
     22372      allproj="$allproj $proj"
     22373      allpcfiles="$pcfile:$allpcfiles"
     22374
     22375    else
     22376      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22377echo "${ECHO_T}no, dependency $proj not available" >&6
     22378      allproj=fail
     22379      break 2
    2203122380    fi
    22032   fi
    22033 fi
    22034 
    22035 if test $coin_has_bonmin != unavailable &&
    22036    test $coin_has_bonmin != skipping; then
    22037   # Set the #define if the component is available
     22381
     22382    if test "x$pcifile" != x ; then
     22383      allpcifiles="$pcifile:$allpcifiles"
     22384
     22385      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22386      if test "x$BONMIN_DATA_INSTALLED" = x ; then
     22387        projdatadir=
     22388        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22389        eval `sh -c "$pcifilemod"`
     22390        if test "${CYGPATH_W}" != "echo"; then
     22391          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22392        fi
     22393        BONMIN_DATA_INSTALLED="$projdatadir"
     22394      fi
     22395
     22396    fi
     22397
     22398    break
     22399  done
     22400
     22401  # remove spaces on begin of $projtoprocess
     22402  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22403
     22404done
     22405
     22406if test "$allproj" != fail ; then
     22407
     22408  # now go through the list of .pc files and assemble compiler and linker flags
     22409  # important is here to obey the reverse order that has been setup before,
     22410  # since then libraries that are required by several others should be after these other libraries
     22411  pcfilesprocessed=""
     22412
     22413  save_IFS="$IFS"
     22414  IFS=":"
     22415  for pcfile in $allpcfiles ; do
     22416
     22417    # if $pcfile has been processed already, skip this round
     22418    if test "x$pcfilesprocessed" != x ; then
     22419      for pcfiledone in $pcfilesprocessed ; do
     22420        if test "$pcfiledone" = "$pcfile" ; then
     22421          continue 2
     22422        fi
     22423      done
     22424    fi
     22425
     22426    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22427    #   replace "Libs:" by "echo projlibs="
     22428    #   replace "Cflags:" by "echo projcflags="
     22429    #   remove every line starting with <some word>:
     22430    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22431
     22432    # set projcflags and projlibs variables by running $pcfilemod
     22433    projcflags=
     22434    projlibs=
     22435    eval `sh -c "$pcfilemod"`
     22436
     22437    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22438    if test "${CYGPATH_W}" != "echo"; then
     22439      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22440    fi
     22441    BONMIN_CFLAGS="$projcflags $BONMIN_CFLAGS"
     22442
     22443    # set LIBS variable
     22444    BONMIN_LIBS="$projlibs $BONMIN_LIBS"
     22445
     22446    # remember that we have processed $pcfile
     22447    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22448
     22449  done
     22450  IFS="$save_IFS"
     22451
     22452
     22453  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22454  # important is here again to obey the reverse order that has been setup before,
     22455  # since then libraries that are required by several others should be after these other libraries
     22456  pcfilesprocessed=""
     22457
     22458  save_IFS="$IFS"
     22459  IFS=":"
     22460  for pcfile in $allpcifiles ; do
     22461
     22462    # if $pcfile has been processed already, skip this round
     22463    if test "x$pcfilesprocessed" != x ; then
     22464      for pcfiledone in $pcfilesprocessed ; do
     22465        if test "$pcfiledone" = "$pcfile" ; then
     22466          continue 2
     22467        fi
     22468      done
     22469    fi
     22470
     22471    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22472    #   replace "Libs:" by "echo projlibs="
     22473    #   replace "Cflags:" by "echo projcflags="
     22474    #   remove every line starting with <some word>:
     22475    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22476
     22477    # set projcflags and projlibs variables by running $pcfilemod
     22478    projcflags=
     22479    projlibs=
     22480    eval `sh -c "$pcfilemod"`
     22481
     22482    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22483    if test "${CYGPATH_W}" != "echo"; then
     22484      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22485    fi
     22486    BONMIN_CFLAGS_INSTALLED="$projcflags $BONMIN_CFLAGS_INSTALLED"
     22487
     22488    # set LIBS variable
     22489    BONMIN_LIBS_INSTALLED="$projlibs $BONMIN_LIBS_INSTALLED"
     22490
     22491    # remember that we have processed $pcfile
     22492    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22493
     22494  done
     22495  IFS="$save_IFS"
     22496
     22497
     22498  # finish up
     22499  coin_has_bonmin=yes
     22500  echo "$as_me:$LINENO: result: yes" >&5
     22501echo "${ECHO_T}yes" >&6
    2203822502
    2203922503cat >>confdefs.h <<\_ACEOF
     
    2204222506
    2204322507
    22044   # Set the variables for source and object code location
    22045 
    22046   BONMINSRCDIR=`cd $srcdir/$coin_has_bonmin; pwd`
    22047 
    22048   BONMINOBJDIR=`pwd`/$coin_has_bonmin
    22049 
    22050   BONMINDOCDIR=$abs_lib_dir/../share/doc/coin/Bonmin
    22051 fi
    22052 
    22053   # Define the Makefile conditional
    22054 
    22055 
    22056 if test $coin_has_bonmin != unavailable &&
     22508  # adjust linker flags for (i)cl compiler
     22509  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     22510  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22511  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22512  #    everything of the form "-lname" by "libname.lib"
     22513  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22514  then
     22515    BONMIN_LIBS=`echo " $BONMIN_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22516    BONMIN_LIBS_INSTALLED=`echo " $BONMIN_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22517  fi
     22518
     22519
     22520    COUENNELIB_PCREQUIRES="bonmin $COUENNELIB_PCREQUIRES"
     22521    COUENNELIB_CFLAGS="$BONMIN_CFLAGS $COUENNELIB_CFLAGS"
     22522    COUENNELIB_LIBS="$BONMIN_LIBS $COUENNELIB_LIBS"
     22523    COUENNELIB_CFLAGS_INSTALLED="$BONMIN_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     22524    COUENNELIB_LIBS_INSTALLED="$BONMIN_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     22525
     22526
     22527fi
     22528
     22529
     22530
     22531if test $coin_has_bonmin != notGiven &&
    2205722532                test $coin_has_bonmin != skipping; then
    2205822533  COIN_HAS_BONMIN_TRUE=
     
    2206322538fi
    2206422539
    22065 echo "$as_me:$LINENO: result: $coin_has_bonmin" >&5
     22540
     22541
     22542  fi
     22543
     22544else
     22545  echo "$as_me:$LINENO: result: $coin_has_bonmin" >&5
    2206622546echo "${ECHO_T}$coin_has_bonmin" >&6
    22067 
    22068 echo "$as_me:$LINENO: checking for COIN project Ipopt" >&5
    22069 echo $ECHO_N "checking for COIN project Ipopt... $ECHO_C" >&6
    22070 
    22071 # First check, if the sub-project is actually available (ToDo: allow
    22072 # other locations)
    22073 
    22074 coin_has_ipopt=unavailable
    22075 if test x"$COIN_SKIP_PROJECTS" != x; then
    22076   for dir in $COIN_SKIP_PROJECTS; do
    22077     if test $dir = Ipopt; then
    22078       coin_has_ipopt=skipping
     22547fi
     22548
     22549if test $coin_has_bonmin != skipping &&
     22550   test $coin_has_bonmin != notGiven ; then
     22551
     22552cat >>confdefs.h <<\_ACEOF
     22553#define COIN_HAS_BONMIN 1
     22554_ACEOF
     22555
     22556
     22557  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     22558if test "${enable_interpackage_dependencies+set}" = set; then
     22559  enableval="$enable_interpackage_dependencies"
     22560
     22561else
     22562  enable_interpackage_dependencies=yes
     22563fi;
     22564
     22565  if test $enable_interpackage_dependencies = yes ; then
     22566     # construct dependencies variables from LIBS variables
     22567     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22568     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     22569     # then remove everything of the form -xxx
     22570     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22571     BONMIN_DEPENDENCIES=`echo " $BONMIN_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22572
     22573       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22574
     22575  fi
     22576
     22577  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22578    if test -n "$BONMIN_CFLAGS" ; then
     22579      { echo "$as_me:$LINENO: Bonmin CFLAGS are $BONMIN_CFLAGS" >&5
     22580echo "$as_me: Bonmin CFLAGS are $BONMIN_CFLAGS" >&6;}
    2207922581    fi
    22080   done
    22081 fi
    22082 
    22083 if test $coin_has_ipopt != skipping; then
    22084   if test $PACKAGE_TARNAME = ipopt; then
    22085     coin_has_ipopt=.
    22086   else
    22087     if test -d $srcdir/../Ipopt; then
    22088       coin_has_ipopt=../Ipopt
     22582    if test -n "$BONMIN_LIBS" ; then
     22583      { echo "$as_me:$LINENO: Bonmin LIBS   are $BONMIN_LIBS" >&5
     22584echo "$as_me: Bonmin LIBS   are $BONMIN_LIBS" >&6;}
    2208922585    fi
     22586    if test -n "$BONMIN_DEPENDENCIES" ; then
     22587      { echo "$as_me:$LINENO: Bonmin DEPENDENCIES are $BONMIN_DEPENDENCIES" >&5
     22588echo "$as_me: Bonmin DEPENDENCIES are $BONMIN_DEPENDENCIES" >&6;}
     22589    fi
     22590    if test -n "$BONMIN_DATA" ; then
     22591      { echo "$as_me:$LINENO: Bonmin DATA   is  $BONMIN_DATA" >&5
     22592echo "$as_me: Bonmin DATA   is  $BONMIN_DATA" >&6;}
     22593    fi
     22594    if test -n "$BONMIN_CFLAGS" ; then
     22595      { echo "$as_me:$LINENO: Bonmin CFLAGS are $BONMIN_CFLAGS" >&5
     22596echo "$as_me: Bonmin CFLAGS are $BONMIN_CFLAGS" >&6;}
     22597    fi
     22598
     22599      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     22600echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     22601      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     22602echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     22603      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     22604echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     22605
    2209022606  fi
    2209122607fi
    2209222608
    22093 if test $coin_has_ipopt != unavailable &&
    22094    test $coin_has_ipopt != skipping; then
    22095   # Set the #define if the component is available
    22096 
    22097 cat >>confdefs.h <<\_ACEOF
    22098 #define COIN_HAS_IPOPT 1
    22099 _ACEOF
    22100 
    22101 
    22102   # Set the variables for source and object code location
    22103 
    22104   IPOPTSRCDIR=`cd $srcdir/$coin_has_ipopt; pwd`
    22105 
    22106   IPOPTOBJDIR=`pwd`/$coin_has_ipopt
    22107 
    22108   IPOPTDOCDIR=$abs_lib_dir/../share/doc/coin/Ipopt
    22109 fi
    22110 
    22111   # Define the Makefile conditional
    22112 
    22113 
    22114 if test $coin_has_ipopt != unavailable &&
    22115                 test $coin_has_ipopt != skipping; then
    22116   COIN_HAS_IPOPT_TRUE=
    22117   COIN_HAS_IPOPT_FALSE='#'
    22118 else
    22119   COIN_HAS_IPOPT_TRUE='#'
    22120   COIN_HAS_IPOPT_FALSE=
    22121 fi
    22122 
    22123 echo "$as_me:$LINENO: result: $coin_has_ipopt" >&5
    22124 echo "${ECHO_T}$coin_has_ipopt" >&6
    22125 
    22126 echo "$as_me:$LINENO: checking for COIN project Cbc" >&5
    22127 echo $ECHO_N "checking for COIN project Cbc... $ECHO_C" >&6
    22128 
    22129 # First check, if the sub-project is actually available (ToDo: allow
    22130 # other locations)
    22131 
    22132 coin_has_cbc=unavailable
    22133 if test x"$COIN_SKIP_PROJECTS" != x; then
    22134   for dir in $COIN_SKIP_PROJECTS; do
    22135     if test $dir = Cbc; then
    22136       coin_has_cbc=skipping
    22137     fi
    22138   done
    22139 fi
    22140 
    22141 if test $coin_has_cbc != skipping; then
    22142   if test $PACKAGE_TARNAME = cbc; then
    22143     coin_has_cbc=.
    22144   else
    22145     if test -d $srcdir/../Cbc; then
    22146       coin_has_cbc=../Cbc
    22147     fi
    22148   fi
    22149 fi
    22150 
    22151 if test $coin_has_cbc != unavailable &&
    22152    test $coin_has_cbc != skipping; then
    22153   # Set the #define if the component is available
    22154 
    22155 cat >>confdefs.h <<\_ACEOF
    22156 #define COIN_HAS_CBC 1
    22157 _ACEOF
    22158 
    22159 
    22160   # Set the variables for source and object code location
    22161 
    22162   CBCSRCDIR=`cd $srcdir/$coin_has_cbc; pwd`
    22163 
    22164   CBCOBJDIR=`pwd`/$coin_has_cbc
    22165 
    22166   CBCDOCDIR=$abs_lib_dir/../share/doc/coin/Cbc
    22167 fi
    22168 
    22169   # Define the Makefile conditional
    22170 
    22171 
    22172 if test $coin_has_cbc != unavailable &&
    22173                 test $coin_has_cbc != skipping; then
    22174   COIN_HAS_CBC_TRUE=
    22175   COIN_HAS_CBC_FALSE='#'
    22176 else
    22177   COIN_HAS_CBC_TRUE='#'
    22178   COIN_HAS_CBC_FALSE=
    22179 fi
    22180 
    22181 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
    22182 echo "${ECHO_T}$coin_has_cbc" >&6
    22183 
    22184 echo "$as_me:$LINENO: checking for COIN project Osi" >&5
    22185 echo $ECHO_N "checking for COIN project Osi... $ECHO_C" >&6
    22186 
    22187 # First check, if the sub-project is actually available (ToDo: allow
    22188 # other locations)
    22189 
    22190 coin_has_osi=unavailable
    22191 if test x"$COIN_SKIP_PROJECTS" != x; then
    22192   for dir in $COIN_SKIP_PROJECTS; do
    22193     if test $dir = Osi; then
    22194       coin_has_osi=skipping
    22195     fi
    22196   done
    22197 fi
    22198 
    22199 if test $coin_has_osi != skipping; then
    22200   if test $PACKAGE_TARNAME = osi; then
    22201     coin_has_osi=.
    22202   else
    22203     if test -d $srcdir/../Osi; then
    22204       coin_has_osi=../Osi
    22205     fi
    22206   fi
    22207 fi
    22208 
    22209 if test $coin_has_osi != unavailable &&
    22210    test $coin_has_osi != skipping; then
    22211   # Set the #define if the component is available
    22212 
    22213 cat >>confdefs.h <<\_ACEOF
    22214 #define COIN_HAS_OSI 1
    22215 _ACEOF
    22216 
    22217 
    22218   # Set the variables for source and object code location
    22219 
    22220   OSISRCDIR=`cd $srcdir/$coin_has_osi; pwd`
    22221 
    22222   OSIOBJDIR=`pwd`/$coin_has_osi
    22223 
    22224   OSIDOCDIR=$abs_lib_dir/../share/doc/coin/Osi
    22225 fi
    22226 
    22227   # Define the Makefile conditional
    22228 
    22229 
    22230 if test $coin_has_osi != unavailable &&
    22231                 test $coin_has_osi != skipping; then
    22232   COIN_HAS_OSI_TRUE=
    22233   COIN_HAS_OSI_FALSE='#'
    22234 else
    22235   COIN_HAS_OSI_TRUE='#'
    22236   COIN_HAS_OSI_FALSE=
    22237 fi
    22238 
    22239 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    22240 echo "${ECHO_T}$coin_has_osi" >&6
    22241 
    22242 echo "$as_me:$LINENO: checking for COIN project Cgl" >&5
    22243 echo $ECHO_N "checking for COIN project Cgl... $ECHO_C" >&6
    22244 
    22245 # First check, if the sub-project is actually available (ToDo: allow
    22246 # other locations)
    22247 
    22248 coin_has_cgl=unavailable
    22249 if test x"$COIN_SKIP_PROJECTS" != x; then
    22250   for dir in $COIN_SKIP_PROJECTS; do
    22251     if test $dir = Cgl; then
    22252       coin_has_cgl=skipping
    22253     fi
    22254   done
    22255 fi
    22256 
    22257 if test $coin_has_cgl != skipping; then
    22258   if test $PACKAGE_TARNAME = cgl; then
    22259     coin_has_cgl=.
    22260   else
    22261     if test -d $srcdir/../Cgl; then
    22262       coin_has_cgl=../Cgl
    22263     fi
    22264   fi
    22265 fi
    22266 
    22267 if test $coin_has_cgl != unavailable &&
    22268    test $coin_has_cgl != skipping; then
    22269   # Set the #define if the component is available
    22270 
    22271 cat >>confdefs.h <<\_ACEOF
    22272 #define COIN_HAS_CGL 1
    22273 _ACEOF
    22274 
    22275 
    22276   # Set the variables for source and object code location
    22277 
    22278   CGLSRCDIR=`cd $srcdir/$coin_has_cgl; pwd`
    22279 
    22280   CGLOBJDIR=`pwd`/$coin_has_cgl
    22281 
    22282   CGLDOCDIR=$abs_lib_dir/../share/doc/coin/Cgl
    22283 fi
    22284 
    22285   # Define the Makefile conditional
    22286 
    22287 
    22288 if test $coin_has_cgl != unavailable &&
    22289                 test $coin_has_cgl != skipping; then
    22290   COIN_HAS_CGL_TRUE=
    22291   COIN_HAS_CGL_FALSE='#'
    22292 else
    22293   COIN_HAS_CGL_TRUE='#'
    22294   COIN_HAS_CGL_FALSE=
    22295 fi
    22296 
    22297 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
    22298 echo "${ECHO_T}$coin_has_cgl" >&6
    22299 
    22300 echo "$as_me:$LINENO: checking for COIN project Couenne" >&5
    22301 echo $ECHO_N "checking for COIN project Couenne... $ECHO_C" >&6
    22302 
    22303 # First check, if the sub-project is actually available (ToDo: allow
    22304 # other locations)
    22305 
    22306 coin_has_couenne=unavailable
    22307 if test x"$COIN_SKIP_PROJECTS" != x; then
    22308   for dir in $COIN_SKIP_PROJECTS; do
    22309     if test $dir = Couenne; then
    22310       coin_has_couenne=skipping
    22311     fi
    22312   done
    22313 fi
    22314 
    22315 if test $coin_has_couenne != skipping; then
    22316   if test $PACKAGE_TARNAME = couenne; then
    22317     coin_has_couenne=.
    22318   else
    22319     if test -d $srcdir/../Couenne; then
    22320       coin_has_couenne=../Couenne
    22321     fi
    22322   fi
    22323 fi
    22324 
    22325 if test $coin_has_couenne != unavailable &&
    22326    test $coin_has_couenne != skipping; then
    22327   # Set the #define if the component is available
    22328 
    22329 cat >>confdefs.h <<\_ACEOF
    22330 #define COIN_HAS_COUENNE 1
    22331 _ACEOF
    22332 
    22333 
    22334   # Set the variables for source and object code location
    22335 
    22336   COUENNESRCDIR=`cd $srcdir/$coin_has_couenne; pwd`
    22337 
    22338   COUENNEOBJDIR=`pwd`/$coin_has_couenne
    22339 
    22340   COUENNEDOCDIR=$abs_lib_dir/../share/doc/coin/Couenne
    22341 fi
    22342 
    22343   # Define the Makefile conditional
    22344 
    22345 
    22346 if test $coin_has_couenne != unavailable &&
    22347                 test $coin_has_couenne != skipping; then
    22348   COIN_HAS_COUENNE_TRUE=
    22349   COIN_HAS_COUENNE_FALSE='#'
    22350 else
    22351   COIN_HAS_COUENNE_TRUE='#'
    22352   COIN_HAS_COUENNE_FALSE=
    22353 fi
    22354 
    22355 echo "$as_me:$LINENO: result: $coin_has_couenne" >&5
    22356 echo "${ECHO_T}$coin_has_couenne" >&6
    22357 
     22609# Define the Makefile conditional
     22610
     22611
     22612if test $coin_has_bonmin != notGiven &&
     22613                test $coin_has_bonmin != skipping; then
     22614  COIN_HAS_BONMIN_TRUE=
     22615  COIN_HAS_BONMIN_FALSE='#'
     22616else
     22617  COIN_HAS_BONMIN_TRUE='#'
     22618  COIN_HAS_BONMIN_FALSE=
     22619fi
     22620
     22621
     22622
     22623if test $coin_has_bonmin != yes ; then
     22624  { { echo "$as_me:$LINENO: error: Required package Bonmin not available." >&5
     22625echo "$as_me: error: Required package Bonmin not available." >&2;}
     22626   { (exit 1); exit 1; }; }
     22627fi
    2235822628
    2235922629#############################################################################
     
    2236122631#############################################################################
    2236222632
    22363 # Ampl Solver library
    22364 coin_aslobjdir=../ThirdParty/ASL
    22365 coin_aslsrcdir=$srcdir/$coin_aslobjdir
    22366 
    22367 # Determine the name of the ASL library
    22368 case "$CC" in
    22369   cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    22370     ampllib=amplsolv.lib ;;
    22371   *)
    22372     ampllib=amplsolver.a ;;
    22373 esac
    22374 
    22375 
    22376 # Check whether --with-asldir or --without-asldir was given.
    22377 if test "${with_asldir+set}" = set; then
    22378   withval="$with_asldir"
    22379   use_asldir=$withval
    22380 else
    22381   use_asldir=
     22633# Bonmin AMPL interface
     22634# bad bad: if AMPL stuff is available, then libCouenne will depend on it, so we add it to CouenneLib
     22635
     22636echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
     22637echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
     22638
     22639coin_has_asl=notGiven
     22640
     22641# check if user wants to skip package in any case
     22642if test x"$COIN_SKIP_PROJECTS" != x; then
     22643  for dir in $COIN_SKIP_PROJECTS; do
     22644    if test $dir = "ASL"; then
     22645      coin_has_asl=skipping
     22646    fi
     22647  done
     22648fi
     22649
     22650ASL_LIBS=
     22651ASL_CFLAGS=
     22652ASL_DATA=
     22653
     22654
     22655
     22656
     22657
     22658
     22659
     22660
     22661
     22662
     22663
     22664
     22665
     22666
     22667
     22668
     22669
     22670#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     22671if test $coin_has_asl != skipping; then
     22672
     22673# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
     22674if test "${with_asl_lib+set}" = set; then
     22675  withval="$with_asl_lib"
     22676  if test "$withval" = no ; then
     22677       coin_has_asl=skipping
     22678     else
     22679       coin_has_asl=yes
     22680       ASL_LIBS="$withval"
     22681
     22682         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     22683         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     22684
     22685     fi
     22686
    2238222687fi;
    22383 
    22384 if test "$use_asldir" = BUILD; then
    22385   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    22386     # If we are configuring ThirdParty/ASL, don't check
    22387     if test -r $coin_aslobjdir/.MakeOk; then :; else
    22388       { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5
    22389 echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;}
     22688fi
     22689
     22690if test $coin_has_asl != skipping; then
     22691
     22692# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
     22693if test "${with_asl_incdir+set}" = set; then
     22694  withval="$with_asl_incdir"
     22695  if test "$withval" = no ; then
     22696       coin_has_asl=skipping
     22697     else
     22698       coin_has_asl=yes
     22699       ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
     22700       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     22701     fi
     22702
     22703fi;
     22704fi
     22705
     22706if test $coin_has_asl != skipping; then
     22707
     22708# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
     22709if test "${with_asl_datadir+set}" = set; then
     22710  withval="$with_asl_datadir"
     22711  if test "$withval" = no ; then
     22712       coin_has_asl=skipping
     22713     else
     22714       coin_has_asl=yes
     22715       ASL_DATA="$withval"
     22716     fi
     22717
     22718fi;
     22719fi
     22720
     22721if test $coin_has_asl = notGiven; then
     22722  if test -n "$PKG_CONFIG" ; then
     22723    # set search path for pkg-config
     22724    # need to export variable to be sure that the following pkg-config gets these values
     22725    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22726    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22727    export PKG_CONFIG_PATH
     22728
     22729    # let pkg-config do it's magic
     22730
     22731
     22732
     22733if test -n "$PKG_CONFIG" ; then
     22734  if $PKG_CONFIG --exists "bonminamplinterface"; then
     22735    ASL_VERSIONS="`$PKG_CONFIG --modversion "bonminamplinterface" 2>/dev/null | tr '\n' ' '`"
     22736     cflags=`$PKG_CONFIG --cflags "bonminamplinterface" 2>/dev/null`
     22737    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22738        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22739        # but only do this if is not trivial
     22740    if test "$CYGPATH_W" != "echo" ; then
     22741      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22742      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22743    fi
     22744    ASL_CFLAGS="$cflags"
     22745    ASL_LIBS=`$PKG_CONFIG --libs "bonminamplinterface" 2>/dev/null`
     22746    ASL_DATA=`$PKG_CONFIG --variable=datadir "bonminamplinterface" 2>/dev/null`
     22747     coin_has_asl=yes
     22748        echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
     22749echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
     22750
     22751        # adjust linker flags for (i)cl compiler
     22752        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     22753        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22754        then
     22755          ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22756        fi
     22757
     22758        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     22759
     22760          COUENNELIB_PCREQUIRES="bonminamplinterface $COUENNELIB_PCREQUIRES"
     22761          COUENNELIB_CFLAGS="$ASL_CFLAGS $COUENNELIB_CFLAGS"
     22762          COUENNELIB_LIBS="$ASL_LIBS $COUENNELIB_LIBS"
     22763
     22764
     22765
     22766  else
     22767    ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "bonminamplinterface"`
     22768      coin_has_asl=notGiven
     22769        echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
     22770echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
     22771
     22772  fi
     22773else
     22774  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
     22775echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
    2239022776   { (exit 1); exit 1; }; }
     22777fi
     22778
     22779
     22780
     22781
     22782    # reset PKG_CONFIG_PATH variable
     22783    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22784    export PKG_CONFIG_PATH
     22785
     22786  else
     22787    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22788echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22789
     22790echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
     22791echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
     22792
     22793coin_has_asl=notGiven
     22794ASL_LIBS=
     22795ASL_LIBS_INSTALLED=
     22796ASL_CFLAGS=
     22797ASL_CFLAGS_INSTALLED=
     22798ASL_DATA=
     22799ASL_DATA_INSTALLED=
     22800
     22801# initial list of dependencies is "bonminamplinterface", but we need to filter out version number specifications (= x, <= x, >= x)
     22802projtoprocess="bonminamplinterface"
     22803
     22804# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22805# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22806# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     22807# also, we setup the DATA variable
     22808allproj=""
     22809allpcfiles=""
     22810allpcifiles=""
     22811while test "x$projtoprocess" != x ; do
     22812
     22813  for proj in $projtoprocess ; do
     22814    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22815    pcfile=""
     22816    save_IFS="$IFS"
     22817    IFS=":"
     22818    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22819      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     22820      if test -r "$dir/${proj}-uninstalled.pc" ; then
     22821        pcfile="$dir/$proj-uninstalled.pc"
     22822        if test -r "$dir/${proj}.pc" ; then
     22823          pcifile="$dir/${proj}.pc"
     22824        else
     22825          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22826echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22827          pcifile=
     22828        fi
     22829        break
     22830      fi
     22831    done
     22832    IFS="$save_IFS"
     22833
     22834    if test "x$pcfile" != x ; then
     22835      # read dependencies from $pcfile and filter it
     22836      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22837
     22838      # add projrequires to the front of the list of projects that have to be processed next
     22839      # at the same time, remove $proj from this list
     22840      projtoprocess=${projtoprocess/$proj/$projrequires}
     22841
     22842      # read DATA from $pcfile, if _DATA is still empty
     22843      if test "x$ASL_DATA" = x ; then
     22844        projdatadir=
     22845        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22846        eval `sh -c "$pcfilemod"`
     22847        ASL_DATA="$projdatadir"
     22848      fi
     22849
     22850      allproj="$allproj $proj"
     22851      allpcfiles="$pcfile:$allpcfiles"
     22852
     22853    else
     22854      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22855echo "${ECHO_T}no, dependency $proj not available" >&6
     22856      allproj=fail
     22857      break 2
    2239122858    fi
    22392   fi
    22393 elif test -z "$use_asldir"; then
    22394  # try to find sources - if not given don't compile
    22395   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    22396     if test -r $coin_aslobjdir/.MakeOk; then
    22397       use_asldir=BUILD
    22398     else
    22399       use_asldir=no
     22859
     22860    if test "x$pcifile" != x ; then
     22861      allpcifiles="$pcifile:$allpcifiles"
     22862
     22863      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22864      if test "x$ASL_DATA_INSTALLED" = x ; then
     22865        projdatadir=
     22866        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22867        eval `sh -c "$pcifilemod"`
     22868        if test "${CYGPATH_W}" != "echo"; then
     22869          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22870        fi
     22871        ASL_DATA_INSTALLED="$projdatadir"
     22872      fi
     22873
    2240022874    fi
    22401   else
    22402     use_asldir=no
    22403   fi
    22404 elif test "$use_asldir" != "no"; then
    22405   if test -r $use_asldir/$ampllib; then
    22406 
    22407   :
    22408 else
    22409   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
    22410 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
    22411    { (exit 1); exit 1; }; }
    22412   :
    22413 fi
    22414 
    22415   if test -r $use_asldir/asl.h; then
    22416 
    22417   :
    22418 else
    22419   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
    22420 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
    22421    { (exit 1); exit 1; }; }
    22422   :
    22423 fi
    22424 
    22425   use_asldir=`cd $use_asldir; pwd`
    22426   case $build in
    22427     *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
    22428   esac
    22429 fi
    22430 
    22431 # Variable containing ASL library (including full path)
    22432 
    22433 # Variable containing flags for including ASL header files
    22434 
    22435 
    22436 if test "$use_asldir" = BUILD; then
    22437   coin_aslobjdir=`cd $coin_aslobjdir; pwd`
    22438   ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    22439   coin_aslsrcdir=`cd $coin_aslsrcdir; pwd`
    22440   ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg`
    22441 elif test "$use_asldir" != no; then
    22442   ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    22443   ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg`
    22444 fi
    22445 
    22446 if test "$use_asldir" != no; then
    22447   ac_ext=c
    22448 ac_cpp='$CPP $CPPFLAGS'
    22449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22452 
    22453   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    22454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    22455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    22456   echo $ECHO_N "(cached) $ECHO_C" >&6
    22457 else
    22458   ac_check_lib_save_LIBS=$LIBS
    22459 LIBS="-ldl  $LIBS"
    22460 cat >conftest.$ac_ext <<_ACEOF
    22461 /* confdefs.h.  */
    22462 _ACEOF
    22463 cat confdefs.h >>conftest.$ac_ext
    22464 cat >>conftest.$ac_ext <<_ACEOF
    22465 /* end confdefs.h.  */
    22466 
    22467 /* Override any gcc2 internal prototype to avoid an error.  */
    22468 #ifdef __cplusplus
    22469 extern "C"
    22470 #endif
    22471 /* We use char because int might match the return type of a gcc2
    22472    builtin and then its argument prototype would still apply.  */
    22473 char dlopen ();
    22474 int
    22475 main ()
    22476 {
    22477 dlopen ();
    22478   ;
    22479   return 0;
    22480 }
    22481 _ACEOF
    22482 rm -f conftest.$ac_objext conftest$ac_exeext
    22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22484   (eval $ac_link) 2>conftest.er1
    22485   ac_status=$?
    22486   grep -v '^ *+' conftest.er1 >conftest.err
    22487   rm -f conftest.er1
    22488   cat conftest.err >&5
    22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22490   (exit $ac_status); } &&
    22491          { ac_try='test -z "$ac_c_werror_flag"
    22492                          || test ! -s conftest.err'
    22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22494   (eval $ac_try) 2>&5
    22495   ac_status=$?
    22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22497   (exit $ac_status); }; } &&
    22498          { ac_try='test -s conftest$ac_exeext'
    22499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22500   (eval $ac_try) 2>&5
    22501   ac_status=$?
    22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22503   (exit $ac_status); }; }; then
    22504   ac_cv_lib_dl_dlopen=yes
    22505 else
    22506   echo "$as_me: failed program was:" >&5
    22507 sed 's/^/| /' conftest.$ac_ext >&5
    22508 
    22509 ac_cv_lib_dl_dlopen=no
    22510 fi
    22511 rm -f conftest.err conftest.$ac_objext \
    22512       conftest$ac_exeext conftest.$ac_ext
    22513 LIBS=$ac_check_lib_save_LIBS
    22514 fi
    22515 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    22516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    22517 if test $ac_cv_lib_dl_dlopen = yes; then
    22518   ASLLIB="$ASLLIB -ldl"
    22519 fi
    22520 
     22875
     22876    break
     22877  done
     22878
     22879  # remove spaces on begin of $projtoprocess
     22880  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22881
     22882done
     22883
     22884if test "$allproj" != fail ; then
     22885
     22886  # now go through the list of .pc files and assemble compiler and linker flags
     22887  # important is here to obey the reverse order that has been setup before,
     22888  # since then libraries that are required by several others should be after these other libraries
     22889  pcfilesprocessed=""
     22890
     22891  save_IFS="$IFS"
     22892  IFS=":"
     22893  for pcfile in $allpcfiles ; do
     22894
     22895    # if $pcfile has been processed already, skip this round
     22896    if test "x$pcfilesprocessed" != x ; then
     22897      for pcfiledone in $pcfilesprocessed ; do
     22898        if test "$pcfiledone" = "$pcfile" ; then
     22899          continue 2
     22900        fi
     22901      done
     22902    fi
     22903
     22904    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22905    #   replace "Libs:" by "echo projlibs="
     22906    #   replace "Cflags:" by "echo projcflags="
     22907    #   remove every line starting with <some word>:
     22908    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22909
     22910    # set projcflags and projlibs variables by running $pcfilemod
     22911    projcflags=
     22912    projlibs=
     22913    eval `sh -c "$pcfilemod"`
     22914
     22915    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22916    if test "${CYGPATH_W}" != "echo"; then
     22917      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22918    fi
     22919    ASL_CFLAGS="$projcflags $ASL_CFLAGS"
     22920
     22921    # set LIBS variable
     22922    ASL_LIBS="$projlibs $ASL_LIBS"
     22923
     22924    # remember that we have processed $pcfile
     22925    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22926
     22927  done
     22928  IFS="$save_IFS"
     22929
     22930
     22931  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22932  # important is here again to obey the reverse order that has been setup before,
     22933  # since then libraries that are required by several others should be after these other libraries
     22934  pcfilesprocessed=""
     22935
     22936  save_IFS="$IFS"
     22937  IFS=":"
     22938  for pcfile in $allpcifiles ; do
     22939
     22940    # if $pcfile has been processed already, skip this round
     22941    if test "x$pcfilesprocessed" != x ; then
     22942      for pcfiledone in $pcfilesprocessed ; do
     22943        if test "$pcfiledone" = "$pcfile" ; then
     22944          continue 2
     22945        fi
     22946      done
     22947    fi
     22948
     22949    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22950    #   replace "Libs:" by "echo projlibs="
     22951    #   replace "Cflags:" by "echo projcflags="
     22952    #   remove every line starting with <some word>:
     22953    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22954
     22955    # set projcflags and projlibs variables by running $pcfilemod
     22956    projcflags=
     22957    projlibs=
     22958    eval `sh -c "$pcfilemod"`
     22959
     22960    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22961    if test "${CYGPATH_W}" != "echo"; then
     22962      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22963    fi
     22964    ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
     22965
     22966    # set LIBS variable
     22967    ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
     22968
     22969    # remember that we have processed $pcfile
     22970    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22971
     22972  done
     22973  IFS="$save_IFS"
     22974
     22975
     22976  # finish up
    2252122977  coin_has_asl=yes
     22978  echo "$as_me:$LINENO: result: yes" >&5
     22979echo "${ECHO_T}yes" >&6
    2252222980
    2252322981cat >>confdefs.h <<\_ACEOF
     
    2252522983_ACEOF
    2252622984
    22527   ac_ext=c
    22528 ac_cpp='$CPP $CPPFLAGS'
    22529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22532 
    22533 else
    22534   coin_has_asl=no
    22535 fi
    22536 
    22537 
    22538 if test $coin_has_asl = yes; then
     22985
     22986  # adjust linker flags for (i)cl compiler
     22987  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     22988  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22989  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22990  #    everything of the form "-lname" by "libname.lib"
     22991  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22992  then
     22993    ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22994    ASL_LIBS_INSTALLED=`echo " $ASL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22995  fi
     22996
     22997
     22998    COUENNELIB_PCREQUIRES="bonminamplinterface $COUENNELIB_PCREQUIRES"
     22999    COUENNELIB_CFLAGS="$ASL_CFLAGS $COUENNELIB_CFLAGS"
     23000    COUENNELIB_LIBS="$ASL_LIBS $COUENNELIB_LIBS"
     23001    COUENNELIB_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     23002    COUENNELIB_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     23003
     23004
     23005fi
     23006
     23007
     23008
     23009if test $coin_has_asl != notGiven &&
     23010                test $coin_has_asl != skipping; then
    2253923011  COIN_HAS_ASL_TRUE=
    2254023012  COIN_HAS_ASL_FALSE='#'
     
    2254323015  COIN_HAS_ASL_FALSE=
    2254423016fi
     23017
     23018
     23019
     23020  fi
     23021
     23022else
     23023  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
     23024echo "${ECHO_T}$coin_has_asl" >&6
     23025fi
     23026
     23027if test $coin_has_asl != skipping &&
     23028   test $coin_has_asl != notGiven ; then
     23029
     23030cat >>confdefs.h <<\_ACEOF
     23031#define COIN_HAS_ASL 1
     23032_ACEOF
     23033
     23034
     23035  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23036if test "${enable_interpackage_dependencies+set}" = set; then
     23037  enableval="$enable_interpackage_dependencies"
     23038
     23039else
     23040  enable_interpackage_dependencies=yes
     23041fi;
     23042
     23043  if test $enable_interpackage_dependencies = yes ; then
     23044     # construct dependencies variables from LIBS variables
     23045     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23046     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23047     # then remove everything of the form -xxx
     23048     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23049     ASL_DEPENDENCIES=`echo " $ASL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23050
     23051       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23052
     23053  fi
     23054
     23055  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23056    if test -n "$ASL_CFLAGS" ; then
     23057      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     23058echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
     23059    fi
     23060    if test -n "$ASL_LIBS" ; then
     23061      { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
     23062echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
     23063    fi
     23064    if test -n "$ASL_DEPENDENCIES" ; then
     23065      { echo "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5
     23066echo "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;}
     23067    fi
     23068    if test -n "$ASL_DATA" ; then
     23069      { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
     23070echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
     23071    fi
     23072    if test -n "$ASL_CFLAGS" ; then
     23073      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     23074echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
     23075    fi
     23076
     23077      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     23078echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     23079      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     23080echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     23081      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     23082echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     23083
     23084  fi
     23085fi
     23086
     23087# Define the Makefile conditional
     23088
     23089
     23090if test $coin_has_asl != notGiven &&
     23091                test $coin_has_asl != skipping; then
     23092  COIN_HAS_ASL_TRUE=
     23093  COIN_HAS_ASL_FALSE='#'
     23094else
     23095  COIN_HAS_ASL_TRUE='#'
     23096  COIN_HAS_ASL_FALSE=
     23097fi
     23098
    2254523099
    2254623100
     
    2263023184    if test x"$nauty_libcheck" != xno; then
    2263123185           coin_save_LIBS="$LIBS"
    22632            LIBS="$NTYLIB $ADDLIBS"
     23186           LIBS="$NTYLIB "
    2263323187           coin_NTY_link=no
    2263423188           ac_ext=c
     
    2269823252ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2269923253
    22700            if test x"$coin_NTY_link" = xyes ; then
    22701              LIBS="$coin_save_LIBS"
    22702            else
     23254           LIBS="$coin_save_LIBS"
     23255           if test x"$coin_NTY_link" != xyes ; then
    2270323256             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) nauty with NTY" >&5
    2270423257echo "$as_me: error: Cannot find symbol(s) nauty with NTY" >&2;}
     
    2270923262
    2271023263# If we make it this far, we've verified the file and linked the function. Add
    22711 # the necessary link flags to ADDLIBS and define the preprocessor symbol
     23264# the necessary link flags to CouenneLib_{PC}LIBS and define the preprocessor symbol
    2271223265# COIN_HAS_LBRY.
    2271323266
    22714     ADDLIBS="$NTYLIB $ADDLIBS"
     23267
     23268      COUENNELIB_LIBS="$NTYLIB $COUENNELIB_LIBS"
     23269      COUENNELIB_PCLIBS="$NTYLIB $COUENNELIB_PCLIBS"
     23270      COUENNELIB_LIBS_INSTALLED="$NTYLIB $COUENNELIB_LIBS_INSTALLED"
     23271
     23272
    2271523273
    2271623274cat >>confdefs.h <<\_ACEOF
     
    2274323301
    2274423302
    22745 
    22746   echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
    22747 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
    22748 
    22749 # Check for header file directory
     23303# CPLEX: check for OsiCplex, and check for cplex include dir, so we can include cplex.h
     23304
     23305echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
     23306echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
     23307
     23308coin_has_cpx=notGiven
     23309
     23310# check if user wants to skip package in any case
     23311if test x"$COIN_SKIP_PROJECTS" != x; then
     23312  for dir in $COIN_SKIP_PROJECTS; do
     23313    if test $dir = "Cpx"; then
     23314      coin_has_cpx=skipping
     23315    fi
     23316  done
     23317fi
     23318
     23319CPX_LIBS=
     23320CPX_CFLAGS=
     23321CPX_DATA=
     23322
     23323
     23324
     23325
     23326
     23327
     23328
     23329
     23330
     23331
     23332
     23333
     23334
     23335
     23336
     23337
     23338
     23339#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     23340if test $coin_has_cpx != skipping; then
     23341
     23342# Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
     23343if test "${with_cpx_lib+set}" = set; then
     23344  withval="$with_cpx_lib"
     23345  if test "$withval" = no ; then
     23346       coin_has_cpx=skipping
     23347     else
     23348       coin_has_cpx=yes
     23349       CPX_LIBS="$withval"
     23350
     23351         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     23352         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     23353
     23354     fi
     23355
     23356fi;
     23357fi
     23358
     23359if test $coin_has_cpx != skipping; then
     23360
     23361# Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
     23362if test "${with_cpx_incdir+set}" = set; then
     23363  withval="$with_cpx_incdir"
     23364  if test "$withval" = no ; then
     23365       coin_has_cpx=skipping
     23366     else
     23367       coin_has_cpx=yes
     23368       CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     23369       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     23370     fi
     23371
     23372fi;
     23373fi
     23374
     23375if test $coin_has_cpx != skipping; then
     23376
     23377# Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
     23378if test "${with_cpx_datadir+set}" = set; then
     23379  withval="$with_cpx_datadir"
     23380  if test "$withval" = no ; then
     23381       coin_has_cpx=skipping
     23382     else
     23383       coin_has_cpx=yes
     23384       CPX_DATA="$withval"
     23385     fi
     23386
     23387fi;
     23388fi
     23389
     23390if test $coin_has_cpx = notGiven; then
     23391  if test -n "$PKG_CONFIG" ; then
     23392    # set search path for pkg-config
     23393    # need to export variable to be sure that the following pkg-config gets these values
     23394    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23395    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23396    export PKG_CONFIG_PATH
     23397
     23398    # let pkg-config do it's magic
     23399
     23400
     23401
     23402if test -n "$PKG_CONFIG" ; then
     23403  if $PKG_CONFIG --exists "osi-cplex"; then
     23404    CPX_VERSIONS="`$PKG_CONFIG --modversion "osi-cplex" 2>/dev/null | tr '\n' ' '`"
     23405     cflags=`$PKG_CONFIG --cflags "osi-cplex" 2>/dev/null`
     23406    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23407        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23408        # but only do this if is not trivial
     23409    if test "$CYGPATH_W" != "echo" ; then
     23410      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23411      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23412    fi
     23413    CPX_CFLAGS="$cflags"
     23414    CPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/null`
     23415    CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cplex" 2>/dev/null`
     23416     coin_has_cpx=yes
     23417        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
     23418echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
     23419
     23420        # adjust linker flags for (i)cl compiler
     23421        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     23422        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23423        then
     23424          CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23425        fi
     23426
     23427        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     23428
     23429          COUENNELIB_PCREQUIRES="osi-cplex $COUENNELIB_PCREQUIRES"
     23430          COUENNELIB_CFLAGS="$CPX_CFLAGS $COUENNELIB_CFLAGS"
     23431          COUENNELIB_LIBS="$CPX_LIBS $COUENNELIB_LIBS"
     23432
     23433
     23434
     23435  else
     23436    CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cplex"`
     23437      coin_has_cpx=notGiven
     23438        echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
     23439echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
     23440
     23441  fi
     23442else
     23443  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
     23444echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
     23445   { (exit 1); exit 1; }; }
     23446fi
     23447
     23448
     23449
     23450
     23451    # reset PKG_CONFIG_PATH variable
     23452    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23453    export PKG_CONFIG_PATH
     23454
     23455  else
     23456    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23457echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23458
     23459echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
     23460echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
     23461
     23462coin_has_cpx=notGiven
     23463CPX_LIBS=
     23464CPX_LIBS_INSTALLED=
     23465CPX_CFLAGS=
     23466CPX_CFLAGS_INSTALLED=
     23467CPX_DATA=
     23468CPX_DATA_INSTALLED=
     23469
     23470# initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x)
     23471projtoprocess="osi-cplex"
     23472
     23473# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23474# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23475# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23476# also, we setup the DATA variable
     23477allproj=""
     23478allpcfiles=""
     23479allpcifiles=""
     23480while test "x$projtoprocess" != x ; do
     23481
     23482  for proj in $projtoprocess ; do
     23483    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23484    pcfile=""
     23485    save_IFS="$IFS"
     23486    IFS=":"
     23487    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23488      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     23489      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23490        pcfile="$dir/$proj-uninstalled.pc"
     23491        if test -r "$dir/${proj}.pc" ; then
     23492          pcifile="$dir/${proj}.pc"
     23493        else
     23494          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23495echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23496          pcifile=
     23497        fi
     23498        break
     23499      fi
     23500    done
     23501    IFS="$save_IFS"
     23502
     23503    if test "x$pcfile" != x ; then
     23504      # read dependencies from $pcfile and filter it
     23505      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23506
     23507      # add projrequires to the front of the list of projects that have to be processed next
     23508      # at the same time, remove $proj from this list
     23509      projtoprocess=${projtoprocess/$proj/$projrequires}
     23510
     23511      # read DATA from $pcfile, if _DATA is still empty
     23512      if test "x$CPX_DATA" = x ; then
     23513        projdatadir=
     23514        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23515        eval `sh -c "$pcfilemod"`
     23516        CPX_DATA="$projdatadir"
     23517      fi
     23518
     23519      allproj="$allproj $proj"
     23520      allpcfiles="$pcfile:$allpcfiles"
     23521
     23522    else
     23523      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23524echo "${ECHO_T}no, dependency $proj not available" >&6
     23525      allproj=fail
     23526      break 2
     23527    fi
     23528
     23529    if test "x$pcifile" != x ; then
     23530      allpcifiles="$pcifile:$allpcifiles"
     23531
     23532      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23533      if test "x$CPX_DATA_INSTALLED" = x ; then
     23534        projdatadir=
     23535        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23536        eval `sh -c "$pcifilemod"`
     23537        if test "${CYGPATH_W}" != "echo"; then
     23538          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23539        fi
     23540        CPX_DATA_INSTALLED="$projdatadir"
     23541      fi
     23542
     23543    fi
     23544
     23545    break
     23546  done
     23547
     23548  # remove spaces on begin of $projtoprocess
     23549  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     23550
     23551done
     23552
     23553if test "$allproj" != fail ; then
     23554
     23555  # now go through the list of .pc files and assemble compiler and linker flags
     23556  # important is here to obey the reverse order that has been setup before,
     23557  # since then libraries that are required by several others should be after these other libraries
     23558  pcfilesprocessed=""
     23559
     23560  save_IFS="$IFS"
     23561  IFS=":"
     23562  for pcfile in $allpcfiles ; do
     23563
     23564    # if $pcfile has been processed already, skip this round
     23565    if test "x$pcfilesprocessed" != x ; then
     23566      for pcfiledone in $pcfilesprocessed ; do
     23567        if test "$pcfiledone" = "$pcfile" ; then
     23568          continue 2
     23569        fi
     23570      done
     23571    fi
     23572
     23573    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23574    #   replace "Libs:" by "echo projlibs="
     23575    #   replace "Cflags:" by "echo projcflags="
     23576    #   remove every line starting with <some word>:
     23577    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23578
     23579    # set projcflags and projlibs variables by running $pcfilemod
     23580    projcflags=
     23581    projlibs=
     23582    eval `sh -c "$pcfilemod"`
     23583
     23584    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23585    if test "${CYGPATH_W}" != "echo"; then
     23586      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23587    fi
     23588    CPX_CFLAGS="$projcflags $CPX_CFLAGS"
     23589
     23590    # set LIBS variable
     23591    CPX_LIBS="$projlibs $CPX_LIBS"
     23592
     23593    # remember that we have processed $pcfile
     23594    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23595
     23596  done
     23597  IFS="$save_IFS"
     23598
     23599
     23600  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23601  # important is here again to obey the reverse order that has been setup before,
     23602  # since then libraries that are required by several others should be after these other libraries
     23603  pcfilesprocessed=""
     23604
     23605  save_IFS="$IFS"
     23606  IFS=":"
     23607  for pcfile in $allpcifiles ; do
     23608
     23609    # if $pcfile has been processed already, skip this round
     23610    if test "x$pcfilesprocessed" != x ; then
     23611      for pcfiledone in $pcfilesprocessed ; do
     23612        if test "$pcfiledone" = "$pcfile" ; then
     23613          continue 2
     23614        fi
     23615      done
     23616    fi
     23617
     23618    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23619    #   replace "Libs:" by "echo projlibs="
     23620    #   replace "Cflags:" by "echo projcflags="
     23621    #   remove every line starting with <some word>:
     23622    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23623
     23624    # set projcflags and projlibs variables by running $pcfilemod
     23625    projcflags=
     23626    projlibs=
     23627    eval `sh -c "$pcfilemod"`
     23628
     23629    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23630    if test "${CYGPATH_W}" != "echo"; then
     23631      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23632    fi
     23633    CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
     23634
     23635    # set LIBS variable
     23636    CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
     23637
     23638    # remember that we have processed $pcfile
     23639    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23640
     23641  done
     23642  IFS="$save_IFS"
     23643
     23644
     23645  # finish up
     23646  coin_has_cpx=yes
     23647  echo "$as_me:$LINENO: result: yes" >&5
     23648echo "${ECHO_T}yes" >&6
     23649
     23650cat >>confdefs.h <<\_ACEOF
     23651#define COIN_HAS_CPX 1
     23652_ACEOF
     23653
     23654
     23655  # adjust linker flags for (i)cl compiler
     23656  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     23657  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23658  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23659  #    everything of the form "-lname" by "libname.lib"
     23660  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23661  then
     23662    CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23663    CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23664  fi
     23665
     23666
     23667    COUENNELIB_PCREQUIRES="osi-cplex $COUENNELIB_PCREQUIRES"
     23668    COUENNELIB_CFLAGS="$CPX_CFLAGS $COUENNELIB_CFLAGS"
     23669    COUENNELIB_LIBS="$CPX_LIBS $COUENNELIB_LIBS"
     23670    COUENNELIB_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     23671    COUENNELIB_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     23672
     23673
     23674fi
     23675
     23676
     23677
     23678if test $coin_has_cpx != notGiven &&
     23679                test $coin_has_cpx != skipping; then
     23680  COIN_HAS_CPX_TRUE=
     23681  COIN_HAS_CPX_FALSE='#'
     23682else
     23683  COIN_HAS_CPX_TRUE='#'
     23684  COIN_HAS_CPX_FALSE=
     23685fi
     23686
     23687
     23688
     23689  fi
     23690
     23691else
     23692  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     23693echo "${ECHO_T}$coin_has_cpx" >&6
     23694fi
     23695
     23696if test $coin_has_cpx != skipping &&
     23697   test $coin_has_cpx != notGiven ; then
     23698
     23699cat >>confdefs.h <<\_ACEOF
     23700#define COIN_HAS_CPX 1
     23701_ACEOF
     23702
     23703
     23704  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23705if test "${enable_interpackage_dependencies+set}" = set; then
     23706  enableval="$enable_interpackage_dependencies"
     23707
     23708else
     23709  enable_interpackage_dependencies=yes
     23710fi;
     23711
     23712  if test $enable_interpackage_dependencies = yes ; then
     23713     # construct dependencies variables from LIBS variables
     23714     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23715     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23716     # then remove everything of the form -xxx
     23717     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23718     CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23719
     23720       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23721
     23722  fi
     23723
     23724  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23725    if test -n "$CPX_CFLAGS" ; then
     23726      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23727echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     23728    fi
     23729    if test -n "$CPX_LIBS" ; then
     23730      { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
     23731echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
     23732    fi
     23733    if test -n "$CPX_DEPENDENCIES" ; then
     23734      { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
     23735echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
     23736    fi
     23737    if test -n "$CPX_DATA" ; then
     23738      { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
     23739echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
     23740    fi
     23741    if test -n "$CPX_CFLAGS" ; then
     23742      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23743echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     23744    fi
     23745
     23746      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     23747echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     23748      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     23749echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     23750      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     23751echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     23752
     23753  fi
     23754fi
     23755
     23756# Define the Makefile conditional
     23757
     23758
     23759if test $coin_has_cpx != notGiven &&
     23760                test $coin_has_cpx != skipping; then
     23761  COIN_HAS_CPX_TRUE=
     23762  COIN_HAS_CPX_FALSE='#'
     23763else
     23764  COIN_HAS_CPX_TRUE='#'
     23765  COIN_HAS_CPX_FALSE=
     23766fi
     23767
     23768
    2275023769
    2275123770
     
    2275623775fi;
    2275723776
    22758 # Check for library directory
    22759 
    22760 
    22761 # Check whether --with-cplex-lib or --without-cplex-lib was given.
    22762 if test "${with_cplex_lib+set}" = set; then
    22763   withval="$with_cplex_lib"
    22764   CPXLIB=$withval
     23777
     23778# other LP solvers
     23779
     23780echo "$as_me:$LINENO: checking for COIN-OR package Grb" >&5
     23781echo $ECHO_N "checking for COIN-OR package Grb... $ECHO_C" >&6
     23782
     23783coin_has_grb=notGiven
     23784
     23785# check if user wants to skip package in any case
     23786if test x"$COIN_SKIP_PROJECTS" != x; then
     23787  for dir in $COIN_SKIP_PROJECTS; do
     23788    if test $dir = "Grb"; then
     23789      coin_has_grb=skipping
     23790    fi
     23791  done
     23792fi
     23793
     23794GRB_LIBS=
     23795GRB_CFLAGS=
     23796GRB_DATA=
     23797
     23798
     23799
     23800
     23801
     23802
     23803
     23804
     23805
     23806
     23807
     23808
     23809
     23810
     23811
     23812
     23813
     23814#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     23815if test $coin_has_grb != skipping; then
     23816
     23817# Check whether --with-m4_tolower(Grb)-lib or --without-m4_tolower(Grb)-lib was given.
     23818if test "${with_grb_lib+set}" = set; then
     23819  withval="$with_grb_lib"
     23820  if test "$withval" = no ; then
     23821       coin_has_grb=skipping
     23822     else
     23823       coin_has_grb=yes
     23824       GRB_LIBS="$withval"
     23825
     23826         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     23827         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     23828
     23829     fi
     23830
    2276523831fi;
    22766 
    22767 # Switch to disable library check if requested
    22768 
    22769   # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
    22770 if test "${enable_cplex_libcheck+set}" = set; then
    22771   enableval="$enable_cplex_libcheck"
    22772   cplex_libcheck=$enableval
    22773 else
    22774   cplex_libcheck=yes
     23832fi
     23833
     23834if test $coin_has_grb != skipping; then
     23835
     23836# Check whether --with-m4_tolower(Grb)-incdir or --without-m4_tolower(Grb)-incdir was given.
     23837if test "${with_grb_incdir+set}" = set; then
     23838  withval="$with_grb_incdir"
     23839  if test "$withval" = no ; then
     23840       coin_has_grb=skipping
     23841     else
     23842       coin_has_grb=yes
     23843       GRB_CFLAGS="-I`${CYGPATH_W} $withval`"
     23844       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     23845     fi
     23846
    2277523847fi;
    22776 
    22777 # At this point, if we're going to use the library, both LBRYINCDIR and
    22778 # LBRYLIB must be defined and not empty.
    22779 
    22780   if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
    22781     if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
    22782       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&5
    22783 echo "$as_me: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&2;}
     23848fi
     23849
     23850if test $coin_has_grb != skipping; then
     23851
     23852# Check whether --with-m4_tolower(Grb)-datadir or --without-m4_tolower(Grb)-datadir was given.
     23853if test "${with_grb_datadir+set}" = set; then
     23854  withval="$with_grb_datadir"
     23855  if test "$withval" = no ; then
     23856       coin_has_grb=skipping
     23857     else
     23858       coin_has_grb=yes
     23859       GRB_DATA="$withval"
     23860     fi
     23861
     23862fi;
     23863fi
     23864
     23865if test $coin_has_grb = notGiven; then
     23866  if test -n "$PKG_CONFIG" ; then
     23867    # set search path for pkg-config
     23868    # need to export variable to be sure that the following pkg-config gets these values
     23869    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23870    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23871    export PKG_CONFIG_PATH
     23872
     23873    # let pkg-config do it's magic
     23874
     23875
     23876
     23877if test -n "$PKG_CONFIG" ; then
     23878  if $PKG_CONFIG --exists "osi-gurobi"; then
     23879    GRB_VERSIONS="`$PKG_CONFIG --modversion "osi-gurobi" 2>/dev/null | tr '\n' ' '`"
     23880     cflags=`$PKG_CONFIG --cflags "osi-gurobi" 2>/dev/null`
     23881    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23882        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23883        # but only do this if is not trivial
     23884    if test "$CYGPATH_W" != "echo" ; then
     23885      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23886      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23887    fi
     23888    GRB_CFLAGS="$cflags"
     23889    GRB_LIBS=`$PKG_CONFIG --libs "osi-gurobi" 2>/dev/null`
     23890    GRB_DATA=`$PKG_CONFIG --variable=datadir "osi-gurobi" 2>/dev/null`
     23891     coin_has_grb=yes
     23892        echo "$as_me:$LINENO: result: yes: $GRB_VERSIONS" >&5
     23893echo "${ECHO_T}yes: $GRB_VERSIONS" >&6
     23894
     23895        # adjust linker flags for (i)cl compiler
     23896        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     23897        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23898        then
     23899          GRB_LIBS=`echo " $GRB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23900        fi
     23901
     23902        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     23903
     23904          COUENNELIB_PCREQUIRES="osi-gurobi $COUENNELIB_PCREQUIRES"
     23905          COUENNELIB_CFLAGS="$GRB_CFLAGS $COUENNELIB_CFLAGS"
     23906          COUENNELIB_LIBS="$GRB_LIBS $COUENNELIB_LIBS"
     23907
     23908
     23909
     23910  else
     23911    GRB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-gurobi"`
     23912      coin_has_grb=notGiven
     23913        echo "$as_me:$LINENO: result: not given: $GRB_PKG_ERRORS" >&5
     23914echo "${ECHO_T}not given: $GRB_PKG_ERRORS" >&6
     23915
     23916  fi
     23917else
     23918  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Grb without pkg-config\"" >&5
     23919echo "$as_me: error: \"Cannot check for existance of module Grb without pkg-config\"" >&2;}
    2278423920   { (exit 1); exit 1; }; }
     23921fi
     23922
     23923
     23924
     23925
     23926    # reset PKG_CONFIG_PATH variable
     23927    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23928    export PKG_CONFIG_PATH
     23929
     23930  else
     23931    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23932echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23933
     23934echo "$as_me:$LINENO: checking for COIN-OR package Grb (fallback)" >&5
     23935echo $ECHO_N "checking for COIN-OR package Grb (fallback)... $ECHO_C" >&6
     23936
     23937coin_has_grb=notGiven
     23938GRB_LIBS=
     23939GRB_LIBS_INSTALLED=
     23940GRB_CFLAGS=
     23941GRB_CFLAGS_INSTALLED=
     23942GRB_DATA=
     23943GRB_DATA_INSTALLED=
     23944
     23945# initial list of dependencies is "osi-gurobi", but we need to filter out version number specifications (= x, <= x, >= x)
     23946projtoprocess="osi-gurobi"
     23947
     23948# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23949# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23950# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23951# also, we setup the DATA variable
     23952allproj=""
     23953allpcfiles=""
     23954allpcifiles=""
     23955while test "x$projtoprocess" != x ; do
     23956
     23957  for proj in $projtoprocess ; do
     23958    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23959    pcfile=""
     23960    save_IFS="$IFS"
     23961    IFS=":"
     23962    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23963      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     23964      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23965        pcfile="$dir/$proj-uninstalled.pc"
     23966        if test -r "$dir/${proj}.pc" ; then
     23967          pcifile="$dir/${proj}.pc"
     23968        else
     23969          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23970echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23971          pcifile=
     23972        fi
     23973        break
     23974      fi
     23975    done
     23976    IFS="$save_IFS"
     23977
     23978    if test "x$pcfile" != x ; then
     23979      # read dependencies from $pcfile and filter it
     23980      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23981
     23982      # add projrequires to the front of the list of projects that have to be processed next
     23983      # at the same time, remove $proj from this list
     23984      projtoprocess=${projtoprocess/$proj/$projrequires}
     23985
     23986      # read DATA from $pcfile, if _DATA is still empty
     23987      if test "x$GRB_DATA" = x ; then
     23988        projdatadir=
     23989        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23990        eval `sh -c "$pcfilemod"`
     23991        GRB_DATA="$projdatadir"
     23992      fi
     23993
     23994      allproj="$allproj $proj"
     23995      allpcfiles="$pcfile:$allpcfiles"
     23996
     23997    else
     23998      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23999echo "${ECHO_T}no, dependency $proj not available" >&6
     24000      allproj=fail
     24001      break 2
    2278524002    fi
    22786     coin_has_cpx=true
    22787     echo "$as_me:$LINENO: result: yes" >&5
    22788 echo "${ECHO_T}yes" >&6
    22789   else
    22790     coin_has_cpx=false
    22791     echo "$as_me:$LINENO: result: no" >&5
    22792 echo "${ECHO_T}no" >&6
    22793   fi
    22794 
    22795 # If we have instructions for use, consider header and link checks.
    22796 
    22797   if test $coin_has_cpx = true; then
    22798 
    22799 # If argument 3 (file) is given, check for the file. Typically this will be a
    22800 # header file, but that's not assumed.
    22801 
    22802     if test -r $CPXINCDIR/cplex.h; then
    22803 
    22804   :
    22805 else
    22806   { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
    22807 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
    22808    { (exit 1); exit 1; }; }
    22809   :
    22810 fi
    22811 
    22812 
    22813 # Now see if we can link the function. There are arguments for and against
    22814 # assuming argument 3 is a header file declaring the function. A correct
    22815 # function declaration is the main argument in favour. Having to cope with
    22816 # possible dependencies or other oddities are the main arguments against.
    22817 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    22818 # Obviously, this has limits.
    22819 
    22820     if test x"$cplex_libcheck" != xno; then
    22821            coin_save_LIBS="$LIBS"
    22822            LIBS="$CPXLIB $ADDLIBS"
    22823            coin_CPX_link=no
    22824            ac_ext=c
    22825 ac_cpp='$CPP $CPPFLAGS'
    22826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22829 
    22830            for fnm in CPXgetstat ; do
    22831              echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
    22832 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
    22833              cat >conftest.$ac_ext <<_ACEOF
    22834 /* confdefs.h.  */
    22835 _ACEOF
    22836 cat confdefs.h >>conftest.$ac_ext
    22837 cat >>conftest.$ac_ext <<_ACEOF
    22838 /* end confdefs.h.  */
    22839 
    22840 int
    22841 main ()
    22842 {
    22843 $fnm()
    22844   ;
    22845   return 0;
    22846 }
    22847 _ACEOF
    22848 rm -f conftest.$ac_objext conftest$ac_exeext
    22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22850   (eval $ac_link) 2>conftest.er1
    22851   ac_status=$?
    22852   grep -v '^ *+' conftest.er1 >conftest.err
    22853   rm -f conftest.er1
    22854   cat conftest.err >&5
    22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22856   (exit $ac_status); } &&
    22857          { ac_try='test -z "$ac_c_werror_flag"
    22858                          || test ! -s conftest.err'
    22859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22860   (eval $ac_try) 2>&5
    22861   ac_status=$?
    22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22863   (exit $ac_status); }; } &&
    22864          { ac_try='test -s conftest$ac_exeext'
    22865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22866   (eval $ac_try) 2>&5
    22867   ac_status=$?
    22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22869   (exit $ac_status); }; }; then
     24003
     24004    if test "x$pcifile" != x ; then
     24005      allpcifiles="$pcifile:$allpcifiles"
     24006
     24007      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24008      if test "x$GRB_DATA_INSTALLED" = x ; then
     24009        projdatadir=
     24010        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24011        eval `sh -c "$pcifilemod"`
     24012        if test "${CYGPATH_W}" != "echo"; then
     24013          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24014        fi
     24015        GRB_DATA_INSTALLED="$projdatadir"
     24016      fi
     24017
     24018    fi
     24019
     24020    break
     24021  done
     24022
     24023  # remove spaces on begin of $projtoprocess
     24024  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24025
     24026done
     24027
     24028if test "$allproj" != fail ; then
     24029
     24030  # now go through the list of .pc files and assemble compiler and linker flags
     24031  # important is here to obey the reverse order that has been setup before,
     24032  # since then libraries that are required by several others should be after these other libraries
     24033  pcfilesprocessed=""
     24034
     24035  save_IFS="$IFS"
     24036  IFS=":"
     24037  for pcfile in $allpcfiles ; do
     24038
     24039    # if $pcfile has been processed already, skip this round
     24040    if test "x$pcfilesprocessed" != x ; then
     24041      for pcfiledone in $pcfilesprocessed ; do
     24042        if test "$pcfiledone" = "$pcfile" ; then
     24043          continue 2
     24044        fi
     24045      done
     24046    fi
     24047
     24048    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24049    #   replace "Libs:" by "echo projlibs="
     24050    #   replace "Cflags:" by "echo projcflags="
     24051    #   remove every line starting with <some word>:
     24052    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24053
     24054    # set projcflags and projlibs variables by running $pcfilemod
     24055    projcflags=
     24056    projlibs=
     24057    eval `sh -c "$pcfilemod"`
     24058
     24059    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24060    if test "${CYGPATH_W}" != "echo"; then
     24061      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24062    fi
     24063    GRB_CFLAGS="$projcflags $GRB_CFLAGS"
     24064
     24065    # set LIBS variable
     24066    GRB_LIBS="$projlibs $GRB_LIBS"
     24067
     24068    # remember that we have processed $pcfile
     24069    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24070
     24071  done
     24072  IFS="$save_IFS"
     24073
     24074
     24075  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24076  # important is here again to obey the reverse order that has been setup before,
     24077  # since then libraries that are required by several others should be after these other libraries
     24078  pcfilesprocessed=""
     24079
     24080  save_IFS="$IFS"
     24081  IFS=":"
     24082  for pcfile in $allpcifiles ; do
     24083
     24084    # if $pcfile has been processed already, skip this round
     24085    if test "x$pcfilesprocessed" != x ; then
     24086      for pcfiledone in $pcfilesprocessed ; do
     24087        if test "$pcfiledone" = "$pcfile" ; then
     24088          continue 2
     24089        fi
     24090      done
     24091    fi
     24092
     24093    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24094    #   replace "Libs:" by "echo projlibs="
     24095    #   replace "Cflags:" by "echo projcflags="
     24096    #   remove every line starting with <some word>:
     24097    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24098
     24099    # set projcflags and projlibs variables by running $pcfilemod
     24100    projcflags=
     24101    projlibs=
     24102    eval `sh -c "$pcfilemod"`
     24103
     24104    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24105    if test "${CYGPATH_W}" != "echo"; then
     24106      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24107    fi
     24108    GRB_CFLAGS_INSTALLED="$projcflags $GRB_CFLAGS_INSTALLED"
     24109
     24110    # set LIBS variable
     24111    GRB_LIBS_INSTALLED="$projlibs $GRB_LIBS_INSTALLED"
     24112
     24113    # remember that we have processed $pcfile
     24114    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24115
     24116  done
     24117  IFS="$save_IFS"
     24118
     24119
     24120  # finish up
     24121  coin_has_grb=yes
    2287024122  echo "$as_me:$LINENO: result: yes" >&5
    2287124123echo "${ECHO_T}yes" >&6
    22872                   coin_CPX_link=yes
    22873                   break
    22874 else
    22875   echo "$as_me: failed program was:" >&5
    22876 sed 's/^/| /' conftest.$ac_ext >&5
    22877 
    22878 echo "$as_me:$LINENO: result: no" >&5
    22879 echo "${ECHO_T}no" >&6
    22880 fi
    22881 rm -f conftest.err conftest.$ac_objext \
    22882       conftest$ac_exeext conftest.$ac_ext
    22883            done
    22884            ac_ext=c
    22885 ac_cpp='$CPP $CPPFLAGS'
    22886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22889 
    22890            if test x"$coin_CPX_link" = xyes ; then
    22891              LIBS="$coin_save_LIBS"
    22892            else
    22893              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
    22894 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
    22895    { (exit 1); exit 1; }; }
    22896            fi
    22897          fi
    22898 
    22899 
    22900 # If we make it this far, we've verified the file and linked the function. Add
    22901 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    22902 # COIN_HAS_LBRY.
    22903 
    22904     ADDLIBS="$CPXLIB $ADDLIBS"
    22905 
    22906 cat >>confdefs.h <<\_ACEOF
    22907 #define COIN_HAS_CPX 1
    22908 _ACEOF
    22909 
    22910   fi
    22911 
    22912 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    22913 # automake conditional. These actions must occur unconditionally.
    22914 
    22915 
    22916 
    22917 
    22918 
    22919 if test $coin_has_cpx = true; then
    22920   COIN_HAS_CPX_TRUE=
    22921   COIN_HAS_CPX_FALSE='#'
    22922 else
    22923   COIN_HAS_CPX_TRUE='#'
    22924   COIN_HAS_CPX_FALSE=
    22925 fi
    22926 
    22927          # Cplex library
    22928 
    22929   echo "$as_me:$LINENO: checking if user provides library for Gurobi" >&5
    22930 echo $ECHO_N "checking if user provides library for Gurobi... $ECHO_C" >&6
    22931 
    22932 # Check for header file directory
    22933 
    22934 
    22935 # Check whether --with-gurobi-incdir or --without-gurobi-incdir was given.
    22936 if test "${with_gurobi_incdir+set}" = set; then
    22937   withval="$with_gurobi_incdir"
    22938   GRBINCDIR=`cd $withval; pwd`
    22939 fi;
    22940 
    22941 # Check for library directory
    22942 
    22943 
    22944 # Check whether --with-gurobi-lib or --without-gurobi-lib was given.
    22945 if test "${with_gurobi_lib+set}" = set; then
    22946   withval="$with_gurobi_lib"
    22947   GRBLIB=$withval
    22948 fi;
    22949 
    22950 # Switch to disable library check if requested
    22951 
    22952   # Check whether --enable-gurobi-libcheck or --disable-gurobi-libcheck was given.
    22953 if test "${enable_gurobi_libcheck+set}" = set; then
    22954   enableval="$enable_gurobi_libcheck"
    22955   gurobi_libcheck=$enableval
    22956 else
    22957   gurobi_libcheck=yes
    22958 fi;
    22959 
    22960 # At this point, if we're going to use the library, both LBRYINCDIR and
    22961 # LBRYLIB must be defined and not empty.
    22962 
    22963   if test x"$GRBINCDIR" != x || test x"$GRBLIB" != x; then
    22964     if test x"$GRBINCDIR" = x || test x"$GRBLIB" = x; then
    22965       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&5
    22966 echo "$as_me: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&2;}
    22967    { (exit 1); exit 1; }; }
    22968     fi
    22969     coin_has_grb=true
    22970     echo "$as_me:$LINENO: result: yes" >&5
    22971 echo "${ECHO_T}yes" >&6
    22972   else
    22973     coin_has_grb=false
    22974     echo "$as_me:$LINENO: result: no" >&5
    22975 echo "${ECHO_T}no" >&6
    22976   fi
    22977 
    22978 # If we have instructions for use, consider header and link checks.
    22979 
    22980   if test $coin_has_grb = true; then
    22981 
    22982 # If argument 3 (file) is given, check for the file. Typically this will be a
    22983 # header file, but that's not assumed.
    22984 
    22985     if test -r $GRBINCDIR/gurobi_c.h; then
    22986 
    22987   :
    22988 else
    22989   { { echo "$as_me:$LINENO: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&5
    22990 echo "$as_me: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&2;}
    22991    { (exit 1); exit 1; }; }
    22992   :
    22993 fi
    22994 
    22995 
    22996 # Now see if we can link the function. There are arguments for and against
    22997 # assuming argument 3 is a header file declaring the function. A correct
    22998 # function declaration is the main argument in favour. Having to cope with
    22999 # possible dependencies or other oddities are the main arguments against.
    23000 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23001 # Obviously, this has limits.
    23002 
    23003     if test x"$gurobi_libcheck" != xno; then
    23004            coin_save_LIBS="$LIBS"
    23005            LIBS="$GRBLIB $ADDLIBS"
    23006            coin_GRB_link=no
    23007            ac_ext=c
    23008 ac_cpp='$CPP $CPPFLAGS'
    23009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23012 
    23013            for fnm in GRBgetattrinfo ; do
    23014              echo "$as_me:$LINENO: checking whether symbol $fnm is available with GRB" >&5
    23015 echo $ECHO_N "checking whether symbol $fnm is available with GRB... $ECHO_C" >&6
    23016              cat >conftest.$ac_ext <<_ACEOF
    23017 /* confdefs.h.  */
    23018 _ACEOF
    23019 cat confdefs.h >>conftest.$ac_ext
    23020 cat >>conftest.$ac_ext <<_ACEOF
    23021 /* end confdefs.h.  */
    23022 
    23023 int
    23024 main ()
    23025 {
    23026 $fnm()
    23027   ;
    23028   return 0;
    23029 }
    23030 _ACEOF
    23031 rm -f conftest.$ac_objext conftest$ac_exeext
    23032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23033   (eval $ac_link) 2>conftest.er1
    23034   ac_status=$?
    23035   grep -v '^ *+' conftest.er1 >conftest.err
    23036   rm -f conftest.er1
    23037   cat conftest.err >&5
    23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23039   (exit $ac_status); } &&
    23040          { ac_try='test -z "$ac_c_werror_flag"
    23041                          || test ! -s conftest.err'
    23042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23043   (eval $ac_try) 2>&5
    23044   ac_status=$?
    23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23046   (exit $ac_status); }; } &&
    23047          { ac_try='test -s conftest$ac_exeext'
    23048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23049   (eval $ac_try) 2>&5
    23050   ac_status=$?
    23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23052   (exit $ac_status); }; }; then
    23053   echo "$as_me:$LINENO: result: yes" >&5
    23054 echo "${ECHO_T}yes" >&6
    23055                   coin_GRB_link=yes
    23056                   break
    23057 else
    23058   echo "$as_me: failed program was:" >&5
    23059 sed 's/^/| /' conftest.$ac_ext >&5
    23060 
    23061 echo "$as_me:$LINENO: result: no" >&5
    23062 echo "${ECHO_T}no" >&6
    23063 fi
    23064 rm -f conftest.err conftest.$ac_objext \
    23065       conftest$ac_exeext conftest.$ac_ext
    23066            done
    23067            ac_ext=c
    23068 ac_cpp='$CPP $CPPFLAGS'
    23069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23072 
    23073            if test x"$coin_GRB_link" = xyes ; then
    23074              LIBS="$coin_save_LIBS"
    23075            else
    23076              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) GRBgetattrinfo with GRB" >&5
    23077 echo "$as_me: error: Cannot find symbol(s) GRBgetattrinfo with GRB" >&2;}
    23078    { (exit 1); exit 1; }; }
    23079            fi
    23080          fi
    23081 
    23082 
    23083 # If we make it this far, we've verified the file and linked the function. Add
    23084 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23085 # COIN_HAS_LBRY.
    23086 
    23087     ADDLIBS="$GRBLIB $ADDLIBS"
    2308824124
    2308924125cat >>confdefs.h <<\_ACEOF
     
    2309124127_ACEOF
    2309224128
     24129
     24130  # adjust linker flags for (i)cl compiler
     24131  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     24132  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24133  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24134  #    everything of the form "-lname" by "libname.lib"
     24135  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24136  then
     24137    GRB_LIBS=`echo " $GRB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24138    GRB_LIBS_INSTALLED=`echo " $GRB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2309324139  fi
    2309424140
    23095 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23096 # automake conditional. These actions must occur unconditionally.
    23097 
    23098 
    23099 
    23100 
    23101 
    23102 if test $coin_has_grb = true; then
     24141
     24142    COUENNELIB_PCREQUIRES="osi-gurobi $COUENNELIB_PCREQUIRES"
     24143    COUENNELIB_CFLAGS="$GRB_CFLAGS $COUENNELIB_CFLAGS"
     24144    COUENNELIB_LIBS="$GRB_LIBS $COUENNELIB_LIBS"
     24145    COUENNELIB_CFLAGS_INSTALLED="$GRB_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     24146    COUENNELIB_LIBS_INSTALLED="$GRB_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     24147
     24148
     24149fi
     24150
     24151
     24152
     24153if test $coin_has_grb != notGiven &&
     24154                test $coin_has_grb != skipping; then
    2310324155  COIN_HAS_GRB_TRUE=
    2310424156  COIN_HAS_GRB_FALSE='#'
     
    2310824160fi
    2310924161
    23110  # Gurobi library
    23111 
    23112   echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
    23113 echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
    23114 
    23115 # Check for header file directory
    23116 
    23117 
    23118 # Check whether --with-mosek-incdir or --without-mosek-incdir was given.
    23119 if test "${with_mosek_incdir+set}" = set; then
    23120   withval="$with_mosek_incdir"
    23121   MSKINCDIR=`cd $withval; pwd`
     24162
     24163
     24164  fi
     24165
     24166else
     24167  echo "$as_me:$LINENO: result: $coin_has_grb" >&5
     24168echo "${ECHO_T}$coin_has_grb" >&6
     24169fi
     24170
     24171if test $coin_has_grb != skipping &&
     24172   test $coin_has_grb != notGiven ; then
     24173
     24174cat >>confdefs.h <<\_ACEOF
     24175#define COIN_HAS_GRB 1
     24176_ACEOF
     24177
     24178
     24179  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     24180if test "${enable_interpackage_dependencies+set}" = set; then
     24181  enableval="$enable_interpackage_dependencies"
     24182
     24183else
     24184  enable_interpackage_dependencies=yes
    2312224185fi;
    2312324186
    23124 # Check for library directory
    23125 
    23126 
    23127 # Check whether --with-mosek-lib or --without-mosek-lib was given.
    23128 if test "${with_mosek_lib+set}" = set; then
    23129   withval="$with_mosek_lib"
    23130   MSKLIB=$withval
     24187  if test $enable_interpackage_dependencies = yes ; then
     24188     # construct dependencies variables from LIBS variables
     24189     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24190     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     24191     # then remove everything of the form -xxx
     24192     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24193     GRB_DEPENDENCIES=`echo " $GRB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24194
     24195       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24196
     24197  fi
     24198
     24199  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24200    if test -n "$GRB_CFLAGS" ; then
     24201      { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     24202echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
     24203    fi
     24204    if test -n "$GRB_LIBS" ; then
     24205      { echo "$as_me:$LINENO: Grb LIBS   are $GRB_LIBS" >&5
     24206echo "$as_me: Grb LIBS   are $GRB_LIBS" >&6;}
     24207    fi
     24208    if test -n "$GRB_DEPENDENCIES" ; then
     24209      { echo "$as_me:$LINENO: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&5
     24210echo "$as_me: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&6;}
     24211    fi
     24212    if test -n "$GRB_DATA" ; then
     24213      { echo "$as_me:$LINENO: Grb DATA   is  $GRB_DATA" >&5
     24214echo "$as_me: Grb DATA   is  $GRB_DATA" >&6;}
     24215    fi
     24216    if test -n "$GRB_CFLAGS" ; then
     24217      { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     24218echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
     24219    fi
     24220
     24221      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     24222echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     24223      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     24224echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     24225      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     24226echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     24227
     24228  fi
     24229fi
     24230
     24231# Define the Makefile conditional
     24232
     24233
     24234if test $coin_has_grb != notGiven &&
     24235                test $coin_has_grb != skipping; then
     24236  COIN_HAS_GRB_TRUE=
     24237  COIN_HAS_GRB_FALSE='#'
     24238else
     24239  COIN_HAS_GRB_TRUE='#'
     24240  COIN_HAS_GRB_FALSE=
     24241fi
     24242
     24243
     24244  # Osi/Gurobi
     24245
     24246echo "$as_me:$LINENO: checking for COIN-OR package Msk" >&5
     24247echo $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6
     24248
     24249coin_has_msk=notGiven
     24250
     24251# check if user wants to skip package in any case
     24252if test x"$COIN_SKIP_PROJECTS" != x; then
     24253  for dir in $COIN_SKIP_PROJECTS; do
     24254    if test $dir = "Msk"; then
     24255      coin_has_msk=skipping
     24256    fi
     24257  done
     24258fi
     24259
     24260MSK_LIBS=
     24261MSK_CFLAGS=
     24262MSK_DATA=
     24263
     24264
     24265
     24266
     24267
     24268
     24269
     24270
     24271
     24272
     24273
     24274
     24275
     24276
     24277
     24278
     24279
     24280#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     24281if test $coin_has_msk != skipping; then
     24282
     24283# Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given.
     24284if test "${with_msk_lib+set}" = set; then
     24285  withval="$with_msk_lib"
     24286  if test "$withval" = no ; then
     24287       coin_has_msk=skipping
     24288     else
     24289       coin_has_msk=yes
     24290       MSK_LIBS="$withval"
     24291
     24292         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     24293         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     24294
     24295     fi
     24296
    2313124297fi;
    23132 
    23133 # Switch to disable library check if requested
    23134 
    23135   # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
    23136 if test "${enable_mosek_libcheck+set}" = set; then
    23137   enableval="$enable_mosek_libcheck"
    23138   mosek_libcheck=$enableval
    23139 else
    23140   mosek_libcheck=yes
     24298fi
     24299
     24300if test $coin_has_msk != skipping; then
     24301
     24302# Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given.
     24303if test "${with_msk_incdir+set}" = set; then
     24304  withval="$with_msk_incdir"
     24305  if test "$withval" = no ; then
     24306       coin_has_msk=skipping
     24307     else
     24308       coin_has_msk=yes
     24309       MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
     24310       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     24311     fi
     24312
    2314124313fi;
    23142 
    23143 # At this point, if we're going to use the library, both LBRYINCDIR and
    23144 # LBRYLIB must be defined and not empty.
    23145 
    23146   if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
    23147     if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
    23148       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&5
    23149 echo "$as_me: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&2;}
     24314fi
     24315
     24316if test $coin_has_msk != skipping; then
     24317
     24318# Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given.
     24319if test "${with_msk_datadir+set}" = set; then
     24320  withval="$with_msk_datadir"
     24321  if test "$withval" = no ; then
     24322       coin_has_msk=skipping
     24323     else
     24324       coin_has_msk=yes
     24325       MSK_DATA="$withval"
     24326     fi
     24327
     24328fi;
     24329fi
     24330
     24331if test $coin_has_msk = notGiven; then
     24332  if test -n "$PKG_CONFIG" ; then
     24333    # set search path for pkg-config
     24334    # need to export variable to be sure that the following pkg-config gets these values
     24335    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24336    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     24337    export PKG_CONFIG_PATH
     24338
     24339    # let pkg-config do it's magic
     24340
     24341
     24342
     24343if test -n "$PKG_CONFIG" ; then
     24344  if $PKG_CONFIG --exists "osi-mosek"; then
     24345    MSK_VERSIONS="`$PKG_CONFIG --modversion "osi-mosek" 2>/dev/null | tr '\n' ' '`"
     24346     cflags=`$PKG_CONFIG --cflags "osi-mosek" 2>/dev/null`
     24347    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24348        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24349        # but only do this if is not trivial
     24350    if test "$CYGPATH_W" != "echo" ; then
     24351      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24352      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24353    fi
     24354    MSK_CFLAGS="$cflags"
     24355    MSK_LIBS=`$PKG_CONFIG --libs "osi-mosek" 2>/dev/null`
     24356    MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-mosek" 2>/dev/null`
     24357     coin_has_msk=yes
     24358        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
     24359echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
     24360
     24361        # adjust linker flags for (i)cl compiler
     24362        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     24363        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24364        then
     24365          MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24366        fi
     24367
     24368        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     24369
     24370          COUENNELIB_PCREQUIRES="osi-mosek $COUENNELIB_PCREQUIRES"
     24371          COUENNELIB_CFLAGS="$MSK_CFLAGS $COUENNELIB_CFLAGS"
     24372          COUENNELIB_LIBS="$MSK_LIBS $COUENNELIB_LIBS"
     24373
     24374
     24375
     24376  else
     24377    MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-mosek"`
     24378      coin_has_msk=notGiven
     24379        echo "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5
     24380echo "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6
     24381
     24382  fi
     24383else
     24384  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5
     24385echo "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;}
    2315024386   { (exit 1); exit 1; }; }
     24387fi
     24388
     24389
     24390
     24391
     24392    # reset PKG_CONFIG_PATH variable
     24393    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24394    export PKG_CONFIG_PATH
     24395
     24396  else
     24397    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     24398echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     24399
     24400echo "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5
     24401echo $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6
     24402
     24403coin_has_msk=notGiven
     24404MSK_LIBS=
     24405MSK_LIBS_INSTALLED=
     24406MSK_CFLAGS=
     24407MSK_CFLAGS_INSTALLED=
     24408MSK_DATA=
     24409MSK_DATA_INSTALLED=
     24410
     24411# initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x)
     24412projtoprocess="osi-mosek"
     24413
     24414# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24415# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24416# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     24417# also, we setup the DATA variable
     24418allproj=""
     24419allpcfiles=""
     24420allpcifiles=""
     24421while test "x$projtoprocess" != x ; do
     24422
     24423  for proj in $projtoprocess ; do
     24424    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     24425    pcfile=""
     24426    save_IFS="$IFS"
     24427    IFS=":"
     24428    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     24429      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     24430      if test -r "$dir/${proj}-uninstalled.pc" ; then
     24431        pcfile="$dir/$proj-uninstalled.pc"
     24432        if test -r "$dir/${proj}.pc" ; then
     24433          pcifile="$dir/${proj}.pc"
     24434        else
     24435          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24436echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24437          pcifile=
     24438        fi
     24439        break
     24440      fi
     24441    done
     24442    IFS="$save_IFS"
     24443
     24444    if test "x$pcfile" != x ; then
     24445      # read dependencies from $pcfile and filter it
     24446      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24447
     24448      # add projrequires to the front of the list of projects that have to be processed next
     24449      # at the same time, remove $proj from this list
     24450      projtoprocess=${projtoprocess/$proj/$projrequires}
     24451
     24452      # read DATA from $pcfile, if _DATA is still empty
     24453      if test "x$MSK_DATA" = x ; then
     24454        projdatadir=
     24455        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24456        eval `sh -c "$pcfilemod"`
     24457        MSK_DATA="$projdatadir"
     24458      fi
     24459
     24460      allproj="$allproj $proj"
     24461      allpcfiles="$pcfile:$allpcfiles"
     24462
     24463    else
     24464      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     24465echo "${ECHO_T}no, dependency $proj not available" >&6
     24466      allproj=fail
     24467      break 2
    2315124468    fi
    23152     coin_has_msk=true
    23153     echo "$as_me:$LINENO: result: yes" >&5
    23154 echo "${ECHO_T}yes" >&6
    23155   else
    23156     coin_has_msk=false
    23157     echo "$as_me:$LINENO: result: no" >&5
    23158 echo "${ECHO_T}no" >&6
    23159   fi
    23160 
    23161 # If we have instructions for use, consider header and link checks.
    23162 
    23163   if test $coin_has_msk = true; then
    23164 
    23165 # If argument 3 (file) is given, check for the file. Typically this will be a
    23166 # header file, but that's not assumed.
    23167 
    23168     if test -r $MSKINCDIR/mosek.h; then
    23169 
    23170   :
    23171 else
    23172   { { echo "$as_me:$LINENO: error: Cannot find file mosek.h in $MSKINCDIR" >&5
    23173 echo "$as_me: error: Cannot find file mosek.h in $MSKINCDIR" >&2;}
    23174    { (exit 1); exit 1; }; }
    23175   :
    23176 fi
    23177 
    23178 
    23179 # Now see if we can link the function. There are arguments for and against
    23180 # assuming argument 3 is a header file declaring the function. A correct
    23181 # function declaration is the main argument in favour. Having to cope with
    23182 # possible dependencies or other oddities are the main arguments against.
    23183 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23184 # Obviously, this has limits.
    23185 
    23186     if test x"$mosek_libcheck" != xno; then
    23187            coin_save_LIBS="$LIBS"
    23188            LIBS="$MSKLIB $ADDLIBS"
    23189            coin_MSK_link=no
    23190            ac_ext=c
    23191 ac_cpp='$CPP $CPPFLAGS'
    23192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23195 
    23196            for fnm in MSK_openmosek ; do
    23197              echo "$as_me:$LINENO: checking whether symbol $fnm is available with MSK" >&5
    23198 echo $ECHO_N "checking whether symbol $fnm is available with MSK... $ECHO_C" >&6
    23199              cat >conftest.$ac_ext <<_ACEOF
    23200 /* confdefs.h.  */
    23201 _ACEOF
    23202 cat confdefs.h >>conftest.$ac_ext
    23203 cat >>conftest.$ac_ext <<_ACEOF
    23204 /* end confdefs.h.  */
    23205 
    23206 int
    23207 main ()
    23208 {
    23209 $fnm()
    23210   ;
    23211   return 0;
    23212 }
    23213 _ACEOF
    23214 rm -f conftest.$ac_objext conftest$ac_exeext
    23215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23216   (eval $ac_link) 2>conftest.er1
    23217   ac_status=$?
    23218   grep -v '^ *+' conftest.er1 >conftest.err
    23219   rm -f conftest.er1
    23220   cat conftest.err >&5
    23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23222   (exit $ac_status); } &&
    23223          { ac_try='test -z "$ac_c_werror_flag"
    23224                          || test ! -s conftest.err'
    23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23226   (eval $ac_try) 2>&5
    23227   ac_status=$?
    23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23229   (exit $ac_status); }; } &&
    23230          { ac_try='test -s conftest$ac_exeext'
    23231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23232   (eval $ac_try) 2>&5
    23233   ac_status=$?
    23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23235   (exit $ac_status); }; }; then
     24469
     24470    if test "x$pcifile" != x ; then
     24471      allpcifiles="$pcifile:$allpcifiles"
     24472
     24473      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24474      if test "x$MSK_DATA_INSTALLED" = x ; then
     24475        projdatadir=
     24476        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24477        eval `sh -c "$pcifilemod"`
     24478        if test "${CYGPATH_W}" != "echo"; then
     24479          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24480        fi
     24481        MSK_DATA_INSTALLED="$projdatadir"
     24482      fi
     24483
     24484    fi
     24485
     24486    break
     24487  done
     24488
     24489  # remove spaces on begin of $projtoprocess
     24490  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24491
     24492done
     24493
     24494if test "$allproj" != fail ; then
     24495
     24496  # now go through the list of .pc files and assemble compiler and linker flags
     24497  # important is here to obey the reverse order that has been setup before,
     24498  # since then libraries that are required by several others should be after these other libraries
     24499  pcfilesprocessed=""
     24500
     24501  save_IFS="$IFS"
     24502  IFS=":"
     24503  for pcfile in $allpcfiles ; do
     24504
     24505    # if $pcfile has been processed already, skip this round
     24506    if test "x$pcfilesprocessed" != x ; then
     24507      for pcfiledone in $pcfilesprocessed ; do
     24508        if test "$pcfiledone" = "$pcfile" ; then
     24509          continue 2
     24510        fi
     24511      done
     24512    fi
     24513
     24514    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24515    #   replace "Libs:" by "echo projlibs="
     24516    #   replace "Cflags:" by "echo projcflags="
     24517    #   remove every line starting with <some word>:
     24518    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24519
     24520    # set projcflags and projlibs variables by running $pcfilemod
     24521    projcflags=
     24522    projlibs=
     24523    eval `sh -c "$pcfilemod"`
     24524
     24525    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24526    if test "${CYGPATH_W}" != "echo"; then
     24527      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24528    fi
     24529    MSK_CFLAGS="$projcflags $MSK_CFLAGS"
     24530
     24531    # set LIBS variable
     24532    MSK_LIBS="$projlibs $MSK_LIBS"
     24533
     24534    # remember that we have processed $pcfile
     24535    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24536
     24537  done
     24538  IFS="$save_IFS"
     24539
     24540
     24541  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24542  # important is here again to obey the reverse order that has been setup before,
     24543  # since then libraries that are required by several others should be after these other libraries
     24544  pcfilesprocessed=""
     24545
     24546  save_IFS="$IFS"
     24547  IFS=":"
     24548  for pcfile in $allpcifiles ; do
     24549
     24550    # if $pcfile has been processed already, skip this round
     24551    if test "x$pcfilesprocessed" != x ; then
     24552      for pcfiledone in $pcfilesprocessed ; do
     24553        if test "$pcfiledone" = "$pcfile" ; then
     24554          continue 2
     24555        fi
     24556      done
     24557    fi
     24558
     24559    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24560    #   replace "Libs:" by "echo projlibs="
     24561    #   replace "Cflags:" by "echo projcflags="
     24562    #   remove every line starting with <some word>:
     24563    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24564
     24565    # set projcflags and projlibs variables by running $pcfilemod
     24566    projcflags=
     24567    projlibs=
     24568    eval `sh -c "$pcfilemod"`
     24569
     24570    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24571    if test "${CYGPATH_W}" != "echo"; then
     24572      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24573    fi
     24574    MSK_CFLAGS_INSTALLED="$projcflags $MSK_CFLAGS_INSTALLED"
     24575
     24576    # set LIBS variable
     24577    MSK_LIBS_INSTALLED="$projlibs $MSK_LIBS_INSTALLED"
     24578
     24579    # remember that we have processed $pcfile
     24580    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24581
     24582  done
     24583  IFS="$save_IFS"
     24584
     24585
     24586  # finish up
     24587  coin_has_msk=yes
    2323624588  echo "$as_me:$LINENO: result: yes" >&5
    2323724589echo "${ECHO_T}yes" >&6
    23238                   coin_MSK_link=yes
    23239                   break
    23240 else
    23241   echo "$as_me: failed program was:" >&5
    23242 sed 's/^/| /' conftest.$ac_ext >&5
    23243 
    23244 echo "$as_me:$LINENO: result: no" >&5
    23245 echo "${ECHO_T}no" >&6
    23246 fi
    23247 rm -f conftest.err conftest.$ac_objext \
    23248       conftest$ac_exeext conftest.$ac_ext
    23249            done
    23250            ac_ext=c
    23251 ac_cpp='$CPP $CPPFLAGS'
    23252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23255 
    23256            if test x"$coin_MSK_link" = xyes ; then
    23257              LIBS="$coin_save_LIBS"
    23258            else
    23259              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) MSK_openmosek with MSK" >&5
    23260 echo "$as_me: error: Cannot find symbol(s) MSK_openmosek with MSK" >&2;}
    23261    { (exit 1); exit 1; }; }
    23262            fi
    23263          fi
    23264 
    23265 
    23266 # If we make it this far, we've verified the file and linked the function. Add
    23267 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23268 # COIN_HAS_LBRY.
    23269 
    23270     ADDLIBS="$MSKLIB $ADDLIBS"
    2327124590
    2327224591cat >>confdefs.h <<\_ACEOF
     
    2327424593_ACEOF
    2327524594
     24595
     24596  # adjust linker flags for (i)cl compiler
     24597  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     24598  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24599  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24600  #    everything of the form "-lname" by "libname.lib"
     24601  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24602  then
     24603    MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24604    MSK_LIBS_INSTALLED=`echo " $MSK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2327624605  fi
    2327724606
    23278 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23279 # automake conditional. These actions must occur unconditionally.
    23280 
    23281 
    23282 
    23283 
    23284 
    23285 if test $coin_has_msk = true; then
     24607
     24608    COUENNELIB_PCREQUIRES="osi-mosek $COUENNELIB_PCREQUIRES"
     24609    COUENNELIB_CFLAGS="$MSK_CFLAGS $COUENNELIB_CFLAGS"
     24610    COUENNELIB_LIBS="$MSK_LIBS $COUENNELIB_LIBS"
     24611    COUENNELIB_CFLAGS_INSTALLED="$MSK_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     24612    COUENNELIB_LIBS_INSTALLED="$MSK_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     24613
     24614
     24615fi
     24616
     24617
     24618
     24619if test $coin_has_msk != notGiven &&
     24620                test $coin_has_msk != skipping; then
    2328624621  COIN_HAS_MSK_TRUE=
    2328724622  COIN_HAS_MSK_FALSE='#'
     
    2329124626fi
    2329224627
    23293       # Mosek
    23294 
    23295   echo "$as_me:$LINENO: checking if user provides library for Osl" >&5
    23296 echo $ECHO_N "checking if user provides library for Osl... $ECHO_C" >&6
    23297 
    23298 # Check for header file directory
    23299 
    23300 
    23301 # Check whether --with-osl-incdir or --without-osl-incdir was given.
    23302 if test "${with_osl_incdir+set}" = set; then
    23303   withval="$with_osl_incdir"
    23304   OSLINCDIR=`cd $withval; pwd`
     24628
     24629
     24630  fi
     24631
     24632else
     24633  echo "$as_me:$LINENO: result: $coin_has_msk" >&5
     24634echo "${ECHO_T}$coin_has_msk" >&6
     24635fi
     24636
     24637if test $coin_has_msk != skipping &&
     24638   test $coin_has_msk != notGiven ; then
     24639
     24640cat >>confdefs.h <<\_ACEOF
     24641#define COIN_HAS_MSK 1
     24642_ACEOF
     24643
     24644
     24645  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     24646if test "${enable_interpackage_dependencies+set}" = set; then
     24647  enableval="$enable_interpackage_dependencies"
     24648
     24649else
     24650  enable_interpackage_dependencies=yes
    2330524651fi;
    2330624652
    23307 # Check for library directory
    23308 
    23309 
    23310 # Check whether --with-osl-lib or --without-osl-lib was given.
    23311 if test "${with_osl_lib+set}" = set; then
    23312   withval="$with_osl_lib"
    23313   OSLLIB=$withval
     24653  if test $enable_interpackage_dependencies = yes ; then
     24654     # construct dependencies variables from LIBS variables
     24655     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24656     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     24657     # then remove everything of the form -xxx
     24658     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24659     MSK_DEPENDENCIES=`echo " $MSK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24660
     24661       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24662
     24663  fi
     24664
     24665  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24666    if test -n "$MSK_CFLAGS" ; then
     24667      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     24668echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
     24669    fi
     24670    if test -n "$MSK_LIBS" ; then
     24671      { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
     24672echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
     24673    fi
     24674    if test -n "$MSK_DEPENDENCIES" ; then
     24675      { echo "$as_me:$LINENO: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&5
     24676echo "$as_me: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&6;}
     24677    fi
     24678    if test -n "$MSK_DATA" ; then
     24679      { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
     24680echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
     24681    fi
     24682    if test -n "$MSK_CFLAGS" ; then
     24683      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     24684echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
     24685    fi
     24686
     24687      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     24688echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     24689      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     24690echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     24691      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     24692echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     24693
     24694  fi
     24695fi
     24696
     24697# Define the Makefile conditional
     24698
     24699
     24700if test $coin_has_msk != notGiven &&
     24701                test $coin_has_msk != skipping; then
     24702  COIN_HAS_MSK_TRUE=
     24703  COIN_HAS_MSK_FALSE='#'
     24704else
     24705  COIN_HAS_MSK_TRUE='#'
     24706  COIN_HAS_MSK_FALSE=
     24707fi
     24708
     24709
     24710  # Osi/Mosek
     24711
     24712echo "$as_me:$LINENO: checking for COIN-OR package Spx" >&5
     24713echo $ECHO_N "checking for COIN-OR package Spx... $ECHO_C" >&6
     24714
     24715coin_has_spx=notGiven
     24716
     24717# check if user wants to skip package in any case
     24718if test x"$COIN_SKIP_PROJECTS" != x; then
     24719  for dir in $COIN_SKIP_PROJECTS; do
     24720    if test $dir = "Spx"; then
     24721      coin_has_spx=skipping
     24722    fi
     24723  done
     24724fi
     24725
     24726SPX_LIBS=
     24727SPX_CFLAGS=
     24728SPX_DATA=
     24729
     24730
     24731
     24732
     24733
     24734
     24735
     24736
     24737
     24738
     24739
     24740
     24741
     24742
     24743
     24744
     24745
     24746#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     24747if test $coin_has_spx != skipping; then
     24748
     24749# Check whether --with-m4_tolower(Spx)-lib or --without-m4_tolower(Spx)-lib was given.
     24750if test "${with_spx_lib+set}" = set; then
     24751  withval="$with_spx_lib"
     24752  if test "$withval" = no ; then
     24753       coin_has_spx=skipping
     24754     else
     24755       coin_has_spx=yes
     24756       SPX_LIBS="$withval"
     24757
     24758         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     24759         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     24760
     24761     fi
     24762
    2331424763fi;
    23315 
    23316 # Switch to disable library check if requested
    23317 
    23318   # Check whether --enable-osl-libcheck or --disable-osl-libcheck was given.
    23319 if test "${enable_osl_libcheck+set}" = set; then
    23320   enableval="$enable_osl_libcheck"
    23321   osl_libcheck=$enableval
    23322 else
    23323   osl_libcheck=yes
     24764fi
     24765
     24766if test $coin_has_spx != skipping; then
     24767
     24768# Check whether --with-m4_tolower(Spx)-incdir or --without-m4_tolower(Spx)-incdir was given.
     24769if test "${with_spx_incdir+set}" = set; then
     24770  withval="$with_spx_incdir"
     24771  if test "$withval" = no ; then
     24772       coin_has_spx=skipping
     24773     else
     24774       coin_has_spx=yes
     24775       SPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     24776       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     24777     fi
     24778
    2332424779fi;
    23325 
    23326 # At this point, if we're going to use the library, both LBRYINCDIR and
    23327 # LBRYLIB must be defined and not empty.
    23328 
    23329   if test x"$OSLINCDIR" != x || test x"$OSLLIB" != x; then
    23330     if test x"$OSLINCDIR" = x || test x"$OSLLIB" = x; then
    23331       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Osl. Use --with-osl-incdir of environment variable $OSLINCDIR to specify the include directory. Use --with-osl-lib or environment variable $OSLLIB to specify link flags." >&5
    23332 echo "$as_me: error: You need to specify both an include directory and link flags to use library Osl. Use --with-osl-incdir of environment variable $OSLINCDIR to specify the include directory. Use --with-osl-lib or environment variable $OSLLIB to specify link flags." >&2;}
     24780fi
     24781
     24782if test $coin_has_spx != skipping; then
     24783
     24784# Check whether --with-m4_tolower(Spx)-datadir or --without-m4_tolower(Spx)-datadir was given.
     24785if test "${with_spx_datadir+set}" = set; then
     24786  withval="$with_spx_datadir"
     24787  if test "$withval" = no ; then
     24788       coin_has_spx=skipping
     24789     else
     24790       coin_has_spx=yes
     24791       SPX_DATA="$withval"
     24792     fi
     24793
     24794fi;
     24795fi
     24796
     24797if test $coin_has_spx = notGiven; then
     24798  if test -n "$PKG_CONFIG" ; then
     24799    # set search path for pkg-config
     24800    # need to export variable to be sure that the following pkg-config gets these values
     24801    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24802    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     24803    export PKG_CONFIG_PATH
     24804
     24805    # let pkg-config do it's magic
     24806
     24807
     24808
     24809if test -n "$PKG_CONFIG" ; then
     24810  if $PKG_CONFIG --exists "osi-soplex"; then
     24811    SPX_VERSIONS="`$PKG_CONFIG --modversion "osi-soplex" 2>/dev/null | tr '\n' ' '`"
     24812     cflags=`$PKG_CONFIG --cflags "osi-soplex" 2>/dev/null`
     24813    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24814        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24815        # but only do this if is not trivial
     24816    if test "$CYGPATH_W" != "echo" ; then
     24817      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24818      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24819    fi
     24820    SPX_CFLAGS="$cflags"
     24821    SPX_LIBS=`$PKG_CONFIG --libs "osi-soplex" 2>/dev/null`
     24822    SPX_DATA=`$PKG_CONFIG --variable=datadir "osi-soplex" 2>/dev/null`
     24823     coin_has_spx=yes
     24824        echo "$as_me:$LINENO: result: yes: $SPX_VERSIONS" >&5
     24825echo "${ECHO_T}yes: $SPX_VERSIONS" >&6
     24826
     24827        # adjust linker flags for (i)cl compiler
     24828        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     24829        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24830        then
     24831          SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24832        fi
     24833
     24834        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     24835
     24836          COUENNELIB_PCREQUIRES="osi-soplex $COUENNELIB_PCREQUIRES"
     24837          COUENNELIB_CFLAGS="$SPX_CFLAGS $COUENNELIB_CFLAGS"
     24838          COUENNELIB_LIBS="$SPX_LIBS $COUENNELIB_LIBS"
     24839
     24840
     24841
     24842  else
     24843    SPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-soplex"`
     24844      coin_has_spx=notGiven
     24845        echo "$as_me:$LINENO: result: not given: $SPX_PKG_ERRORS" >&5
     24846echo "${ECHO_T}not given: $SPX_PKG_ERRORS" >&6
     24847
     24848  fi
     24849else
     24850  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Spx without pkg-config\"" >&5
     24851echo "$as_me: error: \"Cannot check for existance of module Spx without pkg-config\"" >&2;}
    2333324852   { (exit 1); exit 1; }; }
     24853fi
     24854
     24855
     24856
     24857
     24858    # reset PKG_CONFIG_PATH variable
     24859    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24860    export PKG_CONFIG_PATH
     24861
     24862  else
     24863    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     24864echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     24865
     24866echo "$as_me:$LINENO: checking for COIN-OR package Spx (fallback)" >&5
     24867echo $ECHO_N "checking for COIN-OR package Spx (fallback)... $ECHO_C" >&6
     24868
     24869coin_has_spx=notGiven
     24870SPX_LIBS=
     24871SPX_LIBS_INSTALLED=
     24872SPX_CFLAGS=
     24873SPX_CFLAGS_INSTALLED=
     24874SPX_DATA=
     24875SPX_DATA_INSTALLED=
     24876
     24877# initial list of dependencies is "osi-soplex", but we need to filter out version number specifications (= x, <= x, >= x)
     24878projtoprocess="osi-soplex"
     24879
     24880# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24881# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24882# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     24883# also, we setup the DATA variable
     24884allproj=""
     24885allpcfiles=""
     24886allpcifiles=""
     24887while test "x$projtoprocess" != x ; do
     24888
     24889  for proj in $projtoprocess ; do
     24890    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     24891    pcfile=""
     24892    save_IFS="$IFS"
     24893    IFS=":"
     24894    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     24895      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     24896      if test -r "$dir/${proj}-uninstalled.pc" ; then
     24897        pcfile="$dir/$proj-uninstalled.pc"
     24898        if test -r "$dir/${proj}.pc" ; then
     24899          pcifile="$dir/${proj}.pc"
     24900        else
     24901          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24902echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24903          pcifile=
     24904        fi
     24905        break
     24906      fi
     24907    done
     24908    IFS="$save_IFS"
     24909
     24910    if test "x$pcfile" != x ; then
     24911      # read dependencies from $pcfile and filter it
     24912      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24913
     24914      # add projrequires to the front of the list of projects that have to be processed next
     24915      # at the same time, remove $proj from this list
     24916      projtoprocess=${projtoprocess/$proj/$projrequires}
     24917
     24918      # read DATA from $pcfile, if _DATA is still empty
     24919      if test "x$SPX_DATA" = x ; then
     24920        projdatadir=
     24921        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24922        eval `sh -c "$pcfilemod"`
     24923        SPX_DATA="$projdatadir"
     24924      fi
     24925
     24926      allproj="$allproj $proj"
     24927      allpcfiles="$pcfile:$allpcfiles"
     24928
     24929    else
     24930      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     24931echo "${ECHO_T}no, dependency $proj not available" >&6
     24932      allproj=fail
     24933      break 2
    2333424934    fi
    23335     coin_has_osl=true
    23336     echo "$as_me:$LINENO: result: yes" >&5
    23337 echo "${ECHO_T}yes" >&6
    23338   else
    23339     coin_has_osl=false
    23340     echo "$as_me:$LINENO: result: no" >&5
    23341 echo "${ECHO_T}no" >&6
    23342   fi
    23343 
    23344 # If we have instructions for use, consider header and link checks.
    23345 
    23346   if test $coin_has_osl = true; then
    23347 
    23348 # If argument 3 (file) is given, check for the file. Typically this will be a
    23349 # header file, but that's not assumed.
    23350 
    23351     if test -r $OSLINCDIR/ekk_c_api.h; then
    23352 
    23353   :
    23354 else
    23355   { { echo "$as_me:$LINENO: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&5
    23356 echo "$as_me: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&2;}
    23357    { (exit 1); exit 1; }; }
    23358   :
    23359 fi
    23360 
    23361 
    23362 # Now see if we can link the function. There are arguments for and against
    23363 # assuming argument 3 is a header file declaring the function. A correct
    23364 # function declaration is the main argument in favour. Having to cope with
    23365 # possible dependencies or other oddities are the main arguments against.
    23366 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23367 # Obviously, this has limits.
    23368 
    23369     if test x"$osl_libcheck" != xno; then
    23370            coin_save_LIBS="$LIBS"
    23371            LIBS="$OSLLIB $ADDLIBS"
    23372            coin_OSL_link=no
    23373            ac_ext=c
    23374 ac_cpp='$CPP $CPPFLAGS'
    23375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23378 
    23379            for fnm in ekk_simplex ; do
    23380              echo "$as_me:$LINENO: checking whether symbol $fnm is available with OSL" >&5
    23381 echo $ECHO_N "checking whether symbol $fnm is available with OSL... $ECHO_C" >&6
    23382              cat >conftest.$ac_ext <<_ACEOF
    23383 /* confdefs.h.  */
    23384 _ACEOF
    23385 cat confdefs.h >>conftest.$ac_ext
    23386 cat >>conftest.$ac_ext <<_ACEOF
    23387 /* end confdefs.h.  */
    23388 
    23389 int
    23390 main ()
    23391 {
    23392 $fnm()
    23393   ;
    23394   return 0;
    23395 }
    23396 _ACEOF
    23397 rm -f conftest.$ac_objext conftest$ac_exeext
    23398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23399   (eval $ac_link) 2>conftest.er1
    23400   ac_status=$?
    23401   grep -v '^ *+' conftest.er1 >conftest.err
    23402   rm -f conftest.er1
    23403   cat conftest.err >&5
    23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23405   (exit $ac_status); } &&
    23406          { ac_try='test -z "$ac_c_werror_flag"
    23407                          || test ! -s conftest.err'
    23408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23409   (eval $ac_try) 2>&5
    23410   ac_status=$?
    23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23412   (exit $ac_status); }; } &&
    23413          { ac_try='test -s conftest$ac_exeext'
    23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23415   (eval $ac_try) 2>&5
    23416   ac_status=$?
    23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23418   (exit $ac_status); }; }; then
     24935
     24936    if test "x$pcifile" != x ; then
     24937      allpcifiles="$pcifile:$allpcifiles"
     24938
     24939      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24940      if test "x$SPX_DATA_INSTALLED" = x ; then
     24941        projdatadir=
     24942        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24943        eval `sh -c "$pcifilemod"`
     24944        if test "${CYGPATH_W}" != "echo"; then
     24945          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24946        fi
     24947        SPX_DATA_INSTALLED="$projdatadir"
     24948      fi
     24949
     24950    fi
     24951
     24952    break
     24953  done
     24954
     24955  # remove spaces on begin of $projtoprocess
     24956  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24957
     24958done
     24959
     24960if test "$allproj" != fail ; then
     24961
     24962  # now go through the list of .pc files and assemble compiler and linker flags
     24963  # important is here to obey the reverse order that has been setup before,
     24964  # since then libraries that are required by several others should be after these other libraries
     24965  pcfilesprocessed=""
     24966
     24967  save_IFS="$IFS"
     24968  IFS=":"
     24969  for pcfile in $allpcfiles ; do
     24970
     24971    # if $pcfile has been processed already, skip this round
     24972    if test "x$pcfilesprocessed" != x ; then
     24973      for pcfiledone in $pcfilesprocessed ; do
     24974        if test "$pcfiledone" = "$pcfile" ; then
     24975          continue 2
     24976        fi
     24977      done
     24978    fi
     24979
     24980    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24981    #   replace "Libs:" by "echo projlibs="
     24982    #   replace "Cflags:" by "echo projcflags="
     24983    #   remove every line starting with <some word>:
     24984    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24985
     24986    # set projcflags and projlibs variables by running $pcfilemod
     24987    projcflags=
     24988    projlibs=
     24989    eval `sh -c "$pcfilemod"`
     24990
     24991    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24992    if test "${CYGPATH_W}" != "echo"; then
     24993      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24994    fi
     24995    SPX_CFLAGS="$projcflags $SPX_CFLAGS"
     24996
     24997    # set LIBS variable
     24998    SPX_LIBS="$projlibs $SPX_LIBS"
     24999
     25000    # remember that we have processed $pcfile
     25001    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25002
     25003  done
     25004  IFS="$save_IFS"
     25005
     25006
     25007  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     25008  # important is here again to obey the reverse order that has been setup before,
     25009  # since then libraries that are required by several others should be after these other libraries
     25010  pcfilesprocessed=""
     25011
     25012  save_IFS="$IFS"
     25013  IFS=":"
     25014  for pcfile in $allpcifiles ; do
     25015
     25016    # if $pcfile has been processed already, skip this round
     25017    if test "x$pcfilesprocessed" != x ; then
     25018      for pcfiledone in $pcfilesprocessed ; do
     25019        if test "$pcfiledone" = "$pcfile" ; then
     25020          continue 2
     25021        fi
     25022      done
     25023    fi
     25024
     25025    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25026    #   replace "Libs:" by "echo projlibs="
     25027    #   replace "Cflags:" by "echo projcflags="
     25028    #   remove every line starting with <some word>:
     25029    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25030
     25031    # set projcflags and projlibs variables by running $pcfilemod
     25032    projcflags=
     25033    projlibs=
     25034    eval `sh -c "$pcfilemod"`
     25035
     25036    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25037    if test "${CYGPATH_W}" != "echo"; then
     25038      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25039    fi
     25040    SPX_CFLAGS_INSTALLED="$projcflags $SPX_CFLAGS_INSTALLED"
     25041
     25042    # set LIBS variable
     25043    SPX_LIBS_INSTALLED="$projlibs $SPX_LIBS_INSTALLED"
     25044
     25045    # remember that we have processed $pcfile
     25046    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25047
     25048  done
     25049  IFS="$save_IFS"
     25050
     25051
     25052  # finish up
     25053  coin_has_spx=yes
    2341925054  echo "$as_me:$LINENO: result: yes" >&5
    2342025055echo "${ECHO_T}yes" >&6
    23421                   coin_OSL_link=yes
    23422                   break
    23423 else
    23424   echo "$as_me: failed program was:" >&5
    23425 sed 's/^/| /' conftest.$ac_ext >&5
    23426 
    23427 echo "$as_me:$LINENO: result: no" >&5
    23428 echo "${ECHO_T}no" >&6
    23429 fi
    23430 rm -f conftest.err conftest.$ac_objext \
    23431       conftest$ac_exeext conftest.$ac_ext
    23432            done
    23433            ac_ext=c
    23434 ac_cpp='$CPP $CPPFLAGS'
    23435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23438 
    23439            if test x"$coin_OSL_link" = xyes ; then
    23440              LIBS="$coin_save_LIBS"
    23441            else
    23442              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) ekk_simplex with OSL" >&5
    23443 echo "$as_me: error: Cannot find symbol(s) ekk_simplex with OSL" >&2;}
    23444    { (exit 1); exit 1; }; }
    23445            fi
    23446          fi
    23447 
    23448 
    23449 # If we make it this far, we've verified the file and linked the function. Add
    23450 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23451 # COIN_HAS_LBRY.
    23452 
    23453     ADDLIBS="$OSLLIB $ADDLIBS"
    23454 
    23455 cat >>confdefs.h <<\_ACEOF
    23456 #define COIN_HAS_OSL 1
    23457 _ACEOF
    23458 
    23459   fi
    23460 
    23461 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23462 # automake conditional. These actions must occur unconditionally.
    23463 
    23464 
    23465 
    23466 
    23467 
    23468 if test $coin_has_osl = true; then
    23469   COIN_HAS_OSL_TRUE=
    23470   COIN_HAS_OSL_FALSE='#'
    23471 else
    23472   COIN_HAS_OSL_TRUE='#'
    23473   COIN_HAS_OSL_FALSE=
    23474 fi
    23475 
    23476       # OSL
    23477 
    23478   echo "$as_me:$LINENO: checking if user provides library for Soplex" >&5
    23479 echo $ECHO_N "checking if user provides library for Soplex... $ECHO_C" >&6
    23480 
    23481 # Check for header file directory
    23482 
    23483 
    23484 # Check whether --with-soplex-incdir or --without-soplex-incdir was given.
    23485 if test "${with_soplex_incdir+set}" = set; then
    23486   withval="$with_soplex_incdir"
    23487   SPXINCDIR=`cd $withval; pwd`
    23488 fi;
    23489 
    23490 # Check for library directory
    23491 
    23492 
    23493 # Check whether --with-soplex-lib or --without-soplex-lib was given.
    23494 if test "${with_soplex_lib+set}" = set; then
    23495   withval="$with_soplex_lib"
    23496   SPXLIB=$withval
    23497 fi;
    23498 
    23499 # Switch to disable library check if requested
    23500 
    23501   # Check whether --enable-soplex-libcheck or --disable-soplex-libcheck was given.
    23502 if test "${enable_soplex_libcheck+set}" = set; then
    23503   enableval="$enable_soplex_libcheck"
    23504   soplex_libcheck=$enableval
    23505 else
    23506   soplex_libcheck=yes
    23507 fi;
    23508 
    23509 # At this point, if we're going to use the library, both LBRYINCDIR and
    23510 # LBRYLIB must be defined and not empty.
    23511 
    23512   if test x"$SPXINCDIR" != x || test x"$SPXLIB" != x; then
    23513     if test x"$SPXINCDIR" = x || test x"$SPXLIB" = x; then
    23514       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Soplex. Use --with-soplex-incdir of environment variable $SPXINCDIR to specify the include directory. Use --with-soplex-lib or environment variable $SPXLIB to specify link flags." >&5
    23515 echo "$as_me: error: You need to specify both an include directory and link flags to use library Soplex. Use --with-soplex-incdir of environment variable $SPXINCDIR to specify the include directory. Use --with-soplex-lib or environment variable $SPXLIB to specify link flags." >&2;}
    23516    { (exit 1); exit 1; }; }
    23517     fi
    23518     coin_has_spx=true
    23519     echo "$as_me:$LINENO: result: yes" >&5
    23520 echo "${ECHO_T}yes" >&6
    23521   else
    23522     coin_has_spx=false
    23523     echo "$as_me:$LINENO: result: no" >&5
    23524 echo "${ECHO_T}no" >&6
    23525   fi
    23526 
    23527 # If we have instructions for use, consider header and link checks.
    23528 
    23529   if test $coin_has_spx = true; then
    23530 
    23531 # If argument 3 (file) is given, check for the file. Typically this will be a
    23532 # header file, but that's not assumed.
    23533 
    23534     if test -r $SPXINCDIR/spxsolver.h; then
    23535 
    23536   :
    23537 else
    23538   { { echo "$as_me:$LINENO: error: Cannot find file spxsolver.h in $SPXINCDIR" >&5
    23539 echo "$as_me: error: Cannot find file spxsolver.h in $SPXINCDIR" >&2;}
    23540    { (exit 1); exit 1; }; }
    23541   :
    23542 fi
    23543 
    23544 
    23545 # Now see if we can link the function. There are arguments for and against
    23546 # assuming argument 3 is a header file declaring the function. A correct
    23547 # function declaration is the main argument in favour. Having to cope with
    23548 # possible dependencies or other oddities are the main arguments against.
    23549 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23550 # Obviously, this has limits.
    23551 
    23552 
    23553 
    23554 # If we make it this far, we've verified the file and linked the function. Add
    23555 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23556 # COIN_HAS_LBRY.
    23557 
    23558     ADDLIBS="$SPXLIB $ADDLIBS"
    2355925056
    2356025057cat >>confdefs.h <<\_ACEOF
     
    2356225059_ACEOF
    2356325060
     25061
     25062  # adjust linker flags for (i)cl compiler
     25063  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     25064  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25065  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25066  #    everything of the form "-lname" by "libname.lib"
     25067  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25068  then
     25069    SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25070    SPX_LIBS_INSTALLED=`echo " $SPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2356425071  fi
    2356525072
    23566 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23567 # automake conditional. These actions must occur unconditionally.
    23568 
    23569 
    23570 
    23571 
    23572 
    23573 if test $coin_has_spx = true; then
     25073
     25074    COUENNELIB_PCREQUIRES="osi-soplex $COUENNELIB_PCREQUIRES"
     25075    COUENNELIB_CFLAGS="$SPX_CFLAGS $COUENNELIB_CFLAGS"
     25076    COUENNELIB_LIBS="$SPX_LIBS $COUENNELIB_LIBS"
     25077    COUENNELIB_CFLAGS_INSTALLED="$SPX_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     25078    COUENNELIB_LIBS_INSTALLED="$SPX_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     25079
     25080
     25081fi
     25082
     25083
     25084
     25085if test $coin_has_spx != notGiven &&
     25086                test $coin_has_spx != skipping; then
    2357425087  COIN_HAS_SPX_TRUE=
    2357525088  COIN_HAS_SPX_FALSE='#'
     
    2357925092fi
    2358025093
    23581                  # Soplex library
    23582 
    23583   echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
    23584 echo $ECHO_N "checking if user provides library for Xpress... $ECHO_C" >&6
    23585 
    23586 # Check for header file directory
    23587 
    23588 
    23589 # Check whether --with-xpress-incdir or --without-xpress-incdir was given.
    23590 if test "${with_xpress_incdir+set}" = set; then
    23591   withval="$with_xpress_incdir"
    23592   XPRINCDIR=`cd $withval; pwd`
     25094
     25095
     25096  fi
     25097
     25098else
     25099  echo "$as_me:$LINENO: result: $coin_has_spx" >&5
     25100echo "${ECHO_T}$coin_has_spx" >&6
     25101fi
     25102
     25103if test $coin_has_spx != skipping &&
     25104   test $coin_has_spx != notGiven ; then
     25105
     25106cat >>confdefs.h <<\_ACEOF
     25107#define COIN_HAS_SPX 1
     25108_ACEOF
     25109
     25110
     25111  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     25112if test "${enable_interpackage_dependencies+set}" = set; then
     25113  enableval="$enable_interpackage_dependencies"
     25114
     25115else
     25116  enable_interpackage_dependencies=yes
    2359325117fi;
    2359425118
    23595 # Check for library directory
    23596 
    23597 
    23598 # Check whether --with-xpress-lib or --without-xpress-lib was given.
    23599 if test "${with_xpress_lib+set}" = set; then
    23600   withval="$with_xpress_lib"
    23601   XPRLIB=$withval
     25119  if test $enable_interpackage_dependencies = yes ; then
     25120     # construct dependencies variables from LIBS variables
     25121     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25122     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     25123     # then remove everything of the form -xxx
     25124     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25125     SPX_DEPENDENCIES=`echo " $SPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25126
     25127       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25128
     25129  fi
     25130
     25131  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     25132    if test -n "$SPX_CFLAGS" ; then
     25133      { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     25134echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
     25135    fi
     25136    if test -n "$SPX_LIBS" ; then
     25137      { echo "$as_me:$LINENO: Spx LIBS   are $SPX_LIBS" >&5
     25138echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
     25139    fi
     25140    if test -n "$SPX_DEPENDENCIES" ; then
     25141      { echo "$as_me:$LINENO: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&5
     25142echo "$as_me: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&6;}
     25143    fi
     25144    if test -n "$SPX_DATA" ; then
     25145      { echo "$as_me:$LINENO: Spx DATA   is  $SPX_DATA" >&5
     25146echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
     25147    fi
     25148    if test -n "$SPX_CFLAGS" ; then
     25149      { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     25150echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
     25151    fi
     25152
     25153      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     25154echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     25155      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     25156echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     25157      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     25158echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     25159
     25160  fi
     25161fi
     25162
     25163# Define the Makefile conditional
     25164
     25165
     25166if test $coin_has_spx != notGiven &&
     25167                test $coin_has_spx != skipping; then
     25168  COIN_HAS_SPX_TRUE=
     25169  COIN_HAS_SPX_FALSE='#'
     25170else
     25171  COIN_HAS_SPX_TRUE='#'
     25172  COIN_HAS_SPX_FALSE=
     25173fi
     25174
     25175
     25176  # Osi/Soplex
     25177
     25178echo "$as_me:$LINENO: checking for COIN-OR package Xpr" >&5
     25179echo $ECHO_N "checking for COIN-OR package Xpr... $ECHO_C" >&6
     25180
     25181coin_has_xpr=notGiven
     25182
     25183# check if user wants to skip package in any case
     25184if test x"$COIN_SKIP_PROJECTS" != x; then
     25185  for dir in $COIN_SKIP_PROJECTS; do
     25186    if test $dir = "Xpr"; then
     25187      coin_has_xpr=skipping
     25188    fi
     25189  done
     25190fi
     25191
     25192XPR_LIBS=
     25193XPR_CFLAGS=
     25194XPR_DATA=
     25195
     25196
     25197
     25198
     25199
     25200
     25201
     25202
     25203
     25204
     25205
     25206
     25207
     25208
     25209
     25210
     25211
     25212#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     25213if test $coin_has_xpr != skipping; then
     25214
     25215# Check whether --with-m4_tolower(Xpr)-lib or --without-m4_tolower(Xpr)-lib was given.
     25216if test "${with_xpr_lib+set}" = set; then
     25217  withval="$with_xpr_lib"
     25218  if test "$withval" = no ; then
     25219       coin_has_xpr=skipping
     25220     else
     25221       coin_has_xpr=yes
     25222       XPR_LIBS="$withval"
     25223
     25224         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     25225         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     25226
     25227     fi
     25228
    2360225229fi;
    23603 
    23604 # Switch to disable library check if requested
    23605 
    23606   # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
    23607 if test "${enable_xpress_libcheck+set}" = set; then
    23608   enableval="$enable_xpress_libcheck"
    23609   xpress_libcheck=$enableval
    23610 else
    23611   xpress_libcheck=yes
     25230fi
     25231
     25232if test $coin_has_xpr != skipping; then
     25233
     25234# Check whether --with-m4_tolower(Xpr)-incdir or --without-m4_tolower(Xpr)-incdir was given.
     25235if test "${with_xpr_incdir+set}" = set; then
     25236  withval="$with_xpr_incdir"
     25237  if test "$withval" = no ; then
     25238       coin_has_xpr=skipping
     25239     else
     25240       coin_has_xpr=yes
     25241       XPR_CFLAGS="-I`${CYGPATH_W} $withval`"
     25242       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     25243     fi
     25244
    2361225245fi;
    23613 
    23614 # At this point, if we're going to use the library, both LBRYINCDIR and
    23615 # LBRYLIB must be defined and not empty.
    23616 
    23617   if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
    23618     if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
    23619       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&5
    23620 echo "$as_me: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&2;}
     25246fi
     25247
     25248if test $coin_has_xpr != skipping; then
     25249
     25250# Check whether --with-m4_tolower(Xpr)-datadir or --without-m4_tolower(Xpr)-datadir was given.
     25251if test "${with_xpr_datadir+set}" = set; then
     25252  withval="$with_xpr_datadir"
     25253  if test "$withval" = no ; then
     25254       coin_has_xpr=skipping
     25255     else
     25256       coin_has_xpr=yes
     25257       XPR_DATA="$withval"
     25258     fi
     25259
     25260fi;
     25261fi
     25262
     25263if test $coin_has_xpr = notGiven; then
     25264  if test -n "$PKG_CONFIG" ; then
     25265    # set search path for pkg-config
     25266    # need to export variable to be sure that the following pkg-config gets these values
     25267    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     25268    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     25269    export PKG_CONFIG_PATH
     25270
     25271    # let pkg-config do it's magic
     25272
     25273
     25274
     25275if test -n "$PKG_CONFIG" ; then
     25276  if $PKG_CONFIG --exists "osi-xpress"; then
     25277    XPR_VERSIONS="`$PKG_CONFIG --modversion "osi-xpress" 2>/dev/null | tr '\n' ' '`"
     25278     cflags=`$PKG_CONFIG --cflags "osi-xpress" 2>/dev/null`
     25279    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     25280        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     25281        # but only do this if is not trivial
     25282    if test "$CYGPATH_W" != "echo" ; then
     25283      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     25284      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`