Changeset 1546


Ignore:
Timestamp:
May 1, 2010 6:19:43 AM (9 years ago)
Author:
stefan
Message:

use advanced AC_COIN_HAS_MODULE macro; setup addlibs file by pkg-config

Location:
branches/split/Clp
Files:
1 deleted
7 edited

Legend:

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

    r1522 r1546  
    9999########################################################################
    100100
     101if COIN_HAS_PKGCONFIG
    101102addlibsdir = $(datadir)/coin/doc/Clp
    102103addlibs_DATA = clp_addlibs.txt
     104
     105clp_addlibs.txt : clp.pc
     106        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs clp > clp_addlibs.txt
     107endif
    103108
    104109pkgconfiglibdir = $(libdir)/pkgconfig
     
    109114########################################################################
    110115
     116CLEANFILES = clp_addlibs.txt
     117
    111118# Files that are generated and should be cleaned with make distclean
    112119DISTCLEANFILES =
  • branches/split/Clp/Makefile.in

    r1542 r1546  
    6464        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    6565        $(srcdir)/clp-uninstalled.pc.in $(srcdir)/clp.pc.in \
    66         $(srcdir)/clp_addlibs.txt.in $(top_srcdir)/configure \
    67         $(top_srcdir)/examples/Makefile.in \
     66        $(top_srcdir)/configure $(top_srcdir)/examples/Makefile.in \
    6867        $(top_srcdir)/inc/config_clp.h.in \
    6968        $(top_srcdir)/src/OsiClp/osi-clp-uninstalled.pc.in AUTHORS
     
    8079mkinstalldirs = $(install_sh) -d
    8180CONFIG_HEADER = $(top_builddir)/inc/config_clp.h
    82 CONFIG_CLEAN_FILES = examples/Makefile clp_addlibs.txt clp.pc \
    83         clp-uninstalled.pc osi-clp-uninstalled.pc
     81CONFIG_CLEAN_FILES = examples/Makefile clp.pc clp-uninstalled.pc \
     82        osi-clp-uninstalled.pc
    8483SOURCES =
    8584DIST_SOURCES =
     
    147146COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    148147COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
     148COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     149COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    149150COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    150151COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     152COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    151153CPP = @CPP@
    152154CPPFLAGS = @CPPFLAGS@
     
    310312#                  Installation of the addlibs file                    #
    311313########################################################################
    312 addlibsdir = $(datadir)/coin/doc/Clp
    313 addlibs_DATA = clp_addlibs.txt
     314@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/Clp
     315@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = clp_addlibs.txt
    314316pkgconfiglibdir = $(libdir)/pkgconfig
    315317pkgconfiglib_DATA = clp.pc
     
    318320#                         Maintainer Stuff                             #
    319321########################################################################
     322CLEANFILES = clp_addlibs.txt
    320323
    321324# Files that are generated and should be cleaned with make distclean
     
    377380        -rm -f inc/config_clp.h inc/stamp-h1
    378381examples/Makefile: $(top_builddir)/config.status $(top_srcdir)/examples/Makefile.in
    379         cd $(top_builddir) && $(SHELL) ./config.status $@
    380 clp_addlibs.txt: $(top_builddir)/config.status $(srcdir)/clp_addlibs.txt.in
    381382        cd $(top_builddir) && $(SHELL) ./config.status $@
    382383clp.pc: $(top_builddir)/config.status $(srcdir)/clp.pc.in
     
    730731
    731732clean-generic:
     733        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    732734
    733735distclean-generic:
     
    831833.PHONY: test unitTest
    832834
     835@COIN_HAS_PKGCONFIG_TRUE@clp_addlibs.txt : clp.pc
     836@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs clp > clp_addlibs.txt
     837
    833838install-doc: $(DocFiles)
    834839        test -z "$(DocInstallDir)" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)"
  • branches/split/Clp/configure

    r1545 r1546  
    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 COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA REQUIREDPACKAGES COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA COIN_HAS_OSI_TRUE COIN_HAS_OSI_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 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 COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA REQUIREDPACKAGES COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA COIN_HAS_OSI_TRUE COIN_HAS_OSI_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 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-coinutils-lib linker flags for using module CoinUtils
    11131115  --with-coinutils-incdir directory with header files for using module
     
    11151117  --with-coinutils-datadir
    11161118                          directory with data files for using module CoinUtils
    1117   --with-coin-instdir     prefix of installation directory for precompiled
    1118                           COIN packages
    11191119  --with-osi-lib linker flags for using module Osi
    11201120  --with-osi-incdir directory with header files for using module Osi
     
    2056020560
    2056120561
     20562
     20563if test -n "$PKG_CONFIG"; then
     20564  COIN_HAS_PKGCONFIG_TRUE=
     20565  COIN_HAS_PKGCONFIG_FALSE='#'
     20566else
     20567  COIN_HAS_PKGCONFIG_TRUE='#'
     20568  COIN_HAS_PKGCONFIG_FALSE=
     20569fi
     20570
     20571
     20572
     20573# assemble search path for pkg-config, if we are in a project setup
     20574if test x$coin_projectdir = xyes ; then
     20575  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20576
     20577  # 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
     20578  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20579  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20580  if test -d "${prefix}"; then
     20581    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20582  fi
     20583
     20584
     20585# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20586if test "${with_coin_instdir+set}" = set; then
     20587  withval="$with_coin_instdir"
     20588  if test -d "$withval"; then : ; else
     20589       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20590echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20591   { (exit 1); exit 1; }; }
     20592     fi
     20593     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20594
     20595fi;
     20596
     20597  # in a classic setup, we want to find uninstalled projects
     20598  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20599  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20600  # 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)
     20601  if test -e ../coin_subdirs.txt ; then
     20602    for i in `cat ../coin_subdirs.txt` ; do
     20603      COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     20604    done
     20605  fi
     20606
     20607  if test -e ../../coin_subdirs.txt ; then
     20608    for i in `cat ../../coin_subdirs.txt` ; do
     20609      COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     20610    done
     20611  fi
     20612
     20613
     20614fi
     20615
     20616
     20617
    2056220618echo "$as_me:$LINENO: checking for COIN-OR module CoinUtils" >&5
    2056320619echo $ECHO_N "checking for COIN-OR module CoinUtils... $ECHO_C" >&6
     
    2061420670if test $coin_has_coinutils = notGiven; then
    2061520671  if test -n "$PKG_CONFIG" ; then
    20616     # assemble search path for pkg-config
     20672    # set search path for pkg-config
     20673    # need to export variable to be sure that the following pkg-config gets these values
    2061720674    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    20618 
    20619     # 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
    20620     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    20621     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    20622     if test -d "${prefix}"; then
    20623       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    20624     fi
    20625 
    20626 
    20627 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    20628 if test "${with_coin_instdir+set}" = set; then
    20629   withval="$with_coin_instdir"
    20630   if test -d "$withval"; then : ; else
    20631          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    20632 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    20633    { (exit 1); exit 1; }; }
    20634        fi
    20635        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    20636 
    20637 fi;
    20638 
    20639     # in a classic setup, we want to find uninstalled projects
    20640     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    20641     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    20642     # 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)
    20643     if test -e ../coin_subdirs.txt ; then
    20644       for i in `cat ../coin_subdirs.txt` ; do
    20645         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    20646       done
    20647     fi
    20648 
    20649     if test -e ../../coin_subdirs.txt ; then
    20650       for i in `cat ../../coin_subdirs.txt` ; do
    20651         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    20652       done
    20653     fi
     20675    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     20676    export PKG_CONFIG_PATH
    2065420677
    2065520678    # let pkg-config do it's magic
    20656     # need to export variable to be sure that the following pkg-config gets these values
    20657     export PKG_CONFIG_PATH
    2065820679
    2065920680
     
    2069520716
    2069620717
     20718    # reset PKG_CONFIG_PATH variable
    2069720719    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2069820720  else
     20721    #if 4th argument is given, try fallback - whereby we take the first word from coinutils = split as basename for the .pc file
    2069920722    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    2070020723echo "${ECHO_T}skipped check via pkg-config" >&6
     20724
    2070120725  fi
    2070220726
     
    2074920773
    2075020774if test x$coin_has_blas != "xyes" ; then
     20775
    2075120776echo "$as_me:$LINENO: checking for COIN-OR module Blas (fallback)" >&5
    2075220777echo $ECHO_N "checking for COIN-OR module Blas (fallback)... $ECHO_C" >&6
     
    2079320818
    2079420819    coin_has_blas=yes
    20795   fi
     20820    echo "$as_me:$LINENO: result: ../ThirdParty/Blas" >&5
     20821echo "${ECHO_T}../ThirdParty/Blas" >&6
     20822  else
     20823    echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     20824echo "${ECHO_T}$coin_has_blas" >&6
     20825  fi
     20826else
     20827  echo "$as_me:$LINENO: result: skipping" >&5
     20828echo "${ECHO_T}skipping" >&6
    2079620829fi
    2079720830
    2079820831#if user did not disable setting of makefile conditional, do it
    2079920832
    20800 
    20801 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
    20802 echo "${ECHO_T}$coin_has_blas" >&6
    2080320833fi
    2080420834
    2080520835
    2080620836if test x$coin_has_lapack != "xyes" ; then
     20837
    2080720838echo "$as_me:$LINENO: checking for COIN-OR module Lapack (fallback)" >&5
    2080820839echo $ECHO_N "checking for COIN-OR module Lapack (fallback)... $ECHO_C" >&6
     
    2084920880
    2085020881    coin_has_lapack=yes
    20851   fi
     20882    echo "$as_me:$LINENO: result: ../ThirdParty/Lapack" >&5
     20883echo "${ECHO_T}../ThirdParty/Lapack" >&6
     20884  else
     20885    echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
     20886echo "${ECHO_T}$coin_has_lapack" >&6
     20887  fi
     20888else
     20889  echo "$as_me:$LINENO: result: skipping" >&5
     20890echo "${ECHO_T}skipping" >&6
    2085220891fi
    2085320892
    2085420893#if user did not disable setting of makefile conditional, do it
    2085520894
    20856 
    20857 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
    20858 echo "${ECHO_T}$coin_has_lapack" >&6
    2085920895fi
    2086020896
     
    2086220898
    2086320899if test x$coin_has_coinutils != "xyes" ; then
     20900
    2086420901echo "$as_me:$LINENO: checking for COIN-OR module CoinUtils (fallback)" >&5
    2086520902echo $ECHO_N "checking for COIN-OR module CoinUtils (fallback)... $ECHO_C" >&6
     
    2091320950
    2091420951    coin_has_coinutils=yes
    20915   fi
     20952    echo "$as_me:$LINENO: result: ../CoinUtils" >&5
     20953echo "${ECHO_T}../CoinUtils" >&6
     20954  else
     20955    echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
     20956echo "${ECHO_T}$coin_has_coinutils" >&6
     20957  fi
     20958else
     20959  echo "$as_me:$LINENO: result: skipping" >&5
     20960echo "${ECHO_T}skipping" >&6
    2091620961fi
    2091720962
     
    2092920974
    2093020975
    20931 
    20932 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    20933 echo "${ECHO_T}$coin_has_coinutils" >&6
    2093420976fi
    2093520977
     
    2099821040if test $coin_has_osi = notGiven; then
    2099921041  if test -n "$PKG_CONFIG" ; then
    21000     # assemble search path for pkg-config
     21042    # set search path for pkg-config
     21043    # need to export variable to be sure that the following pkg-config gets these values
    2100121044    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21002 
    21003     # 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
    21004     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21005     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21006     if test -d "${prefix}"; then
    21007       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21008     fi
    21009 
    21010 
    21011 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21012 if test "${with_coin_instdir+set}" = set; then
    21013   withval="$with_coin_instdir"
    21014   if test -d "$withval"; then : ; else
    21015          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21016 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21017    { (exit 1); exit 1; }; }
    21018        fi
    21019        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21020 
    21021 fi;
    21022 
    21023     # in a classic setup, we want to find uninstalled projects
    21024     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21025     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21026     # 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)
    21027     if test -e ../coin_subdirs.txt ; then
    21028       for i in `cat ../coin_subdirs.txt` ; do
    21029         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21030       done
    21031     fi
    21032 
    21033     if test -e ../../coin_subdirs.txt ; then
    21034       for i in `cat ../../coin_subdirs.txt` ; do
    21035         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21036       done
    21037     fi
     21045    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21046    export PKG_CONFIG_PATH
    2103821047
    2103921048    # let pkg-config do it's magic
    21040     # need to export variable to be sure that the following pkg-config gets these values
    21041     export PKG_CONFIG_PATH
    2104221049
    2104321050
     
    2107921086
    2108021087
     21088    # reset PKG_CONFIG_PATH variable
    2108121089    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2108221090  else
    21083     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    21084 echo "${ECHO_T}skipped check via pkg-config" >&6
    21085   fi
    21086 
    21087 else
    21088   echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    21089 echo "${ECHO_T}$coin_has_osi" >&6
    21090 fi
    21091 
    21092 if test $coin_has_osi != skipping &&
    21093    test $coin_has_osi != notGiven ; then
    21094   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21095   if test -n "$OSI_CFLAGS" ; then
    21096     { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
    21097 echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
    21098   fi
    21099   if test -n "$OSI_LIBS" ; then
    21100     { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
    21101 echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
    21102   fi
    21103   if test -n "$OSI_DATA" ; then
    21104     { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
    21105 echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
    21106   fi
    21107   fi
    21108 
    21109 cat >>confdefs.h <<\_ACEOF
    21110 #define COIN_HAS_OSI 1
    21111 _ACEOF
    21112 
    21113 fi
    21114 
    21115 # Define the Makefile conditional
    21116 
    21117 
    21118 if test $coin_has_osi != notGiven &&
    21119                 test $coin_has_osi != skipping; then
    21120   COIN_HAS_OSI_TRUE=
    21121   COIN_HAS_OSI_FALSE='#'
    21122 else
    21123   COIN_HAS_OSI_TRUE='#'
    21124   COIN_HAS_OSI_FALSE=
    21125 fi
    21126 
    21127 
    21128 
     21091    #if 4th argument is given, try fallback - whereby we take the first word from osi as basename for the .pc file
    2112921092
    2113021093if test x$coin_has_osi != "xyes" ; then
    21131 echo "$as_me:$LINENO: checking for COIN-OR module Osi (fallback)" >&5
    21132 echo $ECHO_N "checking for COIN-OR module Osi (fallback)... $ECHO_C" >&6
     21094
     21095
    2113321096
    2113421097coin_has_osi=notGiven
     
    2115121114  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2115221115  if test -r ../Osi/osi-uninstalled.pc ; then
    21153     # read CFLAGS and LIBS from osi-uninstalled.pc file
     21116    # read CFLAGS and LIBS from m4_bpatsubst(osi, [ .*], [])-uninstalled.pc file
    2115421117    # add CYGPATH_W cludge into include flags
    2115521118    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2117821141
    2117921142    coin_has_osi=yes
    21180   fi
     21143    echo "$as_me:$LINENO: result: ../Osi" >&5
     21144echo "${ECHO_T}../Osi" >&6
     21145  else
     21146    echo "$as_me:$LINENO: result: $coin_has_osi" >&5
     21147echo "${ECHO_T}$coin_has_osi" >&6
     21148  fi
     21149else
     21150  echo "$as_me:$LINENO: result: skipping" >&5
     21151echo "${ECHO_T}skipping" >&6
    2118121152fi
    2118221153
     
    2119421165
    2119521166
    21196 
    21197 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
     21167fi
     21168
     21169
     21170  fi
     21171
     21172else
     21173  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    2119821174echo "${ECHO_T}$coin_has_osi" >&6
    2119921175fi
     21176
     21177if test $coin_has_osi != skipping &&
     21178   test $coin_has_osi != notGiven ; then
     21179  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     21180  if test -n "$OSI_CFLAGS" ; then
     21181    { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
     21182echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
     21183  fi
     21184  if test -n "$OSI_LIBS" ; then
     21185    { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
     21186echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
     21187  fi
     21188  if test -n "$OSI_DATA" ; then
     21189    { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
     21190echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
     21191  fi
     21192  fi
     21193
     21194cat >>confdefs.h <<\_ACEOF
     21195#define COIN_HAS_OSI 1
     21196_ACEOF
     21197
     21198fi
     21199
     21200# Define the Makefile conditional
     21201
     21202
     21203if test $coin_has_osi != notGiven &&
     21204                test $coin_has_osi != skipping; then
     21205  COIN_HAS_OSI_TRUE=
     21206  COIN_HAS_OSI_FALSE='#'
     21207else
     21208  COIN_HAS_OSI_TRUE='#'
     21209  COIN_HAS_OSI_FALSE=
     21210fi
     21211
     21212
    2120021213
    2120121214
     
    2125421267if test $coin_has_ositests = notGiven; then
    2125521268  if test -n "$PKG_CONFIG" ; then
    21256     # assemble search path for pkg-config
     21269    # set search path for pkg-config
     21270    # need to export variable to be sure that the following pkg-config gets these values
    2125721271    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21258 
    21259     # 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
    21260     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21261     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21262     if test -d "${prefix}"; then
    21263       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21264     fi
    21265 
    21266 
    21267 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21268 if test "${with_coin_instdir+set}" = set; then
    21269   withval="$with_coin_instdir"
    21270   if test -d "$withval"; then : ; else
    21271          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21272 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21273    { (exit 1); exit 1; }; }
    21274        fi
    21275        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21276 
    21277 fi;
    21278 
    21279     # in a classic setup, we want to find uninstalled projects
    21280     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21281     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21282     # 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)
    21283     if test -e ../coin_subdirs.txt ; then
    21284       for i in `cat ../coin_subdirs.txt` ; do
    21285         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21286       done
    21287     fi
    21288 
    21289     if test -e ../../coin_subdirs.txt ; then
    21290       for i in `cat ../../coin_subdirs.txt` ; do
    21291         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21292       done
    21293     fi
     21272    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21273    export PKG_CONFIG_PATH
    2129421274
    2129521275    # let pkg-config do it's magic
    21296     # need to export variable to be sure that the following pkg-config gets these values
    21297     export PKG_CONFIG_PATH
    2129821276
    2129921277
     
    2133521313
    2133621314
     21315    # reset PKG_CONFIG_PATH variable
    2133721316    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2133821317  else
    21339     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    21340 echo "${ECHO_T}skipped check via pkg-config" >&6
    21341   fi
    21342 
    21343 else
    21344   echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
    21345 echo "${ECHO_T}$coin_has_ositests" >&6
    21346 fi
    21347 
    21348 if test $coin_has_ositests != skipping &&
    21349    test $coin_has_ositests != notGiven ; then
    21350   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21351   if test -n "$OSITESTS_CFLAGS" ; then
    21352     { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
    21353 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
    21354   fi
    21355   if test -n "$OSITESTS_LIBS" ; then
    21356     { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
    21357 echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
    21358   fi
    21359   if test -n "$OSITESTS_DATA" ; then
    21360     { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
    21361 echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
    21362   fi
    21363   fi
    21364 
    21365 cat >>confdefs.h <<\_ACEOF
    21366 #define COIN_HAS_OSITESTS 1
    21367 _ACEOF
    21368 
    21369 fi
    21370 
    21371 # Define the Makefile conditional
    21372 
    21373 
    21374 if test $coin_has_ositests != notGiven &&
    21375                 test $coin_has_ositests != skipping; then
    21376   COIN_HAS_OSITESTS_TRUE=
    21377   COIN_HAS_OSITESTS_FALSE='#'
    21378 else
    21379   COIN_HAS_OSITESTS_TRUE='#'
    21380   COIN_HAS_OSITESTS_FALSE=
    21381 fi
    21382 
    21383 
    21384 
     21318    #if 4th argument is given, try fallback - whereby we take the first word from osi-unittests as basename for the .pc file
    2138521319
    2138621320if test x$coin_has_ositests != "xyes" ; then
    21387 echo "$as_me:$LINENO: checking for COIN-OR module OsiTests (fallback)" >&5
    21388 echo $ECHO_N "checking for COIN-OR module OsiTests (fallback)... $ECHO_C" >&6
     21321
     21322
    2138921323
    2139021324coin_has_ositests=notGiven
     
    2140721341  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2140821342  if test -r ../Osi/osi-unittests-uninstalled.pc ; then
    21409     # read CFLAGS and LIBS from osi-unittests-uninstalled.pc file
     21343    # read CFLAGS and LIBS from m4_bpatsubst(osi-unittests, [ .*], [])-uninstalled.pc file
    2141021344    # add CYGPATH_W cludge into include flags
    2141121345    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2143421368
    2143521369    coin_has_ositests=yes
    21436   fi
     21370    echo "$as_me:$LINENO: result: ../Osi" >&5
     21371echo "${ECHO_T}../Osi" >&6
     21372  else
     21373    echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
     21374echo "${ECHO_T}$coin_has_ositests" >&6
     21375  fi
     21376else
     21377  echo "$as_me:$LINENO: result: skipping" >&5
     21378echo "${ECHO_T}skipping" >&6
    2143721379fi
    2143821380
     
    2145021392
    2145121393
    21452 
    21453 echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
     21394fi
     21395
     21396
     21397  fi
     21398
     21399else
     21400  echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
    2145421401echo "${ECHO_T}$coin_has_ositests" >&6
    2145521402fi
     21403
     21404if test $coin_has_ositests != skipping &&
     21405   test $coin_has_ositests != notGiven ; then
     21406  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     21407  if test -n "$OSITESTS_CFLAGS" ; then
     21408    { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
     21409echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
     21410  fi
     21411  if test -n "$OSITESTS_LIBS" ; then
     21412    { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
     21413echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
     21414  fi
     21415  if test -n "$OSITESTS_DATA" ; then
     21416    { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
     21417echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
     21418  fi
     21419  fi
     21420
     21421cat >>confdefs.h <<\_ACEOF
     21422#define COIN_HAS_OSITESTS 1
     21423_ACEOF
     21424
     21425fi
     21426
     21427# Define the Makefile conditional
     21428
     21429
     21430if test $coin_has_ositests != notGiven &&
     21431                test $coin_has_ositests != skipping; then
     21432  COIN_HAS_OSITESTS_TRUE=
     21433  COIN_HAS_OSITESTS_FALSE='#'
     21434else
     21435  COIN_HAS_OSITESTS_TRUE='#'
     21436  COIN_HAS_OSITESTS_FALSE=
     21437fi
     21438
    2145621439
    2145721440
     
    2151121494if test $coin_has_sample = notGiven; then
    2151221495  if test -n "$PKG_CONFIG" ; then
    21513     # assemble search path for pkg-config
     21496    # set search path for pkg-config
     21497    # need to export variable to be sure that the following pkg-config gets these values
    2151421498    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21515 
    21516     # 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
    21517     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21518     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21519     if test -d "${prefix}"; then
    21520       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21521     fi
    21522 
    21523 
    21524 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21525 if test "${with_coin_instdir+set}" = set; then
    21526   withval="$with_coin_instdir"
    21527   if test -d "$withval"; then : ; else
    21528          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21529 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21530    { (exit 1); exit 1; }; }
    21531        fi
    21532        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21533 
    21534 fi;
    21535 
    21536     # in a classic setup, we want to find uninstalled projects
    21537     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21538     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21539     # 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)
    21540     if test -e ../coin_subdirs.txt ; then
    21541       for i in `cat ../coin_subdirs.txt` ; do
    21542         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21543       done
    21544     fi
    21545 
    21546     if test -e ../../coin_subdirs.txt ; then
    21547       for i in `cat ../../coin_subdirs.txt` ; do
    21548         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21549       done
    21550     fi
     21499    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21500    export PKG_CONFIG_PATH
    2155121501
    2155221502    # let pkg-config do it's magic
    21553     # need to export variable to be sure that the following pkg-config gets these values
    21554     export PKG_CONFIG_PATH
    2155521503
    2155621504
     
    2159221540
    2159321541
     21542    # reset PKG_CONFIG_PATH variable
    2159421543    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2159521544  else
    21596     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    21597 echo "${ECHO_T}skipped check via pkg-config" >&6
    21598   fi
    21599 
    21600 else
    21601   echo "$as_me:$LINENO: result: $coin_has_sample" >&5
    21602 echo "${ECHO_T}$coin_has_sample" >&6
    21603 fi
    21604 
    21605 if test $coin_has_sample != skipping &&
    21606    test $coin_has_sample != notGiven ; then
    21607   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21608   if test -n "$SAMPLE_CFLAGS" ; then
    21609     { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
    21610 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
    21611   fi
    21612   if test -n "$SAMPLE_LIBS" ; then
    21613     { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
    21614 echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
    21615   fi
    21616   if test -n "$SAMPLE_DATA" ; then
    21617     { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
    21618 echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
    21619   fi
    21620   fi
    21621 
    21622 cat >>confdefs.h <<\_ACEOF
    21623 #define COIN_HAS_SAMPLE 1
    21624 _ACEOF
    21625 
    21626 fi
    21627 
    21628 # Define the Makefile conditional
    21629 
    21630 
    21631 if test $coin_has_sample != notGiven &&
    21632                 test $coin_has_sample != skipping; then
    21633   COIN_HAS_SAMPLE_TRUE=
    21634   COIN_HAS_SAMPLE_FALSE='#'
    21635 else
    21636   COIN_HAS_SAMPLE_TRUE='#'
    21637   COIN_HAS_SAMPLE_FALSE=
    21638 fi
    21639 
    21640 
    21641 
     21545    #if 4th argument is given, try fallback - whereby we take the first word from coindatasample as basename for the .pc file
    2164221546
    2164321547if test x$coin_has_sample != "xyes" ; then
    21644 echo "$as_me:$LINENO: checking for COIN-OR module Sample (fallback)" >&5
    21645 echo $ECHO_N "checking for COIN-OR module Sample (fallback)... $ECHO_C" >&6
     21548
     21549
    2164621550
    2164721551coin_has_sample=notGiven
     
    2166421568  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2166521569  if test -r ../Data/Sample/coindatasample-uninstalled.pc ; then
    21666     # read CFLAGS and LIBS from coindatasample-uninstalled.pc file
     21570    # read CFLAGS and LIBS from m4_bpatsubst(coindatasample, [ .*], [])-uninstalled.pc file
    2166721571    # add CYGPATH_W cludge into include flags
    2166821572    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2169121595
    2169221596    coin_has_sample=yes
    21693   fi
     21597    echo "$as_me:$LINENO: result: ../Data/Sample" >&5
     21598echo "${ECHO_T}../Data/Sample" >&6
     21599  else
     21600    echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     21601echo "${ECHO_T}$coin_has_sample" >&6
     21602  fi
     21603else
     21604  echo "$as_me:$LINENO: result: skipping" >&5
     21605echo "${ECHO_T}skipping" >&6
    2169421606fi
    2169521607
     
    2170721619
    2170821620
    21709 
    21710 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     21621fi
     21622
     21623
     21624  fi
     21625
     21626else
     21627  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
    2171121628echo "${ECHO_T}$coin_has_sample" >&6
    2171221629fi
     21630
     21631if test $coin_has_sample != skipping &&
     21632   test $coin_has_sample != notGiven ; then
     21633  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     21634  if test -n "$SAMPLE_CFLAGS" ; then
     21635    { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     21636echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     21637  fi
     21638  if test -n "$SAMPLE_LIBS" ; then
     21639    { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     21640echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     21641  fi
     21642  if test -n "$SAMPLE_DATA" ; then
     21643    { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     21644echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
     21645  fi
     21646  fi
     21647
     21648cat >>confdefs.h <<\_ACEOF
     21649#define COIN_HAS_SAMPLE 1
     21650_ACEOF
     21651
     21652fi
     21653
     21654# Define the Makefile conditional
     21655
     21656
     21657if test $coin_has_sample != notGiven &&
     21658                test $coin_has_sample != skipping; then
     21659  COIN_HAS_SAMPLE_TRUE=
     21660  COIN_HAS_SAMPLE_FALSE='#'
     21661else
     21662  COIN_HAS_SAMPLE_TRUE='#'
     21663  COIN_HAS_SAMPLE_FALSE=
     21664fi
     21665
    2171321666
    2171421667
     
    2176821721if test $coin_has_netlib = notGiven; then
    2176921722  if test -n "$PKG_CONFIG" ; then
    21770     # assemble search path for pkg-config
     21723    # set search path for pkg-config
     21724    # need to export variable to be sure that the following pkg-config gets these values
    2177121725    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21772 
    21773     # 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
    21774     # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    21775     # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    21776     if test -d "${prefix}"; then
    21777       PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
    21778     fi
    21779 
    21780 
    21781 # Check whether --with-coin-instdir or --without-coin-instdir was given.
    21782 if test "${with_coin_instdir+set}" = set; then
    21783   withval="$with_coin_instdir"
    21784   if test -d "$withval"; then : ; else
    21785          { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
    21786 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    21787    { (exit 1); exit 1; }; }
    21788        fi
    21789        PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
    21790 
    21791 fi;
    21792 
    21793     # in a classic setup, we want to find uninstalled projects
    21794     # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    21795     # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    21796     # 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)
    21797     if test -e ../coin_subdirs.txt ; then
    21798       for i in `cat ../coin_subdirs.txt` ; do
    21799         PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
    21800       done
    21801     fi
    21802 
    21803     if test -e ../../coin_subdirs.txt ; then
    21804       for i in `cat ../../coin_subdirs.txt` ; do
    21805         PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
    21806       done
    21807     fi
     21726    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     21727    export PKG_CONFIG_PATH
    2180821728
    2180921729    # let pkg-config do it's magic
    21810     # need to export variable to be sure that the following pkg-config gets these values
    21811     export PKG_CONFIG_PATH
    2181221730
    2181321731
     
    2184921767
    2185021768
     21769    # reset PKG_CONFIG_PATH variable
    2185121770    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2185221771  else
    21853     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    21854 echo "${ECHO_T}skipped check via pkg-config" >&6
    21855   fi
    21856 
    21857 else
    21858   echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
    21859 echo "${ECHO_T}$coin_has_netlib" >&6
    21860 fi
    21861 
    21862 if test $coin_has_netlib != skipping &&
    21863    test $coin_has_netlib != notGiven ; then
    21864   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    21865   if test -n "$NETLIB_CFLAGS" ; then
    21866     { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
    21867 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
    21868   fi
    21869   if test -n "$NETLIB_LIBS" ; then
    21870     { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
    21871 echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
    21872   fi
    21873   if test -n "$NETLIB_DATA" ; then
    21874     { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
    21875 echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
    21876   fi
    21877   fi
    21878 
    21879 cat >>confdefs.h <<\_ACEOF
    21880 #define COIN_HAS_NETLIB 1
    21881 _ACEOF
    21882 
    21883 fi
    21884 
    21885 # Define the Makefile conditional
    21886 
    21887 
    21888 if test $coin_has_netlib != notGiven &&
    21889                 test $coin_has_netlib != skipping; then
    21890   COIN_HAS_NETLIB_TRUE=
    21891   COIN_HAS_NETLIB_FALSE='#'
    21892 else
    21893   COIN_HAS_NETLIB_TRUE='#'
    21894   COIN_HAS_NETLIB_FALSE=
    21895 fi
    21896 
    21897 
    21898 
     21772    #if 4th argument is given, try fallback - whereby we take the first word from coindatanetlib as basename for the .pc file
    2189921773
    2190021774if test x$coin_has_netlib != "xyes" ; then
    21901 echo "$as_me:$LINENO: checking for COIN-OR module Netlib (fallback)" >&5
    21902 echo $ECHO_N "checking for COIN-OR module Netlib (fallback)... $ECHO_C" >&6
     21775
     21776
    2190321777
    2190421778coin_has_netlib=notGiven
     
    2192121795  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    2192221796  if test -r ../Data/Netlib/coindatanetlib-uninstalled.pc ; then
    21923     # read CFLAGS and LIBS from coindatanetlib-uninstalled.pc file
     21797    # read CFLAGS and LIBS from m4_bpatsubst(coindatanetlib, [ .*], [])-uninstalled.pc file
    2192421798    # add CYGPATH_W cludge into include flags
    2192521799    # replace -L${libdir} by absolute path to build directory in linker flags
     
    2194821822
    2194921823    coin_has_netlib=yes
    21950   fi
     21824    echo "$as_me:$LINENO: result: ../Data/Netlib" >&5
     21825echo "${ECHO_T}../Data/Netlib" >&6
     21826  else
     21827    echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     21828echo "${ECHO_T}$coin_has_netlib" >&6
     21829  fi
     21830else
     21831  echo "$as_me:$LINENO: result: skipping" >&5
     21832echo "${ECHO_T}skipping" >&6
    2195121833fi
    2195221834
     
    2196421846
    2196521847
    21966 
    21967 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     21848fi
     21849
     21850
     21851  fi
     21852
     21853else
     21854  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
    2196821855echo "${ECHO_T}$coin_has_netlib" >&6
    2196921856fi
     21857
     21858if test $coin_has_netlib != skipping &&
     21859   test $coin_has_netlib != notGiven ; then
     21860  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     21861  if test -n "$NETLIB_CFLAGS" ; then
     21862    { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     21863echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     21864  fi
     21865  if test -n "$NETLIB_LIBS" ; then
     21866    { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     21867echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     21868  fi
     21869  if test -n "$NETLIB_DATA" ; then
     21870    { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     21871echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
     21872  fi
     21873  fi
     21874
     21875cat >>confdefs.h <<\_ACEOF
     21876#define COIN_HAS_NETLIB 1
     21877_ACEOF
     21878
     21879fi
     21880
     21881# Define the Makefile conditional
     21882
     21883
     21884if test $coin_has_netlib != notGiven &&
     21885                test $coin_has_netlib != skipping; then
     21886  COIN_HAS_NETLIB_TRUE=
     21887  COIN_HAS_NETLIB_FALSE='#'
     21888else
     21889  COIN_HAS_NETLIB_TRUE='#'
     21890  COIN_HAS_NETLIB_FALSE=
     21891fi
     21892
     21893
    2197021894
    2197121895
     
    2245922383# Here list all the files that configure should create (except for the
    2246022384# configuration header file)
    22461                                                                                 ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiClp/Makefile test/Makefile clp_addlibs.txt clp.pc clp-uninstalled.pc"
     22385                                                                      ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiClp/Makefile test/Makefile clp.pc clp-uninstalled.pc"
    2246222386
    2246322387
     
    2266922593Usually this means the macro was only invoked conditionally." >&5
    2267022594echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
     22595Usually this means the macro was only invoked conditionally." >&2;}
     22596   { (exit 1); exit 1; }; }
     22597fi
     22598if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     22599  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     22600Usually this means the macro was only invoked conditionally." >&5
     22601echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
    2267122602Usually this means the macro was only invoked conditionally." >&2;}
    2267222603   { (exit 1); exit 1; }; }
     
    2319123122  "src/OsiClp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiClp/Makefile" ;;
    2319223123  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    23193   "clp_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES clp_addlibs.txt" ;;
    2319423124  "clp.pc" ) CONFIG_FILES="$CONFIG_FILES clp.pc" ;;
    2319523125  "clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES clp-uninstalled.pc" ;;
     
    2338423314s,@PKG_CONFIG@,$PKG_CONFIG,;t t
    2338523315s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     23316s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     23317s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     23318s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2338623319s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
    2338723320s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
  • branches/split/Clp/configure.ac

    r1544 r1546  
    5757#############################################################################
    5858
    59 AC_COIN_HAS_MODULE(CoinUtils,          [coinutils = split])
     59AC_COIN_HAS_MODULE(CoinUtils, [coinutils = split])
    6060if test $coin_has_coinutils != yes ; then
    6161  #if we have to use the fallback routines, then obviously it will not find CoinUtils dependencies
     
    7373COINUTILS_LIBS="$COINUTILS_LIBS $BLAS_LIBS $LAPACK_LIBS"
    7474
    75 AC_COIN_HAS_MODULE(Osi,               [osi],                     [required=0])
    76 AC_COIN_HAS_MODULE_FALLBACK(Osi,      [osi],           [../Osi], [required=0])
    77 AC_COIN_HAS_MODULE(OsiTests,          [osi-unittests],           [required=0])
    78 AC_COIN_HAS_MODULE_FALLBACK(OsiTests, [osi-unittests], [../Osi], [required=0])
    79 
    80 AC_COIN_HAS_MODULE(Sample,          [coindatasample],                   [required=0])
    81 AC_COIN_HAS_MODULE_FALLBACK(Sample, [coindatasample], [../Data/Sample], [required=0])
    82 
    83 AC_COIN_HAS_MODULE(Netlib,          [coindatanetlib],                   [required=0])
    84 AC_COIN_HAS_MODULE_FALLBACK(Netlib, [coindatanetlib], [../Data/Netlib], [required=0])
     75AC_COIN_HAS_MODULE(Osi,      [osi],            [required=0], [../Osi])
     76AC_COIN_HAS_MODULE(OsiTests, [osi-unittests],  [required=0], [../Osi])
     77AC_COIN_HAS_MODULE(Sample,   [coindatasample], [required=0], [../Data/Sample])
     78AC_COIN_HAS_MODULE(Netlib,   [coindatanetlib], [required=0], [../Data/Netlib])
    8579
    8680#############################################################################
     
    152146                 src/OsiClp/Makefile
    153147                 test/Makefile
    154                  clp_addlibs.txt
    155148                 clp.pc
    156149                 clp-uninstalled.pc])
  • branches/split/Clp/src/Makefile.in

    r1542 r1546  
    160160COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    161161COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
     162COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     163COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    162164COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    163165COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     166COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    164167CPP = @CPP@
    165168CPPFLAGS = @CPPFLAGS@
  • branches/split/Clp/src/OsiClp/Makefile.in

    r1542 r1546  
    128128COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    129129COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
     130COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     131COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    130132COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    131133COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     134COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    132135CPP = @CPP@
    133136CPPFLAGS = @CPPFLAGS@
  • branches/split/Clp/test/Makefile.in

    r1542 r1546  
    116116COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    117117COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
     118COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     119COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    118120COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
    119121COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
     122COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    120123CPP = @CPP@
    121124CPPFLAGS = @CPPFLAGS@
Note: See TracChangeset for help on using the changeset viewer.