Changeset 1501 for trunk


Ignore:
Timestamp:
Sep 13, 2010 3:41:21 AM (9 years ago)
Author:
stefan
Message:

change from COIN_HAS_MODULE to COIN_HAS_PACKAGE

Location:
trunk/Cbc
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/Makefile.in

    r1492 r1501  
    132132AWK = @AWK@
    133133BUILDTOOLSDIR = @BUILDTOOLSDIR@
     134CBCGENERIC_LIBS = @CBCGENERIC_LIBS@
     135CBCGENERIC_PCLIBS = @CBCGENERIC_PCLIBS@
     136CBCGENERIC_PCREQUIRES = @CBCGENERIC_PCREQUIRES@
     137CBCLIB_LIBS = @CBCLIB_LIBS@
     138CBCLIB_PCLIBS = @CBCLIB_PCLIBS@
     139CBCLIB_PCREQUIRES = @CBCLIB_PCREQUIRES@
    134140CBC_BUILD_CBC_GENERIC_FALSE = @CBC_BUILD_CBC_GENERIC_FALSE@
    135141CBC_BUILD_CBC_GENERIC_TRUE = @CBC_BUILD_CBC_GENERIC_TRUE@
     
    278284PKG_CONFIG = @PKG_CONFIG@
    279285RANLIB = @RANLIB@
    280 REQUIREDPACKAGES = @REQUIREDPACKAGES@
    281286RPATH_FLAGS = @RPATH_FLAGS@
    282287SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
  • trunk/Cbc/cbc-uninstalled.pc.in

    r1484 r1501  
    55Description: COIN-OR Branch and Cut
    66Version: @PACKAGE_VERSION@
    7 Libs: -L${libdir} -lCbcSolver -lCbc @PCADDLIBS@
     7Libs: -L${libdir} -lCbcSolver -lCbc @CBCLIB_PCLIBS@
    88Cflags: -I@abs_source_dir@/src -I@ABSBUILDDIR@/inc
    9 Requires: @REQUIREDPACKAGES@
     9Requires: @CBCLIB_PCREQUIRES@
  • trunk/Cbc/cbc.pc.in

    r1484 r1501  
    77Description: COIN-OR Branch and Cut
    88Version: @PACKAGE_VERSION@
    9 Libs: -L${libdir} -lCbcSolver -lCbc @PCADDLIBS@
     9Libs: -L${libdir} -lCbcSolver -lCbc @CBCLIB_PCLIBS@
    1010Cflags: -I${includedir}
    11 Requires: @REQUIREDPACKAGES@
     11Requires: @CBCLIB_PCREQUIRES@
  • trunk/Cbc/configure

    r1497 r1501  
    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 CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA REQUIREDPACKAGES COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes 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 ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11121112  --with-coin-instdir     prefix of installation directory for precompiled
    11131113                          COIN packages
    1114   --with-coindepend-lib linker flags for using module CoinDepend
     1114  --with-coindepend-lib linker flags for using package CoinDepend
    11151115  --with-coindepend-incdir
    1116                           directory with header files for using module
     1116                          directory with header files for using package
    11171117                          CoinDepend
    11181118  --with-coindepend-datadir
    1119                           directory with data files for using module
     1119                          directory with data files for using package
    11201120                          CoinDepend
    1121   --with-clp-lib linker flags for using module Clp
    1122   --with-clp-incdir directory with header files for using module Clp
    1123   --with-clp-datadir directory with data files for using module Clp
    1124   --with-dylp-lib linker flags for using module DyLP
    1125   --with-dylp-incdir directory with header files for using module DyLP
    1126   --with-dylp-datadir directory with data files for using module DyLP
    1127   --with-vol-lib linker flags for using module Vol
    1128   --with-vol-incdir directory with header files for using module Vol
    1129   --with-vol-datadir directory with data files for using module Vol
    1130   --with-ositests-lib linker flags for using module OsiTests
    1131   --with-ositests-incdir directory with header files for using module OsiTests
    1132   --with-ositests-datadir directory with data files for using module OsiTests
    1133   --with-sample-lib linker flags for using module Sample
    1134   --with-sample-incdir directory with header files for using module Sample
    1135   --with-sample-datadir directory with data files for using module Sample
    1136   --with-netlib-lib linker flags for using module Netlib
    1137   --with-netlib-incdir directory with header files for using module Netlib
    1138   --with-netlib-datadir directory with data files for using module Netlib
    1139   --with-miplib3-lib linker flags for using module Miplib3
    1140   --with-miplib3-incdir directory with header files for using module Miplib3
    1141   --with-miplib3-datadir directory with data files for using module Miplib3
    1142   --with-cpx-lib linker flags for using module Cpx
    1143   --with-cpx-incdir directory with header files for using module Cpx
    1144   --with-cpx-datadir directory with data files for using module Cpx
    1145   --with-glpk-lib linker flags for using module Glpk
    1146   --with-glpk-incdir directory with header files for using module Glpk
    1147   --with-glpk-datadir directory with data files for using module Glpk
    1148   --with-grb-lib linker flags for using module Grb
    1149   --with-grb-incdir directory with header files for using module Grb
    1150   --with-grb-datadir directory with data files for using module Grb
    1151   --with-msk-lib linker flags for using module Msk
    1152   --with-msk-incdir directory with header files for using module Msk
    1153   --with-msk-datadir directory with data files for using module Msk
    1154   --with-spx-lib linker flags for using module Spx
    1155   --with-spx-incdir directory with header files for using module Spx
    1156   --with-spx-datadir directory with data files for using module Spx
    1157   --with-xpr-lib linker flags for using module Xpr
    1158   --with-xpr-incdir directory with header files for using module Xpr
    1159   --with-xpr-datadir directory with data files for using module Xpr
    1160   --with-asl-lib linker flags for using module ASL
    1161   --with-asl-incdir directory with header files for using module ASL
    1162   --with-asl-datadir directory with data files for using module ASL
     1121  --with-clp-lib linker flags for using package Clp
     1122  --with-clp-incdir directory with header files for using package Clp
     1123  --with-clp-datadir directory with data files for using package Clp
     1124  --with-ositests-lib linker flags for using package OsiTests
     1125  --with-ositests-incdir directory with header files for using package
     1126                          OsiTests
     1127  --with-ositests-datadir directory with data files for using package OsiTests
     1128  --with-sample-lib linker flags for using package Sample
     1129  --with-sample-incdir directory with header files for using package Sample
     1130  --with-sample-datadir directory with data files for using package Sample
     1131  --with-netlib-lib linker flags for using package Netlib
     1132  --with-netlib-incdir directory with header files for using package Netlib
     1133  --with-netlib-datadir directory with data files for using package Netlib
     1134  --with-miplib3-lib linker flags for using package Miplib3
     1135  --with-miplib3-incdir directory with header files for using package Miplib3
     1136  --with-miplib3-datadir directory with data files for using package Miplib3
     1137  --with-dylp-lib linker flags for using package DyLP
     1138  --with-dylp-incdir directory with header files for using package DyLP
     1139  --with-dylp-datadir directory with data files for using package DyLP
     1140  --with-vol-lib linker flags for using package Vol
     1141  --with-vol-incdir directory with header files for using package Vol
     1142  --with-vol-datadir directory with data files for using package Vol
     1143  --with-cpx-lib linker flags for using package Cpx
     1144  --with-cpx-incdir directory with header files for using package Cpx
     1145  --with-cpx-datadir directory with data files for using package Cpx
     1146  --with-glpk-lib linker flags for using package Glpk
     1147  --with-glpk-incdir directory with header files for using package Glpk
     1148  --with-glpk-datadir directory with data files for using package Glpk
     1149  --with-grb-lib linker flags for using package Grb
     1150  --with-grb-incdir directory with header files for using package Grb
     1151  --with-grb-datadir directory with data files for using package Grb
     1152  --with-msk-lib linker flags for using package Msk
     1153  --with-msk-incdir directory with header files for using package Msk
     1154  --with-msk-datadir directory with data files for using package Msk
     1155  --with-spx-lib linker flags for using package Spx
     1156  --with-spx-incdir directory with header files for using package Spx
     1157  --with-spx-datadir directory with data files for using package Spx
     1158  --with-xpr-lib linker flags for using package Xpr
     1159  --with-xpr-incdir directory with header files for using package Xpr
     1160  --with-xpr-datadir directory with data files for using package Xpr
     1161  --with-asl-lib linker flags for using package ASL
     1162  --with-asl-incdir directory with header files for using package ASL
     1163  --with-asl-datadir directory with data files for using package ASL
    11631164  --with-cbc-generic      specify whether to build cbc-generic (default: no)
    11641165  --with-cbc-generic-solver
     
    17771778fi
    17781779
    1779 # Set the project's SVN revision number
     1780# Set the project's SVN revision number. The complicated sed expression
     1781# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
     1782# as a single number.
    17801783# Extract the first word of "svnversion", so it can be a program name with args.
    17811784set dummy svnversion; ac_word=$2
     
    18161819if test "x$have_svnversion" = xyes && test "xCbc" != x; then
    18171820
    1818   CBC_SVN_REV=`cd $srcdir/$coin_has_cbc ; svnversion`
     1821  svn_rev_tmp=`cd $srcdir/$coin_has_cbc ; svnversion`
     1822  CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    18191823  if test $CBC_SVN_REV != exported; then
    18201824
    18211825cat >>confdefs.h <<_ACEOF
    1822 #define CBC_SVN_REV "$CBC_SVN_REV"
     1826#define CBC_SVN_REV $CBC_SVN_REV
    18231827_ACEOF
    18241828
     
    59145918*-*-irix6*)
    59155919  # Find out which ABI we are using.
    5916   echo '#line 5916 "configure"' > conftest.$ac_ext
     5920  echo '#line 5920 "configure"' > conftest.$ac_ext
    59175921  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    59185922  (eval $ac_compile) 2>&5
     
    70487052
    70497053# Provide some information about the compiler.
    7050 echo "$as_me:7050:" \
     7054echo "$as_me:7054:" \
    70517055     "checking for Fortran 77 compiler version" >&5
    70527056ac_compiler=`set X $ac_compile; echo $2`
     
    81158119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81168120   -e 's:$: $lt_compiler_flag:'`
    8117    (eval echo "\"\$as_me:8117: $lt_compile\"" >&5)
     8121   (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
    81188122   (eval "$lt_compile" 2>conftest.err)
    81198123   ac_status=$?
    81208124   cat conftest.err >&5
    8121    echo "$as_me:8121: \$? = $ac_status" >&5
     8125   echo "$as_me:8125: \$? = $ac_status" >&5
    81228126   if (exit $ac_status) && test -s "$ac_outfile"; then
    81238127     # The compiler can only warn and ignore the option if not recognized
     
    83838387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83848388   -e 's:$: $lt_compiler_flag:'`
    8385    (eval echo "\"\$as_me:8385: $lt_compile\"" >&5)
     8389   (eval echo "\"\$as_me:8389: $lt_compile\"" >&5)
    83868390   (eval "$lt_compile" 2>conftest.err)
    83878391   ac_status=$?
    83888392   cat conftest.err >&5
    8389    echo "$as_me:8389: \$? = $ac_status" >&5
     8393   echo "$as_me:8393: \$? = $ac_status" >&5
    83908394   if (exit $ac_status) && test -s "$ac_outfile"; then
    83918395     # The compiler can only warn and ignore the option if not recognized
     
    84878491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84888492   -e 's:$: $lt_compiler_flag:'`
    8489    (eval echo "\"\$as_me:8489: $lt_compile\"" >&5)
     8493   (eval echo "\"\$as_me:8493: $lt_compile\"" >&5)
    84908494   (eval "$lt_compile" 2>out/conftest.err)
    84918495   ac_status=$?
    84928496   cat out/conftest.err >&5
    8493    echo "$as_me:8493: \$? = $ac_status" >&5
     8497   echo "$as_me:8497: \$? = $ac_status" >&5
    84948498   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    84958499   then
     
    1083210836  lt_status=$lt_dlunknown
    1083310837  cat > conftest.$ac_ext <<EOF
    10834 #line 10834 "configure"
     10838#line 10838 "configure"
    1083510839#include "confdefs.h"
    1083610840
     
    1093210936  lt_status=$lt_dlunknown
    1093310937  cat > conftest.$ac_ext <<EOF
    10934 #line 10934 "configure"
     10938#line 10938 "configure"
    1093510939#include "confdefs.h"
    1093610940
     
    1327613280   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1327713281   -e 's:$: $lt_compiler_flag:'`
    13278    (eval echo "\"\$as_me:13278: $lt_compile\"" >&5)
     13282   (eval echo "\"\$as_me:13282: $lt_compile\"" >&5)
    1327913283   (eval "$lt_compile" 2>conftest.err)
    1328013284   ac_status=$?
    1328113285   cat conftest.err >&5
    13282    echo "$as_me:13282: \$? = $ac_status" >&5
     13286   echo "$as_me:13286: \$? = $ac_status" >&5
    1328313287   if (exit $ac_status) && test -s "$ac_outfile"; then
    1328413288     # The compiler can only warn and ignore the option if not recognized
     
    1338013384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1338113385   -e 's:$: $lt_compiler_flag:'`
    13382    (eval echo "\"\$as_me:13382: $lt_compile\"" >&5)
     13386   (eval echo "\"\$as_me:13386: $lt_compile\"" >&5)
    1338313387   (eval "$lt_compile" 2>out/conftest.err)
    1338413388   ac_status=$?
    1338513389   cat out/conftest.err >&5
    13386    echo "$as_me:13386: \$? = $ac_status" >&5
     13390   echo "$as_me:13390: \$? = $ac_status" >&5
    1338713391   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1338813392   then
     
    1495014954   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1495114955   -e 's:$: $lt_compiler_flag:'`
    14952    (eval echo "\"\$as_me:14952: $lt_compile\"" >&5)
     14956   (eval echo "\"\$as_me:14956: $lt_compile\"" >&5)
    1495314957   (eval "$lt_compile" 2>conftest.err)
    1495414958   ac_status=$?
    1495514959   cat conftest.err >&5
    14956    echo "$as_me:14956: \$? = $ac_status" >&5
     14960   echo "$as_me:14960: \$? = $ac_status" >&5
    1495714961   if (exit $ac_status) && test -s "$ac_outfile"; then
    1495814962     # The compiler can only warn and ignore the option if not recognized
     
    1505415058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1505515059   -e 's:$: $lt_compiler_flag:'`
    15056    (eval echo "\"\$as_me:15056: $lt_compile\"" >&5)
     15060   (eval echo "\"\$as_me:15060: $lt_compile\"" >&5)
    1505715061   (eval "$lt_compile" 2>out/conftest.err)
    1505815062   ac_status=$?
    1505915063   cat out/conftest.err >&5
    15060    echo "$as_me:15060: \$? = $ac_status" >&5
     15064   echo "$as_me:15064: \$? = $ac_status" >&5
    1506115065   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1506215066   then
     
    1726117265   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1726217266   -e 's:$: $lt_compiler_flag:'`
    17263    (eval echo "\"\$as_me:17263: $lt_compile\"" >&5)
     17267   (eval echo "\"\$as_me:17267: $lt_compile\"" >&5)
    1726417268   (eval "$lt_compile" 2>conftest.err)
    1726517269   ac_status=$?
    1726617270   cat conftest.err >&5
    17267    echo "$as_me:17267: \$? = $ac_status" >&5
     17271   echo "$as_me:17271: \$? = $ac_status" >&5
    1726817272   if (exit $ac_status) && test -s "$ac_outfile"; then
    1726917273     # The compiler can only warn and ignore the option if not recognized
     
    1752917533   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1753017534   -e 's:$: $lt_compiler_flag:'`
    17531    (eval echo "\"\$as_me:17531: $lt_compile\"" >&5)
     17535   (eval echo "\"\$as_me:17535: $lt_compile\"" >&5)
    1753217536   (eval "$lt_compile" 2>conftest.err)
    1753317537   ac_status=$?
    1753417538   cat conftest.err >&5
    17535    echo "$as_me:17535: \$? = $ac_status" >&5
     17539   echo "$as_me:17539: \$? = $ac_status" >&5
    1753617540   if (exit $ac_status) && test -s "$ac_outfile"; then
    1753717541     # The compiler can only warn and ignore the option if not recognized
     
    1763317637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1763417638   -e 's:$: $lt_compiler_flag:'`
    17635    (eval echo "\"\$as_me:17635: $lt_compile\"" >&5)
     17639   (eval echo "\"\$as_me:17639: $lt_compile\"" >&5)
    1763617640   (eval "$lt_compile" 2>out/conftest.err)
    1763717641   ac_status=$?
    1763817642   cat out/conftest.err >&5
    17639    echo "$as_me:17639: \$? = $ac_status" >&5
     17643   echo "$as_me:17643: \$? = $ac_status" >&5
    1764017644   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1764117645   then
     
    2072520729
    2072620730
    20727 echo "$as_me:$LINENO: checking for COIN-OR module CoinDepend" >&5
    20728 echo $ECHO_N "checking for COIN-OR module CoinDepend... $ECHO_C" >&6
     20731echo "$as_me:$LINENO: checking for COIN-OR package CoinDepend" >&5
     20732echo $ECHO_N "checking for COIN-OR package CoinDepend... $ECHO_C" >&6
    2072920733
    2073020734coin_has_coindepend=notGiven
    2073120735
    20732 # check if user wants to skip module in any case
     20736# check if user wants to skip package in any case
    2073320737if test x"$COIN_SKIP_PROJECTS" != x; then
    2073420738  for dir in $COIN_SKIP_PROJECTS; do
     
    2074720751
    2074820752
     20753
     20754
     20755
     20756
     20757
     20758
     20759
     20760
    2074920761#check if user provided LIBS, CFLAGS, or DATA for module
    2075020762if test $coin_has_coindepend != skipping; then
     
    2075620768  coin_has_coindepend=yes
    2075720769       COINDEPEND_LIBS="$withval"
    20758        PCADDLIBS="$withval $PCADDLIBS"
     20770
     20771         CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
     20772         CBCLIB_LIBS="$withval $CBCLIB_LIBS"
     20773
     20774         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     20775         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     20776
    2075920777
    2076020778fi;
     
    2076620784  coin_has_coindepend=yes
    2076720785     COINDEPEND_CFLAGS="-I`${CYGPATH_W} $withval`"
     20786     CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"
     20787     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     20788
     20789
    2076820790fi;
    2076920791
     
    2079020812
    2079120813if test -n "$PKG_CONFIG" ; then
    20792   if $PKG_CONFIG --exists "coinutils = trunk osi cgl"; then
    20793     COINDEPEND_VERSIONS="`$PKG_CONFIG --modversion coinutils = trunk osi cgl 2>/dev/null`"
    20794      cflags=`$PKG_CONFIG --cflags "coinutils = trunk osi cgl" 2>/dev/null`
     20814  if $PKG_CONFIG --exists "cgl osi coinutils = trunk"; then
     20815    COINDEPEND_VERSIONS="`$PKG_CONFIG --modversion cgl osi coinutils = trunk 2>/dev/null`"
     20816     cflags=`$PKG_CONFIG --cflags "cgl osi coinutils = trunk" 2>/dev/null`
    2079520817    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2079620818        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2080120823        fi
    2080220824    COINDEPEND_CFLAGS="$cflags"
    20803     COINDEPEND_LIBS=`$PKG_CONFIG --libs "coinutils = trunk osi cgl" 2>/dev/null`
    20804     COINDEPEND_DATA=`$PKG_CONFIG --variable=datadir "coinutils = trunk osi cgl" 2>/dev/null`
     20825    COINDEPEND_LIBS=`$PKG_CONFIG --libs "cgl osi coinutils = trunk" 2>/dev/null`
     20826    COINDEPEND_DATA=`$PKG_CONFIG --variable=datadir "cgl osi coinutils = trunk" 2>/dev/null`
    2080520827     coin_has_coindepend=yes
    2080620828        echo "$as_me:$LINENO: result: yes: $COINDEPEND_VERSIONS" >&5
    2080720829echo "${ECHO_T}yes: $COINDEPEND_VERSIONS" >&6
    20808         REQUIREDPACKAGES="coinutils = trunk osi cgl $REQUIREDPACKAGES"
     20830        CBCLIB_PCREQUIRES="cgl osi coinutils = trunk $CBCLIB_PCREQUIRES"
     20831        CBCGENERIC_PCREQUIRES="cgl osi coinutils = trunk $CBCGENERIC_PCREQUIRES"
     20832
    2080920833
    2081020834
    2081120835  else
    20812     COINDEPEND_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinutils = trunk osi cgl`
     20836    COINDEPEND_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors cgl osi coinutils = trunk`
    2081320837      coin_has_coindepend=notGiven
    2081420838        echo "$as_me:$LINENO: result: not given: $COINDEPEND_PKG_ERRORS" >&5
     
    2082820852    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2082920853    export PKG_CONFIG_PATH
     20854
     20855    # augment X_CFLAGS and X_LIBS for each build target X in CbcLib CbcGeneric
     20856
     20857      CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS"
     20858      CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS"
     20859
     20860      CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS"
     20861      CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS"
     20862
    2083020863  else
    2083120864    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2083220865echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2083320866
    20834 echo "$as_me:$LINENO: checking for COIN-OR module CoinDepend (fallback)" >&5
    20835 echo $ECHO_N "checking for COIN-OR module CoinDepend (fallback)... $ECHO_C" >&6
     20867echo "$as_me:$LINENO: checking for COIN-OR package CoinDepend (fallback)" >&5
     20868echo $ECHO_N "checking for COIN-OR package CoinDepend (fallback)... $ECHO_C" >&6
    2083620869
    2083720870coin_has_coindepend=notGiven
     
    2084020873COINDEPEND_DATA=
    2084120874
    20842 
    20843 # initial list of dependencies is "coinutils = trunk osi cgl", but we need to filter out version number specifications (= x, <= x, >= x)
    20844 projtoprocess="coinutils  osi cgl"
     20875# initial list of dependencies is "cgl osi coinutils = trunk", but we need to filter out version number specifications (= x, <= x, >= x)
     20876projtoprocess="cgl osi coinutils "
    2084520877projprocessed=""
    2084620878
     
    2091520947  projtoprocess="$nextprojtoprocess"
    2091620948
     20949  # if there are no more projects to search for, finish up
    2091720950  if test "x$projtoprocess" = x ; then
    2091820951    coin_has_coindepend=yes
     
    2092020953echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2092120954
    20922     REQUIREDPACKAGES="coinutils = trunk osi cgl $REQUIREDPACKAGES"
    20923 
    2092420955cat >>confdefs.h <<\_ACEOF
    2092520956#define COIN_HAS_COINDEPEND 1
     
    2092720958
    2092820959
     20960
     20961      CBCLIB_PCREQUIRES="cgl osi coinutils = trunk $CBCLIB_PCREQUIRES"
     20962      CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS"
     20963      CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS"
     20964
     20965      CBCGENERIC_PCREQUIRES="cgl osi coinutils = trunk $CBCGENERIC_PCREQUIRES"
     20966      CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS"
     20967      CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS"
     20968
     20969
    2092920970    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     20971      if test -n "$COINDEPEND_CFLAGS" ; then
     20972        { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
     20973echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
     20974      fi
     20975      if test -n "$COINDEPEND_LIBS" ; then
     20976        { echo "$as_me:$LINENO: CoinDepend LIBS   are $COINDEPEND_LIBS" >&5
     20977echo "$as_me: CoinDepend LIBS   are $COINDEPEND_LIBS" >&6;}
     20978      fi
     20979      if test -n "$COINDEPEND_DATA" ; then
     20980        { echo "$as_me:$LINENO: CoinDepend DATA   is  $COINDEPEND_DATA" >&5
     20981echo "$as_me: CoinDepend DATA   is  $COINDEPEND_DATA" >&6;}
     20982      fi
     20983
     20984        { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     20985echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     20986        { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     20987echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     20988
     20989        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     20990echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     20991        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     20992echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     20993
     20994    fi
     20995  fi
     20996done
     20997
     20998
     20999
     21000if test $coin_has_coindepend != notGiven &&
     21001                test $coin_has_coindepend != skipping; then
     21002  COIN_HAS_COINDEPEND_TRUE=
     21003  COIN_HAS_COINDEPEND_FALSE='#'
     21004else
     21005  COIN_HAS_COINDEPEND_TRUE='#'
     21006  COIN_HAS_COINDEPEND_FALSE=
     21007fi
     21008
     21009
     21010
     21011  fi
     21012
     21013else
     21014  echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
     21015echo "${ECHO_T}$coin_has_coindepend" >&6
     21016fi
     21017
     21018if test $coin_has_coindepend != skipping &&
     21019   test $coin_has_coindepend != notGiven ; then
     21020
     21021cat >>confdefs.h <<\_ACEOF
     21022#define COIN_HAS_COINDEPEND 1
     21023_ACEOF
     21024
     21025
     21026  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2093021027    if test -n "$COINDEPEND_CFLAGS" ; then
    2093121028      { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
     
    2094021037echo "$as_me: CoinDepend DATA   is  $COINDEPEND_DATA" >&6;}
    2094121038    fi
     21039    if test -n "$COINDEPEND_CFLAGS" ; then
     21040      { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
     21041echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
    2094221042    fi
     21043
     21044      { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     21045echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     21046      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     21047echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21048
     21049      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     21050echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     21051      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     21052echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21053
    2094321054  fi
    20944 done
    20945 
     21055fi
     21056
     21057# Define the Makefile conditional
    2094621058
    2094721059
     
    2095721069
    2095821070
    20959   fi
    20960 
    20961 else
    20962   echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
    20963 echo "${ECHO_T}$coin_has_coindepend" >&6
    20964 fi
    20965 
    20966 if test $coin_has_coindepend != skipping &&
    20967    test $coin_has_coindepend != notGiven ; then
    20968   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    20969   if test -n "$COINDEPEND_CFLAGS" ; then
    20970     { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
    20971 echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
    20972   fi
    20973   if test -n "$COINDEPEND_LIBS" ; then
    20974     { echo "$as_me:$LINENO: CoinDepend LIBS   are $COINDEPEND_LIBS" >&5
    20975 echo "$as_me: CoinDepend LIBS   are $COINDEPEND_LIBS" >&6;}
    20976   fi
    20977   if test -n "$COINDEPEND_DATA" ; then
    20978     { echo "$as_me:$LINENO: CoinDepend DATA   is  $COINDEPEND_DATA" >&5
    20979 echo "$as_me: CoinDepend DATA   is  $COINDEPEND_DATA" >&6;}
    20980   fi
    20981   fi
    20982 
    20983 cat >>confdefs.h <<\_ACEOF
    20984 #define COIN_HAS_COINDEPEND 1
    20985 _ACEOF
    20986 
    20987 fi
    20988 
    20989 # Define the Makefile conditional
    20990 
    20991 
    20992 if test $coin_has_coindepend != notGiven &&
    20993                 test $coin_has_coindepend != skipping; then
    20994   COIN_HAS_COINDEPEND_TRUE=
    20995   COIN_HAS_COINDEPEND_FALSE='#'
    20996 else
    20997   COIN_HAS_COINDEPEND_TRUE='#'
    20998   COIN_HAS_COINDEPEND_FALSE=
    20999 fi
    21000 
    21001 
    21002 
    2100321071if test $coin_has_coindepend != yes ; then
    2100421072  { { echo "$as_me:$LINENO: error: Required package CoinUtils, Osi, or Cgl not available." >&5
     
    2101021078
    2101121079
    21012 echo "$as_me:$LINENO: checking for COIN-OR module Clp" >&5
    21013 echo $ECHO_N "checking for COIN-OR module Clp... $ECHO_C" >&6
     21080echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
     21081echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
    2101421082
    2101521083coin_has_clp=notGiven
    2101621084
    21017 # check if user wants to skip module in any case
     21085# check if user wants to skip package in any case
    2101821086if test x"$COIN_SKIP_PROJECTS" != x; then
    2101921087  for dir in $COIN_SKIP_PROJECTS; do
     
    2103221100
    2103321101
     21102
     21103
     21104
     21105
     21106
     21107
     21108
     21109
    2103421110#check if user provided LIBS, CFLAGS, or DATA for module
    2103521111if test $coin_has_clp != skipping; then
     
    2104121117  coin_has_clp=yes
    2104221118       CLP_LIBS="$withval"
    21043        PCADDLIBS="$withval $PCADDLIBS"
     21119
     21120         CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS"
     21121         CBCLIB_LIBS="$withval $CBCLIB_LIBS"
     21122
     21123         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     21124         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     21125
    2104421126
    2104521127fi;
     
    2105121133  coin_has_clp=yes
    2105221134     CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     21135     CBCLIB_CFLAGS="$withval $CBCLIB_CFLAGS"
     21136     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     21137
     21138
    2105321139fi;
    2105421140
     
    2109121177        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
    2109221178echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
    21093         REQUIREDPACKAGES="osi-clp $REQUIREDPACKAGES"
     21179        CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
     21180        CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
     21181
    2109421182
    2109521183
     
    2111321201    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2111421202    export PKG_CONFIG_PATH
     21203
     21204    # augment X_CFLAGS and X_LIBS for each build target X in CbcLib CbcGeneric
     21205
     21206      CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
     21207      CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
     21208
     21209      CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
     21210      CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
     21211
    2111521212  else
    2111621213    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2111721214echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2111821215
    21119 echo "$as_me:$LINENO: checking for COIN-OR module Clp (fallback)" >&5
    21120 echo $ECHO_N "checking for COIN-OR module Clp (fallback)... $ECHO_C" >&6
     21216echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
     21217echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
    2112121218
    2112221219coin_has_clp=notGiven
     
    2112421221CLP_CFLAGS=
    2112521222CLP_DATA=
    21126 
    2112721223
    2112821224# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2120021296  projtoprocess="$nextprojtoprocess"
    2120121297
     21298  # if there are no more projects to search for, finish up
    2120221299  if test "x$projtoprocess" = x ; then
    2120321300    coin_has_clp=yes
     
    2120521302echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2120621303
    21207     REQUIREDPACKAGES="osi-clp $REQUIREDPACKAGES"
    21208 
    2120921304cat >>confdefs.h <<\_ACEOF
    2121021305#define COIN_HAS_CLP 1
     
    2121221307
    2121321308
     21309
     21310      CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
     21311      CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
     21312      CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
     21313
     21314      CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
     21315      CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
     21316      CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
     21317
     21318
    2121421319    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21320      if test -n "$CLP_CFLAGS" ; then
     21321        { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     21322echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
     21323      fi
     21324      if test -n "$CLP_LIBS" ; then
     21325        { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
     21326echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
     21327      fi
     21328      if test -n "$CLP_DATA" ; then
     21329        { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
     21330echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
     21331      fi
     21332
     21333        { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     21334echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     21335        { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     21336echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21337
     21338        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     21339echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     21340        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     21341echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21342
     21343    fi
     21344  fi
     21345done
     21346
     21347
     21348
     21349if test $coin_has_clp != notGiven &&
     21350                test $coin_has_clp != skipping; then
     21351  COIN_HAS_CLP_TRUE=
     21352  COIN_HAS_CLP_FALSE='#'
     21353else
     21354  COIN_HAS_CLP_TRUE='#'
     21355  COIN_HAS_CLP_FALSE=
     21356fi
     21357
     21358
     21359
     21360  fi
     21361
     21362else
     21363  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     21364echo "${ECHO_T}$coin_has_clp" >&6
     21365fi
     21366
     21367if test $coin_has_clp != skipping &&
     21368   test $coin_has_clp != notGiven ; then
     21369
     21370cat >>confdefs.h <<\_ACEOF
     21371#define COIN_HAS_CLP 1
     21372_ACEOF
     21373
     21374
     21375  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2121521376    if test -n "$CLP_CFLAGS" ; then
    2121621377      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     
    2122521386echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
    2122621387    fi
     21388    if test -n "$CLP_CFLAGS" ; then
     21389      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     21390echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
    2122721391    fi
     21392
     21393      { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
     21394echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
     21395      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
     21396echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21397
     21398      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     21399echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     21400      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     21401echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21402
    2122821403  fi
    21229 done
    21230 
     21404fi
     21405
     21406# Define the Makefile conditional
    2123121407
    2123221408
     
    2124221418
    2124321419
    21244   fi
    21245 
    21246 else
    21247   echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    21248 echo "${ECHO_T}$coin_has_clp" >&6
    21249 fi
    21250 
    21251 if test $coin_has_clp != skipping &&
    21252    test $coin_has_clp != notGiven ; then
    21253   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21254   if test -n "$CLP_CFLAGS" ; then
    21255     { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
    21256 echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
    21257   fi
    21258   if test -n "$CLP_LIBS" ; then
    21259     { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
    21260 echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
    21261   fi
    21262   if test -n "$CLP_DATA" ; then
    21263     { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
    21264 echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
    21265   fi
    21266   fi
    21267 
    21268 cat >>confdefs.h <<\_ACEOF
    21269 #define COIN_HAS_CLP 1
    21270 _ACEOF
    21271 
    21272 fi
    21273 
    21274 # Define the Makefile conditional
    21275 
    21276 
    21277 if test $coin_has_clp != notGiven &&
    21278                 test $coin_has_clp != skipping; then
    21279   COIN_HAS_CLP_TRUE=
    21280   COIN_HAS_CLP_FALSE='#'
    21281 else
    21282   COIN_HAS_CLP_TRUE='#'
    21283   COIN_HAS_CLP_FALSE=
    21284 fi
    21285 
    21286 
    21287 
    2128821420if test $coin_has_clp != yes ; then
    2128921421  { { echo "$as_me:$LINENO: error: \"Required package Clp unavailable.\"" >&5
     
    2129221424fi
    2129321425
    21294 # The rest are not so critical, so we don't put in quite so much effort.
    21295 
    21296 
    21297 echo "$as_me:$LINENO: checking for COIN-OR module DyLP" >&5
    21298 echo $ECHO_N "checking for COIN-OR module DyLP... $ECHO_C" >&6
     21426# The rest are not required for linking against Cbc
     21427
     21428
     21429echo "$as_me:$LINENO: checking for COIN-OR package OsiTests" >&5
     21430echo $ECHO_N "checking for COIN-OR package OsiTests... $ECHO_C" >&6
     21431
     21432coin_has_ositests=notGiven
     21433
     21434# check if user wants to skip package in any case
     21435if test x"$COIN_SKIP_PROJECTS" != x; then
     21436  for dir in $COIN_SKIP_PROJECTS; do
     21437    if test $dir = "OsiTests"; then
     21438      coin_has_ositests=skipping
     21439    fi
     21440  done
     21441fi
     21442
     21443OSITESTS_LIBS=
     21444OSITESTS_CFLAGS=
     21445OSITESTS_DATA=
     21446
     21447
     21448
     21449
     21450
     21451#check if user provided LIBS, CFLAGS, or DATA for module
     21452if test $coin_has_ositests != skipping; then
     21453
     21454
     21455# Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
     21456if test "${with_ositests_lib+set}" = set; then
     21457  withval="$with_ositests_lib"
     21458  coin_has_ositests=yes
     21459       OSITESTS_LIBS="$withval"
     21460
     21461
     21462fi;
     21463
     21464
     21465# Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
     21466if test "${with_ositests_incdir+set}" = set; then
     21467  withval="$with_ositests_incdir"
     21468  coin_has_ositests=yes
     21469     OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
     21470
     21471
     21472fi;
     21473
     21474
     21475# Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
     21476if test "${with_ositests_datadir+set}" = set; then
     21477  withval="$with_ositests_datadir"
     21478  coin_has_ositests=yes
     21479     OSITESTS_DATA="$withval"
     21480fi;
     21481fi
     21482
     21483if test $coin_has_ositests = notGiven; then
     21484  if test -n "$PKG_CONFIG" ; then
     21485    # set search path for pkg-config
     21486    # need to export variable to be sure that the following pkg-config gets these values
     21487    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21488    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     21489    export PKG_CONFIG_PATH
     21490
     21491    # let pkg-config do it's magic
     21492
     21493
     21494
     21495if test -n "$PKG_CONFIG" ; then
     21496  if $PKG_CONFIG --exists "osi-unittests"; then
     21497    OSITESTS_VERSIONS="`$PKG_CONFIG --modversion osi-unittests 2>/dev/null`"
     21498     cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
     21499    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21500        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21501        # but only do this if is not trivial
     21502    if test "$CYGPATH_W" != "echo" ; then
     21503      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21504          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21505        fi
     21506    OSITESTS_CFLAGS="$cflags"
     21507    OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
     21508    OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
     21509     coin_has_ositests=yes
     21510        echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
     21511echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
     21512
     21513
     21514
     21515  else
     21516    OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-unittests`
     21517      coin_has_ositests=notGiven
     21518        echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
     21519echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
     21520
     21521  fi
     21522else
     21523  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
     21524echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
     21525   { (exit 1); exit 1; }; }
     21526fi
     21527
     21528
     21529
     21530
     21531    # reset PKG_CONFIG_PATH variable
     21532    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21533    export PKG_CONFIG_PATH
     21534
     21535    # augment X_CFLAGS and X_LIBS for each build target X in
     21536
     21537  else
     21538    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     21539echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     21540
     21541echo "$as_me:$LINENO: checking for COIN-OR package OsiTests (fallback)" >&5
     21542echo $ECHO_N "checking for COIN-OR package OsiTests (fallback)... $ECHO_C" >&6
     21543
     21544coin_has_ositests=notGiven
     21545OSITESTS_LIBS=
     21546OSITESTS_CFLAGS=
     21547OSITESTS_DATA=
     21548
     21549# initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x)
     21550projtoprocess="osi-unittests"
     21551projprocessed=""
     21552
     21553while test $coin_has_ositests = notGiven ; do
     21554  # setup list of projects that need to be processed in the next round
     21555  nextprojtoprocess=""
     21556
     21557  for proj in $projtoprocess ; do
     21558    # if $proj has been processed already, skip this round
     21559    if test "x$projprocessed" != x ; then
     21560      for projdone in $projprocessed ; do
     21561        if test $projdone = $proj ; then
     21562          continue 2
     21563        fi
     21564      done
     21565    fi
     21566
     21567    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     21568    pcfile=""
     21569    save_IFS="$IFS"
     21570    IFS=":"
     21571    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     21572      # 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
     21573      if test -r "$dir/$proj-uninstalled.pc" ; then
     21574        pcfile="$dir/$proj-uninstalled.pc"
     21575        pcfiledir="$dir"
     21576        break
     21577      fi
     21578    done
     21579    IFS="$save_IFS"
     21580
     21581    if test "x$pcfile" != x ; then
     21582      # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     21583      projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     21584      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21585      OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
     21586
     21587      # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     21588      # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     21589      projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     21590      if test "x$projlibs" != x ; then
     21591        if test -d "${pcfiledir}/src" ; then
     21592          projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     21593        else
     21594          projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     21595        fi
     21596      else
     21597        projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     21598      fi
     21599      OSITESTS_LIBS="$OSITESTS_LIBS $projlibs"
     21600
     21601      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
     21602      if test "x$projprocessed" = x ; then
     21603        OSITESTS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     21604      fi
     21605
     21606      # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
     21607      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
     21608      nextprojtoprocess="$nextprojtoprocess $projrequires"
     21609
     21610      # remember that we have processed $proj
     21611      projprocessed="$projprocessed $proj"
     21612
     21613    else
     21614      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     21615echo "${ECHO_T}no, dependency $proj not available" >&6
     21616      break 2
     21617    fi
     21618
     21619  done
     21620
     21621  projtoprocess="$nextprojtoprocess"
     21622
     21623  # if there are no more projects to search for, finish up
     21624  if test "x$projtoprocess" = x ; then
     21625    coin_has_ositests=yes
     21626    echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
     21627echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     21628
     21629cat >>confdefs.h <<\_ACEOF
     21630#define COIN_HAS_OSITESTS 1
     21631_ACEOF
     21632
     21633
     21634
     21635
     21636    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21637      if test -n "$OSITESTS_CFLAGS" ; then
     21638        { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
     21639echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
     21640      fi
     21641      if test -n "$OSITESTS_LIBS" ; then
     21642        { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
     21643echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
     21644      fi
     21645      if test -n "$OSITESTS_DATA" ; then
     21646        { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
     21647echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
     21648      fi
     21649
     21650    fi
     21651  fi
     21652done
     21653
     21654
     21655
     21656if test $coin_has_ositests != notGiven &&
     21657                test $coin_has_ositests != skipping; then
     21658  COIN_HAS_OSITESTS_TRUE=
     21659  COIN_HAS_OSITESTS_FALSE='#'
     21660else
     21661  COIN_HAS_OSITESTS_TRUE='#'
     21662  COIN_HAS_OSITESTS_FALSE=
     21663fi
     21664
     21665
     21666
     21667  fi
     21668
     21669else
     21670  echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
     21671echo "${ECHO_T}$coin_has_ositests" >&6
     21672fi
     21673
     21674if test $coin_has_ositests != skipping &&
     21675   test $coin_has_ositests != notGiven ; then
     21676
     21677cat >>confdefs.h <<\_ACEOF
     21678#define COIN_HAS_OSITESTS 1
     21679_ACEOF
     21680
     21681
     21682  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21683    if test -n "$OSITESTS_CFLAGS" ; then
     21684      { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
     21685echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
     21686    fi
     21687    if test -n "$OSITESTS_LIBS" ; then
     21688      { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
     21689echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
     21690    fi
     21691    if test -n "$OSITESTS_DATA" ; then
     21692      { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
     21693echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
     21694    fi
     21695    if test -n "$OSITESTS_CFLAGS" ; then
     21696      { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
     21697echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
     21698    fi
     21699
     21700  fi
     21701fi
     21702
     21703# Define the Makefile conditional
     21704
     21705
     21706if test $coin_has_ositests != notGiven &&
     21707                test $coin_has_ositests != skipping; then
     21708  COIN_HAS_OSITESTS_TRUE=
     21709  COIN_HAS_OSITESTS_FALSE='#'
     21710else
     21711  COIN_HAS_OSITESTS_TRUE='#'
     21712  COIN_HAS_OSITESTS_FALSE=
     21713fi
     21714
     21715
     21716
     21717
     21718echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
     21719echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
     21720
     21721coin_has_sample=notGiven
     21722
     21723# check if user wants to skip package in any case
     21724if test x"$COIN_SKIP_PROJECTS" != x; then
     21725  for dir in $COIN_SKIP_PROJECTS; do
     21726    if test $dir = "Sample"; then
     21727      coin_has_sample=skipping
     21728    fi
     21729  done
     21730fi
     21731
     21732SAMPLE_LIBS=
     21733SAMPLE_CFLAGS=
     21734SAMPLE_DATA=
     21735
     21736
     21737
     21738
     21739
     21740#check if user provided LIBS, CFLAGS, or DATA for module
     21741if test $coin_has_sample != skipping; then
     21742
     21743
     21744# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
     21745if test "${with_sample_lib+set}" = set; then
     21746  withval="$with_sample_lib"
     21747  coin_has_sample=yes
     21748       SAMPLE_LIBS="$withval"
     21749
     21750
     21751fi;
     21752
     21753
     21754# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
     21755if test "${with_sample_incdir+set}" = set; then
     21756  withval="$with_sample_incdir"
     21757  coin_has_sample=yes
     21758     SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
     21759
     21760
     21761fi;
     21762
     21763
     21764# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
     21765if test "${with_sample_datadir+set}" = set; then
     21766  withval="$with_sample_datadir"
     21767  coin_has_sample=yes
     21768     SAMPLE_DATA="$withval"
     21769fi;
     21770fi
     21771
     21772if test $coin_has_sample = notGiven; then
     21773  if test -n "$PKG_CONFIG" ; then
     21774    # set search path for pkg-config
     21775    # need to export variable to be sure that the following pkg-config gets these values
     21776    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21777    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     21778    export PKG_CONFIG_PATH
     21779
     21780    # let pkg-config do it's magic
     21781
     21782
     21783
     21784if test -n "$PKG_CONFIG" ; then
     21785  if $PKG_CONFIG --exists "coindatasample"; then
     21786    SAMPLE_VERSIONS="`$PKG_CONFIG --modversion coindatasample 2>/dev/null`"
     21787     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
     21788    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21789        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21790        # but only do this if is not trivial
     21791    if test "$CYGPATH_W" != "echo" ; then
     21792      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21793          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21794        fi
     21795    SAMPLE_CFLAGS="$cflags"
     21796    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
     21797    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
     21798     coin_has_sample=yes
     21799        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
     21800echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
     21801
     21802
     21803
     21804  else
     21805    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatasample`
     21806      coin_has_sample=notGiven
     21807        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
     21808echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
     21809
     21810  fi
     21811else
     21812  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
     21813echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
     21814   { (exit 1); exit 1; }; }
     21815fi
     21816
     21817
     21818
     21819
     21820    # reset PKG_CONFIG_PATH variable
     21821    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21822    export PKG_CONFIG_PATH
     21823
     21824    # augment X_CFLAGS and X_LIBS for each build target X in
     21825
     21826  else
     21827    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     21828echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     21829
     21830echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
     21831echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
     21832
     21833coin_has_sample=notGiven
     21834SAMPLE_LIBS=
     21835SAMPLE_CFLAGS=
     21836SAMPLE_DATA=
     21837
     21838# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x)
     21839projtoprocess="coindatasample"
     21840projprocessed=""
     21841
     21842while test $coin_has_sample = notGiven ; do
     21843  # setup list of projects that need to be processed in the next round
     21844  nextprojtoprocess=""
     21845
     21846  for proj in $projtoprocess ; do
     21847    # if $proj has been processed already, skip this round
     21848    if test "x$projprocessed" != x ; then
     21849      for projdone in $projprocessed ; do
     21850        if test $projdone = $proj ; then
     21851          continue 2
     21852        fi
     21853      done
     21854    fi
     21855
     21856    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     21857    pcfile=""
     21858    save_IFS="$IFS"
     21859    IFS=":"
     21860    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     21861      # 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
     21862      if test -r "$dir/$proj-uninstalled.pc" ; then
     21863        pcfile="$dir/$proj-uninstalled.pc"
     21864        pcfiledir="$dir"
     21865        break
     21866      fi
     21867    done
     21868    IFS="$save_IFS"
     21869
     21870    if test "x$pcfile" != x ; then
     21871      # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     21872      projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     21873      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21874      SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
     21875
     21876      # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     21877      # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     21878      projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     21879      if test "x$projlibs" != x ; then
     21880        if test -d "${pcfiledir}/src" ; then
     21881          projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     21882        else
     21883          projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     21884        fi
     21885      else
     21886        projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     21887      fi
     21888      SAMPLE_LIBS="$SAMPLE_LIBS $projlibs"
     21889
     21890      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
     21891      if test "x$projprocessed" = x ; then
     21892        SAMPLE_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     21893      fi
     21894
     21895      # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
     21896      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
     21897      nextprojtoprocess="$nextprojtoprocess $projrequires"
     21898
     21899      # remember that we have processed $proj
     21900      projprocessed="$projprocessed $proj"
     21901
     21902    else
     21903      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     21904echo "${ECHO_T}no, dependency $proj not available" >&6
     21905      break 2
     21906    fi
     21907
     21908  done
     21909
     21910  projtoprocess="$nextprojtoprocess"
     21911
     21912  # if there are no more projects to search for, finish up
     21913  if test "x$projtoprocess" = x ; then
     21914    coin_has_sample=yes
     21915    echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
     21916echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     21917
     21918cat >>confdefs.h <<\_ACEOF
     21919#define COIN_HAS_SAMPLE 1
     21920_ACEOF
     21921
     21922
     21923
     21924
     21925    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21926      if test -n "$SAMPLE_CFLAGS" ; then
     21927        { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     21928echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     21929      fi
     21930      if test -n "$SAMPLE_LIBS" ; then
     21931        { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     21932echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     21933      fi
     21934      if test -n "$SAMPLE_DATA" ; then
     21935        { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     21936echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
     21937      fi
     21938
     21939    fi
     21940  fi
     21941done
     21942
     21943
     21944
     21945if test $coin_has_sample != notGiven &&
     21946                test $coin_has_sample != skipping; then
     21947  COIN_HAS_SAMPLE_TRUE=
     21948  COIN_HAS_SAMPLE_FALSE='#'
     21949else
     21950  COIN_HAS_SAMPLE_TRUE='#'
     21951  COIN_HAS_SAMPLE_FALSE=
     21952fi
     21953
     21954
     21955
     21956  fi
     21957
     21958else
     21959  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     21960echo "${ECHO_T}$coin_has_sample" >&6
     21961fi
     21962
     21963if test $coin_has_sample != skipping &&
     21964   test $coin_has_sample != notGiven ; then
     21965
     21966cat >>confdefs.h <<\_ACEOF
     21967#define COIN_HAS_SAMPLE 1
     21968_ACEOF
     21969
     21970
     21971  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21972    if test -n "$SAMPLE_CFLAGS" ; then
     21973      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     21974echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     21975    fi
     21976    if test -n "$SAMPLE_LIBS" ; then
     21977      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     21978echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     21979    fi
     21980    if test -n "$SAMPLE_DATA" ; then
     21981      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     21982echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
     21983    fi
     21984    if test -n "$SAMPLE_CFLAGS" ; then
     21985      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     21986echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     21987    fi
     21988
     21989  fi
     21990fi
     21991
     21992# Define the Makefile conditional
     21993
     21994
     21995if test $coin_has_sample != notGiven &&
     21996                test $coin_has_sample != skipping; then
     21997  COIN_HAS_SAMPLE_TRUE=
     21998  COIN_HAS_SAMPLE_FALSE='#'
     21999else
     22000  COIN_HAS_SAMPLE_TRUE='#'
     22001  COIN_HAS_SAMPLE_FALSE=
     22002fi
     22003
     22004
     22005
     22006
     22007echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
     22008echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
     22009
     22010coin_has_netlib=notGiven
     22011
     22012# check if user wants to skip package in any case
     22013if test x"$COIN_SKIP_PROJECTS" != x; then
     22014  for dir in $COIN_SKIP_PROJECTS; do
     22015    if test $dir = "Netlib"; then
     22016      coin_has_netlib=skipping
     22017    fi
     22018  done
     22019fi
     22020
     22021NETLIB_LIBS=
     22022NETLIB_CFLAGS=
     22023NETLIB_DATA=
     22024
     22025
     22026
     22027
     22028
     22029#check if user provided LIBS, CFLAGS, or DATA for module
     22030if test $coin_has_netlib != skipping; then
     22031
     22032
     22033# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
     22034if test "${with_netlib_lib+set}" = set; then
     22035  withval="$with_netlib_lib"
     22036  coin_has_netlib=yes
     22037       NETLIB_LIBS="$withval"
     22038
     22039
     22040fi;
     22041
     22042
     22043# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
     22044if test "${with_netlib_incdir+set}" = set; then
     22045  withval="$with_netlib_incdir"
     22046  coin_has_netlib=yes
     22047     NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
     22048
     22049
     22050fi;
     22051
     22052
     22053# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
     22054if test "${with_netlib_datadir+set}" = set; then
     22055  withval="$with_netlib_datadir"
     22056  coin_has_netlib=yes
     22057     NETLIB_DATA="$withval"
     22058fi;
     22059fi
     22060
     22061if test $coin_has_netlib = notGiven; then
     22062  if test -n "$PKG_CONFIG" ; then
     22063    # set search path for pkg-config
     22064    # need to export variable to be sure that the following pkg-config gets these values
     22065    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22066    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22067    export PKG_CONFIG_PATH
     22068
     22069    # let pkg-config do it's magic
     22070
     22071
     22072
     22073if test -n "$PKG_CONFIG" ; then
     22074  if $PKG_CONFIG --exists "coindatanetlib"; then
     22075    NETLIB_VERSIONS="`$PKG_CONFIG --modversion coindatanetlib 2>/dev/null`"
     22076     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
     22077    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22078        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22079        # but only do this if is not trivial
     22080    if test "$CYGPATH_W" != "echo" ; then
     22081      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22082          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22083        fi
     22084    NETLIB_CFLAGS="$cflags"
     22085    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
     22086    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
     22087     coin_has_netlib=yes
     22088        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
     22089echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
     22090
     22091
     22092
     22093  else
     22094    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatanetlib`
     22095      coin_has_netlib=notGiven
     22096        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
     22097echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
     22098
     22099  fi
     22100else
     22101  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
     22102echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
     22103   { (exit 1); exit 1; }; }
     22104fi
     22105
     22106
     22107
     22108
     22109    # reset PKG_CONFIG_PATH variable
     22110    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22111    export PKG_CONFIG_PATH
     22112
     22113    # augment X_CFLAGS and X_LIBS for each build target X in
     22114
     22115  else
     22116    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22117echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22118
     22119echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
     22120echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
     22121
     22122coin_has_netlib=notGiven
     22123NETLIB_LIBS=
     22124NETLIB_CFLAGS=
     22125NETLIB_DATA=
     22126
     22127# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x)
     22128projtoprocess="coindatanetlib"
     22129projprocessed=""
     22130
     22131while test $coin_has_netlib = notGiven ; do
     22132  # setup list of projects that need to be processed in the next round
     22133  nextprojtoprocess=""
     22134
     22135  for proj in $projtoprocess ; do
     22136    # if $proj has been processed already, skip this round
     22137    if test "x$projprocessed" != x ; then
     22138      for projdone in $projprocessed ; do
     22139        if test $projdone = $proj ; then
     22140          continue 2
     22141        fi
     22142      done
     22143    fi
     22144
     22145    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22146    pcfile=""
     22147    save_IFS="$IFS"
     22148    IFS=":"
     22149    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22150      # 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
     22151      if test -r "$dir/$proj-uninstalled.pc" ; then
     22152        pcfile="$dir/$proj-uninstalled.pc"
     22153        pcfiledir="$dir"
     22154        break
     22155      fi
     22156    done
     22157    IFS="$save_IFS"
     22158
     22159    if test "x$pcfile" != x ; then
     22160      # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     22161      projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     22162      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22163      NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
     22164
     22165      # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     22166      # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     22167      projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     22168      if test "x$projlibs" != x ; then
     22169        if test -d "${pcfiledir}/src" ; then
     22170          projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     22171        else
     22172          projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     22173        fi
     22174      else
     22175        projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     22176      fi
     22177      NETLIB_LIBS="$NETLIB_LIBS $projlibs"
     22178
     22179      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
     22180      if test "x$projprocessed" = x ; then
     22181        NETLIB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     22182      fi
     22183
     22184      # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
     22185      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
     22186      nextprojtoprocess="$nextprojtoprocess $projrequires"
     22187
     22188      # remember that we have processed $proj
     22189      projprocessed="$projprocessed $proj"
     22190
     22191    else
     22192      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22193echo "${ECHO_T}no, dependency $proj not available" >&6
     22194      break 2
     22195    fi
     22196
     22197  done
     22198
     22199  projtoprocess="$nextprojtoprocess"
     22200
     22201  # if there are no more projects to search for, finish up
     22202  if test "x$projtoprocess" = x ; then
     22203    coin_has_netlib=yes
     22204    echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
     22205echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     22206
     22207cat >>confdefs.h <<\_ACEOF
     22208#define COIN_HAS_NETLIB 1
     22209_ACEOF
     22210
     22211
     22212
     22213
     22214    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22215      if test -n "$NETLIB_CFLAGS" ; then
     22216        { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     22217echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     22218      fi
     22219      if test -n "$NETLIB_LIBS" ; then
     22220        { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     22221echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     22222      fi
     22223      if test -n "$NETLIB_DATA" ; then
     22224        { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     22225echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
     22226      fi
     22227
     22228    fi
     22229  fi
     22230done
     22231
     22232
     22233
     22234if test $coin_has_netlib != notGiven &&
     22235                test $coin_has_netlib != skipping; then
     22236  COIN_HAS_NETLIB_TRUE=
     22237  COIN_HAS_NETLIB_FALSE='#'
     22238else
     22239  COIN_HAS_NETLIB_TRUE='#'
     22240  COIN_HAS_NETLIB_FALSE=
     22241fi
     22242
     22243
     22244
     22245  fi
     22246
     22247else
     22248  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     22249echo "${ECHO_T}$coin_has_netlib" >&6
     22250fi
     22251
     22252if test $coin_has_netlib != skipping &&
     22253   test $coin_has_netlib != notGiven ; then
     22254
     22255cat >>confdefs.h <<\_ACEOF
     22256#define COIN_HAS_NETLIB 1
     22257_ACEOF
     22258
     22259
     22260  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22261    if test -n "$NETLIB_CFLAGS" ; then
     22262      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     22263echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     22264    fi
     22265    if test -n "$NETLIB_LIBS" ; then
     22266      { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     22267echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     22268    fi
     22269    if test -n "$NETLIB_DATA" ; then
     22270      { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     22271echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
     22272    fi
     22273    if test -n "$NETLIB_CFLAGS" ; then
     22274      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     22275echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     22276    fi
     22277
     22278  fi
     22279fi
     22280
     22281# Define the Makefile conditional
     22282
     22283
     22284if test $coin_has_netlib != notGiven &&
     22285                test $coin_has_netlib != skipping; then
     22286  COIN_HAS_NETLIB_TRUE=
     22287  COIN_HAS_NETLIB_FALSE='#'
     22288else
     22289  COIN_HAS_NETLIB_TRUE='#'
     22290  COIN_HAS_NETLIB_FALSE=
     22291fi
     22292
     22293
     22294
     22295
     22296echo "$as_me:$LINENO: checking for COIN-OR package Miplib3" >&5
     22297echo $ECHO_N "checking for COIN-OR package Miplib3... $ECHO_C" >&6
     22298
     22299coin_has_miplib3=notGiven
     22300
     22301# check if user wants to skip package in any case
     22302if test x"$COIN_SKIP_PROJECTS" != x; then
     22303  for dir in $COIN_SKIP_PROJECTS; do
     22304    if test $dir = "Miplib3"; then
     22305      coin_has_miplib3=skipping
     22306    fi
     22307  done
     22308fi
     22309
     22310MIPLIB3_LIBS=
     22311MIPLIB3_CFLAGS=
     22312MIPLIB3_DATA=
     22313
     22314
     22315
     22316
     22317
     22318#check if user provided LIBS, CFLAGS, or DATA for module
     22319if test $coin_has_miplib3 != skipping; then
     22320
     22321
     22322# Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given.
     22323if test "${with_miplib3_lib+set}" = set; then
     22324  withval="$with_miplib3_lib"
     22325  coin_has_miplib3=yes
     22326       MIPLIB3_LIBS="$withval"
     22327
     22328
     22329fi;
     22330
     22331
     22332# Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given.
     22333if test "${with_miplib3_incdir+set}" = set; then
     22334  withval="$with_miplib3_incdir"
     22335  coin_has_miplib3=yes
     22336     MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`"
     22337
     22338
     22339fi;
     22340
     22341
     22342# Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given.
     22343if test "${with_miplib3_datadir+set}" = set; then
     22344  withval="$with_miplib3_datadir"
     22345  coin_has_miplib3=yes
     22346     MIPLIB3_DATA="$withval"
     22347fi;
     22348fi
     22349
     22350if test $coin_has_miplib3 = notGiven; then
     22351  if test -n "$PKG_CONFIG" ; then
     22352    # set search path for pkg-config
     22353    # need to export variable to be sure that the following pkg-config gets these values
     22354    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22355    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22356    export PKG_CONFIG_PATH
     22357
     22358    # let pkg-config do it's magic
     22359
     22360
     22361
     22362if test -n "$PKG_CONFIG" ; then
     22363  if $PKG_CONFIG --exists "coindatamiplib3"; then
     22364    MIPLIB3_VERSIONS="`$PKG_CONFIG --modversion coindatamiplib3 2>/dev/null`"
     22365     cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/null`
     22366    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22367        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22368        # but only do this if is not trivial
     22369    if test "$CYGPATH_W" != "echo" ; then
     22370      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22371          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22372        fi
     22373    MIPLIB3_CFLAGS="$cflags"
     22374    MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null`
     22375    MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/null`
     22376     coin_has_miplib3=yes
     22377        echo "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&5
     22378echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6
     22379
     22380
     22381
     22382  else
     22383    MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatamiplib3`
     22384      coin_has_miplib3=notGiven
     22385        echo "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&5
     22386echo "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&6
     22387
     22388  fi
     22389else
     22390  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&5
     22391echo "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;}
     22392   { (exit 1); exit 1; }; }
     22393fi
     22394
     22395
     22396
     22397
     22398    # reset PKG_CONFIG_PATH variable
     22399    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22400    export PKG_CONFIG_PATH
     22401
     22402    # augment X_CFLAGS and X_LIBS for each build target X in
     22403
     22404  else
     22405    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22406echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22407
     22408echo "$as_me:$LINENO: checking for COIN-OR package Miplib3 (fallback)" >&5
     22409echo $ECHO_N "checking for COIN-OR package Miplib3 (fallback)... $ECHO_C" >&6
     22410
     22411coin_has_miplib3=notGiven
     22412MIPLIB3_LIBS=
     22413MIPLIB3_CFLAGS=
     22414MIPLIB3_DATA=
     22415
     22416# initial list of dependencies is "coindatamiplib3", but we need to filter out version number specifications (= x, <= x, >= x)
     22417projtoprocess="coindatamiplib3"
     22418projprocessed=""
     22419
     22420while test $coin_has_miplib3 = notGiven ; do
     22421  # setup list of projects that need to be processed in the next round
     22422  nextprojtoprocess=""
     22423
     22424  for proj in $projtoprocess ; do
     22425    # if $proj has been processed already, skip this round
     22426    if test "x$projprocessed" != x ; then
     22427      for projdone in $projprocessed ; do
     22428        if test $projdone = $proj ; then
     22429          continue 2
     22430        fi
     22431      done
     22432    fi
     22433
     22434    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22435    pcfile=""
     22436    save_IFS="$IFS"
     22437    IFS=":"
     22438    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22439      # 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
     22440      if test -r "$dir/$proj-uninstalled.pc" ; then
     22441        pcfile="$dir/$proj-uninstalled.pc"
     22442        pcfiledir="$dir"
     22443        break
     22444      fi
     22445    done
     22446    IFS="$save_IFS"
     22447
     22448    if test "x$pcfile" != x ; then
     22449      # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     22450      projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     22451      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22452      MIPLIB3_CFLAGS="$projcflags $MIPLIB3_CFLAGS"
     22453
     22454      # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     22455      # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     22456      projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     22457      if test "x$projlibs" != x ; then
     22458        if test -d "${pcfiledir}/src" ; then
     22459          projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     22460        else
     22461          projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     22462        fi
     22463      else
     22464        projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     22465      fi
     22466      MIPLIB3_LIBS="$MIPLIB3_LIBS $projlibs"
     22467
     22468      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
     22469      if test "x$projprocessed" = x ; then
     22470        MIPLIB3_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     22471      fi
     22472
     22473      # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
     22474      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
     22475      nextprojtoprocess="$nextprojtoprocess $projrequires"
     22476
     22477      # remember that we have processed $proj
     22478      projprocessed="$projprocessed $proj"
     22479
     22480    else
     22481      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22482echo "${ECHO_T}no, dependency $proj not available" >&6
     22483      break 2
     22484    fi
     22485
     22486  done
     22487
     22488  projtoprocess="$nextprojtoprocess"
     22489
     22490  # if there are no more projects to search for, finish up
     22491  if test "x$projtoprocess" = x ; then
     22492    coin_has_miplib3=yes
     22493    echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
     22494echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     22495
     22496cat >>confdefs.h <<\_ACEOF
     22497#define COIN_HAS_MIPLIB3 1
     22498_ACEOF
     22499
     22500
     22501
     22502
     22503    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22504      if test -n "$MIPLIB3_CFLAGS" ; then
     22505        { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
     22506echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
     22507      fi
     22508      if test -n "$MIPLIB3_LIBS" ; then
     22509        { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
     22510echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
     22511      fi
     22512      if test -n "$MIPLIB3_DATA" ; then
     22513        { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
     22514echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
     22515      fi
     22516
     22517    fi
     22518  fi
     22519done
     22520
     22521
     22522
     22523if test $coin_has_miplib3 != notGiven &&
     22524                test $coin_has_miplib3 != skipping; then
     22525  COIN_HAS_MIPLIB3_TRUE=
     22526  COIN_HAS_MIPLIB3_FALSE='#'
     22527else
     22528  COIN_HAS_MIPLIB3_TRUE='#'
     22529  COIN_HAS_MIPLIB3_FALSE=
     22530fi
     22531
     22532
     22533
     22534  fi
     22535
     22536else
     22537  echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
     22538echo "${ECHO_T}$coin_has_miplib3" >&6
     22539fi
     22540
     22541if test $coin_has_miplib3 != skipping &&
     22542   test $coin_has_miplib3 != notGiven ; then
     22543
     22544cat >>confdefs.h <<\_ACEOF
     22545#define COIN_HAS_MIPLIB3 1
     22546_ACEOF
     22547
     22548
     22549  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22550    if test -n "$MIPLIB3_CFLAGS" ; then
     22551      { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
     22552echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
     22553    fi
     22554    if test -n "$MIPLIB3_LIBS" ; then
     22555      { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
     22556echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
     22557    fi
     22558    if test -n "$MIPLIB3_DATA" ; then
     22559      { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
     22560echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
     22561    fi
     22562    if test -n "$MIPLIB3_CFLAGS" ; then
     22563      { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
     22564echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
     22565    fi
     22566
     22567  fi
     22568fi
     22569
     22570# Define the Makefile conditional
     22571
     22572
     22573if test $coin_has_miplib3 != notGiven &&
     22574                test $coin_has_miplib3 != skipping; then
     22575  COIN_HAS_MIPLIB3_TRUE=
     22576  COIN_HAS_MIPLIB3_FALSE='#'
     22577else
     22578  COIN_HAS_MIPLIB3_TRUE='#'
     22579  COIN_HAS_MIPLIB3_FALSE=
     22580fi
     22581
     22582
     22583
     22584
     22585#############################################################################
     22586#                    LP solvers other than CLP                              #
     22587#############################################################################
     22588
     22589# Check which other LP solvers are available, some of them become a dependency of CbcGeneric
     22590
     22591echo "$as_me:$LINENO: checking for COIN-OR package DyLP" >&5
     22592echo $ECHO_N "checking for COIN-OR package DyLP... $ECHO_C" >&6
    2129922593
    2130022594coin_has_dylp=notGiven
    2130122595
    21302 # check if user wants to skip module in any case
     22596# check if user wants to skip package in any case
    2130322597if test x"$COIN_SKIP_PROJECTS" != x; then
    2130422598  for dir in $COIN_SKIP_PROJECTS; do
     
    2131722611
    2131822612
     22613
     22614
     22615
     22616
    2131922617#check if user provided LIBS, CFLAGS, or DATA for module
    2132022618if test $coin_has_dylp != skipping; then
     
    2132622624  coin_has_dylp=yes
    2132722625       DYLP_LIBS="$withval"
    21328        PCADDLIBS="$withval $PCADDLIBS"
     22626
     22627         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     22628         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     22629
    2132922630
    2133022631fi;
     
    2133622637  coin_has_dylp=yes
    2133722638     DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     22639     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     22640
     22641
    2133822642fi;
    2133922643
     
    2137622680        echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
    2137722681echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
    21378         REQUIREDPACKAGES="osi-dylp $REQUIREDPACKAGES"
     22682        CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES"
     22683
    2137922684
    2138022685
     
    2139822703    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2139922704    export PKG_CONFIG_PATH
     22705
     22706    # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
     22707
     22708      CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS"
     22709      CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS"
     22710
    2140022711  else
    2140122712    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2140222713echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2140322714
    21404 echo "$as_me:$LINENO: checking for COIN-OR module DyLP (fallback)" >&5
    21405 echo $ECHO_N "checking for COIN-OR module DyLP (fallback)... $ECHO_C" >&6
     22715echo "$as_me:$LINENO: checking for COIN-OR package DyLP (fallback)" >&5
     22716echo $ECHO_N "checking for COIN-OR package DyLP (fallback)... $ECHO_C" >&6
    2140622717
    2140722718coin_has_dylp=notGiven
     
    2140922720DYLP_CFLAGS=
    2141022721DYLP_DATA=
    21411 
    2141222722
    2141322723# initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2148522795  projtoprocess="$nextprojtoprocess"
    2148622796
     22797  # if there are no more projects to search for, finish up
    2148722798  if test "x$projtoprocess" = x ; then
    2148822799    coin_has_dylp=yes
     
    2149022801echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2149122802
    21492     REQUIREDPACKAGES="osi-dylp $REQUIREDPACKAGES"
    21493 
    2149422803cat >>confdefs.h <<\_ACEOF
    2149522804#define COIN_HAS_DYLP 1
     
    2149722806
    2149822807
     22808
     22809      CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES"
     22810      CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS"
     22811      CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS"
     22812
     22813
    2149922814    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22815      if test -n "$DYLP_CFLAGS" ; then
     22816        { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
     22817echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
     22818      fi
     22819      if test -n "$DYLP_LIBS" ; then
     22820        { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
     22821echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
     22822      fi
     22823      if test -n "$DYLP_DATA" ; then
     22824        { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
     22825echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
     22826      fi
     22827
     22828        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     22829echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     22830        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     22831echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     22832
     22833    fi
     22834  fi
     22835done
     22836
     22837
     22838
     22839if test $coin_has_dylp != notGiven &&
     22840                test $coin_has_dylp != skipping; then
     22841  COIN_HAS_DYLP_TRUE=
     22842  COIN_HAS_DYLP_FALSE='#'
     22843else
     22844  COIN_HAS_DYLP_TRUE='#'
     22845  COIN_HAS_DYLP_FALSE=
     22846fi
     22847
     22848
     22849
     22850  fi
     22851
     22852else
     22853  echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
     22854echo "${ECHO_T}$coin_has_dylp" >&6
     22855fi
     22856
     22857if test $coin_has_dylp != skipping &&
     22858   test $coin_has_dylp != notGiven ; then
     22859
     22860cat >>confdefs.h <<\_ACEOF
     22861#define COIN_HAS_DYLP 1
     22862_ACEOF
     22863
     22864
     22865  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2150022866    if test -n "$DYLP_CFLAGS" ; then
    2150122867      { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
     
    2151022876echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
    2151122877    fi
     22878    if test -n "$DYLP_CFLAGS" ; then
     22879      { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
     22880echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
    2151222881    fi
     22882
     22883      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     22884echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     22885      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     22886echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     22887
    2151322888  fi
    21514 done
    21515 
     22889fi
     22890
     22891# Define the Makefile conditional
    2151622892
    2151722893
     
    2152722903
    2152822904
    21529   fi
    21530 
    21531 else
    21532   echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    21533 echo "${ECHO_T}$coin_has_dylp" >&6
    21534 fi
    21535 
    21536 if test $coin_has_dylp != skipping &&
    21537    test $coin_has_dylp != notGiven ; then
    21538   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21539   if test -n "$DYLP_CFLAGS" ; then
    21540     { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
    21541 echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
    21542   fi
    21543   if test -n "$DYLP_LIBS" ; then
    21544     { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
    21545 echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
    21546   fi
    21547   if test -n "$DYLP_DATA" ; then
    21548     { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
    21549 echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
    21550   fi
    21551   fi
    21552 
    21553 cat >>confdefs.h <<\_ACEOF
    21554 #define COIN_HAS_DYLP 1
    21555 _ACEOF
    21556 
    21557 fi
    21558 
    21559 # Define the Makefile conditional
    21560 
    21561 
    21562 if test $coin_has_dylp != notGiven &&
    21563                 test $coin_has_dylp != skipping; then
    21564   COIN_HAS_DYLP_TRUE=
    21565   COIN_HAS_DYLP_FALSE='#'
    21566 else
    21567   COIN_HAS_DYLP_TRUE='#'
    21568   COIN_HAS_DYLP_FALSE=
    21569 fi
    21570 
    21571 
    21572 
    21573 
    21574 echo "$as_me:$LINENO: checking for COIN-OR module Vol" >&5
    21575 echo $ECHO_N "checking for COIN-OR module Vol... $ECHO_C" >&6
     22905
     22906echo "$as_me:$LINENO: checking for COIN-OR package Vol" >&5
     22907echo $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6
    2157622908
    2157722909coin_has_vol=notGiven
    2157822910
    21579 # check if user wants to skip module in any case
     22911# check if user wants to skip package in any case
    2158022912if test x"$COIN_SKIP_PROJECTS" != x; then
    2158122913  for dir in $COIN_SKIP_PROJECTS; do
     
    2160322935  coin_has_vol=yes
    2160422936       VOL_LIBS="$withval"
    21605        PCADDLIBS="$withval $PCADDLIBS"
     22937
    2160622938
    2160722939fi;
     
    2161322945  coin_has_vol=yes
    2161422946     VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
     22947
     22948
    2161522949fi;
    2161622950
     
    2165322987        echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
    2165422988echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
    21655         REQUIREDPACKAGES="osi-vol $REQUIREDPACKAGES"
     22989
    2165622990
    2165722991
     
    2167523009    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2167623010    export PKG_CONFIG_PATH
     23011
     23012    # augment X_CFLAGS and X_LIBS for each build target X in
     23013
    2167723014  else
    2167823015    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2167923016echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2168023017
    21681 echo "$as_me:$LINENO: checking for COIN-OR module Vol (fallback)" >&5
    21682 echo $ECHO_N "checking for COIN-OR module Vol (fallback)... $ECHO_C" >&6
     23018echo "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5
     23019echo $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6
    2168323020
    2168423021coin_has_vol=notGiven
     
    2168623023VOL_CFLAGS=
    2168723024VOL_DATA=
    21688 
    2168923025
    2169023026# initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2176223098  projtoprocess="$nextprojtoprocess"
    2176323099
     23100  # if there are no more projects to search for, finish up
    2176423101  if test "x$projtoprocess" = x ; then
    2176523102    coin_has_vol=yes
     
    2176723104echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2176823105
    21769     REQUIREDPACKAGES="osi-vol $REQUIREDPACKAGES"
    21770 
    2177123106cat >>confdefs.h <<\_ACEOF
    2177223107#define COIN_HAS_VOL 1
     
    2177423109
    2177523110
     23111
     23112
    2177623113    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23114      if test -n "$VOL_CFLAGS" ; then
     23115        { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     23116echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
     23117      fi
     23118      if test -n "$VOL_LIBS" ; then
     23119        { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
     23120echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
     23121      fi
     23122      if test -n "$VOL_DATA" ; then
     23123        { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
     23124echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
     23125      fi
     23126
     23127    fi
     23128  fi
     23129done
     23130
     23131
     23132
     23133if test $coin_has_vol != notGiven &&
     23134                test $coin_has_vol != skipping; then
     23135  COIN_HAS_VOL_TRUE=
     23136  COIN_HAS_VOL_FALSE='#'
     23137else
     23138  COIN_HAS_VOL_TRUE='#'
     23139  COIN_HAS_VOL_FALSE=
     23140fi
     23141
     23142
     23143
     23144  fi
     23145
     23146else
     23147  echo "$as_me:$LINENO: result: $coin_has_vol" >&5
     23148echo "${ECHO_T}$coin_has_vol" >&6
     23149fi
     23150
     23151if test $coin_has_vol != skipping &&
     23152   test $coin_has_vol != notGiven ; then
     23153
     23154cat >>confdefs.h <<\_ACEOF
     23155#define COIN_HAS_VOL 1
     23156_ACEOF
     23157
     23158
     23159  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2177723160    if test -n "$VOL_CFLAGS" ; then
    2177823161      { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     
    2178723170echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    2178823171    fi
     23172    if test -n "$VOL_CFLAGS" ; then
     23173      { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     23174echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    2178923175    fi
     23176
    2179023177  fi
    21791 done
    21792 
     23178fi
     23179
     23180# Define the Makefile conditional
    2179323181
    2179423182
     
    2180423192
    2180523193
    21806   fi
    21807 
    21808 else
    21809   echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    21810 echo "${ECHO_T}$coin_has_vol" >&6
    21811 fi
    21812 
    21813 if test $coin_has_vol != skipping &&
    21814    test $coin_has_vol != notGiven ; then
    21815   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21816   if test -n "$VOL_CFLAGS" ; then
    21817     { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    21818 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    21819   fi
    21820   if test -n "$VOL_LIBS" ; then
    21821     { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
    21822 echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    21823   fi
    21824   if test -n "$VOL_DATA" ; then
    21825     { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
    21826 echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    21827   fi
    21828   fi
    21829 
    21830 cat >>confdefs.h <<\_ACEOF
    21831 #define COIN_HAS_VOL 1
    21832 _ACEOF
    21833 
    21834 fi
    21835 
    21836 # Define the Makefile conditional
    21837 
    21838 
    21839 if test $coin_has_vol != notGiven &&
    21840                 test $coin_has_vol != skipping; then
    21841   COIN_HAS_VOL_TRUE=
    21842   COIN_HAS_VOL_FALSE='#'
    21843 else
    21844   COIN_HAS_VOL_TRUE='#'
    21845   COIN_HAS_VOL_FALSE=
    21846 fi
    21847 
    21848 
    21849 
    21850 
    21851 echo "$as_me:$LINENO: checking for COIN-OR module OsiTests" >&5
    21852 echo $ECHO_N "checking for COIN-OR module OsiTests... $ECHO_C" >&6
    21853 
    21854 coin_has_ositests=notGiven
    21855 
    21856 # check if user wants to skip module in any case
    21857 if test x"$COIN_SKIP_PROJECTS" != x; then
    21858   for dir in $COIN_SKIP_PROJECTS; do
    21859     if test $dir = "OsiTests"; then
    21860       coin_has_ositests=skipping
    21861     fi
    21862   done
    21863 fi
    21864 
    21865 OSITESTS_LIBS=
    21866 OSITESTS_CFLAGS=
    21867 OSITESTS_DATA=
    21868 
    21869 
    21870 
    21871 
    21872 
    21873 #check if user provided LIBS, CFLAGS, or DATA for module
    21874 if test $coin_has_ositests != skipping; then
    21875 
    21876 
    21877 # Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
    21878 if test "${with_ositests_lib+set}" = set; then
    21879   withval="$with_ositests_lib"
    21880   coin_has_ositests=yes
    21881        OSITESTS_LIBS="$withval"
    21882 
    21883 
    21884 fi;
    21885 
    21886 
    21887 # Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
    21888 if test "${with_ositests_incdir+set}" = set; then
    21889   withval="$with_ositests_incdir"
    21890   coin_has_ositests=yes
    21891      OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
    21892 fi;
    21893 
    21894 
    21895 # Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
    21896 if test "${with_ositests_datadir+set}" = set; then
    21897   withval="$with_ositests_datadir"
    21898   coin_has_ositests=yes
    21899      OSITESTS_DATA="$withval"
    21900 fi;
    21901 fi
    21902 
    21903 if test $coin_has_ositests = notGiven; then
    21904   if test -n "$PKG_CONFIG" ; then
    21905     # set search path for pkg-config
    21906     # need to export variable to be sure that the following pkg-config gets these values
    21907     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21908     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    21909     export PKG_CONFIG_PATH
    21910 
    21911     # let pkg-config do it's magic
    21912 
    21913 
    21914 
    21915 if test -n "$PKG_CONFIG" ; then
    21916   if $PKG_CONFIG --exists "osi-unittests"; then
    21917     OSITESTS_VERSIONS="`$PKG_CONFIG --modversion osi-unittests 2>/dev/null`"
    21918      cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
    21919     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    21920         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    21921         # but only do this if is not trivial
    21922     if test "$CYGPATH_W" != "echo" ; then
    21923       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    21924           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21925         fi
    21926     OSITESTS_CFLAGS="$cflags"
    21927     OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
    21928     OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
    21929      coin_has_ositests=yes
    21930         echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
    21931 echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
    21932 
    21933 
    21934 
    21935   else
    21936     OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-unittests`
    21937       coin_has_ositests=notGiven
    21938         echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
    21939 echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
    21940 
    21941   fi
    21942 else
    21943   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
    21944 echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
    21945    { (exit 1); exit 1; }; }
    21946 fi
    21947 
    21948 
    21949 
    21950 
    21951     # reset PKG_CONFIG_PATH variable
    21952     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    21953     export PKG_CONFIG_PATH
    21954   else
    21955     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    21956 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    21957 
    21958 echo "$as_me:$LINENO: checking for COIN-OR module OsiTests (fallback)" >&5
    21959 echo $ECHO_N "checking for COIN-OR module OsiTests (fallback)... $ECHO_C" >&6
    21960 
    21961 coin_has_ositests=notGiven
    21962 OSITESTS_LIBS=
    21963 OSITESTS_CFLAGS=
    21964 OSITESTS_DATA=
    21965 
    21966 
    21967 # initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x)
    21968 projtoprocess="osi-unittests"
    21969 projprocessed=""
    21970 
    21971 while test $coin_has_ositests = notGiven ; do
    21972   # setup list of projects that need to be processed in the next round
    21973   nextprojtoprocess=""
    21974 
    21975   for proj in $projtoprocess ; do
    21976     # if $proj has been processed already, skip this round
    21977     if test "x$projprocessed" != x ; then
    21978       for projdone in $projprocessed ; do
    21979         if test $projdone = $proj ; then
    21980           continue 2
    21981         fi
    21982       done
    21983     fi
    21984 
    21985     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    21986     pcfile=""
    21987     save_IFS="$IFS"
    21988     IFS=":"
    21989     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    21990       # 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
    21991       if test -r "$dir/$proj-uninstalled.pc" ; then
    21992         pcfile="$dir/$proj-uninstalled.pc"
    21993         pcfiledir="$dir"
    21994         break
    21995       fi
    21996     done
    21997     IFS="$save_IFS"
    21998 
    21999     if test "x$pcfile" != x ; then
    22000       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22001       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22002       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22003       OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
    22004 
    22005       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22006       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22007       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22008       if test "x$projlibs" != x ; then
    22009         if test -d "${pcfiledir}/src" ; then
    22010           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22011         else
    22012           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22013         fi
    22014       else
    22015         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22016       fi
    22017       OSITESTS_LIBS="$OSITESTS_LIBS $projlibs"
    22018 
    22019       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22020       if test "x$projprocessed" = x ; then
    22021         OSITESTS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    22022       fi
    22023 
    22024       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    22025       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    22026       nextprojtoprocess="$nextprojtoprocess $projrequires"
    22027 
    22028       # remember that we have processed $proj
    22029       projprocessed="$projprocessed $proj"
    22030 
    22031     else
    22032       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    22033 echo "${ECHO_T}no, dependency $proj not available" >&6
    22034       break 2
    22035     fi
    22036 
    22037   done
    22038 
    22039   projtoprocess="$nextprojtoprocess"
    22040 
    22041   if test "x$projtoprocess" = x ; then
    22042     coin_has_ositests=yes
    22043     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    22044 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    22045 
    22046 
    22047 
    22048 cat >>confdefs.h <<\_ACEOF
    22049 #define COIN_HAS_OSITESTS 1
    22050 _ACEOF
    22051 
    22052 
    22053     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22054     if test -n "$OSITESTS_CFLAGS" ; then
    22055       { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
    22056 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
    22057     fi
    22058     if test -n "$OSITESTS_LIBS" ; then
    22059       { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
    22060 echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
    22061     fi
    22062     if test -n "$OSITESTS_DATA" ; then
    22063       { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
    22064 echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
    22065     fi
    22066     fi
    22067   fi
    22068 done
    22069 
    22070 
    22071 
    22072 if test $coin_has_ositests != notGiven &&
    22073                 test $coin_has_ositests != skipping; then
    22074   COIN_HAS_OSITESTS_TRUE=
    22075   COIN_HAS_OSITESTS_FALSE='#'
    22076 else
    22077   COIN_HAS_OSITESTS_TRUE='#'
    22078   COIN_HAS_OSITESTS_FALSE=
    22079 fi
    22080 
    22081 
    22082 
    22083   fi
    22084 
    22085 else
    22086   echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
    22087 echo "${ECHO_T}$coin_has_ositests" >&6
    22088 fi
    22089 
    22090 if test $coin_has_ositests != skipping &&
    22091    test $coin_has_ositests != notGiven ; then
    22092   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22093   if test -n "$OSITESTS_CFLAGS" ; then
    22094     { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
    22095 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
    22096   fi
    22097   if test -n "$OSITESTS_LIBS" ; then
    22098     { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
    22099 echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
    22100   fi
    22101   if test -n "$OSITESTS_DATA" ; then
    22102     { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
    22103 echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
    22104   fi
    22105   fi
    22106 
    22107 cat >>confdefs.h <<\_ACEOF
    22108 #define COIN_HAS_OSITESTS 1
    22109 _ACEOF
    22110 
    22111 fi
    22112 
    22113 # Define the Makefile conditional
    22114 
    22115 
    22116 if test $coin_has_ositests != notGiven &&
    22117                 test $coin_has_ositests != skipping; then
    22118   COIN_HAS_OSITESTS_TRUE=
    22119   COIN_HAS_OSITESTS_FALSE='#'
    22120 else
    22121   COIN_HAS_OSITESTS_TRUE='#'
    22122   COIN_HAS_OSITESTS_FALSE=
    22123 fi
    22124 
    22125 
    22126 
    22127 
    22128 
    22129 echo "$as_me:$LINENO: checking for COIN-OR module Sample" >&5
    22130 echo $ECHO_N "checking for COIN-OR module Sample... $ECHO_C" >&6
    22131 
    22132 coin_has_sample=notGiven
    22133 
    22134 # check if user wants to skip module in any case
    22135 if test x"$COIN_SKIP_PROJECTS" != x; then
    22136   for dir in $COIN_SKIP_PROJECTS; do
    22137     if test $dir = "Sample"; then
    22138       coin_has_sample=skipping
    22139     fi
    22140   done
    22141 fi
    22142 
    22143 SAMPLE_LIBS=
    22144 SAMPLE_CFLAGS=
    22145 SAMPLE_DATA=
    22146 
    22147 
    22148 
    22149 
    22150 
    22151 #check if user provided LIBS, CFLAGS, or DATA for module
    22152 if test $coin_has_sample != skipping; then
    22153 
    22154 
    22155 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
    22156 if test "${with_sample_lib+set}" = set; then
    22157   withval="$with_sample_lib"
    22158   coin_has_sample=yes
    22159        SAMPLE_LIBS="$withval"
    22160 
    22161 
    22162 fi;
    22163 
    22164 
    22165 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
    22166 if test "${with_sample_incdir+set}" = set; then
    22167   withval="$with_sample_incdir"
    22168   coin_has_sample=yes
    22169      SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
    22170 fi;
    22171 
    22172 
    22173 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
    22174 if test "${with_sample_datadir+set}" = set; then
    22175   withval="$with_sample_datadir"
    22176   coin_has_sample=yes
    22177      SAMPLE_DATA="$withval"
    22178 fi;
    22179 fi
    22180 
    22181 if test $coin_has_sample = notGiven; then
    22182   if test -n "$PKG_CONFIG" ; then
    22183     # set search path for pkg-config
    22184     # need to export variable to be sure that the following pkg-config gets these values
    22185     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22186     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    22187     export PKG_CONFIG_PATH
    22188 
    22189     # let pkg-config do it's magic
    22190 
    22191 
    22192 
    22193 if test -n "$PKG_CONFIG" ; then
    22194   if $PKG_CONFIG --exists "coindatasample"; then
    22195     SAMPLE_VERSIONS="`$PKG_CONFIG --modversion coindatasample 2>/dev/null`"
    22196      cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
    22197     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    22198         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    22199         # but only do this if is not trivial
    22200     if test "$CYGPATH_W" != "echo" ; then
    22201       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22202           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22203         fi
    22204     SAMPLE_CFLAGS="$cflags"
    22205     SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
    22206     SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
    22207      coin_has_sample=yes
    22208         echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
    22209 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
    22210 
    22211 
    22212 
    22213   else
    22214     SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatasample`
    22215       coin_has_sample=notGiven
    22216         echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
    22217 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
    22218 
    22219   fi
    22220 else
    22221   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
    22222 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
    22223    { (exit 1); exit 1; }; }
    22224 fi
    22225 
    22226 
    22227 
    22228 
    22229     # reset PKG_CONFIG_PATH variable
    22230     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    22231     export PKG_CONFIG_PATH
    22232   else
    22233     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    22234 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    22235 
    22236 echo "$as_me:$LINENO: checking for COIN-OR module Sample (fallback)" >&5
    22237 echo $ECHO_N "checking for COIN-OR module Sample (fallback)... $ECHO_C" >&6
    22238 
    22239 coin_has_sample=notGiven
    22240 SAMPLE_LIBS=
    22241 SAMPLE_CFLAGS=
    22242 SAMPLE_DATA=
    22243 
    22244 
    22245 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x)
    22246 projtoprocess="coindatasample"
    22247 projprocessed=""
    22248 
    22249 while test $coin_has_sample = notGiven ; do
    22250   # setup list of projects that need to be processed in the next round
    22251   nextprojtoprocess=""
    22252 
    22253   for proj in $projtoprocess ; do
    22254     # if $proj has been processed already, skip this round
    22255     if test "x$projprocessed" != x ; then
    22256       for projdone in $projprocessed ; do
    22257         if test $projdone = $proj ; then
    22258           continue 2
    22259         fi
    22260       done
    22261     fi
    22262 
    22263     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    22264     pcfile=""
    22265     save_IFS="$IFS"
    22266     IFS=":"
    22267     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    22268       # 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
    22269       if test -r "$dir/$proj-uninstalled.pc" ; then
    22270         pcfile="$dir/$proj-uninstalled.pc"
    22271         pcfiledir="$dir"
    22272         break
    22273       fi
    22274     done
    22275     IFS="$save_IFS"
    22276 
    22277     if test "x$pcfile" != x ; then
    22278       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22279       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22280       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22281       SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
    22282 
    22283       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22284       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22285       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22286       if test "x$projlibs" != x ; then
    22287         if test -d "${pcfiledir}/src" ; then
    22288           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22289         else
    22290           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22291         fi
    22292       else
    22293         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22294       fi
    22295       SAMPLE_LIBS="$SAMPLE_LIBS $projlibs"
    22296 
    22297       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22298       if test "x$projprocessed" = x ; then
    22299         SAMPLE_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    22300       fi
    22301 
    22302       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    22303       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    22304       nextprojtoprocess="$nextprojtoprocess $projrequires"
    22305 
    22306       # remember that we have processed $proj
    22307       projprocessed="$projprocessed $proj"
    22308 
    22309     else
    22310       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    22311 echo "${ECHO_T}no, dependency $proj not available" >&6
    22312       break 2
    22313     fi
    22314 
    22315   done
    22316 
    22317   projtoprocess="$nextprojtoprocess"
    22318 
    22319   if test "x$projtoprocess" = x ; then
    22320     coin_has_sample=yes
    22321     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    22322 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    22323 
    22324 
    22325 
    22326 cat >>confdefs.h <<\_ACEOF
    22327 #define COIN_HAS_SAMPLE 1
    22328 _ACEOF
    22329 
    22330 
    22331     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22332     if test -n "$SAMPLE_CFLAGS" ; then
    22333       { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
    22334 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
    22335     fi
    22336     if test -n "$SAMPLE_LIBS" ; then
    22337       { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
    22338 echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
    22339     fi
    22340     if test -n "$SAMPLE_DATA" ; then
    22341       { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
    22342 echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
    22343     fi
    22344     fi
    22345   fi
    22346 done
    22347 
    22348 
    22349 
    22350 if test $coin_has_sample != notGiven &&
    22351                 test $coin_has_sample != skipping; then
    22352   COIN_HAS_SAMPLE_TRUE=
    22353   COIN_HAS_SAMPLE_FALSE='#'
    22354 else
    22355   COIN_HAS_SAMPLE_TRUE='#'
    22356   COIN_HAS_SAMPLE_FALSE=
    22357 fi
    22358 
    22359 
    22360 
    22361   fi
    22362 
    22363 else
    22364   echo "$as_me:$LINENO: result: $coin_has_sample" >&5
    22365 echo "${ECHO_T}$coin_has_sample" >&6
    22366 fi
    22367 
    22368 if test $coin_has_sample != skipping &&
    22369    test $coin_has_sample != notGiven ; then
    22370   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22371   if test -n "$SAMPLE_CFLAGS" ; then
    22372     { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
    22373 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
    22374   fi
    22375   if test -n "$SAMPLE_LIBS" ; then
    22376     { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
    22377 echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
    22378   fi
    22379   if test -n "$SAMPLE_DATA" ; then
    22380     { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
    22381 echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
    22382   fi
    22383   fi
    22384 
    22385 cat >>confdefs.h <<\_ACEOF
    22386 #define COIN_HAS_SAMPLE 1
    22387 _ACEOF
    22388 
    22389 fi
    22390 
    22391 # Define the Makefile conditional
    22392 
    22393 
    22394 if test $coin_has_sample != notGiven &&
    22395                 test $coin_has_sample != skipping; then
    22396   COIN_HAS_SAMPLE_TRUE=
    22397   COIN_HAS_SAMPLE_FALSE='#'
    22398 else
    22399   COIN_HAS_SAMPLE_TRUE='#'
    22400   COIN_HAS_SAMPLE_FALSE=
    22401 fi
    22402 
    22403 
    22404 
    22405 
    22406 echo "$as_me:$LINENO: checking for COIN-OR module Netlib" >&5
    22407 echo $ECHO_N "checking for COIN-OR module Netlib... $ECHO_C" >&6
    22408 
    22409 coin_has_netlib=notGiven
    22410 
    22411 # check if user wants to skip module in any case
    22412 if test x"$COIN_SKIP_PROJECTS" != x; then
    22413   for dir in $COIN_SKIP_PROJECTS; do
    22414     if test $dir = "Netlib"; then
    22415       coin_has_netlib=skipping
    22416     fi
    22417   done
    22418 fi
    22419 
    22420 NETLIB_LIBS=
    22421 NETLIB_CFLAGS=
    22422 NETLIB_DATA=
    22423 
    22424 
    22425 
    22426 
    22427 
    22428 #check if user provided LIBS, CFLAGS, or DATA for module
    22429 if test $coin_has_netlib != skipping; then
    22430 
    22431 
    22432 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
    22433 if test "${with_netlib_lib+set}" = set; then
    22434   withval="$with_netlib_lib"
    22435   coin_has_netlib=yes
    22436        NETLIB_LIBS="$withval"
    22437 
    22438 
    22439 fi;
    22440 
    22441 
    22442 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
    22443 if test "${with_netlib_incdir+set}" = set; then
    22444   withval="$with_netlib_incdir"
    22445   coin_has_netlib=yes
    22446      NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
    22447 fi;
    22448 
    22449 
    22450 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
    22451 if test "${with_netlib_datadir+set}" = set; then
    22452   withval="$with_netlib_datadir"
    22453   coin_has_netlib=yes
    22454      NETLIB_DATA="$withval"
    22455 fi;
    22456 fi
    22457 
    22458 if test $coin_has_netlib = notGiven; then
    22459   if test -n "$PKG_CONFIG" ; then
    22460     # set search path for pkg-config
    22461     # need to export variable to be sure that the following pkg-config gets these values
    22462     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22463     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    22464     export PKG_CONFIG_PATH
    22465 
    22466     # let pkg-config do it's magic
    22467 
    22468 
    22469 
    22470 if test -n "$PKG_CONFIG" ; then
    22471   if $PKG_CONFIG --exists "coindatanetlib"; then
    22472     NETLIB_VERSIONS="`$PKG_CONFIG --modversion coindatanetlib 2>/dev/null`"
    22473      cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
    22474     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    22475         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    22476         # but only do this if is not trivial
    22477     if test "$CYGPATH_W" != "echo" ; then
    22478       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22479           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22480         fi
    22481     NETLIB_CFLAGS="$cflags"
    22482     NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
    22483     NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
    22484      coin_has_netlib=yes
    22485         echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
    22486 echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
    22487 
    22488 
    22489 
    22490   else
    22491     NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatanetlib`
    22492       coin_has_netlib=notGiven
    22493         echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
    22494 echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
    22495 
    22496   fi
    22497 else
    22498   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
    22499 echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
    22500    { (exit 1); exit 1; }; }
    22501 fi
    22502 
    22503 
    22504 
    22505 
    22506     # reset PKG_CONFIG_PATH variable
    22507     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    22508     export PKG_CONFIG_PATH
    22509   else
    22510     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    22511 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    22512 
    22513 echo "$as_me:$LINENO: checking for COIN-OR module Netlib (fallback)" >&5
    22514 echo $ECHO_N "checking for COIN-OR module Netlib (fallback)... $ECHO_C" >&6
    22515 
    22516 coin_has_netlib=notGiven
    22517 NETLIB_LIBS=
    22518 NETLIB_CFLAGS=
    22519 NETLIB_DATA=
    22520 
    22521 
    22522 # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x)
    22523 projtoprocess="coindatanetlib"
    22524 projprocessed=""
    22525 
    22526 while test $coin_has_netlib = notGiven ; do
    22527   # setup list of projects that need to be processed in the next round
    22528   nextprojtoprocess=""
    22529 
    22530   for proj in $projtoprocess ; do
    22531     # if $proj has been processed already, skip this round
    22532     if test "x$projprocessed" != x ; then
    22533       for projdone in $projprocessed ; do
    22534         if test $projdone = $proj ; then
    22535           continue 2
    22536         fi
    22537       done
    22538     fi
    22539 
    22540     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    22541     pcfile=""
    22542     save_IFS="$IFS"
    22543     IFS=":"
    22544     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    22545       # 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
    22546       if test -r "$dir/$proj-uninstalled.pc" ; then
    22547         pcfile="$dir/$proj-uninstalled.pc"
    22548         pcfiledir="$dir"
    22549         break
    22550       fi
    22551     done
    22552     IFS="$save_IFS"
    22553 
    22554     if test "x$pcfile" != x ; then
    22555       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22556       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22557       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22558       NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
    22559 
    22560       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22561       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22562       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22563       if test "x$projlibs" != x ; then
    22564         if test -d "${pcfiledir}/src" ; then
    22565           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22566         else
    22567           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22568         fi
    22569       else
    22570         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22571       fi
    22572       NETLIB_LIBS="$NETLIB_LIBS $projlibs"
    22573 
    22574       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22575       if test "x$projprocessed" = x ; then
    22576         NETLIB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    22577       fi
    22578 
    22579       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    22580       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    22581       nextprojtoprocess="$nextprojtoprocess $projrequires"
    22582 
    22583       # remember that we have processed $proj
    22584       projprocessed="$projprocessed $proj"
    22585 
    22586     else
    22587       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    22588 echo "${ECHO_T}no, dependency $proj not available" >&6
    22589       break 2
    22590     fi
    22591 
    22592   done
    22593 
    22594   projtoprocess="$nextprojtoprocess"
    22595 
    22596   if test "x$projtoprocess" = x ; then
    22597     coin_has_netlib=yes
    22598     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    22599 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    22600 
    22601 
    22602 
    22603 cat >>confdefs.h <<\_ACEOF
    22604 #define COIN_HAS_NETLIB 1
    22605 _ACEOF
    22606 
    22607 
    22608     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22609     if test -n "$NETLIB_CFLAGS" ; then
    22610       { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
    22611 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
    22612     fi
    22613     if test -n "$NETLIB_LIBS" ; then
    22614       { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
    22615 echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
    22616     fi
    22617     if test -n "$NETLIB_DATA" ; then
    22618       { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
    22619 echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
    22620     fi
    22621     fi
    22622   fi
    22623 done
    22624 
    22625 
    22626 
    22627 if test $coin_has_netlib != notGiven &&
    22628                 test $coin_has_netlib != skipping; then
    22629   COIN_HAS_NETLIB_TRUE=
    22630   COIN_HAS_NETLIB_FALSE='#'
    22631 else
    22632   COIN_HAS_NETLIB_TRUE='#'
    22633   COIN_HAS_NETLIB_FALSE=
    22634 fi
    22635 
    22636 
    22637 
    22638   fi
    22639 
    22640 else
    22641   echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
    22642 echo "${ECHO_T}$coin_has_netlib" >&6
    22643 fi
    22644 
    22645 if test $coin_has_netlib != skipping &&
    22646    test $coin_has_netlib != notGiven ; then
    22647   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22648   if test -n "$NETLIB_CFLAGS" ; then
    22649     { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
    22650 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
    22651   fi
    22652   if test -n "$NETLIB_LIBS" ; then
    22653     { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
    22654 echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
    22655   fi
    22656   if test -n "$NETLIB_DATA" ; then
    22657     { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
    22658 echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
    22659   fi
    22660   fi
    22661 
    22662 cat >>confdefs.h <<\_ACEOF
    22663 #define COIN_HAS_NETLIB 1
    22664 _ACEOF
    22665 
    22666 fi
    22667 
    22668 # Define the Makefile conditional
    22669 
    22670 
    22671 if test $coin_has_netlib != notGiven &&
    22672                 test $coin_has_netlib != skipping; then
    22673   COIN_HAS_NETLIB_TRUE=
    22674   COIN_HAS_NETLIB_FALSE='#'
    22675 else
    22676   COIN_HAS_NETLIB_TRUE='#'
    22677   COIN_HAS_NETLIB_FALSE=
    22678 fi
    22679 
    22680 
    22681 
    22682 
    22683 echo "$as_me:$LINENO: checking for COIN-OR module Miplib3" >&5
    22684 echo $ECHO_N "checking for COIN-OR module Miplib3... $ECHO_C" >&6
    22685 
    22686 coin_has_miplib3=notGiven
    22687 
    22688 # check if user wants to skip module in any case
    22689 if test x"$COIN_SKIP_PROJECTS" != x; then
    22690   for dir in $COIN_SKIP_PROJECTS; do
    22691     if test $dir = "Miplib3"; then
    22692       coin_has_miplib3=skipping
    22693     fi
    22694   done
    22695 fi
    22696 
    22697 MIPLIB3_LIBS=
    22698 MIPLIB3_CFLAGS=
    22699 MIPLIB3_DATA=
    22700 
    22701 
    22702 
    22703 
    22704 
    22705 #check if user provided LIBS, CFLAGS, or DATA for module
    22706 if test $coin_has_miplib3 != skipping; then
    22707 
    22708 
    22709 # Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given.
    22710 if test "${with_miplib3_lib+set}" = set; then
    22711   withval="$with_miplib3_lib"
    22712   coin_has_miplib3=yes
    22713        MIPLIB3_LIBS="$withval"
    22714 
    22715 
    22716 fi;
    22717 
    22718 
    22719 # Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given.
    22720 if test "${with_miplib3_incdir+set}" = set; then
    22721   withval="$with_miplib3_incdir"
    22722   coin_has_miplib3=yes
    22723      MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`"
    22724 fi;
    22725 
    22726 
    22727 # Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given.
    22728 if test "${with_miplib3_datadir+set}" = set; then
    22729   withval="$with_miplib3_datadir"
    22730   coin_has_miplib3=yes
    22731      MIPLIB3_DATA="$withval"
    22732 fi;
    22733 fi
    22734 
    22735 if test $coin_has_miplib3 = notGiven; then
    22736   if test -n "$PKG_CONFIG" ; then
    22737     # set search path for pkg-config
    22738     # need to export variable to be sure that the following pkg-config gets these values
    22739     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22740     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    22741     export PKG_CONFIG_PATH
    22742 
    22743     # let pkg-config do it's magic
    22744 
    22745 
    22746 
    22747 if test -n "$PKG_CONFIG" ; then
    22748   if $PKG_CONFIG --exists "coindatamiplib3"; then
    22749     MIPLIB3_VERSIONS="`$PKG_CONFIG --modversion coindatamiplib3 2>/dev/null`"
    22750      cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/null`
    22751     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    22752         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    22753         # but only do this if is not trivial
    22754     if test "$CYGPATH_W" != "echo" ; then
    22755       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22756           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22757         fi
    22758     MIPLIB3_CFLAGS="$cflags"
    22759     MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null`
    22760     MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/null`
    22761      coin_has_miplib3=yes
    22762         echo "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&5
    22763 echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6
    22764 
    22765 
    22766 
    22767   else
    22768     MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatamiplib3`
    22769       coin_has_miplib3=notGiven
    22770         echo "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&5
    22771 echo "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&6
    22772 
    22773   fi
    22774 else
    22775   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&5
    22776 echo "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;}
    22777    { (exit 1); exit 1; }; }
    22778 fi
    22779 
    22780 
    22781 
    22782 
    22783     # reset PKG_CONFIG_PATH variable
    22784     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    22785     export PKG_CONFIG_PATH
    22786   else
    22787     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    22788 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    22789 
    22790 echo "$as_me:$LINENO: checking for COIN-OR module Miplib3 (fallback)" >&5
    22791 echo $ECHO_N "checking for COIN-OR module Miplib3 (fallback)... $ECHO_C" >&6
    22792 
    22793 coin_has_miplib3=notGiven
    22794 MIPLIB3_LIBS=
    22795 MIPLIB3_CFLAGS=
    22796 MIPLIB3_DATA=
    22797 
    22798 
    22799 # initial list of dependencies is "coindatamiplib3", but we need to filter out version number specifications (= x, <= x, >= x)
    22800 projtoprocess="coindatamiplib3"
    22801 projprocessed=""
    22802 
    22803 while test $coin_has_miplib3 = notGiven ; do
    22804   # setup list of projects that need to be processed in the next round
    22805   nextprojtoprocess=""
    22806 
    22807   for proj in $projtoprocess ; do
    22808     # if $proj has been processed already, skip this round
    22809     if test "x$projprocessed" != x ; then
    22810       for projdone in $projprocessed ; do
    22811         if test $projdone = $proj ; then
    22812           continue 2
    22813         fi
    22814       done
    22815     fi
    22816 
    22817     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    22818     pcfile=""
    22819     save_IFS="$IFS"
    22820     IFS=":"
    22821     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    22822       # 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
    22823       if test -r "$dir/$proj-uninstalled.pc" ; then
    22824         pcfile="$dir/$proj-uninstalled.pc"
    22825         pcfiledir="$dir"
    22826         break
    22827       fi
    22828     done
    22829     IFS="$save_IFS"
    22830 
    22831     if test "x$pcfile" != x ; then
    22832       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22833       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22834       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22835       MIPLIB3_CFLAGS="$projcflags $MIPLIB3_CFLAGS"
    22836 
    22837       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22838       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22839       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22840       if test "x$projlibs" != x ; then
    22841         if test -d "${pcfiledir}/src" ; then
    22842           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22843         else
    22844           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22845         fi
    22846       else
    22847         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22848       fi
    22849       MIPLIB3_LIBS="$MIPLIB3_LIBS $projlibs"
    22850 
    22851       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22852       if test "x$projprocessed" = x ; then
    22853         MIPLIB3_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    22854       fi
    22855 
    22856       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    22857       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    22858       nextprojtoprocess="$nextprojtoprocess $projrequires"
    22859 
    22860       # remember that we have processed $proj
    22861       projprocessed="$projprocessed $proj"
    22862 
    22863     else
    22864       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    22865 echo "${ECHO_T}no, dependency $proj not available" >&6
    22866       break 2
    22867     fi
    22868 
    22869   done
    22870 
    22871   projtoprocess="$nextprojtoprocess"
    22872 
    22873   if test "x$projtoprocess" = x ; then
    22874     coin_has_miplib3=yes
    22875     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    22876 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    22877 
    22878 
    22879 
    22880 cat >>confdefs.h <<\_ACEOF
    22881 #define COIN_HAS_MIPLIB3 1
    22882 _ACEOF
    22883 
    22884 
    22885     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22886     if test -n "$MIPLIB3_CFLAGS" ; then
    22887       { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
    22888 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
    22889     fi
    22890     if test -n "$MIPLIB3_LIBS" ; then
    22891       { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
    22892 echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
    22893     fi
    22894     if test -n "$MIPLIB3_DATA" ; then
    22895       { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
    22896 echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
    22897     fi
    22898     fi
    22899   fi
    22900 done
    22901 
    22902 
    22903 
    22904 if test $coin_has_miplib3 != notGiven &&
    22905                 test $coin_has_miplib3 != skipping; then
    22906   COIN_HAS_MIPLIB3_TRUE=
    22907   COIN_HAS_MIPLIB3_FALSE='#'
    22908 else
    22909   COIN_HAS_MIPLIB3_TRUE='#'
    22910   COIN_HAS_MIPLIB3_FALSE=
    22911 fi
    22912 
    22913 
    22914 
    22915   fi
    22916 
    22917 else
    22918   echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
    22919 echo "${ECHO_T}$coin_has_miplib3" >&6
    22920 fi
    22921 
    22922 if test $coin_has_miplib3 != skipping &&
    22923    test $coin_has_miplib3 != notGiven ; then
    22924   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22925   if test -n "$MIPLIB3_CFLAGS" ; then
    22926     { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
    22927 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
    22928   fi
    22929   if test -n "$MIPLIB3_LIBS" ; then
    22930     { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
    22931 echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
    22932   fi
    22933   if test -n "$MIPLIB3_DATA" ; then
    22934     { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
    22935 echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
    22936   fi
    22937   fi
    22938 
    22939 cat >>confdefs.h <<\_ACEOF
    22940 #define COIN_HAS_MIPLIB3 1
    22941 _ACEOF
    22942 
    22943 fi
    22944 
    22945 # Define the Makefile conditional
    22946 
    22947 
    22948 if test $coin_has_miplib3 != notGiven &&
    22949                 test $coin_has_miplib3 != skipping; then
    22950   COIN_HAS_MIPLIB3_TRUE=
    22951   COIN_HAS_MIPLIB3_FALSE='#'
    22952 else
    22953   COIN_HAS_MIPLIB3_TRUE='#'
    22954   COIN_HAS_MIPLIB3_FALSE=
    22955 fi
    22956 
    22957 
    22958 
    22959 
    22960 #############################################################################
    22961 #                    LP solvers other than CLP                              #
    22962 #############################################################################
    22963 
    22964 # Check which other LP solvers are available
    22965 
    22966 echo "$as_me:$LINENO: checking for COIN-OR module DyLP" >&5
    22967 echo $ECHO_N "checking for COIN-OR module DyLP... $ECHO_C" >&6
    22968 
    22969 coin_has_dylp=notGiven
    22970 
    22971 # check if user wants to skip module in any case
    22972 if test x"$COIN_SKIP_PROJECTS" != x; then
    22973   for dir in $COIN_SKIP_PROJECTS; do
    22974     if test $dir = "DyLP"; then
    22975       coin_has_dylp=skipping
    22976     fi
    22977   done
    22978 fi
    22979 
    22980 DYLP_LIBS=
    22981 DYLP_CFLAGS=
    22982 DYLP_DATA=
    22983 
    22984 
    22985 
    22986 
    22987 
    22988 #check if user provided LIBS, CFLAGS, or DATA for module
    22989 if test $coin_has_dylp != skipping; then
    22990 
    22991 
    22992 # Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given.
    22993 if test "${with_dylp_lib+set}" = set; then
    22994   withval="$with_dylp_lib"
    22995   coin_has_dylp=yes
    22996        DYLP_LIBS="$withval"
    22997        PCADDLIBS="$withval $PCADDLIBS"
    22998 
    22999 fi;
    23000 
    23001 
    23002 # Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given.
    23003 if test "${with_dylp_incdir+set}" = set; then
    23004   withval="$with_dylp_incdir"
    23005   coin_has_dylp=yes
    23006      DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
    23007 fi;
    23008 
    23009 
    23010 # Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given.
    23011 if test "${with_dylp_datadir+set}" = set; then
    23012   withval="$with_dylp_datadir"
    23013   coin_has_dylp=yes
    23014      DYLP_DATA="$withval"
    23015 fi;
    23016 fi
    23017 
    23018 if test $coin_has_dylp = notGiven; then
    23019   if test -n "$PKG_CONFIG" ; then
    23020     # set search path for pkg-config
    23021     # need to export variable to be sure that the following pkg-config gets these values
    23022     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23023     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    23024     export PKG_CONFIG_PATH
    23025 
    23026     # let pkg-config do it's magic
    23027 
    23028 
    23029 
    23030 if test -n "$PKG_CONFIG" ; then
    23031   if $PKG_CONFIG --exists "osi-dylp"; then
    23032     DYLP_VERSIONS="`$PKG_CONFIG --modversion osi-dylp 2>/dev/null`"
    23033      cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
    23034     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    23035         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    23036         # but only do this if is not trivial
    23037     if test "$CYGPATH_W" != "echo" ; then
    23038       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23039           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23040         fi
    23041     DYLP_CFLAGS="$cflags"
    23042     DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
    23043     DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
    23044      coin_has_dylp=yes
    23045         echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
    23046 echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
    23047         REQUIREDPACKAGES="osi-dylp $REQUIREDPACKAGES"
    23048 
    23049 
    23050   else
    23051     DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-dylp`
    23052       coin_has_dylp=notGiven
    23053         echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
    23054 echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
    23055 
    23056   fi
    23057 else
    23058   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&5
    23059 echo "$as_me: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&2;}
    23060    { (exit 1); exit 1; }; }
    23061 fi
    23062 
    23063 
    23064 
    23065 
    23066     # reset PKG_CONFIG_PATH variable
    23067     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    23068     export PKG_CONFIG_PATH
    23069   else
    23070     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    23071 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    23072 
    23073 echo "$as_me:$LINENO: checking for COIN-OR module DyLP (fallback)" >&5
    23074 echo $ECHO_N "checking for COIN-OR module DyLP (fallback)... $ECHO_C" >&6
    23075 
    23076 coin_has_dylp=notGiven
    23077 DYLP_LIBS=
    23078 DYLP_CFLAGS=
    23079 DYLP_DATA=
    23080 
    23081 
    23082 # initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x)
    23083 projtoprocess="osi-dylp"
    23084 projprocessed=""
    23085 
    23086 while test $coin_has_dylp = notGiven ; do
    23087   # setup list of projects that need to be processed in the next round
    23088   nextprojtoprocess=""
    23089 
    23090   for proj in $projtoprocess ; do
    23091     # if $proj has been processed already, skip this round
    23092     if test "x$projprocessed" != x ; then
    23093       for projdone in $projprocessed ; do
    23094         if test $projdone = $proj ; then
    23095           continue 2
    23096         fi
    23097       done
    23098     fi
    23099 
    23100     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    23101     pcfile=""
    23102     save_IFS="$IFS"
    23103     IFS=":"
    23104     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    23105       # 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
    23106       if test -r "$dir/$proj-uninstalled.pc" ; then
    23107         pcfile="$dir/$proj-uninstalled.pc"
    23108         pcfiledir="$dir"
    23109         break
    23110       fi
    23111     done
    23112     IFS="$save_IFS"
    23113 
    23114     if test "x$pcfile" != x ; then
    23115       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    23116       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    23117       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23118       DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
    23119 
    23120       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    23121       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    23122       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    23123       if test "x$projlibs" != x ; then
    23124         if test -d "${pcfiledir}/src" ; then
    23125           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    23126         else
    23127           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    23128         fi
    23129       else
    23130         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    23131       fi
    23132       DYLP_LIBS="$DYLP_LIBS $projlibs"
    23133 
    23134       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    23135       if test "x$projprocessed" = x ; then
    23136         DYLP_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    23137       fi
    23138 
    23139       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    23140       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    23141       nextprojtoprocess="$nextprojtoprocess $projrequires"
    23142 
    23143       # remember that we have processed $proj
    23144       projprocessed="$projprocessed $proj"
    23145 
    23146     else
    23147       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    23148 echo "${ECHO_T}no, dependency $proj not available" >&6
    23149       break 2
    23150     fi
    23151 
    23152   done
    23153 
    23154   projtoprocess="$nextprojtoprocess"
    23155 
    23156   if test "x$projtoprocess" = x ; then
    23157     coin_has_dylp=yes
    23158     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    23159 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    23160 
    23161     REQUIREDPACKAGES="osi-dylp $REQUIREDPACKAGES"
    23162 
    23163 cat >>confdefs.h <<\_ACEOF
    23164 #define COIN_HAS_DYLP 1
    23165 _ACEOF
    23166 
    23167 
    23168     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23169     if test -n "$DYLP_CFLAGS" ; then
    23170       { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
    23171 echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
    23172     fi
    23173     if test -n "$DYLP_LIBS" ; then
    23174       { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
    23175 echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
    23176     fi
    23177     if test -n "$DYLP_DATA" ; then
    23178       { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
    23179 echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
    23180     fi
    23181     fi
    23182   fi
    23183 done
    23184 
    23185 
    23186 
    23187 if test $coin_has_dylp != notGiven &&
    23188                 test $coin_has_dylp != skipping; then
    23189   COIN_HAS_DYLP_TRUE=
    23190   COIN_HAS_DYLP_FALSE='#'
    23191 else
    23192   COIN_HAS_DYLP_TRUE='#'
    23193   COIN_HAS_DYLP_FALSE=
    23194 fi
    23195 
    23196 
    23197 
    23198   fi
    23199 
    23200 else
    23201   echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    23202 echo "${ECHO_T}$coin_has_dylp" >&6
    23203 fi
    23204 
    23205 if test $coin_has_dylp != skipping &&
    23206    test $coin_has_dylp != notGiven ; then
    23207   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    23208   if test -n "$DYLP_CFLAGS" ; then
    23209     { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
    23210 echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
    23211   fi
    23212   if test -n "$DYLP_LIBS" ; then
    23213     { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
    23214 echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
    23215   fi
    23216   if test -n "$DYLP_DATA" ; then
    23217     { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
    23218 echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
    23219   fi
    23220   fi
    23221 
    23222 cat >>confdefs.h <<\_ACEOF
    23223 #define COIN_HAS_DYLP 1
    23224 _ACEOF
    23225 
    23226 fi
    23227 
    23228 # Define the Makefile conditional
    23229 
    23230 
    23231 if test $coin_has_dylp != notGiven &&
    23232                 test $coin_has_dylp != skipping; then
    23233   COIN_HAS_DYLP_TRUE=
    23234   COIN_HAS_DYLP_FALSE='#'
    23235 else
    23236   COIN_HAS_DYLP_TRUE='#'
    23237   COIN_HAS_DYLP_FALSE=
    23238 fi
    23239 
    23240 
    23241 
    23242 
    23243 echo "$as_me:$LINENO: checking for COIN-OR module Vol" >&5
    23244 echo $ECHO_N "checking for COIN-OR module Vol... $ECHO_C" >&6
    23245 
    23246 coin_has_vol=notGiven
    23247 
    23248 # check if user wants to skip module in any case
    23249 if test x"$COIN_SKIP_PROJECTS" != x; then
    23250   for dir in $COIN_SKIP_PROJECTS; do
    23251     if test $dir = "Vol"; then
    23252       coin_has_vol=skipping
    23253     fi
    23254   done
    23255 fi
    23256 
    23257 VOL_LIBS=
    23258 VOL_CFLAGS=
    23259 VOL_DATA=
    23260 
    23261 
    23262 
    23263 
    23264 
    23265 #check if user provided LIBS, CFLAGS, or DATA for module
    23266 if test $coin_has_vol != skipping; then
    23267 
    23268 
    23269 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
    23270 if test "${with_vol_lib+set}" = set; then
    23271   withval="$with_vol_lib"
    23272   coin_has_vol=yes
    23273        VOL_LIBS="$withval"
    23274        PCADDLIBS="$withval $PCADDLIBS"
    23275 
    23276 fi;
    23277 
    23278 
    23279 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
    23280 if test "${with_vol_incdir+set}" = set; then
    23281   withval="$with_vol_incdir"
    23282   coin_has_vol=yes
    23283      VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
    23284 fi;
    23285 
    23286 
    23287 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
    23288 if test "${with_vol_datadir+set}" = set; then
    23289   withval="$with_vol_datadir"
    23290   coin_has_vol=yes
    23291      VOL_DATA="$withval"
    23292 fi;
    23293 fi
    23294 
    23295 if test $coin_has_vol = notGiven; then
    23296   if test -n "$PKG_CONFIG" ; then
    23297     # set search path for pkg-config
    23298     # need to export variable to be sure that the following pkg-config gets these values
    23299     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23300     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    23301     export PKG_CONFIG_PATH
    23302 
    23303     # let pkg-config do it's magic
    23304 
    23305 
    23306 
    23307 if test -n "$PKG_CONFIG" ; then
    23308   if $PKG_CONFIG --exists "osi-vol"; then
    23309     VOL_VERSIONS="`$PKG_CONFIG --modversion osi-vol 2>/dev/null`"
    23310      cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
    23311     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    23312         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    23313         # but only do this if is not trivial
    23314     if test "$CYGPATH_W" != "echo" ; then
    23315       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23316           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23317         fi
    23318     VOL_CFLAGS="$cflags"
    23319     VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
    23320     VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
    23321      coin_has_vol=yes
    23322         echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
    23323 echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
    23324         REQUIREDPACKAGES="osi-vol $REQUIREDPACKAGES"
    23325 
    23326 
    23327   else
    23328     VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-vol`
    23329       coin_has_vol=notGiven
    23330         echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
    23331 echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
    23332 
    23333   fi
    23334 else
    23335   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
    23336 echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
    23337    { (exit 1); exit 1; }; }
    23338 fi
    23339 
    23340 
    23341 
    23342 
    23343     # reset PKG_CONFIG_PATH variable
    23344     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    23345     export PKG_CONFIG_PATH
    23346   else
    23347     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    23348 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    23349 
    23350 echo "$as_me:$LINENO: checking for COIN-OR module Vol (fallback)" >&5
    23351 echo $ECHO_N "checking for COIN-OR module Vol (fallback)... $ECHO_C" >&6
    23352 
    23353 coin_has_vol=notGiven
    23354 VOL_LIBS=
    23355 VOL_CFLAGS=
    23356 VOL_DATA=
    23357 
    23358 
    23359 # initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x)
    23360 projtoprocess="osi-vol"
    23361 projprocessed=""
    23362 
    23363 while test $coin_has_vol = notGiven ; do
    23364   # setup list of projects that need to be processed in the next round
    23365   nextprojtoprocess=""
    23366 
    23367   for proj in $projtoprocess ; do
    23368     # if $proj has been processed already, skip this round
    23369     if test "x$projprocessed" != x ; then
    23370       for projdone in $projprocessed ; do
    23371         if test $projdone = $proj ; then
    23372           continue 2
    23373         fi
    23374       done
    23375     fi
    23376 
    23377     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    23378     pcfile=""
    23379     save_IFS="$IFS"
    23380     IFS=":"
    23381     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    23382       # 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
    23383       if test -r "$dir/$proj-uninstalled.pc" ; then
    23384         pcfile="$dir/$proj-uninstalled.pc"
    23385         pcfiledir="$dir"
    23386         break
    23387       fi
    23388     done
    23389     IFS="$save_IFS"
    23390 
    23391     if test "x$pcfile" != x ; then
    23392       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    23393       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    23394       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23395       VOL_CFLAGS="$projcflags $VOL_CFLAGS"
    23396 
    23397       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    23398       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    23399       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    23400       if test "x$projlibs" != x ; then
    23401         if test -d "${pcfiledir}/src" ; then
    23402           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    23403         else
    23404           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    23405         fi
    23406       else
    23407         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    23408       fi
    23409       VOL_LIBS="$VOL_LIBS $projlibs"
    23410 
    23411       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    23412       if test "x$projprocessed" = x ; then
    23413         VOL_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    23414       fi
    23415 
    23416       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    23417       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    23418       nextprojtoprocess="$nextprojtoprocess $projrequires"
    23419 
    23420       # remember that we have processed $proj
    23421       projprocessed="$projprocessed $proj"
    23422 
    23423     else
    23424       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    23425 echo "${ECHO_T}no, dependency $proj not available" >&6
    23426       break 2
    23427     fi
    23428 
    23429   done
    23430 
    23431   projtoprocess="$nextprojtoprocess"
    23432 
    23433   if test "x$projtoprocess" = x ; then
    23434     coin_has_vol=yes
    23435     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    23436 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    23437 
    23438     REQUIREDPACKAGES="osi-vol $REQUIREDPACKAGES"
    23439 
    23440 cat >>confdefs.h <<\_ACEOF
    23441 #define COIN_HAS_VOL 1
    23442 _ACEOF
    23443 
    23444 
    23445     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23446     if test -n "$VOL_CFLAGS" ; then
    23447       { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    23448 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    23449     fi
    23450     if test -n "$VOL_LIBS" ; then
    23451       { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
    23452 echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    23453     fi
    23454     if test -n "$VOL_DATA" ; then
    23455       { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
    23456 echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    23457     fi
    23458     fi
    23459   fi
    23460 done
    23461 
    23462 
    23463 
    23464 if test $coin_has_vol != notGiven &&
    23465                 test $coin_has_vol != skipping; then
    23466   COIN_HAS_VOL_TRUE=
    23467   COIN_HAS_VOL_FALSE='#'
    23468 else
    23469   COIN_HAS_VOL_TRUE='#'
    23470   COIN_HAS_VOL_FALSE=
    23471 fi
    23472 
    23473 
    23474 
    23475   fi
    23476 
    23477 else
    23478   echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    23479 echo "${ECHO_T}$coin_has_vol" >&6
    23480 fi
    23481 
    23482 if test $coin_has_vol != skipping &&
    23483    test $coin_has_vol != notGiven ; then
    23484   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    23485   if test -n "$VOL_CFLAGS" ; then
    23486     { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    23487 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    23488   fi
    23489   if test -n "$VOL_LIBS" ; then
    23490     { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
    23491 echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    23492   fi
    23493   if test -n "$VOL_DATA" ; then
    23494     { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
    23495 echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    23496   fi
    23497   fi
    23498 
    23499 cat >>confdefs.h <<\_ACEOF
    23500 #define COIN_HAS_VOL 1
    23501 _ACEOF
    23502 
    23503 fi
    23504 
    23505 # Define the Makefile conditional
    23506 
    23507 
    23508 if test $coin_has_vol != notGiven &&
    23509                 test $coin_has_vol != skipping; then
    23510   COIN_HAS_VOL_TRUE=
    23511   COIN_HAS_VOL_FALSE='#'
    23512 else
    23513   COIN_HAS_VOL_TRUE='#'
    23514   COIN_HAS_VOL_FALSE=
    23515 fi
    23516 
    23517 
    23518 
    23519 
    23520 echo "$as_me:$LINENO: checking for COIN-OR module Cpx" >&5
    23521 echo $ECHO_N "checking for COIN-OR module Cpx... $ECHO_C" >&6
     23194
     23195echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
     23196echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
    2352223197
    2352323198coin_has_cpx=notGiven
    2352423199
    23525 # check if user wants to skip module in any case
     23200# check if user wants to skip package in any case
    2352623201if test x"$COIN_SKIP_PROJECTS" != x; then
    2352723202  for dir in $COIN_SKIP_PROJECTS; do
     
    2354023215
    2354123216
     23217
     23218
     23219
     23220
    2354223221#check if user provided LIBS, CFLAGS, or DATA for module
    2354323222if test $coin_has_cpx != skipping; then
     
    2354923228  coin_has_cpx=yes
    2355023229       CPX_LIBS="$withval"
    23551        PCADDLIBS="$withval $PCADDLIBS"
     23230
     23231         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     23232         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     23233
    2355223234
    2355323235fi;
     
    2355923241  coin_has_cpx=yes
    2356023242     CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     23243     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     23244
     23245
    2356123246fi;
    2356223247
     
    2359923284        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
    2360023285echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
    23601         REQUIREDPACKAGES="osi-cplex $REQUIREDPACKAGES"
     23286        CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES"
     23287
    2360223288
    2360323289
     
    2362123307    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2362223308    export PKG_CONFIG_PATH
     23309
     23310    # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
     23311
     23312      CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS"
     23313      CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS"
     23314
    2362323315  else
    2362423316    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2362523317echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2362623318
    23627 echo "$as_me:$LINENO: checking for COIN-OR module Cpx (fallback)" >&5
    23628 echo $ECHO_N "checking for COIN-OR module Cpx (fallback)... $ECHO_C" >&6
     23319echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
     23320echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
    2362923321
    2363023322coin_has_cpx=notGiven
     
    2363223324CPX_CFLAGS=
    2363323325CPX_DATA=
    23634 
    2363523326
    2363623327# initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2370823399  projtoprocess="$nextprojtoprocess"
    2370923400
     23401  # if there are no more projects to search for, finish up
    2371023402  if test "x$projtoprocess" = x ; then
    2371123403    coin_has_cpx=yes
     
    2371323405echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2371423406
    23715     REQUIREDPACKAGES="osi-cplex $REQUIREDPACKAGES"
    23716 
    2371723407cat >>confdefs.h <<\_ACEOF
    2371823408#define COIN_HAS_CPX 1
     
    2372023410
    2372123411
     23412
     23413      CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES"
     23414      CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS"
     23415      CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS"
     23416
     23417
    2372223418    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23419      if test -n "$CPX_CFLAGS" ; then
     23420        { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23421echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     23422      fi
     23423      if test -n "$CPX_LIBS" ; then
     23424        { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
     23425echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
     23426      fi
     23427      if test -n "$CPX_DATA" ; then
     23428        { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
     23429echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
     23430      fi
     23431
     23432        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     23433echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     23434        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     23435echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     23436
     23437    fi
     23438  fi
     23439done
     23440
     23441
     23442
     23443if test $coin_has_cpx != notGiven &&
     23444                test $coin_has_cpx != skipping; then
     23445  COIN_HAS_CPX_TRUE=
     23446  COIN_HAS_CPX_FALSE='#'
     23447else
     23448  COIN_HAS_CPX_TRUE='#'
     23449  COIN_HAS_CPX_FALSE=
     23450fi
     23451
     23452
     23453
     23454  fi
     23455
     23456else
     23457  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     23458echo "${ECHO_T}$coin_has_cpx" >&6
     23459fi
     23460
     23461if test $coin_has_cpx != skipping &&
     23462   test $coin_has_cpx != notGiven ; then
     23463
     23464cat >>confdefs.h <<\_ACEOF
     23465#define COIN_HAS_CPX 1
     23466_ACEOF
     23467
     23468
     23469  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2372323470    if test -n "$CPX_CFLAGS" ; then
    2372423471      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     
    2373323480echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
    2373423481    fi
     23482    if test -n "$CPX_CFLAGS" ; then
     23483      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23484echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
    2373523485    fi
     23486
     23487      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     23488echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     23489      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     23490echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     23491
    2373623492  fi
    23737 done
    23738 
     23493fi
     23494
     23495# Define the Makefile conditional
    2373923496
    2374023497
     
    2375023507
    2375123508
    23752   fi
    23753 
    23754 else
    23755   echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
    23756 echo "${ECHO_T}$coin_has_cpx" >&6
    23757 fi
    23758 
    23759 if test $coin_has_cpx != skipping &&
    23760    test $coin_has_cpx != notGiven ; then
    23761   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    23762   if test -n "$CPX_CFLAGS" ; then
    23763     { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
    23764 echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
    23765   fi
    23766   if test -n "$CPX_LIBS" ; then
    23767     { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
    23768 echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
    23769   fi
    23770   if test -n "$CPX_DATA" ; then
    23771     { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
    23772 echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
    23773   fi
    23774   fi
    23775 
    23776 cat >>confdefs.h <<\_ACEOF
    23777 #define COIN_HAS_CPX 1
    23778 _ACEOF
    23779 
    23780 fi
    23781 
    23782 # Define the Makefile conditional
    23783 
    23784 
    23785 if test $coin_has_cpx != notGiven &&
    23786                 test $coin_has_cpx != skipping; then
    23787   COIN_HAS_CPX_TRUE=
    23788   COIN_HAS_CPX_FALSE='#'
    23789 else
    23790   COIN_HAS_CPX_TRUE='#'
    23791   COIN_HAS_CPX_FALSE=
    23792 fi
    23793 
    23794 
    23795 
    23796 
    23797 echo "$as_me:$LINENO: checking for COIN-OR module Glpk" >&5
    23798 echo $ECHO_N "checking for COIN-OR module Glpk... $ECHO_C" >&6
     23509
     23510echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
     23511echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
    2379923512
    2380023513coin_has_glpk=notGiven
    2380123514
    23802 # check if user wants to skip module in any case
     23515# check if user wants to skip package in any case
    2380323516if test x"$COIN_SKIP_PROJECTS" != x; then
    2380423517  for dir in $COIN_SKIP_PROJECTS; do
     
    2381723530
    2381823531
     23532
     23533
     23534
     23535
    2381923536#check if user provided LIBS, CFLAGS, or DATA for module
    2382023537if test $coin_has_glpk != skipping; then
     
    2382623543  coin_has_glpk=yes
    2382723544       GLPK_LIBS="$withval"
    23828        PCADDLIBS="$withval $PCADDLIBS"
     23545
     23546         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     23547         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     23548
    2382923549
    2383023550fi;
     
    2383623556  coin_has_glpk=yes
    2383723557     GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
     23558     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     23559
     23560
    2383823561fi;
    2383923562
     
    2387623599        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
    2387723600echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
    23878         REQUIREDPACKAGES="osi-glpk $REQUIREDPACKAGES"
     23601        CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES"
     23602
    2387923603
    2388023604
     
    2389823622    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2389923623    export PKG_CONFIG_PATH
     23624
     23625    # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
     23626
     23627      CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS"
     23628      CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS"
     23629
    2390023630  else
    2390123631    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2390223632echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2390323633
    23904 echo "$as_me:$LINENO: checking for COIN-OR module Glpk (fallback)" >&5
    23905 echo $ECHO_N "checking for COIN-OR module Glpk (fallback)... $ECHO_C" >&6
     23634echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
     23635echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
    2390623636
    2390723637coin_has_glpk=notGiven
     
    2390923639GLPK_CFLAGS=
    2391023640GLPK_DATA=
    23911 
    2391223641
    2391323642# initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2398523714  projtoprocess="$nextprojtoprocess"
    2398623715
     23716  # if there are no more projects to search for, finish up
    2398723717  if test "x$projtoprocess" = x ; then
    2398823718    coin_has_glpk=yes
     
    2399023720echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2399123721
    23992     REQUIREDPACKAGES="osi-glpk $REQUIREDPACKAGES"
    23993 
    2399423722cat >>confdefs.h <<\_ACEOF
    2399523723#define COIN_HAS_GLPK 1
     
    2399723725
    2399823726
     23727
     23728      CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES"
     23729      CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS"
     23730      CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS"
     23731
     23732
    2399923733    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23734      if test -n "$GLPK_CFLAGS" ; then
     23735        { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     23736echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
     23737      fi
     23738      if test -n "$GLPK_LIBS" ; then
     23739        { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
     23740echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
     23741      fi
     23742      if test -n "$GLPK_DATA" ; then
     23743        { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
     23744echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
     23745      fi
     23746
     23747        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     23748echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     23749        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     23750echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     23751
     23752    fi
     23753  fi
     23754done
     23755
     23756
     23757
     23758if test $coin_has_glpk != notGiven &&
     23759                test $coin_has_glpk != skipping; then
     23760  COIN_HAS_GLPK_TRUE=
     23761  COIN_HAS_GLPK_FALSE='#'
     23762else
     23763  COIN_HAS_GLPK_TRUE='#'
     23764  COIN_HAS_GLPK_FALSE=
     23765fi
     23766
     23767
     23768
     23769  fi
     23770
     23771else
     23772  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     23773echo "${ECHO_T}$coin_has_glpk" >&6
     23774fi
     23775
     23776if test $coin_has_glpk != skipping &&
     23777   test $coin_has_glpk != notGiven ; then
     23778
     23779cat >>confdefs.h <<\_ACEOF
     23780#define COIN_HAS_GLPK 1
     23781_ACEOF
     23782
     23783
     23784  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2400023785    if test -n "$GLPK_CFLAGS" ; then
    2400123786      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     
    2401023795echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
    2401123796    fi
     23797    if test -n "$GLPK_CFLAGS" ; then
     23798      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     23799echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
    2401223800    fi
     23801
     23802      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     23803echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     23804      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     23805echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     23806
    2401323807  fi
    24014 done
    24015 
     23808fi
     23809
     23810# Define the Makefile conditional
    2401623811
    2401723812
     
    2402723822
    2402823823
    24029   fi
    24030 
    24031 else
    24032   echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
    24033 echo "${ECHO_T}$coin_has_glpk" >&6
    24034 fi
    24035 
    24036 if test $coin_has_glpk != skipping &&
    24037    test $coin_has_glpk != notGiven ; then
    24038   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    24039   if test -n "$GLPK_CFLAGS" ; then
    24040     { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
    24041 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
    24042   fi
    24043   if test -n "$GLPK_LIBS" ; then
    24044     { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
    24045 echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
    24046   fi
    24047   if test -n "$GLPK_DATA" ; then
    24048     { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
    24049 echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
    24050   fi
    24051   fi
    24052 
    24053 cat >>confdefs.h <<\_ACEOF
    24054 #define COIN_HAS_GLPK 1
    24055 _ACEOF
    24056 
    24057 fi
    24058 
    24059 # Define the Makefile conditional
    24060 
    24061 
    24062 if test $coin_has_glpk != notGiven &&
    24063                 test $coin_has_glpk != skipping; then
    24064   COIN_HAS_GLPK_TRUE=
    24065   COIN_HAS_GLPK_FALSE='#'
    24066 else
    24067   COIN_HAS_GLPK_TRUE='#'
    24068   COIN_HAS_GLPK_FALSE=
    24069 fi
    24070 
    24071 
    24072 
    24073 
    24074 echo "$as_me:$LINENO: checking for COIN-OR module Grb" >&5
    24075 echo $ECHO_N "checking for COIN-OR module Grb... $ECHO_C" >&6
     23824
     23825echo "$as_me:$LINENO: checking for COIN-OR package Grb" >&5
     23826echo $ECHO_N "checking for COIN-OR package Grb... $ECHO_C" >&6
    2407623827
    2407723828coin_has_grb=notGiven
    2407823829
    24079 # check if user wants to skip module in any case
     23830# check if user wants to skip package in any case
    2408023831if test x"$COIN_SKIP_PROJECTS" != x; then
    2408123832  for dir in $COIN_SKIP_PROJECTS; do
     
    2410323854  coin_has_grb=yes
    2410423855       GRB_LIBS="$withval"
    24105        PCADDLIBS="$withval $PCADDLIBS"
     23856
    2410623857
    2410723858fi;
     
    2411323864  coin_has_grb=yes
    2411423865     GRB_CFLAGS="-I`${CYGPATH_W} $withval`"
     23866
     23867
    2411523868fi;
    2411623869
     
    2415323906        echo "$as_me:$LINENO: result: yes: $GRB_VERSIONS" >&5
    2415423907echo "${ECHO_T}yes: $GRB_VERSIONS" >&6
    24155         REQUIREDPACKAGES="osi-gurobi $REQUIREDPACKAGES"
     23908
    2415623909
    2415723910
     
    2417523928    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2417623929    export PKG_CONFIG_PATH
     23930
     23931    # augment X_CFLAGS and X_LIBS for each build target X in
     23932
    2417723933  else
    2417823934    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2417923935echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2418023936
    24181 echo "$as_me:$LINENO: checking for COIN-OR module Grb (fallback)" >&5
    24182 echo $ECHO_N "checking for COIN-OR module Grb (fallback)... $ECHO_C" >&6
     23937echo "$as_me:$LINENO: checking for COIN-OR package Grb (fallback)" >&5
     23938echo $ECHO_N "checking for COIN-OR package Grb (fallback)... $ECHO_C" >&6
    2418323939
    2418423940coin_has_grb=notGiven
     
    2418623942GRB_CFLAGS=
    2418723943GRB_DATA=
    24188 
    2418923944
    2419023945# initial list of dependencies is "osi-gurobi", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2426224017  projtoprocess="$nextprojtoprocess"
    2426324018
     24019  # if there are no more projects to search for, finish up
    2426424020  if test "x$projtoprocess" = x ; then
    2426524021    coin_has_grb=yes
     
    2426724023echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2426824024
    24269     REQUIREDPACKAGES="osi-gurobi $REQUIREDPACKAGES"
    24270 
    2427124025cat >>confdefs.h <<\_ACEOF
    2427224026#define COIN_HAS_GRB 1
     
    2427424028
    2427524029
     24030
     24031
    2427624032    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24033      if test -n "$GRB_CFLAGS" ; then
     24034        { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     24035echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
     24036      fi
     24037      if test -n "$GRB_LIBS" ; then
     24038        { echo "$as_me:$LINENO: Grb LIBS   are $GRB_LIBS" >&5
     24039echo "$as_me: Grb LIBS   are $GRB_LIBS" >&6;}
     24040      fi
     24041      if test -n "$GRB_DATA" ; then
     24042        { echo "$as_me:$LINENO: Grb DATA   is  $GRB_DATA" >&5
     24043echo "$as_me: Grb DATA   is  $GRB_DATA" >&6;}
     24044      fi
     24045
     24046    fi
     24047  fi
     24048done
     24049
     24050
     24051
     24052if test $coin_has_grb != notGiven &&
     24053                test $coin_has_grb != skipping; then
     24054  COIN_HAS_GRB_TRUE=
     24055  COIN_HAS_GRB_FALSE='#'
     24056else
     24057  COIN_HAS_GRB_TRUE='#'
     24058  COIN_HAS_GRB_FALSE=
     24059fi
     24060
     24061
     24062
     24063  fi
     24064
     24065else
     24066  echo "$as_me:$LINENO: result: $coin_has_grb" >&5
     24067echo "${ECHO_T}$coin_has_grb" >&6
     24068fi
     24069
     24070if test $coin_has_grb != skipping &&
     24071   test $coin_has_grb != notGiven ; then
     24072
     24073cat >>confdefs.h <<\_ACEOF
     24074#define COIN_HAS_GRB 1
     24075_ACEOF
     24076
     24077
     24078  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2427724079    if test -n "$GRB_CFLAGS" ; then
    2427824080      { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     
    2428724089echo "$as_me: Grb DATA   is  $GRB_DATA" >&6;}
    2428824090    fi
     24091    if test -n "$GRB_CFLAGS" ; then
     24092      { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     24093echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
    2428924094    fi
     24095
    2429024096  fi
    24291 done
    24292 
     24097fi
     24098
     24099# Define the Makefile conditional
    2429324100
    2429424101
     
    2430424111
    2430524112
    24306   fi
    24307 
    24308 else
    24309   echo "$as_me:$LINENO: result: $coin_has_grb" >&5
    24310 echo "${ECHO_T}$coin_has_grb" >&6
    24311 fi
    24312 
    24313 if test $coin_has_grb != skipping &&
    24314    test $coin_has_grb != notGiven ; then
    24315   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    24316   if test -n "$GRB_CFLAGS" ; then
    24317     { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
    24318 echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
    24319   fi
    24320   if test -n "$GRB_LIBS" ; then
    24321     { echo "$as_me:$LINENO: Grb LIBS   are $GRB_LIBS" >&5
    24322 echo "$as_me: Grb LIBS   are $GRB_LIBS" >&6;}
    24323   fi
    24324   if test -n "$GRB_DATA" ; then
    24325     { echo "$as_me:$LINENO: Grb DATA   is  $GRB_DATA" >&5
    24326 echo "$as_me: Grb DATA   is  $GRB_DATA" >&6;}
    24327   fi
    24328   fi
    24329 
    24330 cat >>confdefs.h <<\_ACEOF
    24331 #define COIN_HAS_GRB 1
    24332 _ACEOF
    24333 
    24334 fi
    24335 
    24336 # Define the Makefile conditional
    24337 
    24338 
    24339 if test $coin_has_grb != notGiven &&
    24340                 test $coin_has_grb != skipping; then
    24341   COIN_HAS_GRB_TRUE=
    24342   COIN_HAS_GRB_FALSE='#'
    24343 else
    24344   COIN_HAS_GRB_TRUE='#'
    24345   COIN_HAS_GRB_FALSE=
    24346 fi
    24347 
    24348 
    24349 
    24350 
    24351 echo "$as_me:$LINENO: checking for COIN-OR module Msk" >&5
    24352 echo $ECHO_N "checking for COIN-OR module Msk... $ECHO_C" >&6
     24113
     24114echo "$as_me:$LINENO: checking for COIN-OR package Msk" >&5
     24115echo $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6
    2435324116
    2435424117coin_has_msk=notGiven
    2435524118
    24356 # check if user wants to skip module in any case
     24119# check if user wants to skip package in any case
    2435724120if test x"$COIN_SKIP_PROJECTS" != x; then
    2435824121  for dir in $COIN_SKIP_PROJECTS; do
     
    2437124134
    2437224135
     24136
     24137
     24138
     24139
    2437324140#check if user provided LIBS, CFLAGS, or DATA for module
    2437424141if test $coin_has_msk != skipping; then
     
    2438024147  coin_has_msk=yes
    2438124148       MSK_LIBS="$withval"
    24382        PCADDLIBS="$withval $PCADDLIBS"
     24149
     24150         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     24151         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     24152
    2438324153
    2438424154fi;
     
    2439024160  coin_has_msk=yes
    2439124161     MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
     24162     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     24163
     24164
    2439224165fi;
    2439324166
     
    2443024203        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
    2443124204echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
    24432         REQUIREDPACKAGES="osi-mosek $REQUIREDPACKAGES"
     24205        CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES"
     24206
    2443324207
    2443424208
     
    2445224226    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2445324227    export PKG_CONFIG_PATH
     24228
     24229    # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
     24230
     24231      CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS"
     24232      CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS"
     24233
    2445424234  else
    2445524235    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2445624236echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2445724237
    24458 echo "$as_me:$LINENO: checking for COIN-OR module Msk (fallback)" >&5
    24459 echo $ECHO_N "checking for COIN-OR module Msk (fallback)... $ECHO_C" >&6
     24238echo "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5
     24239echo $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6
    2446024240
    2446124241coin_has_msk=notGiven
     
    2446324243MSK_CFLAGS=
    2446424244MSK_DATA=
    24465 
    2446624245
    2446724246# initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2453924318  projtoprocess="$nextprojtoprocess"
    2454024319
     24320  # if there are no more projects to search for, finish up
    2454124321  if test "x$projtoprocess" = x ; then
    2454224322    coin_has_msk=yes
     
    2454424324echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2454524325
    24546     REQUIREDPACKAGES="osi-mosek $REQUIREDPACKAGES"
    24547 
    2454824326cat >>confdefs.h <<\_ACEOF
    2454924327#define COIN_HAS_MSK 1
     
    2455124329
    2455224330
     24331
     24332      CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES"
     24333      CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS"
     24334      CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS"
     24335
     24336
    2455324337    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24338      if test -n "$MSK_CFLAGS" ; then
     24339        { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     24340echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
     24341      fi
     24342      if test -n "$MSK_LIBS" ; then
     24343        { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
     24344echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
     24345      fi
     24346      if test -n "$MSK_DATA" ; then
     24347        { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
     24348echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
     24349      fi
     24350
     24351        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     24352echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     24353        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     24354echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     24355
     24356    fi
     24357  fi
     24358done
     24359
     24360
     24361
     24362if test $coin_has_msk != notGiven &&
     24363                test $coin_has_msk != skipping; then
     24364  COIN_HAS_MSK_TRUE=
     24365  COIN_HAS_MSK_FALSE='#'
     24366else
     24367  COIN_HAS_MSK_TRUE='#'
     24368  COIN_HAS_MSK_FALSE=
     24369fi
     24370
     24371
     24372
     24373  fi
     24374
     24375else
     24376  echo "$as_me:$LINENO: result: $coin_has_msk" >&5
     24377echo "${ECHO_T}$coin_has_msk" >&6
     24378fi
     24379
     24380if test $coin_has_msk != skipping &&
     24381   test $coin_has_msk != notGiven ; then
     24382
     24383cat >>confdefs.h <<\_ACEOF
     24384#define COIN_HAS_MSK 1
     24385_ACEOF
     24386
     24387
     24388  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2455424389    if test -n "$MSK_CFLAGS" ; then
    2455524390      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     
    2456424399echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
    2456524400    fi
     24401    if test -n "$MSK_CFLAGS" ; then
     24402      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     24403echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
    2456624404    fi
     24405
     24406      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     24407echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     24408      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     24409echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     24410
    2456724411  fi
    24568 done
    24569 
     24412fi
     24413
     24414# Define the Makefile conditional
    2457024415
    2457124416
     
    2458124426
    2458224427
    24583   fi
    24584 
    24585 else
    24586   echo "$as_me:$LINENO: result: $coin_has_msk" >&5
    24587 echo "${ECHO_T}$coin_has_msk" >&6
    24588 fi
    24589 
    24590 if test $coin_has_msk != skipping &&
    24591    test $coin_has_msk != notGiven ; then
    24592   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    24593   if test -n "$MSK_CFLAGS" ; then
    24594     { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
    24595 echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
    24596   fi
    24597   if test -n "$MSK_LIBS" ; then
    24598     { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
    24599 echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
    24600   fi
    24601   if test -n "$MSK_DATA" ; then
    24602     { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
    24603 echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
    24604   fi
    24605   fi
    24606 
    24607 cat >>confdefs.h <<\_ACEOF
    24608 #define COIN_HAS_MSK 1
    24609 _ACEOF
    24610 
    24611 fi
    24612 
    24613 # Define the Makefile conditional
    24614 
    24615 
    24616 if test $coin_has_msk != notGiven &&
    24617                 test $coin_has_msk != skipping; then
    24618   COIN_HAS_MSK_TRUE=
    24619   COIN_HAS_MSK_FALSE='#'
    24620 else
    24621   COIN_HAS_MSK_TRUE='#'
    24622   COIN_HAS_MSK_FALSE=
    24623 fi
    24624 
    24625 
    24626 
    24627 
    24628 echo "$as_me:$LINENO: checking for COIN-OR module Spx" >&5
    24629 echo $ECHO_N "checking for COIN-OR module Spx... $ECHO_C" >&6
     24428
     24429echo "$as_me:$LINENO: checking for COIN-OR package Spx" >&5
     24430echo $ECHO_N "checking for COIN-OR package Spx... $ECHO_C" >&6
    2463024431
    2463124432coin_has_spx=notGiven
    2463224433
    24633 # check if user wants to skip module in any case
     24434# check if user wants to skip package in any case
    2463424435if test x"$COIN_SKIP_PROJECTS" != x; then
    2463524436  for dir in $COIN_SKIP_PROJECTS; do
     
    2464824449
    2464924450
     24451
     24452
     24453
     24454
    2465024455#check if user provided LIBS, CFLAGS, or DATA for module
    2465124456if test $coin_has_spx != skipping; then
     
    2465724462  coin_has_spx=yes
    2465824463       SPX_LIBS="$withval"
    24659        PCADDLIBS="$withval $PCADDLIBS"
     24464
     24465         CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS"
     24466         CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS"
     24467
    2466024468
    2466124469fi;
     
    2466724475  coin_has_spx=yes
    2466824476     SPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     24477     CBCGENERIC_CFLAGS="$withval $CBCGENERIC_CFLAGS"
     24478
     24479
    2466924480fi;
    2467024481
     
    2470724518        echo "$as_me:$LINENO: result: yes: $SPX_VERSIONS" >&5
    2470824519echo "${ECHO_T}yes: $SPX_VERSIONS" >&6
    24709         REQUIREDPACKAGES="osi-soplex $REQUIREDPACKAGES"
     24520        CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES"
     24521
    2471024522
    2471124523
     
    2472924541    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2473024542    export PKG_CONFIG_PATH
     24543
     24544    # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
     24545
     24546      CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS"
     24547      CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS"
     24548
    2473124549  else
    2473224550    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2473324551echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2473424552
    24735 echo "$as_me:$LINENO: checking for COIN-OR module Spx (fallback)" >&5
    24736 echo $ECHO_N "checking for COIN-OR module Spx (fallback)... $ECHO_C" >&6
     24553echo "$as_me:$LINENO: checking for COIN-OR package Spx (fallback)" >&5
     24554echo $ECHO_N "checking for COIN-OR package Spx (fallback)... $ECHO_C" >&6
    2473724555
    2473824556coin_has_spx=notGiven
     
    2474024558SPX_CFLAGS=
    2474124559SPX_DATA=
    24742 
    2474324560
    2474424561# initial list of dependencies is "osi-soplex", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2481624633  projtoprocess="$nextprojtoprocess"
    2481724634
     24635  # if there are no more projects to search for, finish up
    2481824636  if test "x$projtoprocess" = x ; then
    2481924637    coin_has_spx=yes
     
    2482124639echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2482224640
    24823     REQUIREDPACKAGES="osi-soplex $REQUIREDPACKAGES"
    24824 
    2482524641cat >>confdefs.h <<\_ACEOF
    2482624642#define COIN_HAS_SPX 1
     
    2482824644
    2482924645
     24646
     24647      CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES"
     24648      CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS"
     24649      CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS"
     24650
     24651
    2483024652    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24653      if test -n "$SPX_CFLAGS" ; then
     24654        { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     24655echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
     24656      fi
     24657      if test -n "$SPX_LIBS" ; then
     24658        { echo "$as_me:$LINENO: Spx LIBS   are $SPX_LIBS" >&5
     24659echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
     24660      fi
     24661      if test -n "$SPX_DATA" ; then
     24662        { echo "$as_me:$LINENO: Spx DATA   is  $SPX_DATA" >&5
     24663echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
     24664      fi
     24665
     24666        { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     24667echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     24668        { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     24669echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     24670
     24671    fi
     24672  fi
     24673done
     24674
     24675
     24676
     24677if test $coin_has_spx != notGiven &&
     24678                test $coin_has_spx != skipping; then
     24679  COIN_HAS_SPX_TRUE=
     24680  COIN_HAS_SPX_FALSE='#'
     24681else
     24682  COIN_HAS_SPX_TRUE='#'
     24683  COIN_HAS_SPX_FALSE=
     24684fi
     24685
     24686
     24687
     24688  fi
     24689
     24690else
     24691  echo "$as_me:$LINENO: result: $coin_has_spx" >&5
     24692echo "${ECHO_T}$coin_has_spx" >&6
     24693fi
     24694
     24695if test $coin_has_spx != skipping &&
     24696   test $coin_has_spx != notGiven ; then
     24697
     24698cat >>confdefs.h <<\_ACEOF
     24699#define COIN_HAS_SPX 1
     24700_ACEOF
     24701
     24702
     24703  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2483124704    if test -n "$SPX_CFLAGS" ; then
    2483224705      { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     
    2484124714echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
    2484224715    fi
     24716    if test -n "$SPX_CFLAGS" ; then
     24717      { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     24718echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
    2484324719    fi
     24720
     24721      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     24722echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
     24723      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
     24724echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     24725
    2484424726  fi
    24845 done
    24846 
     24727fi
     24728
     24729# Define the Makefile conditional
    2484724730
    2484824731
     
    2485824741
    2485924742
    24860   fi
    24861 
    24862 else
    24863   echo "$as_me:$LINENO: result: $coin_has_spx" >&5
    24864 echo "${ECHO_T}$coin_has_spx" >&6
    24865 fi
    24866 
    24867 if test $coin_has_spx != skipping &&
    24868    test $coin_has_spx != notGiven ; then
    24869   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    24870   if test -n "$SPX_CFLAGS" ; then
    24871     { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
    24872 echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
    24873   fi
    24874   if test -n "$SPX_LIBS" ; then
    24875     { echo "$as_me:$LINENO: Spx LIBS   are $SPX_LIBS" >&5
    24876 echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
    24877   fi
    24878   if test -n "$SPX_DATA" ; then
    24879     { echo "$as_me:$LINENO: Spx DATA   is  $SPX_DATA" >&5
    24880 echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
    24881   fi
    24882   fi
    24883 
    24884 cat >>confdefs.h <<\_ACEOF
    24885 #define COIN_HAS_SPX 1
    24886 _ACEOF
    24887 
    24888 fi
    24889 
    24890 # Define the Makefile conditional
    24891 
    24892 
    24893 if test $coin_has_spx != notGiven &&
    24894                 test $coin_has_spx != skipping; then
    24895   COIN_HAS_SPX_TRUE=
    24896   COIN_HAS_SPX_FALSE='#'
    24897 else
    24898   COIN_HAS_SPX_TRUE='#'
    24899   COIN_HAS_SPX_FALSE=
    24900 fi
    24901 
    24902 
    24903 
    24904 
    24905 echo "$as_me:$LINENO: checking for COIN-OR module Xpr" >&5
    24906 echo $ECHO_N "checking for COIN-OR module Xpr... $ECHO_C" >&6
     24743
     24744echo "$as_me:$LINENO: checking for COIN-OR package Xpr" >&5
     24745echo $ECHO_N "checking for COIN-OR package Xpr... $ECHO_C" >&6
    2490724746
    2490824747coin_has_xpr=notGiven
    2490924748
    24910 # check if user wants to skip module in any case
     24749# check if user wants to skip package in any case
    2491124750if test x"$COIN_SKIP_PROJECTS" != x; then
    2491224751  for dir in $COIN_SKIP_PROJECTS; do
     
    2493424773  coin_has_xpr=yes
    2493524774       XPR_LIBS="$withval"
    24936        PCADDLIBS="$withval $PCADDLIBS"
     24775
    2493724776
    2493824777fi;
     
    2494424783  coin_has_xpr=yes
    2494524784     XPR_CFLAGS="-I`${CYGPATH_W} $withval`"
     24785
     24786
    2494624787fi;
    2494724788
     
    2498424825        echo "$as_me:$LINENO: result: yes: $XPR_VERSIONS" >&5
    2498524826echo "${ECHO_T}yes: $XPR_VERSIONS" >&6
    24986         REQUIREDPACKAGES="osi-xpress $REQUIREDPACKAGES"
     24827
    2498724828
    2498824829
     
    2500624847    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2500724848    export PKG_CONFIG_PATH
     24849
     24850    # augment X_CFLAGS and X_LIBS for each build target X in
     24851
    2500824852  else
    2500924853    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2501024854echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2501124855
    25012 echo "$as_me:$LINENO: checking for COIN-OR module Xpr (fallback)" >&5
    25013 echo $ECHO_N "checking for COIN-OR module Xpr (fallback)... $ECHO_C" >&6
     24856echo "$as_me:$LINENO: checking for COIN-OR package Xpr (fallback)" >&5
     24857echo $ECHO_N "checking for COIN-OR package Xpr (fallback)... $ECHO_C" >&6
    2501424858
    2501524859coin_has_xpr=notGiven
     
    2501724861XPR_CFLAGS=
    2501824862XPR_DATA=
    25019 
    2502024863
    2502124864# initial list of dependencies is "osi-xpress", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2509324936  projtoprocess="$nextprojtoprocess"
    2509424937
     24938  # if there are no more projects to search for, finish up
    2509524939  if test "x$projtoprocess" = x ; then
    2509624940    coin_has_xpr=yes
     
    2509824942echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2509924943
    25100     REQUIREDPACKAGES="osi-xpress $REQUIREDPACKAGES"
    25101 
    2510224944cat >>confdefs.h <<\_ACEOF
    2510324945#define COIN_HAS_XPR 1
     
    2510524947
    2510624948
     24949
     24950
    2510724951    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24952      if test -n "$XPR_CFLAGS" ; then
     24953        { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
     24954echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
     24955      fi
     24956      if test -n "$XPR_LIBS" ; then
     24957        { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
     24958echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
     24959      fi
     24960      if test -n "$XPR_DATA" ; then
     24961        { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
     24962echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
     24963      fi
     24964
     24965    fi
     24966  fi
     24967done
     24968
     24969
     24970
     24971if test $coin_has_xpr != notGiven &&
     24972                test $coin_has_xpr != skipping; then
     24973  COIN_HAS_XPR_TRUE=
     24974  COIN_HAS_XPR_FALSE='#'
     24975else
     24976  COIN_HAS_XPR_TRUE='#'
     24977  COIN_HAS_XPR_FALSE=
     24978fi
     24979
     24980
     24981
     24982  fi
     24983
     24984else
     24985  echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
     24986echo "${ECHO_T}$coin_has_xpr" >&6
     24987fi
     24988
     24989if test $coin_has_xpr != skipping &&
     24990   test $coin_has_xpr != notGiven ; then
     24991
     24992cat >>confdefs.h <<\_ACEOF
     24993#define COIN_HAS_XPR 1
     24994_ACEOF
     24995
     24996
     24997  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2510824998    if test -n "$XPR_CFLAGS" ; then
    2510924999      { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
     
    2511825008echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
    2511925009    fi
     25010    if test -n "$XPR_CFLAGS" ; then
     25011      { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
     25012echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
    2512025013    fi
     25014
    2512125015  fi
    25122 done
    25123 
     25016fi
     25017
     25018# Define the Makefile conditional
    2512425019
    2512525020
     
    2513525030
    2513625031
    25137   fi
    25138 
    25139 else
    25140   echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
    25141 echo "${ECHO_T}$coin_has_xpr" >&6
    25142 fi
    25143 
    25144 if test $coin_has_xpr != skipping &&
    25145    test $coin_has_xpr != notGiven ; then
    25146   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    25147   if test -n "$XPR_CFLAGS" ; then
    25148     { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
    25149 echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
    25150   fi
    25151   if test -n "$XPR_LIBS" ; then
    25152     { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
    25153 echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
    25154   fi
    25155   if test -n "$XPR_DATA" ; then
    25156     { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
    25157 echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
    25158   fi
    25159   fi
    25160 
    25161 cat >>confdefs.h <<\_ACEOF
    25162 #define COIN_HAS_XPR 1
    25163 _ACEOF
    25164 
    25165 fi
    25166 
    25167 # Define the Makefile conditional
    25168 
    25169 
    25170 if test $coin_has_xpr != notGiven &&
    25171                 test $coin_has_xpr != skipping; then
    25172   COIN_HAS_XPR_TRUE=
    25173   COIN_HAS_XPR_FALSE='#'
    25174 else
    25175   COIN_HAS_XPR_TRUE='#'
    25176   COIN_HAS_XPR_FALSE=
    25177 fi
    25178 
    25179 
    25180 
    2518125032
    2518225033#############################################################################
     
    2518625037# Ampl Solver library
    2518725038
    25188 echo "$as_me:$LINENO: checking for COIN-OR module ASL" >&5
    25189 echo $ECHO_N "checking for COIN-OR module ASL... $ECHO_C" >&6
     25039echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
     25040echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
    2519025041
    2519125042coin_has_asl=notGiven
    2519225043
    25193 # check if user wants to skip module in any case
     25044# check if user wants to skip package in any case
    2519425045if test x"$COIN_SKIP_PROJECTS" != x; then
    2519525046  for dir in $COIN_SKIP_PROJECTS; do
     
    2522725078  coin_has_asl=yes
    2522825079     ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
     25080
     25081
    2522925082fi;
    2523025083
     
    2528925142    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2529025143    export PKG_CONFIG_PATH
     25144
     25145    # augment X_CFLAGS and X_LIBS for each build target X in
     25146
    2529125147  else
    2529225148    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    2529325149echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2529425150
    25295 echo "$as_me:$LINENO: checking for COIN-OR module ASL (fallback)" >&5
    25296 echo $ECHO_N "checking for COIN-OR module ASL (fallback)... $ECHO_C" >&6
     25151echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
     25152echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
    2529725153
    2529825154coin_has_asl=notGiven
     
    2530025156ASL_CFLAGS=
    2530125157ASL_DATA=
    25302 
    2530325158
    2530425159# initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2537625231  projtoprocess="$nextprojtoprocess"
    2537725232
     25233  # if there are no more projects to search for, finish up
    2537825234  if test "x$projtoprocess" = x ; then
    2537925235    coin_has_asl=yes
     
    2538125237echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
    2538225238
    25383 
    25384 
    2538525239cat >>confdefs.h <<\_ACEOF
    2538625240#define COIN_HAS_ASL 1
     
    2538825242
    2538925243
     25244
     25245
    2539025246    if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     25247      if test -n "$ASL_CFLAGS" ; then
     25248        { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     25249echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
     25250      fi
     25251      if test -n "$ASL_LIBS" ; then
     25252        { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
     25253echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
     25254      fi
     25255      if test -n "$ASL_DATA" ; then
     25256        { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
     25257echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
     25258      fi
     25259
     25260    fi
     25261  fi
     25262done
     25263
     25264
     25265
     25266if test $coin_has_asl != notGiven &&
     25267                test $coin_has_asl != skipping; then
     25268  COIN_HAS_ASL_TRUE=
     25269  COIN_HAS_ASL_FALSE='#'
     25270else
     25271  COIN_HAS_ASL_TRUE='#'
     25272  COIN_HAS_ASL_FALSE=
     25273fi
     25274
     25275
     25276
     25277  fi
     25278
     25279else
     25280  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
     25281echo "${ECHO_T}$coin_has_asl" >&6
     25282fi
     25283
     25284if test $coin_has_asl != skipping &&
     25285   test $coin_has_asl != notGiven ; then
     25286
     25287cat >>confdefs.h <<\_ACEOF
     25288#define COIN_HAS_ASL 1
     25289_ACEOF
     25290
     25291
     25292  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    2539125293    if test -n "$ASL_CFLAGS" ; then
    2539225294      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     
    2540125303echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
    2540225304    fi
     25305    if test -n "$ASL_CFLAGS" ; then
     25306      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     25307echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
    2540325308    fi
     25309
    2540425310  fi
    25405 done
    25406 
    25407 
    25408 
    25409 if test $coin_has_asl != notGiven &&
    25410                 test $coin_has_asl != skipping; then
    25411   COIN_HAS_ASL_TRUE=
    25412   COIN_HAS_ASL_FALSE='#'
    25413 else
    25414   COIN_HAS_ASL_TRUE='#'
    25415   COIN_HAS_ASL_FALSE=
    25416 fi
    25417 
    25418 
    25419 
    25420   fi
    25421 
    25422 else
    25423   echo "$as_me:$LINENO: result: $coin_has_asl" >&5
    25424 echo "${ECHO_T}$coin_has_asl" >&6
    25425 fi
    25426 
    25427 if test $coin_has_asl != skipping &&
    25428    test $coin_has_asl != notGiven ; then
    25429   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    25430   if test -n "$ASL_CFLAGS" ; then
    25431     { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
    25432 echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
    25433   fi
    25434   if test -n "$ASL_LIBS" ; then
    25435     { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
    25436 echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
    25437   fi
    25438   if test -n "$ASL_DATA" ; then
    25439     { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
    25440 echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
    25441   fi
    25442   fi
    25443 
    25444 cat >>confdefs.h <<\_ACEOF
    25445 #define COIN_HAS_ASL 1
    25446 _ACEOF
    25447 
    2544825311fi
    2544925312
     
    2551125374echo "${ECHO_T}$cbc_default_solver" >&6
    2551225375
     25376# FIXME what about cplex and mosek here?
    2551325377case $cbc_default_solver in
    2551425378    clp)
     
    2561625480echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
    2561725481if test $ac_cv_lib_rt_clock_gettime = yes; then
    25618   ADDLIBS="-lrt $ADDLIBS"
     25482  CBCLIB_LIBS="-lrt $CBCLIB_LIBS"
     25483                CBCLIB_PCLIBS="-lrt $CBCLIB_PCLIBS"
    2561925484
    2562025485cat >>confdefs.h <<\_ACEOF
    2562125486#define HAVE_CLOCK_GETTIME 1
    2562225487_ACEOF
     25488
    2562325489
    2562425490else
     
    2569225558echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
    2569325559if test $ac_cv_lib_pthread_pthread_create = yes; then
    25694   ADDLIBS="-lpthread $ADDLIBS"
     25560  CBCLIB_LIBS="-lpthread $CBCLIB_LIBS"
     25561                CBCLIB_PCLIBS="-lpthread $CBCLIB_PCLIBS"
     25562
    2569525563else
    2569625564  { { echo "$as_me:$LINENO: error: --enable-cbc-parallel selected, but -lpthreads unavailable" >&5
     
    2641026278Usually this means the macro was only invoked conditionally." >&5
    2641126279echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
    26412 Usually this means the macro was only invoked conditionally." >&2;}
    26413    { (exit 1); exit 1; }; }
    26414 fi
    26415 if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then
    26416   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined.
    26417 Usually this means the macro was only invoked conditionally." >&5
    26418 echo "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined.
    26419 Usually this means the macro was only invoked conditionally." >&2;}
    26420    { (exit 1); exit 1; }; }
    26421 fi
    26422 if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then
    26423   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined.
    26424 Usually this means the macro was only invoked conditionally." >&5
    26425 echo "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined.
    26426 Usually this means the macro was only invoked conditionally." >&2;}
    26427    { (exit 1); exit 1; }; }
    26428 fi
    26429 if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then
    26430   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined.
    26431 Usually this means the macro was only invoked conditionally." >&5
    26432 echo "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined.
    26433 Usually this means the macro was only invoked conditionally." >&2;}
    26434    { (exit 1); exit 1; }; }
    26435 fi
    26436 if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then
    26437   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined.
    26438 Usually this means the macro was only invoked conditionally." >&5
    26439 echo "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined.
    2644026280Usually this means the macro was only invoked conditionally." >&2;}
    2644126281   { (exit 1); exit 1; }; }
     
    2735227192s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t
    2735327193s,@COINDEPEND_DATA@,$COINDEPEND_DATA,;t t
    27354 s,@REQUIREDPACKAGES@,$REQUIREDPACKAGES,;t t
     27194s,@CBCLIB_LIBS@,$CBCLIB_LIBS,;t t
     27195s,@CBCLIB_PCLIBS@,$CBCLIB_PCLIBS,;t t
     27196s,@CBCLIB_PCREQUIRES@,$CBCLIB_PCREQUIRES,;t t
     27197s,@CBCGENERIC_LIBS@,$CBCGENERIC_LIBS,;t t
     27198s,@CBCGENERIC_PCLIBS@,$CBCGENERIC_PCLIBS,;t t
     27199s,@CBCGENERIC_PCREQUIRES@,$CBCGENERIC_PCREQUIRES,;t t
    2735527200s,@COIN_HAS_COINDEPEND_TRUE@,$COIN_HAS_COINDEPEND_TRUE,;t t
    2735627201s,@COIN_HAS_COINDEPEND_FALSE@,$COIN_HAS_COINDEPEND_FALSE,;t t
     
    2736027205s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t
    2736127206s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t
    27362 s,@DYLP_LIBS@,$DYLP_LIBS,;t t
    27363 s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t
    27364 s,@DYLP_DATA@,$DYLP_DATA,;t t
    27365 s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t
    27366 s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t
    27367 s,@VOL_LIBS@,$VOL_LIBS,;t t
    27368 s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t
    27369 s,@VOL_DATA@,$VOL_DATA,;t t
    27370 s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t
    27371 s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t
    2737227207s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t
    2737327208s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
     
    2739027225s,@COIN_HAS_MIPLIB3_TRUE@,$COIN_HAS_MIPLIB3_TRUE,;t t
    2739127226s,@COIN_HAS_MIPLIB3_FALSE@,$COIN_HAS_MIPLIB3_FALSE,;t t
     27227s,@DYLP_LIBS@,$DYLP_LIBS,;t t
     27228s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t
     27229s,@DYLP_DATA@,$DYLP_DATA,;t t
     27230s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t
     27231s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t
     27232s,@VOL_LIBS@,$VOL_LIBS,;t t
     27233s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t
     27234s,@VOL_DATA@,$VOL_DATA,;t t
     27235s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t
     27236s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t
    2739227237s,@CPX_LIBS@,$CPX_LIBS,;t t
    2739327238s,@CPX_CFLAGS@,$CPX_CFLAGS,;t t
  • trunk/Cbc/configure.ac

    r1490 r1501  
    5757#############################################################################
    5858
    59 AC_COIN_HAS_MODULE(CoinDepend, [coinutils = trunk osi cgl])
     59AC_COIN_HAS_PACKAGE(CoinDepend, [cgl osi coinutils = trunk], [CbcLib CbcGeneric])
    6060if test $coin_has_coindepend != yes ; then
    6161  AC_MSG_ERROR([Required package CoinUtils, Osi, or Cgl not available.])
     
    6464# Clp and OsiClp are inseparable here.
    6565
    66 AC_COIN_HAS_MODULE(Clp,[osi-clp])
     66AC_COIN_HAS_PACKAGE(Clp, [osi-clp], [CbcLib CbcGeneric])
    6767if test $coin_has_clp != yes ; then
    6868  AC_MSG_ERROR("Required package Clp unavailable.")
    6969fi
    7070
    71 # The rest are not so critical, so we don't put in quite so much effort.
    72 
    73 AC_COIN_HAS_MODULE(DyLP,[osi-dylp])
    74 AC_COIN_HAS_MODULE(Vol, [osi-vol])
    75 AC_COIN_HAS_MODULE(OsiTests, [osi-unittests], [required=0])
    76 
    77 AC_COIN_HAS_MODULE(Sample,  [coindatasample],  [required=0])
    78 AC_COIN_HAS_MODULE(Netlib,  [coindatanetlib],  [required=0])
    79 AC_COIN_HAS_MODULE(Miplib3, [coindatamiplib3], [required=0])
     71# The rest are not required for linking against Cbc
     72
     73AC_COIN_HAS_PACKAGE(OsiTests, [osi-unittests])
     74AC_COIN_HAS_PACKAGE(Sample,   [coindatasample])
     75AC_COIN_HAS_PACKAGE(Netlib,   [coindatanetlib])
     76AC_COIN_HAS_PACKAGE(Miplib3,  [coindatamiplib3])
    8077
    8178#############################################################################
     
    8380#############################################################################
    8481
    85 # Check which other LP solvers are available
    86 AC_COIN_HAS_MODULE(DyLP, [osi-dylp])
    87 AC_COIN_HAS_MODULE(Vol,  [osi-vol])
    88 AC_COIN_HAS_MODULE(Cpx,  [osi-cplex])
    89 AC_COIN_HAS_MODULE(Glpk, [osi-glpk])
    90 AC_COIN_HAS_MODULE(Grb,  [osi-gurobi])
    91 AC_COIN_HAS_MODULE(Msk,  [osi-mosek])
    92 AC_COIN_HAS_MODULE(Spx,  [osi-soplex])
    93 AC_COIN_HAS_MODULE(Xpr,  [osi-xpress])
     82# Check which other LP solvers are available, some of them become a dependency of CbcGeneric
     83AC_COIN_HAS_PACKAGE(DyLP, [osi-dylp],   [CbcGeneric])
     84AC_COIN_HAS_PACKAGE(Vol,  [osi-vol])
     85AC_COIN_HAS_PACKAGE(Cpx,  [osi-cplex],  [CbcGeneric])
     86AC_COIN_HAS_PACKAGE(Glpk, [osi-glpk],   [CbcGeneric])
     87AC_COIN_HAS_PACKAGE(Grb,  [osi-gurobi])
     88AC_COIN_HAS_PACKAGE(Msk,  [osi-mosek],  [CbcGeneric])
     89AC_COIN_HAS_PACKAGE(Spx,  [osi-soplex], [CbcGeneric])
     90AC_COIN_HAS_PACKAGE(Xpr,  [osi-xpress])
    9491
    9592#############################################################################
     
    9895
    9996# Ampl Solver library
    100 AC_COIN_HAS_MODULE(ASL, [coinasl], [required=0])
     97AC_COIN_HAS_PACKAGE(ASL, [coinasl])
    10198
    10299#############################################################################
     
    132129AC_MSG_RESULT($cbc_default_solver)
    133130
     131# FIXME what about cplex and mosek here?
    134132case $cbc_default_solver in
    135133    clp)
     
    163161  AC_DEFINE([CBC_THREAD],[1],[Define to 1 if the SMP version of Cbc should be compiled])
    164162  AC_CHECK_LIB([rt],[clock_gettime],
    165                [ADDLIBS="-lrt $ADDLIBS"
    166                 AC_DEFINE([HAVE_CLOCK_GETTIME],[1],[Define if clock_gettime and rt library is available])],
     163               [CBCLIB_LIBS="-lrt $CBCLIB_LIBS"
     164                CBCLIB_PCLIBS="-lrt $CBCLIB_PCLIBS"
     165                AC_DEFINE([HAVE_CLOCK_GETTIME],[1],[Define if clock_gettime and rt library is available])
     166               ],
    167167               [AC_MSG_WARN([--enable-cbc-parallel selected, but -lrt unavailable; using gettimeofday instead of clock_gettime])])
    168168  AC_CHECK_LIB([pthread],[pthread_create],
    169                [ADDLIBS="-lpthread $ADDLIBS"],
     169               [CBCLIB_LIBS="-lpthread $CBCLIB_LIBS"
     170                CBCLIB_PCLIBS="-lpthread $CBCLIB_PCLIBS"
     171               ],
    170172               [AC_MSG_ERROR([--enable-cbc-parallel selected, but -lpthreads unavailable])])
    171173fi
  • trunk/Cbc/examples/Makefile.in

    r1470 r1501  
    6767
    6868# Libraries necessary to link with Cbc
    69 LIBS = @COINDEPEND_LIBS@ @CLP_LIBS@ -L$(COINLIBDIR) -lCbcSolver -lCbc -lOsiCbc @ADDLIBS@
     69LIBS = @CBCLIB_LIBS@ -L$(COINLIBDIR) -L$(COINLIBDIR)/ThirdParty -lCbcSolver -lCbc -lOsiCbc
    7070
    7171# Necessary Include dirs (we use the CYGPATH_W variables to allow
  • trunk/Cbc/inc/config_cbc.h.in

    r1489 r1501  
    2020#undef COIN_CBC_VERBOSITY
    2121
    22 /* Define to 1 if the ASL module is available */
     22/* Define to 1 if the ASL package is available */
    2323#undef COIN_HAS_ASL
    2424
    25 /* Define to 1 if the Clp module is available */
     25/* Define to 1 if the Clp package is available */
    2626#undef COIN_HAS_CLP
    2727
    28 /* Define to 1 if the CoinDepend module is available */
     28/* Define to 1 if the CoinDepend package is available */
    2929#undef COIN_HAS_COINDEPEND
    3030
    31 /* Define to 1 if the Cpx module is available */
     31/* Define to 1 if the Cpx package is available */
    3232#undef COIN_HAS_CPX
    3333
    34 /* Define to 1 if the DyLP module is available */
     34/* Define to 1 if the DyLP package is available */
    3535#undef COIN_HAS_DYLP
    3636
    37 /* Define to 1 if the Glpk module is available */
     37/* Define to 1 if the Glpk package is available */
    3838#undef COIN_HAS_GLPK
    3939
    40 /* Define to 1 if the Grb module is available */
     40/* Define to 1 if the Grb package is available */
    4141#undef COIN_HAS_GRB
    4242
    43 /* Define to 1 if the Miplib3 module is available */
     43/* Define to 1 if the Miplib3 package is available */
    4444#undef COIN_HAS_MIPLIB3
    4545
    46 /* Define to 1 if the Msk module is available */
     46/* Define to 1 if the Msk package is available */
    4747#undef COIN_HAS_MSK
    4848
    49 /* Define to 1 if the Netlib module is available */
     49/* Define to 1 if the Netlib package is available */
    5050#undef COIN_HAS_NETLIB
    5151
    52 /* Define to 1 if the OsiTests module is available */
     52/* Define to 1 if the OsiTests package is available */
    5353#undef COIN_HAS_OSITESTS
    5454
    55 /* Define to 1 if the Sample module is available */
     55/* Define to 1 if the Sample package is available */
    5656#undef COIN_HAS_SAMPLE
    5757
    58 /* Define to 1 if the Spx module is available */
     58/* Define to 1 if the Spx package is available */
    5959#undef COIN_HAS_SPX
    6060
    61 /* Define to 1 if the Vol module is available */
     61/* Define to 1 if the Vol package is available */
    6262#undef COIN_HAS_VOL
    6363
    64 /* Define to 1 if the Xpr module is available */
     64/* Define to 1 if the Xpr package is available */
    6565#undef COIN_HAS_XPR
    6666
  • trunk/Cbc/src/Makefile.am

    r1466 r1501  
    112112
    113113# Some common setup for cbc and cbc-generic.
     114#   ($(CPX_LIBS) should resolve in an empty string if there is no cplex)
    114115
    115116bin_PROGRAMS =
    116 AM_CPPFLAGS = $(COINDEPEND_CFLAGS)
     117AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_LIBS)
    117118
    118119########################################################################
     
    130131
    131132# Additional COIN libraries
    132 cbc_LDADD = libCbcSolver.la libCbc.la $(COINDEPEND_LIBS) $(ADDLIBS)
     133cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LIBS)
    133134
    134135# Finally, the -rpath flag is used by libtool to make sure that the shared
     
    138139
    139140# Add locations of include files.
    140 
    141 if COIN_HAS_CLP
    142   AM_CPPFLAGS += $(CLP_CFLAGS)
    143   cbc_LDADD += $(CLP_LIBS)
    144 endif
    145 
    146 if COIN_HAS_CPX
    147   AM_CPPFLAGS += $(CPX_CFLAGS)
    148   cbc_LDADD += $(CPX_LIBS)
    149 endif
    150141
    151142if COIN_HAS_ASL
     
    181172        CbcGenSolvers.cpp
    182173
    183 cbc_generic_LDADD = libCbcSolver.la libCbc.la $(COINDEPEND_LIBS) $(ADDLIBS)
     174cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LIBS)
    184175
    185176# List all additionally required solver and Osi libraries
    186 
    187 if COIN_HAS_CLP
    188   AM_CPPFLAGS += $(CLP_CFLAGS)
    189   cbc_generic_LDADD += $(CLP_LIBS)
    190 endif
    191 
    192 if COIN_HAS_CPX
    193   AM_CPPFLAGS += $(CPX_CFLAGS)
    194   cbc_generic_LDADD += $(CPX_LIBS)
    195 endif
    196 
    197 if COIN_HAS_DYLP
    198   AM_CPPFLAGS += $(DYLP_CFLAGS)
    199   cbc_generic_LDADD += $(DYLP_LIBS)
    200 endif
    201 
    202 if COIN_HAS_GLPK
    203   AM_CPPFLAGS += $(GLPK_CFLAGS)
    204   cbc_generic_LDADD += $(GLPK_LIBS)
    205 endif
    206 
    207 if COIN_HAS_MSK
    208   AM_CPPFLAGS += $(MSK_CFLAGS)
    209   cbc_generic_LDADD += $(MSK_LIBS)
    210 endif
    211 
    212 if COIN_HAS_SPX
    213   AM_CPPFLAGS += $(SPX_CFLAGS)
    214   cbc_generic_LDADD += $(SPX_LIBS)
    215 endif
    216 
    217 if COIN_HAS_VOL
    218   AM_CPPFLAGS += $(VOL_CFLAGS)
    219   cbc_generic_LDADD += $(VOL_LIBS)
    220 endif
    221 
    222 if COIN_HAS_XPR
    223   AM_CPPFLAGS += $(XPR_CFLAGS)
    224   cbc_generic_LDADD += $(XPR_LIBS)
    225 endif
     177# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
     178# so just add compiler flags here (all we can think of)
     179
     180AM_CPPFLAGS += $(CLP_CFLAGS) $(CPX_CFLAGS) $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
    226181
    227182if COIN_HAS_ASL
  • trunk/Cbc/src/Makefile.in

    r1490 r1501  
    5656
    5757# Add locations of include files.
    58 @COIN_HAS_CLP_TRUE@am__append_2 = $(CLP_CFLAGS)
    59 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__append_3 = $(CPX_CFLAGS)
    60 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__append_4 = $(CPX_LIBS)
    61 @COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_5 = $(ASL_CFLAGS)
    62 @COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_6 = $(ASL_LIBS)
     58@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_2 = $(ASL_CFLAGS)
     59@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_3 = $(ASL_LIBS)
    6360
    6461########################################################################
     
    6865# Name of the executable compiled in this directory.  We want it to be
    6966# installed in the 'bin' directory
    70 @CBC_BUILD_CBC_GENERIC_TRUE@am__append_7 = cbc-generic
     67@CBC_BUILD_CBC_GENERIC_TRUE@am__append_4 = cbc-generic
    7168
    7269# List all additionally required solver and Osi libraries
    73 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_8 = $(CLP_CFLAGS)
    74 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_9 = $(CLP_LIBS)
    75 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__append_10 = $(CPX_CFLAGS)
    76 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__append_11 = $(CPX_LIBS)
    77 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_12 = $(DYLP_CFLAGS)
    78 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_13 = $(DYLP_LIBS)
    79 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__append_14 = $(GLPK_CFLAGS)
    80 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__append_15 = $(GLPK_LIBS)
    81 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__append_16 = $(MSK_CFLAGS)
    82 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__append_17 = $(MSK_LIBS)
    83 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@am__append_18 = $(SPX_CFLAGS)
    84 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@am__append_19 = $(SPX_LIBS)
    85 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_20 = $(VOL_CFLAGS)
    86 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_21 = $(VOL_LIBS)
    87 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__append_22 = $(XPR_CFLAGS)
    88 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__append_23 = $(XPR_LIBS)
    89 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_24 = $(ASL_CFLAGS)
    90 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_25 = $(ASL_LIBS)
     70# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
     71# so just add compiler flags here (all we can think of)
     72@CBC_BUILD_CBC_GENERIC_TRUE@am__append_5 = $(CLP_CFLAGS) $(CPX_CFLAGS) $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
     73@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_6 = $(ASL_CFLAGS)
     74@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_7 = $(ASL_LIBS)
    9175subdir = src
    9276DIST_COMMON = $(includecoin_HEADERS) $(srcdir)/Makefile.am \
     
    151135cbc_OBJECTS = $(am_cbc_OBJECTS)
    152136am__DEPENDENCIES_1 =
    153 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_2 =  \
    154 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@  $(am__DEPENDENCIES_1)
    155 @COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__DEPENDENCIES_3 =  \
     137@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__DEPENDENCIES_2 =  \
    156138@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@  $(am__DEPENDENCIES_1)
    157139@COIN_HAS_CLP_TRUE@cbc_DEPENDENCIES = libCbcSolver.la libCbc.la \
    158 @COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
    159 @COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \
    160 @COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_3)
     140@COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2)
    161141am__cbc_generic_SOURCES_DIST = CbcGenBaB.cpp CbcGenCbcParam.cpp \
    162142        CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp CbcGenCtlBlk.cpp \
     
    179159@CBC_BUILD_CBC_GENERIC_TRUE@    CbcGenSolvers.$(OBJEXT)
    180160cbc_generic_OBJECTS = $(am_cbc_generic_OBJECTS)
    181 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1)
    182 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_5 = $(am__DEPENDENCIES_1)
    183 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1)
    184 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__DEPENDENCIES_7 = $(am__DEPENDENCIES_1)
    185 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__DEPENDENCIES_8 = $(am__DEPENDENCIES_1)
    186 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@am__DEPENDENCIES_9 = $(am__DEPENDENCIES_1)
    187 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__DEPENDENCIES_10 = $(am__DEPENDENCIES_1)
    188 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__DEPENDENCIES_11 = $(am__DEPENDENCIES_1)
    189 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__DEPENDENCIES_12 = $(am__DEPENDENCIES_1)
     161@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1)
    190162@CBC_BUILD_CBC_GENERIC_TRUE@cbc_generic_DEPENDENCIES =  \
    191163@CBC_BUILD_CBC_GENERIC_TRUE@    libCbcSolver.la libCbc.la \
    192164@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_1) \
    193 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_1) \
    194 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_4) \
    195 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_5) \
    196 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_6) \
    197 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_7) \
    198 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_8) \
    199 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_9) \
    200 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_10) \
    201 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_11) \
    202 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_12)
     165@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_3)
    203166depcomp = $(SHELL) $(top_srcdir)/depcomp
    204167am__depfiles_maybe = depfiles
     
    255218AWK = @AWK@
    256219BUILDTOOLSDIR = @BUILDTOOLSDIR@
     220CBCGENERIC_LIBS = @CBCGENERIC_LIBS@
     221CBCGENERIC_PCLIBS = @CBCGENERIC_PCLIBS@
     222CBCGENERIC_PCREQUIRES = @CBCGENERIC_PCREQUIRES@
     223CBCLIB_LIBS = @CBCLIB_LIBS@
     224CBCLIB_PCLIBS = @CBCLIB_PCLIBS@
     225CBCLIB_PCREQUIRES = @CBCLIB_PCREQUIRES@
    257226CBC_BUILD_CBC_GENERIC_FALSE = @CBC_BUILD_CBC_GENERIC_FALSE@
    258227CBC_BUILD_CBC_GENERIC_TRUE = @CBC_BUILD_CBC_GENERIC_TRUE@
     
    401370PKG_CONFIG = @PKG_CONFIG@
    402371RANLIB = @RANLIB@
    403 REQUIREDPACKAGES = @REQUIREDPACKAGES@
    404372RPATH_FLAGS = @RPATH_FLAGS@
    405373SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     
    588556
    589557# List additional defines
    590 AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(am__append_2) $(am__append_3) \
    591         $(am__append_5) $(am__append_8) $(am__append_10) \
    592         $(am__append_12) $(am__append_14) $(am__append_16) \
    593         $(am__append_18) $(am__append_20) $(am__append_22) \
    594         $(am__append_24) -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
     558AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_LIBS) \
     559        $(am__append_2) $(am__append_5) $(am__append_6) \
     560        -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
    595561
    596562# List all source files for this executable, including headers
     
    599565# Additional COIN libraries
    600566@COIN_HAS_CLP_TRUE@cbc_LDADD = libCbcSolver.la libCbc.la \
    601 @COIN_HAS_CLP_TRUE@     $(COINDEPEND_LIBS) $(ADDLIBS) $(CLP_LIBS) \
    602 @COIN_HAS_CLP_TRUE@     $(am__append_4) $(am__append_6)
     567@COIN_HAS_CLP_TRUE@     $(CBCLIB_LIBS) $(am__append_3)
    603568
    604569# Finally, the -rpath flag is used by libtool to make sure that the shared
     
    620585
    621586@CBC_BUILD_CBC_GENERIC_TRUE@cbc_generic_LDADD = libCbcSolver.la \
    622 @CBC_BUILD_CBC_GENERIC_TRUE@    libCbc.la $(COINDEPEND_LIBS) \
    623 @CBC_BUILD_CBC_GENERIC_TRUE@    $(ADDLIBS) $(am__append_9) \
    624 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__append_11) $(am__append_13) \
    625 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__append_15) $(am__append_17) \
    626 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__append_19) $(am__append_21) \
    627 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__append_23) $(am__append_25)
     587@CBC_BUILD_CBC_GENERIC_TRUE@    libCbc.la $(CBCGENERIC_LIBS) \
     588@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__append_7)
    628589
    629590# Finally, the -rpath flag is used by libtool to make sure that the shared
  • trunk/Cbc/src/OsiCbc/Makefile.in

    r1490 r1501  
    123123AWK = @AWK@
    124124BUILDTOOLSDIR = @BUILDTOOLSDIR@
     125CBCGENERIC_LIBS = @CBCGENERIC_LIBS@
     126CBCGENERIC_PCLIBS = @CBCGENERIC_PCLIBS@
     127CBCGENERIC_PCREQUIRES = @CBCGENERIC_PCREQUIRES@
     128CBCLIB_LIBS = @CBCLIB_LIBS@
     129CBCLIB_PCLIBS = @CBCLIB_PCLIBS@
     130CBCLIB_PCREQUIRES = @CBCLIB_PCREQUIRES@
    125131CBC_BUILD_CBC_GENERIC_FALSE = @CBC_BUILD_CBC_GENERIC_FALSE@
    126132CBC_BUILD_CBC_GENERIC_TRUE = @CBC_BUILD_CBC_GENERIC_TRUE@
     
    269275PKG_CONFIG = @PKG_CONFIG@
    270276RANLIB = @RANLIB@
    271 REQUIREDPACKAGES = @REQUIREDPACKAGES@
    272277RPATH_FLAGS = @RPATH_FLAGS@
    273278SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
  • trunk/Cbc/test/Makefile.am

    r1467 r1501  
    6060
    6161gamsTest_SOURCES = gamsTest.cpp
    62 gamsTest_LDADD = ../src/libCbcSolver.la ../src/libCbc.la $(COINDEPEND_LIBS) $(ADDLIBS)
     62gamsTest_LDADD = ../src/libCbcSolver.la ../src/libCbc.la $(CBCLIB_LIBS)
    6363gamsTest_LDFLAGS = -rpath $(libdir)
    6464
     
    6767if COIN_HAS_CLP
    6868  AM_CPPFLAGS += $(CLP_CFLAGS)
    69   gamsTest_LDADD += $(CLP_LIBS)
     69#  gamsTest_LDADD += $(CLP_LIBS)
    7070endif
    7171
    7272if COIN_HAS_CPX
    7373  AM_CPPFLAGS += $(CPX_CFLAGS)
    74   gamsTest_LDADD += $(CPX_LIBS)
     74#  gamsTest_LDADD += $(CPX_LIBS)
    7575endif
    7676
    7777if COIN_HAS_DYLP
    7878  AM_CPPFLAGS += $(DYLP_CFLAGS)
    79   gamsTest_LDADD += $(DYLP_LIBS)
     79#  gamsTest_LDADD += $(DYLP_LIBS)
    8080endif
    8181
    8282if COIN_HAS_GLPK
    8383  AM_CPPFLAGS += $(GLPK_CFLAGS)
    84   gamsTest_LDADD += $(GLPK_LIBS)
     84#  gamsTest_LDADD += $(GLPK_LIBS)
    8585endif
    8686
    8787if COIN_HAS_MSK
    8888  AM_CPPFLAGS += $(MSK_CFLAGS)
    89   gamsTest_LDADD += $(MSK_LIBS)
     89#  gamsTest_LDADD += $(MSK_LIBS)
    9090endif
    9191
     
    9797if COIN_HAS_VOL
    9898  AM_CPPFLAGS += $(VOL_CFLAGS)
    99   gamsTest_LDADD += $(VOL_LIBS)
     99#  gamsTest_LDADD += $(VOL_LIBS)
    100100endif
    101101
    102102if COIN_HAS_XPR
    103103  AM_CPPFLAGS += $(XPR_CFLAGS)
    104   gamsTest_LDADD += $(XPR_LIBS)
    105 endif
    106 
    107 if COIN_HAS_ASL
    108   AM_CPPFLAGS += $(ASL_CFLAGS)
    109   gamsTest_LDADD += $(ASL_LIBS)
     104#  gamsTest_LDADD += $(XPR_LIBS)
    110105endif
    111106
     
    117112
    118113osiUnitTest_LDADD = ../src/OsiCbc/libOsiCbc.la ../src/libCbc.la \
    119     $(COINDEPEND_LIBS) $(OSITESTS_LIBS) $(ADDLIBS)
     114    $(CBCLIB_LIBS) $(OSITESTS_LIBS)
    120115
    121116AM_CPPFLAGS += $(OSITESTS_CFLAGS) \
  • trunk/Cbc/test/Makefile.in

    r1490 r1501  
    5151bin_PROGRAMS = gamsTest$(EXEEXT) osiUnitTest$(EXEEXT)
    5252@COIN_HAS_CLP_TRUE@am__append_7 = $(CLP_CFLAGS)
    53 @COIN_HAS_CLP_TRUE@am__append_8 = $(CLP_LIBS)
    54 @COIN_HAS_CPX_TRUE@am__append_9 = $(CPX_CFLAGS)
    55 @COIN_HAS_CPX_TRUE@am__append_10 = $(CPX_LIBS)
    56 @COIN_HAS_DYLP_TRUE@am__append_11 = $(DYLP_CFLAGS)
    57 @COIN_HAS_DYLP_TRUE@am__append_12 = $(DYLP_LIBS)
    58 @COIN_HAS_GLPK_TRUE@am__append_13 = $(GLPK_CFLAGS)
    59 @COIN_HAS_GLPK_TRUE@am__append_14 = $(GLPK_LIBS)
    60 @COIN_HAS_MSK_TRUE@am__append_15 = $(MSK_CFLAGS)
    61 @COIN_HAS_MSK_TRUE@am__append_16 = $(MSK_LIBS)
     53#  gamsTest_LDADD += $(CLP_LIBS)
     54@COIN_HAS_CPX_TRUE@am__append_8 = $(CPX_CFLAGS)
     55#  gamsTest_LDADD += $(CPX_LIBS)
     56@COIN_HAS_DYLP_TRUE@am__append_9 = $(DYLP_CFLAGS)
     57#  gamsTest_LDADD += $(DYLP_LIBS)
     58@COIN_HAS_GLPK_TRUE@am__append_10 = $(GLPK_CFLAGS)
     59#  gamsTest_LDADD += $(GLPK_LIBS)
     60@COIN_HAS_MSK_TRUE@am__append_11 = $(MSK_CFLAGS)
     61#  gamsTest_LDADD += $(MSK_LIBS)
    6262
    6363# if COIN_HAS_SPX
     
    6565#   gamsTest_LDADD += $(SPX_LIBS)
    6666# endif
    67 @COIN_HAS_VOL_TRUE@am__append_17 = $(VOL_CFLAGS)
    68 @COIN_HAS_VOL_TRUE@am__append_18 = $(VOL_LIBS)
    69 @COIN_HAS_XPR_TRUE@am__append_19 = $(XPR_CFLAGS)
    70 @COIN_HAS_XPR_TRUE@am__append_20 = $(XPR_LIBS)
    71 @COIN_HAS_ASL_TRUE@am__append_21 = $(ASL_CFLAGS)
    72 @COIN_HAS_ASL_TRUE@am__append_22 = $(ASL_LIBS)
     67@COIN_HAS_VOL_TRUE@am__append_12 = $(VOL_CFLAGS)
     68#  gamsTest_LDADD += $(VOL_LIBS)
     69@COIN_HAS_XPR_TRUE@am__append_13 = $(XPR_CFLAGS)
    7370subdir = test
    7471DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
     
    8784gamsTest_OBJECTS = $(am_gamsTest_OBJECTS)
    8885am__DEPENDENCIES_1 =
    89 @COIN_HAS_CLP_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
    90 @COIN_HAS_CPX_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1)
    91 @COIN_HAS_DYLP_TRUE@am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1)
    92 @COIN_HAS_GLPK_TRUE@am__DEPENDENCIES_5 = $(am__DEPENDENCIES_1)
    93 @COIN_HAS_MSK_TRUE@am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1)
    94 @COIN_HAS_VOL_TRUE@am__DEPENDENCIES_7 = $(am__DEPENDENCIES_1)
    95 @COIN_HAS_XPR_TRUE@am__DEPENDENCIES_8 = $(am__DEPENDENCIES_1)
    96 @COIN_HAS_ASL_TRUE@am__DEPENDENCIES_9 = $(am__DEPENDENCIES_1)
    9786gamsTest_DEPENDENCIES = ../src/libCbcSolver.la ../src/libCbc.la \
    98         $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
    99         $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) \
    100         $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_5) \
    101         $(am__DEPENDENCIES_6) $(am__DEPENDENCIES_7) \
    102         $(am__DEPENDENCIES_8) $(am__DEPENDENCIES_9)
     87        $(am__DEPENDENCIES_1)
    10388am_osiUnitTest_OBJECTS = osiUnitTest.$(OBJEXT) \
    10489        OsiCbcSolverInterfaceTest.$(OBJEXT)
    10590osiUnitTest_OBJECTS = $(am_osiUnitTest_OBJECTS)
    10691osiUnitTest_DEPENDENCIES = ../src/OsiCbc/libOsiCbc.la ../src/libCbc.la \
    107         $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
    108         $(am__DEPENDENCIES_1)
     92        $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
    10993DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/inc
    11094depcomp = $(SHELL) $(top_srcdir)/depcomp
     
    143127AWK = @AWK@
    144128BUILDTOOLSDIR = @BUILDTOOLSDIR@
     129CBCGENERIC_LIBS = @CBCGENERIC_LIBS@
     130CBCGENERIC_PCLIBS = @CBCGENERIC_PCLIBS@
     131CBCGENERIC_PCREQUIRES = @CBCGENERIC_PCREQUIRES@
     132CBCLIB_LIBS = @CBCLIB_LIBS@
     133CBCLIB_PCLIBS = @CBCLIB_PCLIBS@
     134CBCLIB_PCREQUIRES = @CBCLIB_PCREQUIRES@
    145135CBC_BUILD_CBC_GENERIC_FALSE = @CBC_BUILD_CBC_GENERIC_FALSE@
    146136CBC_BUILD_CBC_GENERIC_TRUE = @CBC_BUILD_CBC_GENERIC_TRUE@
     
    289279PKG_CONFIG = @PKG_CONFIG@
    290280RANLIB = @RANLIB@
    291 REQUIREDPACKAGES = @REQUIREDPACKAGES@
    292281RPATH_FLAGS = @RPATH_FLAGS@
    293282SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     
    378367ositestsflags = $(am__append_4) $(am__append_6)
    379368gamsTest_SOURCES = gamsTest.cpp
    380 gamsTest_LDADD = ../src/libCbcSolver.la ../src/libCbc.la \
    381         $(COINDEPEND_LIBS) $(ADDLIBS) $(am__append_8) $(am__append_10) \
    382         $(am__append_12) $(am__append_14) $(am__append_16) \
    383         $(am__append_18) $(am__append_20) $(am__append_22)
     369gamsTest_LDADD = ../src/libCbcSolver.la ../src/libCbc.la $(CBCLIB_LIBS)
    384370gamsTest_LDFLAGS = -rpath $(libdir)
    385371AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/../src` $(COINDEPEND_CFLAGS) \
    386         $(am__append_7) $(am__append_9) $(am__append_11) \
    387         $(am__append_13) $(am__append_15) $(am__append_17) \
    388         $(am__append_19) $(am__append_21) $(OSITESTS_CFLAGS) \
    389         -I`$(CYGPATH_W) $(srcdir)/../src/OsiCbc`
     372        $(am__append_7) $(am__append_8) $(am__append_9) \
     373        $(am__append_10) $(am__append_11) $(am__append_12) \
     374        $(am__append_13) $(OSITESTS_CFLAGS) -I`$(CYGPATH_W) \
     375        $(srcdir)/../src/OsiCbc`
     376#  gamsTest_LDADD += $(XPR_LIBS)
    390377
    391378########################################################################
     
    394381osiUnitTest_SOURCES = osiUnitTest.cpp OsiCbcSolverInterfaceTest.cpp
    395382osiUnitTest_LDADD = ../src/OsiCbc/libOsiCbc.la ../src/libCbc.la \
    396     $(COINDEPEND_LIBS) $(OSITESTS_LIBS) $(ADDLIBS)
     383    $(CBCLIB_LIBS) $(OSITESTS_LIBS)
    397384
    398385
Note: See TracChangeset for help on using the changeset viewer.