Changeset 1445


Ignore:
Timestamp:
May 1, 2010 7:22:11 AM (10 years ago)
Author:
stefan
Message:

use advanced COIN_HAS_MODULE macro; setup addlibs file from .pc file; rerun autotools

Location:
branches/split/Cbc
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/split/Cbc/Makefile.am

    r1439 r1445  
    117117########################################################################
    118118
     119if COIN_HAS_PKGCONFIG
    119120addlibsdir = $(datadir)/coin/doc/Cbc
    120121addlibs_DATA = cbc_addlibs.txt
     122
     123cbc_addlibs.txt : cbc.pc
     124        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs cbc > cbc_addlibs.txt
     125endif
    121126
    122127pkgconfiglibdir = $(libdir)/pkgconfig
     
    127132########################################################################
    128133
     134CLEANFILES = cbc_addlibs.txt
     135
    129136# Files that are generated and should be cleaned with make distclean
    130137DISTCLEANFILES =
  • branches/split/Cbc/Makefile.in

    r1444 r1445  
    6464        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    6565        $(srcdir)/cbc-uninstalled.pc.in $(srcdir)/cbc.pc.in \
    66         $(srcdir)/cbc_addlibs.txt.in \
    6766        $(srcdir)/osi-cbc-uninstalled.pc.in $(srcdir)/osi-cbc.pc.in \
    6867        $(top_srcdir)/configure $(top_srcdir)/examples/Makefile.in \
     
    8079mkinstalldirs = $(install_sh) -d
    8180CONFIG_HEADER = $(top_builddir)/inc/config_cbc.h
    82 CONFIG_CLEAN_FILES = examples/Makefile cbc_addlibs.txt cbc.pc \
    83         cbc-uninstalled.pc osi-cbc.pc osi-cbc-uninstalled.pc
     81CONFIG_CLEAN_FILES = examples/Makefile cbc.pc cbc-uninstalled.pc \
     82        osi-cbc.pc osi-cbc-uninstalled.pc
    8483SOURCES =
    8584DIST_SOURCES =
     
    169168COIN_HAS_OSITESTS_FALSE = @COIN_HAS_OSITESTS_FALSE@
    170169COIN_HAS_OSITESTS_TRUE = @COIN_HAS_OSITESTS_TRUE@
     170COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     171COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    171172COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    172173COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     
    175176COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    176177COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
     178COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    177179CPP = @CPP@
    178180CPPFLAGS = @CPPFLAGS@
     
    382384#                  Installation of the addlibs file                    #
    383385########################################################################
    384 addlibsdir = $(datadir)/coin/doc/Cbc
    385 addlibs_DATA = cbc_addlibs.txt
     386@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/Cbc
     387@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = cbc_addlibs.txt
    386388pkgconfiglibdir = $(libdir)/pkgconfig
    387389pkgconfiglib_DATA = cbc.pc osi-cbc.pc
     
    390392#                         Maintainer Stuff                             #
    391393########################################################################
     394CLEANFILES = cbc_addlibs.txt
    392395
    393396# Files that are generated and should be cleaned with make distclean
     
    449452        -rm -f inc/config_cbc.h inc/stamp-h1
    450453examples/Makefile: $(top_builddir)/config.status $(top_srcdir)/examples/Makefile.in
    451         cd $(top_builddir) && $(SHELL) ./config.status $@
    452 cbc_addlibs.txt: $(top_builddir)/config.status $(srcdir)/cbc_addlibs.txt.in
    453454        cd $(top_builddir) && $(SHELL) ./config.status $@
    454455cbc.pc: $(top_builddir)/config.status $(srcdir)/cbc.pc.in
     
    804805
    805806clean-generic:
     807        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    806808
    807809distclean-generic:
     
    905907.PHONY: test unitTest
    906908
     909@COIN_HAS_PKGCONFIG_TRUE@cbc_addlibs.txt : cbc.pc
     910@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs cbc > cbc_addlibs.txt
     911
    907912install-doc: $(DocFiles)
    908913        test -z "$(DocInstallDir)" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)"
  • branches/split/Cbc/configure

    r1444 r1445  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG 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 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_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 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 FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH 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 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_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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11101110  --with-tags[=TAGS]
    11111111                          include additional configurations [automatic]
     1112  --with-coin-instdir     prefix of installation directory for precompiled
     1113                          COIN packages
    11121114  --with-coindepend-lib linker flags for using module CoinDepend
    11131115  --with-coindepend-incdir
     
    11171119                          directory with data files for using module
    11181120                          CoinDepend
    1119   --with-coin-instdir     prefix of installation directory for precompiled
    1120                           COIN packages
    11211121  --with-clp-lib linker flags for using module Clp
    11221122  --with-clp-incdir directory with header files for using module Clp
     
    2059420594
    2059520595
     20596
     20597if test -n "$PKG_CONFIG"; then
     20598  COIN_HAS_PKGCONFIG_TRUE=
     20599  COIN_HAS_PKGCONFIG_FALSE='#'
     20600else
     20601  COIN_HAS_PKGCONFIG_TRUE='#'
     20602  COIN_HAS_PKGCONFIG_FALSE=
     20603fi
     20604
     20605
     20606
     20607# assemble search path for pkg-config, if we are in a project setup
     20608if test x$coin_projectdir = xyes ; then
     20609  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20610
     20611  # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     20612  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20613  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20614  if test -d "${prefix}"; then
     20615    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20616  fi
     20617
     20618
     20619# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20620if test "${with_coin_instdir+set}" = set; then
     20621  withval="$with_coin_instdir"
     20622  if test -d "$withval"; then : ; else
     20623       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20624echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20625   { (exit 1); exit 1; }; }
     20626     fi
     20627     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20628
     20629fi;
     20630
     20631  # in a classic setup, we want to find uninstalled projects
     20632  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20633  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20634  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     20635  if test -e ../coin_subdirs.txt ; then
     20636    for i in `cat ../coin_subdirs.txt` ; do
     20637      COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     20638    done
     20639  fi
     20640
     20641  if test -e ../../coin_subdirs.txt ; then
     20642    for i in `cat ../../coin_subdirs.txt` ; do
     20643      COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     20644    done
     20645  fi
     20646
     20647
     20648fi
     20649
     20650
     20651
    2059620652echo "$as_me:$LINENO: checking for COIN-OR module CoinDepend" >&5
    2059720653echo $ECHO_N "checking for COIN-OR module CoinDepend... $ECHO_C" >&6
     
    2064820704if test $coin_has_coindepend = notGiven; then
    2064920705  if test -n "$PKG_CONFIG" ; then
    20650     # assemble search path for pkg-config
     20706    # set search path for pkg-config
     20707    # need to export variable to be sure that the following pkg-config gets these values
    2065120708    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    20652 
    20653     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    20654     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    20655     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    20656     if test -d "${prefix}"; then
    20657       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    20658     fi
    20659 
    20660 
    20661 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    20662 if test "${with_coin_instdir+set}" = set; then
    20663   withval="$with_coin_instdir"
    20664   if test -d "$withval"; then : ; else
    20665          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    20666 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    20667    { (exit 1); exit 1; }; }
    20668        fi
    20669        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    20670 
    20671 fi;
    20672 
    20673     # in a classic setup, we want to find uninstalled projects
    20674     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    20675     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    20676     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    20677     if test -e ../coin_subdirs.txt ; then
    20678       for i in `cat ../coin_subdirs.txt` ; do
    20679         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    20680       done
    20681     fi
    20682 
    20683     if test -e ../../coin_subdirs.txt ; then
    20684       for i in `cat ../../coin_subdirs.txt` ; do
    20685         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    20686       done
    20687     fi
     20709    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     20710    export PKG_CONFIG_PATH
    2068820711
    2068920712    # let pkg-config do it's magic
    20690     # need to export variable to be sure that the following pkg-config gets these values
    20691     export PKG_CONFIG_PATH
    2069220713
    2069320714
     
    2072920750
    2073020751
     20752    # reset PKG_CONFIG_PATH variable
    2073120753    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2073220754  else
     20755    #if 4th argument is given, try fallback - whereby we take the first word from coinutils = split osi cgl as basename for the .pc file
    2073320756    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2073420757echo "${ECHO_T}skipped check via pkg-config" >&6
     20758
    2073520759  fi
    2073620760
     
    2078320807
    2078420808if test x$coin_has_blas != "xyes" ; then
     20809
    2078520810echo "$as_me:$LINENO: checking for COIN-OR module Blas (fallback)" >&5
    2078620811echo $ECHO_N "checking for COIN-OR module Blas (fallback)... $ECHO_C" >&6
     
    2082720852
    2082820853    coin_has_blas=yes
    20829   fi
     20854    echo "$as_me:$LINENO: result: ../ThirdParty/Blas" >&5
     20855echo "${ECHO_T}../ThirdParty/Blas" >&6
     20856  else
     20857    echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     20858echo "${ECHO_T}$coin_has_blas" >&6
     20859  fi
     20860else
     20861  echo "$as_me:$LINENO: result: skipping" >&5
     20862echo "${ECHO_T}skipping" >&6
    2083020863fi
    2083120864
    2083220865#if user did not disable setting of makefile conditional, do it
    2083320866
    20834 
    20835 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
    20836 echo "${ECHO_T}$coin_has_blas" >&6
    2083720867fi
    2083820868
    2083920869
    2084020870if test x$coin_has_lapack != "xyes" ; then
     20871
    2084120872echo "$as_me:$LINENO: checking for COIN-OR module Lapack (fallback)" >&5
    2084220873echo $ECHO_N "checking for COIN-OR module Lapack (fallback)... $ECHO_C" >&6
     
    2088320914
    2088420915    coin_has_lapack=yes
    20885   fi
     20916    echo "$as_me:$LINENO: result: ../ThirdParty/Lapack" >&5
     20917echo "${ECHO_T}../ThirdParty/Lapack" >&6
     20918  else
     20919    echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
     20920echo "${ECHO_T}$coin_has_lapack" >&6
     20921  fi
     20922else
     20923  echo "$as_me:$LINENO: result: skipping" >&5
     20924echo "${ECHO_T}skipping" >&6
    2088620925fi
    2088720926
    2088820927#if user did not disable setting of makefile conditional, do it
    2088920928
    20890 
    20891 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
    20892 echo "${ECHO_T}$coin_has_lapack" >&6
    2089320929fi
    2089420930
    2089520931
    2089620932if test x$coin_has_glpk != "xyes" ; then
     20933
    2089720934echo "$as_me:$LINENO: checking for COIN-OR module Glpk (fallback)" >&5
    2089820935echo $ECHO_N "checking for COIN-OR module Glpk (fallback)... $ECHO_C" >&6
     
    2093920976
    2094020977    coin_has_glpk=yes
    20941   fi
     20978    echo "$as_me:$LINENO: result: ../ThirdParty/Glpk" >&5
     20979echo "${ECHO_T}../ThirdParty/Glpk" >&6
     20980  else
     20981    echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     20982echo "${ECHO_T}$coin_has_glpk" >&6
     20983  fi
     20984else
     20985  echo "$as_me:$LINENO: result: skipping" >&5
     20986echo "${ECHO_T}skipping" >&6
    2094220987fi
    2094320988
    2094420989#if user did not disable setting of makefile conditional, do it
    2094520990
    20946 
    20947 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
    20948 echo "${ECHO_T}$coin_has_glpk" >&6
    2094920991fi
    2095020992
    2095120993
    2095220994if test x$coin_has_coinutils != "xyes" ; then
     20995
    2095320996echo "$as_me:$LINENO: checking for COIN-OR module CoinUtils (fallback)" >&5
    2095420997echo $ECHO_N "checking for COIN-OR module CoinUtils (fallback)... $ECHO_C" >&6
     
    2099721040
    2099821041    coin_has_coinutils=yes
    20999   fi
     21042    echo "$as_me:$LINENO: result: ../CoinUtils" >&5
     21043echo "${ECHO_T}../CoinUtils" >&6
     21044  else
     21045    echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
     21046echo "${ECHO_T}$coin_has_coinutils" >&6
     21047  fi
     21048else
     21049  echo "$as_me:$LINENO: result: skipping" >&5
     21050echo "${ECHO_T}skipping" >&6
    2100021051fi
    2100121052
    2100221053#if user did not disable setting of makefile conditional, do it
    2100321054
    21004 
    21005 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    21006 echo "${ECHO_T}$coin_has_coinutils" >&6
    2100721055fi
    2100821056
    2100921057
    2101021058if test x$coin_has_osi != "xyes" ; then
     21059
    2101121060echo "$as_me:$LINENO: checking for COIN-OR module Osi (fallback)" >&5
    2101221061echo $ECHO_N "checking for COIN-OR module Osi (fallback)... $ECHO_C" >&6
     
    2105521104
    2105621105    coin_has_osi=yes
    21057   fi
     21106    echo "$as_me:$LINENO: result: ../Osi" >&5
     21107echo "${ECHO_T}../Osi" >&6
     21108  else
     21109    echo "$as_me:$LINENO: result: $coin_has_osi" >&5
     21110echo "${ECHO_T}$coin_has_osi" >&6
     21111  fi
     21112else
     21113  echo "$as_me:$LINENO: result: skipping" >&5
     21114echo "${ECHO_T}skipping" >&6
    2105821115fi
    2105921116
    2106021117#if user did not disable setting of makefile conditional, do it
    2106121118
    21062 
    21063 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    21064 echo "${ECHO_T}$coin_has_osi" >&6
    2106521119fi
    2106621120
    2106721121
    2106821122if test x$coin_has_cgl != "xyes" ; then
     21123
    2106921124echo "$as_me:$LINENO: checking for COIN-OR module Cgl (fallback)" >&5
    2107021125echo $ECHO_N "checking for COIN-OR module Cgl (fallback)... $ECHO_C" >&6
     
    2111321168
    2111421169    coin_has_cgl=yes
    21115   fi
     21170    echo "$as_me:$LINENO: result: ../Cgl" >&5
     21171echo "${ECHO_T}../Cgl" >&6
     21172  else
     21173    echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
     21174echo "${ECHO_T}$coin_has_cgl" >&6
     21175  fi
     21176else
     21177  echo "$as_me:$LINENO: result: skipping" >&5
     21178echo "${ECHO_T}skipping" >&6
    2111621179fi
    2111721180
    2111821181#if user did not disable setting of makefile conditional, do it
    2111921182
    21120 
    21121 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
    21122 echo "${ECHO_T}$coin_has_cgl" >&6
    2112321183fi
    2112421184
     
    2120521265if test $coin_has_clp = notGiven; then
    2120621266  if test -n "$PKG_CONFIG" ; then
    21207     # assemble search path for pkg-config
     21267    # set search path for pkg-config
     21268    # need to export variable to be sure that the following pkg-config gets these values
    2120821269    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21209 
    21210     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    21211     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21212     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21213     if test -d "${prefix}"; then
    21214       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21215     fi
    21216 
    21217 
    21218 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21219 if test "${with_coin_instdir+set}" = set; then
    21220   withval="$with_coin_instdir"
    21221   if test -d "$withval"; then : ; else
    21222          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21223 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21224    { (exit 1); exit 1; }; }
    21225        fi
    21226        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21227 
    21228 fi;
    21229 
    21230     # in a classic setup, we want to find uninstalled projects
    21231     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21232     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21233     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    21234     if test -e ../coin_subdirs.txt ; then
    21235       for i in `cat ../coin_subdirs.txt` ; do
    21236         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21237       done
    21238     fi
    21239 
    21240     if test -e ../../coin_subdirs.txt ; then
    21241       for i in `cat ../../coin_subdirs.txt` ; do
    21242         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21243       done
    21244     fi
     21270    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21271    export PKG_CONFIG_PATH
    2124521272
    2124621273    # let pkg-config do it's magic
    21247     # need to export variable to be sure that the following pkg-config gets these values
    21248     export PKG_CONFIG_PATH
    2124921274
    2125021275
     
    2128621311
    2128721312
     21313    # reset PKG_CONFIG_PATH variable
    2128821314    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2128921315  else
     21316    #if 4th argument is given, try fallback - whereby we take the first word from osi-clp as basename for the .pc file
    2129021317    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2129121318echo "${ECHO_T}skipped check via pkg-config" >&6
     21319
    2129221320  fi
    2129321321
     
    2133421362
    2133521363
    21336 # OsiClp depends on Clp, which the fallback for OsiClp
    21337 # so if Clp is there, then we assume that also OsiClp will be there and add the corresponding flags to the Clp flags
     21364if test $coin_has_clp != yes ; then
     21365  # OsiClp depends on Clp
     21366  # so if Clp is there, then we assume that also OsiClp will be there and add the corresponding flags to the Clp flags
    2133821367
    2133921368if test x$coin_has_clp != "xyes" ; then
     21369
    2134021370echo "$as_me:$LINENO: checking for COIN-OR module Clp (fallback)" >&5
    2134121371echo $ECHO_N "checking for COIN-OR module Clp (fallback)... $ECHO_C" >&6
     
    2138921419
    2139021420    coin_has_clp=yes
    21391   fi
     21421    echo "$as_me:$LINENO: result: ../Clp" >&5
     21422echo "${ECHO_T}../Clp" >&6
     21423  else
     21424    echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     21425echo "${ECHO_T}$coin_has_clp" >&6
     21426  fi
     21427else
     21428  echo "$as_me:$LINENO: result: skipping" >&5
     21429echo "${ECHO_T}skipping" >&6
    2139221430fi
    2139321431
     
    2140521443
    2140621444
    21407 
    21408 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    21409 echo "${ECHO_T}$coin_has_clp" >&6
    21410 fi
    21411 
    21412 if test $coin_has_clp = yes ; then
     21445fi
     21446
     21447  if test $coin_has_clp = yes ; then
    2141321448
    2141421449if test x$coin_has_osiclp != "xyes" ; then
     21450
    2141521451echo "$as_me:$LINENO: checking for COIN-OR module OsiClp (fallback)" >&5
    2141621452echo $ECHO_N "checking for COIN-OR module OsiClp (fallback)... $ECHO_C" >&6
     
    2145921495
    2146021496    coin_has_osiclp=yes
    21461   fi
     21497    echo "$as_me:$LINENO: result: ../Clp" >&5
     21498echo "${ECHO_T}../Clp" >&6
     21499  else
     21500    echo "$as_me:$LINENO: result: $coin_has_osiclp" >&5
     21501echo "${ECHO_T}$coin_has_osiclp" >&6
     21502  fi
     21503else
     21504  echo "$as_me:$LINENO: result: skipping" >&5
     21505echo "${ECHO_T}skipping" >&6
    2146221506fi
    2146321507
    2146421508#if user did not disable setting of makefile conditional, do it
    2146521509
    21466 
    21467 echo "$as_me:$LINENO: result: $coin_has_osiclp" >&5
    21468 echo "${ECHO_T}$coin_has_osiclp" >&6
    21469 fi
    21470 
    21471   CLP_CFLAGS="$CLP_CFLAGS $OSICLP_CFLAGS"
    21472   CLP_LIBS="$CLP_LIBS $OSICLP_LIBS"
    21473 else
     21510fi
     21511
     21512    CLP_CFLAGS="$CLP_CFLAGS $OSICLP_CFLAGS"
     21513    CLP_LIBS="$CLP_LIBS $OSICLP_LIBS"
     21514  fi
     21515fi
     21516if test $coin_has_clp != yes ; then
    2147421517  { { echo "$as_me:$LINENO: error: \"Required package Clp unavailable.\"" >&5
    2147521518echo "$as_me: error: \"Required package Clp unavailable.\"" >&2;}
     
    2147721520fi
    2147821521
    21479 # we skip fallbacks for the following three
     21522# we skip fallbacks for the following two
    2148021523
    2148121524echo "$as_me:$LINENO: checking for COIN-OR module DyLP" >&5
     
    2153321576if test $coin_has_dylp = notGiven; then
    2153421577  if test -n "$PKG_CONFIG" ; then
    21535     # assemble search path for pkg-config
     21578    # set search path for pkg-config
     21579    # need to export variable to be sure that the following pkg-config gets these values
    2153621580    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21537 
    21538     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    21539     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21540     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21541     if test -d "${prefix}"; then
    21542       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21543     fi
    21544 
    21545 
    21546 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21547 if test "${with_coin_instdir+set}" = set; then
    21548   withval="$with_coin_instdir"
    21549   if test -d "$withval"; then : ; else
    21550          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21551 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21552    { (exit 1); exit 1; }; }
    21553        fi
    21554        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21555 
    21556 fi;
    21557 
    21558     # in a classic setup, we want to find uninstalled projects
    21559     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21560     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21561     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    21562     if test -e ../coin_subdirs.txt ; then
    21563       for i in `cat ../coin_subdirs.txt` ; do
    21564         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21565       done
    21566     fi
    21567 
    21568     if test -e ../../coin_subdirs.txt ; then
    21569       for i in `cat ../../coin_subdirs.txt` ; do
    21570         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21571       done
    21572     fi
     21581    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21582    export PKG_CONFIG_PATH
    2157321583
    2157421584    # let pkg-config do it's magic
    21575     # need to export variable to be sure that the following pkg-config gets these values
    21576     export PKG_CONFIG_PATH
    2157721585
    2157821586
     
    2161421622
    2161521623
     21624    # reset PKG_CONFIG_PATH variable
    2161621625    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2161721626  else
     21627    #if 4th argument is given, try fallback - whereby we take the first word from osi-dylp as basename for the .pc file
    2161821628    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2161921629echo "${ECHO_T}skipped check via pkg-config" >&6
     21630
    2162021631  fi
    2162121632
     
    2171721728if test $coin_has_vol = notGiven; then
    2171821729  if test -n "$PKG_CONFIG" ; then
    21719     # assemble search path for pkg-config
     21730    # set search path for pkg-config
     21731    # need to export variable to be sure that the following pkg-config gets these values
    2172021732    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21721 
    21722     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    21723     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21724     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21725     if test -d "${prefix}"; then
    21726       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21727     fi
    21728 
    21729 
    21730 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21731 if test "${with_coin_instdir+set}" = set; then
    21732   withval="$with_coin_instdir"
    21733   if test -d "$withval"; then : ; else
    21734          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21735 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21736    { (exit 1); exit 1; }; }
    21737        fi
    21738        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21739 
    21740 fi;
    21741 
    21742     # in a classic setup, we want to find uninstalled projects
    21743     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21744     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21745     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    21746     if test -e ../coin_subdirs.txt ; then
    21747       for i in `cat ../coin_subdirs.txt` ; do
    21748         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21749       done
    21750     fi
    21751 
    21752     if test -e ../../coin_subdirs.txt ; then
    21753       for i in `cat ../../coin_subdirs.txt` ; do
    21754         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21755       done
    21756     fi
     21733    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21734    export PKG_CONFIG_PATH
    2175721735
    2175821736    # let pkg-config do it's magic
    21759     # need to export variable to be sure that the following pkg-config gets these values
    21760     export PKG_CONFIG_PATH
    2176121737
    2176221738
     
    2179821774
    2179921775
     21776    # reset PKG_CONFIG_PATH variable
    2180021777    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2180121778  else
     21779    #if 4th argument is given, try fallback - whereby we take the first word from osi-vol as basename for the .pc file
    2180221780    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2180321781echo "${ECHO_T}skipped check via pkg-config" >&6
     21782
    2180421783  fi
    2180521784
     
    2190121880if test $coin_has_ositests = notGiven; then
    2190221881  if test -n "$PKG_CONFIG" ; then
    21903     # assemble search path for pkg-config
     21882    # set search path for pkg-config
     21883    # need to export variable to be sure that the following pkg-config gets these values
    2190421884    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21905 
    21906     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    21907     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21908     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21909     if test -d "${prefix}"; then
    21910       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21911     fi
    21912 
    21913 
    21914 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21915 if test "${with_coin_instdir+set}" = set; then
    21916   withval="$with_coin_instdir"
    21917   if test -d "$withval"; then : ; else
    21918          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21919 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21920    { (exit 1); exit 1; }; }
    21921        fi
    21922        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21923 
    21924 fi;
    21925 
    21926     # in a classic setup, we want to find uninstalled projects
    21927     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21928     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21929     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    21930     if test -e ../coin_subdirs.txt ; then
    21931       for i in `cat ../coin_subdirs.txt` ; do
    21932         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21933       done
    21934     fi
    21935 
    21936     if test -e ../../coin_subdirs.txt ; then
    21937       for i in `cat ../../coin_subdirs.txt` ; do
    21938         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21939       done
    21940     fi
     21885    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21886    export PKG_CONFIG_PATH
    2194121887
    2194221888    # let pkg-config do it's magic
    21943     # need to export variable to be sure that the following pkg-config gets these values
    21944     export PKG_CONFIG_PATH
    2194521889
    2194621890
     
    2198221926
    2198321927
     21928    # reset PKG_CONFIG_PATH variable
    2198421929    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2198521930  else
    21986     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    21987 echo "${ECHO_T}skipped check via pkg-config" >&6
     21931    #if 4th argument is given, try fallback - whereby we take the first word from osi-unittests as basename for the .pc file
     21932
     21933if test x$coin_has_ositests != "xyes" ; then
     21934
     21935
     21936
     21937coin_has_ositests=notGiven
     21938
     21939# check if user wants to skip module in any case
     21940if test x"$COIN_SKIP_PROJECTS" != x; then
     21941  for dir in $COIN_SKIP_PROJECTS; do
     21942    if test $dir = "OsiTests"; then
     21943      coin_has_ositests=skipping
     21944    fi
     21945  done
     21946fi
     21947
     21948OSITESTS_LIBS=
     21949OSITESTS_CFLAGS=
     21950OSITESTS_DATA=
     21951
     21952
     21953if test $coin_has_ositests != "skipping" ; then
     21954  # if the project is available and configured, then a project-uninstalled.pc file should have been created
     21955  if test -r ../Osi/osi-unittests-uninstalled.pc ; then
     21956    # read CFLAGS and LIBS from m4_bpatsubst(osi-unittests, [ .*], [])-uninstalled.pc file
     21957    # add CYGPATH_W cludge into include flags
     21958    # replace -L${libdir} by absolute path to build directory in linker flags
     21959    # we assume that the build directory is ../Osi/src if this directory exists, otherwise we assume that it is ../Osi
     21960    OSITESTS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Osi/osi-unittests-uninstalled.pc`
     21961    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Osi/osi-unittests-uninstalled.pc`
     21962    if test "x$projectlibs" != x ; then
     21963      if test -d ../Osi/src ; then
     21964        OSITESTS_LIBS="-L`cd ../Osi/src; pwd` $projectlibs"
     21965      else
     21966        OSITESTS_LIBS="-L`cd ../Osi; pwd` $projectlibs"
     21967      fi
     21968    else
     21969      OSITESTS_LIBS=`sed -n -e 's/Libs://p' ../Osi/osi-unittests-uninstalled.pc`
     21970    fi
     21971    OSITESTS_DATA=`sed -n -e 's/datadir=//gp' ../Osi/osi-unittests-uninstalled.pc`
     21972
     21973
     21974
     21975
     21976cat >>confdefs.h <<\_ACEOF
     21977#define COIN_HAS_OSITESTS 1
     21978_ACEOF
     21979
     21980
     21981
     21982    coin_has_ositests=yes
     21983    echo "$as_me:$LINENO: result: ../Osi" >&5
     21984echo "${ECHO_T}../Osi" >&6
     21985  else
     21986    echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
     21987echo "${ECHO_T}$coin_has_ositests" >&6
     21988  fi
     21989else
     21990  echo "$as_me:$LINENO: result: skipping" >&5
     21991echo "${ECHO_T}skipping" >&6
     21992fi
     21993
     21994#if user did not disable setting of makefile conditional, do it
     21995
     21996
     21997if test $coin_has_ositests != notGiven &&
     21998                test $coin_has_ositests != skipping; then
     21999  COIN_HAS_OSITESTS_TRUE=
     22000  COIN_HAS_OSITESTS_FALSE='#'
     22001else
     22002  COIN_HAS_OSITESTS_TRUE='#'
     22003  COIN_HAS_OSITESTS_FALSE=
     22004fi
     22005
     22006
     22007fi
     22008
     22009
    2198822010  fi
    2198922011
     
    2208622108if test $coin_has_sample = notGiven; then
    2208722109  if test -n "$PKG_CONFIG" ; then
    22088     # assemble search path for pkg-config
     22110    # set search path for pkg-config
     22111    # need to export variable to be sure that the following pkg-config gets these values
    2208922112    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22090 
    22091     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    22092     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    22093     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    22094     if test -d "${prefix}"; then
    22095       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    22096     fi
    22097 
    22098 
    22099 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    22100 if test "${with_coin_instdir+set}" = set; then
    22101   withval="$with_coin_instdir"
    22102   if test -d "$withval"; then : ; else
    22103          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    22104 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    22105    { (exit 1); exit 1; }; }
    22106        fi
    22107        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    22108 
    22109 fi;
    22110 
    22111     # in a classic setup, we want to find uninstalled projects
    22112     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    22113     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    22114     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    22115     if test -e ../coin_subdirs.txt ; then
    22116       for i in `cat ../coin_subdirs.txt` ; do
    22117         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    22118       done
    22119     fi
    22120 
    22121     if test -e ../../coin_subdirs.txt ; then
    22122       for i in `cat ../../coin_subdirs.txt` ; do
    22123         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    22124       done
    22125     fi
     22113    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     22114    export PKG_CONFIG_PATH
    2212622115
    2212722116    # let pkg-config do it's magic
    22128     # need to export variable to be sure that the following pkg-config gets these values
    22129     export PKG_CONFIG_PATH
    2213022117
    2213122118
     
    2216722154
    2216822155
     22156    # reset PKG_CONFIG_PATH variable
    2216922157    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2217022158  else
    22171     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    22172 echo "${ECHO_T}skipped check via pkg-config" >&6
    22173   fi
    22174 
    22175 else
    22176   echo "$as_me:$LINENO: result: $coin_has_sample" >&5
    22177 echo "${ECHO_T}$coin_has_sample" >&6
    22178 fi
    22179 
    22180 if test $coin_has_sample != skipping &&
    22181    test $coin_has_sample != notGiven ; then
    22182   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22183   if test -n "$SAMPLE_CFLAGS" ; then
    22184     { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
    22185 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
    22186   fi
    22187   if test -n "$SAMPLE_LIBS" ; then
    22188     { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
    22189 echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
    22190   fi
    22191   if test -n "$SAMPLE_DATA" ; then
    22192     { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
    22193 echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
    22194   fi
    22195   fi
    22196 
    22197 cat >>confdefs.h <<\_ACEOF
    22198 #define COIN_HAS_SAMPLE 1
    22199 _ACEOF
    22200 
    22201 fi
    22202 
    22203 # Define the Makefile conditional
    22204 
    22205 
    22206 if test $coin_has_sample != notGiven &&
    22207                 test $coin_has_sample != skipping; then
    22208   COIN_HAS_SAMPLE_TRUE=
    22209   COIN_HAS_SAMPLE_FALSE='#'
    22210 else
    22211   COIN_HAS_SAMPLE_TRUE='#'
    22212   COIN_HAS_SAMPLE_FALSE=
    22213 fi
    22214 
    22215 
    22216 
     22159    #if 4th argument is given, try fallback - whereby we take the first word from coindatasample as basename for the .pc file
    2221722160
    2221822161if test x$coin_has_sample != "xyes" ; then
    22219 echo "$as_me:$LINENO: checking for COIN-OR module Sample (fallback)" >&5
    22220 echo $ECHO_N "checking for COIN-OR module Sample (fallback)... $ECHO_C" >&6
     22162
     22163
    2222122164
    2222222165coin_has_sample=notGiven
     
    2223922182  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2224022183  if test -r ../Data/Sample/coindatasample-uninstalled.pc ; then
    22241     # read CFLAGS and LIBS from coindatasample-uninstalled.pc file
     22184    # read CFLAGS and LIBS from m4_bpatsubst(coindatasample, [ .*], [])-uninstalled.pc file
    2224222185    # add CYGPATH_W cludge into include flags
    2224322186    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2226622209
    2226722210    coin_has_sample=yes
    22268   fi
     22211    echo "$as_me:$LINENO: result: ../Data/Sample" >&5
     22212echo "${ECHO_T}../Data/Sample" >&6
     22213  else
     22214    echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     22215echo "${ECHO_T}$coin_has_sample" >&6
     22216  fi
     22217else
     22218  echo "$as_me:$LINENO: result: skipping" >&5
     22219echo "${ECHO_T}skipping" >&6
    2226922220fi
    2227022221
     
    2228222233
    2228322234
    22284 
    22285 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     22235fi
     22236
     22237
     22238  fi
     22239
     22240else
     22241  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
    2228622242echo "${ECHO_T}$coin_has_sample" >&6
    2228722243fi
     22244
     22245if test $coin_has_sample != skipping &&
     22246   test $coin_has_sample != notGiven ; then
     22247  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     22248  if test -n "$SAMPLE_CFLAGS" ; then
     22249    { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     22250echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     22251  fi
     22252  if test -n "$SAMPLE_LIBS" ; then
     22253    { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     22254echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     22255  fi
     22256  if test -n "$SAMPLE_DATA" ; then
     22257    { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     22258echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
     22259  fi
     22260  fi
     22261
     22262cat >>confdefs.h <<\_ACEOF
     22263#define COIN_HAS_SAMPLE 1
     22264_ACEOF
     22265
     22266fi
     22267
     22268# Define the Makefile conditional
     22269
     22270
     22271if test $coin_has_sample != notGiven &&
     22272                test $coin_has_sample != skipping; then
     22273  COIN_HAS_SAMPLE_TRUE=
     22274  COIN_HAS_SAMPLE_FALSE='#'
     22275else
     22276  COIN_HAS_SAMPLE_TRUE='#'
     22277  COIN_HAS_SAMPLE_FALSE=
     22278fi
     22279
    2228822280
    2228922281
     
    2234322335if test $coin_has_netlib = notGiven; then
    2234422336  if test -n "$PKG_CONFIG" ; then
    22345     # assemble search path for pkg-config
     22337    # set search path for pkg-config
     22338    # need to export variable to be sure that the following pkg-config gets these values
    2234622339    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22347 
    22348     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    22349     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    22350     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    22351     if test -d "${prefix}"; then
    22352       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    22353     fi
    22354 
    22355 
    22356 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    22357 if test "${with_coin_instdir+set}" = set; then
    22358   withval="$with_coin_instdir"
    22359   if test -d "$withval"; then : ; else
    22360          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    22361 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    22362    { (exit 1); exit 1; }; }
    22363        fi
    22364        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    22365 
    22366 fi;
    22367 
    22368     # in a classic setup, we want to find uninstalled projects
    22369     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    22370     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    22371     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    22372     if test -e ../coin_subdirs.txt ; then
    22373       for i in `cat ../coin_subdirs.txt` ; do
    22374         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    22375       done
    22376     fi
    22377 
    22378     if test -e ../../coin_subdirs.txt ; then
    22379       for i in `cat ../../coin_subdirs.txt` ; do
    22380         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    22381       done
    22382     fi
     22340    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     22341    export PKG_CONFIG_PATH
    2238322342
    2238422343    # let pkg-config do it's magic
    22385     # need to export variable to be sure that the following pkg-config gets these values
    22386     export PKG_CONFIG_PATH
    2238722344
    2238822345
     
    2242422381
    2242522382
     22383    # reset PKG_CONFIG_PATH variable
    2242622384    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2242722385  else
    22428     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    22429 echo "${ECHO_T}skipped check via pkg-config" >&6
    22430   fi
    22431 
    22432 else
    22433   echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
    22434 echo "${ECHO_T}$coin_has_netlib" >&6
    22435 fi
    22436 
    22437 if test $coin_has_netlib != skipping &&
    22438    test $coin_has_netlib != notGiven ; then
    22439   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22440   if test -n "$NETLIB_CFLAGS" ; then
    22441     { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
    22442 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
    22443   fi
    22444   if test -n "$NETLIB_LIBS" ; then
    22445     { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
    22446 echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
    22447   fi
    22448   if test -n "$NETLIB_DATA" ; then
    22449     { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
    22450 echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
    22451   fi
    22452   fi
    22453 
    22454 cat >>confdefs.h <<\_ACEOF
    22455 #define COIN_HAS_NETLIB 1
    22456 _ACEOF
    22457 
    22458 fi
    22459 
    22460 # Define the Makefile conditional
    22461 
    22462 
    22463 if test $coin_has_netlib != notGiven &&
    22464                 test $coin_has_netlib != skipping; then
    22465   COIN_HAS_NETLIB_TRUE=
    22466   COIN_HAS_NETLIB_FALSE='#'
    22467 else
    22468   COIN_HAS_NETLIB_TRUE='#'
    22469   COIN_HAS_NETLIB_FALSE=
    22470 fi
    22471 
    22472 
    22473 
     22386    #if 4th argument is given, try fallback - whereby we take the first word from coindatanetlib as basename for the .pc file
    2247422387
    2247522388if test x$coin_has_netlib != "xyes" ; then
    22476 echo "$as_me:$LINENO: checking for COIN-OR module Netlib (fallback)" >&5
    22477 echo $ECHO_N "checking for COIN-OR module Netlib (fallback)... $ECHO_C" >&6
     22389
     22390
    2247822391
    2247922392coin_has_netlib=notGiven
     
    2249622409  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2249722410  if test -r ../Data/Netlib/coindatanetlib-uninstalled.pc ; then
    22498     # read CFLAGS and LIBS from coindatanetlib-uninstalled.pc file
     22411    # read CFLAGS and LIBS from m4_bpatsubst(coindatanetlib, [ .*], [])-uninstalled.pc file
    2249922412    # add CYGPATH_W cludge into include flags
    2250022413    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2252322436
    2252422437    coin_has_netlib=yes
    22525   fi
     22438    echo "$as_me:$LINENO: result: ../Data/Netlib" >&5
     22439echo "${ECHO_T}../Data/Netlib" >&6
     22440  else
     22441    echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     22442echo "${ECHO_T}$coin_has_netlib" >&6
     22443  fi
     22444else
     22445  echo "$as_me:$LINENO: result: skipping" >&5
     22446echo "${ECHO_T}skipping" >&6
    2252622447fi
    2252722448
     
    2253922460
    2254022461
    22541 
    22542 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     22462fi
     22463
     22464
     22465  fi
     22466
     22467else
     22468  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
    2254322469echo "${ECHO_T}$coin_has_netlib" >&6
    2254422470fi
     22471
     22472if test $coin_has_netlib != skipping &&
     22473   test $coin_has_netlib != notGiven ; then
     22474  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     22475  if test -n "$NETLIB_CFLAGS" ; then
     22476    { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     22477echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     22478  fi
     22479  if test -n "$NETLIB_LIBS" ; then
     22480    { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     22481echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     22482  fi
     22483  if test -n "$NETLIB_DATA" ; then
     22484    { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     22485echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
     22486  fi
     22487  fi
     22488
     22489cat >>confdefs.h <<\_ACEOF
     22490#define COIN_HAS_NETLIB 1
     22491_ACEOF
     22492
     22493fi
     22494
     22495# Define the Makefile conditional
     22496
     22497
     22498if test $coin_has_netlib != notGiven &&
     22499                test $coin_has_netlib != skipping; then
     22500  COIN_HAS_NETLIB_TRUE=
     22501  COIN_HAS_NETLIB_FALSE='#'
     22502else
     22503  COIN_HAS_NETLIB_TRUE='#'
     22504  COIN_HAS_NETLIB_FALSE=
     22505fi
     22506
    2254522507
    2254622508
     
    2260022562if test $coin_has_miplib3 = notGiven; then
    2260122563  if test -n "$PKG_CONFIG" ; then
    22602     # assemble search path for pkg-config
     22564    # set search path for pkg-config
     22565    # need to export variable to be sure that the following pkg-config gets these values
    2260322566    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22604 
    22605     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    22606     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    22607     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    22608     if test -d "${prefix}"; then
    22609       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    22610     fi
    22611 
    22612 
    22613 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    22614 if test "${with_coin_instdir+set}" = set; then
    22615   withval="$with_coin_instdir"
    22616   if test -d "$withval"; then : ; else
    22617          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    22618 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    22619    { (exit 1); exit 1; }; }
    22620        fi
    22621        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    22622 
    22623 fi;
    22624 
    22625     # in a classic setup, we want to find uninstalled projects
    22626     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    22627     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    22628     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    22629     if test -e ../coin_subdirs.txt ; then
    22630       for i in `cat ../coin_subdirs.txt` ; do
    22631         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    22632       done
    22633     fi
    22634 
    22635     if test -e ../../coin_subdirs.txt ; then
    22636       for i in `cat ../../coin_subdirs.txt` ; do
    22637         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    22638       done
    22639     fi
     22567    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     22568    export PKG_CONFIG_PATH
    2264022569
    2264122570    # let pkg-config do it's magic
    22642     # need to export variable to be sure that the following pkg-config gets these values
    22643     export PKG_CONFIG_PATH
    2264422571
    2264522572
     
    2268122608
    2268222609
     22610    # reset PKG_CONFIG_PATH variable
    2268322611    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2268422612  else
    22685     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    22686 echo "${ECHO_T}skipped check via pkg-config" >&6
    22687   fi
    22688 
    22689 else
    22690   echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
    22691 echo "${ECHO_T}$coin_has_miplib3" >&6
    22692 fi
    22693 
    22694 if test $coin_has_miplib3 != skipping &&
    22695    test $coin_has_miplib3 != notGiven ; then
    22696   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    22697   if test -n "$MIPLIB3_CFLAGS" ; then
    22698     { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
    22699 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
    22700   fi
    22701   if test -n "$MIPLIB3_LIBS" ; then
    22702     { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
    22703 echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
    22704   fi
    22705   if test -n "$MIPLIB3_DATA" ; then
    22706     { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
    22707 echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
    22708   fi
    22709   fi
    22710 
    22711 cat >>confdefs.h <<\_ACEOF
    22712 #define COIN_HAS_MIPLIB3 1
    22713 _ACEOF
    22714 
    22715 fi
    22716 
    22717 # Define the Makefile conditional
    22718 
    22719 
    22720 if test $coin_has_miplib3 != notGiven &&
    22721                 test $coin_has_miplib3 != skipping; then
    22722   COIN_HAS_MIPLIB3_TRUE=
    22723   COIN_HAS_MIPLIB3_FALSE='#'
    22724 else
    22725   COIN_HAS_MIPLIB3_TRUE='#'
    22726   COIN_HAS_MIPLIB3_FALSE=
    22727 fi
    22728 
    22729 
    22730 
     22613    #if 4th argument is given, try fallback - whereby we take the first word from coindatamiplib3 as basename for the .pc file
    2273122614
    2273222615if test x$coin_has_miplib3 != "xyes" ; then
    22733 echo "$as_me:$LINENO: checking for COIN-OR module Miplib3 (fallback)" >&5
    22734 echo $ECHO_N "checking for COIN-OR module Miplib3 (fallback)... $ECHO_C" >&6
     22616
     22617
    2273522618
    2273622619coin_has_miplib3=notGiven
     
    2275322636  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2275422637  if test -r ../Data/Miplib3/coindatamiplib3-uninstalled.pc ; then
    22755     # read CFLAGS and LIBS from coindatamiplib3-uninstalled.pc file
     22638    # read CFLAGS and LIBS from m4_bpatsubst(coindatamiplib3, [ .*], [])-uninstalled.pc file
    2275622639    # add CYGPATH_W cludge into include flags
    2275722640    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2278022663
    2278122664    coin_has_miplib3=yes
    22782   fi
     22665    echo "$as_me:$LINENO: result: ../Data/Miplib3" >&5
     22666echo "${ECHO_T}../Data/Miplib3" >&6
     22667  else
     22668    echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
     22669echo "${ECHO_T}$coin_has_miplib3" >&6
     22670  fi
     22671else
     22672  echo "$as_me:$LINENO: result: skipping" >&5
     22673echo "${ECHO_T}skipping" >&6
    2278322674fi
    2278422675
     
    2279622687
    2279722688
    22798 
    22799 echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
     22689fi
     22690
     22691
     22692  fi
     22693
     22694else
     22695  echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
    2280022696echo "${ECHO_T}$coin_has_miplib3" >&6
    2280122697fi
     22698
     22699if test $coin_has_miplib3 != skipping &&
     22700   test $coin_has_miplib3 != notGiven ; then
     22701  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     22702  if test -n "$MIPLIB3_CFLAGS" ; then
     22703    { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
     22704echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
     22705  fi
     22706  if test -n "$MIPLIB3_LIBS" ; then
     22707    { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
     22708echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
     22709  fi
     22710  if test -n "$MIPLIB3_DATA" ; then
     22711    { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
     22712echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
     22713  fi
     22714  fi
     22715
     22716cat >>confdefs.h <<\_ACEOF
     22717#define COIN_HAS_MIPLIB3 1
     22718_ACEOF
     22719
     22720fi
     22721
     22722# Define the Makefile conditional
     22723
     22724
     22725if test $coin_has_miplib3 != notGiven &&
     22726                test $coin_has_miplib3 != skipping; then
     22727  COIN_HAS_MIPLIB3_TRUE=
     22728  COIN_HAS_MIPLIB3_FALSE='#'
     22729else
     22730  COIN_HAS_MIPLIB3_TRUE='#'
     22731  COIN_HAS_MIPLIB3_FALSE=
     22732fi
     22733
     22734
    2280222735
    2280322736
     
    2286222795if test $coin_has_cpx = notGiven; then
    2286322796  if test -n "$PKG_CONFIG" ; then
    22864     # assemble search path for pkg-config
     22797    # set search path for pkg-config
     22798    # need to export variable to be sure that the following pkg-config gets these values
    2286522799    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22866 
    22867     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    22868     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    22869     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    22870     if test -d "${prefix}"; then
    22871       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    22872     fi
    22873 
    22874 
    22875 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    22876 if test "${with_coin_instdir+set}" = set; then
    22877   withval="$with_coin_instdir"
    22878   if test -d "$withval"; then : ; else
    22879          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    22880 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    22881    { (exit 1); exit 1; }; }
    22882        fi
    22883        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    22884 
    22885 fi;
    22886 
    22887     # in a classic setup, we want to find uninstalled projects
    22888     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    22889     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    22890     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    22891     if test -e ../coin_subdirs.txt ; then
    22892       for i in `cat ../coin_subdirs.txt` ; do
    22893         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    22894       done
    22895     fi
    22896 
    22897     if test -e ../../coin_subdirs.txt ; then
    22898       for i in `cat ../../coin_subdirs.txt` ; do
    22899         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    22900       done
    22901     fi
     22800    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     22801    export PKG_CONFIG_PATH
    2290222802
    2290322803    # let pkg-config do it's magic
    22904     # need to export variable to be sure that the following pkg-config gets these values
    22905     export PKG_CONFIG_PATH
    2290622804
    2290722805
     
    2294322841
    2294422842
     22843    # reset PKG_CONFIG_PATH variable
    2294522844    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2294622845  else
     22846    #if 4th argument is given, try fallback - whereby we take the first word from osi-cplex as basename for the .pc file
    2294722847    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2294822848echo "${ECHO_T}skipped check via pkg-config" >&6
     22849
    2294922850  fi
    2295022851
     
    2304622947if test $coin_has_glpk = notGiven; then
    2304722948  if test -n "$PKG_CONFIG" ; then
    23048     # assemble search path for pkg-config
     22949    # set search path for pkg-config
     22950    # need to export variable to be sure that the following pkg-config gets these values
    2304922951    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23050 
    23051     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    23052     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    23053     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    23054     if test -d "${prefix}"; then
    23055       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    23056     fi
    23057 
    23058 
    23059 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    23060 if test "${with_coin_instdir+set}" = set; then
    23061   withval="$with_coin_instdir"
    23062   if test -d "$withval"; then : ; else
    23063          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    23064 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    23065    { (exit 1); exit 1; }; }
    23066        fi
    23067        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    23068 
    23069 fi;
    23070 
    23071     # in a classic setup, we want to find uninstalled projects
    23072     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    23073     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    23074     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    23075     if test -e ../coin_subdirs.txt ; then
    23076       for i in `cat ../coin_subdirs.txt` ; do
    23077         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    23078       done
    23079     fi
    23080 
    23081     if test -e ../../coin_subdirs.txt ; then
    23082       for i in `cat ../../coin_subdirs.txt` ; do
    23083         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    23084       done
    23085     fi
     22952    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     22953    export PKG_CONFIG_PATH
    2308622954
    2308722955    # let pkg-config do it's magic
    23088     # need to export variable to be sure that the following pkg-config gets these values
    23089     export PKG_CONFIG_PATH
    2309022956
    2309122957
     
    2312722993
    2312822994
     22995    # reset PKG_CONFIG_PATH variable
    2312922996    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2313022997  else
     22998    #if 4th argument is given, try fallback - whereby we take the first word from osi-glpk as basename for the .pc file
    2313122999    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2313223000echo "${ECHO_T}skipped check via pkg-config" >&6
     23001
    2313323002  fi
    2313423003
     
    2323023099if test $coin_has_grb = notGiven; then
    2323123100  if test -n "$PKG_CONFIG" ; then
    23232     # assemble search path for pkg-config
     23101    # set search path for pkg-config
     23102    # need to export variable to be sure that the following pkg-config gets these values
    2323323103    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23234 
    23235     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    23236     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    23237     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    23238     if test -d "${prefix}"; then
    23239       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    23240     fi
    23241 
    23242 
    23243 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    23244 if test "${with_coin_instdir+set}" = set; then
    23245   withval="$with_coin_instdir"
    23246   if test -d "$withval"; then : ; else
    23247          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    23248 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    23249    { (exit 1); exit 1; }; }
    23250        fi
    23251        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    23252 
    23253 fi;
    23254 
    23255     # in a classic setup, we want to find uninstalled projects
    23256     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    23257     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    23258     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    23259     if test -e ../coin_subdirs.txt ; then
    23260       for i in `cat ../coin_subdirs.txt` ; do
    23261         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    23262       done
    23263     fi
    23264 
    23265     if test -e ../../coin_subdirs.txt ; then
    23266       for i in `cat ../../coin_subdirs.txt` ; do
    23267         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    23268       done
    23269     fi
     23104    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     23105    export PKG_CONFIG_PATH
    2327023106
    2327123107    # let pkg-config do it's magic
    23272     # need to export variable to be sure that the following pkg-config gets these values
    23273     export PKG_CONFIG_PATH
    2327423108
    2327523109
     
    2331123145
    2331223146
     23147    # reset PKG_CONFIG_PATH variable
    2331323148    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2331423149  else
     23150    #if 4th argument is given, try fallback - whereby we take the first word from osi-gurobi as basename for the .pc file
    2331523151    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2331623152echo "${ECHO_T}skipped check via pkg-config" >&6
     23153
    2331723154  fi
    2331823155
     
    2341423251if test $coin_has_msk = notGiven; then
    2341523252  if test -n "$PKG_CONFIG" ; then
    23416     # assemble search path for pkg-config
     23253    # set search path for pkg-config
     23254    # need to export variable to be sure that the following pkg-config gets these values
    2341723255    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23418 
    23419     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    23420     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    23421     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    23422     if test -d "${prefix}"; then
    23423       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    23424     fi
    23425 
    23426 
    23427 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    23428 if test "${with_coin_instdir+set}" = set; then
    23429   withval="$with_coin_instdir"
    23430   if test -d "$withval"; then : ; else
    23431          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    23432 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    23433    { (exit 1); exit 1; }; }
    23434        fi
    23435        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    23436 
    23437 fi;
    23438 
    23439     # in a classic setup, we want to find uninstalled projects
    23440     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    23441     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    23442     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    23443     if test -e ../coin_subdirs.txt ; then
    23444       for i in `cat ../coin_subdirs.txt` ; do
    23445         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    23446       done
    23447     fi
    23448 
    23449     if test -e ../../coin_subdirs.txt ; then
    23450       for i in `cat ../../coin_subdirs.txt` ; do
    23451         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    23452       done
    23453     fi
     23256    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     23257    export PKG_CONFIG_PATH
    2345423258
    2345523259    # let pkg-config do it's magic
    23456     # need to export variable to be sure that the following pkg-config gets these values
    23457     export PKG_CONFIG_PATH
    2345823260
    2345923261
     
    2349523297
    2349623298
     23299    # reset PKG_CONFIG_PATH variable
    2349723300    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2349823301  else
     23302    #if 4th argument is given, try fallback - whereby we take the first word from osi-mosek as basename for the .pc file
    2349923303    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2350023304echo "${ECHO_T}skipped check via pkg-config" >&6
     23305
    2350123306  fi
    2350223307
     
    2354323348
    2354423349
    23545 #AC_COIN_HAS_MODULE(Spx,     [osi-soplex])
     23350#AC_COIN_HAS_MODULE(Spx,  [osi-soplex])
    2354623351
    2354723352echo "$as_me:$LINENO: checking for COIN-OR module Xpr" >&5
     
    2359923404if test $coin_has_xpr = notGiven; then
    2360023405  if test -n "$PKG_CONFIG" ; then
    23601     # assemble search path for pkg-config
     23406    # set search path for pkg-config
     23407    # need to export variable to be sure that the following pkg-config gets these values
    2360223408    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23603 
    23604     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    23605     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    23606     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    23607     if test -d "${prefix}"; then
    23608       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    23609     fi
    23610 
    23611 
    23612 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    23613 if test "${with_coin_instdir+set}" = set; then
    23614   withval="$with_coin_instdir"
    23615   if test -d "$withval"; then : ; else
    23616          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    23617 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    23618    { (exit 1); exit 1; }; }
    23619        fi
    23620        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    23621 
    23622 fi;
    23623 
    23624     # in a classic setup, we want to find uninstalled projects
    23625     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    23626     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    23627     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    23628     if test -e ../coin_subdirs.txt ; then
    23629       for i in `cat ../coin_subdirs.txt` ; do
    23630         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    23631       done
    23632     fi
    23633 
    23634     if test -e ../../coin_subdirs.txt ; then
    23635       for i in `cat ../../coin_subdirs.txt` ; do
    23636         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    23637       done
    23638     fi
     23409    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     23410    export PKG_CONFIG_PATH
    2363923411
    2364023412    # let pkg-config do it's magic
    23641     # need to export variable to be sure that the following pkg-config gets these values
    23642     export PKG_CONFIG_PATH
    2364323413
    2364423414
     
    2368023450
    2368123451
     23452    # reset PKG_CONFIG_PATH variable
    2368223453    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2368323454  else
     23455    #if 4th argument is given, try fallback - whereby we take the first word from osi-xpress as basename for the .pc file
    2368423456    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2368523457echo "${ECHO_T}skipped check via pkg-config" >&6
     23458
    2368623459  fi
    2368723460
     
    2378923562if test $coin_has_asl = notGiven; then
    2379023563  if test -n "$PKG_CONFIG" ; then
    23791     # assemble search path for pkg-config
     23564    # set search path for pkg-config
     23565    # need to export variable to be sure that the following pkg-config gets these values
    2379223566    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23793 
    23794     # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
    23795     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    23796     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    23797     if test -d "${prefix}"; then
    23798       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    23799     fi
    23800 
    23801 
    23802 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    23803 if test "${with_coin_instdir+set}" = set; then
    23804   withval="$with_coin_instdir"
    23805   if test -d "$withval"; then : ; else
    23806          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    23807 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    23808    { (exit 1); exit 1; }; }
    23809        fi
    23810        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    23811 
    23812 fi;
    23813 
    23814     # in a classic setup, we want to find uninstalled projects
    23815     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    23816     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    23817     # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    23818     if test -e ../coin_subdirs.txt ; then
    23819       for i in `cat ../coin_subdirs.txt` ; do
    23820         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    23821       done
    23822     fi
    23823 
    23824     if test -e ../../coin_subdirs.txt ; then
    23825       for i in `cat ../../coin_subdirs.txt` ; do
    23826         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    23827       done
    23828     fi
     23567    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     23568    export PKG_CONFIG_PATH
    2382923569
    2383023570    # let pkg-config do it's magic
    23831     # need to export variable to be sure that the following pkg-config gets these values
    23832     export PKG_CONFIG_PATH
    2383323571
    2383423572
     
    2387023608
    2387123609
     23610    # reset PKG_CONFIG_PATH variable
    2387223611    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2387323612  else
    23874     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    23875 echo "${ECHO_T}skipped check via pkg-config" >&6
     23613    #if 4th argument is given, try fallback - whereby we take the first word from coinasl as basename for the .pc file
     23614
     23615if test x$coin_has_asl != "xyes" ; then
     23616
     23617
     23618
     23619coin_has_asl=notGiven
     23620
     23621# check if user wants to skip module in any case
     23622if test x"$COIN_SKIP_PROJECTS" != x; then
     23623  for dir in $COIN_SKIP_PROJECTS; do
     23624    if test $dir = "ASL"; then
     23625      coin_has_asl=skipping
     23626    fi
     23627  done
     23628fi
     23629
     23630ASL_LIBS=
     23631ASL_CFLAGS=
     23632ASL_DATA=
     23633
     23634
     23635if test $coin_has_asl != "skipping" ; then
     23636  # if the project is available and configured, then a project-uninstalled.pc file should have been created
     23637  if test -r ../ThirdParty/ASL/coinasl-uninstalled.pc ; then
     23638    # read CFLAGS and LIBS from m4_bpatsubst(coinasl, [ .*], [])-uninstalled.pc file
     23639    # add CYGPATH_W cludge into include flags
     23640    # replace -L${libdir} by absolute path to build directory in linker flags
     23641    # we assume that the build directory is ../ThirdParty/ASL/src if this directory exists, otherwise we assume that it is ../ThirdParty/ASL
     23642    ASL_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/ASL/coinasl-uninstalled.pc`
     23643    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/ASL/coinasl-uninstalled.pc`
     23644    if test "x$projectlibs" != x ; then
     23645      if test -d ../ThirdParty/ASL/src ; then
     23646        ASL_LIBS="-L`cd ../ThirdParty/ASL/src; pwd` $projectlibs"
     23647      else
     23648        ASL_LIBS="-L`cd ../ThirdParty/ASL; pwd` $projectlibs"
     23649      fi
     23650    else
     23651      ASL_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/ASL/coinasl-uninstalled.pc`
     23652    fi
     23653    ASL_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/ASL/coinasl-uninstalled.pc`
     23654
     23655
     23656
     23657
     23658cat >>confdefs.h <<\_ACEOF
     23659#define COIN_HAS_ASL 1
     23660_ACEOF
     23661
     23662
     23663
     23664    coin_has_asl=yes
     23665    echo "$as_me:$LINENO: result: ../ThirdParty/ASL" >&5
     23666echo "${ECHO_T}../ThirdParty/ASL" >&6
     23667  else
     23668    echo "$as_me:$LINENO: result: $coin_has_asl" >&5
     23669echo "${ECHO_T}$coin_has_asl" >&6
     23670  fi
     23671else
     23672  echo "$as_me:$LINENO: result: skipping" >&5
     23673echo "${ECHO_T}skipping" >&6
     23674fi
     23675
     23676#if user did not disable setting of makefile conditional, do it
     23677
     23678
     23679if test $coin_has_asl != notGiven &&
     23680                test $coin_has_asl != skipping; then
     23681  COIN_HAS_ASL_TRUE=
     23682  COIN_HAS_ASL_FALSE='#'
     23683else
     23684  COIN_HAS_ASL_TRUE='#'
     23685  COIN_HAS_ASL_FALSE=
     23686fi
     23687
     23688
     23689fi
     23690
     23691
    2387623692  fi
    2387723693
     
    2442324239# Here list all the files that configure should create (except for the
    2442424240# configuration header file)
    24425                                                                                                     ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiCbc/Makefile test/Makefile cbc_addlibs.txt cbc.pc cbc-uninstalled.pc osi-cbc.pc osi-cbc-uninstalled.pc"
     24241                                                                                          ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiCbc/Makefile test/Makefile cbc.pc cbc-uninstalled.pc osi-cbc.pc osi-cbc-uninstalled.pc"
    2442624242
    2442724243
     
    2463124447   { (exit 1); exit 1; }; }
    2463224448fi
     24449if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     24450  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     24451Usually this means the macro was only invoked conditionally." >&5
     24452echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     24453Usually this means the macro was only invoked conditionally." >&2;}
     24454   { (exit 1); exit 1; }; }
     24455fi
    2463324456if test -z "${COIN_HAS_COINDEPEND_TRUE}" && test -z "${COIN_HAS_COINDEPEND_FALSE}"; then
    2463424457  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
     
    2468024503   { (exit 1); exit 1; }; }
    2468124504fi
     24505if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
     24506  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
     24507Usually this means the macro was only invoked conditionally." >&5
     24508echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
     24509Usually this means the macro was only invoked conditionally." >&2;}
     24510   { (exit 1); exit 1; }; }
     24511fi
    2468224512if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
    2468324513  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
     
    2475424584Usually this means the macro was only invoked conditionally." >&5
    2475524585echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined.
     24586Usually this means the macro was only invoked conditionally." >&2;}
     24587   { (exit 1); exit 1; }; }
     24588fi
     24589if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
     24590  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
     24591Usually this means the macro was only invoked conditionally." >&5
     24592echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
    2475624593Usually this means the macro was only invoked conditionally." >&2;}
    2475724594   { (exit 1); exit 1; }; }
     
    2528325120  "src/OsiCbc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiCbc/Makefile" ;;
    2528425121  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    25285   "cbc_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES cbc_addlibs.txt" ;;
    2528625122  "cbc.pc" ) CONFIG_FILES="$CONFIG_FILES cbc.pc" ;;
    2528725123  "cbc-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES cbc-uninstalled.pc" ;;
     
    2547625312s,@PKG_CONFIG@,$PKG_CONFIG,;t t
    2547725313s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     25314s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     25315s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     25316s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2547825317s,@COINDEPEND_LIBS@,$COINDEPEND_LIBS,;t t
    2547925318s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t
  • branches/split/Cbc/configure.ac

    r1444 r1445  
    8181
    8282AC_COIN_HAS_MODULE(Clp, [osi-clp])
    83 # OsiClp depends on Clp, which the fallback for OsiClp
    84 # so if Clp is there, then we assume that also OsiClp will be there and add the corresponding flags to the Clp flags
    85 AC_COIN_HAS_MODULE_FALLBACK(Clp, [clp], [../Clp])
    86 if test $coin_has_clp = yes ; then
    87   AC_COIN_HAS_MODULE_FALLBACK(OsiClp, [osi-clp], [../Clp], [dodefine=0 doconditional=0])
    88   CLP_CFLAGS="$CLP_CFLAGS $OSICLP_CFLAGS"
    89   CLP_LIBS="$CLP_LIBS $OSICLP_LIBS"
    90 else
     83if test $coin_has_clp != yes ; then
     84  # OsiClp depends on Clp
     85  # so if Clp is there, then we assume that also OsiClp will be there and add the corresponding flags to the Clp flags
     86  AC_COIN_HAS_MODULE_FALLBACK(Clp, [clp], [../Clp])
     87  if test $coin_has_clp = yes ; then
     88    AC_COIN_HAS_MODULE_FALLBACK(OsiClp, [osi-clp], [../Clp], [dodefine=0 doconditional=0])
     89    CLP_CFLAGS="$CLP_CFLAGS $OSICLP_CFLAGS"
     90    CLP_LIBS="$CLP_LIBS $OSICLP_LIBS"
     91  fi
     92fi
     93if test $coin_has_clp != yes ; then
    9194  AC_MSG_ERROR("Required package Clp unavailable.")
    9295fi
    9396
    94 # we skip fallbacks for the following three
    95 AC_COIN_HAS_MODULE(DyLP,       [osi-dylp])
    96 AC_COIN_HAS_MODULE(Vol,        [osi-vol])
    97 AC_COIN_HAS_MODULE(OsiTests,   [osi-unittests],   [required=0])
    98 
    99 AC_COIN_HAS_MODULE(Sample,          [coindatasample],                   [required=0])
    100 AC_COIN_HAS_MODULE_FALLBACK(Sample, [coindatasample], [../Data/Sample], [required=0])
    101 
    102 AC_COIN_HAS_MODULE(Netlib,          [coindatanetlib],                   [required=0])
    103 AC_COIN_HAS_MODULE_FALLBACK(Netlib, [coindatanetlib], [../Data/Netlib], [required=0])
    104 
    105 AC_COIN_HAS_MODULE(Miplib3,          [coindatamiplib3],                    [required=0])
    106 AC_COIN_HAS_MODULE_FALLBACK(Miplib3, [coindatamiplib3], [../Data/Miplib3], [required=0])
     97# we skip fallbacks for the following two
     98AC_COIN_HAS_MODULE(DyLP,     [osi-dylp])
     99AC_COIN_HAS_MODULE(Vol,      [osi-vol])
     100AC_COIN_HAS_MODULE(OsiTests, [osi-unittests], [required=0], [../Osi])
     101
     102AC_COIN_HAS_MODULE(Sample,  [coindatasample],  [required=0], [../Data/Sample])
     103AC_COIN_HAS_MODULE(Netlib,  [coindatanetlib],  [required=0], [../Data/Netlib])
     104AC_COIN_HAS_MODULE(Miplib3, [coindatamiplib3], [required=0], [../Data/Miplib3])
    107105
    108106#############################################################################
     
    111109
    112110# Check which third party solvers are available
    113 AC_COIN_HAS_MODULE(Cpx,      [osi-cplex])
    114 AC_COIN_HAS_MODULE(Glpk,     [osi-glpk])
    115 AC_COIN_HAS_MODULE(Grb,      [osi-gurobi])
    116 AC_COIN_HAS_MODULE(Msk,      [osi-mosek])
    117 #AC_COIN_HAS_MODULE(Spx,     [osi-soplex])
    118 AC_COIN_HAS_MODULE(Xpr,      [osi-xpress])
     111AC_COIN_HAS_MODULE(Cpx,  [osi-cplex])
     112AC_COIN_HAS_MODULE(Glpk, [osi-glpk])
     113AC_COIN_HAS_MODULE(Grb,  [osi-gurobi])
     114AC_COIN_HAS_MODULE(Msk,  [osi-mosek])
     115#AC_COIN_HAS_MODULE(Spx,  [osi-soplex])
     116AC_COIN_HAS_MODULE(Xpr,  [osi-xpress])
    119117
    120118#############################################################################
     
    123121
    124122# Ampl Solver library
    125 AC_COIN_HAS_MODULE(ASL, [coinasl], [required=0])
     123AC_COIN_HAS_MODULE(ASL, [coinasl], [required=0], [../ThirdParty/ASL])
    126124
    127125#############################################################################
     
    344342                 src/OsiCbc/Makefile
    345343                 test/Makefile
    346                  cbc_addlibs.txt
    347344                 cbc.pc cbc-uninstalled.pc
    348345                 osi-cbc.pc osi-cbc-uninstalled.pc])
  • branches/split/Cbc/src/Makefile.in

    r1444 r1445  
    290290COIN_HAS_OSITESTS_FALSE = @COIN_HAS_OSITESTS_FALSE@
    291291COIN_HAS_OSITESTS_TRUE = @COIN_HAS_OSITESTS_TRUE@
     292COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     293COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    292294COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    293295COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     
    296298COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    297299COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
     300COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    298301CPP = @CPP@
    299302CPPFLAGS = @CPPFLAGS@
  • branches/split/Cbc/src/OsiCbc/Makefile.in

    r1444 r1445  
    157157COIN_HAS_OSITESTS_FALSE = @COIN_HAS_OSITESTS_FALSE@
    158158COIN_HAS_OSITESTS_TRUE = @COIN_HAS_OSITESTS_TRUE@
     159COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     160COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    159161COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    160162COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     
    163165COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    164166COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
     167COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    165168CPP = @CPP@
    166169CPPFLAGS = @CPPFLAGS@
  • branches/split/Cbc/test/Makefile.in

    r1444 r1445  
    177177COIN_HAS_OSITESTS_FALSE = @COIN_HAS_OSITESTS_FALSE@
    178178COIN_HAS_OSITESTS_TRUE = @COIN_HAS_OSITESTS_TRUE@
     179COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     180COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    179181COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    180182COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     
    183185COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    184186COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
     187COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    185188CPP = @CPP@
    186189CPPFLAGS = @CPPFLAGS@
Note: See TracChangeset for help on using the changeset viewer.