Changeset 425


Ignore:
Timestamp:
Jan 11, 2011 12:55:42 PM (9 years ago)
Author:
bjarni
Message:

Lou changing configure.ac and Makefile.am

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/CoinMP/Makefile.in

    r416 r425  
    2323# Copyright (C) 2006, 2007 International Business Machines and others.
    2424# All Rights Reserved.
    25 # This file is distributed under the Common Public License.
     25# This file is distributed under the Eclipse Public License.
    2626
    2727# Author:  Andreas Waechter           IBM    2006-04-13
     
    101101ABSBUILDDIR = @ABSBUILDDIR@
    102102ACLOCAL = @ACLOCAL@
    103 ADDLIBS = @ADDLIBS@
    104103ADD_CFLAGS = @ADD_CFLAGS@
    105104ADD_CXXFLAGS = @ADD_CXXFLAGS@
     
    110109AMTAR = @AMTAR@
    111110AR = @AR@
    112 ASLLIB = @ASLLIB@
    113 ASL_CPPFLAGS = @ASL_CPPFLAGS@
     111ASL_CFLAGS = @ASL_CFLAGS@
     112ASL_CFLAGS_INSTALLED = @ASL_CFLAGS_INSTALLED@
     113ASL_DATA = @ASL_DATA@
     114ASL_DATA_INSTALLED = @ASL_DATA_INSTALLED@
     115ASL_DEPENDENCIES = @ASL_DEPENDENCIES@
     116ASL_LIBS = @ASL_LIBS@
     117ASL_LIBS_INSTALLED = @ASL_LIBS_INSTALLED@
    114118AUTOCONF = @AUTOCONF@
    115119AUTOHEADER = @AUTOHEADER@
     
    118122AWK = @AWK@
    119123BUILDTOOLSDIR = @BUILDTOOLSDIR@
    120 CBCDOCDIR = @CBCDOCDIR@
    121 CBCOBJDIR = @CBCOBJDIR@
    122 CBCSRCDIR = @CBCSRCDIR@
     124CBCGENERIC_CFLAGS = @CBCGENERIC_CFLAGS@
     125CBCGENERIC_CFLAGS_INSTALLED = @CBCGENERIC_CFLAGS_INSTALLED@
     126CBCGENERIC_DEPENDENCIES = @CBCGENERIC_DEPENDENCIES@
     127CBCGENERIC_LIBS = @CBCGENERIC_LIBS@
     128CBCGENERIC_LIBS_INSTALLED = @CBCGENERIC_LIBS_INSTALLED@
     129CBCGENERIC_PCLIBS = @CBCGENERIC_PCLIBS@
     130CBCGENERIC_PCREQUIRES = @CBCGENERIC_PCREQUIRES@
     131CBCLIB_CFLAGS = @CBCLIB_CFLAGS@
     132CBCLIB_CFLAGS_INSTALLED = @CBCLIB_CFLAGS_INSTALLED@
     133CBCLIB_DEPENDENCIES = @CBCLIB_DEPENDENCIES@
     134CBCLIB_LIBS = @CBCLIB_LIBS@
     135CBCLIB_LIBS_INSTALLED = @CBCLIB_LIBS_INSTALLED@
     136CBCLIB_PCLIBS = @CBCLIB_PCLIBS@
     137CBCLIB_PCREQUIRES = @CBCLIB_PCREQUIRES@
     138CBC_CFLAGS = @CBC_CFLAGS@
     139CBC_CFLAGS_INSTALLED = @CBC_CFLAGS_INSTALLED@
     140CBC_DATA = @CBC_DATA@
     141CBC_DATA_INSTALLED = @CBC_DATA_INSTALLED@
     142CBC_DEPENDENCIES = @CBC_DEPENDENCIES@
     143CBC_LIBS = @CBC_LIBS@
     144CBC_LIBS_INSTALLED = @CBC_LIBS_INSTALLED@
    123145CC = @CC@
    124146CCDEPMODE = @CCDEPMODE@
    125147CDEFS = @CDEFS@
    126148CFLAGS = @CFLAGS@
    127 CGLDOCDIR = @CGLDOCDIR@
    128 CGLOBJDIR = @CGLOBJDIR@
    129 CGLSRCDIR = @CGLSRCDIR@
    130 CLPDOCDIR = @CLPDOCDIR@
    131 CLPOBJDIR = @CLPOBJDIR@
    132 CLPSRCDIR = @CLPSRCDIR@
    133 COINMPDOCDIR = @COINMPDOCDIR@
    134 COINMPOBJDIR = @COINMPOBJDIR@
    135 COINMPSRCDIR = @COINMPSRCDIR@
    136 COINUTILSDOCDIR = @COINUTILSDOCDIR@
    137 COINUTILSOBJDIR = @COINUTILSOBJDIR@
    138 COINUTILSSRCDIR = @COINUTILSSRCDIR@
    139 COIN_BUILD_GLPK_FALSE = @COIN_BUILD_GLPK_FALSE@
    140 COIN_BUILD_GLPK_TRUE = @COIN_BUILD_GLPK_TRUE@
     149CGL_CFLAGS = @CGL_CFLAGS@
     150CGL_CFLAGS_INSTALLED = @CGL_CFLAGS_INSTALLED@
     151CGL_DATA = @CGL_DATA@
     152CGL_DATA_INSTALLED = @CGL_DATA_INSTALLED@
     153CGL_DEPENDENCIES = @CGL_DEPENDENCIES@
     154CGL_LIBS = @CGL_LIBS@
     155CGL_LIBS_INSTALLED = @CGL_LIBS_INSTALLED@
     156CLP_CFLAGS = @CLP_CFLAGS@
     157CLP_CFLAGS_INSTALLED = @CLP_CFLAGS_INSTALLED@
     158CLP_DATA = @CLP_DATA@
     159CLP_DATA_INSTALLED = @CLP_DATA_INSTALLED@
     160CLP_DEPENDENCIES = @CLP_DEPENDENCIES@
     161CLP_LIBS = @CLP_LIBS@
     162CLP_LIBS_INSTALLED = @CLP_LIBS_INSTALLED@
     163COINMP_CFLAGS = @COINMP_CFLAGS@
     164COINMP_CFLAGS_INSTALLED = @COINMP_CFLAGS_INSTALLED@
     165COINMP_DEPENDENCIES = @COINMP_DEPENDENCIES@
     166COINMP_LIBS = @COINMP_LIBS@
     167COINMP_LIBS_INSTALLED = @COINMP_LIBS_INSTALLED@
     168COINMP_PCLIBS = @COINMP_PCLIBS@
     169COINMP_PCREQUIRES = @COINMP_PCREQUIRES@
     170COINUTILS_CFLAGS = @COINUTILS_CFLAGS@
     171COINUTILS_CFLAGS_INSTALLED = @COINUTILS_CFLAGS_INSTALLED@
     172COINUTILS_DATA = @COINUTILS_DATA@
     173COINUTILS_DATA_INSTALLED = @COINUTILS_DATA_INSTALLED@
     174COINUTILS_DEPENDENCIES = @COINUTILS_DEPENDENCIES@
     175COINUTILS_LIBS = @COINUTILS_LIBS@
     176COINUTILS_LIBS_INSTALLED = @COINUTILS_LIBS_INSTALLED@
    141177COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@
    142178COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@
     
    151187COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    152188COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    153 COIN_HAS_COINMP_FALSE = @COIN_HAS_COINMP_FALSE@
    154 COIN_HAS_COINMP_TRUE = @COIN_HAS_COINMP_TRUE@
    155189COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    156190COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     
    167201COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    168202COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
    169 COIN_HAS_OSL_FALSE = @COIN_HAS_OSL_FALSE@
    170 COIN_HAS_OSL_TRUE = @COIN_HAS_OSL_TRUE@
     203COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     204COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    171205COIN_HAS_SPX_FALSE = @COIN_HAS_SPX_FALSE@
    172206COIN_HAS_SPX_TRUE = @COIN_HAS_SPX_TRUE@
     
    177211COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    178212COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
     213COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
     214COIN_PKG_CONFIG_PATH_UNINSTALLED = @COIN_PKG_CONFIG_PATH_UNINSTALLED@
    179215CPP = @CPP@
    180216CPPFLAGS = @CPPFLAGS@
    181 CPXINCDIR = @CPXINCDIR@
    182 CPXLIB = @CPXLIB@
     217CPX_CFLAGS = @CPX_CFLAGS@
     218CPX_CFLAGS_INSTALLED = @CPX_CFLAGS_INSTALLED@
     219CPX_DATA = @CPX_DATA@
     220CPX_DATA_INSTALLED = @CPX_DATA_INSTALLED@
     221CPX_DEPENDENCIES = @CPX_DEPENDENCIES@
     222CPX_LIBS = @CPX_LIBS@
     223CPX_LIBS_INSTALLED = @CPX_LIBS_INSTALLED@
    183224CXX = @CXX@
    184225CXXCPP = @CXXCPP@
     
    191232DEFS = @DEFS@
    192233DEPDIR = @DEPDIR@
    193 DYLPDOCDIR = @DYLPDOCDIR@
    194 DYLPOBJDIR = @DYLPOBJDIR@
    195 DYLPSRCDIR = @DYLPSRCDIR@
     234DYLP_CFLAGS = @DYLP_CFLAGS@
     235DYLP_CFLAGS_INSTALLED = @DYLP_CFLAGS_INSTALLED@
     236DYLP_DATA = @DYLP_DATA@
     237DYLP_DATA_INSTALLED = @DYLP_DATA_INSTALLED@
     238DYLP_DEPENDENCIES = @DYLP_DEPENDENCIES@
     239DYLP_LIBS = @DYLP_LIBS@
     240DYLP_LIBS_INSTALLED = @DYLP_LIBS_INSTALLED@
    196241ECHO = @ECHO@
    197242ECHO_C = @ECHO_C@
     
    201246EXEEXT = @EXEEXT@
    202247F77 = @F77@
    203 FADDLIBS = @FADDLIBS@
    204248FFLAGS = @FFLAGS@
    205 FMPINCDIR = @FMPINCDIR@
    206 FMPLIB = @FMPLIB@
    207 GLPKINCDIR = @GLPKINCDIR@
    208 GLPKLIB = @GLPKLIB@
    209 GLPKOBJDIR = @GLPKOBJDIR@
     249FMP_CFLAGS = @FMP_CFLAGS@
     250FMP_CFLAGS_INSTALLED = @FMP_CFLAGS_INSTALLED@
     251FMP_DATA = @FMP_DATA@
     252FMP_DATA_INSTALLED = @FMP_DATA_INSTALLED@
     253FMP_DEPENDENCIES = @FMP_DEPENDENCIES@
     254FMP_LIBS = @FMP_LIBS@
     255FMP_LIBS_INSTALLED = @FMP_LIBS_INSTALLED@
     256GLPK_CFLAGS = @GLPK_CFLAGS@
     257GLPK_CFLAGS_INSTALLED = @GLPK_CFLAGS_INSTALLED@
     258GLPK_DATA = @GLPK_DATA@
     259GLPK_DATA_INSTALLED = @GLPK_DATA_INSTALLED@
     260GLPK_DEPENDENCIES = @GLPK_DEPENDENCIES@
     261GLPK_LIBS = @GLPK_LIBS@
     262GLPK_LIBS_INSTALLED = @GLPK_LIBS_INSTALLED@
    210263HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    211264HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    229282MPICC = @MPICC@
    230283MPICXX = @MPICXX@
    231 MSKINCDIR = @MSKINCDIR@
    232 MSKLIB = @MSKLIB@
     284MSK_CFLAGS = @MSK_CFLAGS@
     285MSK_CFLAGS_INSTALLED = @MSK_CFLAGS_INSTALLED@
     286MSK_DATA = @MSK_DATA@
     287MSK_DATA_INSTALLED = @MSK_DATA_INSTALLED@
     288MSK_DEPENDENCIES = @MSK_DEPENDENCIES@
     289MSK_LIBS = @MSK_LIBS@
     290MSK_LIBS_INSTALLED = @MSK_LIBS_INSTALLED@
    233291OBJEXT = @OBJEXT@
    234292OPT_CFLAGS = @OPT_CFLAGS@
    235293OPT_CXXFLAGS = @OPT_CXXFLAGS@
    236 OSIDOCDIR = @OSIDOCDIR@
    237 OSIOBJDIR = @OSIOBJDIR@
    238 OSISRCDIR = @OSISRCDIR@
    239 OSLINCDIR = @OSLINCDIR@
    240 OSLLIB = @OSLLIB@
     294OSI_CFLAGS = @OSI_CFLAGS@
     295OSI_CFLAGS_INSTALLED = @OSI_CFLAGS_INSTALLED@
     296OSI_DATA = @OSI_DATA@
     297OSI_DATA_INSTALLED = @OSI_DATA_INSTALLED@
     298OSI_DEPENDENCIES = @OSI_DEPENDENCIES@
     299OSI_LIBS = @OSI_LIBS@
     300OSI_LIBS_INSTALLED = @OSI_LIBS_INSTALLED@
    241301PACKAGE = @PACKAGE@
    242302PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    246306PACKAGE_VERSION = @PACKAGE_VERSION@
    247307PATH_SEPARATOR = @PATH_SEPARATOR@
    248 PCADDLIBS = @PCADDLIBS@
     308PKG_CONFIG = @PKG_CONFIG@
    249309RANLIB = @RANLIB@
    250310RPATH_FLAGS = @RPATH_FLAGS@
    251311SET_MAKE = @SET_MAKE@
    252312SHELL = @SHELL@
    253 SPXINCDIR = @SPXINCDIR@
    254 SPXLIB = @SPXLIB@
     313SPX_CFLAGS = @SPX_CFLAGS@
     314SPX_CFLAGS_INSTALLED = @SPX_CFLAGS_INSTALLED@
     315SPX_DATA = @SPX_DATA@
     316SPX_DATA_INSTALLED = @SPX_DATA_INSTALLED@
     317SPX_DEPENDENCIES = @SPX_DEPENDENCIES@
     318SPX_LIBS = @SPX_LIBS@
     319SPX_LIBS_INSTALLED = @SPX_LIBS_INSTALLED@
    255320STRIP = @STRIP@
    256 SYMPHONYDOCDIR = @SYMPHONYDOCDIR@
    257 SYMPHONYOBJDIR = @SYMPHONYOBJDIR@
    258 SYMPHONYSRCDIR = @SYMPHONYSRCDIR@
     321SYMPHONY_CFLAGS = @SYMPHONY_CFLAGS@
     322SYMPHONY_CFLAGS_INSTALLED = @SYMPHONY_CFLAGS_INSTALLED@
     323SYMPHONY_DATA = @SYMPHONY_DATA@
     324SYMPHONY_DATA_INSTALLED = @SYMPHONY_DATA_INSTALLED@
     325SYMPHONY_DEPENDENCIES = @SYMPHONY_DEPENDENCIES@
     326SYMPHONY_LIBS = @SYMPHONY_LIBS@
     327SYMPHONY_LIBS_INSTALLED = @SYMPHONY_LIBS_INSTALLED@
    259328VERSION = @VERSION@
    260 VOLDOCDIR = @VOLDOCDIR@
    261 VOLOBJDIR = @VOLOBJDIR@
    262 VOLSRCDIR = @VOLSRCDIR@
     329VOL_CFLAGS = @VOL_CFLAGS@
     330VOL_CFLAGS_INSTALLED = @VOL_CFLAGS_INSTALLED@
     331VOL_DATA = @VOL_DATA@
     332VOL_DATA_INSTALLED = @VOL_DATA_INSTALLED@
     333VOL_DEPENDENCIES = @VOL_DEPENDENCIES@
     334VOL_LIBS = @VOL_LIBS@
     335VOL_LIBS_INSTALLED = @VOL_LIBS_INSTALLED@
    263336VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
    264 XPRINCDIR = @XPRINCDIR@
    265 XPRLIB = @XPRLIB@
     337XPR_CFLAGS = @XPR_CFLAGS@
     338XPR_CFLAGS_INSTALLED = @XPR_CFLAGS_INSTALLED@
     339XPR_DATA = @XPR_DATA@
     340XPR_DATA_INSTALLED = @XPR_DATA_INSTALLED@
     341XPR_DEPENDENCIES = @XPR_DEPENDENCIES@
     342XPR_LIBS = @XPR_LIBS@
     343XPR_LIBS_INSTALLED = @XPR_LIBS_INSTALLED@
    266344_SVN_REV = @_SVN_REV@
    267345abs_bin_dir = @abs_bin_dir@
     
    277355ac_ct_STRIP = @ac_ct_STRIP@
    278356ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     357ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    279358am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    280359am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  • trunk/CoinMP/configure

    r416 r425  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS 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 COINMPSRCDIR COINMPOBJDIR COINMPDOCDIR COIN_HAS_COINMP_TRUE COIN_HAS_COINMP_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GLPKOBJDIR COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE ASLLIB ASL_CPPFLAGS 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 _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 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 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 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'
    476476ac_subst_files=''
    477477
     
    994994ac_cv_env_FFLAGS_set=${FFLAGS+set}
    995995ac_cv_env_FFLAGS_value=$FFLAGS
     996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     997ac_env_PKG_CONFIG_value=$PKG_CONFIG
     998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    9961000
    9971001#
     
    10921096                          optimize for fast installation [default=yes]
    10931097  --disable-libtool-lock  avoid locking (might break parallel builds)
    1094   --enable-cplex-libcheck use disable-cplex-libcheck to skip the
    1095                           link check at configuration time
    1096   --enable-fortmp-libcheck
    1097                           use disable-fortmp-libcheck to skip the
    1098                           link check at configuration time
    1099   --enable-mosek-libcheck use disable-mosek-libcheck to skip the
    1100                           link check at configuration time
    1101   --enable-osl-libcheck use disable-osl-libcheck to skip the link
    1102                           check at configuration time
    1103   --enable-soplex-libcheck
    1104                           use disable-soplex-libcheck to skip the
    1105                           link check at configuration time
    1106   --enable-xpress-libcheck
    1107                           use disable-xpress-libcheck to skip the
    1108                           link check at configuration time
    1109   --enable-glpk-libcheck use disable-glpk-libcheck to skip the
    1110                           link check at configuration time
     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)
    11111102
    11121103Optional Packages:
     
    11181109  --with-tags[=TAGS]
    11191110                          include additional configurations [automatic]
    1120   --with-cplex-incdir specify the header file directory for library Cplex
    1121   --with-cplex-lib specify the flags used to link with the library Cplex
    1122   --with-fortmp-incdir specify the header file directory for library FortMP
    1123   --with-fortmp-lib specify the flags used to link with the library FortMP
    1124   --with-mosek-incdir specify the header file directory for library Mosek
    1125   --with-mosek-lib specify the flags used to link with the library Mosek
    1126   --with-osl-incdir specify the header file directory for library Osl
    1127   --with-osl-lib specify the flags used to link with the library Osl
    1128   --with-soplex-incdir specify the header file directory for library Soplex
    1129   --with-soplex-lib specify the flags used to link with the library Soplex
    1130   --with-xpress-incdir specify the header file directory for library Xpress
    1131   --with-xpress-lib specify the flags used to link with the library Xpress
    1132   --with-glpk-incdir specify the header file directory for library Glpk
    1133   --with-glpk-lib specify the flags used to link with the library Glpk
    1134   --with-asldir           specify path to AMPL solver directory (or BUILD for
    1135                           compilation, or "no" for disabling AMPL)
     1111  --with-coin-instdir     prefix of installation directory for precompiled
     1112                          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-cgl-lib linker flags for using package Cgl
     1120  --with-cgl-incdir directory with header files for using package Cgl
     1121  --with-cgl-datadir directory with data files for using package Cgl
     1122  --with-osi-lib linker flags for using package Osi
     1123  --with-osi-incdir directory with header files for using package Osi
     1124  --with-osi-datadir directory with data files for using package Osi
     1125  --with-clp-lib linker flags for using package Clp
     1126  --with-clp-incdir directory with header files for using package Clp
     1127  --with-clp-datadir directory with data files for using package Clp
     1128  --with-cbc-lib linker flags for using package Cbc
     1129  --with-cbc-incdir directory with header files for using package Cbc
     1130  --with-cbc-datadir directory with data files for using package Cbc
     1131  --with-dylp-lib linker flags for using package Dylp
     1132  --with-dylp-incdir directory with header files for using package Dylp
     1133  --with-dylp-datadir directory with data files for using package Dylp
     1134  --with-symphony-lib linker flags for using package SYMPHONY
     1135  --with-symphony-incdir directory with header files for using package
     1136                          SYMPHONY
     1137  --with-symphony-datadir directory with data files for using package SYMPHONY
     1138  --with-vol-lib linker flags for using package Vol
     1139  --with-vol-incdir directory with header files for using package Vol
     1140  --with-vol-datadir directory with data files for using package Vol
     1141  --with-cpx-lib linker flags for using package Cpx
     1142  --with-cpx-incdir directory with header files for using package Cpx
     1143  --with-cpx-datadir directory with data files for using package Cpx
     1144  --with-fmp-lib linker flags for using package Fmp
     1145  --with-fmp-incdir directory with header files for using package Fmp
     1146  --with-fmp-datadir directory with data files for using package Fmp
     1147  --with-glpk-lib linker flags for using package Glpk
     1148  --with-glpk-incdir directory with header files for using package Glpk
     1149  --with-glpk-datadir directory with data files for using package Glpk
     1150  --with-msk-lib linker flags for using package Msk
     1151  --with-msk-incdir directory with header files for using package Msk
     1152  --with-msk-datadir directory with data files for using package Msk
     1153  --with-spx-lib linker flags for using package Spx
     1154  --with-spx-incdir directory with header files for using package Spx
     1155  --with-spx-datadir directory with data files for using package Spx
     1156  --with-xpr-lib linker flags for using package Xpr
     1157  --with-xpr-incdir directory with header files for using package Xpr
     1158  --with-xpr-datadir directory with data files for using package Xpr
     1159  --with-asl-lib linker flags for using package ASL
     1160  --with-asl-incdir directory with header files for using package ASL
     1161  --with-asl-datadir directory with data files for using package ASL
    11361162
    11371163Some influential environment variables:
     
    11611187  F77         Fortran 77 compiler command
    11621188  FFLAGS      Fortran 77 compiler flags
     1189  PKG_CONFIG  path to pkg-config utility
    11631190
    11641191Use these variables to override the choices made by `configure' or to help
     
    16971724# externals.  The following macro ensures that those externals are
    16981725# retrieved by svn if they are not there yet.
    1699 # Initialize the ADDLIBS variable
    1700 ADDLIBS="-lm $LIBS"
    1701 
    1702 
    1703 # Initialize the PCADDLIBS variable.
    1704 # This variable is used to setup library flags for the "Libs:" section in a .pc file.
    1705 # In certain cases, it may contain more flags than the ADDLIBS variable.
    1706 PCADDLIBS=""
    1707 
    17081726
    17091727# As backup, we make sure we don't loose an FLIBS if it has been set
    17101728# by the user
    17111729save_FLIBS="$FLIBS"
    1712 
    1713 # Initialize the FADDLIBS variable (which is to be used with a fortran
    1714 # compiler and will not include FLIBS)
    1715 FADDLIBS="$LIBS"
    1716 
    17171730
    17181731# A useful makefile conditional that is always false
     
    20112024             fi
    20122025             ;;
     2026  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
    20132027  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    20142028  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    31503164fi
    31513165
    3152 # Correct ADDLIBS initialization if we are using the MS compiler
     3166# Correct the LD variable if we are using the MS or Intel-windows compiler
    31533167case "$CC" in
    31543168  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    3155     ADDLIBS=
    31563169    case $build in
    31573170  *-mingw*)
     
    32083221             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    32093222  *-darwin*) comps="g++ c++ CC" ;;
     3223  *-linux-gnu*)
     3224             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
    32103225          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    32113226esac
     
    40884103fi
    40894104
     4105# correct the LD variable in a mingw build with MS or intel compiler
    40904106case "$CXX" in
    4091   cl* | */cl* | CL* | */CL* )
     4107  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    40924108    case $build in
    40934109  *-mingw*)
     
    52745290full_prefix=`cd $full_prefix ; pwd`
    52755291
    5276 abs_lib_dir=$full_prefix/lib/coin
     5292abs_lib_dir=$full_prefix/lib
    52775293
    52785294abs_include_dir=$full_prefix/include
     
    58585874*-*-irix6*)
    58595875  # Find out which ABI we are using.
    5860   echo '#line 5860 "configure"' > conftest.$ac_ext
     5876  echo '#line 5876 "configure"' > conftest.$ac_ext
    58615877  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    58625878  (eval $ac_compile) 2>&5
     
    69927008
    69937009# Provide some information about the compiler.
    6994 echo "$as_me:6994:" \
     7010echo "$as_me:7010:" \
    69957011     "checking for Fortran 77 compiler version" >&5
    69967012ac_compiler=`set X $ac_compile; echo $2`
     
    80598075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80608076   -e 's:$: $lt_compiler_flag:'`
    8061    (eval echo "\"\$as_me:8061: $lt_compile\"" >&5)
     8077   (eval echo "\"\$as_me:8077: $lt_compile\"" >&5)
    80628078   (eval "$lt_compile" 2>conftest.err)
    80638079   ac_status=$?
    80648080   cat conftest.err >&5
    8065    echo "$as_me:8065: \$? = $ac_status" >&5
     8081   echo "$as_me:8081: \$? = $ac_status" >&5
    80668082   if (exit $ac_status) && test -s "$ac_outfile"; then
    80678083     # The compiler can only warn and ignore the option if not recognized
     
    83278343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83288344   -e 's:$: $lt_compiler_flag:'`
    8329    (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
     8345   (eval echo "\"\$as_me:8345: $lt_compile\"" >&5)
    83308346   (eval "$lt_compile" 2>conftest.err)
    83318347   ac_status=$?
    83328348   cat conftest.err >&5
    8333    echo "$as_me:8333: \$? = $ac_status" >&5
     8349   echo "$as_me:8349: \$? = $ac_status" >&5
    83348350   if (exit $ac_status) && test -s "$ac_outfile"; then
    83358351     # The compiler can only warn and ignore the option if not recognized
     
    84318447   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84328448   -e 's:$: $lt_compiler_flag:'`
    8433    (eval echo "\"\$as_me:8433: $lt_compile\"" >&5)
     8449   (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
    84348450   (eval "$lt_compile" 2>out/conftest.err)
    84358451   ac_status=$?
    84368452   cat out/conftest.err >&5
    8437    echo "$as_me:8437: \$? = $ac_status" >&5
     8453   echo "$as_me:8453: \$? = $ac_status" >&5
    84388454   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    84398455   then
     
    1077610792  lt_status=$lt_dlunknown
    1077710793  cat > conftest.$ac_ext <<EOF
    10778 #line 10778 "configure"
     10794#line 10794 "configure"
    1077910795#include "confdefs.h"
    1078010796
     
    1087610892  lt_status=$lt_dlunknown
    1087710893  cat > conftest.$ac_ext <<EOF
    10878 #line 10878 "configure"
     10894#line 10894 "configure"
    1087910895#include "confdefs.h"
    1088010896
     
    1322013236   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1322113237   -e 's:$: $lt_compiler_flag:'`
    13222    (eval echo "\"\$as_me:13222: $lt_compile\"" >&5)
     13238   (eval echo "\"\$as_me:13238: $lt_compile\"" >&5)
    1322313239   (eval "$lt_compile" 2>conftest.err)
    1322413240   ac_status=$?
    1322513241   cat conftest.err >&5
    13226    echo "$as_me:13226: \$? = $ac_status" >&5
     13242   echo "$as_me:13242: \$? = $ac_status" >&5
    1322713243   if (exit $ac_status) && test -s "$ac_outfile"; then
    1322813244     # The compiler can only warn and ignore the option if not recognized
     
    1332413340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1332513341   -e 's:$: $lt_compiler_flag:'`
    13326    (eval echo "\"\$as_me:13326: $lt_compile\"" >&5)
     13342   (eval echo "\"\$as_me:13342: $lt_compile\"" >&5)
    1332713343   (eval "$lt_compile" 2>out/conftest.err)
    1332813344   ac_status=$?
    1332913345   cat out/conftest.err >&5
    13330    echo "$as_me:13330: \$? = $ac_status" >&5
     13346   echo "$as_me:13346: \$? = $ac_status" >&5
    1333113347   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1333213348   then
     
    1489414910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1489514911   -e 's:$: $lt_compiler_flag:'`
    14896    (eval echo "\"\$as_me:14896: $lt_compile\"" >&5)
     14912   (eval echo "\"\$as_me:14912: $lt_compile\"" >&5)
    1489714913   (eval "$lt_compile" 2>conftest.err)
    1489814914   ac_status=$?
    1489914915   cat conftest.err >&5
    14900    echo "$as_me:14900: \$? = $ac_status" >&5
     14916   echo "$as_me:14916: \$? = $ac_status" >&5
    1490114917   if (exit $ac_status) && test -s "$ac_outfile"; then
    1490214918     # The compiler can only warn and ignore the option if not recognized
     
    1499815014   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1499915015   -e 's:$: $lt_compiler_flag:'`
    15000    (eval echo "\"\$as_me:15000: $lt_compile\"" >&5)
     15016   (eval echo "\"\$as_me:15016: $lt_compile\"" >&5)
    1500115017   (eval "$lt_compile" 2>out/conftest.err)
    1500215018   ac_status=$?
    1500315019   cat out/conftest.err >&5
    15004    echo "$as_me:15004: \$? = $ac_status" >&5
     15020   echo "$as_me:15020: \$? = $ac_status" >&5
    1500515021   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1500615022   then
     
    1720517221   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1720617222   -e 's:$: $lt_compiler_flag:'`
    17207    (eval echo "\"\$as_me:17207: $lt_compile\"" >&5)
     17223   (eval echo "\"\$as_me:17223: $lt_compile\"" >&5)
    1720817224   (eval "$lt_compile" 2>conftest.err)
    1720917225   ac_status=$?
    1721017226   cat conftest.err >&5
    17211    echo "$as_me:17211: \$? = $ac_status" >&5
     17227   echo "$as_me:17227: \$? = $ac_status" >&5
    1721217228   if (exit $ac_status) && test -s "$ac_outfile"; then
    1721317229     # The compiler can only warn and ignore the option if not recognized
     
    1747317489   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1747417490   -e 's:$: $lt_compiler_flag:'`
    17475    (eval echo "\"\$as_me:17475: $lt_compile\"" >&5)
     17491   (eval echo "\"\$as_me:17491: $lt_compile\"" >&5)
    1747617492   (eval "$lt_compile" 2>conftest.err)
    1747717493   ac_status=$?
    1747817494   cat conftest.err >&5
    17479    echo "$as_me:17479: \$? = $ac_status" >&5
     17495   echo "$as_me:17495: \$? = $ac_status" >&5
    1748017496   if (exit $ac_status) && test -s "$ac_outfile"; then
    1748117497     # The compiler can only warn and ignore the option if not recognized
     
    1757717593   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1757817594   -e 's:$: $lt_compiler_flag:'`
    17579    (eval echo "\"\$as_me:17579: $lt_compile\"" >&5)
     17595   (eval echo "\"\$as_me:17595: $lt_compile\"" >&5)
    1758017596   (eval "$lt_compile" 2>out/conftest.err)
    1758117597   ac_status=$?
    1758217598   cat out/conftest.err >&5
    17583    echo "$as_me:17583: \$? = $ac_status" >&5
     17599   echo "$as_me:17599: \$? = $ac_status" >&5
    1758417600   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1758517601   then
     
    2037620392      if test "$GXX" = "yes"; then
    2037720393        RPATH_FLAGS=
    20378         for dir in $abs_lib_dir $abs_lib_dir/ThirdParty; do
     20394        for dir in $abs_lib_dir; do
    2037920395          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
    2038020396        done
     
    2039320409    *-*-solaris*)
    2039420410        RPATH_FLAGS=
    20395         for dir in $abs_lib_dir $abs_lib_dir/ThirdParty; do
     20411        for dir in $abs_lib_dir; do
    2039620412          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
    2039720413        done
     
    2048320499#############################################################################
    2048420500
    20485 echo "$as_me:$LINENO: checking for COIN project CoinMP" >&5
    20486 echo $ECHO_N "checking for COIN project CoinMP... $ECHO_C" >&6
    20487 
    20488 # First check, if the sub-project is actually available (ToDo: allow
    20489 # other locations)
    20490 
    20491 coin_has_coinmp=unavailable
     20501#AC_COIN_CHECK_PACKAGE(CoinDepend, [cgl osi coinutils], [CbcLib CbcGeneric])
     20502#if test $coin_has_coindepend != yes ; then
     20503#  AC_MSG_ERROR([One or more required packages CoinUtils, Osi and Cgl are not available.])
     20504#fi
     20505
     20506
     20507
     20508# Check whether --enable-pkg-config or --disable-pkg-config was given.
     20509if test "${enable_pkg_config+set}" = set; then
     20510  enableval="$enable_pkg_config"
     20511  use_pkgconfig="$enableval"
     20512else
     20513  use_pkgconfig=yes
     20514fi;
     20515
     20516if test $use_pkgconfig = yes ; then
     20517  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     20518    if test -n "$ac_tool_prefix"; then
     20519  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     20520set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     20521echo "$as_me:$LINENO: checking for $ac_word" >&5
     20522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20523if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     20524  echo $ECHO_N "(cached) $ECHO_C" >&6
     20525else
     20526  case $PKG_CONFIG in
     20527  [\\/]* | ?:[\\/]*)
     20528  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     20529  ;;
     20530  *)
     20531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20532for as_dir in $PATH
     20533do
     20534  IFS=$as_save_IFS
     20535  test -z "$as_dir" && as_dir=.
     20536  for ac_exec_ext in '' $ac_executable_extensions; do
     20537  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20538    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20540    break 2
     20541  fi
     20542done
     20543done
     20544
     20545  ;;
     20546esac
     20547fi
     20548PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     20549
     20550if test -n "$PKG_CONFIG"; then
     20551  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     20552echo "${ECHO_T}$PKG_CONFIG" >&6
     20553else
     20554  echo "$as_me:$LINENO: result: no" >&5
     20555echo "${ECHO_T}no" >&6
     20556fi
     20557
     20558fi
     20559if test -z "$ac_cv_path_PKG_CONFIG"; then
     20560  ac_pt_PKG_CONFIG=$PKG_CONFIG
     20561  # Extract the first word of "pkg-config", so it can be a program name with args.
     20562set dummy pkg-config; ac_word=$2
     20563echo "$as_me:$LINENO: checking for $ac_word" >&5
     20564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20565if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     20566  echo $ECHO_N "(cached) $ECHO_C" >&6
     20567else
     20568  case $ac_pt_PKG_CONFIG in
     20569  [\\/]* | ?:[\\/]*)
     20570  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     20571  ;;
     20572  *)
     20573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20574for as_dir in $PATH
     20575do
     20576  IFS=$as_save_IFS
     20577  test -z "$as_dir" && as_dir=.
     20578  for ac_exec_ext in '' $ac_executable_extensions; do
     20579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20580    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20582    break 2
     20583  fi
     20584done
     20585done
     20586
     20587  ;;
     20588esac
     20589fi
     20590ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     20591
     20592if test -n "$ac_pt_PKG_CONFIG"; then
     20593  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     20594echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     20595else
     20596  echo "$as_me:$LINENO: result: no" >&5
     20597echo "${ECHO_T}no" >&6
     20598fi
     20599
     20600  PKG_CONFIG=$ac_pt_PKG_CONFIG
     20601else
     20602  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     20603fi
     20604
     20605  fi
     20606  if test -n "$PKG_CONFIG"; then
     20607    _pkg_min_version=0.9.0
     20608    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     20609echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     20610    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     20611      echo "$as_me:$LINENO: result: yes" >&5
     20612echo "${ECHO_T}yes" >&6
     20613    else
     20614      echo "$as_me:$LINENO: result: no" >&5
     20615echo "${ECHO_T}no" >&6
     20616      PKG_CONFIG=""
     20617    fi
     20618  fi
     20619
     20620  # check if pkg-config supports the short-errors flag
     20621  if test -n "$PKG_CONFIG" && \
     20622    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     20623    pkg_short_errors=" --short-errors "
     20624  else
     20625    pkg_short_errors=""
     20626  fi
     20627fi
     20628
     20629
     20630
     20631if test -n "$PKG_CONFIG"; then
     20632  COIN_HAS_PKGCONFIG_TRUE=
     20633  COIN_HAS_PKGCONFIG_FALSE='#'
     20634else
     20635  COIN_HAS_PKGCONFIG_TRUE='#'
     20636  COIN_HAS_PKGCONFIG_FALSE=
     20637fi
     20638
     20639
     20640
     20641# assemble pkg-config search path for installed projects
     20642COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20643
     20644# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     20645# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20646# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20647if test "x${prefix}" = xNONE ; then
     20648  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20649else
     20650  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20651fi
     20652
     20653
     20654# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20655if test "${with_coin_instdir+set}" = set; then
     20656  withval="$with_coin_instdir"
     20657  if test -d "$withval"; then : ; else
     20658     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20659echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20660   { (exit 1); exit 1; }; }
     20661   fi
     20662   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20663
     20664fi;
     20665
     20666
     20667
     20668# assemble additional pkg-config search paths for uninstalled projects
     20669if test x$coin_projectdir = xyes ; then
     20670  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
     20671  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20672  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20673  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     20674  COIN_PKG_CONFIG_PATH_UNINSTALLED=
     20675  if test -e ../coin_subdirs.txt ; then
     20676    for i in `cat ../coin_subdirs.txt` ; do
     20677      if test -d ../$i ; then
     20678        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     20679      fi
     20680      if test -d ../$i/pkgconfig ; then
     20681        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     20682      fi
     20683    done
     20684  fi
     20685
     20686  if test -e ../../coin_subdirs.txt ; then
     20687    for i in `cat ../../coin_subdirs.txt` ; do
     20688      if test -d ../../$i ; then
     20689        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     20690      fi
     20691      if test -d ../../$i/pkgconfig ; then
     20692        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     20693      fi
     20694    done
     20695  fi
     20696
     20697
     20698fi
     20699
     20700
     20701
     20702echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
     20703echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
     20704
     20705coin_has_coinutils=notGiven
     20706
     20707# check if user wants to skip package in any case
    2049220708if test x"$COIN_SKIP_PROJECTS" != x; then
    2049320709  for dir in $COIN_SKIP_PROJECTS; do
    20494     if test $dir = CoinMP; then
    20495       coin_has_coinmp=skipping
     20710    if test $dir = "CoinUtils"; then
     20711      coin_has_coinutils=skipping
    2049620712    fi
    2049720713  done
    2049820714fi
    2049920715
    20500 if test $coin_has_coinmp != skipping; then
    20501   if test $PACKAGE_TARNAME = coinmp; then
    20502     coin_has_coinmp=.
     20716COINUTILS_LIBS=
     20717COINUTILS_CFLAGS=
     20718COINUTILS_DATA=
     20719
     20720
     20721
     20722
     20723
     20724
     20725
     20726
     20727
     20728
     20729
     20730
     20731
     20732
     20733
     20734
     20735
     20736
     20737
     20738
     20739
     20740
     20741
     20742
     20743
     20744#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     20745if test $coin_has_coinutils != skipping; then
     20746
     20747# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
     20748if test "${with_coinutils_lib+set}" = set; then
     20749  withval="$with_coinutils_lib"
     20750  if test "$withval" = no ; then
     20751       coin_has_coinutils=skipping
     20752     else
     20753       coin_has_coinutils=yes
     20754       COINUTILS_LIBS="$withval"
     20755
     20756         CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
     20757         CBCLIB_LIBS="$withval $CBCLIB_LIBS"
     20758
     20759         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     20760         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     20761
     20762     fi
     20763
     20764fi;
     20765fi
     20766
     20767if test $coin_has_coinutils != skipping; then
     20768
     20769# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
     20770if test "${with_coinutils_incdir+set}" = set; then
     20771  withval="$with_coinutils_incdir"
     20772  if test "$withval" = no ; then
     20773       coin_has_coinutils=skipping
     20774     else
     20775       coin_has_coinutils=yes
     20776       COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
     20777       CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     20778     fi
     20779
     20780fi;
     20781fi
     20782
     20783if test $coin_has_coinutils != skipping; then
     20784
     20785# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
     20786if test "${with_coinutils_datadir+set}" = set; then
     20787  withval="$with_coinutils_datadir"
     20788  if test "$withval" = no ; then
     20789       coin_has_coinutils=skipping
     20790     else
     20791       coin_has_coinutils=yes
     20792       COINUTILS_DATA="$withval"
     20793     fi
     20794
     20795fi;
     20796fi
     20797
     20798if test $coin_has_coinutils = notGiven; then
     20799  if test -n "$PKG_CONFIG" ; then
     20800    # set search path for pkg-config
     20801    # need to export variable to be sure that the following pkg-config gets these values
     20802    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20803    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     20804    export PKG_CONFIG_PATH
     20805
     20806    # let pkg-config do it's magic
     20807
     20808
     20809
     20810if test -n "$PKG_CONFIG" ; then
     20811  if $PKG_CONFIG --exists "coinutils"; then
     20812    COINUTILS_VERSIONS="`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`"
     20813     cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
     20814    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     20815        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     20816        # but only do this if is not trivial
     20817    if test "$CYGPATH_W" != "echo" ; then
     20818      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     20819      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20820    fi
     20821    COINUTILS_CFLAGS="$cflags"
     20822    COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
     20823    COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
     20824     coin_has_coinutils=yes
     20825        echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
     20826echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
     20827
     20828        # adjust linker flags for (i)cl compiler
     20829        # 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)
     20830        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     20831        then
     20832          COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     20833        fi
     20834
     20835        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     20836
     20837          CBCLIB_PCREQUIRES="coinutils $CBCLIB_PCREQUIRES"
     20838          CBCLIB_CFLAGS="$COINUTILS_CFLAGS $CBCLIB_CFLAGS"
     20839          CBCLIB_LIBS="$COINUTILS_LIBS $CBCLIB_LIBS"
     20840
     20841          CBCGENERIC_PCREQUIRES="coinutils $CBCGENERIC_PCREQUIRES"
     20842          CBCGENERIC_CFLAGS="$COINUTILS_CFLAGS $CBCGENERIC_CFLAGS"
     20843          CBCGENERIC_LIBS="$COINUTILS_LIBS $CBCGENERIC_LIBS"
     20844
     20845
     20846
    2050320847  else
    20504     if test -d $srcdir/../CoinMP; then
    20505       coin_has_coinmp=../CoinMP
     20848    COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
     20849      coin_has_coinutils=notGiven
     20850        echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
     20851echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
     20852
     20853  fi
     20854else
     20855  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
     20856echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
     20857   { (exit 1); exit 1; }; }
     20858fi
     20859
     20860
     20861
     20862
     20863    # reset PKG_CONFIG_PATH variable
     20864    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     20865    export PKG_CONFIG_PATH
     20866
     20867  else
     20868    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     20869echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     20870
     20871echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
     20872echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
     20873
     20874coin_has_coinutils=notGiven
     20875COINUTILS_LIBS=
     20876COINUTILS_LIBS_INSTALLED=
     20877COINUTILS_CFLAGS=
     20878COINUTILS_CFLAGS_INSTALLED=
     20879COINUTILS_DATA=
     20880COINUTILS_DATA_INSTALLED=
     20881
     20882# initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x)
     20883projtoprocess="coinutils"
     20884
     20885# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     20886# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     20887# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     20888# also, we setup the DATA variable
     20889allproj=""
     20890allpcfiles=""
     20891allpcifiles=""
     20892while test "x$projtoprocess" != x ; do
     20893
     20894  for proj in $projtoprocess ; do
     20895    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     20896    pcfile=""
     20897    save_IFS="$IFS"
     20898    IFS=":"
     20899    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     20900      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     20901      if test -r "$dir/${proj}-uninstalled.pc" ; then
     20902        pcfile="$dir/$proj-uninstalled.pc"
     20903        if test -r "$dir/${proj}.pc" ; then
     20904          pcifile="$dir/${proj}.pc"
     20905        else
     20906          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     20907echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     20908          pcifile=
     20909        fi
     20910        break
     20911      fi
     20912    done
     20913    IFS="$save_IFS"
     20914
     20915    if test "x$pcfile" != x ; then
     20916      # read dependencies from $pcfile and filter it
     20917      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     20918
     20919      # add projrequires to the front of the list of projects that have to be processed next
     20920      # at the same time, remove $proj from this list
     20921      projtoprocess=${projtoprocess/$proj/$projrequires}
     20922
     20923      # read DATA from $pcfile, if _DATA is still empty
     20924      if test "x$COINUTILS_DATA" = x ; then
     20925        projdatadir=
     20926        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     20927        eval `sh -c "$pcfilemod"`
     20928        COINUTILS_DATA="$projdatadir"
     20929      fi
     20930
     20931      allproj="$allproj $proj"
     20932      allpcfiles="$pcfile:$allpcfiles"
     20933
     20934    else
     20935      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     20936echo "${ECHO_T}no, dependency $proj not available" >&6
     20937      allproj=fail
     20938      break 2
    2050620939    fi
     20940
     20941    if test "x$pcifile" != x ; then
     20942      allpcifiles="$pcifile:$allpcifiles"
     20943
     20944      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     20945      if test "x$COINUTILS_DATA_INSTALLED" = x ; then
     20946        projdatadir=
     20947        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     20948        eval `sh -c "$pcifilemod"`
     20949        if test "${CYGPATH_W}" != "echo"; then
     20950          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     20951        fi
     20952        COINUTILS_DATA_INSTALLED="$projdatadir"
     20953      fi
     20954
     20955    fi
     20956
     20957    break
     20958  done
     20959
     20960  # remove spaces on begin of $projtoprocess
     20961  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     20962
     20963done
     20964
     20965if test "$allproj" != fail ; then
     20966
     20967  # now go through the list of .pc files and assemble compiler and linker flags
     20968  # important is here to obey the reverse order that has been setup before,
     20969  # since then libraries that are required by several others should be after these other libraries
     20970  pcfilesprocessed=""
     20971
     20972  save_IFS="$IFS"
     20973  IFS=":"
     20974  for pcfile in $allpcfiles ; do
     20975
     20976    # if $pcfile has been processed already, skip this round
     20977    if test "x$pcfilesprocessed" != x ; then
     20978      for pcfiledone in $pcfilesprocessed ; do
     20979        if test "$pcfiledone" = "$pcfile" ; then
     20980          continue 2
     20981        fi
     20982      done
     20983    fi
     20984
     20985    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     20986    #   replace "Libs:" by "echo projlibs="
     20987    #   replace "Cflags:" by "echo projcflags="
     20988    #   remove every line starting with <some word>:
     20989    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     20990
     20991    # set projcflags and projlibs variables by running $pcfilemod
     20992    projcflags=
     20993    projlibs=
     20994    eval `sh -c "$pcfilemod"`
     20995
     20996    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     20997    if test "${CYGPATH_W}" != "echo"; then
     20998      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20999    fi
     21000    COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
     21001
     21002    # set LIBS variable
     21003    COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
     21004
     21005    # remember that we have processed $pcfile
     21006    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21007
     21008  done
     21009  IFS="$save_IFS"
     21010
     21011
     21012  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     21013  # important is here again to obey the reverse order that has been setup before,
     21014  # since then libraries that are required by several others should be after these other libraries
     21015  pcfilesprocessed=""
     21016
     21017  save_IFS="$IFS"
     21018  IFS=":"
     21019  for pcfile in $allpcifiles ; do
     21020
     21021    # if $pcfile has been processed already, skip this round
     21022    if test "x$pcfilesprocessed" != x ; then
     21023      for pcfiledone in $pcfilesprocessed ; do
     21024        if test "$pcfiledone" = "$pcfile" ; then
     21025          continue 2
     21026        fi
     21027      done
     21028    fi
     21029
     21030    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21031    #   replace "Libs:" by "echo projlibs="
     21032    #   replace "Cflags:" by "echo projcflags="
     21033    #   remove every line starting with <some word>:
     21034    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21035
     21036    # set projcflags and projlibs variables by running $pcfilemod
     21037    projcflags=
     21038    projlibs=
     21039    eval `sh -c "$pcfilemod"`
     21040
     21041    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21042    if test "${CYGPATH_W}" != "echo"; then
     21043      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21044    fi
     21045    COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
     21046
     21047    # set LIBS variable
     21048    COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
     21049
     21050    # remember that we have processed $pcfile
     21051    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21052
     21053  done
     21054  IFS="$save_IFS"
     21055
     21056
     21057  # finish up
     21058  coin_has_coinutils=yes
     21059  echo "$as_me:$LINENO: result: yes" >&5
     21060echo "${ECHO_T}yes" >&6
     21061
     21062cat >>confdefs.h <<\_ACEOF
     21063#define COIN_HAS_COINUTILS 1
     21064_ACEOF
     21065
     21066
     21067  # adjust linker flags for (i)cl compiler
     21068  # 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),
     21069  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     21070  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     21071  #    everything of the form "-lname" by "libname.lib"
     21072  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21073  then
     21074    COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21075    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'`
    2050721076  fi
    20508 fi
    20509 
    20510 if test $coin_has_coinmp != unavailable &&
    20511    test $coin_has_coinmp != skipping; then
    20512   # Set the #define if the component is available
     21077
     21078
     21079    CBCLIB_PCREQUIRES="coinutils $CBCLIB_PCREQUIRES"
     21080    CBCLIB_CFLAGS="$COINUTILS_CFLAGS $CBCLIB_CFLAGS"
     21081    CBCLIB_LIBS="$COINUTILS_LIBS $CBCLIB_LIBS"
     21082    CBCLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     21083    CBCLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
     21084
     21085    CBCGENERIC_PCREQUIRES="coinutils $CBCGENERIC_PCREQUIRES"
     21086    CBCGENERIC_CFLAGS="$COINUTILS_CFLAGS $CBCGENERIC_CFLAGS"
     21087    CBCGENERIC_LIBS="$COINUTILS_LIBS $CBCGENERIC_LIBS"
     21088    CBCGENERIC_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     21089    CBCGENERIC_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     21090
     21091
     21092fi
     21093
     21094
     21095
     21096if test $coin_has_coinutils != notGiven &&
     21097                test $coin_has_coinutils != skipping; then
     21098  COIN_HAS_COINUTILS_TRUE=
     21099  COIN_HAS_COINUTILS_FALSE='#'
     21100else
     21101  COIN_HAS_COINUTILS_TRUE='#'
     21102  COIN_HAS_COINUTILS_FALSE=
     21103fi
     21104
     21105
     21106
     21107  fi
     21108
     21109else
     21110  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
     21111echo "${ECHO_T}$coin_has_coinutils" >&6
     21112fi
     21113
     21114if test $coin_has_coinutils != skipping &&
     21115   test $coin_has_coinutils != notGiven ; then
    2051321116
    2051421117cat >>confdefs.h <<\_ACEOF
    20515 #define COIN_HAS_COINMP 1
     21118#define COIN_HAS_COINUTILS 1
    2051621119_ACEOF
    2051721120
    2051821121
    20519   # Set the variables for source and object code location
    20520 
    20521   COINMPSRCDIR=`cd $srcdir/$coin_has_coinmp; pwd`
    20522 
    20523   COINMPOBJDIR=`pwd`/$coin_has_coinmp
    20524 
    20525   COINMPDOCDIR=$abs_lib_dir/../../share/doc/coin/CoinMP
    20526 fi
    20527 
    20528   # Define the Makefile conditional
    20529 
    20530 
    20531 if test $coin_has_coinmp != unavailable &&
    20532                 test $coin_has_coinmp != skipping; then
    20533   COIN_HAS_COINMP_TRUE=
    20534   COIN_HAS_COINMP_FALSE='#'
    20535 else
    20536   COIN_HAS_COINMP_TRUE='#'
    20537   COIN_HAS_COINMP_FALSE=
    20538 fi
    20539 
    20540 echo "$as_me:$LINENO: result: $coin_has_coinmp" >&5
    20541 echo "${ECHO_T}$coin_has_coinmp" >&6
    20542 
    20543 echo "$as_me:$LINENO: checking for COIN project Cbc" >&5
    20544 echo $ECHO_N "checking for COIN project Cbc... $ECHO_C" >&6
    20545 
    20546 # First check, if the sub-project is actually available (ToDo: allow
    20547 # other locations)
    20548 
    20549 coin_has_cbc=unavailable
     21122  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     21123if test "${enable_interpackage_dependencies+set}" = set; then
     21124  enableval="$enable_interpackage_dependencies"
     21125
     21126else
     21127  enable_interpackage_dependencies=yes
     21128fi;
     21129
     21130  if test $enable_interpackage_dependencies = yes ; then
     21131     # construct dependencies variables from LIBS variables
     21132     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     21133     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     21134     # then remove everything of the form -xxx
     21135     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     21136     COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21137
     21138       CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21139
     21140       CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21141
     21142  fi
     21143
     21144  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21145    if test -n "$COINUTILS_CFLAGS" ; then
     21146      { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
     21147echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
     21148    fi
     21149    if test -n "$COINUTILS_LIBS" ; then
     21150      { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
     21151echo "$as_me: CoinUtils LIBS   are $COINUTILS_LIBS" >&6;}
     21152    fi
     21153    if test -n "$COINUTILS_DEPENDENCIES" ; then
     21154      { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
     21155echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
     21156    fi
     21157    if test -n "$COINUTILS_DATA" ; then
     21158      { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
     21159echo "$as_me: CoinUtils DATA   is  $COINUTILS_DATA" >&6;}
     21160    fi
     21161    if test -n "$COINUTILS_CFLAGS" ; then
     21162      { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
     21163echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
     21164    fi
     21165
     21166      { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     21167echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     21168      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     21169echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21170      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     21171echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
     21172
     21173      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     21174echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     21175      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     21176echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21177      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     21178echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     21179
     21180  fi
     21181fi
     21182
     21183# Define the Makefile conditional
     21184
     21185
     21186if test $coin_has_coinutils != notGiven &&
     21187                test $coin_has_coinutils != skipping; then
     21188  COIN_HAS_COINUTILS_TRUE=
     21189  COIN_HAS_COINUTILS_FALSE='#'
     21190else
     21191  COIN_HAS_COINUTILS_TRUE='#'
     21192  COIN_HAS_COINUTILS_FALSE=
     21193fi
     21194
     21195
     21196
     21197if test $coin_has_coinutils != yes ; then
     21198  { { echo "$as_me:$LINENO: error: \"required package CoinUtils Unavailable.\"" >&5
     21199echo "$as_me: error: \"required package CoinUtils Unavailable.\"" >&2;}
     21200   { (exit 1); exit 1; }; }
     21201fi
     21202
     21203
     21204echo "$as_me:$LINENO: checking for COIN-OR package Cgl" >&5
     21205echo $ECHO_N "checking for COIN-OR package Cgl... $ECHO_C" >&6
     21206
     21207coin_has_cgl=notGiven
     21208
     21209# check if user wants to skip package in any case
    2055021210if test x"$COIN_SKIP_PROJECTS" != x; then
    2055121211  for dir in $COIN_SKIP_PROJECTS; do
    20552     if test $dir = Cbc; then
     21212    if test $dir = "Cgl"; then
     21213      coin_has_cgl=skipping
     21214    fi
     21215  done
     21216fi
     21217
     21218CGL_LIBS=
     21219CGL_CFLAGS=
     21220CGL_DATA=
     21221
     21222
     21223
     21224
     21225
     21226
     21227
     21228
     21229
     21230
     21231
     21232
     21233
     21234
     21235
     21236
     21237
     21238
     21239
     21240
     21241
     21242
     21243
     21244
     21245
     21246#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     21247if test $coin_has_cgl != skipping; then
     21248
     21249# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
     21250if test "${with_cgl_lib+set}" = set; then
     21251  withval="$with_cgl_lib"
     21252  if test "$withval" = no ; then
     21253       coin_has_cgl=skipping
     21254     else
     21255       coin_has_cgl=yes
     21256       CGL_LIBS="$withval"
     21257
     21258         CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
     21259         CBCLIB_LIBS="$withval $CBCLIB_LIBS"
     21260
     21261         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     21262         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     21263
     21264     fi
     21265
     21266fi;
     21267fi
     21268
     21269if test $coin_has_cgl != skipping; then
     21270
     21271# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
     21272if test "${with_cgl_incdir+set}" = set; then
     21273  withval="$with_cgl_incdir"
     21274  if test "$withval" = no ; then
     21275       coin_has_cgl=skipping
     21276     else
     21277       coin_has_cgl=yes
     21278       CGL_CFLAGS="-I`${CYGPATH_W} $withval`"
     21279       CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     21280     fi
     21281
     21282fi;
     21283fi
     21284
     21285if test $coin_has_cgl != skipping; then
     21286
     21287# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
     21288if test "${with_cgl_datadir+set}" = set; then
     21289  withval="$with_cgl_datadir"
     21290  if test "$withval" = no ; then
     21291       coin_has_cgl=skipping
     21292     else
     21293       coin_has_cgl=yes
     21294       CGL_DATA="$withval"
     21295     fi
     21296
     21297fi;
     21298fi
     21299
     21300if test $coin_has_cgl = notGiven; then
     21301  if test -n "$PKG_CONFIG" ; then
     21302    # set search path for pkg-config
     21303    # need to export variable to be sure that the following pkg-config gets these values
     21304    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21305    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     21306    export PKG_CONFIG_PATH
     21307
     21308    # let pkg-config do it's magic
     21309
     21310
     21311
     21312if test -n "$PKG_CONFIG" ; then
     21313  if $PKG_CONFIG --exists "cgl"; then
     21314    CGL_VERSIONS="`$PKG_CONFIG --modversion "cgl" 2>/dev/null | tr '\n' ' '`"
     21315     cflags=`$PKG_CONFIG --cflags "cgl" 2>/dev/null`
     21316    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21317        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21318        # but only do this if is not trivial
     21319    if test "$CYGPATH_W" != "echo" ; then
     21320      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21321      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21322    fi
     21323    CGL_CFLAGS="$cflags"
     21324    CGL_LIBS=`$PKG_CONFIG --libs "cgl" 2>/dev/null`
     21325    CGL_DATA=`$PKG_CONFIG --variable=datadir "cgl" 2>/dev/null`
     21326     coin_has_cgl=yes
     21327        echo "$as_me:$LINENO: result: yes: $CGL_VERSIONS" >&5
     21328echo "${ECHO_T}yes: $CGL_VERSIONS" >&6
     21329
     21330        # adjust linker flags for (i)cl compiler
     21331        # 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)
     21332        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21333        then
     21334          CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21335        fi
     21336
     21337        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     21338
     21339          CBCLIB_PCREQUIRES="cgl $CBCLIB_PCREQUIRES"
     21340          CBCLIB_CFLAGS="$CGL_CFLAGS $CBCLIB_CFLAGS"
     21341          CBCLIB_LIBS="$CGL_LIBS $CBCLIB_LIBS"
     21342
     21343          CBCGENERIC_PCREQUIRES="cgl $CBCGENERIC_PCREQUIRES"
     21344          CBCGENERIC_CFLAGS="$CGL_CFLAGS $CBCGENERIC_CFLAGS"
     21345          CBCGENERIC_LIBS="$CGL_LIBS $CBCGENERIC_LIBS"
     21346
     21347
     21348
     21349  else
     21350    CGL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cgl"`
     21351      coin_has_cgl=notGiven
     21352        echo "$as_me:$LINENO: result: not given: $CGL_PKG_ERRORS" >&5
     21353echo "${ECHO_T}not given: $CGL_PKG_ERRORS" >&6
     21354
     21355  fi
     21356else
     21357  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&5
     21358echo "$as_me: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&2;}
     21359   { (exit 1); exit 1; }; }
     21360fi
     21361
     21362
     21363
     21364
     21365    # reset PKG_CONFIG_PATH variable
     21366    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21367    export PKG_CONFIG_PATH
     21368
     21369  else
     21370    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     21371echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     21372
     21373echo "$as_me:$LINENO: checking for COIN-OR package Cgl (fallback)" >&5
     21374echo $ECHO_N "checking for COIN-OR package Cgl (fallback)... $ECHO_C" >&6
     21375
     21376coin_has_cgl=notGiven
     21377CGL_LIBS=
     21378CGL_LIBS_INSTALLED=
     21379CGL_CFLAGS=
     21380CGL_CFLAGS_INSTALLED=
     21381CGL_DATA=
     21382CGL_DATA_INSTALLED=
     21383
     21384# initial list of dependencies is "cgl", but we need to filter out version number specifications (= x, <= x, >= x)
     21385projtoprocess="cgl"
     21386
     21387# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     21388# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21389# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     21390# also, we setup the DATA variable
     21391allproj=""
     21392allpcfiles=""
     21393allpcifiles=""
     21394while test "x$projtoprocess" != x ; do
     21395
     21396  for proj in $projtoprocess ; do
     21397    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     21398    pcfile=""
     21399    save_IFS="$IFS"
     21400    IFS=":"
     21401    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     21402      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     21403      if test -r "$dir/${proj}-uninstalled.pc" ; then
     21404        pcfile="$dir/$proj-uninstalled.pc"
     21405        if test -r "$dir/${proj}.pc" ; then
     21406          pcifile="$dir/${proj}.pc"
     21407        else
     21408          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     21409echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     21410          pcifile=
     21411        fi
     21412        break
     21413      fi
     21414    done
     21415    IFS="$save_IFS"
     21416
     21417    if test "x$pcfile" != x ; then
     21418      # read dependencies from $pcfile and filter it
     21419      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     21420
     21421      # add projrequires to the front of the list of projects that have to be processed next
     21422      # at the same time, remove $proj from this list
     21423      projtoprocess=${projtoprocess/$proj/$projrequires}
     21424
     21425      # read DATA from $pcfile, if _DATA is still empty
     21426      if test "x$CGL_DATA" = x ; then
     21427        projdatadir=
     21428        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     21429        eval `sh -c "$pcfilemod"`
     21430        CGL_DATA="$projdatadir"
     21431      fi
     21432
     21433      allproj="$allproj $proj"
     21434      allpcfiles="$pcfile:$allpcfiles"
     21435
     21436    else
     21437      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     21438echo "${ECHO_T}no, dependency $proj not available" >&6
     21439      allproj=fail
     21440      break 2
     21441    fi
     21442
     21443    if test "x$pcifile" != x ; then
     21444      allpcifiles="$pcifile:$allpcifiles"
     21445
     21446      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     21447      if test "x$CGL_DATA_INSTALLED" = x ; then
     21448        projdatadir=
     21449        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     21450        eval `sh -c "$pcifilemod"`
     21451        if test "${CYGPATH_W}" != "echo"; then
     21452          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     21453        fi
     21454        CGL_DATA_INSTALLED="$projdatadir"
     21455      fi
     21456
     21457    fi
     21458
     21459    break
     21460  done
     21461
     21462  # remove spaces on begin of $projtoprocess
     21463  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     21464
     21465done
     21466
     21467if test "$allproj" != fail ; then
     21468
     21469  # now go through the list of .pc files and assemble compiler and linker flags
     21470  # important is here to obey the reverse order that has been setup before,
     21471  # since then libraries that are required by several others should be after these other libraries
     21472  pcfilesprocessed=""
     21473
     21474  save_IFS="$IFS"
     21475  IFS=":"
     21476  for pcfile in $allpcfiles ; do
     21477
     21478    # if $pcfile has been processed already, skip this round
     21479    if test "x$pcfilesprocessed" != x ; then
     21480      for pcfiledone in $pcfilesprocessed ; do
     21481        if test "$pcfiledone" = "$pcfile" ; then
     21482          continue 2
     21483        fi
     21484      done
     21485    fi
     21486
     21487    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21488    #   replace "Libs:" by "echo projlibs="
     21489    #   replace "Cflags:" by "echo projcflags="
     21490    #   remove every line starting with <some word>:
     21491    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21492
     21493    # set projcflags and projlibs variables by running $pcfilemod
     21494    projcflags=
     21495    projlibs=
     21496    eval `sh -c "$pcfilemod"`
     21497
     21498    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21499    if test "${CYGPATH_W}" != "echo"; then
     21500      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21501    fi
     21502    CGL_CFLAGS="$projcflags $CGL_CFLAGS"
     21503
     21504    # set LIBS variable
     21505    CGL_LIBS="$projlibs $CGL_LIBS"
     21506
     21507    # remember that we have processed $pcfile
     21508    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21509
     21510  done
     21511  IFS="$save_IFS"
     21512
     21513
     21514  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     21515  # important is here again to obey the reverse order that has been setup before,
     21516  # since then libraries that are required by several others should be after these other libraries
     21517  pcfilesprocessed=""
     21518
     21519  save_IFS="$IFS"
     21520  IFS=":"
     21521  for pcfile in $allpcifiles ; do
     21522
     21523    # if $pcfile has been processed already, skip this round
     21524    if test "x$pcfilesprocessed" != x ; then
     21525      for pcfiledone in $pcfilesprocessed ; do
     21526        if test "$pcfiledone" = "$pcfile" ; then
     21527          continue 2
     21528        fi
     21529      done
     21530    fi
     21531
     21532    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21533    #   replace "Libs:" by "echo projlibs="
     21534    #   replace "Cflags:" by "echo projcflags="
     21535    #   remove every line starting with <some word>:
     21536    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21537
     21538    # set projcflags and projlibs variables by running $pcfilemod
     21539    projcflags=
     21540    projlibs=
     21541    eval `sh -c "$pcfilemod"`
     21542
     21543    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21544    if test "${CYGPATH_W}" != "echo"; then
     21545      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21546    fi
     21547    CGL_CFLAGS_INSTALLED="$projcflags $CGL_CFLAGS_INSTALLED"
     21548
     21549    # set LIBS variable
     21550    CGL_LIBS_INSTALLED="$projlibs $CGL_LIBS_INSTALLED"
     21551
     21552    # remember that we have processed $pcfile
     21553    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21554
     21555  done
     21556  IFS="$save_IFS"
     21557
     21558
     21559  # finish up
     21560  coin_has_cgl=yes
     21561  echo "$as_me:$LINENO: result: yes" >&5
     21562echo "${ECHO_T}yes" >&6
     21563
     21564cat >>confdefs.h <<\_ACEOF
     21565#define COIN_HAS_CGL 1
     21566_ACEOF
     21567
     21568
     21569  # adjust linker flags for (i)cl compiler
     21570  # 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),
     21571  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     21572  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     21573  #    everything of the form "-lname" by "libname.lib"
     21574  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21575  then
     21576    CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21577    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'`
     21578  fi
     21579
     21580
     21581    CBCLIB_PCREQUIRES="cgl $CBCLIB_PCREQUIRES"
     21582    CBCLIB_CFLAGS="$CGL_CFLAGS $CBCLIB_CFLAGS"
     21583    CBCLIB_LIBS="$CGL_LIBS $CBCLIB_LIBS"
     21584    CBCLIB_CFLAGS_INSTALLED="$CGL_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     21585    CBCLIB_LIBS_INSTALLED="$CGL_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
     21586
     21587    CBCGENERIC_PCREQUIRES="cgl $CBCGENERIC_PCREQUIRES"
     21588    CBCGENERIC_CFLAGS="$CGL_CFLAGS $CBCGENERIC_CFLAGS"
     21589    CBCGENERIC_LIBS="$CGL_LIBS $CBCGENERIC_LIBS"
     21590    CBCGENERIC_CFLAGS_INSTALLED="$CGL_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     21591    CBCGENERIC_LIBS_INSTALLED="$CGL_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     21592
     21593
     21594fi
     21595
     21596
     21597
     21598if test $coin_has_cgl != notGiven &&
     21599                test $coin_has_cgl != skipping; then
     21600  COIN_HAS_CGL_TRUE=
     21601  COIN_HAS_CGL_FALSE='#'
     21602else
     21603  COIN_HAS_CGL_TRUE='#'
     21604  COIN_HAS_CGL_FALSE=
     21605fi
     21606
     21607
     21608
     21609  fi
     21610
     21611else
     21612  echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
     21613echo "${ECHO_T}$coin_has_cgl" >&6
     21614fi
     21615
     21616if test $coin_has_cgl != skipping &&
     21617   test $coin_has_cgl != notGiven ; then
     21618
     21619cat >>confdefs.h <<\_ACEOF
     21620#define COIN_HAS_CGL 1
     21621_ACEOF
     21622
     21623
     21624  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     21625if test "${enable_interpackage_dependencies+set}" = set; then
     21626  enableval="$enable_interpackage_dependencies"
     21627
     21628else
     21629  enable_interpackage_dependencies=yes
     21630fi;
     21631
     21632  if test $enable_interpackage_dependencies = yes ; then
     21633     # construct dependencies variables from LIBS variables
     21634     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     21635     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     21636     # then remove everything of the form -xxx
     21637     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     21638     CGL_DEPENDENCIES=`echo " $CGL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21639
     21640       CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21641
     21642       CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21643
     21644  fi
     21645
     21646  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21647    if test -n "$CGL_CFLAGS" ; then
     21648      { echo "$as_me:$LINENO: Cgl CFLAGS are $CGL_CFLAGS" >&5
     21649echo "$as_me: Cgl CFLAGS are $CGL_CFLAGS" >&6;}
     21650    fi
     21651    if test -n "$CGL_LIBS" ; then
     21652      { echo "$as_me:$LINENO: Cgl LIBS   are $CGL_LIBS" >&5
     21653echo "$as_me: Cgl LIBS   are $CGL_LIBS" >&6;}
     21654    fi
     21655    if test -n "$CGL_DEPENDENCIES" ; then
     21656      { echo "$as_me:$LINENO: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&5
     21657echo "$as_me: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&6;}
     21658    fi
     21659    if test -n "$CGL_DATA" ; then
     21660      { echo "$as_me:$LINENO: Cgl DATA   is  $CGL_DATA" >&5
     21661echo "$as_me: Cgl DATA   is  $CGL_DATA" >&6;}
     21662    fi
     21663    if test -n "$CGL_CFLAGS" ; then
     21664      { echo "$as_me:$LINENO: Cgl CFLAGS are $CGL_CFLAGS" >&5
     21665echo "$as_me: Cgl CFLAGS are $CGL_CFLAGS" >&6;}
     21666    fi
     21667
     21668      { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     21669echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     21670      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     21671echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21672      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     21673echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
     21674
     21675      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     21676echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     21677      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     21678echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21679      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     21680echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     21681
     21682  fi
     21683fi
     21684
     21685# Define the Makefile conditional
     21686
     21687
     21688if test $coin_has_cgl != notGiven &&
     21689                test $coin_has_cgl != skipping; then
     21690  COIN_HAS_CGL_TRUE=
     21691  COIN_HAS_CGL_FALSE='#'
     21692else
     21693  COIN_HAS_CGL_TRUE='#'
     21694  COIN_HAS_CGL_FALSE=
     21695fi
     21696
     21697
     21698
     21699if test $coin_has_cgl != yes ; then
     21700  { { echo "$as_me:$LINENO: error: \"required package Cgl Unavailable.\"" >&5
     21701echo "$as_me: error: \"required package Cgl Unavailable.\"" >&2;}
     21702   { (exit 1); exit 1; }; }
     21703fi
     21704
     21705
     21706echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
     21707echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
     21708
     21709coin_has_osi=notGiven
     21710
     21711# check if user wants to skip package in any case
     21712if test x"$COIN_SKIP_PROJECTS" != x; then
     21713  for dir in $COIN_SKIP_PROJECTS; do
     21714    if test $dir = "Osi"; then
     21715      coin_has_osi=skipping
     21716    fi
     21717  done
     21718fi
     21719
     21720OSI_LIBS=
     21721OSI_CFLAGS=
     21722OSI_DATA=
     21723
     21724
     21725
     21726
     21727
     21728
     21729
     21730
     21731
     21732
     21733
     21734
     21735
     21736
     21737
     21738
     21739
     21740
     21741
     21742
     21743
     21744
     21745
     21746
     21747
     21748#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     21749if test $coin_has_osi != skipping; then
     21750
     21751# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
     21752if test "${with_osi_lib+set}" = set; then
     21753  withval="$with_osi_lib"
     21754  if test "$withval" = no ; then
     21755       coin_has_osi=skipping
     21756     else
     21757       coin_has_osi=yes
     21758       OSI_LIBS="$withval"
     21759
     21760         CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
     21761         CBCLIB_LIBS="$withval $CBCLIB_LIBS"
     21762
     21763         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     21764         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     21765
     21766     fi
     21767
     21768fi;
     21769fi
     21770
     21771if test $coin_has_osi != skipping; then
     21772
     21773# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
     21774if test "${with_osi_incdir+set}" = set; then
     21775  withval="$with_osi_incdir"
     21776  if test "$withval" = no ; then
     21777       coin_has_osi=skipping
     21778     else
     21779       coin_has_osi=yes
     21780       OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
     21781       CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     21782     fi
     21783
     21784fi;
     21785fi
     21786
     21787if test $coin_has_osi != skipping; then
     21788
     21789# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
     21790if test "${with_osi_datadir+set}" = set; then
     21791  withval="$with_osi_datadir"
     21792  if test "$withval" = no ; then
     21793       coin_has_osi=skipping
     21794     else
     21795       coin_has_osi=yes
     21796       OSI_DATA="$withval"
     21797     fi
     21798
     21799fi;
     21800fi
     21801
     21802if test $coin_has_osi = notGiven; then
     21803  if test -n "$PKG_CONFIG" ; then
     21804    # set search path for pkg-config
     21805    # need to export variable to be sure that the following pkg-config gets these values
     21806    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21807    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     21808    export PKG_CONFIG_PATH
     21809
     21810    # let pkg-config do it's magic
     21811
     21812
     21813
     21814if test -n "$PKG_CONFIG" ; then
     21815  if $PKG_CONFIG --exists "osi"; then
     21816    OSI_VERSIONS="`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`"
     21817     cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
     21818    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21819        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21820        # but only do this if is not trivial
     21821    if test "$CYGPATH_W" != "echo" ; then
     21822      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21823      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21824    fi
     21825    OSI_CFLAGS="$cflags"
     21826    OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
     21827    OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
     21828     coin_has_osi=yes
     21829        echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
     21830echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
     21831
     21832        # adjust linker flags for (i)cl compiler
     21833        # 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)
     21834        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21835        then
     21836          OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21837        fi
     21838
     21839        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     21840
     21841          CBCLIB_PCREQUIRES="osi $CBCLIB_PCREQUIRES"
     21842          CBCLIB_CFLAGS="$OSI_CFLAGS $CBCLIB_CFLAGS"
     21843          CBCLIB_LIBS="$OSI_LIBS $CBCLIB_LIBS"
     21844
     21845          CBCGENERIC_PCREQUIRES="osi $CBCGENERIC_PCREQUIRES"
     21846          CBCGENERIC_CFLAGS="$OSI_CFLAGS $CBCGENERIC_CFLAGS"
     21847          CBCGENERIC_LIBS="$OSI_LIBS $CBCGENERIC_LIBS"
     21848
     21849
     21850
     21851  else
     21852    OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
     21853      coin_has_osi=notGiven
     21854        echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
     21855echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
     21856
     21857  fi
     21858else
     21859  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
     21860echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
     21861   { (exit 1); exit 1; }; }
     21862fi
     21863
     21864
     21865
     21866
     21867    # reset PKG_CONFIG_PATH variable
     21868    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21869    export PKG_CONFIG_PATH
     21870
     21871  else
     21872    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     21873echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     21874
     21875echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
     21876echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
     21877
     21878coin_has_osi=notGiven
     21879OSI_LIBS=
     21880OSI_LIBS_INSTALLED=
     21881OSI_CFLAGS=
     21882OSI_CFLAGS_INSTALLED=
     21883OSI_DATA=
     21884OSI_DATA_INSTALLED=
     21885
     21886# initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x)
     21887projtoprocess="osi"
     21888
     21889# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     21890# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21891# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     21892# also, we setup the DATA variable
     21893allproj=""
     21894allpcfiles=""
     21895allpcifiles=""
     21896while test "x$projtoprocess" != x ; do
     21897
     21898  for proj in $projtoprocess ; do
     21899    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     21900    pcfile=""
     21901    save_IFS="$IFS"
     21902    IFS=":"
     21903    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     21904      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     21905      if test -r "$dir/${proj}-uninstalled.pc" ; then
     21906        pcfile="$dir/$proj-uninstalled.pc"
     21907        if test -r "$dir/${proj}.pc" ; then
     21908          pcifile="$dir/${proj}.pc"
     21909        else
     21910          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     21911echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     21912          pcifile=
     21913        fi
     21914        break
     21915      fi
     21916    done
     21917    IFS="$save_IFS"
     21918
     21919    if test "x$pcfile" != x ; then
     21920      # read dependencies from $pcfile and filter it
     21921      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     21922
     21923      # add projrequires to the front of the list of projects that have to be processed next
     21924      # at the same time, remove $proj from this list
     21925      projtoprocess=${projtoprocess/$proj/$projrequires}
     21926
     21927      # read DATA from $pcfile, if _DATA is still empty
     21928      if test "x$OSI_DATA" = x ; then
     21929        projdatadir=
     21930        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     21931        eval `sh -c "$pcfilemod"`
     21932        OSI_DATA="$projdatadir"
     21933      fi
     21934
     21935      allproj="$allproj $proj"
     21936      allpcfiles="$pcfile:$allpcfiles"
     21937
     21938    else
     21939      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     21940echo "${ECHO_T}no, dependency $proj not available" >&6
     21941      allproj=fail
     21942      break 2
     21943    fi
     21944
     21945    if test "x$pcifile" != x ; then
     21946      allpcifiles="$pcifile:$allpcifiles"
     21947
     21948      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     21949      if test "x$OSI_DATA_INSTALLED" = x ; then
     21950        projdatadir=
     21951        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     21952        eval `sh -c "$pcifilemod"`
     21953        if test "${CYGPATH_W}" != "echo"; then
     21954          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     21955        fi
     21956        OSI_DATA_INSTALLED="$projdatadir"
     21957      fi
     21958
     21959    fi
     21960
     21961    break
     21962  done
     21963
     21964  # remove spaces on begin of $projtoprocess
     21965  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     21966
     21967done
     21968
     21969if test "$allproj" != fail ; then
     21970
     21971  # now go through the list of .pc files and assemble compiler and linker flags
     21972  # important is here to obey the reverse order that has been setup before,
     21973  # since then libraries that are required by several others should be after these other libraries
     21974  pcfilesprocessed=""
     21975
     21976  save_IFS="$IFS"
     21977  IFS=":"
     21978  for pcfile in $allpcfiles ; do
     21979
     21980    # if $pcfile has been processed already, skip this round
     21981    if test "x$pcfilesprocessed" != x ; then
     21982      for pcfiledone in $pcfilesprocessed ; do
     21983        if test "$pcfiledone" = "$pcfile" ; then
     21984          continue 2
     21985        fi
     21986      done
     21987    fi
     21988
     21989    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21990    #   replace "Libs:" by "echo projlibs="
     21991    #   replace "Cflags:" by "echo projcflags="
     21992    #   remove every line starting with <some word>:
     21993    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21994
     21995    # set projcflags and projlibs variables by running $pcfilemod
     21996    projcflags=
     21997    projlibs=
     21998    eval `sh -c "$pcfilemod"`
     21999
     22000    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22001    if test "${CYGPATH_W}" != "echo"; then
     22002      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22003    fi
     22004    OSI_CFLAGS="$projcflags $OSI_CFLAGS"
     22005
     22006    # set LIBS variable
     22007    OSI_LIBS="$projlibs $OSI_LIBS"
     22008
     22009    # remember that we have processed $pcfile
     22010    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22011
     22012  done
     22013  IFS="$save_IFS"
     22014
     22015
     22016  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22017  # important is here again to obey the reverse order that has been setup before,
     22018  # since then libraries that are required by several others should be after these other libraries
     22019  pcfilesprocessed=""
     22020
     22021  save_IFS="$IFS"
     22022  IFS=":"
     22023  for pcfile in $allpcifiles ; do
     22024
     22025    # if $pcfile has been processed already, skip this round
     22026    if test "x$pcfilesprocessed" != x ; then
     22027      for pcfiledone in $pcfilesprocessed ; do
     22028        if test "$pcfiledone" = "$pcfile" ; then
     22029          continue 2
     22030        fi
     22031      done
     22032    fi
     22033
     22034    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22035    #   replace "Libs:" by "echo projlibs="
     22036    #   replace "Cflags:" by "echo projcflags="
     22037    #   remove every line starting with <some word>:
     22038    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22039
     22040    # set projcflags and projlibs variables by running $pcfilemod
     22041    projcflags=
     22042    projlibs=
     22043    eval `sh -c "$pcfilemod"`
     22044
     22045    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22046    if test "${CYGPATH_W}" != "echo"; then
     22047      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22048    fi
     22049    OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
     22050
     22051    # set LIBS variable
     22052    OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
     22053
     22054    # remember that we have processed $pcfile
     22055    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22056
     22057  done
     22058  IFS="$save_IFS"
     22059
     22060
     22061  # finish up
     22062  coin_has_osi=yes
     22063  echo "$as_me:$LINENO: result: yes" >&5
     22064echo "${ECHO_T}yes" >&6
     22065
     22066cat >>confdefs.h <<\_ACEOF
     22067#define COIN_HAS_OSI 1
     22068_ACEOF
     22069
     22070
     22071  # adjust linker flags for (i)cl compiler
     22072  # 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),
     22073  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22074  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22075  #    everything of the form "-lname" by "libname.lib"
     22076  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22077  then
     22078    OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22079    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'`
     22080  fi
     22081
     22082
     22083    CBCLIB_PCREQUIRES="osi $CBCLIB_PCREQUIRES"
     22084    CBCLIB_CFLAGS="$OSI_CFLAGS $CBCLIB_CFLAGS"
     22085    CBCLIB_LIBS="$OSI_LIBS $CBCLIB_LIBS"
     22086    CBCLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     22087    CBCLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
     22088
     22089    CBCGENERIC_PCREQUIRES="osi $CBCGENERIC_PCREQUIRES"
     22090    CBCGENERIC_CFLAGS="$OSI_CFLAGS $CBCGENERIC_CFLAGS"
     22091    CBCGENERIC_LIBS="$OSI_LIBS $CBCGENERIC_LIBS"
     22092    CBCGENERIC_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     22093    CBCGENERIC_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     22094
     22095
     22096fi
     22097
     22098
     22099
     22100if test $coin_has_osi != notGiven &&
     22101                test $coin_has_osi != skipping; then
     22102  COIN_HAS_OSI_TRUE=
     22103  COIN_HAS_OSI_FALSE='#'
     22104else
     22105  COIN_HAS_OSI_TRUE='#'
     22106  COIN_HAS_OSI_FALSE=
     22107fi
     22108
     22109
     22110
     22111  fi
     22112
     22113else
     22114  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
     22115echo "${ECHO_T}$coin_has_osi" >&6
     22116fi
     22117
     22118if test $coin_has_osi != skipping &&
     22119   test $coin_has_osi != notGiven ; then
     22120
     22121cat >>confdefs.h <<\_ACEOF
     22122#define COIN_HAS_OSI 1
     22123_ACEOF
     22124
     22125
     22126  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     22127if test "${enable_interpackage_dependencies+set}" = set; then
     22128  enableval="$enable_interpackage_dependencies"
     22129
     22130else
     22131  enable_interpackage_dependencies=yes
     22132fi;
     22133
     22134  if test $enable_interpackage_dependencies = yes ; then
     22135     # construct dependencies variables from LIBS variables
     22136     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22137     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     22138     # then remove everything of the form -xxx
     22139     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22140     OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22141
     22142       CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22143
     22144       CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22145
     22146  fi
     22147
     22148  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22149    if test -n "$OSI_CFLAGS" ; then
     22150      { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
     22151echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
     22152    fi
     22153    if test -n "$OSI_LIBS" ; then
     22154      { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
     22155echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
     22156    fi
     22157    if test -n "$OSI_DEPENDENCIES" ; then
     22158      { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
     22159echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
     22160    fi
     22161    if test -n "$OSI_DATA" ; then
     22162      { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
     22163echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
     22164    fi
     22165    if test -n "$OSI_CFLAGS" ; then
     22166      { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
     22167echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
     22168    fi
     22169
     22170      { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     22171echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     22172      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     22173echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     22174      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     22175echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
     22176
     22177      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     22178echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     22179      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     22180echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     22181      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     22182echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     22183
     22184  fi
     22185fi
     22186
     22187# Define the Makefile conditional
     22188
     22189
     22190if test $coin_has_osi != notGiven &&
     22191                test $coin_has_osi != skipping; then
     22192  COIN_HAS_OSI_TRUE=
     22193  COIN_HAS_OSI_FALSE='#'
     22194else
     22195  COIN_HAS_OSI_TRUE='#'
     22196  COIN_HAS_OSI_FALSE=
     22197fi
     22198
     22199
     22200
     22201if test $coin_has_osi != yes ; then
     22202  { { echo "$as_me:$LINENO: error: \"required package Osi Unavailable.\"" >&5
     22203echo "$as_me: error: \"required package Osi Unavailable.\"" >&2;}
     22204   { (exit 1); exit 1; }; }
     22205fi
     22206
     22207
     22208echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
     22209echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
     22210
     22211coin_has_clp=notGiven
     22212
     22213# check if user wants to skip package in any case
     22214if test x"$COIN_SKIP_PROJECTS" != x; then
     22215  for dir in $COIN_SKIP_PROJECTS; do
     22216    if test $dir = "Clp"; then
     22217      coin_has_clp=skipping
     22218    fi
     22219  done
     22220fi
     22221
     22222CLP_LIBS=
     22223CLP_CFLAGS=
     22224CLP_DATA=
     22225
     22226
     22227
     22228
     22229
     22230
     22231
     22232
     22233
     22234
     22235
     22236
     22237
     22238
     22239
     22240
     22241
     22242
     22243
     22244
     22245
     22246
     22247
     22248
     22249
     22250#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     22251if test $coin_has_clp != skipping; then
     22252
     22253# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
     22254if test "${with_clp_lib+set}" = set; then
     22255  withval="$with_clp_lib"
     22256  if test "$withval" = no ; then
     22257       coin_has_clp=skipping
     22258     else
     22259       coin_has_clp=yes
     22260       CLP_LIBS="$withval"
     22261
     22262         CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
     22263         CBCLIB_LIBS="$withval $CBCLIB_LIBS"
     22264
     22265         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     22266         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     22267
     22268     fi
     22269
     22270fi;
     22271fi
     22272
     22273if test $coin_has_clp != skipping; then
     22274
     22275# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
     22276if test "${with_clp_incdir+set}" = set; then
     22277  withval="$with_clp_incdir"
     22278  if test "$withval" = no ; then
     22279       coin_has_clp=skipping
     22280     else
     22281       coin_has_clp=yes
     22282       CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     22283       CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     22284     fi
     22285
     22286fi;
     22287fi
     22288
     22289if test $coin_has_clp != skipping; then
     22290
     22291# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
     22292if test "${with_clp_datadir+set}" = set; then
     22293  withval="$with_clp_datadir"
     22294  if test "$withval" = no ; then
     22295       coin_has_clp=skipping
     22296     else
     22297       coin_has_clp=yes
     22298       CLP_DATA="$withval"
     22299     fi
     22300
     22301fi;
     22302fi
     22303
     22304if test $coin_has_clp = notGiven; then
     22305  if test -n "$PKG_CONFIG" ; then
     22306    # set search path for pkg-config
     22307    # need to export variable to be sure that the following pkg-config gets these values
     22308    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22309    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22310    export PKG_CONFIG_PATH
     22311
     22312    # let pkg-config do it's magic
     22313
     22314
     22315
     22316if test -n "$PKG_CONFIG" ; then
     22317  if $PKG_CONFIG --exists "osi-clp"; then
     22318    CLP_VERSIONS="`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`"
     22319     cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
     22320    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22321        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22322        # but only do this if is not trivial
     22323    if test "$CYGPATH_W" != "echo" ; then
     22324      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22325      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22326    fi
     22327    CLP_CFLAGS="$cflags"
     22328    CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
     22329    CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
     22330     coin_has_clp=yes
     22331        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
     22332echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
     22333
     22334        # adjust linker flags for (i)cl compiler
     22335        # 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)
     22336        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22337        then
     22338          CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22339        fi
     22340
     22341        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     22342
     22343          CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
     22344          CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
     22345          CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
     22346
     22347          CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
     22348          CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
     22349          CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
     22350
     22351
     22352
     22353  else
     22354    CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
     22355      coin_has_clp=notGiven
     22356        echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
     22357echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
     22358
     22359  fi
     22360else
     22361  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
     22362echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
     22363   { (exit 1); exit 1; }; }
     22364fi
     22365
     22366
     22367
     22368
     22369    # reset PKG_CONFIG_PATH variable
     22370    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22371    export PKG_CONFIG_PATH
     22372
     22373  else
     22374    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22375echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22376
     22377echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
     22378echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
     22379
     22380coin_has_clp=notGiven
     22381CLP_LIBS=
     22382CLP_LIBS_INSTALLED=
     22383CLP_CFLAGS=
     22384CLP_CFLAGS_INSTALLED=
     22385CLP_DATA=
     22386CLP_DATA_INSTALLED=
     22387
     22388# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x)
     22389projtoprocess="osi-clp"
     22390
     22391# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22392# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22393# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     22394# also, we setup the DATA variable
     22395allproj=""
     22396allpcfiles=""
     22397allpcifiles=""
     22398while test "x$projtoprocess" != x ; do
     22399
     22400  for proj in $projtoprocess ; do
     22401    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22402    pcfile=""
     22403    save_IFS="$IFS"
     22404    IFS=":"
     22405    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22406      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     22407      if test -r "$dir/${proj}-uninstalled.pc" ; then
     22408        pcfile="$dir/$proj-uninstalled.pc"
     22409        if test -r "$dir/${proj}.pc" ; then
     22410          pcifile="$dir/${proj}.pc"
     22411        else
     22412          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22413echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22414          pcifile=
     22415        fi
     22416        break
     22417      fi
     22418    done
     22419    IFS="$save_IFS"
     22420
     22421    if test "x$pcfile" != x ; then
     22422      # read dependencies from $pcfile and filter it
     22423      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22424
     22425      # add projrequires to the front of the list of projects that have to be processed next
     22426      # at the same time, remove $proj from this list
     22427      projtoprocess=${projtoprocess/$proj/$projrequires}
     22428
     22429      # read DATA from $pcfile, if _DATA is still empty
     22430      if test "x$CLP_DATA" = x ; then
     22431        projdatadir=
     22432        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22433        eval `sh -c "$pcfilemod"`
     22434        CLP_DATA="$projdatadir"
     22435      fi
     22436
     22437      allproj="$allproj $proj"
     22438      allpcfiles="$pcfile:$allpcfiles"
     22439
     22440    else
     22441      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22442echo "${ECHO_T}no, dependency $proj not available" >&6
     22443      allproj=fail
     22444      break 2
     22445    fi
     22446
     22447    if test "x$pcifile" != x ; then
     22448      allpcifiles="$pcifile:$allpcifiles"
     22449
     22450      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22451      if test "x$CLP_DATA_INSTALLED" = x ; then
     22452        projdatadir=
     22453        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22454        eval `sh -c "$pcifilemod"`
     22455        if test "${CYGPATH_W}" != "echo"; then
     22456          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22457        fi
     22458        CLP_DATA_INSTALLED="$projdatadir"
     22459      fi
     22460
     22461    fi
     22462
     22463    break
     22464  done
     22465
     22466  # remove spaces on begin of $projtoprocess
     22467  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22468
     22469done
     22470
     22471if test "$allproj" != fail ; then
     22472
     22473  # now go through the list of .pc files and assemble compiler and linker flags
     22474  # important is here to obey the reverse order that has been setup before,
     22475  # since then libraries that are required by several others should be after these other libraries
     22476  pcfilesprocessed=""
     22477
     22478  save_IFS="$IFS"
     22479  IFS=":"
     22480  for pcfile in $allpcfiles ; do
     22481
     22482    # if $pcfile has been processed already, skip this round
     22483    if test "x$pcfilesprocessed" != x ; then
     22484      for pcfiledone in $pcfilesprocessed ; do
     22485        if test "$pcfiledone" = "$pcfile" ; then
     22486          continue 2
     22487        fi
     22488      done
     22489    fi
     22490
     22491    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22492    #   replace "Libs:" by "echo projlibs="
     22493    #   replace "Cflags:" by "echo projcflags="
     22494    #   remove every line starting with <some word>:
     22495    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22496
     22497    # set projcflags and projlibs variables by running $pcfilemod
     22498    projcflags=
     22499    projlibs=
     22500    eval `sh -c "$pcfilemod"`
     22501
     22502    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22503    if test "${CYGPATH_W}" != "echo"; then
     22504      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22505    fi
     22506    CLP_CFLAGS="$projcflags $CLP_CFLAGS"
     22507
     22508    # set LIBS variable
     22509    CLP_LIBS="$projlibs $CLP_LIBS"
     22510
     22511    # remember that we have processed $pcfile
     22512    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22513
     22514  done
     22515  IFS="$save_IFS"
     22516
     22517
     22518  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22519  # important is here again to obey the reverse order that has been setup before,
     22520  # since then libraries that are required by several others should be after these other libraries
     22521  pcfilesprocessed=""
     22522
     22523  save_IFS="$IFS"
     22524  IFS=":"
     22525  for pcfile in $allpcifiles ; do
     22526
     22527    # if $pcfile has been processed already, skip this round
     22528    if test "x$pcfilesprocessed" != x ; then
     22529      for pcfiledone in $pcfilesprocessed ; do
     22530        if test "$pcfiledone" = "$pcfile" ; then
     22531          continue 2
     22532        fi
     22533      done
     22534    fi
     22535
     22536    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22537    #   replace "Libs:" by "echo projlibs="
     22538    #   replace "Cflags:" by "echo projcflags="
     22539    #   remove every line starting with <some word>:
     22540    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22541
     22542    # set projcflags and projlibs variables by running $pcfilemod
     22543    projcflags=
     22544    projlibs=
     22545    eval `sh -c "$pcfilemod"`
     22546
     22547    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22548    if test "${CYGPATH_W}" != "echo"; then
     22549      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22550    fi
     22551    CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
     22552
     22553    # set LIBS variable
     22554    CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
     22555
     22556    # remember that we have processed $pcfile
     22557    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22558
     22559  done
     22560  IFS="$save_IFS"
     22561
     22562
     22563  # finish up
     22564  coin_has_clp=yes
     22565  echo "$as_me:$LINENO: result: yes" >&5
     22566echo "${ECHO_T}yes" >&6
     22567
     22568cat >>confdefs.h <<\_ACEOF
     22569#define COIN_HAS_CLP 1
     22570_ACEOF
     22571
     22572
     22573  # adjust linker flags for (i)cl compiler
     22574  # 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),
     22575  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22576  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22577  #    everything of the form "-lname" by "libname.lib"
     22578  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22579  then
     22580    CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22581    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'`
     22582  fi
     22583
     22584
     22585    CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
     22586    CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
     22587    CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
     22588    CBCLIB_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     22589    CBCLIB_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
     22590
     22591    CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
     22592    CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
     22593    CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
     22594    CBCGENERIC_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     22595    CBCGENERIC_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     22596
     22597
     22598fi
     22599
     22600
     22601
     22602if test $coin_has_clp != notGiven &&
     22603                test $coin_has_clp != skipping; then
     22604  COIN_HAS_CLP_TRUE=
     22605  COIN_HAS_CLP_FALSE='#'
     22606else
     22607  COIN_HAS_CLP_TRUE='#'
     22608  COIN_HAS_CLP_FALSE=
     22609fi
     22610
     22611
     22612
     22613  fi
     22614
     22615else
     22616  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     22617echo "${ECHO_T}$coin_has_clp" >&6
     22618fi
     22619
     22620if test $coin_has_clp != skipping &&
     22621   test $coin_has_clp != notGiven ; then
     22622
     22623cat >>confdefs.h <<\_ACEOF
     22624#define COIN_HAS_CLP 1
     22625_ACEOF
     22626
     22627
     22628  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     22629if test "${enable_interpackage_dependencies+set}" = set; then
     22630  enableval="$enable_interpackage_dependencies"
     22631
     22632else
     22633  enable_interpackage_dependencies=yes
     22634fi;
     22635
     22636  if test $enable_interpackage_dependencies = yes ; then
     22637     # construct dependencies variables from LIBS variables
     22638     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22639     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     22640     # then remove everything of the form -xxx
     22641     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22642     CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22643
     22644       CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22645
     22646       CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22647
     22648  fi
     22649
     22650  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22651    if test -n "$CLP_CFLAGS" ; then
     22652      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     22653echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
     22654    fi
     22655    if test -n "$CLP_LIBS" ; then
     22656      { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
     22657echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
     22658    fi
     22659    if test -n "$CLP_DEPENDENCIES" ; then
     22660      { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
     22661echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
     22662    fi
     22663    if test -n "$CLP_DATA" ; then
     22664      { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
     22665echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
     22666    fi
     22667    if test -n "$CLP_CFLAGS" ; then
     22668      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     22669echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
     22670    fi
     22671
     22672      { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     22673echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     22674      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     22675echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     22676      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     22677echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
     22678
     22679      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     22680echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     22681      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     22682echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     22683      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     22684echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
     22685
     22686  fi
     22687fi
     22688
     22689# Define the Makefile conditional
     22690
     22691
     22692if test $coin_has_clp != notGiven &&
     22693                test $coin_has_clp != skipping; then
     22694  COIN_HAS_CLP_TRUE=
     22695  COIN_HAS_CLP_FALSE='#'
     22696else
     22697  COIN_HAS_CLP_TRUE='#'
     22698  COIN_HAS_CLP_FALSE=
     22699fi
     22700
     22701
     22702
     22703if test $coin_has_clp != yes ; then
     22704  { { echo "$as_me:$LINENO: error: \"required package Clp Unavailable.\"" >&5
     22705echo "$as_me: error: \"required package Clp Unavailable.\"" >&2;}
     22706   { (exit 1); exit 1; }; }
     22707fi
     22708
     22709
     22710echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
     22711echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
     22712
     22713coin_has_cbc=notGiven
     22714
     22715# check if user wants to skip package in any case
     22716if test x"$COIN_SKIP_PROJECTS" != x; then
     22717  for dir in $COIN_SKIP_PROJECTS; do
     22718    if test $dir = "Cbc"; then
    2055322719      coin_has_cbc=skipping
    2055422720    fi
     
    2055622722fi
    2055722723
     22724CBC_LIBS=
     22725CBC_CFLAGS=
     22726CBC_DATA=
     22727
     22728
     22729
     22730
     22731
     22732
     22733
     22734
     22735
     22736
     22737
     22738
     22739
     22740
     22741
     22742
     22743
     22744#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    2055822745if test $coin_has_cbc != skipping; then
    20559   if test $PACKAGE_TARNAME = cbc; then
    20560     coin_has_cbc=.
     22746
     22747# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
     22748if test "${with_cbc_lib+set}" = set; then
     22749  withval="$with_cbc_lib"
     22750  if test "$withval" = no ; then
     22751       coin_has_cbc=skipping
     22752     else
     22753       coin_has_cbc=yes
     22754       CBC_LIBS="$withval"
     22755
     22756         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     22757         COINMP_LIBS="$withval $COINMP_LIBS"
     22758
     22759     fi
     22760
     22761fi;
     22762fi
     22763
     22764if test $coin_has_cbc != skipping; then
     22765
     22766# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
     22767if test "${with_cbc_incdir+set}" = set; then
     22768  withval="$with_cbc_incdir"
     22769  if test "$withval" = no ; then
     22770       coin_has_cbc=skipping
     22771     else
     22772       coin_has_cbc=yes
     22773       CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
     22774       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     22775     fi
     22776
     22777fi;
     22778fi
     22779
     22780if test $coin_has_cbc != skipping; then
     22781
     22782# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
     22783if test "${with_cbc_datadir+set}" = set; then
     22784  withval="$with_cbc_datadir"
     22785  if test "$withval" = no ; then
     22786       coin_has_cbc=skipping
     22787     else
     22788       coin_has_cbc=yes
     22789       CBC_DATA="$withval"
     22790     fi
     22791
     22792fi;
     22793fi
     22794
     22795if test $coin_has_cbc = notGiven; then
     22796  if test -n "$PKG_CONFIG" ; then
     22797    # set search path for pkg-config
     22798    # need to export variable to be sure that the following pkg-config gets these values
     22799    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22800    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22801    export PKG_CONFIG_PATH
     22802
     22803    # let pkg-config do it's magic
     22804
     22805
     22806
     22807if test -n "$PKG_CONFIG" ; then
     22808  if $PKG_CONFIG --exists "cbc"; then
     22809    CBC_VERSIONS="`$PKG_CONFIG --modversion "cbc" 2>/dev/null | tr '\n' ' '`"
     22810     cflags=`$PKG_CONFIG --cflags "cbc" 2>/dev/null`
     22811    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22812        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22813        # but only do this if is not trivial
     22814    if test "$CYGPATH_W" != "echo" ; then
     22815      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22816      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22817    fi
     22818    CBC_CFLAGS="$cflags"
     22819    CBC_LIBS=`$PKG_CONFIG --libs "cbc" 2>/dev/null`
     22820    CBC_DATA=`$PKG_CONFIG --variable=datadir "cbc" 2>/dev/null`
     22821     coin_has_cbc=yes
     22822        echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
     22823echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
     22824
     22825        # adjust linker flags for (i)cl compiler
     22826        # 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)
     22827        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22828        then
     22829          CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22830        fi
     22831
     22832        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     22833
     22834          COINMP_PCREQUIRES="cbc $COINMP_PCREQUIRES"
     22835          COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
     22836          COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
     22837
     22838
     22839
    2056122840  else
    20562     if test -d $srcdir/../Cbc; then
    20563       coin_has_cbc=../Cbc
     22841    CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cbc"`
     22842      coin_has_cbc=notGiven
     22843        echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
     22844echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
     22845
     22846  fi
     22847else
     22848  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
     22849echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
     22850   { (exit 1); exit 1; }; }
     22851fi
     22852
     22853
     22854
     22855
     22856    # reset PKG_CONFIG_PATH variable
     22857    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22858    export PKG_CONFIG_PATH
     22859
     22860  else
     22861    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22862echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22863
     22864echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
     22865echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
     22866
     22867coin_has_cbc=notGiven
     22868CBC_LIBS=
     22869CBC_LIBS_INSTALLED=
     22870CBC_CFLAGS=
     22871CBC_CFLAGS_INSTALLED=
     22872CBC_DATA=
     22873CBC_DATA_INSTALLED=
     22874
     22875# initial list of dependencies is "cbc", but we need to filter out version number specifications (= x, <= x, >= x)
     22876projtoprocess="cbc"
     22877
     22878# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22879# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22880# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     22881# also, we setup the DATA variable
     22882allproj=""
     22883allpcfiles=""
     22884allpcifiles=""
     22885while test "x$projtoprocess" != x ; do
     22886
     22887  for proj in $projtoprocess ; do
     22888    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22889    pcfile=""
     22890    save_IFS="$IFS"
     22891    IFS=":"
     22892    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22893      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     22894      if test -r "$dir/${proj}-uninstalled.pc" ; then
     22895        pcfile="$dir/$proj-uninstalled.pc"
     22896        if test -r "$dir/${proj}.pc" ; then
     22897          pcifile="$dir/${proj}.pc"
     22898        else
     22899          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22900echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22901          pcifile=
     22902        fi
     22903        break
     22904      fi
     22905    done
     22906    IFS="$save_IFS"
     22907
     22908    if test "x$pcfile" != x ; then
     22909      # read dependencies from $pcfile and filter it
     22910      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22911
     22912      # add projrequires to the front of the list of projects that have to be processed next
     22913      # at the same time, remove $proj from this list
     22914      projtoprocess=${projtoprocess/$proj/$projrequires}
     22915
     22916      # read DATA from $pcfile, if _DATA is still empty
     22917      if test "x$CBC_DATA" = x ; then
     22918        projdatadir=
     22919        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22920        eval `sh -c "$pcfilemod"`
     22921        CBC_DATA="$projdatadir"
     22922      fi
     22923
     22924      allproj="$allproj $proj"
     22925      allpcfiles="$pcfile:$allpcfiles"
     22926
     22927    else
     22928      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22929echo "${ECHO_T}no, dependency $proj not available" >&6
     22930      allproj=fail
     22931      break 2
    2056422932    fi
    20565   fi
    20566 fi
    20567 
    20568 if test $coin_has_cbc != unavailable &&
    20569    test $coin_has_cbc != skipping; then
    20570   # Set the #define if the component is available
     22933
     22934    if test "x$pcifile" != x ; then
     22935      allpcifiles="$pcifile:$allpcifiles"
     22936
     22937      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22938      if test "x$CBC_DATA_INSTALLED" = x ; then
     22939        projdatadir=
     22940        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22941        eval `sh -c "$pcifilemod"`
     22942        if test "${CYGPATH_W}" != "echo"; then
     22943          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22944        fi
     22945        CBC_DATA_INSTALLED="$projdatadir"
     22946      fi
     22947
     22948    fi
     22949
     22950    break
     22951  done
     22952
     22953  # remove spaces on begin of $projtoprocess
     22954  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22955
     22956done
     22957
     22958if test "$allproj" != fail ; then
     22959
     22960  # now go through the list of .pc files and assemble compiler and linker flags
     22961  # important is here to obey the reverse order that has been setup before,
     22962  # since then libraries that are required by several others should be after these other libraries
     22963  pcfilesprocessed=""
     22964
     22965  save_IFS="$IFS"
     22966  IFS=":"
     22967  for pcfile in $allpcfiles ; do
     22968
     22969    # if $pcfile has been processed already, skip this round
     22970    if test "x$pcfilesprocessed" != x ; then
     22971      for pcfiledone in $pcfilesprocessed ; do
     22972        if test "$pcfiledone" = "$pcfile" ; then
     22973          continue 2
     22974        fi
     22975      done
     22976    fi
     22977
     22978    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22979    #   replace "Libs:" by "echo projlibs="
     22980    #   replace "Cflags:" by "echo projcflags="
     22981    #   remove every line starting with <some word>:
     22982    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22983
     22984    # set projcflags and projlibs variables by running $pcfilemod
     22985    projcflags=
     22986    projlibs=
     22987    eval `sh -c "$pcfilemod"`
     22988
     22989    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22990    if test "${CYGPATH_W}" != "echo"; then
     22991      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22992    fi
     22993    CBC_CFLAGS="$projcflags $CBC_CFLAGS"
     22994
     22995    # set LIBS variable
     22996    CBC_LIBS="$projlibs $CBC_LIBS"
     22997
     22998    # remember that we have processed $pcfile
     22999    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23000
     23001  done
     23002  IFS="$save_IFS"
     23003
     23004
     23005  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23006  # important is here again to obey the reverse order that has been setup before,
     23007  # since then libraries that are required by several others should be after these other libraries
     23008  pcfilesprocessed=""
     23009
     23010  save_IFS="$IFS"
     23011  IFS=":"
     23012  for pcfile in $allpcifiles ; do
     23013
     23014    # if $pcfile has been processed already, skip this round
     23015    if test "x$pcfilesprocessed" != x ; then
     23016      for pcfiledone in $pcfilesprocessed ; do
     23017        if test "$pcfiledone" = "$pcfile" ; then
     23018          continue 2
     23019        fi
     23020      done
     23021    fi
     23022
     23023    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23024    #   replace "Libs:" by "echo projlibs="
     23025    #   replace "Cflags:" by "echo projcflags="
     23026    #   remove every line starting with <some word>:
     23027    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23028
     23029    # set projcflags and projlibs variables by running $pcfilemod
     23030    projcflags=
     23031    projlibs=
     23032    eval `sh -c "$pcfilemod"`
     23033
     23034    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23035    if test "${CYGPATH_W}" != "echo"; then
     23036      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23037    fi
     23038    CBC_CFLAGS_INSTALLED="$projcflags $CBC_CFLAGS_INSTALLED"
     23039
     23040    # set LIBS variable
     23041    CBC_LIBS_INSTALLED="$projlibs $CBC_LIBS_INSTALLED"
     23042
     23043    # remember that we have processed $pcfile
     23044    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23045
     23046  done
     23047  IFS="$save_IFS"
     23048
     23049
     23050  # finish up
     23051  coin_has_cbc=yes
     23052  echo "$as_me:$LINENO: result: yes" >&5
     23053echo "${ECHO_T}yes" >&6
    2057123054
    2057223055cat >>confdefs.h <<\_ACEOF
     
    2057523058
    2057623059
    20577   # Set the variables for source and object code location
    20578 
    20579   CBCSRCDIR=`cd $srcdir/$coin_has_cbc; pwd`
    20580 
    20581   CBCOBJDIR=`pwd`/$coin_has_cbc
    20582 
    20583   CBCDOCDIR=$abs_lib_dir/../../share/doc/coin/Cbc
    20584 fi
    20585 
    20586   # Define the Makefile conditional
    20587 
    20588 
    20589 if test $coin_has_cbc != unavailable &&
     23060  # adjust linker flags for (i)cl compiler
     23061  # 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),
     23062  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23063  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23064  #    everything of the form "-lname" by "libname.lib"
     23065  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23066  then
     23067    CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23068    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'`
     23069  fi
     23070
     23071
     23072    COINMP_PCREQUIRES="cbc $COINMP_PCREQUIRES"
     23073    COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
     23074    COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
     23075    COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     23076    COINMP_LIBS_INSTALLED="$CBC_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     23077
     23078
     23079fi
     23080
     23081
     23082
     23083if test $coin_has_cbc != notGiven &&
    2059023084                test $coin_has_cbc != skipping; then
    2059123085  COIN_HAS_CBC_TRUE=
     
    2059623090fi
    2059723091
    20598 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
     23092
     23093
     23094  fi
     23095
     23096else
     23097  echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
    2059923098echo "${ECHO_T}$coin_has_cbc" >&6
    20600 
    20601 echo "$as_me:$LINENO: checking for COIN project Cgl" >&5
    20602 echo $ECHO_N "checking for COIN project Cgl... $ECHO_C" >&6
    20603 
    20604 # First check, if the sub-project is actually available (ToDo: allow
    20605 # other locations)
    20606 
    20607 coin_has_cgl=unavailable
     23099fi
     23100
     23101if test $coin_has_cbc != skipping &&
     23102   test $coin_has_cbc != notGiven ; then
     23103
     23104cat >>confdefs.h <<\_ACEOF
     23105#define COIN_HAS_CBC 1
     23106_ACEOF
     23107
     23108
     23109  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23110if test "${enable_interpackage_dependencies+set}" = set; then
     23111  enableval="$enable_interpackage_dependencies"
     23112
     23113else
     23114  enable_interpackage_dependencies=yes
     23115fi;
     23116
     23117  if test $enable_interpackage_dependencies = yes ; then
     23118     # construct dependencies variables from LIBS variables
     23119     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23120     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23121     # then remove everything of the form -xxx
     23122     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23123     CBC_DEPENDENCIES=`echo " $CBC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23124
     23125       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23126
     23127  fi
     23128
     23129  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23130    if test -n "$CBC_CFLAGS" ; then
     23131      { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
     23132echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
     23133    fi
     23134    if test -n "$CBC_LIBS" ; then
     23135      { echo "$as_me:$LINENO: Cbc LIBS   are $CBC_LIBS" >&5
     23136echo "$as_me: Cbc LIBS   are $CBC_LIBS" >&6;}
     23137    fi
     23138    if test -n "$CBC_DEPENDENCIES" ; then
     23139      { echo "$as_me:$LINENO: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&5
     23140echo "$as_me: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&6;}
     23141    fi
     23142    if test -n "$CBC_DATA" ; then
     23143      { echo "$as_me:$LINENO: Cbc DATA   is  $CBC_DATA" >&5
     23144echo "$as_me: Cbc DATA   is  $CBC_DATA" >&6;}
     23145    fi
     23146    if test -n "$CBC_CFLAGS" ; then
     23147      { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
     23148echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
     23149    fi
     23150
     23151      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     23152echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     23153      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     23154echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     23155      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     23156echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
     23157
     23158  fi
     23159fi
     23160
     23161# Define the Makefile conditional
     23162
     23163
     23164if test $coin_has_cbc != notGiven &&
     23165                test $coin_has_cbc != skipping; then
     23166  COIN_HAS_CBC_TRUE=
     23167  COIN_HAS_CBC_FALSE='#'
     23168else
     23169  COIN_HAS_CBC_TRUE='#'
     23170  COIN_HAS_CBC_FALSE=
     23171fi
     23172
     23173
     23174
     23175if test $coin_has_cbc != yes; then
     23176  { { echo "$as_me:$LINENO: error: \"Required package Cbc unavailable.\"" >&5
     23177echo "$as_me: error: \"Required package Cbc unavailable.\"" >&2;}
     23178   { (exit 1); exit 1; }; }
     23179fi
     23180
     23181
     23182echo "$as_me:$LINENO: checking for COIN-OR package Dylp" >&5
     23183echo $ECHO_N "checking for COIN-OR package Dylp... $ECHO_C" >&6
     23184
     23185coin_has_dylp=notGiven
     23186
     23187# check if user wants to skip package in any case
    2060823188if test x"$COIN_SKIP_PROJECTS" != x; then
    2060923189  for dir in $COIN_SKIP_PROJECTS; do
    20610     if test $dir = Cgl; then
    20611       coin_has_cgl=skipping
    20612     fi
    20613   done
    20614 fi
    20615 
    20616 if test $coin_has_cgl != skipping; then
    20617   if test $PACKAGE_TARNAME = cgl; then
    20618     coin_has_cgl=.
    20619   else
    20620     if test -d $srcdir/../Cgl; then
    20621       coin_has_cgl=../Cgl
    20622     fi
    20623   fi
    20624 fi
    20625 
    20626 if test $coin_has_cgl != unavailable &&
    20627    test $coin_has_cgl != skipping; then
    20628   # Set the #define if the component is available
    20629 
    20630 cat >>confdefs.h <<\_ACEOF
    20631 #define COIN_HAS_CGL 1
    20632 _ACEOF
    20633 
    20634 
    20635   # Set the variables for source and object code location
    20636 
    20637   CGLSRCDIR=`cd $srcdir/$coin_has_cgl; pwd`
    20638 
    20639   CGLOBJDIR=`pwd`/$coin_has_cgl
    20640 
    20641   CGLDOCDIR=$abs_lib_dir/../../share/doc/coin/Cgl
    20642 fi
    20643 
    20644   # Define the Makefile conditional
    20645 
    20646 
    20647 if test $coin_has_cgl != unavailable &&
    20648                 test $coin_has_cgl != skipping; then
    20649   COIN_HAS_CGL_TRUE=
    20650   COIN_HAS_CGL_FALSE='#'
    20651 else
    20652   COIN_HAS_CGL_TRUE='#'
    20653   COIN_HAS_CGL_FALSE=
    20654 fi
    20655 
    20656 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
    20657 echo "${ECHO_T}$coin_has_cgl" >&6
    20658 
    20659 echo "$as_me:$LINENO: checking for COIN project Clp" >&5
    20660 echo $ECHO_N "checking for COIN project Clp... $ECHO_C" >&6
    20661 
    20662 # First check, if the sub-project is actually available (ToDo: allow
    20663 # other locations)
    20664 
    20665 coin_has_clp=unavailable
    20666 if test x"$COIN_SKIP_PROJECTS" != x; then
    20667   for dir in $COIN_SKIP_PROJECTS; do
    20668     if test $dir = Clp; then
    20669       coin_has_clp=skipping
    20670     fi
    20671   done
    20672 fi
    20673 
    20674 if test $coin_has_clp != skipping; then
    20675   if test $PACKAGE_TARNAME = clp; then
    20676     coin_has_clp=.
    20677   else
    20678     if test -d $srcdir/../Clp; then
    20679       coin_has_clp=../Clp
    20680     fi
    20681   fi
    20682 fi
    20683 
    20684 if test $coin_has_clp != unavailable &&
    20685    test $coin_has_clp != skipping; then
    20686   # Set the #define if the component is available
    20687 
    20688 cat >>confdefs.h <<\_ACEOF
    20689 #define COIN_HAS_CLP 1
    20690 _ACEOF
    20691 
    20692 
    20693   # Set the variables for source and object code location
    20694 
    20695   CLPSRCDIR=`cd $srcdir/$coin_has_clp; pwd`
    20696 
    20697   CLPOBJDIR=`pwd`/$coin_has_clp
    20698 
    20699   CLPDOCDIR=$abs_lib_dir/../../share/doc/coin/Clp
    20700 fi
    20701 
    20702   # Define the Makefile conditional
    20703 
    20704 
    20705 if test $coin_has_clp != unavailable &&
    20706                 test $coin_has_clp != skipping; then
    20707   COIN_HAS_CLP_TRUE=
    20708   COIN_HAS_CLP_FALSE='#'
    20709 else
    20710   COIN_HAS_CLP_TRUE='#'
    20711   COIN_HAS_CLP_FALSE=
    20712 fi
    20713 
    20714 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    20715 echo "${ECHO_T}$coin_has_clp" >&6
    20716 
    20717 echo "$as_me:$LINENO: checking for COIN project CoinUtils" >&5
    20718 echo $ECHO_N "checking for COIN project CoinUtils... $ECHO_C" >&6
    20719 
    20720 # First check, if the sub-project is actually available (ToDo: allow
    20721 # other locations)
    20722 
    20723 coin_has_coinutils=unavailable
    20724 if test x"$COIN_SKIP_PROJECTS" != x; then
    20725   for dir in $COIN_SKIP_PROJECTS; do
    20726     if test $dir = CoinUtils; then
    20727       coin_has_coinutils=skipping
    20728     fi
    20729   done
    20730 fi
    20731 
    20732 if test $coin_has_coinutils != skipping; then
    20733   if test $PACKAGE_TARNAME = coinutils; then
    20734     coin_has_coinutils=.
    20735   else
    20736     if test -d $srcdir/../CoinUtils; then
    20737       coin_has_coinutils=../CoinUtils
    20738     fi
    20739   fi
    20740 fi
    20741 
    20742 if test $coin_has_coinutils != unavailable &&
    20743    test $coin_has_coinutils != skipping; then
    20744   # Set the #define if the component is available
    20745 
    20746 cat >>confdefs.h <<\_ACEOF
    20747 #define COIN_HAS_COINUTILS 1
    20748 _ACEOF
    20749 
    20750 
    20751   # Set the variables for source and object code location
    20752 
    20753   COINUTILSSRCDIR=`cd $srcdir/$coin_has_coinutils; pwd`
    20754 
    20755   COINUTILSOBJDIR=`pwd`/$coin_has_coinutils
    20756 
    20757   COINUTILSDOCDIR=$abs_lib_dir/../../share/doc/coin/CoinUtils
    20758 fi
    20759 
    20760   # Define the Makefile conditional
    20761 
    20762 
    20763 if test $coin_has_coinutils != unavailable &&
    20764                 test $coin_has_coinutils != skipping; then
    20765   COIN_HAS_COINUTILS_TRUE=
    20766   COIN_HAS_COINUTILS_FALSE='#'
    20767 else
    20768   COIN_HAS_COINUTILS_TRUE='#'
    20769   COIN_HAS_COINUTILS_FALSE=
    20770 fi
    20771 
    20772 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    20773 echo "${ECHO_T}$coin_has_coinutils" >&6
    20774 
    20775 echo "$as_me:$LINENO: checking for COIN project Osi" >&5
    20776 echo $ECHO_N "checking for COIN project Osi... $ECHO_C" >&6
    20777 
    20778 # First check, if the sub-project is actually available (ToDo: allow
    20779 # other locations)
    20780 
    20781 coin_has_osi=unavailable
    20782 if test x"$COIN_SKIP_PROJECTS" != x; then
    20783   for dir in $COIN_SKIP_PROJECTS; do
    20784     if test $dir = Osi; then
    20785       coin_has_osi=skipping
    20786     fi
    20787   done
    20788 fi
    20789 
    20790 if test $coin_has_osi != skipping; then
    20791   if test $PACKAGE_TARNAME = osi; then
    20792     coin_has_osi=.
    20793   else
    20794     if test -d $srcdir/../Osi; then
    20795       coin_has_osi=../Osi
    20796     fi
    20797   fi
    20798 fi
    20799 
    20800 if test $coin_has_osi != unavailable &&
    20801    test $coin_has_osi != skipping; then
    20802   # Set the #define if the component is available
    20803 
    20804 cat >>confdefs.h <<\_ACEOF
    20805 #define COIN_HAS_OSI 1
    20806 _ACEOF
    20807 
    20808 
    20809   # Set the variables for source and object code location
    20810 
    20811   OSISRCDIR=`cd $srcdir/$coin_has_osi; pwd`
    20812 
    20813   OSIOBJDIR=`pwd`/$coin_has_osi
    20814 
    20815   OSIDOCDIR=$abs_lib_dir/../../share/doc/coin/Osi
    20816 fi
    20817 
    20818   # Define the Makefile conditional
    20819 
    20820 
    20821 if test $coin_has_osi != unavailable &&
    20822                 test $coin_has_osi != skipping; then
    20823   COIN_HAS_OSI_TRUE=
    20824   COIN_HAS_OSI_FALSE='#'
    20825 else
    20826   COIN_HAS_OSI_TRUE='#'
    20827   COIN_HAS_OSI_FALSE=
    20828 fi
    20829 
    20830 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    20831 echo "${ECHO_T}$coin_has_osi" >&6
    20832 
    20833 echo "$as_me:$LINENO: checking for COIN project DyLP" >&5
    20834 echo $ECHO_N "checking for COIN project DyLP... $ECHO_C" >&6
    20835 
    20836 # First check, if the sub-project is actually available (ToDo: allow
    20837 # other locations)
    20838 
    20839 coin_has_dylp=unavailable
    20840 if test x"$COIN_SKIP_PROJECTS" != x; then
    20841   for dir in $COIN_SKIP_PROJECTS; do
    20842     if test $dir = DyLP; then
     23190    if test $dir = "Dylp"; then
    2084323191      coin_has_dylp=skipping
    2084423192    fi
     
    2084623194fi
    2084723195
     23196DYLP_LIBS=
     23197DYLP_CFLAGS=
     23198DYLP_DATA=
     23199
     23200
     23201
     23202
     23203
     23204
     23205
     23206
     23207
     23208
     23209
     23210
     23211
     23212
     23213
     23214
     23215
     23216#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    2084823217if test $coin_has_dylp != skipping; then
    20849   if test $PACKAGE_TARNAME = dylp; then
    20850     coin_has_dylp=.
     23218
     23219# Check whether --with-m4_tolower(Dylp)-lib or --without-m4_tolower(Dylp)-lib was given.
     23220if test "${with_dylp_lib+set}" = set; then
     23221  withval="$with_dylp_lib"
     23222  if test "$withval" = no ; then
     23223       coin_has_dylp=skipping
     23224     else
     23225       coin_has_dylp=yes
     23226       DYLP_LIBS="$withval"
     23227
     23228         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     23229         COINMP_LIBS="$withval $COINMP_LIBS"
     23230
     23231     fi
     23232
     23233fi;
     23234fi
     23235
     23236if test $coin_has_dylp != skipping; then
     23237
     23238# Check whether --with-m4_tolower(Dylp)-incdir or --without-m4_tolower(Dylp)-incdir was given.
     23239if test "${with_dylp_incdir+set}" = set; then
     23240  withval="$with_dylp_incdir"
     23241  if test "$withval" = no ; then
     23242       coin_has_dylp=skipping
     23243     else
     23244       coin_has_dylp=yes
     23245       DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     23246       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     23247     fi
     23248
     23249fi;
     23250fi
     23251
     23252if test $coin_has_dylp != skipping; then
     23253
     23254# Check whether --with-m4_tolower(Dylp)-datadir or --without-m4_tolower(Dylp)-datadir was given.
     23255if test "${with_dylp_datadir+set}" = set; then
     23256  withval="$with_dylp_datadir"
     23257  if test "$withval" = no ; then
     23258       coin_has_dylp=skipping
     23259     else
     23260       coin_has_dylp=yes
     23261       DYLP_DATA="$withval"
     23262     fi
     23263
     23264fi;
     23265fi
     23266
     23267if test $coin_has_dylp = notGiven; then
     23268  if test -n "$PKG_CONFIG" ; then
     23269    # set search path for pkg-config
     23270    # need to export variable to be sure that the following pkg-config gets these values
     23271    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23272    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23273    export PKG_CONFIG_PATH
     23274
     23275    # let pkg-config do it's magic
     23276
     23277
     23278
     23279if test -n "$PKG_CONFIG" ; then
     23280  if $PKG_CONFIG --exists "osi-dylp"; then
     23281    DYLP_VERSIONS="`$PKG_CONFIG --modversion "osi-dylp" 2>/dev/null | tr '\n' ' '`"
     23282     cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
     23283    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23284        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23285        # but only do this if is not trivial
     23286    if test "$CYGPATH_W" != "echo" ; then
     23287      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23288      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23289    fi
     23290    DYLP_CFLAGS="$cflags"
     23291    DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
     23292    DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
     23293     coin_has_dylp=yes
     23294        echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
     23295echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
     23296
     23297        # adjust linker flags for (i)cl compiler
     23298        # 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)
     23299        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23300        then
     23301          DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23302        fi
     23303
     23304        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     23305
     23306          COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
     23307          COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
     23308          COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
     23309
     23310
     23311
    2085123312  else
    20852     if test -d $srcdir/../DyLP; then
    20853       coin_has_dylp=../DyLP
     23313    DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-dylp"`
     23314      coin_has_dylp=notGiven
     23315        echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
     23316echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
     23317
     23318  fi
     23319else
     23320  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&5
     23321echo "$as_me: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&2;}
     23322   { (exit 1); exit 1; }; }
     23323fi
     23324
     23325
     23326
     23327
     23328    # reset PKG_CONFIG_PATH variable
     23329    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23330    export PKG_CONFIG_PATH
     23331
     23332  else
     23333    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23334echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23335
     23336echo "$as_me:$LINENO: checking for COIN-OR package Dylp (fallback)" >&5
     23337echo $ECHO_N "checking for COIN-OR package Dylp (fallback)... $ECHO_C" >&6
     23338
     23339coin_has_dylp=notGiven
     23340DYLP_LIBS=
     23341DYLP_LIBS_INSTALLED=
     23342DYLP_CFLAGS=
     23343DYLP_CFLAGS_INSTALLED=
     23344DYLP_DATA=
     23345DYLP_DATA_INSTALLED=
     23346
     23347# initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x)
     23348projtoprocess="osi-dylp"
     23349
     23350# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23351# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23352# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23353# also, we setup the DATA variable
     23354allproj=""
     23355allpcfiles=""
     23356allpcifiles=""
     23357while test "x$projtoprocess" != x ; do
     23358
     23359  for proj in $projtoprocess ; do
     23360    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23361    pcfile=""
     23362    save_IFS="$IFS"
     23363    IFS=":"
     23364    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23365      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     23366      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23367        pcfile="$dir/$proj-uninstalled.pc"
     23368        if test -r "$dir/${proj}.pc" ; then
     23369          pcifile="$dir/${proj}.pc"
     23370        else
     23371          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23372echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23373          pcifile=
     23374        fi
     23375        break
     23376      fi
     23377    done
     23378    IFS="$save_IFS"
     23379
     23380    if test "x$pcfile" != x ; then
     23381      # read dependencies from $pcfile and filter it
     23382      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23383
     23384      # add projrequires to the front of the list of projects that have to be processed next
     23385      # at the same time, remove $proj from this list
     23386      projtoprocess=${projtoprocess/$proj/$projrequires}
     23387
     23388      # read DATA from $pcfile, if _DATA is still empty
     23389      if test "x$DYLP_DATA" = x ; then
     23390        projdatadir=
     23391        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23392        eval `sh -c "$pcfilemod"`
     23393        DYLP_DATA="$projdatadir"
     23394      fi
     23395
     23396      allproj="$allproj $proj"
     23397      allpcfiles="$pcfile:$allpcfiles"
     23398
     23399    else
     23400      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23401echo "${ECHO_T}no, dependency $proj not available" >&6
     23402      allproj=fail
     23403      break 2
    2085423404    fi
    20855   fi
    20856 fi
    20857 
    20858 if test $coin_has_dylp != unavailable &&
    20859    test $coin_has_dylp != skipping; then
    20860   # Set the #define if the component is available
     23405
     23406    if test "x$pcifile" != x ; then
     23407      allpcifiles="$pcifile:$allpcifiles"
     23408
     23409      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23410      if test "x$DYLP_DATA_INSTALLED" = x ; then
     23411        projdatadir=
     23412        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23413        eval `sh -c "$pcifilemod"`
     23414        if test "${CYGPATH_W}" != "echo"; then
     23415          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23416        fi
     23417        DYLP_DATA_INSTALLED="$projdatadir"
     23418      fi
     23419
     23420    fi
     23421
     23422    break
     23423  done
     23424
     23425  # remove spaces on begin of $projtoprocess
     23426  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     23427
     23428done
     23429
     23430if test "$allproj" != fail ; then
     23431
     23432  # now go through the list of .pc files and assemble compiler and linker flags
     23433  # important is here to obey the reverse order that has been setup before,
     23434  # since then libraries that are required by several others should be after these other libraries
     23435  pcfilesprocessed=""
     23436
     23437  save_IFS="$IFS"
     23438  IFS=":"
     23439  for pcfile in $allpcfiles ; do
     23440
     23441    # if $pcfile has been processed already, skip this round
     23442    if test "x$pcfilesprocessed" != x ; then
     23443      for pcfiledone in $pcfilesprocessed ; do
     23444        if test "$pcfiledone" = "$pcfile" ; then
     23445          continue 2
     23446        fi
     23447      done
     23448    fi
     23449
     23450    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23451    #   replace "Libs:" by "echo projlibs="
     23452    #   replace "Cflags:" by "echo projcflags="
     23453    #   remove every line starting with <some word>:
     23454    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23455
     23456    # set projcflags and projlibs variables by running $pcfilemod
     23457    projcflags=
     23458    projlibs=
     23459    eval `sh -c "$pcfilemod"`
     23460
     23461    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23462    if test "${CYGPATH_W}" != "echo"; then
     23463      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23464    fi
     23465    DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
     23466
     23467    # set LIBS variable
     23468    DYLP_LIBS="$projlibs $DYLP_LIBS"
     23469
     23470    # remember that we have processed $pcfile
     23471    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23472
     23473  done
     23474  IFS="$save_IFS"
     23475
     23476
     23477  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23478  # important is here again to obey the reverse order that has been setup before,
     23479  # since then libraries that are required by several others should be after these other libraries
     23480  pcfilesprocessed=""
     23481
     23482  save_IFS="$IFS"
     23483  IFS=":"
     23484  for pcfile in $allpcifiles ; do
     23485
     23486    # if $pcfile has been processed already, skip this round
     23487    if test "x$pcfilesprocessed" != x ; then
     23488      for pcfiledone in $pcfilesprocessed ; do
     23489        if test "$pcfiledone" = "$pcfile" ; then
     23490          continue 2
     23491        fi
     23492      done
     23493    fi
     23494
     23495    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23496    #   replace "Libs:" by "echo projlibs="
     23497    #   replace "Cflags:" by "echo projcflags="
     23498    #   remove every line starting with <some word>:
     23499    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23500
     23501    # set projcflags and projlibs variables by running $pcfilemod
     23502    projcflags=
     23503    projlibs=
     23504    eval `sh -c "$pcfilemod"`
     23505
     23506    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23507    if test "${CYGPATH_W}" != "echo"; then
     23508      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23509    fi
     23510    DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED"
     23511
     23512    # set LIBS variable
     23513    DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED"
     23514
     23515    # remember that we have processed $pcfile
     23516    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23517
     23518  done
     23519  IFS="$save_IFS"
     23520
     23521
     23522  # finish up
     23523  coin_has_dylp=yes
     23524  echo "$as_me:$LINENO: result: yes" >&5
     23525echo "${ECHO_T}yes" >&6
    2086123526
    2086223527cat >>confdefs.h <<\_ACEOF
     
    2086523530
    2086623531
    20867   # Set the variables for source and object code location
    20868 
    20869   DYLPSRCDIR=`cd $srcdir/$coin_has_dylp; pwd`
    20870 
    20871   DYLPOBJDIR=`pwd`/$coin_has_dylp
    20872 
    20873   DYLPDOCDIR=$abs_lib_dir/../../share/doc/coin/DyLP
    20874 fi
    20875 
    20876   # Define the Makefile conditional
    20877 
    20878 
    20879 if test $coin_has_dylp != unavailable &&
     23532  # adjust linker flags for (i)cl compiler
     23533  # 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),
     23534  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23535  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23536  #    everything of the form "-lname" by "libname.lib"
     23537  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23538  then
     23539    DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23540    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'`
     23541  fi
     23542
     23543
     23544    COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
     23545    COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
     23546    COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
     23547    COINMP_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     23548    COINMP_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     23549
     23550
     23551fi
     23552
     23553
     23554
     23555if test $coin_has_dylp != notGiven &&
    2088023556                test $coin_has_dylp != skipping; then
    2088123557  COIN_HAS_DYLP_TRUE=
     
    2088623562fi
    2088723563
    20888 echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
     23564
     23565
     23566  fi
     23567
     23568else
     23569  echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    2088923570echo "${ECHO_T}$coin_has_dylp" >&6
    20890 
    20891 echo "$as_me:$LINENO: checking for COIN project Vol" >&5
    20892 echo $ECHO_N "checking for COIN project Vol... $ECHO_C" >&6
    20893 
    20894 # First check, if the sub-project is actually available (ToDo: allow
    20895 # other locations)
    20896 
    20897 coin_has_vol=unavailable
     23571fi
     23572
     23573if test $coin_has_dylp != skipping &&
     23574   test $coin_has_dylp != notGiven ; then
     23575
     23576cat >>confdefs.h <<\_ACEOF
     23577#define COIN_HAS_DYLP 1
     23578_ACEOF
     23579
     23580
     23581  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23582if test "${enable_interpackage_dependencies+set}" = set; then
     23583  enableval="$enable_interpackage_dependencies"
     23584
     23585else
     23586  enable_interpackage_dependencies=yes
     23587fi;
     23588
     23589  if test $enable_interpackage_dependencies = yes ; then
     23590     # construct dependencies variables from LIBS variables
     23591     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23592     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23593     # then remove everything of the form -xxx
     23594     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23595     DYLP_DEPENDENCIES=`echo " $DYLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23596
     23597       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23598
     23599  fi
     23600
     23601  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23602    if test -n "$DYLP_CFLAGS" ; then
     23603      { echo "$as_me:$LINENO: Dylp CFLAGS are $DYLP_CFLAGS" >&5
     23604echo "$as_me: Dylp CFLAGS are $DYLP_CFLAGS" >&6;}
     23605    fi
     23606    if test -n "$DYLP_LIBS" ; then
     23607      { echo "$as_me:$LINENO: Dylp LIBS   are $DYLP_LIBS" >&5
     23608echo "$as_me: Dylp LIBS   are $DYLP_LIBS" >&6;}
     23609    fi
     23610    if test -n "$DYLP_DEPENDENCIES" ; then
     23611      { echo "$as_me:$LINENO: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&5
     23612echo "$as_me: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;}
     23613    fi
     23614    if test -n "$DYLP_DATA" ; then
     23615      { echo "$as_me:$LINENO: Dylp DATA   is  $DYLP_DATA" >&5
     23616echo "$as_me: Dylp DATA   is  $DYLP_DATA" >&6;}
     23617    fi
     23618    if test -n "$DYLP_CFLAGS" ; then
     23619      { echo "$as_me:$LINENO: Dylp CFLAGS are $DYLP_CFLAGS" >&5
     23620echo "$as_me: Dylp CFLAGS are $DYLP_CFLAGS" >&6;}
     23621    fi
     23622
     23623      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     23624echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     23625      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     23626echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     23627      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     23628echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
     23629
     23630  fi
     23631fi
     23632
     23633# Define the Makefile conditional
     23634
     23635
     23636if test $coin_has_dylp != notGiven &&
     23637                test $coin_has_dylp != skipping; then
     23638  COIN_HAS_DYLP_TRUE=
     23639  COIN_HAS_DYLP_FALSE='#'
     23640else
     23641  COIN_HAS_DYLP_TRUE='#'
     23642  COIN_HAS_DYLP_FALSE=
     23643fi
     23644
     23645
     23646
     23647
     23648echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY" >&5
     23649echo $ECHO_N "checking for COIN-OR package SYMPHONY... $ECHO_C" >&6
     23650
     23651coin_has_symphony=notGiven
     23652
     23653# check if user wants to skip package in any case
    2089823654if test x"$COIN_SKIP_PROJECTS" != x; then
    2089923655  for dir in $COIN_SKIP_PROJECTS; do
    20900     if test $dir = Vol; then
     23656    if test $dir = "SYMPHONY"; then
     23657      coin_has_symphony=skipping
     23658    fi
     23659  done
     23660fi
     23661
     23662SYMPHONY_LIBS=
     23663SYMPHONY_CFLAGS=
     23664SYMPHONY_DATA=
     23665
     23666
     23667
     23668
     23669
     23670
     23671
     23672
     23673
     23674
     23675
     23676
     23677
     23678
     23679
     23680
     23681
     23682#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     23683if test $coin_has_symphony != skipping; then
     23684
     23685# Check whether --with-m4_tolower(SYMPHONY)-lib or --without-m4_tolower(SYMPHONY)-lib was given.
     23686if test "${with_symphony_lib+set}" = set; then
     23687  withval="$with_symphony_lib"
     23688  if test "$withval" = no ; then
     23689       coin_has_symphony=skipping
     23690     else
     23691       coin_has_symphony=yes
     23692       SYMPHONY_LIBS="$withval"
     23693
     23694         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     23695         COINMP_LIBS="$withval $COINMP_LIBS"
     23696
     23697     fi
     23698
     23699fi;
     23700fi
     23701
     23702if test $coin_has_symphony != skipping; then
     23703
     23704# Check whether --with-m4_tolower(SYMPHONY)-incdir or --without-m4_tolower(SYMPHONY)-incdir was given.
     23705if test "${with_symphony_incdir+set}" = set; then
     23706  withval="$with_symphony_incdir"
     23707  if test "$withval" = no ; then
     23708       coin_has_symphony=skipping
     23709     else
     23710       coin_has_symphony=yes
     23711       SYMPHONY_CFLAGS="-I`${CYGPATH_W} $withval`"
     23712       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     23713     fi
     23714
     23715fi;
     23716fi
     23717
     23718if test $coin_has_symphony != skipping; then
     23719
     23720# Check whether --with-m4_tolower(SYMPHONY)-datadir or --without-m4_tolower(SYMPHONY)-datadir was given.
     23721if test "${with_symphony_datadir+set}" = set; then
     23722  withval="$with_symphony_datadir"
     23723  if test "$withval" = no ; then
     23724       coin_has_symphony=skipping
     23725     else
     23726       coin_has_symphony=yes
     23727       SYMPHONY_DATA="$withval"
     23728     fi
     23729
     23730fi;
     23731fi
     23732
     23733if test $coin_has_symphony = notGiven; then
     23734  if test -n "$PKG_CONFIG" ; then
     23735    # set search path for pkg-config
     23736    # need to export variable to be sure that the following pkg-config gets these values
     23737    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23738    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23739    export PKG_CONFIG_PATH
     23740
     23741    # let pkg-config do it's magic
     23742
     23743
     23744
     23745if test -n "$PKG_CONFIG" ; then
     23746  if $PKG_CONFIG --exists "osi-sym"; then
     23747    SYMPHONY_VERSIONS="`$PKG_CONFIG --modversion "osi-sym" 2>/dev/null | tr '\n' ' '`"
     23748     cflags=`$PKG_CONFIG --cflags "osi-sym" 2>/dev/null`
     23749    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23750        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23751        # but only do this if is not trivial
     23752    if test "$CYGPATH_W" != "echo" ; then
     23753      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23754      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23755    fi
     23756    SYMPHONY_CFLAGS="$cflags"
     23757    SYMPHONY_LIBS=`$PKG_CONFIG --libs "osi-sym" 2>/dev/null`
     23758    SYMPHONY_DATA=`$PKG_CONFIG --variable=datadir "osi-sym" 2>/dev/null`
     23759     coin_has_symphony=yes
     23760        echo "$as_me:$LINENO: result: yes: $SYMPHONY_VERSIONS" >&5
     23761echo "${ECHO_T}yes: $SYMPHONY_VERSIONS" >&6
     23762
     23763        # adjust linker flags for (i)cl compiler
     23764        # 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)
     23765        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23766        then
     23767          SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23768        fi
     23769
     23770        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     23771
     23772          COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
     23773          COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
     23774          COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
     23775
     23776
     23777
     23778  else
     23779    SYMPHONY_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-sym"`
     23780      coin_has_symphony=notGiven
     23781        echo "$as_me:$LINENO: result: not given: $SYMPHONY_PKG_ERRORS" >&5
     23782echo "${ECHO_T}not given: $SYMPHONY_PKG_ERRORS" >&6
     23783
     23784  fi
     23785else
     23786  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&5
     23787echo "$as_me: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&2;}
     23788   { (exit 1); exit 1; }; }
     23789fi
     23790
     23791
     23792
     23793
     23794    # reset PKG_CONFIG_PATH variable
     23795    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23796    export PKG_CONFIG_PATH
     23797
     23798  else
     23799    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23800echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23801
     23802echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY (fallback)" >&5
     23803echo $ECHO_N "checking for COIN-OR package SYMPHONY (fallback)... $ECHO_C" >&6
     23804
     23805coin_has_symphony=notGiven
     23806SYMPHONY_LIBS=
     23807SYMPHONY_LIBS_INSTALLED=
     23808SYMPHONY_CFLAGS=
     23809SYMPHONY_CFLAGS_INSTALLED=
     23810SYMPHONY_DATA=
     23811SYMPHONY_DATA_INSTALLED=
     23812
     23813# initial list of dependencies is "osi-sym", but we need to filter out version number specifications (= x, <= x, >= x)
     23814projtoprocess="osi-sym"
     23815
     23816# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23817# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23818# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23819# also, we setup the DATA variable
     23820allproj=""
     23821allpcfiles=""
     23822allpcifiles=""
     23823while test "x$projtoprocess" != x ; do
     23824
     23825  for proj in $projtoprocess ; do
     23826    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23827    pcfile=""
     23828    save_IFS="$IFS"
     23829    IFS=":"
     23830    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23831      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     23832      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23833        pcfile="$dir/$proj-uninstalled.pc"
     23834        if test -r "$dir/${proj}.pc" ; then
     23835          pcifile="$dir/${proj}.pc"
     23836        else
     23837          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23838echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23839          pcifile=
     23840        fi
     23841        break
     23842      fi
     23843    done
     23844    IFS="$save_IFS"
     23845
     23846    if test "x$pcfile" != x ; then
     23847      # read dependencies from $pcfile and filter it
     23848      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23849
     23850      # add projrequires to the front of the list of projects that have to be processed next
     23851      # at the same time, remove $proj from this list
     23852      projtoprocess=${projtoprocess/$proj/$projrequires}
     23853
     23854      # read DATA from $pcfile, if _DATA is still empty
     23855      if test "x$SYMPHONY_DATA" = x ; then
     23856        projdatadir=
     23857        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23858        eval `sh -c "$pcfilemod"`
     23859        SYMPHONY_DATA="$projdatadir"
     23860      fi
     23861
     23862      allproj="$allproj $proj"
     23863      allpcfiles="$pcfile:$allpcfiles"
     23864
     23865    else
     23866      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23867echo "${ECHO_T}no, dependency $proj not available" >&6
     23868      allproj=fail
     23869      break 2
     23870    fi
     23871
     23872    if test "x$pcifile" != x ; then
     23873      allpcifiles="$pcifile:$allpcifiles"
     23874
     23875      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23876      if test "x$SYMPHONY_DATA_INSTALLED" = x ; then
     23877        projdatadir=
     23878        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23879        eval `sh -c "$pcifilemod"`
     23880        if test "${CYGPATH_W}" != "echo"; then
     23881          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23882        fi
     23883        SYMPHONY_DATA_INSTALLED="$projdatadir"
     23884      fi
     23885
     23886    fi
     23887
     23888    break
     23889  done
     23890
     23891  # remove spaces on begin of $projtoprocess
     23892  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     23893
     23894done
     23895
     23896if test "$allproj" != fail ; then
     23897
     23898  # now go through the list of .pc files and assemble compiler and linker flags
     23899  # important is here to obey the reverse order that has been setup before,
     23900  # since then libraries that are required by several others should be after these other libraries
     23901  pcfilesprocessed=""
     23902
     23903  save_IFS="$IFS"
     23904  IFS=":"
     23905  for pcfile in $allpcfiles ; do
     23906
     23907    # if $pcfile has been processed already, skip this round
     23908    if test "x$pcfilesprocessed" != x ; then
     23909      for pcfiledone in $pcfilesprocessed ; do
     23910        if test "$pcfiledone" = "$pcfile" ; then
     23911          continue 2
     23912        fi
     23913      done
     23914    fi
     23915
     23916    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23917    #   replace "Libs:" by "echo projlibs="
     23918    #   replace "Cflags:" by "echo projcflags="
     23919    #   remove every line starting with <some word>:
     23920    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23921
     23922    # set projcflags and projlibs variables by running $pcfilemod
     23923    projcflags=
     23924    projlibs=
     23925    eval `sh -c "$pcfilemod"`
     23926
     23927    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23928    if test "${CYGPATH_W}" != "echo"; then
     23929      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23930    fi
     23931    SYMPHONY_CFLAGS="$projcflags $SYMPHONY_CFLAGS"
     23932
     23933    # set LIBS variable
     23934    SYMPHONY_LIBS="$projlibs $SYMPHONY_LIBS"
     23935
     23936    # remember that we have processed $pcfile
     23937    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23938
     23939  done
     23940  IFS="$save_IFS"
     23941
     23942
     23943  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23944  # important is here again to obey the reverse order that has been setup before,
     23945  # since then libraries that are required by several others should be after these other libraries
     23946  pcfilesprocessed=""
     23947
     23948  save_IFS="$IFS"
     23949  IFS=":"
     23950  for pcfile in $allpcifiles ; do
     23951
     23952    # if $pcfile has been processed already, skip this round
     23953    if test "x$pcfilesprocessed" != x ; then
     23954      for pcfiledone in $pcfilesprocessed ; do
     23955        if test "$pcfiledone" = "$pcfile" ; then
     23956          continue 2
     23957        fi
     23958      done
     23959    fi
     23960
     23961    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23962    #   replace "Libs:" by "echo projlibs="
     23963    #   replace "Cflags:" by "echo projcflags="
     23964    #   remove every line starting with <some word>:
     23965    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23966
     23967    # set projcflags and projlibs variables by running $pcfilemod
     23968    projcflags=
     23969    projlibs=
     23970    eval `sh -c "$pcfilemod"`
     23971
     23972    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23973    if test "${CYGPATH_W}" != "echo"; then
     23974      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23975    fi
     23976    SYMPHONY_CFLAGS_INSTALLED="$projcflags $SYMPHONY_CFLAGS_INSTALLED"
     23977
     23978    # set LIBS variable
     23979    SYMPHONY_LIBS_INSTALLED="$projlibs $SYMPHONY_LIBS_INSTALLED"
     23980
     23981    # remember that we have processed $pcfile
     23982    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23983
     23984  done
     23985  IFS="$save_IFS"
     23986
     23987
     23988  # finish up
     23989  coin_has_symphony=yes
     23990  echo "$as_me:$LINENO: result: yes" >&5
     23991echo "${ECHO_T}yes" >&6
     23992
     23993cat >>confdefs.h <<\_ACEOF
     23994#define COIN_HAS_SYMPHONY 1
     23995_ACEOF
     23996
     23997
     23998  # adjust linker flags for (i)cl compiler
     23999  # 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),
     24000  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24001  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24002  #    everything of the form "-lname" by "libname.lib"
     24003  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24004  then
     24005    SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24006    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'`
     24007  fi
     24008
     24009
     24010    COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
     24011    COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
     24012    COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
     24013    COINMP_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     24014    COINMP_LIBS_INSTALLED="$SYMPHONY_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     24015
     24016
     24017fi
     24018
     24019
     24020
     24021if test $coin_has_symphony != notGiven &&
     24022                test $coin_has_symphony != skipping; then
     24023  COIN_HAS_SYMPHONY_TRUE=
     24024  COIN_HAS_SYMPHONY_FALSE='#'
     24025else
     24026  COIN_HAS_SYMPHONY_TRUE='#'
     24027  COIN_HAS_SYMPHONY_FALSE=
     24028fi
     24029
     24030
     24031
     24032  fi
     24033
     24034else
     24035  echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
     24036echo "${ECHO_T}$coin_has_symphony" >&6
     24037fi
     24038
     24039if test $coin_has_symphony != skipping &&
     24040   test $coin_has_symphony != notGiven ; then
     24041
     24042cat >>confdefs.h <<\_ACEOF
     24043#define COIN_HAS_SYMPHONY 1
     24044_ACEOF
     24045
     24046
     24047  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     24048if test "${enable_interpackage_dependencies+set}" = set; then
     24049  enableval="$enable_interpackage_dependencies"
     24050
     24051else
     24052  enable_interpackage_dependencies=yes
     24053fi;
     24054
     24055  if test $enable_interpackage_dependencies = yes ; then
     24056     # construct dependencies variables from LIBS variables
     24057     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24058     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     24059     # then remove everything of the form -xxx
     24060     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24061     SYMPHONY_DEPENDENCIES=`echo " $SYMPHONY_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24062
     24063       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24064
     24065  fi
     24066
     24067  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24068    if test -n "$SYMPHONY_CFLAGS" ; then
     24069      { echo "$as_me:$LINENO: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&5
     24070echo "$as_me: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&6;}
     24071    fi
     24072    if test -n "$SYMPHONY_LIBS" ; then
     24073      { echo "$as_me:$LINENO: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&5
     24074echo "$as_me: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&6;}
     24075    fi
     24076    if test -n "$SYMPHONY_DEPENDENCIES" ; then
     24077      { echo "$as_me:$LINENO: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&5
     24078echo "$as_me: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&6;}
     24079    fi
     24080    if test -n "$SYMPHONY_DATA" ; then
     24081      { echo "$as_me:$LINENO: SYMPHONY DATA   is  $SYMPHONY_DATA" >&5
     24082echo "$as_me: SYMPHONY DATA   is  $SYMPHONY_DATA" >&6;}
     24083    fi
     24084    if test -n "$SYMPHONY_CFLAGS" ; then
     24085      { echo "$as_me:$LINENO: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&5
     24086echo "$as_me: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&6;}
     24087    fi
     24088
     24089      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     24090echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     24091      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     24092echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     24093      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     24094echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
     24095
     24096  fi
     24097fi
     24098
     24099# Define the Makefile conditional
     24100
     24101
     24102if test $coin_has_symphony != notGiven &&
     24103                test $coin_has_symphony != skipping; then
     24104  COIN_HAS_SYMPHONY_TRUE=
     24105  COIN_HAS_SYMPHONY_FALSE='#'
     24106else
     24107  COIN_HAS_SYMPHONY_TRUE='#'
     24108  COIN_HAS_SYMPHONY_FALSE=
     24109fi
     24110
     24111
     24112
     24113
     24114echo "$as_me:$LINENO: checking for COIN-OR package Vol" >&5
     24115echo $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6
     24116
     24117coin_has_vol=notGiven
     24118
     24119# check if user wants to skip package in any case
     24120if test x"$COIN_SKIP_PROJECTS" != x; then
     24121  for dir in $COIN_SKIP_PROJECTS; do
     24122    if test $dir = "Vol"; then
    2090124123      coin_has_vol=skipping
    2090224124    fi
     
    2090424126fi
    2090524127
     24128VOL_LIBS=
     24129VOL_CFLAGS=
     24130VOL_DATA=
     24131
     24132
     24133
     24134
     24135
     24136
     24137
     24138
     24139
     24140
     24141
     24142
     24143
     24144
     24145
     24146
     24147
     24148#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    2090624149if test $coin_has_vol != skipping; then
    20907   if test $PACKAGE_TARNAME = vol; then
    20908     coin_has_vol=.
     24150
     24151# Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
     24152if test "${with_vol_lib+set}" = set; then
     24153  withval="$with_vol_lib"
     24154  if test "$withval" = no ; then
     24155       coin_has_vol=skipping
     24156     else
     24157       coin_has_vol=yes
     24158       VOL_LIBS="$withval"
     24159
     24160         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     24161         COINMP_LIBS="$withval $COINMP_LIBS"
     24162
     24163     fi
     24164
     24165fi;
     24166fi
     24167
     24168if test $coin_has_vol != skipping; then
     24169
     24170# Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
     24171if test "${with_vol_incdir+set}" = set; then
     24172  withval="$with_vol_incdir"
     24173  if test "$withval" = no ; then
     24174       coin_has_vol=skipping
     24175     else
     24176       coin_has_vol=yes
     24177       VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
     24178       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     24179     fi
     24180
     24181fi;
     24182fi
     24183
     24184if test $coin_has_vol != skipping; then
     24185
     24186# Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
     24187if test "${with_vol_datadir+set}" = set; then
     24188  withval="$with_vol_datadir"
     24189  if test "$withval" = no ; then
     24190       coin_has_vol=skipping
     24191     else
     24192       coin_has_vol=yes
     24193       VOL_DATA="$withval"
     24194     fi
     24195
     24196fi;
     24197fi
     24198
     24199if test $coin_has_vol = notGiven; then
     24200  if test -n "$PKG_CONFIG" ; then
     24201    # set search path for pkg-config
     24202    # need to export variable to be sure that the following pkg-config gets these values
     24203    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24204    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     24205    export PKG_CONFIG_PATH
     24206
     24207    # let pkg-config do it's magic
     24208
     24209
     24210
     24211if test -n "$PKG_CONFIG" ; then
     24212  if $PKG_CONFIG --exists "osi-vol"; then
     24213    VOL_VERSIONS="`$PKG_CONFIG --modversion "osi-vol" 2>/dev/null | tr '\n' ' '`"
     24214     cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
     24215    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24216        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24217        # but only do this if is not trivial
     24218    if test "$CYGPATH_W" != "echo" ; then
     24219      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24220      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24221    fi
     24222    VOL_CFLAGS="$cflags"
     24223    VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
     24224    VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
     24225     coin_has_vol=yes
     24226        echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
     24227echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
     24228
     24229        # adjust linker flags for (i)cl compiler
     24230        # 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)
     24231        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24232        then
     24233          VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24234        fi
     24235
     24236        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     24237
     24238          COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
     24239          COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
     24240          COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
     24241
     24242
     24243
    2090924244  else
    20910     if test -d $srcdir/../Vol; then
    20911       coin_has_vol=../Vol
     24245    VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-vol"`
     24246      coin_has_vol=notGiven
     24247        echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
     24248echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
     24249
     24250  fi
     24251else
     24252  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
     24253echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
     24254   { (exit 1); exit 1; }; }
     24255fi
     24256
     24257
     24258
     24259
     24260    # reset PKG_CONFIG_PATH variable
     24261    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24262    export PKG_CONFIG_PATH
     24263
     24264  else
     24265    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     24266echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     24267
     24268echo "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5
     24269echo $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6
     24270
     24271coin_has_vol=notGiven
     24272VOL_LIBS=
     24273VOL_LIBS_INSTALLED=
     24274VOL_CFLAGS=
     24275VOL_CFLAGS_INSTALLED=
     24276VOL_DATA=
     24277VOL_DATA_INSTALLED=
     24278
     24279# initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x)
     24280projtoprocess="osi-vol"
     24281
     24282# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24283# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24284# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     24285# also, we setup the DATA variable
     24286allproj=""
     24287allpcfiles=""
     24288allpcifiles=""
     24289while test "x$projtoprocess" != x ; do
     24290
     24291  for proj in $projtoprocess ; do
     24292    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     24293    pcfile=""
     24294    save_IFS="$IFS"
     24295    IFS=":"
     24296    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     24297      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     24298      if test -r "$dir/${proj}-uninstalled.pc" ; then
     24299        pcfile="$dir/$proj-uninstalled.pc"
     24300        if test -r "$dir/${proj}.pc" ; then
     24301          pcifile="$dir/${proj}.pc"
     24302        else
     24303          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24304echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24305          pcifile=
     24306        fi
     24307        break
     24308      fi
     24309    done
     24310    IFS="$save_IFS"
     24311
     24312    if test "x$pcfile" != x ; then
     24313      # read dependencies from $pcfile and filter it
     24314      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24315
     24316      # add projrequires to the front of the list of projects that have to be processed next
     24317      # at the same time, remove $proj from this list
     24318      projtoprocess=${projtoprocess/$proj/$projrequires}
     24319
     24320      # read DATA from $pcfile, if _DATA is still empty
     24321      if test "x$VOL_DATA" = x ; then
     24322        projdatadir=
     24323        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24324        eval `sh -c "$pcfilemod"`
     24325        VOL_DATA="$projdatadir"
     24326      fi
     24327
     24328      allproj="$allproj $proj"
     24329      allpcfiles="$pcfile:$allpcfiles"
     24330
     24331    else
     24332      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     24333echo "${ECHO_T}no, dependency $proj not available" >&6
     24334      allproj=fail
     24335      break 2
    2091224336    fi
    20913   fi
    20914 fi
    20915 
    20916 if test $coin_has_vol != unavailable &&
    20917    test $coin_has_vol != skipping; then
    20918   # Set the #define if the component is available
     24337
     24338    if test "x$pcifile" != x ; then
     24339      allpcifiles="$pcifile:$allpcifiles"
     24340
     24341      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24342      if test "x$VOL_DATA_INSTALLED" = x ; then
     24343        projdatadir=
     24344        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24345        eval `sh -c "$pcifilemod"`
     24346        if test "${CYGPATH_W}" != "echo"; then
     24347          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24348        fi
     24349        VOL_DATA_INSTALLED="$projdatadir"
     24350      fi
     24351
     24352    fi
     24353
     24354    break
     24355  done
     24356
     24357  # remove spaces on begin of $projtoprocess
     24358  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24359
     24360done
     24361
     24362if test "$allproj" != fail ; then
     24363
     24364  # now go through the list of .pc files and assemble compiler and linker flags
     24365  # important is here to obey the reverse order that has been setup before,
     24366  # since then libraries that are required by several others should be after these other libraries
     24367  pcfilesprocessed=""
     24368
     24369  save_IFS="$IFS"
     24370  IFS=":"
     24371  for pcfile in $allpcfiles ; do
     24372
     24373    # if $pcfile has been processed already, skip this round
     24374    if test "x$pcfilesprocessed" != x ; then
     24375      for pcfiledone in $pcfilesprocessed ; do
     24376        if test "$pcfiledone" = "$pcfile" ; then
     24377          continue 2
     24378        fi
     24379      done
     24380    fi
     24381
     24382    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24383    #   replace "Libs:" by "echo projlibs="
     24384    #   replace "Cflags:" by "echo projcflags="
     24385    #   remove every line starting with <some word>:
     24386    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24387
     24388    # set projcflags and projlibs variables by running $pcfilemod
     24389    projcflags=
     24390    projlibs=
     24391    eval `sh -c "$pcfilemod"`
     24392
     24393    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24394    if test "${CYGPATH_W}" != "echo"; then
     24395      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24396    fi
     24397    VOL_CFLAGS="$projcflags $VOL_CFLAGS"
     24398
     24399    # set LIBS variable
     24400    VOL_LIBS="$projlibs $VOL_LIBS"
     24401
     24402    # remember that we have processed $pcfile
     24403    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24404
     24405  done
     24406  IFS="$save_IFS"
     24407
     24408
     24409  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24410  # important is here again to obey the reverse order that has been setup before,
     24411  # since then libraries that are required by several others should be after these other libraries
     24412  pcfilesprocessed=""
     24413
     24414  save_IFS="$IFS"
     24415  IFS=":"
     24416  for pcfile in $allpcifiles ; do
     24417
     24418    # if $pcfile has been processed already, skip this round
     24419    if test "x$pcfilesprocessed" != x ; then
     24420      for pcfiledone in $pcfilesprocessed ; do
     24421        if test "$pcfiledone" = "$pcfile" ; then
     24422          continue 2
     24423        fi
     24424      done
     24425    fi
     24426
     24427    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24428    #   replace "Libs:" by "echo projlibs="
     24429    #   replace "Cflags:" by "echo projcflags="
     24430    #   remove every line starting with <some word>:
     24431    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24432
     24433    # set projcflags and projlibs variables by running $pcfilemod
     24434    projcflags=
     24435    projlibs=
     24436    eval `sh -c "$pcfilemod"`
     24437
     24438    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24439    if test "${CYGPATH_W}" != "echo"; then
     24440      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24441    fi
     24442    VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED"
     24443
     24444    # set LIBS variable
     24445    VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED"
     24446
     24447    # remember that we have processed $pcfile
     24448    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24449
     24450  done
     24451  IFS="$save_IFS"
     24452
     24453
     24454  # finish up
     24455  coin_has_vol=yes
     24456  echo "$as_me:$LINENO: result: yes" >&5
     24457echo "${ECHO_T}yes" >&6
    2091924458
    2092024459cat >>confdefs.h <<\_ACEOF
     
    2092324462
    2092424463
    20925   # Set the variables for source and object code location
    20926 
    20927   VOLSRCDIR=`cd $srcdir/$coin_has_vol; pwd`
    20928 
    20929   VOLOBJDIR=`pwd`/$coin_has_vol
    20930 
    20931   VOLDOCDIR=$abs_lib_dir/../../share/doc/coin/Vol
    20932 fi
    20933 
    20934   # Define the Makefile conditional
    20935 
    20936 
    20937 if test $coin_has_vol != unavailable &&
     24464  # adjust linker flags for (i)cl compiler
     24465  # 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),
     24466  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24467  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24468  #    everything of the form "-lname" by "libname.lib"
     24469  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24470  then
     24471    VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24472    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'`
     24473  fi
     24474
     24475
     24476    COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
     24477    COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
     24478    COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
     24479    COINMP_CFLAGS_INSTALLED="$VOL_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     24480    COINMP_LIBS_INSTALLED="$VOL_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     24481
     24482
     24483fi
     24484
     24485
     24486
     24487if test $coin_has_vol != notGiven &&
    2093824488                test $coin_has_vol != skipping; then
    2093924489  COIN_HAS_VOL_TRUE=
     
    2094424494fi
    2094524495
    20946 echo "$as_me:$LINENO: result: $coin_has_vol" >&5
     24496
     24497
     24498  fi
     24499
     24500else
     24501  echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    2094724502echo "${ECHO_T}$coin_has_vol" >&6
    20948 
    20949 echo "$as_me:$LINENO: checking for COIN project SYMPHONY" >&5
    20950 echo $ECHO_N "checking for COIN project SYMPHONY... $ECHO_C" >&6
    20951 
    20952 # First check, if the sub-project is actually available (ToDo: allow
    20953 # other locations)
    20954 
    20955 coin_has_symphony=unavailable
    20956 if test x"$COIN_SKIP_PROJECTS" != x; then
    20957   for dir in $COIN_SKIP_PROJECTS; do
    20958     if test $dir = SYMPHONY; then
    20959       coin_has_symphony=skipping
     24503fi
     24504
     24505if test $coin_has_vol != skipping &&
     24506   test $coin_has_vol != notGiven ; then
     24507
     24508cat >>confdefs.h <<\_ACEOF
     24509#define COIN_HAS_VOL 1
     24510_ACEOF
     24511
     24512
     24513  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     24514if test "${enable_interpackage_dependencies+set}" = set; then
     24515  enableval="$enable_interpackage_dependencies"
     24516
     24517else
     24518  enable_interpackage_dependencies=yes
     24519fi;
     24520
     24521  if test $enable_interpackage_dependencies = yes ; then
     24522     # construct dependencies variables from LIBS variables
     24523     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24524     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     24525     # then remove everything of the form -xxx
     24526     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24527     VOL_DEPENDENCIES=`echo " $VOL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24528
     24529       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24530
     24531  fi
     24532
     24533  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24534    if test -n "$VOL_CFLAGS" ; then
     24535      { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     24536echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    2096024537    fi
    20961   done
    20962 fi
    20963 
    20964 if test $coin_has_symphony != skipping; then
    20965   if test $PACKAGE_TARNAME = symphony; then
    20966     coin_has_symphony=.
    20967   else
    20968     if test -d $srcdir/../SYMPHONY; then
    20969       coin_has_symphony=../SYMPHONY
     24538    if test -n "$VOL_LIBS" ; then
     24539      { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
     24540echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    2097024541    fi
     24542    if test -n "$VOL_DEPENDENCIES" ; then
     24543      { echo "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5
     24544echo "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;}
     24545    fi
     24546    if test -n "$VOL_DATA" ; then
     24547      { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
     24548echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
     24549    fi
     24550    if test -n "$VOL_CFLAGS" ; then
     24551      { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     24552echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
     24553    fi
     24554
     24555      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     24556echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     24557      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     24558echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     24559      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     24560echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
     24561
    2097124562  fi
    2097224563fi
    2097324564
    20974 if test $coin_has_symphony != unavailable &&
    20975    test $coin_has_symphony != skipping; then
    20976   # Set the #define if the component is available
    20977 
    20978 cat >>confdefs.h <<\_ACEOF
    20979 #define COIN_HAS_SYMPHONY 1
    20980 _ACEOF
    20981 
    20982 
    20983   # Set the variables for source and object code location
    20984 
    20985   SYMPHONYSRCDIR=`cd $srcdir/$coin_has_symphony; pwd`
    20986 
    20987   SYMPHONYOBJDIR=`pwd`/$coin_has_symphony
    20988 
    20989   SYMPHONYDOCDIR=$abs_lib_dir/../../share/doc/coin/SYMPHONY
    20990 fi
    20991 
    20992   # Define the Makefile conditional
    20993 
    20994 
    20995 if test $coin_has_symphony != unavailable &&
    20996                 test $coin_has_symphony != skipping; then
    20997   COIN_HAS_SYMPHONY_TRUE=
    20998   COIN_HAS_SYMPHONY_FALSE='#'
    20999 else
    21000   COIN_HAS_SYMPHONY_TRUE='#'
    21001   COIN_HAS_SYMPHONY_FALSE=
    21002 fi
    21003 
    21004 echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
    21005 echo "${ECHO_T}$coin_has_symphony" >&6
    21006 
     24565# Define the Makefile conditional
     24566
     24567
     24568if test $coin_has_vol != notGiven &&
     24569                test $coin_has_vol != skipping; then
     24570  COIN_HAS_VOL_TRUE=
     24571  COIN_HAS_VOL_FALSE='#'
     24572else
     24573  COIN_HAS_VOL_TRUE='#'
     24574  COIN_HAS_VOL_FALSE=
     24575fi
     24576
     24577
     24578
     24579
     24580#AC_COIN_HAS_PROJECT(CoinMP)
    2100724581
    2100824582# Decide which one is the default solver
     
    2103624610# Check which third party solvers are available ToDo!
    2103724611
    21038   echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
    21039 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
    21040 
    21041 # Check for header file directory
    21042 
    21043 
    21044 # Check whether --with-cplex-incdir or --without-cplex-incdir was given.
    21045 if test "${with_cplex_incdir+set}" = set; then
    21046   withval="$with_cplex_incdir"
    21047   CPXINCDIR=`cd $withval; pwd`
     24612echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
     24613echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
     24614
     24615coin_has_cpx=notGiven
     24616
     24617# check if user wants to skip package in any case
     24618if test x"$COIN_SKIP_PROJECTS" != x; then
     24619  for dir in $COIN_SKIP_PROJECTS; do
     24620    if test $dir = "Cpx"; then
     24621      coin_has_cpx=skipping
     24622    fi
     24623  done
     24624fi
     24625
     24626CPX_LIBS=
     24627CPX_CFLAGS=
     24628CPX_DATA=
     24629
     24630
     24631
     24632
     24633
     24634
     24635
     24636
     24637
     24638
     24639
     24640
     24641
     24642
     24643
     24644
     24645
     24646#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     24647if test $coin_has_cpx != skipping; then
     24648
     24649# Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
     24650if test "${with_cpx_lib+set}" = set; then
     24651  withval="$with_cpx_lib"
     24652  if test "$withval" = no ; then
     24653       coin_has_cpx=skipping
     24654     else
     24655       coin_has_cpx=yes
     24656       CPX_LIBS="$withval"
     24657
     24658         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     24659         COINMP_LIBS="$withval $COINMP_LIBS"
     24660
     24661     fi
     24662
    2104824663fi;
    21049 
    21050 # Check for library directory
    21051 
    21052 
    21053 # Check whether --with-cplex-lib or --without-cplex-lib was given.
    21054 if test "${with_cplex_lib+set}" = set; then
    21055   withval="$with_cplex_lib"
    21056   CPXLIB=$withval
     24664fi
     24665
     24666if test $coin_has_cpx != skipping; then
     24667
     24668# Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
     24669if test "${with_cpx_incdir+set}" = set; then
     24670  withval="$with_cpx_incdir"
     24671  if test "$withval" = no ; then
     24672       coin_has_cpx=skipping
     24673     else
     24674       coin_has_cpx=yes
     24675       CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     24676       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     24677     fi
     24678
    2105724679fi;
    21058 
    21059 # Switch to disable library check if requested
    21060 
    21061   # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
    21062 if test "${enable_cplex_libcheck+set}" = set; then
    21063   enableval="$enable_cplex_libcheck"
    21064   cplex_libcheck=$enableval
    21065 else
    21066   cplex_libcheck=yes
     24680fi
     24681
     24682if test $coin_has_cpx != skipping; then
     24683
     24684# Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
     24685if test "${with_cpx_datadir+set}" = set; then
     24686  withval="$with_cpx_datadir"
     24687  if test "$withval" = no ; then
     24688       coin_has_cpx=skipping
     24689     else
     24690       coin_has_cpx=yes
     24691       CPX_DATA="$withval"
     24692     fi
     24693
    2106724694fi;
    21068 
    21069 # At this point, if we're going to use the library, both LBRYINCDIR and
    21070 # LBRYLIB must be defined and not empty.
    21071 
    21072   if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
    21073     if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
    21074       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&5
    21075 echo "$as_me: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&2;}
     24695fi
     24696
     24697if test $coin_has_cpx = notGiven; then
     24698  if test -n "$PKG_CONFIG" ; then
     24699    # set search path for pkg-config
     24700    # need to export variable to be sure that the following pkg-config gets these values
     24701    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24702    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     24703    export PKG_CONFIG_PATH
     24704
     24705    # let pkg-config do it's magic
     24706
     24707
     24708
     24709if test -n "$PKG_CONFIG" ; then
     24710  if $PKG_CONFIG --exists "osi-cpx"; then
     24711    CPX_VERSIONS="`$PKG_CONFIG --modversion "osi-cpx" 2>/dev/null | tr '\n' ' '`"
     24712     cflags=`$PKG_CONFIG --cflags "osi-cpx" 2>/dev/null`
     24713    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24714        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24715        # but only do this if is not trivial
     24716    if test "$CYGPATH_W" != "echo" ; then
     24717      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24718      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24719    fi
     24720    CPX_CFLAGS="$cflags"
     24721    CPX_LIBS=`$PKG_CONFIG --libs "osi-cpx" 2>/dev/null`
     24722    CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cpx" 2>/dev/null`
     24723     coin_has_cpx=yes
     24724        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
     24725echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
     24726
     24727        # adjust linker flags for (i)cl compiler
     24728        # 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)
     24729        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24730        then
     24731          CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24732        fi
     24733
     24734        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     24735
     24736          COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
     24737          COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
     24738          COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
     24739
     24740
     24741
     24742  else
     24743    CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cpx"`
     24744      coin_has_cpx=notGiven
     24745        echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
     24746echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
     24747
     24748  fi
     24749else
     24750  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
     24751echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
    2107624752   { (exit 1); exit 1; }; }
     24753fi
     24754
     24755
     24756
     24757
     24758    # reset PKG_CONFIG_PATH variable
     24759    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24760    export PKG_CONFIG_PATH
     24761
     24762  else
     24763    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     24764echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     24765
     24766echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
     24767echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
     24768
     24769coin_has_cpx=notGiven
     24770CPX_LIBS=
     24771CPX_LIBS_INSTALLED=
     24772CPX_CFLAGS=
     24773CPX_CFLAGS_INSTALLED=
     24774CPX_DATA=
     24775CPX_DATA_INSTALLED=
     24776
     24777# initial list of dependencies is "osi-cpx", but we need to filter out version number specifications (= x, <= x, >= x)
     24778projtoprocess="osi-cpx"
     24779
     24780# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24781# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24782# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     24783# also, we setup the DATA variable
     24784allproj=""
     24785allpcfiles=""
     24786allpcifiles=""
     24787while test "x$projtoprocess" != x ; do
     24788
     24789  for proj in $projtoprocess ; do
     24790    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     24791    pcfile=""
     24792    save_IFS="$IFS"
     24793    IFS=":"
     24794    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     24795      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     24796      if test -r "$dir/${proj}-uninstalled.pc" ; then
     24797        pcfile="$dir/$proj-uninstalled.pc"
     24798        if test -r "$dir/${proj}.pc" ; then
     24799          pcifile="$dir/${proj}.pc"
     24800        else
     24801          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24802echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24803          pcifile=
     24804        fi
     24805        break
     24806      fi
     24807    done
     24808    IFS="$save_IFS"
     24809
     24810    if test "x$pcfile" != x ; then
     24811      # read dependencies from $pcfile and filter it
     24812      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24813
     24814      # add projrequires to the front of the list of projects that have to be processed next
     24815      # at the same time, remove $proj from this list
     24816      projtoprocess=${projtoprocess/$proj/$projrequires}
     24817
     24818      # read DATA from $pcfile, if _DATA is still empty
     24819      if test "x$CPX_DATA" = x ; then
     24820        projdatadir=
     24821        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24822        eval `sh -c "$pcfilemod"`
     24823        CPX_DATA="$projdatadir"
     24824      fi
     24825
     24826      allproj="$allproj $proj"
     24827      allpcfiles="$pcfile:$allpcfiles"
     24828
     24829    else
     24830      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     24831echo "${ECHO_T}no, dependency $proj not available" >&6
     24832      allproj=fail
     24833      break 2
    2107724834    fi
    21078     coin_has_cpx=true
    21079     echo "$as_me:$LINENO: result: yes" >&5
    21080 echo "${ECHO_T}yes" >&6
    21081   else
    21082     coin_has_cpx=false
    21083     echo "$as_me:$LINENO: result: no" >&5
    21084 echo "${ECHO_T}no" >&6
    21085   fi
    21086 
    21087 # If we have instructions for use, consider header and link checks.
    21088 
    21089   if test $coin_has_cpx = true; then
    21090 
    21091 # If argument 3 (file) is given, check for the file. Typically this will be a
    21092 # header file, but that's not assumed.
    21093 
    21094     if test -r $CPXINCDIR/cplex.h; then
    21095 
    21096   :
    21097 else
    21098   { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
    21099 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
    21100    { (exit 1); exit 1; }; }
    21101   :
    21102 fi
    21103 
    21104 
    21105 # Now see if we can link the function. There are arguments for and against
    21106 # assuming argument 3 is a header file declaring the function. A correct
    21107 # function declaration is the main argument in favour. Having to cope with
    21108 # possible dependencies or other oddities are the main arguments against.
    21109 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21110 # Obviously, this has limits.
    21111 
    21112     if test x"$cplex_libcheck" != xno; then
    21113            coin_save_LIBS="$LIBS"
    21114            LIBS="$CPXLIB $ADDLIBS "
    21115            coin_CPX_link=no
    21116            ac_ext=c
    21117 ac_cpp='$CPP $CPPFLAGS'
    21118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21121 
    21122            for fnm in CPXgetstat ; do
    21123              echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
    21124 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
    21125              cat >conftest.$ac_ext <<_ACEOF
    21126 /* confdefs.h.  */
    21127 _ACEOF
    21128 cat confdefs.h >>conftest.$ac_ext
    21129 cat >>conftest.$ac_ext <<_ACEOF
    21130 /* end confdefs.h.  */
    21131 
    21132 int
    21133 main ()
    21134 {
    21135 $fnm()
    21136   ;
    21137   return 0;
    21138 }
    21139 _ACEOF
    21140 rm -f conftest.$ac_objext conftest$ac_exeext
    21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21142   (eval $ac_link) 2>conftest.er1
    21143   ac_status=$?
    21144   grep -v '^ *+' conftest.er1 >conftest.err
    21145   rm -f conftest.er1
    21146   cat conftest.err >&5
    21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21148   (exit $ac_status); } &&
    21149          { ac_try='test -z "$ac_c_werror_flag"
    21150                          || test ! -s conftest.err'
    21151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21152   (eval $ac_try) 2>&5
    21153   ac_status=$?
    21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21155   (exit $ac_status); }; } &&
    21156          { ac_try='test -s conftest$ac_exeext'
    21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21158   (eval $ac_try) 2>&5
    21159   ac_status=$?
    21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21161   (exit $ac_status); }; }; then
     24835
     24836    if test "x$pcifile" != x ; then
     24837      allpcifiles="$pcifile:$allpcifiles"
     24838
     24839      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24840      if test "x$CPX_DATA_INSTALLED" = x ; then
     24841        projdatadir=
     24842        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24843        eval `sh -c "$pcifilemod"`
     24844        if test "${CYGPATH_W}" != "echo"; then
     24845          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24846        fi
     24847        CPX_DATA_INSTALLED="$projdatadir"
     24848      fi
     24849
     24850    fi
     24851
     24852    break
     24853  done
     24854
     24855  # remove spaces on begin of $projtoprocess
     24856  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24857
     24858done
     24859
     24860if test "$allproj" != fail ; then
     24861
     24862  # now go through the list of .pc files and assemble compiler and linker flags
     24863  # important is here to obey the reverse order that has been setup before,
     24864  # since then libraries that are required by several others should be after these other libraries
     24865  pcfilesprocessed=""
     24866
     24867  save_IFS="$IFS"
     24868  IFS=":"
     24869  for pcfile in $allpcfiles ; do
     24870
     24871    # if $pcfile has been processed already, skip this round
     24872    if test "x$pcfilesprocessed" != x ; then
     24873      for pcfiledone in $pcfilesprocessed ; do
     24874        if test "$pcfiledone" = "$pcfile" ; then
     24875          continue 2
     24876        fi
     24877      done
     24878    fi
     24879
     24880    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24881    #   replace "Libs:" by "echo projlibs="
     24882    #   replace "Cflags:" by "echo projcflags="
     24883    #   remove every line starting with <some word>:
     24884    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24885
     24886    # set projcflags and projlibs variables by running $pcfilemod
     24887    projcflags=
     24888    projlibs=
     24889    eval `sh -c "$pcfilemod"`
     24890
     24891    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24892    if test "${CYGPATH_W}" != "echo"; then
     24893      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24894    fi
     24895    CPX_CFLAGS="$projcflags $CPX_CFLAGS"
     24896
     24897    # set LIBS variable
     24898    CPX_LIBS="$projlibs $CPX_LIBS"
     24899
     24900    # remember that we have processed $pcfile
     24901    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24902
     24903  done
     24904  IFS="$save_IFS"
     24905
     24906
     24907  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24908  # important is here again to obey the reverse order that has been setup before,
     24909  # since then libraries that are required by several others should be after these other libraries
     24910  pcfilesprocessed=""
     24911
     24912  save_IFS="$IFS"
     24913  IFS=":"
     24914  for pcfile in $allpcifiles ; do
     24915
     24916    # if $pcfile has been processed already, skip this round
     24917    if test "x$pcfilesprocessed" != x ; then
     24918      for pcfiledone in $pcfilesprocessed ; do
     24919        if test "$pcfiledone" = "$pcfile" ; then
     24920          continue 2
     24921        fi
     24922      done
     24923    fi
     24924
     24925    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24926    #   replace "Libs:" by "echo projlibs="
     24927    #   replace "Cflags:" by "echo projcflags="
     24928    #   remove every line starting with <some word>:
     24929    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24930
     24931    # set projcflags and projlibs variables by running $pcfilemod
     24932    projcflags=
     24933    projlibs=
     24934    eval `sh -c "$pcfilemod"`
     24935
     24936    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24937    if test "${CYGPATH_W}" != "echo"; then
     24938      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24939    fi
     24940    CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
     24941
     24942    # set LIBS variable
     24943    CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
     24944
     24945    # remember that we have processed $pcfile
     24946    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24947
     24948  done
     24949  IFS="$save_IFS"
     24950
     24951
     24952  # finish up
     24953  coin_has_cpx=yes
    2116224954  echo "$as_me:$LINENO: result: yes" >&5
    2116324955echo "${ECHO_T}yes" >&6
    21164                   coin_CPX_link=yes
    21165                   break
    21166 else
    21167   echo "$as_me: failed program was:" >&5
    21168 sed 's/^/| /' conftest.$ac_ext >&5
    21169 
    21170 echo "$as_me:$LINENO: result: no" >&5
    21171 echo "${ECHO_T}no" >&6
    21172 fi
    21173 rm -f conftest.err conftest.$ac_objext \
    21174       conftest$ac_exeext conftest.$ac_ext
    21175            done
    21176            ac_ext=c
    21177 ac_cpp='$CPP $CPPFLAGS'
    21178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21181 
    21182            LIBS="$coin_save_LIBS"
    21183            if test x"$coin_CPX_link" != xyes ; then
    21184              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
    21185 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
    21186    { (exit 1); exit 1; }; }
    21187            fi
    21188          fi
    21189 
    21190 
    21191 # If we make it this far, we've verified the file and linked the function. Add
    21192 # the necessary link flags to ADDLIBS and _{PC}LIBS and define the preprocessor symbol
    21193 # COIN_HAS_LBRY.
    21194 
    21195     ADDLIBS="$CPXLIB $ADDLIBS"
    21196 
    21197 
    2119824956
    2119924957cat >>confdefs.h <<\_ACEOF
     
    2120124959_ACEOF
    2120224960
     24961
     24962  # adjust linker flags for (i)cl compiler
     24963  # 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),
     24964  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24965  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24966  #    everything of the form "-lname" by "libname.lib"
     24967  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24968  then
     24969    CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24970    CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2120324971  fi
    2120424972
    21205 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21206 # automake conditional. These actions must occur unconditionally.
    21207 
    21208 
    21209 
    21210 
    21211 
    21212 if test $coin_has_cpx = true; then
     24973
     24974    COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
     24975    COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
     24976    COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
     24977    COINMP_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     24978    COINMP_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     24979
     24980
     24981fi
     24982
     24983
     24984
     24985if test $coin_has_cpx != notGiven &&
     24986                test $coin_has_cpx != skipping; then
    2121324987  COIN_HAS_CPX_TRUE=
    2121424988  COIN_HAS_CPX_FALSE='#'
     
    2121924993
    2122024994
    21221 #AC_COIN_HAS_USER_LIBRARY([Glpk],[GLPK],[glpk.h],[glp_lpx_simplex])
    21222 
    21223   echo "$as_me:$LINENO: checking if user provides library for FortMP" >&5
    21224 echo $ECHO_N "checking if user provides library for FortMP... $ECHO_C" >&6
    21225 
    21226 # Check for header file directory
    21227 
    21228 
    21229 # Check whether --with-fortmp-incdir or --without-fortmp-incdir was given.
    21230 if test "${with_fortmp_incdir+set}" = set; then
    21231   withval="$with_fortmp_incdir"
    21232   FMPINCDIR=`cd $withval; pwd`
     24995
     24996  fi
     24997
     24998else
     24999  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     25000echo "${ECHO_T}$coin_has_cpx" >&6
     25001fi
     25002
     25003if test $coin_has_cpx != skipping &&
     25004   test $coin_has_cpx != notGiven ; then
     25005
     25006cat >>confdefs.h <<\_ACEOF
     25007#define COIN_HAS_CPX 1
     25008_ACEOF
     25009
     25010
     25011  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     25012if test "${enable_interpackage_dependencies+set}" = set; then
     25013  enableval="$enable_interpackage_dependencies"
     25014
     25015else
     25016  enable_interpackage_dependencies=yes
    2123325017fi;
    2123425018
    21235 # Check for library directory
    21236 
    21237 
    21238 # Check whether --with-fortmp-lib or --without-fortmp-lib was given.
    21239 if test "${with_fortmp_lib+set}" = set; then
    21240   withval="$with_fortmp_lib"
    21241   FMPLIB=$withval
     25019  if test $enable_interpackage_dependencies = yes ; then
     25020     # construct dependencies variables from LIBS variables
     25021     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25022     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     25023     # then remove everything of the form -xxx
     25024     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25025     CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25026
     25027       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25028
     25029  fi
     25030
     25031  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     25032    if test -n "$CPX_CFLAGS" ; then
     25033      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     25034echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     25035    fi
     25036    if test -n "$CPX_LIBS" ; then
     25037      { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
     25038echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
     25039    fi
     25040    if test -n "$CPX_DEPENDENCIES" ; then
     25041      { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
     25042echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
     25043    fi
     25044    if test -n "$CPX_DATA" ; then
     25045      { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
     25046echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
     25047    fi
     25048    if test -n "$CPX_CFLAGS" ; then
     25049      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     25050echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     25051    fi
     25052
     25053      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     25054echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     25055      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     25056echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     25057      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     25058echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
     25059
     25060  fi
     25061fi
     25062
     25063# Define the Makefile conditional
     25064
     25065
     25066if test $coin_has_cpx != notGiven &&
     25067                test $coin_has_cpx != skipping; then
     25068  COIN_HAS_CPX_TRUE=
     25069  COIN_HAS_CPX_FALSE='#'
     25070else
     25071  COIN_HAS_CPX_TRUE='#'
     25072  COIN_HAS_CPX_FALSE=
     25073fi
     25074
     25075
     25076
     25077
     25078echo "$as_me:$LINENO: checking for COIN-OR package Fmp" >&5
     25079echo $ECHO_N "checking for COIN-OR package Fmp... $ECHO_C" >&6
     25080
     25081coin_has_fmp=notGiven
     25082
     25083# check if user wants to skip package in any case
     25084if test x"$COIN_SKIP_PROJECTS" != x; then
     25085  for dir in $COIN_SKIP_PROJECTS; do
     25086    if test $dir = "Fmp"; then
     25087      coin_has_fmp=skipping
     25088    fi
     25089  done
     25090fi
     25091
     25092FMP_LIBS=
     25093FMP_CFLAGS=
     25094FMP_DATA=
     25095
     25096
     25097
     25098
     25099
     25100
     25101
     25102
     25103
     25104
     25105
     25106
     25107
     25108
     25109
     25110
     25111
     25112#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     25113if test $coin_has_fmp != skipping; then
     25114
     25115# Check whether --with-m4_tolower(Fmp)-lib or --without-m4_tolower(Fmp)-lib was given.
     25116if test "${with_fmp_lib+set}" = set; then
     25117  withval="$with_fmp_lib"
     25118  if test "$withval" = no ; then
     25119       coin_has_fmp=skipping
     25120     else
     25121       coin_has_fmp=yes
     25122       FMP_LIBS="$withval"
     25123
     25124         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     25125         COINMP_LIBS="$withval $COINMP_LIBS"
     25126
     25127     fi
     25128
    2124225129fi;
    21243 
    21244 # Switch to disable library check if requested
    21245 
    21246   # Check whether --enable-fortmp-libcheck or --disable-fortmp-libcheck was given.
    21247 if test "${enable_fortmp_libcheck+set}" = set; then
    21248   enableval="$enable_fortmp_libcheck"
    21249   fortmp_libcheck=$enableval
    21250 else
    21251   fortmp_libcheck=yes
     25130fi
     25131
     25132if test $coin_has_fmp != skipping; then
     25133
     25134# Check whether --with-m4_tolower(Fmp)-incdir or --without-m4_tolower(Fmp)-incdir was given.
     25135if test "${with_fmp_incdir+set}" = set; then
     25136  withval="$with_fmp_incdir"
     25137  if test "$withval" = no ; then
     25138       coin_has_fmp=skipping
     25139     else
     25140       coin_has_fmp=yes
     25141       FMP_CFLAGS="-I`${CYGPATH_W} $withval`"
     25142       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     25143     fi
     25144
    2125225145fi;
    21253 
    21254 # At this point, if we're going to use the library, both LBRYINCDIR and
    21255 # LBRYLIB must be defined and not empty.
    21256 
    21257   if test x"$FMPINCDIR" != x || test x"$FMPLIB" != x; then
    21258     if test x"$FMPINCDIR" = x || test x"$FMPLIB" = x; then
    21259       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library FortMP. Use --with-fortmp-incdir of environment variable $FMPINCDIR to specify the include directory. Use --with-fortmp-lib or environment variable $FMPLIB to specify link flags." >&5
    21260 echo "$as_me: error: You need to specify both an include directory and link flags to use library FortMP. Use --with-fortmp-incdir of environment variable $FMPINCDIR to specify the include directory. Use --with-fortmp-lib or environment variable $FMPLIB to specify link flags." >&2;}
     25146fi
     25147
     25148if test $coin_has_fmp != skipping; then
     25149
     25150# Check whether --with-m4_tolower(Fmp)-datadir or --without-m4_tolower(Fmp)-datadir was given.
     25151if test "${with_fmp_datadir+set}" = set; then
     25152  withval="$with_fmp_datadir"
     25153  if test "$withval" = no ; then
     25154       coin_has_fmp=skipping
     25155     else
     25156       coin_has_fmp=yes
     25157       FMP_DATA="$withval"
     25158     fi
     25159
     25160fi;
     25161fi
     25162
     25163if test $coin_has_fmp = notGiven; then
     25164  if test -n "$PKG_CONFIG" ; then
     25165    # set search path for pkg-config
     25166    # need to export variable to be sure that the following pkg-config gets these values
     25167    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     25168    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     25169    export PKG_CONFIG_PATH
     25170
     25171    # let pkg-config do it's magic
     25172
     25173
     25174
     25175if test -n "$PKG_CONFIG" ; then
     25176  if $PKG_CONFIG --exists "osi-fmp"; then
     25177    FMP_VERSIONS="`$PKG_CONFIG --modversion "osi-fmp" 2>/dev/null | tr '\n' ' '`"
     25178     cflags=`$PKG_CONFIG --cflags "osi-fmp" 2>/dev/null`
     25179    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     25180        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     25181        # but only do this if is not trivial
     25182    if test "$CYGPATH_W" != "echo" ; then
     25183      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     25184      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25185    fi
     25186    FMP_CFLAGS="$cflags"
     25187    FMP_LIBS=`$PKG_CONFIG --libs "osi-fmp" 2>/dev/null`
     25188    FMP_DATA=`$PKG_CONFIG --variable=datadir "osi-fmp" 2>/dev/null`
     25189     coin_has_fmp=yes
     25190        echo "$as_me:$LINENO: result: yes: $FMP_VERSIONS" >&5
     25191echo "${ECHO_T}yes: $FMP_VERSIONS" >&6
     25192
     25193        # adjust linker flags for (i)cl compiler
     25194        # 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)
     25195        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25196        then
     25197          FMP_LIBS=`echo " $FMP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25198        fi
     25199
     25200        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     25201
     25202          COINMP_PCREQUIRES="osi-fmp $COINMP_PCREQUIRES"
     25203          COINMP_CFLAGS="$FMP_CFLAGS $COINMP_CFLAGS"
     25204          COINMP_LIBS="$FMP_LIBS $COINMP_LIBS"
     25205
     25206
     25207
     25208  else
     25209    FMP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-fmp"`
     25210      coin_has_fmp=notGiven
     25211        echo "$as_me:$LINENO: result: not given: $FMP_PKG_ERRORS" >&5
     25212echo "${ECHO_T}not given: $FMP_PKG_ERRORS" >&6
     25213
     25214  fi
     25215else
     25216  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Fmp without pkg-config\"" >&5
     25217echo "$as_me: error: \"Cannot check for existance of module Fmp without pkg-config\"" >&2;}
    2126125218   { (exit 1); exit 1; }; }
     25219fi
     25220
     25221
     25222
     25223
     25224    # reset PKG_CONFIG_PATH variable
     25225    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     25226    export PKG_CONFIG_PATH
     25227
     25228  else
     25229    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     25230echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     25231
     25232echo "$as_me:$LINENO: checking for COIN-OR package Fmp (fallback)" >&5
     25233echo $ECHO_N "checking for COIN-OR package Fmp (fallback)... $ECHO_C" >&6
     25234
     25235coin_has_fmp=notGiven
     25236FMP_LIBS=
     25237FMP_LIBS_INSTALLED=
     25238FMP_CFLAGS=
     25239FMP_CFLAGS_INSTALLED=
     25240FMP_DATA=
     25241FMP_DATA_INSTALLED=
     25242
     25243# initial list of dependencies is "osi-fmp", but we need to filter out version number specifications (= x, <= x, >= x)
     25244projtoprocess="osi-fmp"
     25245
     25246# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     25247# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     25248# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     25249# also, we setup the DATA variable
     25250allproj=""
     25251allpcfiles=""
     25252allpcifiles=""
     25253while test "x$projtoprocess" != x ; do
     25254
     25255  for proj in $projtoprocess ; do
     25256    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     25257    pcfile=""
     25258    save_IFS="$IFS"
     25259    IFS=":"
     25260    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     25261      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     25262      if test -r "$dir/${proj}-uninstalled.pc" ; then
     25263        pcfile="$dir/$proj-uninstalled.pc"
     25264        if test -r "$dir/${proj}.pc" ; then
     25265          pcifile="$dir/${proj}.pc"
     25266        else
     25267          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     25268echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     25269          pcifile=
     25270        fi
     25271        break
     25272      fi
     25273    done
     25274    IFS="$save_IFS"
     25275
     25276    if test "x$pcfile" != x ; then
     25277      # read dependencies from $pcfile and filter it
     25278      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     25279
     25280      # add projrequires to the front of the list of projects that have to be processed next
     25281      # at the same time, remove $proj from this list
     25282      projtoprocess=${projtoprocess/$proj/$projrequires}
     25283
     25284      # read DATA from $pcfile, if _DATA is still empty
     25285      if test "x$FMP_DATA" = x ; then
     25286        projdatadir=
     25287        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     25288        eval `sh -c "$pcfilemod"`
     25289        FMP_DATA="$projdatadir"
     25290      fi
     25291
     25292      allproj="$allproj $proj"
     25293      allpcfiles="$pcfile:$allpcfiles"
     25294
     25295    else
     25296      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     25297echo "${ECHO_T}no, dependency $proj not available" >&6
     25298      allproj=fail
     25299      break 2
    2126225300    fi
    21263     coin_has_fmp=true
    21264     echo "$as_me:$LINENO: result: yes" >&5
     25301
     25302    if test "x$pcifile" != x ; then
     25303      allpcifiles="$pcifile:$allpcifiles"
     25304
     25305      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     25306      if test "x$FMP_DATA_INSTALLED" = x ; then
     25307        projdatadir=
     25308        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     25309        eval `sh -c "$pcifilemod"`
     25310        if test "${CYGPATH_W}" != "echo"; then
     25311          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     25312        fi
     25313        FMP_DATA_INSTALLED="$projdatadir"
     25314      fi
     25315
     25316    fi
     25317
     25318    break
     25319  done
     25320
     25321  # remove spaces on begin of $projtoprocess
     25322  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     25323
     25324done
     25325
     25326if test "$allproj" != fail ; then
     25327
     25328  # now go through the list of .pc files and assemble compiler and linker flags
     25329  # important is here to obey the reverse order that has been setup before,
     25330  # since then libraries that are required by several others should be after these other libraries
     25331  pcfilesprocessed=""
     25332
     25333  save_IFS="$IFS"
     25334  IFS=":"
     25335  for pcfile in $allpcfiles ; do
     25336
     25337    # if $pcfile has been processed already, skip this round
     25338    if test "x$pcfilesprocessed" != x ; then
     25339      for pcfiledone in $pcfilesprocessed ; do
     25340        if test "$pcfiledone" = "$pcfile" ; then
     25341          continue 2
     25342        fi
     25343      done
     25344    fi
     25345
     25346    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25347    #   replace "Libs:" by "echo projlibs="
     25348    #   replace "Cflags:" by "echo projcflags="
     25349    #   remove every line starting with <some word>:
     25350    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25351
     25352    # set projcflags and projlibs variables by running $pcfilemod
     25353    projcflags=
     25354    projlibs=
     25355    eval `sh -c "$pcfilemod"`
     25356
     25357    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25358    if test "${CYGPATH_W}" != "echo"; then
     25359      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25360    fi
     25361    FMP_CFLAGS="$projcflags $FMP_CFLAGS"
     25362
     25363    # set LIBS variable
     25364    FMP_LIBS="$projlibs $FMP_LIBS"
     25365
     25366    # remember that we have processed $pcfile
     25367    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25368
     25369  done
     25370  IFS="$save_IFS"
     25371
     25372
     25373  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     25374  # important is here again to obey the reverse order that has been setup before,
     25375  # since then libraries that are required by several others should be after these other libraries
     25376  pcfilesprocessed=""
     25377
     25378  save_IFS="$IFS"
     25379  IFS=":"
     25380  for pcfile in $allpcifiles ; do
     25381
     25382    # if $pcfile has been processed already, skip this round
     25383    if test "x$pcfilesprocessed" != x ; then
     25384      for pcfiledone in $pcfilesprocessed ; do
     25385        if test "$pcfiledone" = "$pcfile" ; then
     25386          continue 2
     25387        fi
     25388      done
     25389    fi
     25390
     25391    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25392    #   replace "Libs:" by "echo projlibs="
     25393    #   replace "Cflags:" by "echo projcflags="
     25394    #   remove every line starting with <some word>:
     25395    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25396
     25397    # set projcflags and projlibs variables by running $pcfilemod
     25398    projcflags=
     25399    projlibs=
     25400    eval `sh -c "$pcfilemod"`
     25401
     25402    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25403    if test "${CYGPATH_W}" != "echo"; then
     25404      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25405    fi
     25406    FMP_CFLAGS_INSTALLED="$projcflags $FMP_CFLAGS_INSTALLED"
     25407
     25408    # set LIBS variable
     25409    FMP_LIBS_INSTALLED="$projlibs $FMP_LIBS_INSTALLED"
     25410
     25411    # remember that we have processed $pcfile
     25412    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25413
     25414  done
     25415  IFS="$save_IFS"
     25416
     25417
     25418  # finish up
     25419  coin_has_fmp=yes
     25420  echo "$as_me:$LINENO: result: yes" >&5
    2126525421echo "${ECHO_T}yes" >&6
    21266   else
    21267     coin_has_fmp=false
    21268     echo "$as_me:$LINENO: result: no" >&5
    21269 echo "${ECHO_T}no" >&6
    21270   fi
    21271 
    21272 # If we have instructions for use, consider header and link checks.
    21273 
    21274   if test $coin_has_fmp = true; then
    21275 
    21276 # If argument 3 (file) is given, check for the file. Typically this will be a
    21277 # header file, but that's not assumed.
    21278 
    21279 
    21280 
    21281 # Now see if we can link the function. There are arguments for and against
    21282 # assuming argument 3 is a header file declaring the function. A correct
    21283 # function declaration is the main argument in favour. Having to cope with
    21284 # possible dependencies or other oddities are the main arguments against.
    21285 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21286 # Obviously, this has limits.
    21287 
    21288 
    21289 
    21290 # If we make it this far, we've verified the file and linked the function. Add
    21291 # the necessary link flags to ADDLIBS and _{PC}LIBS and define the preprocessor symbol
    21292 # COIN_HAS_LBRY.
    21293 
    21294     ADDLIBS="$FMPLIB $ADDLIBS"
    21295 
    21296 
    2129725422
    2129825423cat >>confdefs.h <<\_ACEOF
     
    2130025425_ACEOF
    2130125426
     25427
     25428  # adjust linker flags for (i)cl compiler
     25429  # 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),
     25430  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25431  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25432  #    everything of the form "-lname" by "libname.lib"
     25433  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25434  then
     25435    FMP_LIBS=`echo " $FMP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25436    FMP_LIBS_INSTALLED=`echo " $FMP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2130225437  fi
    2130325438
    21304 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21305 # automake conditional. These actions must occur unconditionally.
    21306 
    21307 
    21308 
    21309 
    21310 
    21311 if test $coin_has_fmp = true; then
     25439
     25440    COINMP_PCREQUIRES="osi-fmp $COINMP_PCREQUIRES"
     25441    COINMP_CFLAGS="$FMP_CFLAGS $COINMP_CFLAGS"
     25442    COINMP_LIBS="$FMP_LIBS $COINMP_LIBS"
     25443    COINMP_CFLAGS_INSTALLED="$FMP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
     25444    COINMP_LIBS_INSTALLED="$FMP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
     25445
     25446
     25447fi
     25448
     25449
     25450
     25451if test $coin_has_fmp != notGiven &&
     25452                test $coin_has_fmp != skipping; then
    2131225453  COIN_HAS_FMP_TRUE=
    2131325454  COIN_HAS_FMP_FALSE='#'
     
    2131725458fi
    2131825459
    21319   #ToDo! is Fortran?
    21320 
    21321   echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
    21322 echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
    21323 
    21324 # Check for header file directory
    21325 
    21326 
    21327 # Check whether --with-mosek-incdir or --without-mosek-incdir was given.
    21328 if test "${with_mosek_incdir+set}" = set; then
    21329   withval="$with_mosek_incdir"
    21330   MSKINCDIR=`cd $withval; pwd`
     25460
     25461
     25462  fi
     25463
     25464else
     25465  echo "$as_me:$LINENO: result: $coin_has_fmp" >&5
     25466echo "${ECHO_T}$coin_has_fmp" >&6
     25467fi
     25468
     25469if test $coin_has_fmp != skipping &&
     25470   test $coin_has_fmp != notGiven ; then
     25471
     25472cat >>confdefs.h <<\_ACEOF
     25473#define COIN_HAS_FMP 1
     25474_ACEOF
     25475
     25476
     25477  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     25478if test "${enable_interpackage_dependencies+set}" = set; then
     25479  enableval="$enable_interpackage_dependencies"
     25480
     25481else
     25482  enable_interpackage_dependencies=yes
    2133125483fi;
    2133225484
    21333 # Check for library directory
    21334 
    21335 
    21336 # Check whether --with-mosek-lib or --without-mosek-lib was given.
    21337 if test "${with_mosek_lib+set}" = set; then
    21338   withval="$with_mosek_lib"
    21339   MSKLIB=$withval
     25485  if test $enable_interpackage_dependencies = yes ; then
     25486     # construct dependencies variables from LIBS variables
     25487     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25488     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     25489     # then remove everything of the form -xxx
     25490     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25491     FMP_DEPENDENCIES=`echo " $FMP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25492
     25493       COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25494
     25495  fi
     25496
     25497  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     25498    if test -n "$FMP_CFLAGS" ; then
     25499      { echo "$as_me:$LINENO: Fmp CFLAGS are $FMP_CFLAGS" >&5
     25500echo "$as_me: Fmp CFLAGS are $FMP_CFLAGS" >&6;}
     25501    fi
     25502    if test -n "$FMP_LIBS" ; then
     25503      { echo "$as_me:$LINENO: Fmp LIBS   are $FMP_LIBS" >&5
     25504echo "$as_me: Fmp LIBS   are $FMP_LIBS" >&6;}
     25505    fi
     25506    if test -n "$FMP_DEPENDENCIES" ; then
     25507      { echo "$as_me:$LINENO: Fmp DEPENDENCIES are $FMP_DEPENDENCIES" >&5
     25508echo "$as_me: Fmp DEPENDENCIES are $FMP_DEPENDENCIES" >&6;}
     25509    fi
     25510    if test -n "$FMP_DATA" ; then
     25511      { echo "$as_me:$LINENO: Fmp DATA   is  $FMP_DATA" >&5
     25512echo "$as_me: Fmp DATA   is  $FMP_DATA" >&6;}
     25513    fi
     25514    if test -n "$FMP_CFLAGS" ; then
     25515      { echo "$as_me:$LINENO: Fmp CFLAGS are $FMP_CFLAGS" >&5
     25516echo "$as_me: Fmp CFLAGS are $FMP_CFLAGS" >&6;}
     25517    fi
     25518
     25519      { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
     25520echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
     25521      { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
     25522echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
     25523      { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
     25524echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
     25525
     25526  fi
     25527fi
     25528
     25529# Define the Makefile conditional
     25530
     25531
     25532if test $coin_has_fmp != notGiven &&
     25533                test $coin_has_fmp != skipping; then
     25534  COIN_HAS_FMP_TRUE=
     25535  COIN_HAS_FMP_FALSE='#'
     25536else
     25537  COIN_HAS_FMP_TRUE='#'
     25538  COIN_HAS_FMP_FALSE=
     25539fi
     25540
     25541
     25542
     25543
     25544echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
     25545echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
     25546
     25547coin_has_glpk=notGiven
     25548
     25549# check if user wants to skip package in any case
     25550if test x"$COIN_SKIP_PROJECTS" != x; then
     25551  for dir in $COIN_SKIP_PROJECTS; do
     25552    if test $dir = "Glpk"; then
     25553      coin_has_glpk=skipping
     25554    fi
     25555  done
     25556fi
     25557
     25558GLPK_LIBS=
     25559GLPK_CFLAGS=
     25560GLPK_DATA=
     25561
     25562
     25563
     25564
     25565
     25566
     25567
     25568
     25569
     25570
     25571
     25572
     25573
     25574
     25575
     25576
     25577
     25578#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     25579if test $coin_has_glpk != skipping; then
     25580
     25581# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
     25582if test "${with_glpk_lib+set}" = set; then
     25583  withval="$with_glpk_lib"
     25584  if test "$withval" = no ; then
     25585       coin_has_glpk=skipping
     25586     else
     25587       coin_has_glpk=yes
     25588       GLPK_LIBS="$withval"
     25589
     25590         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     25591         COINMP_LIBS="$withval $COINMP_LIBS"
     25592
     25593     fi
     25594
    2134025595fi;
    21341 
    21342 # Switch to disable library check if requested
    21343 
    21344   # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
    21345 if test "${enable_mosek_libcheck+set}" = set; then
    21346   enableval="$enable_mosek_libcheck"
    21347   mosek_libcheck=$enableval
    21348 else
    21349   mosek_libcheck=yes
     25596fi
     25597
     25598if test $coin_has_glpk != skipping; then
     25599
     25600# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
     25601if test "${with_glpk_incdir+set}" = set; then
     25602  withval="$with_glpk_incdir"
     25603  if test "$withval" = no ; then
     25604       coin_has_glpk=skipping
     25605     else
     25606       coin_has_glpk=yes
     25607       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
     25608       COINMP_CFLAGS="$withval $COINMP_CFLAGS"
     25609     fi
     25610
    2135025611fi;
    21351 
    21352 # At this point, if we're going to use the library, both LBRYINCDIR and
    21353 # LBRYLIB must be defined and not empty.
    21354 
    21355   if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
    21356     if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
    21357       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&5
    21358 echo "$as_me: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&2;}
     25612fi
     25613
     25614if test $coin_has_glpk != skipping; then
     25615
     25616# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
     25617if test "${with_glpk_datadir+set}" = set; then
     25618  withval="$with_glpk_datadir"
     25619  if test "$withval" = no ; then
     25620       coin_has_glpk=skipping
     25621     else
     25622       coin_has_glpk=yes
     25623       GLPK_DATA="$withval"
     25624     fi
     25625
     25626fi;
     25627fi
     25628
     25629if test $coin_has_glpk = notGiven; then
     25630  if test -n "$PKG_CONFIG" ; then
     25631    # set search path for pkg-config
     25632    # need to export variable to be sure that the following pkg-config gets these values
     25633    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     25634    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     25635    export PKG_CONFIG_PATH
     25636
     25637    # let pkg-config do it's magic
     25638
     25639
     25640
     25641if test -n "$PKG_CONFIG" ; then
     25642  if $PKG_CONFIG --exists "osi-glpk"; then
     25643    GLPK_VERSIONS="`$PKG_CONFIG --modversion "osi-glpk" 2>/dev/null | tr '\n' ' '`"
     25644     cflags=`$PKG_CONFIG --cflags "osi-glpk" 2>/dev/null`
     25645    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     25646        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     25647        # but only do this if is not trivial
     25648    if test "$CYGPATH_W" != "echo" ; then
     25649      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     25650      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25651    fi
     25652    GLPK_CFLAGS="$cflags"
     25653    GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/null`
     25654    GLPK_DATA=`$PKG_CONFIG --variable=datadir "osi-glpk" 2>/dev/null`
     25655     coin_has_glpk=yes
     25656        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
     25657echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
     25658
     25659        # adjust linker flags for (i)cl compiler
     25660        # 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)
     25661        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25662        then
     25663          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25664        fi
     25665
     25666        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
     25667
     25668          COINMP_PCREQUIRES="osi-glpk $COINMP_PCREQUIRES"
     25669          COINMP_CFLAGS="$GLPK_CFLAGS $COINMP_CFLAGS"
     25670          COINMP_LIBS="$GLPK_LIBS $COINMP_LIBS"
     25671
     25672
     25673
     25674  else
     25675    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-glpk"`
     25676      coin_has_glpk=notGiven
     25677        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
     25678echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
     25679
     25680  fi
     25681else
     25682  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
     25683echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
    2135925684   { (exit 1); exit 1; }; }
     25685fi
     25686
     25687
     25688
     25689
     25690    # reset PKG_CONFIG_PATH variable
     25691    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     25692