Changeset 427


Ignore:
Timestamp:
Aug 6, 2011 12:12:15 PM (8 years ago)
Author:
tkr
Message:

Updates to build files and changes to automatically generated headers

Location:
trunk
Files:
6 added
1 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/CoinMP/Makefile.am

    r219 r427  
    5555########################################################################
    5656
    57 addlibsfile = coinmp_addlibs.txt
    58 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     57pkgconfiglibdir = $(libdir)/pkgconfig
     58pkgconfiglib_DATA = coinmp.pc
     59
     60addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
    5961
    6062examplefiles = $(srcdir)/examples/Makefile $(srcdir)/examples/example.c
     
    6264
    6365install-exec-local: install-doc
    64         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    6566        mkdir -p $(DESTDIR)$(examplesdir)
    6667        $(install_sh_DATA) $(examplefiles) $(DESTDIR)$(examplesdir)
     68
     69install-data-hook:
     70        @$(mkdir_p) "$(addlibsdir)"
     71if COIN_HAS_PKGCONFIG
     72        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
     73        $(PKG_CONFIG) --libs coinmp > $(addlibsdir)/coinmp_addlibs.txt
     74else
     75if COIN_CXX_IS_CL
     76        echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
     77else
     78        echo -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
     79endif
     80endif
    6781
    6882uninstall-local: uninstall-doc
     
    7084        rm -rf $(DESTDIR)$(examplesdir)
    7185
     86uninstall-hook:
     87        rm -f $(addlibsdir)/coinmp_addlibs.txt
    7288
    7389########################################################################
  • trunk/CoinMP/Makefile.in

    r425 r427  
    3030#                    Documentation installation                        #
    3131########################################################################
     32
    3233srcdir = @srcdir@
    3334top_srcdir = @top_srcdir@
     
    6263        $(srcdir)/../ltmain.sh $(srcdir)/../missing \
    6364        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    64         $(srcdir)/coinmp_addlibs.txt.in $(top_srcdir)/configure \
    65         $(top_srcdir)/inc/config_coinmp.h.in AUTHORS
    66 @HAVE_EXTERNALS_TRUE@am__append_2 = Externals
    67 @HAVE_EXTERNALS_TRUE@am__append_3 = .Externals-stamp
     65        $(srcdir)/coinmp-uninstalled.pc.in $(srcdir)/coinmp.pc.in \
     66        $(top_srcdir)/configure AUTHORS
     67@HAVE_EXTERNALS_TRUE@am__append_2 = Dependencies
     68@HAVE_EXTERNALS_TRUE@am__append_3 = .Dependencies-stamp
    6869subdir = .
    6970ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    7576 configure.lineno configure.status.lineno
    7677mkinstalldirs = $(install_sh) -d
    77 CONFIG_HEADER = $(top_builddir)/inc/config_coinmp.h
    78 CONFIG_CLEAN_FILES = coinmp_addlibs.txt
     78CONFIG_HEADER = $(top_builddir)/src/config.h \
     79        $(top_builddir)/src/config_coinmp.h
     80CONFIG_CLEAN_FILES = coinmp.pc coinmp-uninstalled.pc
    7981SOURCES =
    8082DIST_SOURCES =
     
    8587        pdf-recursive ps-recursive uninstall-info-recursive \
    8688        uninstall-recursive
     89am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     90am__vpath_adj = case $$p in \
     91    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     92    *) f=$$p;; \
     93  esac;
     94am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     95am__installdirs = "$(DESTDIR)$(pkgconfiglibdir)"
     96pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     97DATA = $(pkgconfiglib_DATA)
    8798ETAGS = etags
    8899CTAGS = ctags
     
    122133AWK = @AWK@
    123134BUILDTOOLSDIR = @BUILDTOOLSDIR@
    124 CBCGENERIC_CFLAGS = @CBCGENERIC_CFLAGS@
    125 CBCGENERIC_CFLAGS_INSTALLED = @CBCGENERIC_CFLAGS_INSTALLED@
    126 CBCGENERIC_DEPENDENCIES = @CBCGENERIC_DEPENDENCIES@
    127 CBCGENERIC_LIBS = @CBCGENERIC_LIBS@
    128 CBCGENERIC_LIBS_INSTALLED = @CBCGENERIC_LIBS_INSTALLED@
    129 CBCGENERIC_PCLIBS = @CBCGENERIC_PCLIBS@
    130 CBCGENERIC_PCREQUIRES = @CBCGENERIC_PCREQUIRES@
    131 CBCLIB_CFLAGS = @CBCLIB_CFLAGS@
    132 CBCLIB_CFLAGS_INSTALLED = @CBCLIB_CFLAGS_INSTALLED@
    133 CBCLIB_DEPENDENCIES = @CBCLIB_DEPENDENCIES@
    134 CBCLIB_LIBS = @CBCLIB_LIBS@
    135 CBCLIB_LIBS_INSTALLED = @CBCLIB_LIBS_INSTALLED@
    136 CBCLIB_PCLIBS = @CBCLIB_PCLIBS@
    137 CBCLIB_PCREQUIRES = @CBCLIB_PCREQUIRES@
    138135CBC_CFLAGS = @CBC_CFLAGS@
    139136CBC_CFLAGS_INSTALLED = @CBC_CFLAGS_INSTALLED@
     
    147144CDEFS = @CDEFS@
    148145CFLAGS = @CFLAGS@
    149 CGL_CFLAGS = @CGL_CFLAGS@
    150 CGL_CFLAGS_INSTALLED = @CGL_CFLAGS_INSTALLED@
    151 CGL_DATA = @CGL_DATA@
    152 CGL_DATA_INSTALLED = @CGL_DATA_INSTALLED@
    153 CGL_DEPENDENCIES = @CGL_DEPENDENCIES@
    154 CGL_LIBS = @CGL_LIBS@
    155 CGL_LIBS_INSTALLED = @CGL_LIBS_INSTALLED@
    156146CLP_CFLAGS = @CLP_CFLAGS@
    157147CLP_CFLAGS_INSTALLED = @CLP_CFLAGS_INSTALLED@
     
    168158COINMP_PCLIBS = @COINMP_PCLIBS@
    169159COINMP_PCREQUIRES = @COINMP_PCREQUIRES@
    170 COINUTILS_CFLAGS = @COINUTILS_CFLAGS@
    171 COINUTILS_CFLAGS_INSTALLED = @COINUTILS_CFLAGS_INSTALLED@
    172 COINUTILS_DATA = @COINUTILS_DATA@
    173 COINUTILS_DATA_INSTALLED = @COINUTILS_DATA_INSTALLED@
    174 COINUTILS_DEPENDENCIES = @COINUTILS_DEPENDENCIES@
    175 COINUTILS_LIBS = @COINUTILS_LIBS@
    176 COINUTILS_LIBS_INSTALLED = @COINUTILS_LIBS_INSTALLED@
     160COINMP_SVN_REV = @COINMP_SVN_REV@
    177161COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@
    178162COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@
     
    183167COIN_HAS_CBC_FALSE = @COIN_HAS_CBC_FALSE@
    184168COIN_HAS_CBC_TRUE = @COIN_HAS_CBC_TRUE@
    185 COIN_HAS_CGL_FALSE = @COIN_HAS_CGL_FALSE@
    186 COIN_HAS_CGL_TRUE = @COIN_HAS_CGL_TRUE@
    187169COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    188170COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    189 COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    190 COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
    191171COIN_HAS_CPX_FALSE = @COIN_HAS_CPX_FALSE@
    192172COIN_HAS_CPX_TRUE = @COIN_HAS_CPX_TRUE@
     
    199179COIN_HAS_MSK_FALSE = @COIN_HAS_MSK_FALSE@
    200180COIN_HAS_MSK_TRUE = @COIN_HAS_MSK_TRUE@
    201 COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    202 COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
    203181COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
    204182COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
     
    292270OPT_CFLAGS = @OPT_CFLAGS@
    293271OPT_CXXFLAGS = @OPT_CXXFLAGS@
    294 OSI_CFLAGS = @OSI_CFLAGS@
    295 OSI_CFLAGS_INSTALLED = @OSI_CFLAGS_INSTALLED@
    296 OSI_DATA = @OSI_DATA@
    297 OSI_DATA_INSTALLED = @OSI_DATA_INSTALLED@
    298 OSI_DEPENDENCIES = @OSI_DEPENDENCIES@
    299 OSI_LIBS = @OSI_LIBS@
    300 OSI_LIBS_INSTALLED = @OSI_LIBS_INSTALLED@
    301272PACKAGE = @PACKAGE@
    302273PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    342313XPR_LIBS = @XPR_LIBS@
    343314XPR_LIBS_INSTALLED = @XPR_LIBS_INSTALLED@
    344 _SVN_REV = @_SVN_REV@
    345315abs_bin_dir = @abs_bin_dir@
    346316abs_include_dir = @abs_include_dir@
     
    416386#                  Installation of the examples dir                    #
    417387########################################################################
    418 addlibsfile = coinmp_addlibs.txt
    419 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     388pkgconfiglibdir = $(libdir)/pkgconfig
     389pkgconfiglib_DATA = coinmp.pc
     390addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
    420391examplefiles = $(srcdir)/examples/Makefile $(srcdir)/examples/example.c
    421392examplesdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/examples
     
    465436$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    466437        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    467 
    468 inc/config_coinmp.h: inc/stamp-h1
    469         @if test ! -f $@; then \
    470           rm -f inc/stamp-h1; \
    471           $(MAKE) inc/stamp-h1; \
    472         else :; fi
    473 
    474 inc/stamp-h1: $(top_srcdir)/inc/config_coinmp.h.in $(top_builddir)/config.status
    475         @rm -f inc/stamp-h1
    476         cd $(top_builddir) && $(SHELL) ./config.status inc/config_coinmp.h
    477 $(top_srcdir)/inc/config_coinmp.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
    478         cd $(top_srcdir) && $(AUTOHEADER)
    479         rm -f inc/stamp-h1
    480         touch $@
    481 
    482 distclean-hdr:
    483         -rm -f inc/config_coinmp.h inc/stamp-h1
    484 coinmp_addlibs.txt: $(top_builddir)/config.status $(srcdir)/coinmp_addlibs.txt.in
     438coinmp.pc: $(top_builddir)/config.status $(srcdir)/coinmp.pc.in
     439        cd $(top_builddir) && $(SHELL) ./config.status $@
     440coinmp-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinmp-uninstalled.pc.in
    485441        cd $(top_builddir) && $(SHELL) ./config.status $@
    486442
     
    494450        -rm -f libtool
    495451uninstall-info-am:
     452install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     453        @$(NORMAL_INSTALL)
     454        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     455        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     456          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     457          f=$(am__strip_dir) \
     458          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     459          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     460        done
     461
     462uninstall-pkgconfiglibDATA:
     463        @$(NORMAL_UNINSTALL)
     464        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     465          f=$(am__strip_dir) \
     466          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     467          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     468        done
    496469
    497470# This directory's subdirectories are mostly independent; you can cd
     
    630603        $(am__remove_distdir)
    631604        mkdir $(distdir)
    632         $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../BuildTools $(distdir)/examples $(distdir)/inc
     605        $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../BuildTools $(distdir)/examples
    633606        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    634607        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    771744check-am: all-am
    772745check: check-recursive
    773 all-am: Makefile
     746all-am: Makefile $(DATA)
    774747installdirs: installdirs-recursive
    775748installdirs-am:
     749        for dir in "$(DESTDIR)$(pkgconfiglibdir)"; do \
     750          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     751        done
    776752install: install-recursive
    777753install-exec: install-exec-recursive
     
    806782        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    807783        -rm -f Makefile
    808 distclean-am: clean-am distclean-generic distclean-hdr \
    809         distclean-libtool distclean-local distclean-tags
     784distclean-am: clean-am distclean-generic distclean-libtool \
     785        distclean-local distclean-tags
    810786
    811787dvi: dvi-recursive
     
    819795info-am:
    820796
    821 install-data-am:
     797install-data-am: install-pkgconfiglibDATA
     798        @$(NORMAL_INSTALL)
     799        $(MAKE) $(AM_MAKEFLAGS) install-data-hook
    822800
    823801install-exec-am: install-exec-local
     
    847825ps-am:
    848826
    849 uninstall-am: uninstall-info-am uninstall-local
     827uninstall-am: uninstall-info-am uninstall-local \
     828        uninstall-pkgconfiglibDATA
     829        @$(NORMAL_INSTALL)
     830        $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
    850831
    851832uninstall-info: uninstall-info-recursive
     
    855836        clean-recursive ctags ctags-recursive dist dist-all dist-bzip2 \
    856837        dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
    857         distclean-generic distclean-hdr distclean-libtool \
    858         distclean-local distclean-recursive distclean-tags \
    859         distcleancheck distdir distuninstallcheck dvi dvi-am html \
    860         html-am info info-am install install-am install-data \
    861         install-data-am install-exec install-exec-am \
     838        distclean-generic distclean-libtool distclean-local \
     839        distclean-recursive distclean-tags distcleancheck distdir \
     840        distuninstallcheck dvi dvi-am html html-am info info-am \
     841        install install-am install-data install-data-am \
     842        install-data-hook install-exec install-exec-am \
    862843        install-exec-local install-info install-info-am install-man \
    863         install-strip installcheck installcheck-am installdirs \
    864         installdirs-am maintainer-clean maintainer-clean-generic \
    865         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    866         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    867         tags tags-recursive uninstall uninstall-am uninstall-info-am \
    868         uninstall-local
     844        install-pkgconfiglibDATA install-strip installcheck \
     845        installcheck-am installdirs installdirs-am maintainer-clean \
     846        maintainer-clean-generic maintainer-clean-recursive \
     847        mostlyclean mostlyclean-generic mostlyclean-libtool \
     848        mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
     849        uninstall uninstall-am uninstall-hook uninstall-info-am \
     850        uninstall-local uninstall-pkgconfiglibDATA
    869851
    870852
     
    887869
    888870install-exec-local: install-doc
    889         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    890871        mkdir -p $(DESTDIR)$(examplesdir)
    891872        $(install_sh_DATA) $(examplefiles) $(DESTDIR)$(examplesdir)
     873
     874install-data-hook:
     875        @$(mkdir_p) "$(addlibsdir)"
     876@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
     877@COIN_HAS_PKGCONFIG_TRUE@       $(PKG_CONFIG) --libs coinmp > $(addlibsdir)/coinmp_addlibs.txt
     878@COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
     879@COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@        echo -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
    892880
    893881uninstall-local: uninstall-doc
    894882        rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    895883        rm -rf $(DESTDIR)$(examplesdir)
     884
     885uninstall-hook:
     886        rm -f $(addlibsdir)/coinmp_addlibs.txt
    896887
    897888install-doc: $(DocFiles)
     
    934925@MAINTAINER_MODE_TRUE@  cp $< $@
    935926
    936 # Take care of updating externals (if Externals file exists)
    937 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@$(top_builddir)/Makefile: .Externals-stamp
    938 
    939 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@.Externals-stamp: $(srcdir)/Externals
    940 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     cd $(srcdir); svn propset svn:externals -F Externals .
    941 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     touch .Externals-stamp
    942 
    943 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@update-externals: .Externals-stamp
     927# Take care of updating externals (if Dependencies file exists)
     928@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@$(top_builddir)/Makefile: .Dependencies-stamp
     929
     930@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@.Dependencies-stamp: $(srcdir)/Dependencies
     931@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     cd $(srcdir); BuildTools/set_externals Dependencies
     932@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     touch .Dependencies-stamp
     933
     934@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@update-externals: .Dependencies-stamp
    944935@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     cd $(srcdir); svn update
    945936
  • trunk/CoinMP/configure

    r426 r427  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for CoinMP 1.6stable.
     3# Generated by GNU Autoconf 2.59 for CoinMP trunk.
    44#
    55# Report bugs to <coin-discuss@list.coin-or.org>.
     
    430430PACKAGE_NAME='CoinMP'
    431431PACKAGE_TARNAME='coinmp'
    432 PACKAGE_VERSION='1.6stable'
    433 PACKAGE_STRING='CoinMP 1.6stable'
     432PACKAGE_VERSION='trunk'
     433PACKAGE_STRING='CoinMP trunk'
    434434PACKAGE_BUGREPORT='coin-discuss@list.coin-or.org'
    435435
     
    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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion _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 COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CGL_LIBS CGL_CFLAGS CGL_DATA CGL_DEPENDENCIES CGL_LIBS_INSTALLED CGL_CFLAGS_INSTALLED CGL_DATA_INSTALLED COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COINMP_CFLAGS COINMP_LIBS COINMP_PCLIBS COINMP_PCREQUIRES COINMP_DEPENDENCIES COINMP_CFLAGS_INSTALLED COINMP_LIBS_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE SYMPHONY_LIBS SYMPHONY_CFLAGS SYMPHONY_DATA SYMPHONY_DEPENDENCIES SYMPHONY_LIBS_INSTALLED SYMPHONY_CFLAGS_INSTALLED SYMPHONY_DATA_INSTALLED COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_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 FMP_LIBS FMP_CFLAGS FMP_DATA FMP_DEPENDENCIES FMP_LIBS_INSTALLED FMP_CFLAGS_INSTALLED FMP_DATA_INSTALLED COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_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 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 COINMP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE 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 LN_S 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 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 CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COINMP_CFLAGS COINMP_LIBS COINMP_PCLIBS COINMP_PCREQUIRES COINMP_DEPENDENCIES COINMP_CFLAGS_INSTALLED COINMP_LIBS_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE SYMPHONY_LIBS SYMPHONY_CFLAGS SYMPHONY_DATA SYMPHONY_DEPENDENCIES SYMPHONY_LIBS_INSTALLED SYMPHONY_CFLAGS_INSTALLED SYMPHONY_DATA_INSTALLED COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_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 FMP_LIBS FMP_CFLAGS FMP_DATA FMP_DEPENDENCIES FMP_LIBS_INSTALLED FMP_CFLAGS_INSTALLED FMP_DATA_INSTALLED COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_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 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10061006  # This message is too long to be a string in the A/UX 3.1 sh.
    10071007  cat <<_ACEOF
    1008 \`configure' configures CoinMP 1.6stable to adapt to many kinds of systems.
     1008\`configure' configures CoinMP trunk to adapt to many kinds of systems.
    10091009
    10101010Usage: $0 [OPTION]... [VAR=VALUE]...
     
    10721072if test -n "$ac_init_help"; then
    10731073  case $ac_init_help in
    1074      short | recursive ) echo "Configuration of CoinMP 1.6stable:";;
     1074     short | recursive ) echo "Configuration of CoinMP trunk:";;
    10751075   esac
    10761076  cat <<\_ACEOF
     
    10801080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    10811081  --enable-debug          compile all projects with debug options tests
     1082                          (implies --disable-shared)
     1083  --enable-debug-coinmp compile project CoinMP with debug compiler flags
    10821084  --enable-doscompile     Under Cygwin, compile so that executables run under
    10831085                          DOS. Set to mingw to use gcc/g++/ld with
     
    10961098                          optimize for fast installation [default=yes]
    10971099  --disable-libtool-lock  avoid locking (might break parallel builds)
    1098   --enable-pkg-config     use pkg-config if available (default is yes)
    1099   --enable-interpackage-dependencies
    1100                           whether to deduce Makefile dependencies from package
    1101                           linker flags (default: yes)
     1100  --disable-pkg-config    disable use of pkg-config (if available)
     1101  --disable-interpackage-dependencies
     1102                          disables deduction of Makefile dependencies from
     1103                          package linker flags
    11021104
    11031105Optional Packages:
    11041106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    11051107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1108  --with-coinmp-verbosity specify the debug verbosity level for project CoinMP
     1109  --with-coinmp-checklevel
     1110                          specify the sanity check level for project CoinMP
    11061111  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    11071112  --with-pic              try to use only PIC/non-PIC objects [default=use
     
    11111116  --with-coin-instdir     prefix of installation directory for precompiled
    11121117                          COIN packages
    1113   --with-coinutils-lib linker flags for using package CoinUtils
    1114   --with-coinutils-incdir directory with header files for using package
    1115                           CoinUtils
    1116   --with-coinutils-datadir
    1117                           directory with data files for using package
    1118                           CoinUtils
    1119   --with-osi-lib linker flags for using package Osi
    1120   --with-osi-incdir directory with header files for using package Osi
    1121   --with-osi-datadir directory with data files for using package Osi
     1118
    11221119  --with-clp-lib linker flags for using package Clp
    11231120  --with-clp-incdir directory with header files for using package Clp
    11241121  --with-clp-datadir directory with data files for using package Clp
    1125   --with-cgl-lib linker flags for using package Cgl
    1126   --with-cgl-incdir directory with header files for using package Cgl
    1127   --with-cgl-datadir directory with data files for using package Cgl
    11281122  --with-cbc-lib linker flags for using package Cbc
    11291123  --with-cbc-incdir directory with header files for using package Cbc
     
    12881282if $ac_init_version; then
    12891283  cat <<\_ACEOF
    1290 CoinMP configure 1.6stable
     1284CoinMP configure trunk
    12911285generated by GNU Autoconf 2.59
    12921286
     
    13081302running configure, to aid debugging if configure makes a mistake.
    13091303
    1310 It was created by CoinMP $as_me 1.6stable, which was
     1304It was created by CoinMP $as_me trunk, which was
    13111305generated by GNU Autoconf 2.59.  Invocation command line was
    13121306
     
    17451739coin_projectdir=yes
    17461740
    1747 # Set the project's version number
    1748 if test "x" != x; then
     1741# Set the project's version numbers
     1742
    17491743
    17501744cat >>confdefs.h <<_ACEOF
    1751 #define _VERSION "$PACKAGE_VERSION"
     1745#define COINMP_VERSION "$PACKAGE_VERSION"
    17521746_ACEOF
    17531747
    1754 fi
    1755 
    1756 # Set the project's SVN revision number. The complicated sed expression
    1757 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
    1758 # as a single number.
    1759 # Extract the first word of "svnversion", so it can be a program name with args.
     1748
     1749  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
     1750  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
     1751  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
     1752  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
     1753  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
     1754  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
     1755
     1756cat >>confdefs.h <<_ACEOF
     1757#define COINMP_VERSION_MAJOR $coin_majorver
     1758_ACEOF
     1759
     1760
     1761cat >>confdefs.h <<_ACEOF
     1762#define COINMP_VERSION_MINOR $coin_minorver
     1763_ACEOF
     1764
     1765
     1766cat >>confdefs.h <<_ACEOF
     1767#define COINMP_VERSION_RELEASE $coin_releasever
     1768_ACEOF
     1769
     1770
     1771  # We use the following variable to have a string with the upper case
     1772  # version of the project name
     1773  COIN_PRJCT=COINMP
     1774
     1775  # Set the project's SVN revision number. The complicated sed expression
     1776  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
     1777  # as a single number.
     1778  # Extract the first word of "svnversion", so it can be a program name with args.
    17601779set dummy svnversion; ac_word=$2
    17611780echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    17931812fi
    17941813
    1795 if test "x$have_svnversion" = xyes && test "x" != x; then
    1796 
    1797   svn_rev_tmp=`cd $srcdir/$coin_has_ ; svnversion`
    1798   _SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    1799   if test $_SVN_REV != exported; then
     1814  if test "x$have_svnversion" = xyes; then
     1815
     1816    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
     1817    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
     1818      COINMP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    18001819
    18011820cat >>confdefs.h <<_ACEOF
    1802 #define _SVN_REV $_SVN_REV
     1821#define COINMP_SVN_REV $COINMP_SVN_REV
    18031822_ACEOF
    18041823
     1824    fi
    18051825  fi
    1806 fi
     1826
     1827
    18071828
    18081829# Capture libtool library version, if given.
     1830
    18091831
    18101832
     
    18351857fi;
    18361858
    1837  # m4_ifvaln([],
     1859# Check whether --enable-debug-coinmp or --disable-debug-coinmp was given.
     1860if test "${enable_debug_coinmp+set}" = set; then
     1861  enableval="$enable_debug_coinmp"
     1862  case "${enableval}" in
     1863    yes) coin_debug_compile=true
     1864         ;;
     1865    no)  coin_debug_compile=false
     1866         ;;
     1867    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-coinmp" >&5
     1868echo "$as_me: error: bad value ${enableval} for --enable-debug-coinmp" >&2;}
     1869   { (exit 1); exit 1; }; }
     1870         ;;
     1871 esac
     1872else
     1873  :
     1874fi;
     1875
     1876 # m4_ifvaln([CoinMP],
    18381877
    18391878if test $coin_debug_compile = true; then
     
    18451884fi
    18461885
    1847  # m4_ifvaln([],
     1886
     1887# Check whether --with-coinmp-verbosity or --without-coinmp-verbosity was given.
     1888if test "${with_coinmp_verbosity+set}" = set; then
     1889  withval="$with_coinmp_verbosity"
     1890  if test "$withval" = yes; then
     1891                withval=1
     1892              fi
     1893              coin_coinmp_verbosity=$withval
     1894else
     1895  coin_coinmp_verbosity=0
     1896fi;
     1897
     1898cat >>confdefs.h <<_ACEOF
     1899#define COIN_COINMP_VERBOSITY $coin_coinmp_verbosity
     1900_ACEOF
     1901
     1902
     1903
     1904# Check whether --with-coinmp-checklevel or --without-coinmp-checklevel was given.
     1905if test "${with_coinmp_checklevel+set}" = set; then
     1906  withval="$with_coinmp_checklevel"
     1907  if test "$withval" = yes; then
     1908                withval=1
     1909              fi
     1910              coin_coinmp_checklevel=$withval
     1911else
     1912  coin_coinmp_checklevel=0
     1913fi;
     1914
     1915cat >>confdefs.h <<_ACEOF
     1916#define COIN_COINMP_CHECKLEVEL $coin_coinmp_checklevel
     1917_ACEOF
     1918
     1919
     1920 # m4_ifvaln([CoinMP],
    18481921
    18491922
     
    19231996  esac
    19241997fi
    1925 
    1926 # add automake conditional so we can recognize cl compiler in makefile
    1927 coin_cc_is_cl=false
    1928 if test x"$CXX" != x; then
    1929   case "$CXX" in
    1930     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    1931       coin_cc_is_cl=true
    1932       ;;
    1933   esac
    1934 fi
    1935 
    1936 
    1937 if test $coin_cc_is_cl = true; then
    1938   COIN_CC_IS_CL_TRUE=
    1939   COIN_CC_IS_CL_FALSE='#'
    1940 else
    1941   COIN_CC_IS_CL_TRUE='#'
    1942   COIN_CC_IS_CL_FALSE=
    1943 fi
    1944 
    19451998
    19461999
     
    27622815CFLAGS="$save_cflags"
    27632816
     2817# add automake conditional so we can recognize cl compiler in makefile
     2818coin_cc_is_cl=false
     2819case "$CC" in
     2820  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     2821    coin_cc_is_cl=true
     2822    ;;
     2823esac
     2824
     2825
     2826if test $coin_cc_is_cl = true; then
     2827  COIN_CC_IS_CL_TRUE=
     2828  COIN_CC_IS_CL_FALSE='#'
     2829else
     2830  COIN_CC_IS_CL_TRUE='#'
     2831  COIN_CC_IS_CL_FALSE=
     2832fi
     2833
     2834
    27642835# Check if a project specific CFLAGS variable has been set
    27652836if test x$COIN_PRJCT != x; then
     
    27842855        coin_opt_cflags="-O3"
    27852856        coin_add_cflags="-pipe"
    2786         coin_dbg_cflags="-g"
    2787         coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
     2857        coin_dbg_cflags="-g -O0"
     2858        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
    27882859        case $build in
    27892860          *-darwin*)
     
    30493120    fi ;;
    30503121esac
     3122
     3123# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
     3124if test x$COIN_PRJCT != x; then
     3125  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
     3126fi
    30513127
    30523128# Try if CFLAGS works
     
    37113787        coin_opt_cxxflags="-O3"
    37123788        coin_add_cxxflags="-pipe"
    3713         coin_dbg_cxxflags="-g"
    3714         coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
     3789        coin_dbg_cxxflags="-g -O0"
     3790        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
    37153791        case $build in
    37163792          *-darwin*)
     
    39894065esac
    39904066
     4067# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
     4068if test x$COIN_PRJCT != x; then
     4069  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
     4070fi
     4071
    39914072# Try if CXXFLAGS works
    39924073save_CXXFLAGS="$CXXFLAGS"
     
    42204301 EGREP=$ac_cv_prog_egrep
    42214302
     4303
     4304echo "$as_me:$LINENO: checking whether ln -s works" >&5
     4305echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     4306LN_S=$as_ln_s
     4307if test "$LN_S" = "ln -s"; then
     4308  echo "$as_me:$LINENO: result: yes" >&5
     4309echo "${ECHO_T}yes" >&6
     4310else
     4311  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     4312echo "${ECHO_T}no, using $LN_S" >&6
     4313fi
    42224314
    42234315am__api_version="1.9"
     
    45504642
    45514643
     4644
    45524645# AC_MSG_NOTICE([Beginning automake initialisation.])
    45534646# Stuff for automake
     
    45724665# Define the identity of the package.
    45734666 PACKAGE='coinmp'
    4574  VERSION='1.6stable'
     4667 VERSION='trunk'
    45754668
    45764669
     
    51925285
    51935286
    5194   # Check if we have an Externals file
    5195   if test -r $srcdir/Externals; then
     5287  # Check if we have an Dependencies file
     5288  if test -r $srcdir/Dependencies; then
    51965289    coin_have_externals=yes
    51975290  fi
     
    52665359        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
    52675360echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
    5268    { (exit 1); exit 1; }; }
     5361   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
    52695362      fi
    52705363    fi
    52715364  fi
    52725365
     5366
     5367  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
     5368  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
     5369    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
     5370  fi
    52735371
    52745372  # The following variable is set to the name of the directory where
     
    56385736NM="$lt_cv_path_NM"
    56395737
    5640 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    5641 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    5642 LN_S=$as_ln_s
    5643 if test "$LN_S" = "ln -s"; then
    5644   echo "$as_me:$LINENO: result: yes" >&5
    5645 echo "${ECHO_T}yes" >&6
    5646 else
    5647   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    5648 echo "${ECHO_T}no, using $LN_S" >&6
    5649 fi
    5650 
    56515738echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
    56525739echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
     
    58745961*-*-irix6*)
    58755962  # Find out which ABI we are using.
    5876   echo '#line 5876 "configure"' > conftest.$ac_ext
     5963  echo '#line 5963 "configure"' > conftest.$ac_ext
    58775964  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    58785965  (eval $ac_compile) 2>&5
     
    70087095
    70097096# Provide some information about the compiler.
    7010 echo "$as_me:7010:" \
     7097echo "$as_me:7097:" \
    70117098     "checking for Fortran 77 compiler version" >&5
    70127099ac_compiler=`set X $ac_compile; echo $2`
     
    80758162   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80768163   -e 's:$: $lt_compiler_flag:'`
    8077    (eval echo "\"\$as_me:8077: $lt_compile\"" >&5)
     8164   (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
    80788165   (eval "$lt_compile" 2>conftest.err)
    80798166   ac_status=$?
    80808167   cat conftest.err >&5
    8081    echo "$as_me:8081: \$? = $ac_status" >&5
     8168   echo "$as_me:8168: \$? = $ac_status" >&5
    80828169   if (exit $ac_status) && test -s "$ac_outfile"; then
    80838170     # The compiler can only warn and ignore the option if not recognized
     
    83438430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83448431   -e 's:$: $lt_compiler_flag:'`
    8345    (eval echo "\"\$as_me:8345: $lt_compile\"" >&5)
     8432   (eval echo "\"\$as_me:8432: $lt_compile\"" >&5)
    83468433   (eval "$lt_compile" 2>conftest.err)
    83478434   ac_status=$?
    83488435   cat conftest.err >&5
    8349    echo "$as_me:8349: \$? = $ac_status" >&5
     8436   echo "$as_me:8436: \$? = $ac_status" >&5
    83508437   if (exit $ac_status) && test -s "$ac_outfile"; then
    83518438     # The compiler can only warn and ignore the option if not recognized
     
    84478534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84488535   -e 's:$: $lt_compiler_flag:'`
    8449    (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
     8536   (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
    84508537   (eval "$lt_compile" 2>out/conftest.err)
    84518538   ac_status=$?
    84528539   cat out/conftest.err >&5
    8453    echo "$as_me:8453: \$? = $ac_status" >&5
     8540   echo "$as_me:8540: \$? = $ac_status" >&5
    84548541   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    84558542   then
     
    1079210879  lt_status=$lt_dlunknown
    1079310880  cat > conftest.$ac_ext <<EOF
    10794 #line 10794 "configure"
     10881#line 10881 "configure"
    1079510882#include "confdefs.h"
    1079610883
     
    1089210979  lt_status=$lt_dlunknown
    1089310980  cat > conftest.$ac_ext <<EOF
    10894 #line 10894 "configure"
     10981#line 10981 "configure"
    1089510982#include "confdefs.h"
    1089610983
     
    1323613323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1323713324   -e 's:$: $lt_compiler_flag:'`
    13238    (eval echo "\"\$as_me:13238: $lt_compile\"" >&5)
     13325   (eval echo "\"\$as_me:13325: $lt_compile\"" >&5)
    1323913326   (eval "$lt_compile" 2>conftest.err)
    1324013327   ac_status=$?
    1324113328   cat conftest.err >&5
    13242    echo "$as_me:13242: \$? = $ac_status" >&5
     13329   echo "$as_me:13329: \$? = $ac_status" >&5
    1324313330   if (exit $ac_status) && test -s "$ac_outfile"; then
    1324413331     # The compiler can only warn and ignore the option if not recognized
     
    1334013427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1334113428   -e 's:$: $lt_compiler_flag:'`
    13342    (eval echo "\"\$as_me:13342: $lt_compile\"" >&5)
     13429   (eval echo "\"\$as_me:13429: $lt_compile\"" >&5)
    1334313430   (eval "$lt_compile" 2>out/conftest.err)
    1334413431   ac_status=$?
    1334513432   cat out/conftest.err >&5
    13346    echo "$as_me:13346: \$? = $ac_status" >&5
     13433   echo "$as_me:13433: \$? = $ac_status" >&5
    1334713434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1334813435   then
     
    1491014997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1491114998   -e 's:$: $lt_compiler_flag:'`
    14912    (eval echo "\"\$as_me:14912: $lt_compile\"" >&5)
     14999   (eval echo "\"\$as_me:14999: $lt_compile\"" >&5)
    1491315000   (eval "$lt_compile" 2>conftest.err)
    1491415001   ac_status=$?
    1491515002   cat conftest.err >&5
    14916    echo "$as_me:14916: \$? = $ac_status" >&5
     15003   echo "$as_me:15003: \$? = $ac_status" >&5
    1491715004   if (exit $ac_status) && test -s "$ac_outfile"; then
    1491815005     # The compiler can only warn and ignore the option if not recognized
     
    1501415101   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1501515102   -e 's:$: $lt_compiler_flag:'`
    15016    (eval echo "\"\$as_me:15016: $lt_compile\"" >&5)
     15103   (eval echo "\"\$as_me:15103: $lt_compile\"" >&5)
    1501715104   (eval "$lt_compile" 2>out/conftest.err)
    1501815105   ac_status=$?
    1501915106   cat out/conftest.err >&5
    15020    echo "$as_me:15020: \$? = $ac_status" >&5
     15107   echo "$as_me:15107: \$? = $ac_status" >&5
    1502115108   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1502215109   then
     
    1722117308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1722217309   -e 's:$: $lt_compiler_flag:'`
    17223    (eval echo "\"\$as_me:17223: $lt_compile\"" >&5)
     17310   (eval echo "\"\$as_me:17310: $lt_compile\"" >&5)
    1722417311   (eval "$lt_compile" 2>conftest.err)
    1722517312   ac_status=$?
    1722617313   cat conftest.err >&5
    17227    echo "$as_me:17227: \$? = $ac_status" >&5
     17314   echo "$as_me:17314: \$? = $ac_status" >&5
    1722817315   if (exit $ac_status) && test -s "$ac_outfile"; then
    1722917316     # The compiler can only warn and ignore the option if not recognized
     
    1748917576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1749017577   -e 's:$: $lt_compiler_flag:'`
    17491    (eval echo "\"\$as_me:17491: $lt_compile\"" >&5)
     17578   (eval echo "\"\$as_me:17578: $lt_compile\"" >&5)
    1749217579   (eval "$lt_compile" 2>conftest.err)
    1749317580   ac_status=$?
    1749417581   cat conftest.err >&5
    17495    echo "$as_me:17495: \$? = $ac_status" >&5
     17582   echo "$as_me:17582: \$? = $ac_status" >&5
    1749617583   if (exit $ac_status) && test -s "$ac_outfile"; then
    1749717584     # The compiler can only warn and ignore the option if not recognized
     
    1759317680   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1759417681   -e 's:$: $lt_compiler_flag:'`
    17595    (eval echo "\"\$as_me:17595: $lt_compile\"" >&5)
     17682   (eval echo "\"\$as_me:17682: $lt_compile\"" >&5)
    1759617683   (eval "$lt_compile" 2>out/conftest.err)
    1759717684   ac_status=$?
    1759817685   cat out/conftest.err >&5
    17599    echo "$as_me:17599: \$? = $ac_status" >&5
     17686   echo "$as_me:17686: \$? = $ac_status" >&5
    1760017687   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1760117688   then
     
    2060420691  fi
    2060520692  if test -n "$PKG_CONFIG"; then
    20606     _pkg_min_version=0.9.0
     20693    _pkg_min_version=0.16.0
    2060720694    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
    2060820695echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     
    2064520732# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    2064620733if test "x${prefix}" = xNONE ; then
    20647   COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
    20648 else
    20649   COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20734  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20735else
     20736  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
    2065020737fi
    2065120738
     
    2065920746   { (exit 1); exit 1; }; }
    2066020747   fi
    20661    COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20748   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
    2066220749
    2066320750fi;
     
    2069720784fi
    2069820785
    20699 
    20700 
    20701 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
    20702 echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
    20703 
    20704 coin_has_coinutils=notGiven
     20786if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
     20787  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
     20788echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
     20789fi
     20790
     20791
     20792
     20793echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
     20794echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
     20795
     20796coin_has_clp=notGiven
    2070520797
    2070620798# check if user wants to skip package in any case
    2070720799if test x"$COIN_SKIP_PROJECTS" != x; then
    2070820800  for dir in $COIN_SKIP_PROJECTS; do
    20709     if test $dir = "CoinUtils"; then
    20710       coin_has_coinutils=skipping
     20801    if test $dir = "Clp"; then
     20802      coin_has_clp=skipping
    2071120803    fi
    2071220804  done
    2071320805fi
    2071420806
    20715 COINUTILS_LIBS=
    20716 COINUTILS_CFLAGS=
    20717 COINUTILS_DATA=
    20718 
    20719 
    20720 
    20721 
    20722 
    20723 
    20724 
    20725 
     20807if test "$coin_has_clp" != skipping; then
     20808
     20809# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
     20810if test "${with_clp+set}" = set; then
     20811  withval="$with_clp"
     20812  if test "$withval" = no ; then
     20813       coin_has_clp=skipping
     20814     fi
     20815
     20816fi;
     20817fi
     20818
     20819CLP_LIBS=
     20820CLP_CFLAGS=
     20821CLP_DATA=
     20822CLP_DEPENDENCIES=
     20823CLP_PCLIBS=
     20824CLP_PCREQUIRES=
     20825CLP_DATA=
    2072620826
    2072720827
     
    2074220842
    2074320843#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    20744 if test $coin_has_coinutils != skipping; then
    20745 
    20746 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
    20747 if test "${with_coinutils_lib+set}" = set; then
    20748   withval="$with_coinutils_lib"
     20844if test $coin_has_clp != skipping; then
     20845
     20846# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
     20847if test "${with_clp_lib+set}" = set; then
     20848  withval="$with_clp_lib"
    2074920849  if test "$withval" = no ; then
    20750        coin_has_coinutils=skipping
     20850       coin_has_clp=skipping
    2075120851     else
    20752        coin_has_coinutils=yes
    20753        COINUTILS_LIBS="$withval"
    20754 
    20755          CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
    20756          CBCLIB_LIBS="$withval $CBCLIB_LIBS"
    20757 
    20758          CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
    20759          CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
    20760 
     20852       coin_has_clp=yes
     20853       CLP_LIBS="$withval"
     20854       CLP_PCLIBS="$withval"
     20855
     20856         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     20857         COINMP_LIBS="$withval $COINMP_LIBS"
     20858
     20859       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     20860       if test -z "$PKG_CONFIG" ; then
     20861         CLP_LIBS_INSTALLED="$withval"
     20862         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     20863       fi
    2076120864     fi
    2076220865
     
    2076420867fi
    2076520868
    20766 if test $coin_has_coinutils != skipping; then
    20767 
    20768 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
    20769 if test "${with_coinutils_incdir+set}" = set; then
    20770   withval="$with_coinutils_incdir"
     20869if test $coin_has_clp != skipping; then
     20870
     20871# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
     20872if test "${with_clp_incdir+set}" = set; then
     20873  withval="$with_clp_incdir"
    2077120874  if test "$withval" = no ; then
    20772        coin_has_coinutils=skipping
     20875       coin_has_clp=skipping
    2077320876     else
    20774        coin_has_coinutils=yes
    20775        COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
    20776        CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     20877       coin_has_clp=yes
     20878       CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     20879       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     20880       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     20881       if test -z "$PKG_CONFIG" ; then
     20882         CLP_CFLAGS_INSTALLED="$CLP_CFLAGS"
     20883         COINMP_CFLAGS_INSTALLED="$CLP_CFLAGS $COINMP_CFLAGS_INSTALLED"
     20884       fi
    2077720885     fi
    2077820886
     
    2078020888fi
    2078120889
    20782 if test $coin_has_coinutils != skipping; then
    20783 
    20784 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
    20785 if test "${with_coinutils_datadir+set}" = set; then
    20786   withval="$with_coinutils_datadir"
     20890if test $coin_has_clp != skipping; then
     20891
     20892# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
     20893if test "${with_clp_datadir+set}" = set; then
     20894  withval="$with_clp_datadir"
    2078720895  if test "$withval" = no ; then
    20788        coin_has_coinutils=skipping
     20896       coin_has_clp=skipping
    2078920897     else
    20790        coin_has_coinutils=yes
    20791        COINUTILS_DATA="$withval"
     20898       coin_has_clp=yes
     20899       CLP_DATA="$withval"
     20900       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     20901       if test -z "$PKG_CONFIG" ; then
     20902         CLP_DATA_INSTALLED="$withval"
     20903       fi
    2079220904     fi
    2079320905
     
    2079520907fi
    2079620908
    20797 if test $coin_has_coinutils = notGiven; then
     20909if test $coin_has_clp = notGiven; then
    2079820910  if test -n "$PKG_CONFIG" ; then
    2079920911    # set search path for pkg-config
     
    2080820920
    2080920921if test -n "$PKG_CONFIG" ; then
    20810   if $PKG_CONFIG --exists "coinutils"; then
    20811     COINUTILS_VERSIONS="`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`"
    20812      cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
     20922  if $PKG_CONFIG --exists "osi-clp"; then
     20923    CLP_VERSIONS=`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`
     20924     cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
    2081320925    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2081420926        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2081820930      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2081920931    fi
    20820     COINUTILS_CFLAGS="$cflags"
    20821     COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
    20822     COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
    20823      coin_has_coinutils=yes
    20824         echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
    20825 echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
     20932    CLP_CFLAGS="$cflags"
     20933    CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
     20934    CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
     20935     coin_has_clp=yes
     20936        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
     20937echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
    2082620938
    2082720939        # adjust linker flags for (i)cl compiler
     
    2082920941        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2083020942        then
    20831           COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     20943          CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2083220944        fi
    20833 
    20834         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
    20835 
    20836           CBCLIB_PCREQUIRES="coinutils $CBCLIB_PCREQUIRES"
    20837           CBCLIB_CFLAGS="$COINUTILS_CFLAGS $CBCLIB_CFLAGS"
    20838           CBCLIB_LIBS="$COINUTILS_LIBS $CBCLIB_LIBS"
    20839 
    20840           CBCGENERIC_PCREQUIRES="coinutils $CBCGENERIC_PCREQUIRES"
    20841           CBCGENERIC_CFLAGS="$COINUTILS_CFLAGS $CBCGENERIC_CFLAGS"
    20842           CBCGENERIC_LIBS="$COINUTILS_LIBS $CBCGENERIC_LIBS"
     20945        CLP_PCREQUIRES="osi-clp"
     20946
     20947        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     20948
     20949          COINMP_PCREQUIRES="osi-clp $COINMP_PCREQUIRES"
     20950          COINMP_CFLAGS="$CLP_CFLAGS $COINMP_CFLAGS"
     20951          COINMP_LIBS="$CLP_LIBS $COINMP_LIBS"
    2084320952
    2084420953
    2084520954
    2084620955  else
    20847     COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
    20848       coin_has_coinutils=notGiven
    20849         echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
    20850 echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
     20956    CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
     20957      coin_has_clp=notGiven
     20958        echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
     20959echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
    2085120960
    2085220961  fi
    2085320962else
    20854   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
    20855 echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
     20963  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
     20964echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
    2085620965   { (exit 1); exit 1; }; }
    2085720966fi
     
    2086820977echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2086920978
    20870 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
    20871 echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
    20872 
    20873 coin_has_coinutils=notGiven
    20874 COINUTILS_LIBS=
    20875 COINUTILS_LIBS_INSTALLED=
    20876 COINUTILS_CFLAGS=
    20877 COINUTILS_CFLAGS_INSTALLED=
    20878 COINUTILS_DATA=
    20879 COINUTILS_DATA_INSTALLED=
    20880 
    20881 # initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x)
    20882 projtoprocess="coinutils"
     20979echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
     20980echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
     20981
     20982coin_has_clp=notGiven
     20983CLP_LIBS=
     20984CLP_LIBS_INSTALLED=
     20985CLP_CFLAGS=
     20986CLP_CFLAGS_INSTALLED=
     20987CLP_DATA=
     20988CLP_DATA_INSTALLED=
     20989CLP_PCLIBS=
     20990CLP_PCREQUIRES=
     20991
     20992# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     20993projtoprocess="osi-clp"
    2088320994
    2088420995# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2091821029      # add projrequires to the front of the list of projects that have to be processed next
    2091921030      # at the same time, remove $proj from this list
    20920       projtoprocess=${projtoprocess/$proj/$projrequires}
     21031      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2092121032
    2092221033      # read DATA from $pcfile, if _DATA is still empty
    20923       if test "x$COINUTILS_DATA" = x ; then
     21034      if test "x$CLP_DATA" = x ; then
    2092421035        projdatadir=
    2092521036        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2092621037        eval `sh -c "$pcfilemod"`
    20927         COINUTILS_DATA="$projdatadir"
     21038        CLP_DATA="$projdatadir"
    2092821039      fi
    2092921040
     
    2094221053
    2094321054      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    20944       if test "x$COINUTILS_DATA_INSTALLED" = x ; then
     21055      if test "x$CLP_DATA_INSTALLED" = x ; then
    2094521056        projdatadir=
    2094621057        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2094921060          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2095021061        fi
    20951         COINUTILS_DATA_INSTALLED="$projdatadir"
     21062        CLP_DATA_INSTALLED="$projdatadir"
    2095221063      fi
    2095321064
     
    2098621097    #   replace "Cflags:" by "echo projcflags="
    2098721098    #   remove every line starting with <some word>:
    20988     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21099    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2098921100
    2099021101    # set projcflags and projlibs variables by running $pcfilemod
     21102    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2099121103    projcflags=
    2099221104    projlibs=
     21105    IFS="$save_IFS"
    2099321106    eval `sh -c "$pcfilemod"`
     21107    IFS=":"
    2099421108
    2099521109    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2099721111      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2099821112    fi
    20999     COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
     21113    CLP_CFLAGS="$projcflags $CLP_CFLAGS"
    2100021114
    2100121115    # set LIBS variable
    21002     COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
     21116    CLP_LIBS="$projlibs $CLP_LIBS"
    2100321117
    2100421118    # remember that we have processed $pcfile
     
    2103121145    #   replace "Cflags:" by "echo projcflags="
    2103221146    #   remove every line starting with <some word>:
    21033     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21147    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2103421148
    2103521149    # set projcflags and projlibs variables by running $pcfilemod
     21150    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2103621151    projcflags=
    2103721152    projlibs=
     21153    IFS="$save_IFS"
    2103821154    eval `sh -c "$pcfilemod"`
     21155    IFS=":"
    2103921156
    2104021157    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2104221159      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2104321160    fi
    21044     COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
     21161    CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
    2104521162
    2104621163    # set LIBS variable
    21047     COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
     21164    CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
    2104821165
    2104921166    # remember that we have processed $pcfile
     
    2105521172
    2105621173  # finish up
    21057   coin_has_coinutils=yes
     21174  coin_has_clp=yes
    2105821175  echo "$as_me:$LINENO: result: yes" >&5
    2105921176echo "${ECHO_T}yes" >&6
    2106021177
    2106121178cat >>confdefs.h <<\_ACEOF
    21062 #define COIN_HAS_COINUTILS 1
     21179#define COIN_HAS_CLP 1
    2106321180_ACEOF
    2106421181
     
    2106721184  # 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),
    2106821185  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    21069   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    21070   #    everything of the form "-lname" by "libname.lib"
     21186  #    everything of the form "-lname" by "libname.lib", and
     21187  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2107121188  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2107221189  then
    21073     COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    21074     COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     21190    CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21191    CLP_LIBS_INSTALLED=`echo " $CLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2107521192  fi
    2107621193
    21077 
    21078     CBCLIB_PCREQUIRES="coinutils $CBCLIB_PCREQUIRES"
    21079     CBCLIB_CFLAGS="$COINUTILS_CFLAGS $CBCLIB_CFLAGS"
    21080     CBCLIB_LIBS="$COINUTILS_LIBS $CBCLIB_LIBS"
    21081     CBCLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
    21082     CBCLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    21083 
    21084     CBCGENERIC_PCREQUIRES="coinutils $CBCGENERIC_PCREQUIRES"
    21085     CBCGENERIC_CFLAGS="$COINUTILS_CFLAGS $CBCGENERIC_CFLAGS"
    21086     CBCGENERIC_LIBS="$COINUTILS_LIBS $CBCGENERIC_LIBS"
    21087     CBCGENERIC_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
    21088     CBCGENERIC_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
    21089 
    21090 
    21091 fi
    21092 
    21093 
    21094 
    21095 if test $coin_has_coinutils != notGiven &&
    21096                 test $coin_has_coinutils != skipping; then
    21097   COIN_HAS_COINUTILS_TRUE=
    21098   COIN_HAS_COINUTILS_FALSE='#'
    21099 else
    21100   COIN_HAS_COINUTILS_TRUE='#'
    21101   COIN_HAS_COINUTILS_FALSE=
     21194  CLP_PCREQUIRES="osi-clp"
     21195
     21196    COINMP_PCREQUIRES="osi-clp $COINMP_PCREQUIRES"
     21197    COINMP_CFLAGS="$CLP_CFLAGS $COINMP_CFLAGS"
     21198    COINMP_LIBS="$CLP_LIBS $COINMP_LIBS"
     21199    COINMP_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     21200    COINMP_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     21201
     21202
     21203fi
     21204
     21205
     21206
     21207if test $coin_has_clp != notGiven &&
     21208                test $coin_has_clp != skipping; then
     21209  COIN_HAS_CLP_TRUE=
     21210  COIN_HAS_CLP_FALSE='#'
     21211else
     21212  COIN_HAS_CLP_TRUE='#'
     21213  COIN_HAS_CLP_FALSE=
    2110221214fi
    2110321215
     
    2110721219
    2110821220else
    21109   echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    21110 echo "${ECHO_T}$coin_has_coinutils" >&6
    21111 fi
    21112 
    21113 if test $coin_has_coinutils != skipping &&
    21114    test $coin_has_coinutils != notGiven ; then
     21221  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     21222echo "${ECHO_T}$coin_has_clp" >&6
     21223fi
     21224
     21225if test $coin_has_clp != skipping &&
     21226   test $coin_has_clp != notGiven ; then
    2111521227
    2111621228cat >>confdefs.h <<\_ACEOF
    21117 #define COIN_HAS_COINUTILS 1
     21229#define COIN_HAS_CLP 1
    2111821230_ACEOF
    2111921231
     
    2113321245     # then remove everything of the form -xxx
    2113421246     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    21135      COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    21136 
    21137        CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    21138 
    21139        CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21247     CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21248
     21249       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2114021250
    2114121251  fi
    2114221252
    2114321253  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21144     if test -n "$COINUTILS_CFLAGS" ; then
    21145       { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
    21146 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
     21254    if test -n "$CLP_CFLAGS" ; then
     21255      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     21256echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
    2114721257    fi
    21148     if test -n "$COINUTILS_LIBS" ; then
    21149       { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
    21150 echo "$as_me: CoinUtils LIBS   are $COINUTILS_LIBS" >&6;}
     21258    if test -n "$CLP_LIBS" ; then
     21259      { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
     21260echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
    2115121261    fi
    21152     if test -n "$COINUTILS_DEPENDENCIES" ; then
    21153       { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
    21154 echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
     21262    if test -n "$CLP_DEPENDENCIES" ; then
     21263      { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
     21264echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
    2115521265    fi
    21156     if test -n "$COINUTILS_DATA" ; then
    21157       { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
    21158 echo "$as_me: CoinUtils DATA   is  $COINUTILS_DATA" >&6;}
     21266    if test -n "$CLP_DATA" ; then
     21267      { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
     21268echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
    2115921269    fi
    21160     if test -n "$COINUTILS_CFLAGS" ; then
    21161       { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
    21162 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
     21270    if test -n "$CLP_PCLIBS" ; then
     21271      { echo "$as_me:$LINENO: Clp PCLIBS are $CLP_PCLIBS" >&5
     21272echo "$as_me: Clp PCLIBS are $CLP_PCLIBS" >&6;}
    2116321273    fi
    21164 
    21165       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    21166 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    21167       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    21168 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    21169       { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
    21170 echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    21171 
    21172       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    21173 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    21174       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    21175 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    21176       { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
    21177 echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     21274    if test -n "$CLP_PCREQUIRES" ; then
     21275      { echo "$as_me:$LINENO: Clp PCREQUIRES are $CLP_PCREQUIRES" >&5
     21276echo "$as_me: Clp PCREQUIRES are $CLP_PCREQUIRES" >&6;}
     21277    fi
     21278
     21279      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     21280echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     21281      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     21282echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     21283      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     21284echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    2117821285
    2117921286  fi
     
    2118321290
    2118421291
    21185 if test $coin_has_coinutils != notGiven &&
    21186                 test $coin_has_coinutils != skipping; then
    21187   COIN_HAS_COINUTILS_TRUE=
    21188   COIN_HAS_COINUTILS_FALSE='#'
    21189 else
    21190   COIN_HAS_COINUTILS_TRUE='#'
    21191   COIN_HAS_COINUTILS_FALSE=
    21192 fi
    21193 
    21194 
    21195 
    21196 if test $coin_has_coinutils != yes ; then
    21197   { { echo "$as_me:$LINENO: error: \"required package CoinUtils Unavailable.\"" >&5
    21198 echo "$as_me: error: \"required package CoinUtils Unavailable.\"" >&2;}
     21292if test $coin_has_clp != notGiven &&
     21293                test $coin_has_clp != skipping; then
     21294  COIN_HAS_CLP_TRUE=
     21295  COIN_HAS_CLP_FALSE='#'
     21296else
     21297  COIN_HAS_CLP_TRUE='#'
     21298  COIN_HAS_CLP_FALSE=
     21299fi
     21300
     21301
     21302
     21303if test $coin_has_clp != yes ; then
     21304  { { echo "$as_me:$LINENO: error: \"required package Clp Unavailable.\"" >&5
     21305echo "$as_me: error: \"required package Clp Unavailable.\"" >&2;}
    2119921306   { (exit 1); exit 1; }; }
    2120021307fi
    2120121308
    21202 echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
    21203 echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
    21204 
    21205 coin_has_osi=notGiven
     21309echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
     21310echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
     21311
     21312coin_has_cbc=notGiven
    2120621313
    2120721314# check if user wants to skip package in any case
    2120821315if test x"$COIN_SKIP_PROJECTS" != x; then
    2120921316  for dir in $COIN_SKIP_PROJECTS; do
    21210     if test $dir = "Osi"; then
    21211       coin_has_osi=skipping
     21317    if test $dir = "Cbc"; then
     21318      coin_has_cbc=skipping
    2121221319    fi
    2121321320  done
    2121421321fi
    2121521322
    21216 OSI_LIBS=
    21217 OSI_CFLAGS=
    21218 OSI_DATA=
    21219 
    21220 
    21221 
    21222 
    21223 
    21224 
    21225 
    21226 
     21323if test "$coin_has_cbc" != skipping; then
     21324
     21325# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
     21326if test "${with_cbc+set}" = set; then
     21327  withval="$with_cbc"
     21328  if test "$withval" = no ; then
     21329       coin_has_cbc=skipping
     21330     fi
     21331
     21332fi;
     21333fi
     21334
     21335CBC_LIBS=
     21336CBC_CFLAGS=
     21337CBC_DATA=
     21338CBC_DEPENDENCIES=
     21339CBC_PCLIBS=
     21340CBC_PCREQUIRES=
     21341CBC_DATA=
    2122721342
    2122821343
     
    2124321358
    2124421359#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    21245 if test $coin_has_osi != skipping; then
    21246 
    21247 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
    21248 if test "${with_osi_lib+set}" = set; then
    21249   withval="$with_osi_lib"
     21360if test $coin_has_cbc != skipping; then
     21361
     21362# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
     21363if test "${with_cbc_lib+set}" = set; then
     21364  withval="$with_cbc_lib"
    2125021365  if test "$withval" = no ; then
    21251        coin_has_osi=skipping
     21366       coin_has_cbc=skipping
    2125221367     else
    21253        coin_has_osi=yes
    21254        OSI_LIBS="$withval"
    21255 
    21256          CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
    21257          CBCLIB_LIBS="$withval $CBCLIB_LIBS"
    21258 
    21259          CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
    21260          CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
    21261 
     21368       coin_has_cbc=yes
     21369       CBC_LIBS="$withval"
     21370       CBC_PCLIBS="$withval"
     21371
     21372         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     21373         COINMP_LIBS="$withval $COINMP_LIBS"
     21374
     21375       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     21376       if test -z "$PKG_CONFIG" ; then
     21377         CBC_LIBS_INSTALLED="$withval"
     21378         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     21379       fi
    2126221380     fi
    2126321381
     
    2126521383fi
    2126621384
    21267 if test $coin_has_osi != skipping; then
    21268 
    21269 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
    21270 if test "${with_osi_incdir+set}" = set; then
    21271   withval="$with_osi_incdir"
     21385if test $coin_has_cbc != skipping; then
     21386
     21387# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
     21388if test "${with_cbc_incdir+set}" = set; then
     21389  withval="$with_cbc_incdir"
    2127221390  if test "$withval" = no ; then
    21273        coin_has_osi=skipping
     21391       coin_has_cbc=skipping
    2127421392     else
    21275        coin_has_osi=yes
    21276        OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
    21277        CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     21393       coin_has_cbc=yes
     21394       CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
     21395       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     21396       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     21397       if test -z "$PKG_CONFIG" ; then
     21398         CBC_CFLAGS_INSTALLED="$CBC_CFLAGS"
     21399         COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS $COINMP_CFLAGS_INSTALLED"
     21400       fi
    2127821401     fi
    2127921402
     
    2128121404fi
    2128221405
    21283 if test $coin_has_osi != skipping; then
    21284 
    21285 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
    21286 if test "${with_osi_datadir+set}" = set; then
    21287   withval="$with_osi_datadir"
     21406if test $coin_has_cbc != skipping; then
     21407
     21408# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
     21409if test "${with_cbc_datadir+set}" = set; then
     21410  withval="$with_cbc_datadir"
    2128821411  if test "$withval" = no ; then
    21289        coin_has_osi=skipping
     21412       coin_has_cbc=skipping
    2129021413     else
    21291        coin_has_osi=yes
    21292        OSI_DATA="$withval"
     21414       coin_has_cbc=yes
     21415       CBC_DATA="$withval"
     21416       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     21417       if test -z "$PKG_CONFIG" ; then
     21418         CBC_DATA_INSTALLED="$withval"
     21419       fi
    2129321420     fi
    2129421421
     
    2129621423fi
    2129721424
    21298 if test $coin_has_osi = notGiven; then
     21425if test $coin_has_cbc = notGiven; then
    2129921426  if test -n "$PKG_CONFIG" ; then
    2130021427    # set search path for pkg-config
     
    2130921436
    2131021437if test -n "$PKG_CONFIG" ; then
    21311   if $PKG_CONFIG --exists "osi"; then
    21312     OSI_VERSIONS="`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`"
    21313      cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
     21438  if $PKG_CONFIG --exists "osi-cbc"; then
     21439    CBC_VERSIONS=`$PKG_CONFIG --modversion "osi-cbc" 2>/dev/null | tr '\n' ' '`
     21440     cflags=`$PKG_CONFIG --cflags "osi-cbc" 2>/dev/null`
    2131421441    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2131521442        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2131921446      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2132021447    fi
    21321     OSI_CFLAGS="$cflags"
    21322     OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
    21323     OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
    21324      coin_has_osi=yes
    21325         echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
    21326 echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
     21448    CBC_CFLAGS="$cflags"
     21449    CBC_LIBS=`$PKG_CONFIG --libs "osi-cbc" 2>/dev/null`
     21450    CBC_DATA=`$PKG_CONFIG --variable=datadir "osi-cbc" 2>/dev/null`
     21451     coin_has_cbc=yes
     21452        echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
     21453echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
    2132721454
    2132821455        # adjust linker flags for (i)cl compiler
     
    2133021457        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2133121458        then
    21332           OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21459          CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2133321460        fi
    21334 
    21335         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
    21336 
    21337           CBCLIB_PCREQUIRES="osi $CBCLIB_PCREQUIRES"
    21338           CBCLIB_CFLAGS="$OSI_CFLAGS $CBCLIB_CFLAGS"
    21339           CBCLIB_LIBS="$OSI_LIBS $CBCLIB_LIBS"
    21340 
    21341           CBCGENERIC_PCREQUIRES="osi $CBCGENERIC_PCREQUIRES"
    21342           CBCGENERIC_CFLAGS="$OSI_CFLAGS $CBCGENERIC_CFLAGS"
    21343           CBCGENERIC_LIBS="$OSI_LIBS $CBCGENERIC_LIBS"
     21461        CBC_PCREQUIRES="osi-cbc"
     21462
     21463        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     21464
     21465          COINMP_PCREQUIRES="osi-cbc $COINMP_PCREQUIRES"
     21466          COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
     21467          COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
    2134421468
    2134521469
    2134621470
    2134721471  else
    21348     OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
    21349       coin_has_osi=notGiven
    21350         echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
    21351 echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
     21472    CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cbc"`
     21473      coin_has_cbc=notGiven
     21474        echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
     21475echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
    2135221476
    2135321477  fi
    2135421478else
    21355   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
    21356 echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
     21479  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
     21480echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
    2135721481   { (exit 1); exit 1; }; }
    2135821482fi
     
    2136921493echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2137021494
    21371 echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
    21372 echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
    21373 
    21374 coin_has_osi=notGiven
    21375 OSI_LIBS=
    21376 OSI_LIBS_INSTALLED=
    21377 OSI_CFLAGS=
    21378 OSI_CFLAGS_INSTALLED=
    21379 OSI_DATA=
    21380 OSI_DATA_INSTALLED=
    21381 
    21382 # initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x)
    21383 projtoprocess="osi"
     21495echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
     21496echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
     21497
     21498coin_has_cbc=notGiven
     21499CBC_LIBS=
     21500CBC_LIBS_INSTALLED=
     21501CBC_CFLAGS=
     21502CBC_CFLAGS_INSTALLED=
     21503CBC_DATA=
     21504CBC_DATA_INSTALLED=
     21505CBC_PCLIBS=
     21506CBC_PCREQUIRES=
     21507
     21508# initial list of dependencies is "osi-cbc", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     21509projtoprocess="osi-cbc"
    2138421510
    2138521511# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2141921545      # add projrequires to the front of the list of projects that have to be processed next
    2142021546      # at the same time, remove $proj from this list
    21421       projtoprocess=${projtoprocess/$proj/$projrequires}
     21547      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2142221548
    2142321549      # read DATA from $pcfile, if _DATA is still empty
    21424       if test "x$OSI_DATA" = x ; then
     21550      if test "x$CBC_DATA" = x ; then
    2142521551        projdatadir=
    2142621552        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2142721553        eval `sh -c "$pcfilemod"`
    21428         OSI_DATA="$projdatadir"
     21554        CBC_DATA="$projdatadir"
    2142921555      fi
    2143021556
     
    2144321569
    2144421570      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    21445       if test "x$OSI_DATA_INSTALLED" = x ; then
     21571      if test "x$CBC_DATA_INSTALLED" = x ; then
    2144621572        projdatadir=
    2144721573        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2145021576          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2145121577        fi
    21452         OSI_DATA_INSTALLED="$projdatadir"
     21578        CBC_DATA_INSTALLED="$projdatadir"
    2145321579      fi
    2145421580
     
    2148721613    #   replace "Cflags:" by "echo projcflags="
    2148821614    #   remove every line starting with <some word>:
    21489     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21615    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2149021616
    2149121617    # set projcflags and projlibs variables by running $pcfilemod
     21618    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2149221619    projcflags=
    2149321620    projlibs=
     21621    IFS="$save_IFS"
    2149421622    eval `sh -c "$pcfilemod"`
     21623    IFS=":"
    2149521624
    2149621625    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2149821627      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2149921628    fi
    21500     OSI_CFLAGS="$projcflags $OSI_CFLAGS"
     21629    CBC_CFLAGS="$projcflags $CBC_CFLAGS"
    2150121630
    2150221631    # set LIBS variable
    21503     OSI_LIBS="$projlibs $OSI_LIBS"
     21632    CBC_LIBS="$projlibs $CBC_LIBS"
    2150421633
    2150521634    # remember that we have processed $pcfile
     
    2153221661    #   replace "Cflags:" by "echo projcflags="
    2153321662    #   remove every line starting with <some word>:
    21534     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21663    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2153521664
    2153621665    # set projcflags and projlibs variables by running $pcfilemod
     21666    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2153721667    projcflags=
    2153821668    projlibs=
     21669    IFS="$save_IFS"
    2153921670    eval `sh -c "$pcfilemod"`
     21671    IFS=":"
    2154021672
    2154121673    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2154321675      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2154421676    fi
    21545     OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
     21677    CBC_CFLAGS_INSTALLED="$projcflags $CBC_CFLAGS_INSTALLED"
    2154621678
    2154721679    # set LIBS variable
    21548     OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
     21680    CBC_LIBS_INSTALLED="$projlibs $CBC_LIBS_INSTALLED"
    2154921681
    2155021682    # remember that we have processed $pcfile
     
    2155621688
    2155721689  # finish up
    21558   coin_has_osi=yes
     21690  coin_has_cbc=yes
    2155921691  echo "$as_me:$LINENO: result: yes" >&5
    2156021692echo "${ECHO_T}yes" >&6
    2156121693
    2156221694cat >>confdefs.h <<\_ACEOF
    21563 #define COIN_HAS_OSI 1
     21695#define COIN_HAS_CBC 1
    2156421696_ACEOF
    2156521697
     
    2156821700  # 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),
    2156921701  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    21570   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    21571   #    everything of the form "-lname" by "libname.lib"
     21702  #    everything of the form "-lname" by "libname.lib", and
     21703  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2157221704  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2157321705  then
    21574     OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    21575     OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     21706    CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21707    CBC_LIBS_INSTALLED=`echo " $CBC_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2157621708  fi
    2157721709
    21578 
    21579     CBCLIB_PCREQUIRES="osi $CBCLIB_PCREQUIRES"
    21580     CBCLIB_CFLAGS="$OSI_CFLAGS $CBCLIB_CFLAGS"
    21581     CBCLIB_LIBS="$OSI_LIBS $CBCLIB_LIBS"
    21582     CBCLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
    21583     CBCLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    21584 
    21585     CBCGENERIC_PCREQUIRES="osi $CBCGENERIC_PCREQUIRES"
    21586     CBCGENERIC_CFLAGS="$OSI_CFLAGS $CBCGENERIC_CFLAGS"
    21587     CBCGENERIC_LIBS="$OSI_LIBS $CBCGENERIC_LIBS"
    21588     CBCGENERIC_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
    21589     CBCGENERIC_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
    21590 
    21591 
    21592 fi
    21593 
    21594 
    21595 
    21596 if test $coin_has_osi != notGiven &&
    21597                 test $coin_has_osi != skipping; then
    21598   COIN_HAS_OSI_TRUE=
    21599   COIN_HAS_OSI_FALSE='#'
    21600 else
    21601   COIN_HAS_OSI_TRUE='#'
    21602   COIN_HAS_OSI_FALSE=
     21710  CBC_PCREQUIRES="osi-cbc"
     21711
     21712    COINMP_PCREQUIRES="osi-cbc $COINMP_PCREQUIRES"
     21713    COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
     21714    COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
     21715    COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     21716    COINMP_LIBS_INSTALLED="$CBC_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     21717
     21718
     21719fi
     21720
     21721
     21722
     21723if test $coin_has_cbc != notGiven &&
     21724                test $coin_has_cbc != skipping; then
     21725  COIN_HAS_CBC_TRUE=
     21726  COIN_HAS_CBC_FALSE='#'
     21727else
     21728  COIN_HAS_CBC_TRUE='#'
     21729  COIN_HAS_CBC_FALSE=
    2160321730fi
    2160421731
     
    2160821735
    2160921736else
    21610   echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    21611 echo "${ECHO_T}$coin_has_osi" >&6
    21612 fi
    21613 
    21614 if test $coin_has_osi != skipping &&
    21615    test $coin_has_osi != notGiven ; then
     21737  echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
     21738echo "${ECHO_T}$coin_has_cbc" >&6
     21739fi
     21740
     21741if test $coin_has_cbc != skipping &&
     21742   test $coin_has_cbc != notGiven ; then
    2161621743
    2161721744cat >>confdefs.h <<\_ACEOF
    21618 #define COIN_HAS_OSI 1
     21745#define COIN_HAS_CBC 1
    2161921746_ACEOF
    2162021747
     
    2163421761     # then remove everything of the form -xxx
    2163521762     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    21636      OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    21637 
    21638        CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    21639 
    21640        CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21763     CBC_DEPENDENCIES=`echo " $CBC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21764
     21765       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2164121766
    2164221767  fi
    2164321768
    2164421769  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21645     if test -n "$OSI_CFLAGS" ; then
    21646       { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
    21647 echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
     21770    if test -n "$CBC_CFLAGS" ; then
     21771      { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
     21772echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
    2164821773    fi
    21649     if test -n "$OSI_LIBS" ; then
    21650       { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
    21651 echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
     21774    if test -n "$CBC_LIBS" ; then
     21775      { echo "$as_me:$LINENO: Cbc LIBS   are $CBC_LIBS" >&5
     21776echo "$as_me: Cbc LIBS   are $CBC_LIBS" >&6;}
    2165221777    fi
    21653     if test -n "$OSI_DEPENDENCIES" ; then
    21654       { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
    21655 echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
     21778    if test -n "$CBC_DEPENDENCIES" ; then
     21779      { echo "$as_me:$LINENO: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&5
     21780echo "$as_me: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&6;}
    2165621781    fi
    21657     if test -n "$OSI_DATA" ; then
    21658       { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
    21659 echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
     21782    if test -n "$CBC_DATA" ; then
     21783      { echo "$as_me:$LINENO: Cbc DATA   is  $CBC_DATA" >&5
     21784echo "$as_me: Cbc DATA   is  $CBC_DATA" >&6;}
    2166021785    fi
    21661     if test -n "$OSI_CFLAGS" ; then
    21662       { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
    21663 echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
     21786    if test -n "$CBC_PCLIBS" ; then
     21787      { echo "$as_me:$LINENO: Cbc PCLIBS are $CBC_PCLIBS" >&5
     21788echo "$as_me: Cbc PCLIBS are $CBC_PCLIBS" >&6;}
    2166421789    fi
    21665 
    21666       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    21667 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    21668       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    21669 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    21670       { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
    21671 echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    21672 
    21673       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    21674 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    21675       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    21676 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    21677       { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
    21678 echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     21790    if test -n "$CBC_PCREQUIRES" ; then
     21791      { echo "$as_me:$LINENO: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&5
     21792echo "$as_me: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&6;}
     21793    fi
     21794
     21795      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     21796echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     21797      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     21798echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     21799      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     21800echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    2167921801
    2168021802  fi
     
    2168421806
    2168521807
    21686 if test $coin_has_osi != notGiven &&
    21687                 test $coin_has_osi != skipping; then
    21688   COIN_HAS_OSI_TRUE=
    21689   COIN_HAS_OSI_FALSE='#'
    21690 else
    21691   COIN_HAS_OSI_TRUE='#'
    21692   COIN_HAS_OSI_FALSE=
    21693 fi
    21694 
    21695 
    21696 
    21697 if test $coin_has_osi != yes ; then
    21698   { { echo "$as_me:$LINENO: error: \"required package Osi Unavailable.\"" >&5
    21699 echo "$as_me: error: \"required package Osi Unavailable.\"" >&2;}
     21808if test $coin_has_cbc != notGiven &&
     21809                test $coin_has_cbc != skipping; then
     21810  COIN_HAS_CBC_TRUE=
     21811  COIN_HAS_CBC_FALSE='#'
     21812else
     21813  COIN_HAS_CBC_TRUE='#'
     21814  COIN_HAS_CBC_FALSE=
     21815fi
     21816
     21817
     21818
     21819if test $coin_has_cbc != yes; then
     21820  { { echo "$as_me:$LINENO: error: \"Required package Cbc unavailable.\"" >&5
     21821echo "$as_me: error: \"Required package Cbc unavailable.\"" >&2;}
    2170021822   { (exit 1); exit 1; }; }
    2170121823fi
    2170221824
    21703 echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
    21704 echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
    21705 
    21706 coin_has_clp=notGiven
     21825# Attempt to use some other solver in cbc. No point in reenabling this until
     21826# cbc again works with a solver other than clp. Right now, it doesn't.
     21827# -- lh, 110112 --
     21828
     21829# AC_MSG_CHECKING(for cbc default solver)
     21830# AC_ARG_WITH([cbc-default-solver],
     21831#   AC_HELP_STRING([--with-cbc-default-solver],
     21832#       [specify default solver for Cbc in lower case letters (if not given, clp
     21833#        is assumed)]),
     21834#   [cbc_default_solver=$with_val],
     21835#   [cbc_default_solver=clp])
     21836# AC_MSG_RESULT($cbc_default_solver)
     21837
     21838# case $cbc_default_solver in
     21839#   clp)
     21840#     AC_DEFINE([CBC_DEFAULT_SOLVER],"clp",
     21841#               [Define to the name of the default solver to be used in CBC in small letters])
     21842#     ;;
     21843#   dylp)
     21844#     AC_DEFINE([CBC_DEFAULT_SOLVER],"dylp")
     21845#     ;;
     21846#   *)
     21847#     AC_MSG_ERROR([Unknown solver $cbc_default_solver chosen as CBC's default solver])
     21848#     ;;
     21849# esac
     21850
     21851#############################################################################
     21852#                            Alternative solvers                            #
     21853#############################################################################
     21854
     21855# But see comment above: cbc won't work with any solver other than clp.
     21856# -- lh, 110112 --
     21857
     21858# COIN solvers:
     21859
     21860echo "$as_me:$LINENO: checking for COIN-OR package Dylp" >&5
     21861echo $ECHO_N "checking for COIN-OR package Dylp... $ECHO_C" >&6
     21862
     21863coin_has_dylp=notGiven
    2170721864
    2170821865# check if user wants to skip package in any case
    2170921866if test x"$COIN_SKIP_PROJECTS" != x; then
    2171021867  for dir in $COIN_SKIP_PROJECTS; do
    21711     if test $dir = "Clp"; then
    21712       coin_has_clp=skipping
     21868    if test $dir = "Dylp"; then
     21869      coin_has_dylp=skipping
    2171321870    fi
    2171421871  done
    2171521872fi
    2171621873
    21717 CLP_LIBS=
    21718 CLP_CFLAGS=
    21719 CLP_DATA=
    21720 
    21721 
    21722 
    21723 
    21724 
    21725 
    21726 
    21727 
     21874if test "$coin_has_dylp" != skipping; then
     21875
     21876# Check whether --with-m4_tolower(Dylp) or --without-m4_tolower(Dylp) was given.
     21877if test "${with_dylp+set}" = set; then
     21878  withval="$with_dylp"
     21879  if test "$withval" = no ; then
     21880       coin_has_dylp=skipping
     21881     fi
     21882
     21883fi;
     21884fi
     21885
     21886DYLP_LIBS=
     21887DYLP_CFLAGS=
     21888DYLP_DATA=
     21889DYLP_DEPENDENCIES=
     21890DYLP_PCLIBS=
     21891DYLP_PCREQUIRES=
     21892DYLP_DATA=
    2172821893
    2172921894
     
    2174421909
    2174521910#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    21746 if test $coin_has_clp != skipping; then
    21747 
    21748 # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
    21749 if test "${with_clp_lib+set}" = set; then
    21750   withval="$with_clp_lib"
     21911if test $coin_has_dylp != skipping; then
     21912
     21913# Check whether --with-m4_tolower(Dylp)-lib or --without-m4_tolower(Dylp)-lib was given.
     21914if test "${with_dylp_lib+set}" = set; then
     21915  withval="$with_dylp_lib"
    2175121916  if test "$withval" = no ; then
    21752        coin_has_clp=skipping
     21917       coin_has_dylp=skipping
    2175321918     else
    21754        coin_has_clp=yes
    21755        CLP_LIBS="$withval"
    21756 
    21757          CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
    21758          CBCLIB_LIBS="$withval $CBCLIB_LIBS"
    21759 
    21760          CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
    21761          CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
    21762 
     21919       coin_has_dylp=yes
     21920       DYLP_LIBS="$withval"
     21921       DYLP_PCLIBS="$withval"
     21922
     21923         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     21924         COINMP_LIBS="$withval $COINMP_LIBS"
     21925
     21926       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     21927       if test -z "$PKG_CONFIG" ; then
     21928         DYLP_LIBS_INSTALLED="$withval"
     21929         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     21930       fi
    2176321931     fi
    2176421932
     
    2176621934fi
    2176721935
    21768 if test $coin_has_clp != skipping; then
    21769 
    21770 # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
    21771 if test "${with_clp_incdir+set}" = set; then
    21772   withval="$with_clp_incdir"
     21936if test $coin_has_dylp != skipping; then
     21937
     21938# Check whether --with-m4_tolower(Dylp)-incdir or --without-m4_tolower(Dylp)-incdir was given.
     21939if test "${with_dylp_incdir+set}" = set; then
     21940  withval="$with_dylp_incdir"
    2177321941  if test "$withval" = no ; then
    21774        coin_has_clp=skipping
     21942       coin_has_dylp=skipping
    2177521943     else
    21776        coin_has_clp=yes
    21777        CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
    21778        CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     21944       coin_has_dylp=yes
     21945       DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     21946       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     21947       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     21948       if test -z "$PKG_CONFIG" ; then
     21949         DYLP_CFLAGS_INSTALLED="$DYLP_CFLAGS"
     21950         COINMP_CFLAGS_INSTALLED="$DYLP_CFLAGS $COINMP_CFLAGS_INSTALLED"
     21951       fi
    2177921952     fi
    2178021953
     
    2178221955fi
    2178321956
    21784 if test $coin_has_clp != skipping; then
    21785 
    21786 # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
    21787 if test "${with_clp_datadir+set}" = set; then
    21788   withval="$with_clp_datadir"
     21957if test $coin_has_dylp != skipping; then
     21958
     21959# Check whether --with-m4_tolower(Dylp)-datadir or --without-m4_tolower(Dylp)-datadir was given.
     21960if test "${with_dylp_datadir+set}" = set; then
     21961  withval="$with_dylp_datadir"
    2178921962  if test "$withval" = no ; then
    21790        coin_has_clp=skipping
     21963       coin_has_dylp=skipping
    2179121964     else
    21792        coin_has_clp=yes
    21793        CLP_DATA="$withval"
     21965       coin_has_dylp=yes
     21966       DYLP_DATA="$withval"
     21967       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     21968       if test -z "$PKG_CONFIG" ; then
     21969         DYLP_DATA_INSTALLED="$withval"
     21970       fi
    2179421971     fi
    2179521972
     
    2179721974fi
    2179821975
    21799 if test $coin_has_clp = notGiven; then
     21976if test $coin_has_dylp = notGiven; then
    2180021977  if test -n "$PKG_CONFIG" ; then
    2180121978    # set search path for pkg-config
     
    2181021987
    2181121988if test -n "$PKG_CONFIG" ; then
    21812   if $PKG_CONFIG --exists "osi-clp"; then
    21813     CLP_VERSIONS="`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`"
    21814      cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
     21989  if $PKG_CONFIG --exists "osi-dylp"; then
     21990    DYLP_VERSIONS=`$PKG_CONFIG --modversion "osi-dylp" 2>/dev/null | tr '\n' ' '`
     21991     cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
    2181521992    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2181621993        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2182021997      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2182121998    fi
    21822     CLP_CFLAGS="$cflags"
    21823     CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
    21824     CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
    21825      coin_has_clp=yes
    21826         echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
    21827 echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
     21999    DYLP_CFLAGS="$cflags"
     22000    DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
     22001    DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
     22002     coin_has_dylp=yes
     22003        echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
     22004echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
    2182822005
    2182922006        # adjust linker flags for (i)cl compiler
     
    2183122008        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2183222009        then
    21833           CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22010          DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2183422011        fi
    21835 
    21836         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
    21837 
    21838           CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
    21839           CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
    21840           CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
    21841 
    21842           CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
    21843           CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
    21844           CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
     22012        DYLP_PCREQUIRES="osi-dylp"
     22013
     22014        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     22015
     22016          COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
     22017          COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
     22018          COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
    2184522019
    2184622020
    2184722021
    2184822022  else
    21849     CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
    21850       coin_has_clp=notGiven
    21851         echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
    21852 echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
     22023    DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-dylp"`
     22024      coin_has_dylp=notGiven
     22025        echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
     22026echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
    2185322027
    2185422028  fi
    2185522029else
    21856   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
    21857 echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
     22030  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&5
     22031echo "$as_me: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&2;}
    2185822032   { (exit 1); exit 1; }; }
    2185922033fi
     
    2187022044echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2187122045
    21872 echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
    21873 echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
    21874 
    21875 coin_has_clp=notGiven
    21876 CLP_LIBS=
    21877 CLP_LIBS_INSTALLED=
    21878 CLP_CFLAGS=
    21879 CLP_CFLAGS_INSTALLED=
    21880 CLP_DATA=
    21881 CLP_DATA_INSTALLED=
    21882 
    21883 # initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x)
    21884 projtoprocess="osi-clp"
     22046echo "$as_me:$LINENO: checking for COIN-OR package Dylp (fallback)" >&5
     22047echo $ECHO_N "checking for COIN-OR package Dylp (fallback)... $ECHO_C" >&6
     22048
     22049coin_has_dylp=notGiven
     22050DYLP_LIBS=
     22051DYLP_LIBS_INSTALLED=
     22052DYLP_CFLAGS=
     22053DYLP_CFLAGS_INSTALLED=
     22054DYLP_DATA=
     22055DYLP_DATA_INSTALLED=
     22056DYLP_PCLIBS=
     22057DYLP_PCREQUIRES=
     22058
     22059# initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     22060projtoprocess="osi-dylp"
    2188522061
    2188622062# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2192022096      # add projrequires to the front of the list of projects that have to be processed next
    2192122097      # at the same time, remove $proj from this list
    21922       projtoprocess=${projtoprocess/$proj/$projrequires}
     22098      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2192322099
    2192422100      # read DATA from $pcfile, if _DATA is still empty
    21925       if test "x$CLP_DATA" = x ; then
     22101      if test "x$DYLP_DATA" = x ; then
    2192622102        projdatadir=
    2192722103        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2192822104        eval `sh -c "$pcfilemod"`
    21929         CLP_DATA="$projdatadir"
     22105        DYLP_DATA="$projdatadir"
    2193022106      fi
    2193122107
     
    2194422120
    2194522121      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    21946       if test "x$CLP_DATA_INSTALLED" = x ; then
     22122      if test "x$DYLP_DATA_INSTALLED" = x ; then
    2194722123        projdatadir=
    2194822124        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2195122127          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2195222128        fi
    21953         CLP_DATA_INSTALLED="$projdatadir"
     22129        DYLP_DATA_INSTALLED="$projdatadir"
    2195422130      fi
    2195522131
     
    2198822164    #   replace "Cflags:" by "echo projcflags="
    2198922165    #   remove every line starting with <some word>:
    21990     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22166    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2199122167
    2199222168    # set projcflags and projlibs variables by running $pcfilemod
     22169    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2199322170    projcflags=
    2199422171    projlibs=
     22172    IFS="$save_IFS"
    2199522173    eval `sh -c "$pcfilemod"`
     22174    IFS=":"
    2199622175
    2199722176    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2199922178      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2200022179    fi
    22001     CLP_CFLAGS="$projcflags $CLP_CFLAGS"
     22180    DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
    2200222181
    2200322182    # set LIBS variable
    22004     CLP_LIBS="$projlibs $CLP_LIBS"
     22183    DYLP_LIBS="$projlibs $DYLP_LIBS"
    2200522184
    2200622185    # remember that we have processed $pcfile
     
    2203322212    #   replace "Cflags:" by "echo projcflags="
    2203422213    #   remove every line starting with <some word>:
    22035     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22214    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2203622215
    2203722216    # set projcflags and projlibs variables by running $pcfilemod
     22217    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2203822218    projcflags=
    2203922219    projlibs=
     22220    IFS="$save_IFS"
    2204022221    eval `sh -c "$pcfilemod"`
     22222    IFS=":"
    2204122223
    2204222224    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2204422226      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2204522227    fi
    22046     CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
     22228    DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED"
    2204722229
    2204822230    # set LIBS variable
    22049     CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
     22231    DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED"
    2205022232
    2205122233    # remember that we have processed $pcfile
     
    2205722239
    2205822240  # finish up
    22059   coin_has_clp=yes
     22241  coin_has_dylp=yes
    2206022242  echo "$as_me:$LINENO: result: yes" >&5
    2206122243echo "${ECHO_T}yes" >&6
    2206222244
    2206322245cat >>confdefs.h <<\_ACEOF
    22064 #define COIN_HAS_CLP 1
     22246#define COIN_HAS_DYLP 1
    2206522247_ACEOF
    2206622248
     
    2206922251  # 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),
    2207022252  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    22071   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    22072   #    everything of the form "-lname" by "libname.lib"
     22253  #    everything of the form "-lname" by "libname.lib", and
     22254  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2207322255  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2207422256  then
    22075     CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    22076     CLP_LIBS_INSTALLED=`echo " $CLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22257    DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22258    DYLP_LIBS_INSTALLED=`echo " $DYLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2207722259  fi
    2207822260
    22079 
    22080     CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
    22081     CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
    22082     CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
    22083     CBCLIB_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
    22084     CBCLIB_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    22085 
    22086     CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
    22087     CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
    22088     CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
    22089     CBCGENERIC_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
    22090     CBCGENERIC_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
    22091 
    22092 
    22093 fi
    22094 
    22095 
    22096 
    22097 if test $coin_has_clp != notGiven &&
    22098                 test $coin_has_clp != skipping; then
    22099   COIN_HAS_CLP_TRUE=
    22100   COIN_HAS_CLP_FALSE='#'
    22101 else
    22102   COIN_HAS_CLP_TRUE='#'
    22103   COIN_HAS_CLP_FALSE=
     22261  DYLP_PCREQUIRES="osi-dylp"
     22262
     22263    COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
     22264    COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
     22265    COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
     22266    COINMP_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     22267    COINMP_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     22268
     22269
     22270fi
     22271
     22272
     22273
     22274if test $coin_has_dylp != notGiven &&
     22275                test $coin_has_dylp != skipping; then
     22276  COIN_HAS_DYLP_TRUE=
     22277  COIN_HAS_DYLP_FALSE='#'
     22278else
     22279  COIN_HAS_DYLP_TRUE='#'
     22280  COIN_HAS_DYLP_FALSE=
    2210422281fi
    2210522282
     
    2210922286
    2211022287else
    22111   echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    22112 echo "${ECHO_T}$coin_has_clp" >&6
    22113 fi
    22114 
    22115 if test $coin_has_clp != skipping &&
    22116    test $coin_has_clp != notGiven ; then
     22288  echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
     22289echo "${ECHO_T}$coin_has_dylp" >&6
     22290fi
     22291
     22292if test $coin_has_dylp != skipping &&
     22293   test $coin_has_dylp != notGiven ; then
    2211722294
    2211822295cat >>confdefs.h <<\_ACEOF
    22119 #define COIN_HAS_CLP 1
     22296#define COIN_HAS_DYLP 1
    2212022297_ACEOF
    2212122298
     
    2213522312     # then remove everything of the form -xxx
    2213622313     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    22137      CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22138 
    22139        CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22140 
    22141        CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22314     DYLP_DEPENDENCIES=`echo " $DYLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22315
     22316       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2214222317
    2214322318  fi
    2214422319
    2214522320  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22146     if test -n "$CLP_CFLAGS" ; then
    22147       { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
    22148 echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
     22321    if test -n "$DYLP_CFLAGS" ; then
     22322      { echo "$as_me:$LINENO: Dylp CFLAGS are $DYLP_CFLAGS" >&5
     22323echo "$as_me: Dylp CFLAGS are $DYLP_CFLAGS" >&6;}
    2214922324    fi
    22150     if test -n "$CLP_LIBS" ; then
    22151       { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
    22152 echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
     22325    if test -n "$DYLP_LIBS" ; then
     22326      { echo "$as_me:$LINENO: Dylp LIBS   are $DYLP_LIBS" >&5
     22327echo "$as_me: Dylp LIBS   are $DYLP_LIBS" >&6;}
    2215322328    fi
    22154     if test -n "$CLP_DEPENDENCIES" ; then
    22155       { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
    22156 echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
     22329    if test -n "$DYLP_DEPENDENCIES" ; then
     22330      { echo "$as_me:$LINENO: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&5
     22331echo "$as_me: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;}
    2215722332    fi
    22158     if test -n "$CLP_DATA" ; then
    22159       { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
    22160 echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
     22333    if test -n "$DYLP_DATA" ; then
     22334      { echo "$as_me:$LINENO: Dylp DATA   is  $DYLP_DATA" >&5
     22335echo "$as_me: Dylp DATA   is  $DYLP_DATA" >&6;}
    2216122336    fi
    22162     if test -n "$CLP_CFLAGS" ; then
    22163       { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
    22164 echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
     22337    if test -n "$DYLP_PCLIBS" ; then
     22338      { echo "$as_me:$LINENO: Dylp PCLIBS are $DYLP_PCLIBS" >&5
     22339echo "$as_me: Dylp PCLIBS are $DYLP_PCLIBS" >&6;}
    2216522340    fi
    22166 
    22167       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    22168 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    22169       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    22170 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    22171       { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
    22172 echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    22173 
    22174       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    22175 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    22176       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    22177 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    22178       { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
    22179 echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     22341    if test -n "$DYLP_PCREQUIRES" ; then
     22342      { echo "$as_me:$LINENO: Dylp PCREQUIRES are $DYLP_PCREQUIRES" >&5
     22343echo "$as_me: Dylp PCREQUIRES are $DYLP_PCREQUIRES" >&6;}
     22344    fi
     22345
     22346      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     22347echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     22348      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     22349echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     22350      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     22351echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    2218022352
    2218122353  fi
     
    2218522357
    2218622358
    22187 if test $coin_has_clp != notGiven &&
    22188                 test $coin_has_clp != skipping; then
    22189   COIN_HAS_CLP_TRUE=
    22190   COIN_HAS_CLP_FALSE='#'
    22191 else
    22192   COIN_HAS_CLP_TRUE='#'
    22193   COIN_HAS_CLP_FALSE=
    22194 fi
    22195 
    22196 
    22197 
    22198 if test $coin_has_clp != yes ; then
    22199   { { echo "$as_me:$LINENO: error: \"required package Clp Unavailable.\"" >&5
    22200 echo "$as_me: error: \"required package Clp Unavailable.\"" >&2;}
    22201    { (exit 1); exit 1; }; }
    22202 fi
    22203 
    22204 echo "$as_me:$LINENO: checking for COIN-OR package Cgl" >&5
    22205 echo $ECHO_N "checking for COIN-OR package Cgl... $ECHO_C" >&6
    22206 
    22207 coin_has_cgl=notGiven
     22359if test $coin_has_dylp != notGiven &&
     22360                test $coin_has_dylp != skipping; then
     22361  COIN_HAS_DYLP_TRUE=
     22362  COIN_HAS_DYLP_FALSE='#'
     22363else
     22364  COIN_HAS_DYLP_TRUE='#'
     22365  COIN_HAS_DYLP_FALSE=
     22366fi
     22367
     22368
     22369
     22370
     22371echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY" >&5
     22372echo $ECHO_N "checking for COIN-OR package SYMPHONY... $ECHO_C" >&6
     22373
     22374coin_has_symphony=notGiven
    2220822375
    2220922376# check if user wants to skip package in any case
    2221022377if test x"$COIN_SKIP_PROJECTS" != x; then
    2221122378  for dir in $COIN_SKIP_PROJECTS; do
    22212     if test $dir = "Cgl"; then
    22213       coin_has_cgl=skipping
     22379    if test $dir = "SYMPHONY"; then
     22380      coin_has_symphony=skipping
    2221422381    fi
    2221522382  done
    2221622383fi
    2221722384
    22218 CGL_LIBS=
    22219 CGL_CFLAGS=
    22220 CGL_DATA=
    22221 
    22222 
    22223 
    22224 
    22225 
    22226 
    22227 
    22228 
     22385if test "$coin_has_symphony" != skipping; then
     22386
     22387# Check whether --with-m4_tolower(SYMPHONY) or --without-m4_tolower(SYMPHONY) was given.
     22388if test "${with_symphony+set}" = set; then
     22389  withval="$with_symphony"
     22390  if test "$withval" = no ; then
     22391       coin_has_symphony=skipping
     22392     fi
     22393
     22394fi;
     22395fi
     22396
     22397SYMPHONY_LIBS=
     22398SYMPHONY_CFLAGS=
     22399SYMPHONY_DATA=
     22400SYMPHONY_DEPENDENCIES=
     22401SYMPHONY_PCLIBS=
     22402SYMPHONY_PCREQUIRES=
     22403SYMPHONY_DATA=
    2222922404
    2223022405
     
    2224522420
    2224622421#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    22247 if test $coin_has_cgl != skipping; then
    22248 
    22249 # Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
    22250 if test "${with_cgl_lib+set}" = set; then
    22251   withval="$with_cgl_lib"
     22422if test $coin_has_symphony != skipping; then
     22423
     22424# Check whether --with-m4_tolower(SYMPHONY)-lib or --without-m4_tolower(SYMPHONY)-lib was given.
     22425if test "${with_symphony_lib+set}" = set; then
     22426  withval="$with_symphony_lib"
    2225222427  if test "$withval" = no ; then
    22253        coin_has_cgl=skipping
     22428       coin_has_symphony=skipping
    2225422429     else
    22255        coin_has_cgl=yes
    22256        CGL_LIBS="$withval"
    22257 
    22258          CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
    22259          CBCLIB_LIBS="$withval $CBCLIB_LIBS"
    22260 
    22261          CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
    22262          CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
    22263 
     22430       coin_has_symphony=yes
     22431       SYMPHONY_LIBS="$withval"
     22432       SYMPHONY_PCLIBS="$withval"
     22433
     22434         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     22435         COINMP_LIBS="$withval $COINMP_LIBS"
     22436
     22437       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     22438       if test -z "$PKG_CONFIG" ; then
     22439         SYMPHONY_LIBS_INSTALLED="$withval"
     22440         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     22441       fi
    2226422442     fi
    2226522443
     
    2226722445fi
    2226822446
    22269 if test $coin_has_cgl != skipping; then
    22270 
    22271 # Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
    22272 if test "${with_cgl_incdir+set}" = set; then
    22273   withval="$with_cgl_incdir"
     22447if test $coin_has_symphony != skipping; then
     22448
     22449# Check whether --with-m4_tolower(SYMPHONY)-incdir or --without-m4_tolower(SYMPHONY)-incdir was given.
     22450if test "${with_symphony_incdir+set}" = set; then
     22451  withval="$with_symphony_incdir"
    2227422452  if test "$withval" = no ; then
    22275        coin_has_cgl=skipping
     22453       coin_has_symphony=skipping
    2227622454     else
    22277        coin_has_cgl=yes
    22278        CGL_CFLAGS="-I`${CYGPATH_W} $withval`"
    22279        CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     22455       coin_has_symphony=yes
     22456       SYMPHONY_CFLAGS="-I`${CYGPATH_W} $withval`"
     22457       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     22458       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     22459       if test -z "$PKG_CONFIG" ; then
     22460         SYMPHONY_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS"
     22461         COINMP_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS $COINMP_CFLAGS_INSTALLED"
     22462       fi
    2228022463     fi
    2228122464
     
    2228322466fi
    2228422467
    22285 if test $coin_has_cgl != skipping; then
    22286 
    22287 # Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
    22288 if test "${with_cgl_datadir+set}" = set; then
    22289   withval="$with_cgl_datadir"
     22468if test $coin_has_symphony != skipping; then
     22469
     22470# Check whether --with-m4_tolower(SYMPHONY)-datadir or --without-m4_tolower(SYMPHONY)-datadir was given.
     22471if test "${with_symphony_datadir+set}" = set; then
     22472  withval="$with_symphony_datadir"
    2229022473  if test "$withval" = no ; then
    22291        coin_has_cgl=skipping
     22474       coin_has_symphony=skipping
    2229222475     else
    22293        coin_has_cgl=yes
    22294        CGL_DATA="$withval"
     22476       coin_has_symphony=yes
     22477       SYMPHONY_DATA="$withval"
     22478       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     22479       if test -z "$PKG_CONFIG" ; then
     22480         SYMPHONY_DATA_INSTALLED="$withval"
     22481       fi
    2229522482     fi
    2229622483
     
    2229822485fi
    2229922486
    22300 if test $coin_has_cgl = notGiven; then
     22487if test $coin_has_symphony = notGiven; then
    2230122488  if test -n "$PKG_CONFIG" ; then
    2230222489    # set search path for pkg-config
     
    2231122498
    2231222499if test -n "$PKG_CONFIG" ; then
    22313   if $PKG_CONFIG --exists "cgl"; then
    22314     CGL_VERSIONS="`$PKG_CONFIG --modversion "cgl" 2>/dev/null | tr '\n' ' '`"
    22315      cflags=`$PKG_CONFIG --cflags "cgl" 2>/dev/null`
     22500  if $PKG_CONFIG --exists "osi-sym"; then
     22501    SYMPHONY_VERSIONS=`$PKG_CONFIG --modversion "osi-sym" 2>/dev/null | tr '\n' ' '`
     22502     cflags=`$PKG_CONFIG --cflags "osi-sym" 2>/dev/null`
    2231622503    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2231722504        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2232122508      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2232222509    fi
    22323     CGL_CFLAGS="$cflags"
    22324     CGL_LIBS=`$PKG_CONFIG --libs "cgl" 2>/dev/null`
    22325     CGL_DATA=`$PKG_CONFIG --variable=datadir "cgl" 2>/dev/null`
    22326      coin_has_cgl=yes
    22327         echo "$as_me:$LINENO: result: yes: $CGL_VERSIONS" >&5
    22328 echo "${ECHO_T}yes: $CGL_VERSIONS" >&6
     22510    SYMPHONY_CFLAGS="$cflags"
     22511    SYMPHONY_LIBS=`$PKG_CONFIG --libs "osi-sym" 2>/dev/null`
     22512    SYMPHONY_DATA=`$PKG_CONFIG --variable=datadir "osi-sym" 2>/dev/null`
     22513     coin_has_symphony=yes
     22514        echo "$as_me:$LINENO: result: yes: $SYMPHONY_VERSIONS" >&5
     22515echo "${ECHO_T}yes: $SYMPHONY_VERSIONS" >&6
    2232922516
    2233022517        # adjust linker flags for (i)cl compiler
     
    2233222519        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2233322520        then
    22334           CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22521          SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2233522522        fi
    22336 
    22337         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
    22338 
    22339           CBCLIB_PCREQUIRES="cgl $CBCLIB_PCREQUIRES"
    22340           CBCLIB_CFLAGS="$CGL_CFLAGS $CBCLIB_CFLAGS"
    22341           CBCLIB_LIBS="$CGL_LIBS $CBCLIB_LIBS"
    22342 
    22343           CBCGENERIC_PCREQUIRES="cgl $CBCGENERIC_PCREQUIRES"
    22344           CBCGENERIC_CFLAGS="$CGL_CFLAGS $CBCGENERIC_CFLAGS"
    22345           CBCGENERIC_LIBS="$CGL_LIBS $CBCGENERIC_LIBS"
     22523        SYMPHONY_PCREQUIRES="osi-sym"
     22524
     22525        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     22526
     22527          COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
     22528          COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
     22529          COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
    2234622530
    2234722531
    2234822532
    2234922533  else
    22350     CGL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cgl"`
    22351       coin_has_cgl=notGiven
    22352         echo "$as_me:$LINENO: result: not given: $CGL_PKG_ERRORS" >&5
    22353 echo "${ECHO_T}not given: $CGL_PKG_ERRORS" >&6
     22534    SYMPHONY_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-sym"`
     22535      coin_has_symphony=notGiven
     22536        echo "$as_me:$LINENO: result: not given: $SYMPHONY_PKG_ERRORS" >&5
     22537echo "${ECHO_T}not given: $SYMPHONY_PKG_ERRORS" >&6
    2235422538
    2235522539  fi
    2235622540else
    22357   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&5
    22358 echo "$as_me: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&2;}
     22541  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&5
     22542echo "$as_me: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&2;}
    2235922543   { (exit 1); exit 1; }; }
    2236022544fi
     
    2237122555echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2237222556
    22373 echo "$as_me:$LINENO: checking for COIN-OR package Cgl (fallback)" >&5
    22374 echo $ECHO_N "checking for COIN-OR package Cgl (fallback)... $ECHO_C" >&6
    22375 
    22376 coin_has_cgl=notGiven
    22377 CGL_LIBS=
    22378 CGL_LIBS_INSTALLED=
    22379 CGL_CFLAGS=
    22380 CGL_CFLAGS_INSTALLED=
    22381 CGL_DATA=
    22382 CGL_DATA_INSTALLED=
    22383 
    22384 # initial list of dependencies is "cgl", but we need to filter out version number specifications (= x, <= x, >= x)
    22385 projtoprocess="cgl"
     22557echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY (fallback)" >&5
     22558echo $ECHO_N "checking for COIN-OR package SYMPHONY (fallback)... $ECHO_C" >&6
     22559
     22560coin_has_symphony=notGiven
     22561SYMPHONY_LIBS=
     22562SYMPHONY_LIBS_INSTALLED=
     22563SYMPHONY_CFLAGS=
     22564SYMPHONY_CFLAGS_INSTALLED=
     22565SYMPHONY_DATA=
     22566SYMPHONY_DATA_INSTALLED=
     22567SYMPHONY_PCLIBS=
     22568SYMPHONY_PCREQUIRES=
     22569
     22570# initial list of dependencies is "osi-sym", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     22571projtoprocess="osi-sym"
    2238622572
    2238722573# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2242122607      # add projrequires to the front of the list of projects that have to be processed next
    2242222608      # at the same time, remove $proj from this list
    22423       projtoprocess=${projtoprocess/$proj/$projrequires}
     22609      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2242422610
    2242522611      # read DATA from $pcfile, if _DATA is still empty
    22426       if test "x$CGL_DATA" = x ; then
     22612      if test "x$SYMPHONY_DATA" = x ; then
    2242722613        projdatadir=
    2242822614        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2242922615        eval `sh -c "$pcfilemod"`
    22430         CGL_DATA="$projdatadir"
     22616        SYMPHONY_DATA="$projdatadir"
    2243122617      fi
    2243222618
     
    2244522631
    2244622632      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    22447       if test "x$CGL_DATA_INSTALLED" = x ; then
     22633      if test "x$SYMPHONY_DATA_INSTALLED" = x ; then
    2244822634        projdatadir=
    2244922635        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2245222638          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2245322639        fi
    22454         CGL_DATA_INSTALLED="$projdatadir"
     22640        SYMPHONY_DATA_INSTALLED="$projdatadir"
    2245522641      fi
    2245622642
     
    2248922675    #   replace "Cflags:" by "echo projcflags="
    2249022676    #   remove every line starting with <some word>:
    22491     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22677    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2249222678
    2249322679    # set projcflags and projlibs variables by running $pcfilemod
     22680    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2249422681    projcflags=
    2249522682    projlibs=
     22683    IFS="$save_IFS"
    2249622684    eval `sh -c "$pcfilemod"`
     22685    IFS=":"
    2249722686
    2249822687    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2250022689      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2250122690    fi
    22502     CGL_CFLAGS="$projcflags $CGL_CFLAGS"
     22691    SYMPHONY_CFLAGS="$projcflags $SYMPHONY_CFLAGS"
    2250322692
    2250422693    # set LIBS variable
    22505     CGL_LIBS="$projlibs $CGL_LIBS"
     22694    SYMPHONY_LIBS="$projlibs $SYMPHONY_LIBS"
    2250622695
    2250722696    # remember that we have processed $pcfile
     
    2253422723    #   replace "Cflags:" by "echo projcflags="
    2253522724    #   remove every line starting with <some word>:
    22536     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22725    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2253722726
    2253822727    # set projcflags and projlibs variables by running $pcfilemod
     22728    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2253922729    projcflags=
    2254022730    projlibs=
     22731    IFS="$save_IFS"
    2254122732    eval `sh -c "$pcfilemod"`
     22733    IFS=":"
    2254222734
    2254322735    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2254522737      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2254622738    fi
    22547     CGL_CFLAGS_INSTALLED="$projcflags $CGL_CFLAGS_INSTALLED"
     22739    SYMPHONY_CFLAGS_INSTALLED="$projcflags $SYMPHONY_CFLAGS_INSTALLED"
    2254822740
    2254922741    # set LIBS variable
    22550     CGL_LIBS_INSTALLED="$projlibs $CGL_LIBS_INSTALLED"
     22742    SYMPHONY_LIBS_INSTALLED="$projlibs $SYMPHONY_LIBS_INSTALLED"
    2255122743
    2255222744    # remember that we have processed $pcfile
     
    2255822750
    2255922751  # finish up
    22560   coin_has_cgl=yes
     22752  coin_has_symphony=yes
    2256122753  echo "$as_me:$LINENO: result: yes" >&5
    2256222754echo "${ECHO_T}yes" >&6
    2256322755
    2256422756cat >>confdefs.h <<\_ACEOF
    22565 #define COIN_HAS_CGL 1
     22757#define COIN_HAS_SYMPHONY 1
    2256622758_ACEOF
    2256722759
     
    2257022762  # 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),
    2257122763  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    22572   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    22573   #    everything of the form "-lname" by "libname.lib"
     22764  #    everything of the form "-lname" by "libname.lib", and
     22765  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2257422766  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2257522767  then
    22576     CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    22577     CGL_LIBS_INSTALLED=`echo " $CGL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22768    SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22769    SYMPHONY_LIBS_INSTALLED=`echo " $SYMPHONY_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2257822770  fi
    2257922771
    22580 
    22581     CBCLIB_PCREQUIRES="cgl $CBCLIB_PCREQUIRES"
    22582     CBCLIB_CFLAGS="$CGL_CFLAGS $CBCLIB_CFLAGS"
    22583     CBCLIB_LIBS="$CGL_LIBS $CBCLIB_LIBS"
    22584     CBCLIB_CFLAGS_INSTALLED="$CGL_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
    22585     CBCLIB_LIBS_INSTALLED="$CGL_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    22586 
    22587     CBCGENERIC_PCREQUIRES="cgl $CBCGENERIC_PCREQUIRES"
    22588     CBCGENERIC_CFLAGS="$CGL_CFLAGS $CBCGENERIC_CFLAGS"
    22589     CBCGENERIC_LIBS="$CGL_LIBS $CBCGENERIC_LIBS"
    22590     CBCGENERIC_CFLAGS_INSTALLED="$CGL_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
    22591     CBCGENERIC_LIBS_INSTALLED="$CGL_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
    22592 
    22593 
    22594 fi
    22595 
    22596 
    22597 
    22598 if test $coin_has_cgl != notGiven &&
    22599                 test $coin_has_cgl != skipping; then
    22600   COIN_HAS_CGL_TRUE=
    22601   COIN_HAS_CGL_FALSE='#'
    22602 else
    22603   COIN_HAS_CGL_TRUE='#'
    22604   COIN_HAS_CGL_FALSE=
     22772  SYMPHONY_PCREQUIRES="osi-sym"
     22773
     22774    COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
     22775    COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
     22776    COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
     22777    COINMP_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     22778    COINMP_LIBS_INSTALLED="$SYMPHONY_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     22779
     22780
     22781fi
     22782
     22783
     22784
     22785if test $coin_has_symphony != notGiven &&
     22786                test $coin_has_symphony != skipping; then
     22787  COIN_HAS_SYMPHONY_TRUE=
     22788  COIN_HAS_SYMPHONY_FALSE='#'
     22789else
     22790  COIN_HAS_SYMPHONY_TRUE='#'
     22791  COIN_HAS_SYMPHONY_FALSE=
    2260522792fi
    2260622793
     
    2261022797
    2261122798else
    22612   echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
    22613 echo "${ECHO_T}$coin_has_cgl" >&6
    22614 fi
    22615 
    22616 if test $coin_has_cgl != skipping &&
    22617    test $coin_has_cgl != notGiven ; then
     22799  echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
     22800echo "${ECHO_T}$coin_has_symphony" >&6
     22801fi
     22802
     22803if test $coin_has_symphony != skipping &&
     22804   test $coin_has_symphony != notGiven ; then
    2261822805
    2261922806cat >>confdefs.h <<\_ACEOF
    22620 #define COIN_HAS_CGL 1
     22807#define COIN_HAS_SYMPHONY 1
    2262122808_ACEOF
    2262222809
     
    2263622823     # then remove everything of the form -xxx
    2263722824     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    22638      CGL_DEPENDENCIES=`echo " $CGL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22639 
    22640        CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22641 
    22642        CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22825     SYMPHONY_DEPENDENCIES=`echo " $SYMPHONY_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22826
     22827       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2264322828
    2264422829  fi
    2264522830
    2264622831  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22647     if test -n "$CGL_CFLAGS" ; then
    22648       { echo "$as_me:$LINENO: Cgl CFLAGS are $CGL_CFLAGS" >&5
    22649 echo "$as_me: Cgl CFLAGS are $CGL_CFLAGS" >&6;}
     22832    if test -n "$SYMPHONY_CFLAGS" ; then
     22833      { echo "$as_me:$LINENO: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&5
     22834echo "$as_me: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&6;}
    2265022835    fi
    22651     if test -n "$CGL_LIBS" ; then
    22652       { echo "$as_me:$LINENO: Cgl LIBS   are $CGL_LIBS" >&5
    22653 echo "$as_me: Cgl LIBS   are $CGL_LIBS" >&6;}
     22836    if test -n "$SYMPHONY_LIBS" ; then
     22837      { echo "$as_me:$LINENO: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&5
     22838echo "$as_me: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&6;}
    2265422839    fi
    22655     if test -n "$CGL_DEPENDENCIES" ; then
    22656       { echo "$as_me:$LINENO: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&5
    22657 echo "$as_me: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&6;}
     22840    if test -n "$SYMPHONY_DEPENDENCIES" ; then
     22841      { echo "$as_me:$LINENO: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&5
     22842echo "$as_me: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&6;}
    2265822843    fi
    22659     if test -n "$CGL_DATA" ; then
    22660       { echo "$as_me:$LINENO: Cgl DATA   is  $CGL_DATA" >&5
    22661 echo "$as_me: Cgl DATA   is  $CGL_DATA" >&6;}
     22844    if test -n "$SYMPHONY_DATA" ; then
     22845      { echo "$as_me:$LINENO: SYMPHONY DATA   is  $SYMPHONY_DATA" >&5
     22846echo "$as_me: SYMPHONY DATA   is  $SYMPHONY_DATA" >&6;}
    2266222847    fi
    22663     if test -n "$CGL_CFLAGS" ; then
    22664       { echo "$as_me:$LINENO: Cgl CFLAGS are $CGL_CFLAGS" >&5
    22665 echo "$as_me: Cgl CFLAGS are $CGL_CFLAGS" >&6;}
     22848    if test -n "$SYMPHONY_PCLIBS" ; then
     22849      { echo "$as_me:$LINENO: SYMPHONY PCLIBS are $SYMPHONY_PCLIBS" >&5
     22850echo "$as_me: SYMPHONY PCLIBS are $SYMPHONY_PCLIBS" >&6;}
    2266622851    fi
    22667 
    22668       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    22669 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    22670       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    22671 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    22672       { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
    22673 echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    22674 
    22675       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    22676 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    22677       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    22678 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    22679       { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
    22680 echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     22852    if test -n "$SYMPHONY_PCREQUIRES" ; then
     22853      { echo "$as_me:$LINENO: SYMPHONY PCREQUIRES are $SYMPHONY_PCREQUIRES" >&5
     22854echo "$as_me: SYMPHONY PCREQUIRES are $SYMPHONY_PCREQUIRES" >&6;}
     22855    fi
     22856
     22857      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     22858echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     22859      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     22860echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     22861      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     22862echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    2268122863
    2268222864  fi
     
    2268622868
    2268722869
    22688 if test $coin_has_cgl != notGiven &&
    22689                 test $coin_has_cgl != skipping; then
    22690   COIN_HAS_CGL_TRUE=
    22691   COIN_HAS_CGL_FALSE='#'
    22692 else
    22693   COIN_HAS_CGL_TRUE='#'
    22694   COIN_HAS_CGL_FALSE=
    22695 fi
    22696 
    22697 
    22698 
    22699 if test $coin_has_cgl != yes ; then
    22700   { { echo "$as_me:$LINENO: error: \"required package Cgl Unavailable.\"" >&5
    22701 echo "$as_me: error: \"required package Cgl Unavailable.\"" >&2;}
    22702    { (exit 1); exit 1; }; }
    22703 fi
    22704 
    22705 echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
    22706 echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
    22707 
    22708 coin_has_cbc=notGiven
     22870if test $coin_has_symphony != notGiven &&
     22871                test $coin_has_symphony != skipping; then
     22872  COIN_HAS_SYMPHONY_TRUE=
     22873  COIN_HAS_SYMPHONY_FALSE='#'
     22874else
     22875  COIN_HAS_SYMPHONY_TRUE='#'
     22876  COIN_HAS_SYMPHONY_FALSE=
     22877fi
     22878
     22879
     22880
     22881
     22882echo "$as_me:$LINENO: checking for COIN-OR package Vol" >&5
     22883echo $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6
     22884
     22885coin_has_vol=notGiven
    2270922886
    2271022887# check if user wants to skip package in any case
    2271122888if test x"$COIN_SKIP_PROJECTS" != x; then
    2271222889  for dir in $COIN_SKIP_PROJECTS; do
    22713     if test $dir = "Cbc"; then
    22714       coin_has_cbc=skipping
     22890    if test $dir = "Vol"; then
     22891      coin_has_vol=skipping
    2271522892    fi
    2271622893  done
    2271722894fi
    2271822895
    22719 CBC_LIBS=
    22720 CBC_CFLAGS=
    22721 CBC_DATA=
     22896if test "$coin_has_vol" != skipping; then
     22897
     22898# Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
     22899if test "${with_vol+set}" = set; then
     22900  withval="$with_vol"
     22901  if test "$withval" = no ; then
     22902       coin_has_vol=skipping
     22903     fi
     22904
     22905fi;
     22906fi
     22907
     22908VOL_LIBS=
     22909VOL_CFLAGS=
     22910VOL_DATA=
     22911VOL_DEPENDENCIES=
     22912VOL_PCLIBS=
     22913VOL_PCREQUIRES=
     22914VOL_DATA=
    2272222915
    2272322916
     
    2273822931
    2273922932#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    22740 if test $coin_has_cbc != skipping; then
    22741 
    22742 # Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
    22743 if test "${with_cbc_lib+set}" = set; then
    22744   withval="$with_cbc_lib"
     22933if test $coin_has_vol != skipping; then
     22934
     22935# Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
     22936if test "${with_vol_lib+set}" = set; then
     22937  withval="$with_vol_lib"
    2274522938  if test "$withval" = no ; then
    22746        coin_has_cbc=skipping
     22939       coin_has_vol=skipping
    2274722940     else
    22748        coin_has_cbc=yes
    22749        CBC_LIBS="$withval"
     22941       coin_has_vol=yes
     22942       VOL_LIBS="$withval"
     22943       VOL_PCLIBS="$withval"
    2275022944
    2275122945         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    2275222946         COINMP_LIBS="$withval $COINMP_LIBS"
    2275322947
     22948       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     22949       if test -z "$PKG_CONFIG" ; then
     22950         VOL_LIBS_INSTALLED="$withval"
     22951         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     22952       fi
    2275422953     fi
    2275522954
     
    2275722956fi
    2275822957
    22759 if test $coin_has_cbc != skipping; then
    22760 
    22761 # Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
    22762 if test "${with_cbc_incdir+set}" = set; then
    22763   withval="$with_cbc_incdir"
     22958if test $coin_has_vol != skipping; then
     22959
     22960# Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
     22961if test "${with_vol_incdir+set}" = set; then
     22962  withval="$with_vol_incdir"
    2276422963  if test "$withval" = no ; then
    22765        coin_has_cbc=skipping
     22964       coin_has_vol=skipping
    2276622965     else
    22767        coin_has_cbc=yes
    22768        CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
    22769        COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     22966       coin_has_vol=yes
     22967       VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
     22968       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     22969       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     22970       if test -z "$PKG_CONFIG" ; then
     22971         VOL_CFLAGS_INSTALLED="$VOL_CFLAGS"
     22972         COINMP_CFLAGS_INSTALLED="$VOL_CFLAGS $COINMP_CFLAGS_INSTALLED"
     22973       fi
    2277022974     fi
    2277122975
     
    2277322977fi
    2277422978
    22775 if test $coin_has_cbc != skipping; then
    22776 
    22777 # Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
    22778 if test "${with_cbc_datadir+set}" = set; then
    22779   withval="$with_cbc_datadir"
     22979if test $coin_has_vol != skipping; then
     22980
     22981# Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
     22982if test "${with_vol_datadir+set}" = set; then
     22983  withval="$with_vol_datadir"
    2278022984  if test "$withval" = no ; then
    22781        coin_has_cbc=skipping
     22985       coin_has_vol=skipping
    2278222986     else
    22783        coin_has_cbc=yes
    22784        CBC_DATA="$withval"
     22987       coin_has_vol=yes
     22988       VOL_DATA="$withval"
     22989       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     22990       if test -z "$PKG_CONFIG" ; then
     22991         VOL_DATA_INSTALLED="$withval"
     22992       fi
    2278522993     fi
    2278622994
     
    2278822996fi
    2278922997
    22790 if test $coin_has_cbc = notGiven; then
     22998if test $coin_has_vol = notGiven; then
    2279122999  if test -n "$PKG_CONFIG" ; then
    2279223000    # set search path for pkg-config
     
    2280123009
    2280223010if test -n "$PKG_CONFIG" ; then
    22803   if $PKG_CONFIG --exists "osi-cbc"; then
    22804     CBC_VERSIONS="`$PKG_CONFIG --modversion "osi-cbc" 2>/dev/null | tr '\n' ' '`"
    22805      cflags=`$PKG_CONFIG --cflags "osi-cbc" 2>/dev/null`
     23011  if $PKG_CONFIG --exists "osi-vol"; then
     23012    VOL_VERSIONS=`$PKG_CONFIG --modversion "osi-vol" 2>/dev/null | tr '\n' ' '`
     23013     cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
    2280623014    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2280723015        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2281123019      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2281223020    fi
    22813     CBC_CFLAGS="$cflags"
    22814     CBC_LIBS=`$PKG_CONFIG --libs "osi-cbc" 2>/dev/null`
    22815     CBC_DATA=`$PKG_CONFIG --variable=datadir "osi-cbc" 2>/dev/null`
    22816      coin_has_cbc=yes
    22817         echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
    22818 echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
     23021    VOL_CFLAGS="$cflags"
     23022    VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
     23023    VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
     23024     coin_has_vol=yes
     23025        echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
     23026echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
    2281923027
    2282023028        # adjust linker flags for (i)cl compiler
     
    2282223030        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2282323031        then
    22824           CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23032          VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2282523033        fi
     23034        VOL_PCREQUIRES="osi-vol"
    2282623035
    2282723036        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    2282823037
    22829           COINMP_PCREQUIRES="osi-cbc $COINMP_PCREQUIRES"
    22830           COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
    22831           COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
     23038          COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
     23039          COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
     23040          COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
    2283223041
    2283323042
    2283423043
    2283523044  else
    22836     CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cbc"`
    22837       coin_has_cbc=notGiven
    22838         echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
    22839 echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
     23045    VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-vol"`
     23046      coin_has_vol=notGiven
     23047        echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
     23048echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
    2284023049
    2284123050  fi
    2284223051else
    22843   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
    22844 echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
     23052  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
     23053echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
    2284523054   { (exit 1); exit 1; }; }
    2284623055fi
     
    2285723066echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2285823067
    22859 echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
    22860 echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
    22861 
    22862 coin_has_cbc=notGiven
    22863 CBC_LIBS=
    22864 CBC_LIBS_INSTALLED=
    22865 CBC_CFLAGS=
    22866 CBC_CFLAGS_INSTALLED=
    22867 CBC_DATA=
    22868 CBC_DATA_INSTALLED=
    22869 
    22870 # initial list of dependencies is "osi-cbc", but we need to filter out version number specifications (= x, <= x, >= x)
    22871 projtoprocess="osi-cbc"
     23068echo "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5
     23069echo $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6
     23070
     23071coin_has_vol=notGiven
     23072VOL_LIBS=
     23073VOL_LIBS_INSTALLED=
     23074VOL_CFLAGS=
     23075VOL_CFLAGS_INSTALLED=
     23076VOL_DATA=
     23077VOL_DATA_INSTALLED=
     23078VOL_PCLIBS=
     23079VOL_PCREQUIRES=
     23080
     23081# initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     23082projtoprocess="osi-vol"
    2287223083
    2287323084# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2290723118      # add projrequires to the front of the list of projects that have to be processed next
    2290823119      # at the same time, remove $proj from this list
    22909       projtoprocess=${projtoprocess/$proj/$projrequires}
     23120      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2291023121
    2291123122      # read DATA from $pcfile, if _DATA is still empty
    22912       if test "x$CBC_DATA" = x ; then
     23123      if test "x$VOL_DATA" = x ; then
    2291323124        projdatadir=
    2291423125        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2291523126        eval `sh -c "$pcfilemod"`
    22916         CBC_DATA="$projdatadir"
     23127        VOL_DATA="$projdatadir"
    2291723128      fi
    2291823129
     
    2293123142
    2293223143      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    22933       if test "x$CBC_DATA_INSTALLED" = x ; then
     23144      if test "x$VOL_DATA_INSTALLED" = x ; then
    2293423145        projdatadir=
    2293523146        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2293823149          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2293923150        fi
    22940         CBC_DATA_INSTALLED="$projdatadir"
     23151        VOL_DATA_INSTALLED="$projdatadir"
    2294123152      fi
    2294223153
     
    2297523186    #   replace "Cflags:" by "echo projcflags="
    2297623187    #   remove every line starting with <some word>:
    22977     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23188    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2297823189
    2297923190    # set projcflags and projlibs variables by running $pcfilemod
     23191    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2298023192    projcflags=
    2298123193    projlibs=
     23194    IFS="$save_IFS"
    2298223195    eval `sh -c "$pcfilemod"`
     23196    IFS=":"
    2298323197
    2298423198    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2298623200      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2298723201    fi
    22988     CBC_CFLAGS="$projcflags $CBC_CFLAGS"
     23202    VOL_CFLAGS="$projcflags $VOL_CFLAGS"
    2298923203
    2299023204    # set LIBS variable
    22991     CBC_LIBS="$projlibs $CBC_LIBS"
     23205    VOL_LIBS="$projlibs $VOL_LIBS"
    2299223206
    2299323207    # remember that we have processed $pcfile
     
    2302023234    #   replace "Cflags:" by "echo projcflags="
    2302123235    #   remove every line starting with <some word>:
    23022     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23236    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2302323237
    2302423238    # set projcflags and projlibs variables by running $pcfilemod
     23239    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2302523240    projcflags=
    2302623241    projlibs=
     23242    IFS="$save_IFS"
    2302723243    eval `sh -c "$pcfilemod"`
     23244    IFS=":"
    2302823245
    2302923246    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2303123248      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2303223249    fi
    23033     CBC_CFLAGS_INSTALLED="$projcflags $CBC_CFLAGS_INSTALLED"
     23250    VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED"
    2303423251
    2303523252    # set LIBS variable
    23036     CBC_LIBS_INSTALLED="$projlibs $CBC_LIBS_INSTALLED"
     23253    VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED"
    2303723254
    2303823255    # remember that we have processed $pcfile
     
    2304423261
    2304523262  # finish up
    23046   coin_has_cbc=yes
     23263  coin_has_vol=yes
    2304723264  echo "$as_me:$LINENO: result: yes" >&5
    2304823265echo "${ECHO_T}yes" >&6
    2304923266
    2305023267cat >>confdefs.h <<\_ACEOF
    23051 #define COIN_HAS_CBC 1
     23268#define COIN_HAS_VOL 1
    2305223269_ACEOF
    2305323270
     
    2305623273  # 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),
    2305723274  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    23058   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    23059   #    everything of the form "-lname" by "libname.lib"
     23275  #    everything of the form "-lname" by "libname.lib", and
     23276  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2306023277  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2306123278  then
    23062     CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    23063     CBC_LIBS_INSTALLED=`echo " $CBC_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23279    VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23280    VOL_LIBS_INSTALLED=`echo " $VOL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2306423281  fi
    2306523282
    23066 
    23067     COINMP_PCREQUIRES="osi-cbc $COINMP_PCREQUIRES"
    23068     COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
    23069     COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
    23070     COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    23071     COINMP_LIBS_INSTALLED="$CBC_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    23072 
    23073 
    23074 fi
    23075 
    23076 
    23077 
    23078 if test $coin_has_cbc != notGiven &&
    23079                 test $coin_has_cbc != skipping; then
    23080   COIN_HAS_CBC_TRUE=
    23081   COIN_HAS_CBC_FALSE='#'
    23082 else
    23083   COIN_HAS_CBC_TRUE='#'
    23084   COIN_HAS_CBC_FALSE=
     23283  VOL_PCREQUIRES="osi-vol"
     23284
     23285    COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
     23286    COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
     23287    COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
     23288    COINMP_CFLAGS_INSTALLED="$VOL_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     23289    COINMP_LIBS_INSTALLED="$VOL_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     23290
     23291
     23292fi
     23293
     23294
     23295
     23296if test $coin_has_vol != notGiven &&
     23297                test $coin_has_vol != skipping; then
     23298  COIN_HAS_VOL_TRUE=
     23299  COIN_HAS_VOL_FALSE='#'
     23300else
     23301  COIN_HAS_VOL_TRUE='#'
     23302  COIN_HAS_VOL_FALSE=
    2308523303fi
    2308623304
     
    2309023308
    2309123309else
    23092   echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
    23093 echo "${ECHO_T}$coin_has_cbc" >&6
    23094 fi
    23095 
    23096 if test $coin_has_cbc != skipping &&
    23097    test $coin_has_cbc != notGiven ; then
     23310  echo "$as_me:$LINENO: result: $coin_has_vol" >&5
     23311echo "${ECHO_T}$coin_has_vol" >&6
     23312fi
     23313
     23314if test $coin_has_vol != skipping &&
     23315   test $coin_has_vol != notGiven ; then
    2309823316
    2309923317cat >>confdefs.h <<\_ACEOF
    23100 #define COIN_HAS_CBC 1
     23318#define COIN_HAS_VOL 1
    2310123319_ACEOF
    2310223320
     
    2311623334     # then remove everything of the form -xxx
    2311723335     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    23118      CBC_DEPENDENCIES=`echo " $CBC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23336     VOL_DEPENDENCIES=`echo " $VOL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2311923337
    2312023338       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     
    2312323341
    2312423342  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23125     if test -n "$CBC_CFLAGS" ; then
    23126       { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
    23127 echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
     23343    if test -n "$VOL_CFLAGS" ; then
     23344      { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     23345echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    2312823346    fi
    23129     if test -n "$CBC_LIBS" ; then
    23130       { echo "$as_me:$LINENO: Cbc LIBS   are $CBC_LIBS" >&5
    23131 echo "$as_me: Cbc LIBS   are $CBC_LIBS" >&6;}
     23347    if test -n "$VOL_LIBS" ; then
     23348      { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
     23349echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    2313223350    fi
    23133     if test -n "$CBC_DEPENDENCIES" ; then
    23134       { echo "$as_me:$LINENO: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&5
    23135 echo "$as_me: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&6;}
     23351    if test -n "$VOL_DEPENDENCIES" ; then
     23352      { echo "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5
     23353echo "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;}
    2313623354    fi
    23137     if test -n "$CBC_DATA" ; then
    23138       { echo "$as_me:$LINENO: Cbc DATA   is  $CBC_DATA" >&5
    23139 echo "$as_me: Cbc DATA   is  $CBC_DATA" >&6;}
     23355    if test -n "$VOL_DATA" ; then
     23356      { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
     23357echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    2314023358    fi
    23141     if test -n "$CBC_CFLAGS" ; then
    23142       { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
    23143 echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
     23359    if test -n "$VOL_PCLIBS" ; then
     23360      { echo "$as_me:$LINENO: Vol PCLIBS are $VOL_PCLIBS" >&5
     23361echo "$as_me: Vol PCLIBS are $VOL_PCLIBS" >&6;}
     23362    fi
     23363    if test -n "$VOL_PCREQUIRES" ; then
     23364      { echo "$as_me:$LINENO: Vol PCREQUIRES are $VOL_PCREQUIRES" >&5
     23365echo "$as_me: Vol PCREQUIRES are $VOL_PCREQUIRES" >&6;}
    2314423366    fi
    2314523367
     
    2315723379
    2315823380
    23159 if test $coin_has_cbc != notGiven &&
    23160                 test $coin_has_cbc != skipping; then
    23161   COIN_HAS_CBC_TRUE=
    23162   COIN_HAS_CBC_FALSE='#'
    23163 else
    23164   COIN_HAS_CBC_TRUE='#'
    23165   COIN_HAS_CBC_FALSE=
    23166 fi
    23167 
    23168 
    23169 
    23170 if test $coin_has_cbc != yes; then
    23171   { { echo "$as_me:$LINENO: error: \"Required package Cbc unavailable.\"" >&5
    23172 echo "$as_me: error: \"Required package Cbc unavailable.\"" >&2;}
    23173    { (exit 1); exit 1; }; }
    23174 fi
    23175 
    23176 # Attempt to use some other solver in cbc. No point in reenabling this until
    23177 # cbc again works with a solver other than clp. Right now, it doesn't.
    23178 # -- lh, 110112 --
    23179 
    23180 # AC_MSG_CHECKING(for cbc default solver)
    23181 # AC_ARG_WITH([cbc-default-solver],
    23182 #   AC_HELP_STRING([--with-cbc-default-solver],
    23183 #       [specify default solver for Cbc in lower case letters (if not given, clp
    23184 #        is assumed)]),
    23185 #   [cbc_default_solver=$with_val],
    23186 #   [cbc_default_solver=clp])
    23187 # AC_MSG_RESULT($cbc_default_solver)
    23188 
    23189 # case $cbc_default_solver in
    23190 #   clp)
    23191 #     AC_DEFINE([CBC_DEFAULT_SOLVER],"clp",
    23192 #               [Define to the name of the default solver to be used in CBC in small letters])
    23193 #     ;;
    23194 #   dylp)
    23195 #     AC_DEFINE([CBC_DEFAULT_SOLVER],"dylp")
    23196 #     ;;
    23197 #   *)
    23198 #     AC_MSG_ERROR([Unknown solver $cbc_default_solver chosen as CBC's default solver])
    23199 #     ;;
    23200 # esac
    23201 
    23202 #############################################################################
    23203 #                            Alternative solvers                            #
    23204 #############################################################################
    23205 
    23206 # But see comment above: cbc won't work with any solver other than clp.
    23207 # -- lh, 110112 --
    23208 
    23209 # COIN solvers:
    23210 
    23211 echo "$as_me:$LINENO: checking for COIN-OR package Dylp" >&5
    23212 echo $ECHO_N "checking for COIN-OR package Dylp... $ECHO_C" >&6
    23213 
    23214 coin_has_dylp=notGiven
     23381if test $coin_has_vol != notGiven &&
     23382                test $coin_has_vol != skipping; then
     23383  COIN_HAS_VOL_TRUE=
     23384  COIN_HAS_VOL_FALSE='#'
     23385else
     23386  COIN_HAS_VOL_TRUE='#'
     23387  COIN_HAS_VOL_FALSE=
     23388fi
     23389
     23390
     23391
     23392
     23393# Third party solvers:
     23394
     23395echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
     23396echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
     23397
     23398coin_has_cpx=notGiven
    2321523399
    2321623400# check if user wants to skip package in any case
    2321723401if test x"$COIN_SKIP_PROJECTS" != x; then
    2321823402  for dir in $COIN_SKIP_PROJECTS; do
    23219     if test $dir = "Dylp"; then
    23220       coin_has_dylp=skipping
     23403    if test $dir = "Cpx"; then
     23404      coin_has_cpx=skipping
    2322123405    fi
    2322223406  done
    2322323407fi
    2322423408
    23225 DYLP_LIBS=
    23226 DYLP_CFLAGS=
    23227 DYLP_DATA=
     23409if test "$coin_has_cpx" != skipping; then
     23410
     23411# Check whether --with-m4_tolower(Cpx) or --without-m4_tolower(Cpx) was given.
     23412if test "${with_cpx+set}" = set; then
     23413  withval="$with_cpx"
     23414  if test "$withval" = no ; then
     23415       coin_has_cpx=skipping
     23416     fi
     23417
     23418fi;
     23419fi
     23420
     23421CPX_LIBS=
     23422CPX_CFLAGS=
     23423CPX_DATA=
     23424CPX_DEPENDENCIES=
     23425CPX_PCLIBS=
     23426CPX_PCREQUIRES=
     23427CPX_DATA=
    2322823428
    2322923429
     
    2324423444
    2324523445#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    23246 if test $coin_has_dylp != skipping; then
    23247 
    23248 # Check whether --with-m4_tolower(Dylp)-lib or --without-m4_tolower(Dylp)-lib was given.
    23249 if test "${with_dylp_lib+set}" = set; then
    23250   withval="$with_dylp_lib"
     23446if test $coin_has_cpx != skipping; then
     23447
     23448# Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
     23449if test "${with_cpx_lib+set}" = set; then
     23450  withval="$with_cpx_lib"
    2325123451  if test "$withval" = no ; then
    23252        coin_has_dylp=skipping
     23452       coin_has_cpx=skipping
    2325323453     else
    23254        coin_has_dylp=yes
    23255        DYLP_LIBS="$withval"
     23454       coin_has_cpx=yes
     23455       CPX_LIBS="$withval"
     23456       CPX_PCLIBS="$withval"
    2325623457
    2325723458         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    2325823459         COINMP_LIBS="$withval $COINMP_LIBS"
    2325923460
     23461       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23462       if test -z "$PKG_CONFIG" ; then
     23463         CPX_LIBS_INSTALLED="$withval"
     23464         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     23465       fi
    2326023466     fi
    2326123467
     
    2326323469fi
    2326423470
    23265 if test $coin_has_dylp != skipping; then
    23266 
    23267 # Check whether --with-m4_tolower(Dylp)-incdir or --without-m4_tolower(Dylp)-incdir was given.
    23268 if test "${with_dylp_incdir+set}" = set; then
    23269   withval="$with_dylp_incdir"
     23471if test $coin_has_cpx != skipping; then
     23472
     23473# Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
     23474if test "${with_cpx_incdir+set}" = set; then
     23475  withval="$with_cpx_incdir"
    2327023476  if test "$withval" = no ; then
    23271        coin_has_dylp=skipping
     23477       coin_has_cpx=skipping
    2327223478     else
    23273        coin_has_dylp=yes
    23274        DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
    23275        COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     23479       coin_has_cpx=yes
     23480       CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     23481       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     23482       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23483       if test -z "$PKG_CONFIG" ; then
     23484         CPX_CFLAGS_INSTALLED="$CPX_CFLAGS"
     23485         COINMP_CFLAGS_INSTALLED="$CPX_CFLAGS $COINMP_CFLAGS_INSTALLED"
     23486       fi
    2327623487     fi
    2327723488
     
    2327923490fi
    2328023491
    23281 if test $coin_has_dylp != skipping; then
    23282 
    23283 # Check whether --with-m4_tolower(Dylp)-datadir or --without-m4_tolower(Dylp)-datadir was given.
    23284 if test "${with_dylp_datadir+set}" = set; then
    23285   withval="$with_dylp_datadir"
     23492if test $coin_has_cpx != skipping; then
     23493
     23494# Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
     23495if test "${with_cpx_datadir+set}" = set; then
     23496  withval="$with_cpx_datadir"
    2328623497  if test "$withval" = no ; then
    23287        coin_has_dylp=skipping
     23498       coin_has_cpx=skipping
    2328823499     else
    23289        coin_has_dylp=yes
    23290        DYLP_DATA="$withval"
     23500       coin_has_cpx=yes
     23501       CPX_DATA="$withval"
     23502       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23503       if test -z "$PKG_CONFIG" ; then
     23504         CPX_DATA_INSTALLED="$withval"
     23505       fi
    2329123506     fi
    2329223507
     
    2329423509fi
    2329523510
    23296 if test $coin_has_dylp = notGiven; then
     23511if test $coin_has_cpx = notGiven; then
    2329723512  if test -n "$PKG_CONFIG" ; then
    2329823513    # set search path for pkg-config
     
    2330723522
    2330823523if test -n "$PKG_CONFIG" ; then
    23309   if $PKG_CONFIG --exists "osi-dylp"; then
    23310     DYLP_VERSIONS="`$PKG_CONFIG --modversion "osi-dylp" 2>/dev/null | tr '\n' ' '`"
    23311      cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
     23524  if $PKG_CONFIG --exists "osi-cpx"; then
     23525    CPX_VERSIONS=`$PKG_CONFIG --modversion "osi-cpx" 2>/dev/null | tr '\n' ' '`
     23526     cflags=`$PKG_CONFIG --cflags "osi-cpx" 2>/dev/null`
    2331223527    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2331323528        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2331723532      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2331823533    fi
    23319     DYLP_CFLAGS="$cflags"
    23320     DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
    23321     DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
    23322      coin_has_dylp=yes
    23323         echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
    23324 echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
     23534    CPX_CFLAGS="$cflags"
     23535    CPX_LIBS=`$PKG_CONFIG --libs "osi-cpx" 2>/dev/null`
     23536    CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cpx" 2>/dev/null`
     23537     coin_has_cpx=yes
     23538        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
     23539echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
    2332523540
    2332623541        # adjust linker flags for (i)cl compiler
     
    2332823543        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2332923544        then
    23330           DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23545          CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2333123546        fi
     23547        CPX_PCREQUIRES="osi-cpx"
    2333223548
    2333323549        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    2333423550
    23335           COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
    23336           COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
    23337           COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
     23551          COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
     23552          COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
     23553          COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
    2333823554
    2333923555
    2334023556
    2334123557  else
    23342     DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-dylp"`
    23343       coin_has_dylp=notGiven
    23344         echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
    23345 echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
     23558    CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cpx"`
     23559      coin_has_cpx=notGiven
     23560        echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
     23561echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
    2334623562
    2334723563  fi
    2334823564else
    23349   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&5
    23350 echo "$as_me: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&2;}
     23565  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
     23566echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
    2335123567   { (exit 1); exit 1; }; }
    2335223568fi
     
    2336323579echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2336423580
    23365 echo "$as_me:$LINENO: checking for COIN-OR package Dylp (fallback)" >&5
    23366 echo $ECHO_N "checking for COIN-OR package Dylp (fallback)... $ECHO_C" >&6
    23367 
    23368 coin_has_dylp=notGiven
    23369 DYLP_LIBS=
    23370 DYLP_LIBS_INSTALLED=
    23371 DYLP_CFLAGS=
    23372 DYLP_CFLAGS_INSTALLED=
    23373 DYLP_DATA=
    23374 DYLP_DATA_INSTALLED=
    23375 
    23376 # initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x)
    23377 projtoprocess="osi-dylp"
     23581echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
     23582echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
     23583
     23584coin_has_cpx=notGiven
     23585CPX_LIBS=
     23586CPX_LIBS_INSTALLED=
     23587CPX_CFLAGS=
     23588CPX_CFLAGS_INSTALLED=
     23589CPX_DATA=
     23590CPX_DATA_INSTALLED=
     23591CPX_PCLIBS=
     23592CPX_PCREQUIRES=
     23593
     23594# initial list of dependencies is "osi-cpx", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     23595projtoprocess="osi-cpx"
    2337823596
    2337923597# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2341323631      # add projrequires to the front of the list of projects that have to be processed next
    2341423632      # at the same time, remove $proj from this list
    23415       projtoprocess=${projtoprocess/$proj/$projrequires}
     23633      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2341623634
    2341723635      # read DATA from $pcfile, if _DATA is still empty
    23418       if test "x$DYLP_DATA" = x ; then
     23636      if test "x$CPX_DATA" = x ; then
    2341923637        projdatadir=
    2342023638        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2342123639        eval `sh -c "$pcfilemod"`
    23422         DYLP_DATA="$projdatadir"
     23640        CPX_DATA="$projdatadir"
    2342323641      fi
    2342423642
     
    2343723655
    2343823656      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    23439       if test "x$DYLP_DATA_INSTALLED" = x ; then
     23657      if test "x$CPX_DATA_INSTALLED" = x ; then
    2344023658        projdatadir=
    2344123659        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2344423662          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2344523663        fi
    23446         DYLP_DATA_INSTALLED="$projdatadir"
     23664        CPX_DATA_INSTALLED="$projdatadir"
    2344723665      fi
    2344823666
     
    2348123699    #   replace "Cflags:" by "echo projcflags="
    2348223700    #   remove every line starting with <some word>:
    23483     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23701    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2348423702
    2348523703    # set projcflags and projlibs variables by running $pcfilemod
     23704    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2348623705    projcflags=
    2348723706    projlibs=
     23707    IFS="$save_IFS"
    2348823708    eval `sh -c "$pcfilemod"`
     23709    IFS=":"
    2348923710
    2349023711    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2349223713      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2349323714    fi
    23494     DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
     23715    CPX_CFLAGS="$projcflags $CPX_CFLAGS"
    2349523716
    2349623717    # set LIBS variable
    23497     DYLP_LIBS="$projlibs $DYLP_LIBS"
     23718    CPX_LIBS="$projlibs $CPX_LIBS"
    2349823719
    2349923720    # remember that we have processed $pcfile
     
    2352623747    #   replace "Cflags:" by "echo projcflags="
    2352723748    #   remove every line starting with <some word>:
    23528     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23749    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2352923750
    2353023751    # set projcflags and projlibs variables by running $pcfilemod
     23752    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2353123753    projcflags=
    2353223754    projlibs=
     23755    IFS="$save_IFS"
    2353323756    eval `sh -c "$pcfilemod"`
     23757    IFS=":"
    2353423758
    2353523759    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2353723761      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2353823762    fi
    23539     DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED"
     23763    CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
    2354023764
    2354123765    # set LIBS variable
    23542     DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED"
     23766    CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
    2354323767
    2354423768    # remember that we have processed $pcfile
     
    2355023774
    2355123775  # finish up
    23552   coin_has_dylp=yes
     23776  coin_has_cpx=yes
    2355323777  echo "$as_me:$LINENO: result: yes" >&5
    2355423778echo "${ECHO_T}yes" >&6
    2355523779
    2355623780cat >>confdefs.h <<\_ACEOF
    23557 #define COIN_HAS_DYLP 1
     23781#define COIN_HAS_CPX 1
    2355823782_ACEOF
    2355923783
     
    2356223786  # 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),
    2356323787  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    23564   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    23565   #    everything of the form "-lname" by "libname.lib"
     23788  #    everything of the form "-lname" by "libname.lib", and
     23789  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2356623790  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2356723791  then
    23568     DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    23569     DYLP_LIBS_INSTALLED=`echo " $DYLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23792    CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23793    CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2357023794  fi
    2357123795
    23572 
    23573     COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
    23574     COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
    23575     COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
    23576     COINMP_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    23577     COINMP_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    23578 
    23579 
    23580 fi
    23581 
    23582 
    23583 
    23584 if test $coin_has_dylp != notGiven &&
    23585                 test $coin_has_dylp != skipping; then
    23586   COIN_HAS_DYLP_TRUE=
    23587   COIN_HAS_DYLP_FALSE='#'
    23588 else
    23589   COIN_HAS_DYLP_TRUE='#'
    23590   COIN_HAS_DYLP_FALSE=
     23796  CPX_PCREQUIRES="osi-cpx"
     23797
     23798    COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
     23799    COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
     23800    COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
     23801    COINMP_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     23802    COINMP_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     23803
     23804
     23805fi
     23806
     23807
     23808
     23809if test $coin_has_cpx != notGiven &&
     23810                test $coin_has_cpx != skipping; then
     23811  COIN_HAS_CPX_TRUE=
     23812  COIN_HAS_CPX_FALSE='#'
     23813else
     23814  COIN_HAS_CPX_TRUE='#'
     23815  COIN_HAS_CPX_FALSE=
    2359123816fi
    2359223817
     
    2359623821
    2359723822else
    23598   echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    23599 echo "${ECHO_T}$coin_has_dylp" >&6
    23600 fi
    23601 
    23602 if test $coin_has_dylp != skipping &&
    23603    test $coin_has_dylp != notGiven ; then
     23823  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     23824echo "${ECHO_T}$coin_has_cpx" >&6
     23825fi
     23826
     23827if test $coin_has_cpx != skipping &&
     23828   test $coin_has_cpx != notGiven ; then
    2360423829
    2360523830cat >>confdefs.h <<\_ACEOF
    23606 #define COIN_HAS_DYLP 1
     23831#define COIN_HAS_CPX 1
    2360723832_ACEOF
    2360823833
     
    2362223847     # then remove everything of the form -xxx
    2362323848     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    23624      DYLP_DEPENDENCIES=`echo " $DYLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23849     CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2362523850
    2362623851       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     
    2362923854
    2363023855  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23631     if test -n "$DYLP_CFLAGS" ; then
    23632       { echo "$as_me:$LINENO: Dylp CFLAGS are $DYLP_CFLAGS" >&5
    23633 echo "$as_me: Dylp CFLAGS are $DYLP_CFLAGS" >&6;}
     23856    if test -n "$CPX_CFLAGS" ; then
     23857      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23858echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
    2363423859    fi
    23635     if test -n "$DYLP_LIBS" ; then
    23636       { echo "$as_me:$LINENO: Dylp LIBS   are $DYLP_LIBS" >&5
    23637 echo "$as_me: Dylp LIBS   are $DYLP_LIBS" >&6;}
     23860    if test -n "$CPX_LIBS" ; then
     23861      { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
     23862echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
    2363823863    fi
    23639     if test -n "$DYLP_DEPENDENCIES" ; then
    23640       { echo "$as_me:$LINENO: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&5
    23641 echo "$as_me: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;}
     23864    if test -n "$CPX_DEPENDENCIES" ; then
     23865      { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
     23866echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
    2364223867    fi
    23643     if test -n "$DYLP_DATA" ; then
    23644       { echo "$as_me:$LINENO: Dylp DATA   is  $DYLP_DATA" >&5
    23645 echo "$as_me: Dylp DATA   is  $DYLP_DATA" >&6;}
     23868    if test -n "$CPX_DATA" ; then
     23869      { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
     23870echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
    2364623871    fi
    23647     if test -n "$DYLP_CFLAGS" ; then
    23648       { echo "$as_me:$LINENO: Dylp CFLAGS are $DYLP_CFLAGS" >&5
    23649 echo "$as_me: Dylp CFLAGS are $DYLP_CFLAGS" >&6;}
     23872    if test -n "$CPX_PCLIBS" ; then
     23873      { echo "$as_me:$LINENO: Cpx PCLIBS are $CPX_PCLIBS" >&5
     23874echo "$as_me: Cpx PCLIBS are $CPX_PCLIBS" >&6;}
     23875    fi
     23876    if test -n "$CPX_PCREQUIRES" ; then
     23877      { echo "$as_me:$LINENO: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&5
     23878echo "$as_me: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&6;}
    2365023879    fi
    2365123880
     
    2366323892
    2366423893
    23665 if test $coin_has_dylp != notGiven &&
    23666                 test $coin_has_dylp != skipping; then
    23667   COIN_HAS_DYLP_TRUE=
    23668   COIN_HAS_DYLP_FALSE='#'
    23669 else
    23670   COIN_HAS_DYLP_TRUE='#'
    23671   COIN_HAS_DYLP_FALSE=
    23672 fi
    23673 
    23674 
    23675 
    23676 
    23677 echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY" >&5
    23678 echo $ECHO_N "checking for COIN-OR package SYMPHONY... $ECHO_C" >&6
    23679 
    23680 coin_has_symphony=notGiven
     23894if test $coin_has_cpx != notGiven &&
     23895                test $coin_has_cpx != skipping; then
     23896  COIN_HAS_CPX_TRUE=
     23897  COIN_HAS_CPX_FALSE='#'
     23898else
     23899  COIN_HAS_CPX_TRUE='#'
     23900  COIN_HAS_CPX_FALSE=
     23901fi
     23902
     23903
     23904
     23905
     23906echo "$as_me:$LINENO: checking for COIN-OR package Fmp" >&5
     23907echo $ECHO_N "checking for COIN-OR package Fmp... $ECHO_C" >&6
     23908
     23909coin_has_fmp=notGiven
    2368123910
    2368223911# check if user wants to skip package in any case
    2368323912if test x"$COIN_SKIP_PROJECTS" != x; then
    2368423913  for dir in $COIN_SKIP_PROJECTS; do
    23685     if test $dir = "SYMPHONY"; then
    23686       coin_has_symphony=skipping
     23914    if test $dir = "Fmp"; then
     23915      coin_has_fmp=skipping
    2368723916    fi
    2368823917  done
    2368923918fi
    2369023919
    23691 SYMPHONY_LIBS=
    23692 SYMPHONY_CFLAGS=
    23693 SYMPHONY_DATA=
     23920if test "$coin_has_fmp" != skipping; then
     23921
     23922# Check whether --with-m4_tolower(Fmp) or --without-m4_tolower(Fmp) was given.
     23923if test "${with_fmp+set}" = set; then
     23924  withval="$with_fmp"
     23925  if test "$withval" = no ; then
     23926       coin_has_fmp=skipping
     23927     fi
     23928
     23929fi;
     23930fi
     23931
     23932FMP_LIBS=
     23933FMP_CFLAGS=
     23934FMP_DATA=
     23935FMP_DEPENDENCIES=
     23936FMP_PCLIBS=
     23937FMP_PCREQUIRES=
     23938FMP_DATA=
    2369423939
    2369523940
     
    2371023955
    2371123956#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    23712 if test $coin_has_symphony != skipping; then
    23713 
    23714 # Check whether --with-m4_tolower(SYMPHONY)-lib or --without-m4_tolower(SYMPHONY)-lib was given.
    23715 if test "${with_symphony_lib+set}" = set; then
    23716   withval="$with_symphony_lib"
     23957if test $coin_has_fmp != skipping; then
     23958
     23959# Check whether --with-m4_tolower(Fmp)-lib or --without-m4_tolower(Fmp)-lib was given.
     23960if test "${with_fmp_lib+set}" = set; then
     23961  withval="$with_fmp_lib"
    2371723962  if test "$withval" = no ; then
    23718        coin_has_symphony=skipping
     23963       coin_has_fmp=skipping
    2371923964     else
    23720        coin_has_symphony=yes
    23721        SYMPHONY_LIBS="$withval"
     23965       coin_has_fmp=yes
     23966       FMP_LIBS="$withval"
     23967       FMP_PCLIBS="$withval"
    2372223968
    2372323969         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    2372423970         COINMP_LIBS="$withval $COINMP_LIBS"
    2372523971
     23972       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23973       if test -z "$PKG_CONFIG" ; then
     23974         FMP_LIBS_INSTALLED="$withval"
     23975         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     23976       fi
    2372623977     fi
    2372723978
     
    2372923980fi
    2373023981
    23731 if test $coin_has_symphony != skipping; then
    23732 
    23733 # Check whether --with-m4_tolower(SYMPHONY)-incdir or --without-m4_tolower(SYMPHONY)-incdir was given.
    23734 if test "${with_symphony_incdir+set}" = set; then
    23735   withval="$with_symphony_incdir"
     23982if test $coin_has_fmp != skipping; then
     23983
     23984# Check whether --with-m4_tolower(Fmp)-incdir or --without-m4_tolower(Fmp)-incdir was given.
     23985if test "${with_fmp_incdir+set}" = set; then
     23986  withval="$with_fmp_incdir"
    2373623987  if test "$withval" = no ; then
    23737        coin_has_symphony=skipping
     23988       coin_has_fmp=skipping
    2373823989     else
    23739        coin_has_symphony=yes
    23740        SYMPHONY_CFLAGS="-I`${CYGPATH_W} $withval`"
    23741        COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     23990       coin_has_fmp=yes
     23991       FMP_CFLAGS="-I`${CYGPATH_W} $withval`"
     23992       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     23993       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23994       if test -z "$PKG_CONFIG" ; then
     23995         FMP_CFLAGS_INSTALLED="$FMP_CFLAGS"
     23996         COINMP_CFLAGS_INSTALLED="$FMP_CFLAGS $COINMP_CFLAGS_INSTALLED"
     23997       fi
    2374223998     fi
    2374323999
     
    2374524001fi
    2374624002
    23747 if test $coin_has_symphony != skipping; then
    23748 
    23749 # Check whether --with-m4_tolower(SYMPHONY)-datadir or --without-m4_tolower(SYMPHONY)-datadir was given.
    23750 if test "${with_symphony_datadir+set}" = set; then
    23751   withval="$with_symphony_datadir"
     24003if test $coin_has_fmp != skipping; then
     24004
     24005# Check whether --with-m4_tolower(Fmp)-datadir or --without-m4_tolower(Fmp)-datadir was given.
     24006if test "${with_fmp_datadir+set}" = set; then
     24007  withval="$with_fmp_datadir"
    2375224008  if test "$withval" = no ; then
    23753        coin_has_symphony=skipping
     24009       coin_has_fmp=skipping
    2375424010     else
    23755        coin_has_symphony=yes
    23756        SYMPHONY_DATA="$withval"
     24011       coin_has_fmp=yes
     24012       FMP_DATA="$withval"
     24013       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     24014       if test -z "$PKG_CONFIG" ; then
     24015         FMP_DATA_INSTALLED="$withval"
     24016       fi
    2375724017     fi
    2375824018
     
    2376024020fi
    2376124021
    23762 if test $coin_has_symphony = notGiven; then
     24022if test $coin_has_fmp = notGiven; then
    2376324023  if test -n "$PKG_CONFIG" ; then
    2376424024    # set search path for pkg-config
     
    2377324033
    2377424034if test -n "$PKG_CONFIG" ; then
    23775   if $PKG_CONFIG --exists "osi-sym"; then
    23776     SYMPHONY_VERSIONS="`$PKG_CONFIG --modversion "osi-sym" 2>/dev/null | tr '\n' ' '`"
    23777      cflags=`$PKG_CONFIG --cflags "osi-sym" 2>/dev/null`
     24035  if $PKG_CONFIG --exists "osi-fmp"; then
     24036    FMP_VERSIONS=`$PKG_CONFIG --modversion "osi-fmp" 2>/dev/null | tr '\n' ' '`
     24037     cflags=`$PKG_CONFIG --cflags "osi-fmp" 2>/dev/null`
    2377824038    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2377924039        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2378324043      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2378424044    fi
    23785     SYMPHONY_CFLAGS="$cflags"
    23786     SYMPHONY_LIBS=`$PKG_CONFIG --libs "osi-sym" 2>/dev/null`
    23787     SYMPHONY_DATA=`$PKG_CONFIG --variable=datadir "osi-sym" 2>/dev/null`
    23788      coin_has_symphony=yes
    23789         echo "$as_me:$LINENO: result: yes: $SYMPHONY_VERSIONS" >&5
    23790 echo "${ECHO_T}yes: $SYMPHONY_VERSIONS" >&6
     24045    FMP_CFLAGS="$cflags"
     24046    FMP_LIBS=`$PKG_CONFIG --libs "osi-fmp" 2>/dev/null`
     24047    FMP_DATA=`$PKG_CONFIG --variable=datadir "osi-fmp" 2>/dev/null`
     24048     coin_has_fmp=yes
     24049        echo "$as_me:$LINENO: result: yes: $FMP_VERSIONS" >&5
     24050echo "${ECHO_T}yes: $FMP_VERSIONS" >&6
    2379124051
    2379224052        # adjust linker flags for (i)cl compiler
     
    2379424054        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2379524055        then
    23796           SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24056          FMP_LIBS=`echo " $FMP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2379724057        fi
     24058        FMP_PCREQUIRES="osi-fmp"
    2379824059
    2379924060        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    2380024061
    23801           COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
    23802           COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
    23803           COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
     24062          COINMP_PCREQUIRES="osi-fmp $COINMP_PCREQUIRES"
     24063          COINMP_CFLAGS="$FMP_CFLAGS $COINMP_CFLAGS"
     24064          COINMP_LIBS="$FMP_LIBS $COINMP_LIBS"
    2380424065
    2380524066
    2380624067
    2380724068  else
    23808     SYMPHONY_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-sym"`
    23809       coin_has_symphony=notGiven
    23810         echo "$as_me:$LINENO: result: not given: $SYMPHONY_PKG_ERRORS" >&5
    23811 echo "${ECHO_T}not given: $SYMPHONY_PKG_ERRORS" >&6
     24069    FMP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-fmp"`
     24070      coin_has_fmp=notGiven
     24071        echo "$as_me:$LINENO: result: not given: $FMP_PKG_ERRORS" >&5
     24072echo "${ECHO_T}not given: $FMP_PKG_ERRORS" >&6
    2381224073
    2381324074  fi
    2381424075else
    23815   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&5
    23816 echo "$as_me: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&2;}
     24076  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Fmp without pkg-config\"" >&5
     24077echo "$as_me: error: \"Cannot check for existance of module Fmp without pkg-config\"" >&2;}
    2381724078   { (exit 1); exit 1; }; }
    2381824079fi
     
    2382924090echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2383024091
    23831 echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY (fallback)" >&5
    23832 echo $ECHO_N "checking for COIN-OR package SYMPHONY (fallback)... $ECHO_C" >&6
    23833 
    23834 coin_has_symphony=notGiven
    23835 SYMPHONY_LIBS=
    23836 SYMPHONY_LIBS_INSTALLED=
    23837 SYMPHONY_CFLAGS=
    23838 SYMPHONY_CFLAGS_INSTALLED=
    23839 SYMPHONY_DATA=
    23840 SYMPHONY_DATA_INSTALLED=
    23841 
    23842 # initial list of dependencies is "osi-sym", but we need to filter out version number specifications (= x, <= x, >= x)
    23843 projtoprocess="osi-sym"
     24092echo "$as_me:$LINENO: checking for COIN-OR package Fmp (fallback)" >&5
     24093echo $ECHO_N "checking for COIN-OR package Fmp (fallback)... $ECHO_C" >&6
     24094
     24095coin_has_fmp=notGiven
     24096FMP_LIBS=
     24097FMP_LIBS_INSTALLED=
     24098FMP_CFLAGS=
     24099FMP_CFLAGS_INSTALLED=
     24100FMP_DATA=
     24101FMP_DATA_INSTALLED=
     24102FMP_PCLIBS=
     24103FMP_PCREQUIRES=
     24104
     24105# initial list of dependencies is "osi-fmp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     24106projtoprocess="osi-fmp"
    2384424107
    2384524108# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2387924142      # add projrequires to the front of the list of projects that have to be processed next
    2388024143      # at the same time, remove $proj from this list
    23881       projtoprocess=${projtoprocess/$proj/$projrequires}
     24144      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2388224145
    2388324146      # read DATA from $pcfile, if _DATA is still empty
    23884       if test "x$SYMPHONY_DATA" = x ; then
     24147      if test "x$FMP_DATA" = x ; then
    2388524148        projdatadir=
    2388624149        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2388724150        eval `sh -c "$pcfilemod"`
    23888         SYMPHONY_DATA="$projdatadir"
     24151        FMP_DATA="$projdatadir"
    2388924152      fi
    2389024153
     
    2390324166
    2390424167      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    23905       if test "x$SYMPHONY_DATA_INSTALLED" = x ; then
     24168      if test "x$FMP_DATA_INSTALLED" = x ; then
    2390624169        projdatadir=
    2390724170        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2391024173          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2391124174        fi
    23912         SYMPHONY_DATA_INSTALLED="$projdatadir"
     24175        FMP_DATA_INSTALLED="$projdatadir"
    2391324176      fi
    2391424177
     
    2394724210    #   replace "Cflags:" by "echo projcflags="
    2394824211    #   remove every line starting with <some word>:
    23949     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24212    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2395024213
    2395124214    # set projcflags and projlibs variables by running $pcfilemod
     24215    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2395224216    projcflags=
    2395324217    projlibs=
     24218    IFS="$save_IFS"
    2395424219    eval `sh -c "$pcfilemod"`
     24220    IFS=":"
    2395524221
    2395624222    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2395824224      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2395924225    fi
    23960     SYMPHONY_CFLAGS="$projcflags $SYMPHONY_CFLAGS"
     24226    FMP_CFLAGS="$projcflags $FMP_CFLAGS"
    2396124227
    2396224228    # set LIBS variable
    23963     SYMPHONY_LIBS="$projlibs $SYMPHONY_LIBS"
     24229    FMP_LIBS="$projlibs $FMP_LIBS"
    2396424230
    2396524231    # remember that we have processed $pcfile
     
    2399224258    #   replace "Cflags:" by "echo projcflags="
    2399324259    #   remove every line starting with <some word>:
    23994     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24260    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2399524261
    2399624262    # set projcflags and projlibs variables by running $pcfilemod
     24263    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2399724264    projcflags=
    2399824265    projlibs=
     24266    IFS="$save_IFS"
    2399924267    eval `sh -c "$pcfilemod"`
     24268    IFS=":"
    2400024269
    2400124270    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2400324272      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2400424273    fi
    24005     SYMPHONY_CFLAGS_INSTALLED="$projcflags $SYMPHONY_CFLAGS_INSTALLED"
     24274    FMP_CFLAGS_INSTALLED="$projcflags $FMP_CFLAGS_INSTALLED"
    2400624275
    2400724276    # set LIBS variable
    24008     SYMPHONY_LIBS_INSTALLED="$projlibs $SYMPHONY_LIBS_INSTALLED"
     24277    FMP_LIBS_INSTALLED="$projlibs $FMP_LIBS_INSTALLED"
    2400924278
    2401024279    # remember that we have processed $pcfile
     
    2401624285
    2401724286  # finish up
    24018   coin_has_symphony=yes
     24287  coin_has_fmp=yes
    2401924288  echo "$as_me:$LINENO: result: yes" >&5
    2402024289echo "${ECHO_T}yes" >&6
    2402124290
    2402224291cat >>confdefs.h <<\_ACEOF
    24023 #define COIN_HAS_SYMPHONY 1
     24292#define COIN_HAS_FMP 1
    2402424293_ACEOF
    2402524294
     
    2402824297  # 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),
    2402924298  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    24030   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    24031   #    everything of the form "-lname" by "libname.lib"
     24299  #    everything of the form "-lname" by "libname.lib", and
     24300  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2403224301  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2403324302  then
    24034     SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    24035     SYMPHONY_LIBS_INSTALLED=`echo " $SYMPHONY_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     24303    FMP_LIBS=`echo " $FMP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24304    FMP_LIBS_INSTALLED=`echo " $FMP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2403624305  fi
    2403724306
    24038 
    24039     COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
    24040     COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
    24041     COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
    24042     COINMP_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    24043     COINMP_LIBS_INSTALLED="$SYMPHONY_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    24044 
    24045 
    24046 fi
    24047 
    24048 
    24049 
    24050 if test $coin_has_symphony != notGiven &&
    24051                 test $coin_has_symphony != skipping; then
    24052   COIN_HAS_SYMPHONY_TRUE=
    24053   COIN_HAS_SYMPHONY_FALSE='#'
    24054 else
    24055   COIN_HAS_SYMPHONY_TRUE='#'
    24056   COIN_HAS_SYMPHONY_FALSE=
     24307  FMP_PCREQUIRES="osi-fmp"
     24308
     24309    COINMP_PCREQUIRES="osi-fmp $COINMP_PCREQUIRES"
     24310    COINMP_CFLAGS="$FMP_CFLAGS $COINMP_CFLAGS"
     24311    COINMP_LIBS="$FMP_LIBS $COINMP_LIBS"
     24312    COINMP_CFLAGS_INSTALLED="$FMP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     24313    COINMP_LIBS_INSTALLED="$FMP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     24314
     24315
     24316fi
     24317
     24318
     24319
     24320if test $coin_has_fmp != notGiven &&
     24321                test $coin_has_fmp != skipping; then
     24322  COIN_HAS_FMP_TRUE=
     24323  COIN_HAS_FMP_FALSE='#'
     24324else
     24325  COIN_HAS_FMP_TRUE='#'
     24326  COIN_HAS_FMP_FALSE=
    2405724327fi
    2405824328
     
    2406224332
    2406324333else
    24064   echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
    24065 echo "${ECHO_T}$coin_has_symphony" >&6
    24066 fi
    24067 
    24068 if test $coin_has_symphony != skipping &&
    24069    test $coin_has_symphony != notGiven ; then
     24334  echo "$as_me:$LINENO: result: $coin_has_fmp" >&5
     24335echo "${ECHO_T}$coin_has_fmp" >&6
     24336fi
     24337
     24338if test $coin_has_fmp != skipping &&
     24339   test $coin_has_fmp != notGiven ; then
    2407024340
    2407124341cat >>confdefs.h <<\_ACEOF
    24072 #define COIN_HAS_SYMPHONY 1
     24342#define COIN_HAS_FMP 1
    2407324343_ACEOF
    2407424344
     
    2408824358     # then remove everything of the form -xxx
    2408924359     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    24090      SYMPHONY_DEPENDENCIES=`echo " $SYMPHONY_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24360     FMP_DEPENDENCIES=`echo " $FMP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2409124361
    2409224362       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     
    2409524365
    2409624366  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24097     if test -n "$SYMPHONY_CFLAGS" ; then
    24098       { echo "$as_me:$LINENO: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&5
    24099 echo "$as_me: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&6;}
     24367    if test -n "$FMP_CFLAGS" ; then
     24368      { echo "$as_me:$LINENO: Fmp CFLAGS are $FMP_CFLAGS" >&5
     24369echo "$as_me: Fmp CFLAGS are $FMP_CFLAGS" >&6;}
    2410024370    fi
    24101     if test -n "$SYMPHONY_LIBS" ; then
    24102       { echo "$as_me:$LINENO: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&5
    24103 echo "$as_me: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&6;}
     24371    if test -n "$FMP_LIBS" ; then
     24372      { echo "$as_me:$LINENO: Fmp LIBS   are $FMP_LIBS" >&5
     24373echo "$as_me: Fmp LIBS   are $FMP_LIBS" >&6;}
    2410424374    fi
    24105     if test -n "$SYMPHONY_DEPENDENCIES" ; then
    24106       { echo "$as_me:$LINENO: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&5
    24107 echo "$as_me: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&6;}
     24375    if test -n "$FMP_DEPENDENCIES" ; then
     24376      { echo "$as_me:$LINENO: Fmp DEPENDENCIES are $FMP_DEPENDENCIES" >&5
     24377echo "$as_me: Fmp DEPENDENCIES are $FMP_DEPENDENCIES" >&6;}
    2410824378    fi
    24109     if test -n "$SYMPHONY_DATA" ; then
    24110       { echo "$as_me:$LINENO: SYMPHONY DATA   is  $SYMPHONY_DATA" >&5
    24111 echo "$as_me: SYMPHONY DATA   is  $SYMPHONY_DATA" >&6;}
     24379    if test -n "$FMP_DATA" ; then
     24380      { echo "$as_me:$LINENO: Fmp DATA   is  $FMP_DATA" >&5
     24381echo "$as_me: Fmp DATA   is  $FMP_DATA" >&6;}
    2411224382    fi
    24113     if test -n "$SYMPHONY_CFLAGS" ; then
    24114       { echo "$as_me:$LINENO: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&5
    24115 echo "$as_me: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&6;}
     24383    if test -n "$FMP_PCLIBS" ; then
     24384      { echo "$as_me:$LINENO: Fmp PCLIBS are $FMP_PCLIBS" >&5
     24385echo "$as_me: Fmp PCLIBS are $FMP_PCLIBS" >&6;}
     24386    fi
     24387    if test -n "$FMP_PCREQUIRES" ; then
     24388      { echo "$as_me:$LINENO: Fmp PCREQUIRES are $FMP_PCREQUIRES" >&5
     24389echo "$as_me: Fmp PCREQUIRES are $FMP_PCREQUIRES" >&6;}
    2411624390    fi
    2411724391
     
    2412924403
    2413024404
    24131 if test $coin_has_symphony != notGiven &&
    24132                 test $coin_has_symphony != skipping; then
    24133   COIN_HAS_SYMPHONY_TRUE=
    24134   COIN_HAS_SYMPHONY_FALSE='#'
    24135 else
    24136   COIN_HAS_SYMPHONY_TRUE='#'
    24137   COIN_HAS_SYMPHONY_FALSE=
    24138 fi
    24139 
    24140 
    24141 
    24142 
    24143 echo "$as_me:$LINENO: checking for COIN-OR package Vol" >&5
    24144 echo $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6
    24145 
    24146 coin_has_vol=notGiven
     24405if test $coin_has_fmp != notGiven &&
     24406                test $coin_has_fmp != skipping; then
     24407  COIN_HAS_FMP_TRUE=
     24408  COIN_HAS_FMP_FALSE='#'
     24409else
     24410  COIN_HAS_FMP_TRUE='#'
     24411  COIN_HAS_FMP_FALSE=
     24412fi
     24413
     24414
     24415
     24416
     24417echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
     24418echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
     24419
     24420coin_has_glpk=notGiven
    2414724421
    2414824422# check if user wants to skip package in any case
    2414924423if test x"$COIN_SKIP_PROJECTS" != x; then
    2415024424  for dir in $COIN_SKIP_PROJECTS; do
    24151     if test $dir = "Vol"; then
    24152       coin_has_vol=skipping
     24425    if test $dir = "Glpk"; then
     24426      coin_has_glpk=skipping
    2415324427    fi
    2415424428  done
    2415524429fi
    2415624430
    24157 VOL_LIBS=
    24158 VOL_CFLAGS=
    24159 VOL_DATA=
     24431if test "$coin_has_glpk" != skipping; then
     24432
     24433# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
     24434if test "${with_glpk+set}" = set; then
     24435  withval="$with_glpk"
     24436  if test "$withval" = no ; then
     24437       coin_has_glpk=skipping
     24438     fi
     24439
     24440fi;
     24441fi
     24442
     24443GLPK_LIBS=
     24444GLPK_CFLAGS=
     24445GLPK_DATA=
     24446GLPK_DEPENDENCIES=
     24447GLPK_PCLIBS=
     24448GLPK_PCREQUIRES=
     24449GLPK_DATA=
    2416024450
    2416124451
     
    2417624466
    2417724467#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    24178 if test $coin_has_vol != skipping; then
    24179 
    24180 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
    24181 if test "${with_vol_lib+set}" = set; then
    24182   withval="$with_vol_lib"
     24468if test $coin_has_glpk != skipping; then
     24469
     24470# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
     24471if test "${with_glpk_lib+set}" = set; then
     24472  withval="$with_glpk_lib"
    2418324473  if test "$withval" = no ; then
    24184        coin_has_vol=skipping
     24474       coin_has_glpk=skipping
    2418524475     else
    24186        coin_has_vol=yes
    24187        VOL_LIBS="$withval"
     24476       coin_has_glpk=yes
     24477       GLPK_LIBS="$withval"
     24478       GLPK_PCLIBS="$withval"
    2418824479
    2418924480         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    2419024481         COINMP_LIBS="$withval $COINMP_LIBS"
    2419124482
     24483       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     24484       if test -z "$PKG_CONFIG" ; then
     24485         GLPK_LIBS_INSTALLED="$withval"
     24486         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     24487       fi
    2419224488     fi
    2419324489
     
    2419524491fi
    2419624492
    24197 if test $coin_has_vol != skipping; then
    24198 
    24199 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
    24200 if test "${with_vol_incdir+set}" = set; then
    24201   withval="$with_vol_incdir"
     24493if test $coin_has_glpk != skipping; then
     24494
     24495# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
     24496if test "${with_glpk_incdir+set}" = set; then
     24497  withval="$with_glpk_incdir"
    2420224498  if test "$withval" = no ; then
    24203        coin_has_vol=skipping
     24499       coin_has_glpk=skipping
    2420424500     else
    24205        coin_has_vol=yes
    24206        VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
    24207        COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     24501       coin_has_glpk=yes
     24502       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
     24503       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     24504       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     24505       if test -z "$PKG_CONFIG" ; then
     24506         GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
     24507         COINMP_CFLAGS_INSTALLED="$GLPK_CFLAGS $COINMP_CFLAGS_INSTALLED"
     24508       fi
    2420824509     fi
    2420924510
     
    2421124512fi
    2421224513
    24213 if test $coin_has_vol != skipping; then
    24214 
    24215 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
    24216 if test "${with_vol_datadir+set}" = set; then
    24217   withval="$with_vol_datadir"
     24514if test $coin_has_glpk != skipping; then
     24515
     24516# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
     24517if test "${with_glpk_datadir+set}" = set; then
     24518  withval="$with_glpk_datadir"
    2421824519  if test "$withval" = no ; then
    24219        coin_has_vol=skipping
     24520       coin_has_glpk=skipping
    2422024521     else
    24221        coin_has_vol=yes
    24222        VOL_DATA="$withval"
     24522       coin_has_glpk=yes
     24523       GLPK_DATA="$withval"
     24524       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     24525       if test -z "$PKG_CONFIG" ; then
     24526         GLPK_DATA_INSTALLED="$withval"
     24527       fi
    2422324528     fi
    2422424529
     
    2422624531fi
    2422724532
    24228 if test $coin_has_vol = notGiven; then
     24533if test $coin_has_glpk = notGiven; then
    2422924534  if test -n "$PKG_CONFIG" ; then
    2423024535    # set search path for pkg-config
     
    2423924544
    2424024545if test -n "$PKG_CONFIG" ; then
    24241   if $PKG_CONFIG --exists "osi-vol"; then
    24242     VOL_VERSIONS="`$PKG_CONFIG --modversion "osi-vol" 2>/dev/null | tr '\n' ' '`"
    24243      cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
     24546  if $PKG_CONFIG --exists "osi-glpk"; then
     24547    GLPK_VERSIONS=`$PKG_CONFIG --modversion "osi-glpk" 2>/dev/null | tr '\n' ' '`
     24548     cflags=`$PKG_CONFIG --cflags "osi-glpk" 2>/dev/null`
    2424424549    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2424524550        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2424924554      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2425024555    fi
    24251     VOL_CFLAGS="$cflags"
    24252     VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
    24253     VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
    24254      coin_has_vol=yes
    24255         echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
    24256 echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
     24556    GLPK_CFLAGS="$cflags"
     24557    GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/null`
     24558    GLPK_DATA=`$PKG_CONFIG --variable=datadir "osi-glpk" 2>/dev/null`
     24559     coin_has_glpk=yes
     24560        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
     24561echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
    2425724562
    2425824563        # adjust linker flags for (i)cl compiler
     
    2426024565        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2426124566        then
    24262           VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24567          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2426324568        fi
     24569        GLPK_PCREQUIRES="osi-glpk"
    2426424570
    2426524571        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    2426624572
    24267           COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
    24268           COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
    24269           COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
     24573          COINMP_PCREQUIRES="osi-glpk $COINMP_PCREQUIRES"
     24574          COINMP_CFLAGS="$GLPK_CFLAGS $COINMP_CFLAGS"
     24575          COINMP_LIBS="$GLPK_LIBS $COINMP_LIBS"
    2427024576
    2427124577
    2427224578
    2427324579  else
    24274     VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-vol"`
    24275       coin_has_vol=notGiven
    24276         echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
    24277 echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
     24580    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-glpk"`
     24581      coin_has_glpk=notGiven
     24582        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
     24583echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
    2427824584
    2427924585  fi
    2428024586else
    24281   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
    24282 echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
     24587  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
     24588echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
    2428324589   { (exit 1); exit 1; }; }
    2428424590fi
     
    2429524601echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2429624602
    24297 echo "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5
    24298 echo $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6
    24299 
    24300 coin_has_vol=notGiven
    24301 VOL_LIBS=
    24302 VOL_LIBS_INSTALLED=
    24303 VOL_CFLAGS=
    24304 VOL_CFLAGS_INSTALLED=
    24305 VOL_DATA=
    24306 VOL_DATA_INSTALLED=
    24307 
    24308 # initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x)
    24309 projtoprocess="osi-vol"
     24603echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
     24604echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
     24605
     24606coin_has_glpk=notGiven
     24607GLPK_LIBS=
     24608GLPK_LIBS_INSTALLED=
     24609GLPK_CFLAGS=
     24610GLPK_CFLAGS_INSTALLED=
     24611GLPK_DATA=
     24612GLPK_DATA_INSTALLED=
     24613GLPK_PCLIBS=
     24614GLPK_PCREQUIRES=
     24615
     24616# initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     24617projtoprocess="osi-glpk"
    2431024618
    2431124619# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2434524653      # add projrequires to the front of the list of projects that have to be processed next
    2434624654      # at the same time, remove $proj from this list
    24347       projtoprocess=${projtoprocess/$proj/$projrequires}
     24655      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    2434824656
    2434924657      # read DATA from $pcfile, if _DATA is still empty
    24350       if test "x$VOL_DATA" = x ; then
     24658      if test "x$GLPK_DATA" = x ; then
    2435124659        projdatadir=
    2435224660        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    2435324661        eval `sh -c "$pcfilemod"`
    24354         VOL_DATA="$projdatadir"
     24662        GLPK_DATA="$projdatadir"
    2435524663      fi
    2435624664
     
    2436924677
    2437024678      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    24371       if test "x$VOL_DATA_INSTALLED" = x ; then
     24679      if test "x$GLPK_DATA_INSTALLED" = x ; then
    2437224680        projdatadir=
    2437324681        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     
    2437624684          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    2437724685        fi
    24378         VOL_DATA_INSTALLED="$projdatadir"
     24686        GLPK_DATA_INSTALLED="$projdatadir"
    2437924687      fi
    2438024688
     
    2441324721    #   replace "Cflags:" by "echo projcflags="
    2441424722    #   remove every line starting with <some word>:
    24415     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24723    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2441624724
    2441724725    # set projcflags and projlibs variables by running $pcfilemod
     24726    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2441824727    projcflags=
    2441924728    projlibs=
     24729    IFS="$save_IFS"
    2442024730    eval `sh -c "$pcfilemod"`
     24731    IFS=":"
    2442124732
    2442224733    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2442424735      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2442524736    fi
    24426     VOL_CFLAGS="$projcflags $VOL_CFLAGS"
     24737    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
    2442724738
    2442824739    # set LIBS variable
    24429     VOL_LIBS="$projlibs $VOL_LIBS"
     24740    GLPK_LIBS="$projlibs $GLPK_LIBS"
    2443024741
    2443124742    # remember that we have processed $pcfile
     
    2445824769    #   replace "Cflags:" by "echo projcflags="
    2445924770    #   remove every line starting with <some word>:
    24460     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24771    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    2446124772
    2446224773    # set projcflags and projlibs variables by running $pcfilemod
     24774    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    2446324775    projcflags=
    2446424776    projlibs=
     24777    IFS="$save_IFS"
    2446524778    eval `sh -c "$pcfilemod"`
     24779    IFS=":"
    2446624780
    2446724781    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    2446924783      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2447024784    fi
    24471     VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED"
     24785    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
    2447224786
    2447324787    # set LIBS variable
    24474     VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED"
     24788    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
    2447524789
    2447624790    # remember that we have processed $pcfile
     
    2448224796
    2448324797  # finish up
    24484   coin_has_vol=yes
     24798  coin_has_glpk=yes
    2448524799  echo "$as_me:$LINENO: result: yes" >&5
    2448624800echo "${ECHO_T}yes" >&6
    2448724801
    2448824802cat >>confdefs.h <<\_ACEOF
    24489 #define COIN_HAS_VOL 1
     24803#define COIN_HAS_GLPK 1
    2449024804_ACEOF
    2449124805
     
    2449424808  # 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),
    2449524809  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    24496   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
    24497   #    everything of the form "-lname" by "libname.lib"
     24810  #    everything of the form "-lname" by "libname.lib", and
     24811  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    2449824812  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2449924813  then
    24500     VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    24501     VOL_LIBS_INSTALLED=`echo " $VOL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     24814    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24815    GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    2450224816  fi
    2450324817
    24504 
    24505     COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
    24506     COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
    24507     COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
    24508     COINMP_CFLAGS_INSTALLED="$VOL_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    24509     COINMP_LIBS_INSTALLED="$VOL_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    24510 
    24511 
    24512 fi
    24513 
    24514 
    24515 
    24516 if test $coin_has_vol != notGiven &&
    24517                 test $coin_has_vol != skipping; then
    24518   COIN_HAS_VOL_TRUE=
    24519   COIN_HAS_VOL_FALSE='#'
    24520 else
    24521   COIN_HAS_VOL_TRUE='#'
    24522   COIN_HAS_VOL_FALSE=
     24818  GLPK_PCREQUIRES="osi-glpk"
     24819
     24820    COINMP_PCREQUIRES="osi-glpk $COINMP_PCREQUIRES"
     24821    COINMP_CFLAGS="$GLPK_CFLAGS $COINMP_CFLAGS"
     24822    COINMP_LIBS="$GLPK_LIBS $COINMP_LIBS"
     24823    COINMP_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     24824    COINMP_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     24825
     24826
     24827fi
     24828
     24829
     24830
     24831if test $coin_has_glpk != notGiven &&
     24832                test $coin_has_glpk != skipping; then
     24833  COIN_HAS_GLPK_TRUE=
     24834  COIN_HAS_GLPK_FALSE='#'
     24835else
     24836  COIN_HAS_GLPK_TRUE='#'
     24837  COIN_HAS_GLPK_FALSE=
    2452324838fi
    2452424839
     
    2452824843
    2452924844else
    24530   echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    24531 echo "${ECHO_T}$coin_has_vol" >&6
    24532 fi
    24533 
    24534 if test $coin_has_vol != skipping &&
    24535    test $coin_has_vol != notGiven ; then
     24845  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     24846echo "${ECHO_T}$coin_has_glpk" >&6
     24847fi
     24848
     24849if test $coin_has_glpk != skipping &&
     24850   test $coin_has_glpk != notGiven ; then
    2453624851
    2453724852cat >>confdefs.h <<\_ACEOF
    24538 #define COIN_HAS_VOL 1
     24853#define COIN_HAS_GLPK 1
    2453924854_ACEOF
    2454024855
     
    2455424869     # then remove everything of the form -xxx
    2455524870     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    24556      VOL_DEPENDENCIES=`echo " $VOL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24871     GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2455724872
    2455824873       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     
    2456124876
    2456224877  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24563     if test -n "$VOL_CFLAGS" ; then
    24564       { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    24565 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
     24878    if test -n "$GLPK_CFLAGS" ; then
     24879      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     24880echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
    2456624881    fi
    24567     if test -n "$VOL_LIBS" ; then
    24568       { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
    24569 echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
     24882    if test -n "$GLPK_LIBS" ; then
     24883      { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
     24884echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
    2457024885    fi
    24571     if test -n "$VOL_DEPENDENCIES" ; then
    24572       { echo "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5
    24573 echo "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;}
     24886    if test -n "$GLPK_DEPENDENCIES" ; then
     24887      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
     24888echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
    2457424889    fi
    24575     if test -n "$VOL_DATA" ; then
    24576       { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
    24577 echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
     24890    if test -n "$GLPK_DATA" ; then
     24891      { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
     24892echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
    2457824893    fi
    24579     if test -n "$VOL_CFLAGS" ; then
    24580       { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    24581 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
     24894    if test -n "$GLPK_PCLIBS" ; then
     24895      { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
     24896echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
     24897    fi
     24898    if test -n "$GLPK_PCREQUIRES" ; then
     24899      { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
     24900echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
    2458224901    fi
    2458324902
     
    2459524914
    2459624915
    24597 if test $coin_has_vol != notGiven &&
    24598                 test $coin_has_vol != skipping; then
    24599   COIN_HAS_VOL_TRUE=
    24600   COIN_HAS_VOL_FALSE='#'
    24601 else
    24602   COIN_HAS_VOL_TRUE='#'
    24603   COIN_HAS_VOL_FALSE=
    24604 fi
    24605 
    24606 
    24607 
    24608 
    24609 # Third party solvers:
    24610 
    24611 echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
    24612 echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
    24613 
    24614 coin_has_cpx=notGiven
     24916if test $coin_has_glpk != notGiven &&
     24917                test $coin_has_glpk != skipping; then
     24918  COIN_HAS_GLPK_TRUE=
     24919  COIN_HAS_GLPK_FALSE='#'
     24920else
     24921  COIN_HAS_GLPK_TRUE='#'
     24922  COIN_HAS_GLPK_FALSE=
     24923fi
     24924
     24925
     24926
     24927
     24928echo "$as_me:$LINENO: checking for COIN-OR package Msk" >&5
     24929echo $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6
     24930
     24931coin_has_msk=notGiven
    2461524932
    2461624933# check if user wants to skip package in any case
    2461724934if test x"$COIN_SKIP_PROJECTS" != x; then
    2461824935  for dir in $COIN_SKIP_PROJECTS; do
    24619     if test $dir = "Cpx"; then
    24620       coin_has_cpx=skipping
     24936    if test $dir = "Msk"; then
     24937      coin_has_msk=skipping
    2462124938    fi
    2462224939  done
    2462324940fi
    2462424941
    24625 CPX_LIBS=
    24626 CPX_CFLAGS=
    24627 CPX_DATA=
     24942if test "$coin_has_msk" != skipping; then
     24943
     24944# Check whether --with-m4_tolower(Msk) or --without-m4_tolower(Msk) was given.
     24945if test "${with_msk+set}" = set; then
     24946  withval="$with_msk"
     24947  if test "$withval" = no ; then
     24948       coin_has_msk=skipping
     24949     fi
     24950
     24951fi;
     24952fi
     24953
     24954MSK_LIBS=
     24955MSK_CFLAGS=
     24956MSK_DATA=
     24957MSK_DEPENDENCIES=
     24958MSK_PCLIBS=
     24959MSK_PCREQUIRES=
     24960MSK_DATA=
    2462824961
    2462924962
     
    2464424977
    2464524978#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    24646 if test $coin_has_cpx != skipping; then
    24647 
    24648 # Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
    24649 if test "${with_cpx_lib+set}" = set; then
    24650   withval="$with_cpx_lib"
     24979if test $coin_has_msk != skipping; then
     24980
     24981# Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given.
     24982if test "${with_msk_lib+set}" = set; then
     24983  withval="$with_msk_lib"
    2465124984  if test "$withval" = no ; then
    24652        coin_has_cpx=skipping
     24985       coin_has_msk=skipping
    2465324986     else
    24654        coin_has_cpx=yes
    24655        CPX_LIBS="$withval"
     24987       coin_has_msk=yes
     24988       MSK_LIBS="$withval"
     24989       MSK_PCLIBS="$withval"
    2465624990
    2465724991         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    2465824992         COINMP_LIBS="$withval $COINMP_LIBS"
    2465924993
     24994       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     24995       if test -z "$PKG_CONFIG" ; then
     24996         MSK_LIBS_INSTALLED="$withval"
     24997         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
     24998       fi
    2466024999     fi
    2466125000
     
    2466325002fi
    2466425003
    24665 if test $coin_has_cpx != skipping; then
    24666 
    24667 # Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
    24668 if test "${with_cpx_incdir+set}" = set; then
    24669   withval="$with_cpx_incdir"
     25004if test $coin_has_msk != skipping; then
     25005
     25006# Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given.
     25007if test "${with_msk_incdir+set}" = set; then
     25008  withval="$with_msk_incdir"
    2467025009  if test "$withval" = no ; then
    24671        coin_has_cpx=skipping
     25010       coin_has_msk=skipping
    2467225011     else
    24673        coin_has_cpx=yes
    24674        CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
    24675        COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     25012       coin_has_msk=yes
     25013       MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
     25014       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
     25015       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     25016       if test -z "$PKG_CONFIG" ; then
     25017         MSK_CFLAGS_INSTALLED="$MSK_CFLAGS"
     25018         COINMP_CFLAGS_INSTALLED="$MSK_CFLAGS $COINMP_CFLAGS_INSTALLED"
     25019       fi
    2467625020     fi
    2467725021
     
    2467925023fi
    2468025024
    24681 if test $coin_has_cpx != skipping; then
    24682 
    24683 # Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
    24684 if test "${with_cpx_datadir+set}" = set; then
    24685   withval="$with_cpx_datadir"
     25025if test $coin_has_msk != skipping; then
     25026
     25027# Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given.
     25028if test "${with_msk_datadir+set}" = set; then
     25029  withval="$with_msk_datadir"
    2468625030  if test "$withval" = no ; then
    24687        coin_has_cpx=skipping
     25031       coin_has_msk=skipping
    2468825032     else
    24689        coin_has_cpx=yes
    24690        CPX_DATA="$withval"
     25033       coin_has_msk=yes
     25034       MSK_DATA="$withval"
     25035       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     25036       if test -z "$PKG_CONFIG" ; then
     25037         MSK_DATA_INSTALLED="$withval"
     25038       fi
    2469125039     fi
    2469225040
     
    2469425042fi
    2469525043
    24696 if test $coin_has_cpx = notGiven; then
     25044if test $coin_has_msk = notGiven; then
    2469725045  if test -n "$PKG_CONFIG" ; then
    2469825046    # set search path for pkg-config
     
    2470725055
    2470825056if test -n "$PKG_CONFIG" ; then
    24709   if $PKG_CONFIG --exists "osi-cpx"; then
    24710     CPX_VERSIONS="`$PKG_CONFIG --modversion "osi-cpx" 2>/dev/null | tr '\n' ' '`"
    24711      cflags=`$PKG_CONFIG --cflags "osi-cpx" 2>/dev/null`
     25057  if $PKG_CONFIG --exists "osi-msk"; then
     25058    MSK_VERSIONS=`$PKG_CONFIG --modversion "osi-msk" 2>/dev/null | tr '\n' ' '`
     25059     cflags=`$PKG_CONFIG --cflags "osi-msk" 2>/dev/null`
    2471225060    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2471325061        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2471725065      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2471825066    fi
    24719     CPX_CFLAGS="$cflags"
    24720     CPX_LIBS=`$PKG_CONFIG --libs "osi-cpx" 2>/dev/null`
    24721     CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cpx" 2>/dev/null`
    24722      coin_has_cpx=yes
    24723         echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
    24724 echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
     25067    MSK_CFLAGS="$cflags"
     25068    MSK_LIBS=`$PKG_CONFIG --libs "osi-msk" 2>/dev/null`
     25069    MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-msk" 2>/dev/null`
     25070     coin_has_msk=yes
     25071        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
     25072echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
    2472525073
    2472625074        # adjust linker flags for (i)cl compiler
     
    2472825076        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2472925077        then
    24730           CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25078          MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2473125079        fi
     25080        MSK_PCREQUIRES="osi-msk"
    2473225081
    2473325082        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    2473425083
    24735           COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
    24736           COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
    24737           COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
     25084          COINMP_PCREQUIRES="osi-msk $COINMP_PCREQUIRES"
     25085          COINMP_CFLAGS="$MSK_CFLAGS $COINMP_CFLAGS"
     25086          COINMP_LIBS="$MSK_LIBS $COINMP_LIBS"
    2473825087
    2473925088
    2474025089
    2474125090  else
    24742     CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cpx"`
    24743       coin_has_cpx=notGiven
    24744         echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
    24745 echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
     25091    MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-msk"`
     25092      coin_has_msk=notGiven
     25093        echo "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5
     25094echo "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6
    2474625095
    2474725096  fi
    2474825097else
    24749   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
    24750 echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
     25098  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5
     25099echo "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;}
    2475125100   { (exit 1); exit 1; }; }
    2475225101fi
     
    2476325112echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2476425113
    24765 echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
    24766 echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
    24767 
    24768 coin_has_cpx=notGiven
    24769 CPX_LIBS=
    24770 CPX_LIBS_INSTALLED=
    24771 CPX_CFLAGS=
    24772 CPX_CFLAGS_INSTALLED=
    24773 CPX_DATA=
    24774 CPX_DATA_INSTALLED=
    24775 
    24776 # initial list of dependencies is "osi-cpx", but we need to filter out version number specifications (= x, <= x, >= x)
    24777 projtoprocess="osi-cpx"
     25114echo "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5
     25115echo $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6
     25116
     25117coin_has_msk=notGiven
     25118MSK_LIBS=
     25119MSK_LIBS_INSTALLED=
     25120MSK_CFLAGS=
     25121MSK_CFLAGS_INSTALLED=
     25122MSK_DATA=
     25123MSK_DATA_INSTALLED=
     25124MSK_PCLIBS=
     25125MSK_PCREQUIRES=
     25126
     25127# initial list of dependencies is "osi-msk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     25128projtoprocess="osi-msk"
    2477825129
    2477925130# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2481325164      # add projrequires to the front of the list of projects that have to be processed next
    2481425165      # at the same time, remove $proj from this list