Ignore:
Timestamp:
Dec 19, 2010 1:42:04 PM (9 years ago)
Author:
stefan
Message:

sync with trunk rev1551, except for chgsets 1539,1540

Location:
stable/2.6/Cbc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable/2.6/Cbc

  • stable/2.6/Cbc/configure

    r1535 r1553  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    20052005fi
    20062006
     2007# add automake conditional so we can recognize cl compiler in makefile
     2008coin_cc_is_cl=false
     2009if test x"$CXX" != x; then
     2010  case "$CXX" in
     2011    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     2012      coin_cc_is_cl=true
     2013      ;;
     2014  esac
     2015fi
     2016
     2017
     2018if test $coin_cc_is_cl = true; then
     2019  COIN_CC_IS_CL_TRUE=
     2020  COIN_CC_IS_CL_FALSE='#'
     2021else
     2022  COIN_CC_IS_CL_TRUE='#'
     2023  COIN_CC_IS_CL_FALSE=
     2024fi
     2025
     2026
    20072027
    20082028
     
    37133733
    37143734
     3735coin_cxx_is_cl=false
    37153736# It seems that we need to cleanup something here for the Windows
    37163737case "$CXX" in
     
    37183739    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
    37193740    mv confdefs.hh confdefs.h
     3741    coin_cxx_is_cl=true
    37203742    ;;
    37213743esac
     3744
     3745# add automake conditional so we can recognize cl compiler in makefile
     3746
     3747
     3748if test $coin_cxx_is_cl = true; then
     3749  COIN_CXX_IS_CL_TRUE=
     3750  COIN_CXX_IS_CL_FALSE='#'
     3751else
     3752  COIN_CXX_IS_CL_TRUE='#'
     3753  COIN_CXX_IS_CL_FALSE=
     3754fi
     3755
    37223756
    37233757# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     
    59185952*-*-irix6*)
    59195953  # Find out which ABI we are using.
    5920   echo '#line 5920 "configure"' > conftest.$ac_ext
     5954  echo '#line 5954 "configure"' > conftest.$ac_ext
    59215955  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    59225956  (eval $ac_compile) 2>&5
     
    70527086
    70537087# Provide some information about the compiler.
    7054 echo "$as_me:7054:" \
     7088echo "$as_me:7088:" \
    70557089     "checking for Fortran 77 compiler version" >&5
    70567090ac_compiler=`set X $ac_compile; echo $2`
     
    81198153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81208154   -e 's:$: $lt_compiler_flag:'`
    8121    (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
     8155   (eval echo "\"\$as_me:8155: $lt_compile\"" >&5)
    81228156   (eval "$lt_compile" 2>conftest.err)
    81238157   ac_status=$?
    81248158   cat conftest.err >&5
    8125    echo "$as_me:8125: \$? = $ac_status" >&5
     8159   echo "$as_me:8159: \$? = $ac_status" >&5
    81268160   if (exit $ac_status) && test -s "$ac_outfile"; then
    81278161     # The compiler can only warn and ignore the option if not recognized
     
    83878421   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83888422   -e 's:$: $lt_compiler_flag:'`
    8389    (eval echo "\"\$as_me:8389: $lt_compile\"" >&5)
     8423   (eval echo "\"\$as_me:8423: $lt_compile\"" >&5)
    83908424   (eval "$lt_compile" 2>conftest.err)
    83918425   ac_status=$?
    83928426   cat conftest.err >&5
    8393    echo "$as_me:8393: \$? = $ac_status" >&5
     8427   echo "$as_me:8427: \$? = $ac_status" >&5
    83948428   if (exit $ac_status) && test -s "$ac_outfile"; then
    83958429     # The compiler can only warn and ignore the option if not recognized
     
    84918525   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84928526   -e 's:$: $lt_compiler_flag:'`
    8493    (eval echo "\"\$as_me:8493: $lt_compile\"" >&5)
     8527   (eval echo "\"\$as_me:8527: $lt_compile\"" >&5)
    84948528   (eval "$lt_compile" 2>out/conftest.err)
    84958529   ac_status=$?
    84968530   cat out/conftest.err >&5
    8497    echo "$as_me:8497: \$? = $ac_status" >&5
     8531   echo "$as_me:8531: \$? = $ac_status" >&5
    84988532   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    84998533   then
     
    1083610870  lt_status=$lt_dlunknown
    1083710871  cat > conftest.$ac_ext <<EOF
    10838 #line 10838 "configure"
     10872#line 10872 "configure"
    1083910873#include "confdefs.h"
    1084010874
     
    1093610970  lt_status=$lt_dlunknown
    1093710971  cat > conftest.$ac_ext <<EOF
    10938 #line 10938 "configure"
     10972#line 10972 "configure"
    1093910973#include "confdefs.h"
    1094010974
     
    1328013314   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1328113315   -e 's:$: $lt_compiler_flag:'`
    13282    (eval echo "\"\$as_me:13282: $lt_compile\"" >&5)
     13316   (eval echo "\"\$as_me:13316: $lt_compile\"" >&5)
    1328313317   (eval "$lt_compile" 2>conftest.err)
    1328413318   ac_status=$?
    1328513319   cat conftest.err >&5
    13286    echo "$as_me:13286: \$? = $ac_status" >&5
     13320   echo "$as_me:13320: \$? = $ac_status" >&5
    1328713321   if (exit $ac_status) && test -s "$ac_outfile"; then
    1328813322     # The compiler can only warn and ignore the option if not recognized
     
    1338413418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1338513419   -e 's:$: $lt_compiler_flag:'`
    13386    (eval echo "\"\$as_me:13386: $lt_compile\"" >&5)
     13420   (eval echo "\"\$as_me:13420: $lt_compile\"" >&5)
    1338713421   (eval "$lt_compile" 2>out/conftest.err)
    1338813422   ac_status=$?
    1338913423   cat out/conftest.err >&5
    13390    echo "$as_me:13390: \$? = $ac_status" >&5
     13424   echo "$as_me:13424: \$? = $ac_status" >&5
    1339113425   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1339213426   then
     
    1495414988   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1495514989   -e 's:$: $lt_compiler_flag:'`
    14956    (eval echo "\"\$as_me:14956: $lt_compile\"" >&5)
     14990   (eval echo "\"\$as_me:14990: $lt_compile\"" >&5)
    1495714991   (eval "$lt_compile" 2>conftest.err)
    1495814992   ac_status=$?
    1495914993   cat conftest.err >&5
    14960    echo "$as_me:14960: \$? = $ac_status" >&5
     14994   echo "$as_me:14994: \$? = $ac_status" >&5
    1496114995   if (exit $ac_status) && test -s "$ac_outfile"; then
    1496214996     # The compiler can only warn and ignore the option if not recognized
     
    1505815092   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1505915093   -e 's:$: $lt_compiler_flag:'`
    15060    (eval echo "\"\$as_me:15060: $lt_compile\"" >&5)
     15094   (eval echo "\"\$as_me:15094: $lt_compile\"" >&5)
    1506115095   (eval "$lt_compile" 2>out/conftest.err)
    1506215096   ac_status=$?
    1506315097   cat out/conftest.err >&5
    15064    echo "$as_me:15064: \$? = $ac_status" >&5
     15098   echo "$as_me:15098: \$? = $ac_status" >&5
    1506515099   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1506615100   then
     
    1726517299   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1726617300   -e 's:$: $lt_compiler_flag:'`
    17267    (eval echo "\"\$as_me:17267: $lt_compile\"" >&5)
     17301   (eval echo "\"\$as_me:17301: $lt_compile\"" >&5)
    1726817302   (eval "$lt_compile" 2>conftest.err)
    1726917303   ac_status=$?
    1727017304   cat conftest.err >&5
    17271    echo "$as_me:17271: \$? = $ac_status" >&5
     17305   echo "$as_me:17305: \$? = $ac_status" >&5
    1727217306   if (exit $ac_status) && test -s "$ac_outfile"; then
    1727317307     # The compiler can only warn and ignore the option if not recognized
     
    1753317567   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1753417568   -e 's:$: $lt_compiler_flag:'`
    17535    (eval echo "\"\$as_me:17535: $lt_compile\"" >&5)
     17569   (eval echo "\"\$as_me:17569: $lt_compile\"" >&5)
    1753617570   (eval "$lt_compile" 2>conftest.err)
    1753717571   ac_status=$?
    1753817572   cat conftest.err >&5
    17539    echo "$as_me:17539: \$? = $ac_status" >&5
     17573   echo "$as_me:17573: \$? = $ac_status" >&5
    1754017574   if (exit $ac_status) && test -s "$ac_outfile"; then
    1754117575     # The compiler can only warn and ignore the option if not recognized
     
    1763717671   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1763817672   -e 's:$: $lt_compiler_flag:'`
    17639    (eval echo "\"\$as_me:17639: $lt_compile\"" >&5)
     17673   (eval echo "\"\$as_me:17673: $lt_compile\"" >&5)
    1764017674   (eval "$lt_compile" 2>out/conftest.err)
    1764117675   ac_status=$?
    1764217676   cat out/conftest.err >&5
    17643    echo "$as_me:17643: \$? = $ac_status" >&5
     17677   echo "$as_me:17677: \$? = $ac_status" >&5
    1764417678   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1764517679   then
     
    2076520799
    2076620800
     20801
     20802
     20803
     20804
     20805
     20806
     20807
     20808
     20809
     20810
    2076720811#check if user provided LIBS, CFLAGS, or DATA for module
    2076820812if test $coin_has_coindepend != skipping; then
     
    2082620870    if test "$CYGPATH_W" != "echo" ; then
    2082720871      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    20828           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    20829         fi
     20872      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20873    fi
    2083020874    COINDEPEND_CFLAGS="$cflags"
    2083120875    COINDEPEND_LIBS=`$PKG_CONFIG --libs "cgl osi coinutils" 2>/dev/null`
     
    2083420878        echo "$as_me:$LINENO: result: yes: $COINDEPEND_VERSIONS" >&5
    2083520879echo "${ECHO_T}yes: $COINDEPEND_VERSIONS" >&6
    20836         CBCLIB_PCREQUIRES="cgl osi coinutils $CBCLIB_PCREQUIRES"
    20837         CBCGENERIC_PCREQUIRES="cgl osi coinutils $CBCGENERIC_PCREQUIRES"
     20880
     20881        # adjust linker flags for (i)cl compiler
     20882        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     20883        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     20884        then
     20885          COINDEPEND_LIBS=`echo " $COINDEPEND_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     20886        fi
     20887
     20888        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     20889
     20890          CBCLIB_PCREQUIRES="cgl osi coinutils $CBCLIB_PCREQUIRES"
     20891          CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS"
     20892          CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS"
     20893
     20894          CBCGENERIC_PCREQUIRES="cgl osi coinutils $CBCGENERIC_PCREQUIRES"
     20895          CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS"
     20896          CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS"
    2083820897
    2083920898
     
    2085920918    export PKG_CONFIG_PATH
    2086020919
    20861     # augment X_CFLAGS and X_LIBS for each build target X in CbcLib CbcGeneric
    20862 
    20863       CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS"
    20864       CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS"
    20865 
    20866       CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS"
    20867       CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS"
    20868 
    2086920920  else
    2087020921    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2087620927coin_has_coindepend=notGiven
    2087720928COINDEPEND_LIBS=
     20929COINDEPEND_LIBS_INSTALLED=
    2087820930COINDEPEND_CFLAGS=
     20931COINDEPEND_CFLAGS_INSTALLED=
    2087920932COINDEPEND_DATA=
     20933COINDEPEND_DATA_INSTALLED=
    2088020934
    2088120935# initial list of dependencies is "cgl osi coinutils", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2088420938# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2088520939# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     20940# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2088620941# also, we setup the DATA variable
    2088720942allproj=""
    2088820943allpcfiles=""
     20944allpcifiles=""
    2088920945while test "x$projtoprocess" != x ; do
    2089020946
     
    2089620952    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2089720953      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    20898       if test -r "$dir/$proj-uninstalled.pc" ; then
     20954      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2089920955        pcfile="$dir/$proj-uninstalled.pc"
     20956        if test -r "$dir/${proj}.pc" ; then
     20957          pcifile="$dir/${proj}.pc"
     20958        else
     20959          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     20960echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     20961          pcifile=
     20962        fi
    2090020963        break
    2090120964      fi
     
    2091120974      projtoprocess=${projtoprocess/$proj/$projrequires}
    2091220975
    20913       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    20914       if test "x$allproj" = x ; then
    20915         COINDEPEND_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     20976      # read DATA from $pcfile, if _DATA is still empty
     20977      if test "x$COINDEPEND_DATA" = x ; then
     20978        projdatadir=
     20979        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     20980        eval `sh -c "$pcfilemod"`
     20981        COINDEPEND_DATA="$projdatadir"
    2091620982      fi
    2091720983
     
    2092420990      allproj=fail
    2092520991      break 2
     20992    fi
     20993
     20994    if test "x$pcifile" != x ; then
     20995      allpcifiles="$pcifile:$allpcifiles"
     20996
     20997      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     20998      if test "x$COINDEPEND_DATA_INSTALLED" = x ; then
     20999        projdatadir=
     21000        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     21001        eval `sh -c "$pcifilemod"`
     21002        if test "${CYGPATH_W}" != "echo"; then
     21003          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     21004        fi
     21005        COINDEPEND_DATA_INSTALLED="$projdatadir"
     21006      fi
     21007
    2092621008    fi
    2092721009
     
    2095421036    fi
    2095521037
    20956     # reconstruct the directory where the .pc file is located
    20957     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    20958 
    20959     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    20960     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    20961     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21038    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21039    #   replace "Libs:" by "echo projlibs="
     21040    #   replace "Cflags:" by "echo projcflags="
     21041    #   remove every line starting with <some word>:
     21042    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21043
     21044    # set projcflags and projlibs variables by running $pcfilemod
     21045    projcflags=
     21046    projlibs=
     21047    eval `sh -c "$pcfilemod"`
     21048
     21049    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21050    if test "${CYGPATH_W}" != "echo"; then
     21051      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21052    fi
    2096221053    COINDEPEND_CFLAGS="$projcflags $COINDEPEND_CFLAGS"
    2096321054
    20964     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    20965     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    20966     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    20967     if test "x$projlibs" != x ; then
    20968       if test -d "${pcfiledir}/src" ; then
    20969         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    20970       else
    20971         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    20972       fi
    20973     else
    20974       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    20975     fi
     21055    # set LIBS variable
    2097621056    COINDEPEND_LIBS="$projlibs $COINDEPEND_LIBS"
    2097721057
     
    2098121061  done
    2098221062  IFS="$save_IFS"
     21063
     21064
     21065  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     21066  # important is here again to obey the reverse order that has been setup before,
     21067  # since then libraries that are required by several others should be after these other libraries
     21068  pcfilesprocessed=""
     21069
     21070  save_IFS="$IFS"
     21071  IFS=":"
     21072  for pcfile in $allpcifiles ; do
     21073
     21074    # if $pcfile has been processed already, skip this round
     21075    if test "x$pcfilesprocessed" != x ; then
     21076      for pcfiledone in $pcfilesprocessed ; do
     21077        if test "$pcfiledone" = "$pcfile" ; then
     21078          continue 2
     21079        fi
     21080      done
     21081    fi
     21082
     21083    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21084    #   replace "Libs:" by "echo projlibs="
     21085    #   replace "Cflags:" by "echo projcflags="
     21086    #   remove every line starting with <some word>:
     21087    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21088
     21089    # set projcflags and projlibs variables by running $pcfilemod
     21090    projcflags=
     21091    projlibs=
     21092    eval `sh -c "$pcfilemod"`
     21093
     21094    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21095    if test "${CYGPATH_W}" != "echo"; then
     21096      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21097    fi
     21098    COINDEPEND_CFLAGS_INSTALLED="$projcflags $COINDEPEND_CFLAGS_INSTALLED"
     21099
     21100    # set LIBS variable
     21101    COINDEPEND_LIBS_INSTALLED="$projlibs $COINDEPEND_LIBS_INSTALLED"
     21102
     21103    # remember that we have processed $pcfile
     21104    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21105
     21106  done
     21107  IFS="$save_IFS"
     21108
    2098321109
    2098421110  # finish up
     
    2099221118
    2099321119
     21120  # adjust linker flags for (i)cl compiler
     21121  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     21122  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     21123  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     21124  #    everything of the form "-lname" by "libname.lib"
     21125  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21126  then
     21127    COINDEPEND_LIBS=`echo " $COINDEPEND_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21128    COINDEPEND_LIBS_INSTALLED=`echo " $COINDEPEND_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     21129  fi
     21130
    2099421131
    2099521132    CBCLIB_PCREQUIRES="cgl osi coinutils $CBCLIB_PCREQUIRES"
    2099621133    CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS"
    2099721134    CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS"
     21135    CBCLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     21136    CBCLIB_LIBS_INSTALLED="$COINDEPEND_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    2099821137
    2099921138    CBCGENERIC_PCREQUIRES="cgl osi coinutils $CBCGENERIC_PCREQUIRES"
    2100021139    CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS"
    2100121140    CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS"
     21141    CBCGENERIC_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     21142    CBCGENERIC_LIBS_INSTALLED="$COINDEPEND_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     21143
     21144
     21145fi
     21146
     21147
     21148
     21149if test $coin_has_coindepend != notGiven &&
     21150                test $coin_has_coindepend != skipping; then
     21151  COIN_HAS_COINDEPEND_TRUE=
     21152  COIN_HAS_COINDEPEND_FALSE='#'
     21153else
     21154  COIN_HAS_COINDEPEND_TRUE='#'
     21155  COIN_HAS_COINDEPEND_FALSE=
     21156fi
     21157
     21158
     21159
     21160  fi
     21161
     21162else
     21163  echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
     21164echo "${ECHO_T}$coin_has_coindepend" >&6
     21165fi
     21166
     21167if test $coin_has_coindepend != skipping &&
     21168   test $coin_has_coindepend != notGiven ; then
     21169
     21170cat >>confdefs.h <<\_ACEOF
     21171#define COIN_HAS_COINDEPEND 1
     21172_ACEOF
     21173
     21174
     21175  # construct dependencies variables from LIBS variables
     21176  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     21177  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     21178  COINDEPEND_DEPENDENCIES=`echo " $COINDEPEND_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21179
     21180    CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21181
     21182    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2100221183
    2100321184
     
    2101121192echo "$as_me: CoinDepend LIBS   are $COINDEPEND_LIBS" >&6;}
    2101221193    fi
    21013     if test -n "$COINDEPEND_DATA" ; then
    21014       { echo "$as_me:$LINENO: CoinDepend DATA   is  $COINDEPEND_DATA" >&5
    21015 echo "$as_me: CoinDepend DATA   is  $COINDEPEND_DATA" >&6;}
    21016     fi
    21017 
    21018       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    21019 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    21020       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    21021 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    21022 
    21023       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    21024 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    21025       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    21026 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    21027 
    21028   fi
    21029 
    21030 fi
    21031 
    21032 
    21033 
    21034 if test $coin_has_coindepend != notGiven &&
    21035                 test $coin_has_coindepend != skipping; then
    21036   COIN_HAS_COINDEPEND_TRUE=
    21037   COIN_HAS_COINDEPEND_FALSE='#'
    21038 else
    21039   COIN_HAS_COINDEPEND_TRUE='#'
    21040   COIN_HAS_COINDEPEND_FALSE=
    21041 fi
    21042 
    21043 
    21044 
    21045   fi
    21046 
    21047 else
    21048   echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
    21049 echo "${ECHO_T}$coin_has_coindepend" >&6
    21050 fi
    21051 
    21052 if test $coin_has_coindepend != skipping &&
    21053    test $coin_has_coindepend != notGiven ; then
    21054 
    21055 cat >>confdefs.h <<\_ACEOF
    21056 #define COIN_HAS_COINDEPEND 1
    21057 _ACEOF
    21058 
    21059 
    21060   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21061     if test -n "$COINDEPEND_CFLAGS" ; then
    21062       { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
    21063 echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
    21064     fi
    21065     if test -n "$COINDEPEND_LIBS" ; then
    21066       { echo "$as_me:$LINENO: CoinDepend LIBS   are $COINDEPEND_LIBS" >&5
    21067 echo "$as_me: CoinDepend LIBS   are $COINDEPEND_LIBS" >&6;}
     21194    if test -n "$COINDEPEND_DEPENDENCIES" ; then
     21195      { echo "$as_me:$LINENO: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&5
     21196echo "$as_me: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&6;}
    2106821197    fi
    2106921198    if test -n "$COINDEPEND_DATA" ; then
     
    2108021209      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    2108121210echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21211      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     21212echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    2108221213
    2108321214      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     
    2108521216      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2108621217echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21218      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     21219echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2108721220
    2108821221  fi
     
    2112921262CLP_CFLAGS=
    2113021263CLP_DATA=
     21264
     21265
     21266
     21267
     21268
     21269
     21270
     21271
     21272
     21273
    2113121274
    2113221275
     
    2120521348    if test "$CYGPATH_W" != "echo" ; then
    2120621349      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    21207           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21208         fi
     21350      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21351    fi
    2120921352    CLP_CFLAGS="$cflags"
    2121021353    CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
     
    2121321356        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
    2121421357echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
    21215         CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
    21216         CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
     21358
     21359        # adjust linker flags for (i)cl compiler
     21360        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     21361        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21362        then
     21363          CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21364        fi
     21365
     21366        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     21367
     21368          CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
     21369          CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
     21370          CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
     21371
     21372          CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
     21373          CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
     21374          CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
    2121721375
    2121821376
     
    2123821396    export PKG_CONFIG_PATH
    2123921397
    21240     # augment X_CFLAGS and X_LIBS for each build target X in CbcLib CbcGeneric
    21241 
    21242       CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
    21243       CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
    21244 
    21245       CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
    21246       CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
    21247 
    2124821398  else
    2124921399    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2125521405coin_has_clp=notGiven
    2125621406CLP_LIBS=
     21407CLP_LIBS_INSTALLED=
    2125721408CLP_CFLAGS=
     21409CLP_CFLAGS_INSTALLED=
    2125821410CLP_DATA=
     21411CLP_DATA_INSTALLED=
    2125921412
    2126021413# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2126321416# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2126421417# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21418# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2126521419# also, we setup the DATA variable
    2126621420allproj=""
    2126721421allpcfiles=""
     21422allpcifiles=""
    2126821423while test "x$projtoprocess" != x ; do
    2126921424
     
    2127521430    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2127621431      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    21277       if test -r "$dir/$proj-uninstalled.pc" ; then
     21432      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2127821433        pcfile="$dir/$proj-uninstalled.pc"
     21434        if test -r "$dir/${proj}.pc" ; then
     21435          pcifile="$dir/${proj}.pc"
     21436        else
     21437          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     21438echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     21439          pcifile=
     21440        fi
    2127921441        break
    2128021442      fi
     
    2129021452      projtoprocess=${projtoprocess/$proj/$projrequires}
    2129121453
    21292       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    21293       if test "x$allproj" = x ; then
    21294         CLP_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     21454      # read DATA from $pcfile, if _DATA is still empty
     21455      if test "x$CLP_DATA" = x ; then
     21456        projdatadir=
     21457        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     21458        eval `sh -c "$pcfilemod"`
     21459        CLP_DATA="$projdatadir"
    2129521460      fi
    2129621461
     
    2130321468      allproj=fail
    2130421469      break 2
     21470    fi
     21471
     21472    if test "x$pcifile" != x ; then
     21473      allpcifiles="$pcifile:$allpcifiles"
     21474
     21475      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     21476      if test "x$CLP_DATA_INSTALLED" = x ; then
     21477        projdatadir=
     21478        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     21479        eval `sh -c "$pcifilemod"`
     21480        if test "${CYGPATH_W}" != "echo"; then
     21481          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     21482        fi
     21483        CLP_DATA_INSTALLED="$projdatadir"
     21484      fi
     21485
    2130521486    fi
    2130621487
     
    2133321514    fi
    2133421515
    21335     # reconstruct the directory where the .pc file is located
    21336     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    21337 
    21338     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    21339     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    21340     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21516    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21517    #   replace "Libs:" by "echo projlibs="
     21518    #   replace "Cflags:" by "echo projcflags="
     21519    #   remove every line starting with <some word>:
     21520    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21521
     21522    # set projcflags and projlibs variables by running $pcfilemod
     21523    projcflags=
     21524    projlibs=
     21525    eval `sh -c "$pcfilemod"`
     21526
     21527    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21528    if test "${CYGPATH_W}" != "echo"; then
     21529      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21530    fi
    2134121531    CLP_CFLAGS="$projcflags $CLP_CFLAGS"
    2134221532
    21343     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    21344     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    21345     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    21346     if test "x$projlibs" != x ; then
    21347       if test -d "${pcfiledir}/src" ; then
    21348         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    21349       else
    21350         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    21351       fi
    21352     else
    21353       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    21354     fi
     21533    # set LIBS variable
    2135521534    CLP_LIBS="$projlibs $CLP_LIBS"
    2135621535
     
    2136021539  done
    2136121540  IFS="$save_IFS"
     21541
     21542
     21543  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     21544  # important is here again to obey the reverse order that has been setup before,
     21545  # since then libraries that are required by several others should be after these other libraries
     21546  pcfilesprocessed=""
     21547
     21548  save_IFS="$IFS"
     21549  IFS=":"
     21550  for pcfile in $allpcifiles ; do
     21551
     21552    # if $pcfile has been processed already, skip this round
     21553    if test "x$pcfilesprocessed" != x ; then
     21554      for pcfiledone in $pcfilesprocessed ; do
     21555        if test "$pcfiledone" = "$pcfile" ; then
     21556          continue 2
     21557        fi
     21558      done
     21559    fi
     21560
     21561    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21562    #   replace "Libs:" by "echo projlibs="
     21563    #   replace "Cflags:" by "echo projcflags="
     21564    #   remove every line starting with <some word>:
     21565    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21566
     21567    # set projcflags and projlibs variables by running $pcfilemod
     21568    projcflags=
     21569    projlibs=
     21570    eval `sh -c "$pcfilemod"`
     21571
     21572    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21573    if test "${CYGPATH_W}" != "echo"; then
     21574      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21575    fi
     21576    CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
     21577
     21578    # set LIBS variable
     21579    CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
     21580
     21581    # remember that we have processed $pcfile
     21582    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21583
     21584  done
     21585  IFS="$save_IFS"
     21586
    2136221587
    2136321588  # finish up
     
    2137121596
    2137221597
     21598  # adjust linker flags for (i)cl compiler
     21599  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     21600  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     21601  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     21602  #    everything of the form "-lname" by "libname.lib"
     21603  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21604  then
     21605    CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21606    CLP_LIBS_INSTALLED=`echo " $CLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     21607  fi
     21608
    2137321609
    2137421610    CBCLIB_PCREQUIRES="osi-clp $CBCLIB_PCREQUIRES"
    2137521611    CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS"
    2137621612    CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS"
     21613    CBCLIB_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     21614    CBCLIB_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    2137721615
    2137821616    CBCGENERIC_PCREQUIRES="osi-clp $CBCGENERIC_PCREQUIRES"
    2137921617    CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS"
    2138021618    CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS"
     21619    CBCGENERIC_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     21620    CBCGENERIC_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     21621
     21622
     21623fi
     21624
     21625
     21626
     21627if test $coin_has_clp != notGiven &&
     21628                test $coin_has_clp != skipping; then
     21629  COIN_HAS_CLP_TRUE=
     21630  COIN_HAS_CLP_FALSE='#'
     21631else
     21632  COIN_HAS_CLP_TRUE='#'
     21633  COIN_HAS_CLP_FALSE=
     21634fi
     21635
     21636
     21637
     21638  fi
     21639
     21640else
     21641  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     21642echo "${ECHO_T}$coin_has_clp" >&6
     21643fi
     21644
     21645if test $coin_has_clp != skipping &&
     21646   test $coin_has_clp != notGiven ; then
     21647
     21648cat >>confdefs.h <<\_ACEOF
     21649#define COIN_HAS_CLP 1
     21650_ACEOF
     21651
     21652
     21653  # construct dependencies variables from LIBS variables
     21654  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     21655  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     21656  CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21657
     21658    CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     21659
     21660    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2138121661
    2138221662
     
    2139021670echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
    2139121671    fi
    21392     if test -n "$CLP_DATA" ; then
    21393       { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
    21394 echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
    21395     fi
    21396 
    21397       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    21398 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    21399       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    21400 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    21401 
    21402       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    21403 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    21404       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    21405 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    21406 
    21407   fi
    21408 
    21409 fi
    21410 
    21411 
    21412 
    21413 if test $coin_has_clp != notGiven &&
    21414                 test $coin_has_clp != skipping; then
    21415   COIN_HAS_CLP_TRUE=
    21416   COIN_HAS_CLP_FALSE='#'
    21417 else
    21418   COIN_HAS_CLP_TRUE='#'
    21419   COIN_HAS_CLP_FALSE=
    21420 fi
    21421 
    21422 
    21423 
    21424   fi
    21425 
    21426 else
    21427   echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    21428 echo "${ECHO_T}$coin_has_clp" >&6
    21429 fi
    21430 
    21431 if test $coin_has_clp != skipping &&
    21432    test $coin_has_clp != notGiven ; then
    21433 
    21434 cat >>confdefs.h <<\_ACEOF
    21435 #define COIN_HAS_CLP 1
    21436 _ACEOF
    21437 
    21438 
    21439   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21440     if test -n "$CLP_CFLAGS" ; then
    21441       { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
    21442 echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
    21443     fi
    21444     if test -n "$CLP_LIBS" ; then
    21445       { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
    21446 echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
     21672    if test -n "$CLP_DEPENDENCIES" ; then
     21673      { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
     21674echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
    2144721675    fi
    2144821676    if test -n "$CLP_DATA" ; then
     
    2145921687      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    2146021688echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     21689      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     21690echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    2146121691
    2146221692      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     
    2146421694      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2146521695echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     21696      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     21697echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2146621698
    2146721699  fi
     
    2150821740OSITESTS_CFLAGS=
    2150921741OSITESTS_DATA=
     21742
     21743
     21744
     21745
    2151021746
    2151121747
     
    2156621802    if test "$CYGPATH_W" != "echo" ; then
    2156721803      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    21568           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21569         fi
     21804      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21805    fi
    2157021806    OSITESTS_CFLAGS="$cflags"
    2157121807    OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
     
    2157521811echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
    2157621812
     21813        # adjust linker flags for (i)cl compiler
     21814        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     21815        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     21816        then
     21817          OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     21818        fi
     21819
     21820        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     21821
    2157721822
    2157821823
     
    2159721842    export PKG_CONFIG_PATH
    2159821843
    21599     # augment X_CFLAGS and X_LIBS for each build target X in
    21600 
    2160121844  else
    2160221845    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2160821851coin_has_ositests=notGiven
    2160921852OSITESTS_LIBS=
     21853OSITESTS_LIBS_INSTALLED=
    2161021854OSITESTS_CFLAGS=
     21855OSITESTS_CFLAGS_INSTALLED=
    2161121856OSITESTS_DATA=
     21857OSITESTS_DATA_INSTALLED=
    2161221858
    2161321859# initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2161621862# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2161721863# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21864# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2161821865# also, we setup the DATA variable
    2161921866allproj=""
    2162021867allpcfiles=""
     21868allpcifiles=""
    2162121869while test "x$projtoprocess" != x ; do
    2162221870
     
    2162821876    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2162921877      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    21630       if test -r "$dir/$proj-uninstalled.pc" ; then
     21878      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2163121879        pcfile="$dir/$proj-uninstalled.pc"
     21880        if test -r "$dir/${proj}.pc" ; then
     21881          pcifile="$dir/${proj}.pc"
     21882        else
     21883          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     21884echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     21885          pcifile=
     21886        fi
    2163221887        break
    2163321888      fi
     
    2164321898      projtoprocess=${projtoprocess/$proj/$projrequires}
    2164421899
    21645       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    21646       if test "x$allproj" = x ; then
    21647         OSITESTS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     21900      # read DATA from $pcfile, if _DATA is still empty
     21901      if test "x$OSITESTS_DATA" = x ; then
     21902        projdatadir=
     21903        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     21904        eval `sh -c "$pcfilemod"`
     21905        OSITESTS_DATA="$projdatadir"
    2164821906      fi
    2164921907
     
    2165621914      allproj=fail
    2165721915      break 2
     21916    fi
     21917
     21918    if test "x$pcifile" != x ; then
     21919      allpcifiles="$pcifile:$allpcifiles"
     21920
     21921      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     21922      if test "x$OSITESTS_DATA_INSTALLED" = x ; then
     21923        projdatadir=
     21924        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     21925        eval `sh -c "$pcifilemod"`
     21926        if test "${CYGPATH_W}" != "echo"; then
     21927          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     21928        fi
     21929        OSITESTS_DATA_INSTALLED="$projdatadir"
     21930      fi
     21931
    2165821932    fi
    2165921933
     
    2168621960    fi
    2168721961
    21688     # reconstruct the directory where the .pc file is located
    21689     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    21690 
    21691     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    21692     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    21693     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21962    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     21963    #   replace "Libs:" by "echo projlibs="
     21964    #   replace "Cflags:" by "echo projcflags="
     21965    #   remove every line starting with <some word>:
     21966    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     21967
     21968    # set projcflags and projlibs variables by running $pcfilemod
     21969    projcflags=
     21970    projlibs=
     21971    eval `sh -c "$pcfilemod"`
     21972
     21973    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     21974    if test "${CYGPATH_W}" != "echo"; then
     21975      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21976    fi
    2169421977    OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
    2169521978
    21696     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    21697     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    21698     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    21699     if test "x$projlibs" != x ; then
    21700       if test -d "${pcfiledir}/src" ; then
    21701         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    21702       else
    21703         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    21704       fi
    21705     else
    21706       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    21707     fi
     21979    # set LIBS variable
    2170821980    OSITESTS_LIBS="$projlibs $OSITESTS_LIBS"
    2170921981
     
    2171321985  done
    2171421986  IFS="$save_IFS"
     21987
     21988
     21989  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     21990  # important is here again to obey the reverse order that has been setup before,
     21991  # since then libraries that are required by several others should be after these other libraries
     21992  pcfilesprocessed=""
     21993
     21994  save_IFS="$IFS"
     21995  IFS=":"
     21996  for pcfile in $allpcifiles ; do
     21997
     21998    # if $pcfile has been processed already, skip this round
     21999    if test "x$pcfilesprocessed" != x ; then
     22000      for pcfiledone in $pcfilesprocessed ; do
     22001        if test "$pcfiledone" = "$pcfile" ; then
     22002          continue 2
     22003        fi
     22004      done
     22005    fi
     22006
     22007    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22008    #   replace "Libs:" by "echo projlibs="
     22009    #   replace "Cflags:" by "echo projcflags="
     22010    #   remove every line starting with <some word>:
     22011    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22012
     22013    # set projcflags and projlibs variables by running $pcfilemod
     22014    projcflags=
     22015    projlibs=
     22016    eval `sh -c "$pcfilemod"`
     22017
     22018    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22019    if test "${CYGPATH_W}" != "echo"; then
     22020      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22021    fi
     22022    OSITESTS_CFLAGS_INSTALLED="$projcflags $OSITESTS_CFLAGS_INSTALLED"
     22023
     22024    # set LIBS variable
     22025    OSITESTS_LIBS_INSTALLED="$projlibs $OSITESTS_LIBS_INSTALLED"
     22026
     22027    # remember that we have processed $pcfile
     22028    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22029
     22030  done
     22031  IFS="$save_IFS"
     22032
    2171522033
    2171622034  # finish up
     
    2172422042
    2172522043
     22044  # adjust linker flags for (i)cl compiler
     22045  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     22046  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22047  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22048  #    everything of the form "-lname" by "libname.lib"
     22049  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22050  then
     22051    OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22052    OSITESTS_LIBS_INSTALLED=`echo " $OSITESTS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22053  fi
     22054
     22055
     22056
     22057fi
     22058
     22059
     22060
     22061if test $coin_has_ositests != notGiven &&
     22062                test $coin_has_ositests != skipping; then
     22063  COIN_HAS_OSITESTS_TRUE=
     22064  COIN_HAS_OSITESTS_FALSE='#'
     22065else
     22066  COIN_HAS_OSITESTS_TRUE='#'
     22067  COIN_HAS_OSITESTS_FALSE=
     22068fi
     22069
     22070
     22071
     22072  fi
     22073
     22074else
     22075  echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
     22076echo "${ECHO_T}$coin_has_ositests" >&6
     22077fi
     22078
     22079if test $coin_has_ositests != skipping &&
     22080   test $coin_has_ositests != notGiven ; then
     22081
     22082cat >>confdefs.h <<\_ACEOF
     22083#define COIN_HAS_OSITESTS 1
     22084_ACEOF
     22085
     22086
     22087  # construct dependencies variables from LIBS variables
     22088  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22089  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22090  OSITESTS_DEPENDENCIES=`echo " $OSITESTS_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2172622091
    2172722092
     
    2173522100echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
    2173622101    fi
    21737     if test -n "$OSITESTS_DATA" ; then
    21738       { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
    21739 echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
    21740     fi
    21741 
    21742   fi
    21743 
    21744 fi
    21745 
    21746 
    21747 
    21748 if test $coin_has_ositests != notGiven &&
    21749                 test $coin_has_ositests != skipping; then
    21750   COIN_HAS_OSITESTS_TRUE=
    21751   COIN_HAS_OSITESTS_FALSE='#'
    21752 else
    21753   COIN_HAS_OSITESTS_TRUE='#'
    21754   COIN_HAS_OSITESTS_FALSE=
    21755 fi
    21756 
    21757 
    21758 
    21759   fi
    21760 
    21761 else
    21762   echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
    21763 echo "${ECHO_T}$coin_has_ositests" >&6
    21764 fi
    21765 
    21766 if test $coin_has_ositests != skipping &&
    21767    test $coin_has_ositests != notGiven ; then
    21768 
    21769 cat >>confdefs.h <<\_ACEOF
    21770 #define COIN_HAS_OSITESTS 1
    21771 _ACEOF
    21772 
    21773 
    21774   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21775     if test -n "$OSITESTS_CFLAGS" ; then
    21776       { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
    21777 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
    21778     fi
    21779     if test -n "$OSITESTS_LIBS" ; then
    21780       { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
    21781 echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
     22102    if test -n "$OSITESTS_DEPENDENCIES" ; then
     22103      { echo "$as_me:$LINENO: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&5
     22104echo "$as_me: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&6;}
    2178222105    fi
    2178322106    if test -n "$OSITESTS_DATA" ; then
     
    2183022153
    2183122154
     22155
     22156
     22157
     22158
    2183222159#check if user provided LIBS, CFLAGS, or DATA for module
    2183322160if test $coin_has_sample != skipping; then
     
    2188322210    if test "$CYGPATH_W" != "echo" ; then
    2188422211      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    21885           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21886         fi
     22212      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22213    fi
    2188722214    SAMPLE_CFLAGS="$cflags"
    2188822215    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
     
    2189222219echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
    2189322220
     22221        # adjust linker flags for (i)cl compiler
     22222        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     22223        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22224        then
     22225          SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22226        fi
     22227
     22228        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     22229
    2189422230
    2189522231
     
    2191422250    export PKG_CONFIG_PATH
    2191522251
    21916     # augment X_CFLAGS and X_LIBS for each build target X in
    21917 
    2191822252  else
    2191922253    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2192522259coin_has_sample=notGiven
    2192622260SAMPLE_LIBS=
     22261SAMPLE_LIBS_INSTALLED=
    2192722262SAMPLE_CFLAGS=
     22263SAMPLE_CFLAGS_INSTALLED=
    2192822264SAMPLE_DATA=
     22265SAMPLE_DATA_INSTALLED=
    2192922266
    2193022267# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2193322270# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2193422271# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22272# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2193522273# also, we setup the DATA variable
    2193622274allproj=""
    2193722275allpcfiles=""
     22276allpcifiles=""
    2193822277while test "x$projtoprocess" != x ; do
    2193922278
     
    2194522284    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2194622285      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    21947       if test -r "$dir/$proj-uninstalled.pc" ; then
     22286      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2194822287        pcfile="$dir/$proj-uninstalled.pc"
     22288        if test -r "$dir/${proj}.pc" ; then
     22289          pcifile="$dir/${proj}.pc"
     22290        else
     22291          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22292echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22293          pcifile=
     22294        fi
    2194922295        break
    2195022296      fi
     
    2196022306      projtoprocess=${projtoprocess/$proj/$projrequires}
    2196122307
    21962       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    21963       if test "x$allproj" = x ; then
    21964         SAMPLE_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     22308      # read DATA from $pcfile, if _DATA is still empty
     22309      if test "x$SAMPLE_DATA" = x ; then
     22310        projdatadir=
     22311        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22312        eval `sh -c "$pcfilemod"`
     22313        SAMPLE_DATA="$projdatadir"
    2196522314      fi
    2196622315
     
    2197322322      allproj=fail
    2197422323      break 2
     22324    fi
     22325
     22326    if test "x$pcifile" != x ; then
     22327      allpcifiles="$pcifile:$allpcifiles"
     22328
     22329      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22330      if test "x$SAMPLE_DATA_INSTALLED" = x ; then
     22331        projdatadir=
     22332        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22333        eval `sh -c "$pcifilemod"`
     22334        if test "${CYGPATH_W}" != "echo"; then
     22335          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22336        fi
     22337        SAMPLE_DATA_INSTALLED="$projdatadir"
     22338      fi
     22339
    2197522340    fi
    2197622341
     
    2200322368    fi
    2200422369
    22005     # reconstruct the directory where the .pc file is located
    22006     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    22007 
    22008     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22009     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22010     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22370    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22371    #   replace "Libs:" by "echo projlibs="
     22372    #   replace "Cflags:" by "echo projcflags="
     22373    #   remove every line starting with <some word>:
     22374    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22375
     22376    # set projcflags and projlibs variables by running $pcfilemod
     22377    projcflags=
     22378    projlibs=
     22379    eval `sh -c "$pcfilemod"`
     22380
     22381    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22382    if test "${CYGPATH_W}" != "echo"; then
     22383      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22384    fi
    2201122385    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
    2201222386
    22013     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22014     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22015     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22016     if test "x$projlibs" != x ; then
    22017       if test -d "${pcfiledir}/src" ; then
    22018         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22019       else
    22020         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22021       fi
    22022     else
    22023       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22024     fi
     22387    # set LIBS variable
    2202522388    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
    2202622389
     
    2203022393  done
    2203122394  IFS="$save_IFS"
     22395
     22396
     22397  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22398  # important is here again to obey the reverse order that has been setup before,
     22399  # since then libraries that are required by several others should be after these other libraries
     22400  pcfilesprocessed=""
     22401
     22402  save_IFS="$IFS"
     22403  IFS=":"
     22404  for pcfile in $allpcifiles ; do
     22405
     22406    # if $pcfile has been processed already, skip this round
     22407    if test "x$pcfilesprocessed" != x ; then
     22408      for pcfiledone in $pcfilesprocessed ; do
     22409        if test "$pcfiledone" = "$pcfile" ; then
     22410          continue 2
     22411        fi
     22412      done
     22413    fi
     22414
     22415    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22416    #   replace "Libs:" by "echo projlibs="
     22417    #   replace "Cflags:" by "echo projcflags="
     22418    #   remove every line starting with <some word>:
     22419    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22420
     22421    # set projcflags and projlibs variables by running $pcfilemod
     22422    projcflags=
     22423    projlibs=
     22424    eval `sh -c "$pcfilemod"`
     22425
     22426    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22427    if test "${CYGPATH_W}" != "echo"; then
     22428      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22429    fi
     22430    SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
     22431
     22432    # set LIBS variable
     22433    SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
     22434
     22435    # remember that we have processed $pcfile
     22436    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22437
     22438  done
     22439  IFS="$save_IFS"
     22440
    2203222441
    2203322442  # finish up
     
    2204122450
    2204222451
     22452  # adjust linker flags for (i)cl compiler
     22453  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     22454  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22455  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22456  #    everything of the form "-lname" by "libname.lib"
     22457  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22458  then
     22459    SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22460    SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22461  fi
     22462
     22463
     22464
     22465fi
     22466
     22467
     22468
     22469if test $coin_has_sample != notGiven &&
     22470                test $coin_has_sample != skipping; then
     22471  COIN_HAS_SAMPLE_TRUE=
     22472  COIN_HAS_SAMPLE_FALSE='#'
     22473else
     22474  COIN_HAS_SAMPLE_TRUE='#'
     22475  COIN_HAS_SAMPLE_FALSE=
     22476fi
     22477
     22478
     22479
     22480  fi
     22481
     22482else
     22483  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     22484echo "${ECHO_T}$coin_has_sample" >&6
     22485fi
     22486
     22487if test $coin_has_sample != skipping &&
     22488   test $coin_has_sample != notGiven ; then
     22489
     22490cat >>confdefs.h <<\_ACEOF
     22491#define COIN_HAS_SAMPLE 1
     22492_ACEOF
     22493
     22494
     22495  # construct dependencies variables from LIBS variables
     22496  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22497  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22498  SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2204322499
    2204422500
     
    2205222508echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
    2205322509    fi
    22054     if test -n "$SAMPLE_DATA" ; then
    22055       { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
    22056 echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
    22057     fi
    22058 
    22059   fi
    22060 
    22061 fi
    22062 
    22063 
    22064 
    22065 if test $coin_has_sample != notGiven &&
    22066                 test $coin_has_sample != skipping; then
    22067   COIN_HAS_SAMPLE_TRUE=
    22068   COIN_HAS_SAMPLE_FALSE='#'
    22069 else
    22070   COIN_HAS_SAMPLE_TRUE='#'
    22071   COIN_HAS_SAMPLE_FALSE=
    22072 fi
    22073 
    22074 
    22075 
    22076   fi
    22077 
    22078 else
    22079   echo "$as_me:$LINENO: result: $coin_has_sample" >&5
    22080 echo "${ECHO_T}$coin_has_sample" >&6
    22081 fi
    22082 
    22083 if test $coin_has_sample != skipping &&
    22084    test $coin_has_sample != notGiven ; then
    22085 
    22086 cat >>confdefs.h <<\_ACEOF
    22087 #define COIN_HAS_SAMPLE 1
    22088 _ACEOF
    22089 
    22090 
    22091   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22092     if test -n "$SAMPLE_CFLAGS" ; then
    22093       { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
    22094 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
    22095     fi
    22096     if test -n "$SAMPLE_LIBS" ; then
    22097       { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
    22098 echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     22510    if test -n "$SAMPLE_DEPENDENCIES" ; then
     22511      { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
     22512echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
    2209922513    fi
    2210022514    if test -n "$SAMPLE_DATA" ; then
     
    2214722561
    2214822562
     22563
     22564
     22565
     22566
    2214922567#check if user provided LIBS, CFLAGS, or DATA for module
    2215022568if test $coin_has_netlib != skipping; then
     
    2220022618    if test "$CYGPATH_W" != "echo" ; then
    2220122619      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22202           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22203         fi
     22620      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22621    fi
    2220422622    NETLIB_CFLAGS="$cflags"
    2220522623    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
     
    2220922627echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
    2221022628
     22629        # adjust linker flags for (i)cl compiler
     22630        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     22631        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22632        then
     22633          NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22634        fi
     22635
     22636        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     22637
    2221122638
    2221222639
     
    2223122658    export PKG_CONFIG_PATH
    2223222659
    22233     # augment X_CFLAGS and X_LIBS for each build target X in
    22234 
    2223522660  else
    2223622661    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2224222667coin_has_netlib=notGiven
    2224322668NETLIB_LIBS=
     22669NETLIB_LIBS_INSTALLED=
    2224422670NETLIB_CFLAGS=
     22671NETLIB_CFLAGS_INSTALLED=
    2224522672NETLIB_DATA=
     22673NETLIB_DATA_INSTALLED=
    2224622674
    2224722675# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2225022678# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2225122679# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22680# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2225222681# also, we setup the DATA variable
    2225322682allproj=""
    2225422683allpcfiles=""
     22684allpcifiles=""
    2225522685while test "x$projtoprocess" != x ; do
    2225622686
     
    2226222692    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2226322693      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    22264       if test -r "$dir/$proj-uninstalled.pc" ; then
     22694      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2226522695        pcfile="$dir/$proj-uninstalled.pc"
     22696        if test -r "$dir/${proj}.pc" ; then
     22697          pcifile="$dir/${proj}.pc"
     22698        else
     22699          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22700echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22701          pcifile=
     22702        fi
    2226622703        break
    2226722704      fi
     
    2227722714      projtoprocess=${projtoprocess/$proj/$projrequires}
    2227822715
    22279       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22280       if test "x$allproj" = x ; then
    22281         NETLIB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     22716      # read DATA from $pcfile, if _DATA is still empty
     22717      if test "x$NETLIB_DATA" = x ; then
     22718        projdatadir=
     22719        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22720        eval `sh -c "$pcfilemod"`
     22721        NETLIB_DATA="$projdatadir"
    2228222722      fi
    2228322723
     
    2229022730      allproj=fail
    2229122731      break 2
     22732    fi
     22733
     22734    if test "x$pcifile" != x ; then
     22735      allpcifiles="$pcifile:$allpcifiles"
     22736
     22737      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22738      if test "x$NETLIB_DATA_INSTALLED" = x ; then
     22739        projdatadir=
     22740        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22741        eval `sh -c "$pcifilemod"`
     22742        if test "${CYGPATH_W}" != "echo"; then
     22743          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22744        fi
     22745        NETLIB_DATA_INSTALLED="$projdatadir"
     22746      fi
     22747
    2229222748    fi
    2229322749
     
    2232022776    fi
    2232122777
    22322     # reconstruct the directory where the .pc file is located
    22323     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    22324 
    22325     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22326     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22327     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22778    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22779    #   replace "Libs:" by "echo projlibs="
     22780    #   replace "Cflags:" by "echo projcflags="
     22781    #   remove every line starting with <some word>:
     22782    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22783
     22784    # set projcflags and projlibs variables by running $pcfilemod
     22785    projcflags=
     22786    projlibs=
     22787    eval `sh -c "$pcfilemod"`
     22788
     22789    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22790    if test "${CYGPATH_W}" != "echo"; then
     22791      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22792    fi
    2232822793    NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
    2232922794
    22330     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22331     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22332     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22333     if test "x$projlibs" != x ; then
    22334       if test -d "${pcfiledir}/src" ; then
    22335         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22336       else
    22337         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22338       fi
    22339     else
    22340       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22341     fi
     22795    # set LIBS variable
    2234222796    NETLIB_LIBS="$projlibs $NETLIB_LIBS"
    2234322797
     
    2234722801  done
    2234822802  IFS="$save_IFS"
     22803
     22804
     22805  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22806  # important is here again to obey the reverse order that has been setup before,
     22807  # since then libraries that are required by several others should be after these other libraries
     22808  pcfilesprocessed=""
     22809
     22810  save_IFS="$IFS"
     22811  IFS=":"
     22812  for pcfile in $allpcifiles ; do
     22813
     22814    # if $pcfile has been processed already, skip this round
     22815    if test "x$pcfilesprocessed" != x ; then
     22816      for pcfiledone in $pcfilesprocessed ; do
     22817        if test "$pcfiledone" = "$pcfile" ; then
     22818          continue 2
     22819        fi
     22820      done
     22821    fi
     22822
     22823    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22824    #   replace "Libs:" by "echo projlibs="
     22825    #   replace "Cflags:" by "echo projcflags="
     22826    #   remove every line starting with <some word>:
     22827    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22828
     22829    # set projcflags and projlibs variables by running $pcfilemod
     22830    projcflags=
     22831    projlibs=
     22832    eval `sh -c "$pcfilemod"`
     22833
     22834    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22835    if test "${CYGPATH_W}" != "echo"; then
     22836      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22837    fi
     22838    NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
     22839
     22840    # set LIBS variable
     22841    NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
     22842
     22843    # remember that we have processed $pcfile
     22844    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22845
     22846  done
     22847  IFS="$save_IFS"
     22848
    2234922849
    2235022850  # finish up
     
    2235822858
    2235922859
     22860  # adjust linker flags for (i)cl compiler
     22861  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     22862  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22863  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22864  #    everything of the form "-lname" by "libname.lib"
     22865  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22866  then
     22867    NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22868    NETLIB_LIBS_INSTALLED=`echo " $NETLIB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22869  fi
     22870
     22871
     22872
     22873fi
     22874
     22875
     22876
     22877if test $coin_has_netlib != notGiven &&
     22878                test $coin_has_netlib != skipping; then
     22879  COIN_HAS_NETLIB_TRUE=
     22880  COIN_HAS_NETLIB_FALSE='#'
     22881else
     22882  COIN_HAS_NETLIB_TRUE='#'
     22883  COIN_HAS_NETLIB_FALSE=
     22884fi
     22885
     22886
     22887
     22888  fi
     22889
     22890else
     22891  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     22892echo "${ECHO_T}$coin_has_netlib" >&6
     22893fi
     22894
     22895if test $coin_has_netlib != skipping &&
     22896   test $coin_has_netlib != notGiven ; then
     22897
     22898cat >>confdefs.h <<\_ACEOF
     22899#define COIN_HAS_NETLIB 1
     22900_ACEOF
     22901
     22902
     22903  # construct dependencies variables from LIBS variables
     22904  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22905  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22906  NETLIB_DEPENDENCIES=`echo " $NETLIB_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2236022907
    2236122908
     
    2236922916echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
    2237022917    fi
    22371     if test -n "$NETLIB_DATA" ; then
    22372       { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
    22373 echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
    22374     fi
    22375 
    22376   fi
    22377 
    22378 fi
    22379 
    22380 
    22381 
    22382 if test $coin_has_netlib != notGiven &&
    22383                 test $coin_has_netlib != skipping; then
    22384   COIN_HAS_NETLIB_TRUE=
    22385   COIN_HAS_NETLIB_FALSE='#'
    22386 else
    22387   COIN_HAS_NETLIB_TRUE='#'
    22388   COIN_HAS_NETLIB_FALSE=
    22389 fi
    22390 
    22391 
    22392 
    22393   fi
    22394 
    22395 else
    22396   echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
    22397 echo "${ECHO_T}$coin_has_netlib" >&6
    22398 fi
    22399 
    22400 if test $coin_has_netlib != skipping &&
    22401    test $coin_has_netlib != notGiven ; then
    22402 
    22403 cat >>confdefs.h <<\_ACEOF
    22404 #define COIN_HAS_NETLIB 1
    22405 _ACEOF
    22406 
    22407 
    22408   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22409     if test -n "$NETLIB_CFLAGS" ; then
    22410       { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
    22411 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
    22412     fi
    22413     if test -n "$NETLIB_LIBS" ; then
    22414       { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
    22415 echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     22918    if test -n "$NETLIB_DEPENDENCIES" ; then
     22919      { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
     22920echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
    2241622921    fi
    2241722922    if test -n "$NETLIB_DATA" ; then
     
    2246422969
    2246522970
     22971
     22972
     22973
     22974
    2246622975#check if user provided LIBS, CFLAGS, or DATA for module
    2246722976if test $coin_has_miplib3 != skipping; then
     
    2251723026    if test "$CYGPATH_W" != "echo" ; then
    2251823027      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22519           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22520         fi
     23028      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23029    fi
    2252123030    MIPLIB3_CFLAGS="$cflags"
    2252223031    MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null`
     
    2252623035echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6
    2252723036
     23037        # adjust linker flags for (i)cl compiler
     23038        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     23039        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23040        then
     23041          MIPLIB3_LIBS=`echo " $MIPLIB3_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23042        fi
     23043
     23044        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     23045
    2252823046
    2252923047
     
    2254823066    export PKG_CONFIG_PATH
    2254923067
    22550     # augment X_CFLAGS and X_LIBS for each build target X in
    22551 
    2255223068  else
    2255323069    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2255923075coin_has_miplib3=notGiven
    2256023076MIPLIB3_LIBS=
     23077MIPLIB3_LIBS_INSTALLED=
    2256123078MIPLIB3_CFLAGS=
     23079MIPLIB3_CFLAGS_INSTALLED=
    2256223080MIPLIB3_DATA=
     23081MIPLIB3_DATA_INSTALLED=
    2256323082
    2256423083# initial list of dependencies is "coindatamiplib3", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2256723086# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2256823087# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23088# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2256923089# also, we setup the DATA variable
    2257023090allproj=""
    2257123091allpcfiles=""
     23092allpcifiles=""
    2257223093while test "x$projtoprocess" != x ; do
    2257323094
     
    2257923100    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2258023101      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    22581       if test -r "$dir/$proj-uninstalled.pc" ; then
     23102      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2258223103        pcfile="$dir/$proj-uninstalled.pc"
     23104        if test -r "$dir/${proj}.pc" ; then
     23105          pcifile="$dir/${proj}.pc"
     23106        else
     23107          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23108echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23109          pcifile=
     23110        fi
    2258323111        break
    2258423112      fi
     
    2259423122      projtoprocess=${projtoprocess/$proj/$projrequires}
    2259523123
    22596       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22597       if test "x$allproj" = x ; then
    22598         MIPLIB3_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     23124      # read DATA from $pcfile, if _DATA is still empty
     23125      if test "x$MIPLIB3_DATA" = x ; then
     23126        projdatadir=
     23127        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23128        eval `sh -c "$pcfilemod"`
     23129        MIPLIB3_DATA="$projdatadir"
    2259923130      fi
    2260023131
     
    2260723138      allproj=fail
    2260823139      break 2
     23140    fi
     23141
     23142    if test "x$pcifile" != x ; then
     23143      allpcifiles="$pcifile:$allpcifiles"
     23144
     23145      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23146      if test "x$MIPLIB3_DATA_INSTALLED" = x ; then
     23147        projdatadir=
     23148        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23149        eval `sh -c "$pcifilemod"`
     23150        if test "${CYGPATH_W}" != "echo"; then
     23151          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23152        fi
     23153        MIPLIB3_DATA_INSTALLED="$projdatadir"
     23154      fi
     23155
    2260923156    fi
    2261023157
     
    2263723184    fi
    2263823185
    22639     # reconstruct the directory where the .pc file is located
    22640     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    22641 
    22642     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22643     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22644     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23186    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23187    #   replace "Libs:" by "echo projlibs="
     23188    #   replace "Cflags:" by "echo projcflags="
     23189    #   remove every line starting with <some word>:
     23190    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23191
     23192    # set projcflags and projlibs variables by running $pcfilemod
     23193    projcflags=
     23194    projlibs=
     23195    eval `sh -c "$pcfilemod"`
     23196
     23197    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23198    if test "${CYGPATH_W}" != "echo"; then
     23199      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23200    fi
    2264523201    MIPLIB3_CFLAGS="$projcflags $MIPLIB3_CFLAGS"
    2264623202
    22647     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22648     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22649     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22650     if test "x$projlibs" != x ; then
    22651       if test -d "${pcfiledir}/src" ; then
    22652         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22653       else
    22654         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22655       fi
    22656     else
    22657       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22658     fi
     23203    # set LIBS variable
    2265923204    MIPLIB3_LIBS="$projlibs $MIPLIB3_LIBS"
    2266023205
     
    2266423209  done
    2266523210  IFS="$save_IFS"
     23211
     23212
     23213  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23214  # important is here again to obey the reverse order that has been setup before,
     23215  # since then libraries that are required by several others should be after these other libraries
     23216  pcfilesprocessed=""
     23217
     23218  save_IFS="$IFS"
     23219  IFS=":"
     23220  for pcfile in $allpcifiles ; do
     23221
     23222    # if $pcfile has been processed already, skip this round
     23223    if test "x$pcfilesprocessed" != x ; then
     23224      for pcfiledone in $pcfilesprocessed ; do
     23225        if test "$pcfiledone" = "$pcfile" ; then
     23226          continue 2
     23227        fi
     23228      done
     23229    fi
     23230
     23231    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23232    #   replace "Libs:" by "echo projlibs="
     23233    #   replace "Cflags:" by "echo projcflags="
     23234    #   remove every line starting with <some word>:
     23235    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23236
     23237    # set projcflags and projlibs variables by running $pcfilemod
     23238    projcflags=
     23239    projlibs=
     23240    eval `sh -c "$pcfilemod"`
     23241
     23242    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23243    if test "${CYGPATH_W}" != "echo"; then
     23244      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23245    fi
     23246    MIPLIB3_CFLAGS_INSTALLED="$projcflags $MIPLIB3_CFLAGS_INSTALLED"
     23247
     23248    # set LIBS variable
     23249    MIPLIB3_LIBS_INSTALLED="$projlibs $MIPLIB3_LIBS_INSTALLED"
     23250
     23251    # remember that we have processed $pcfile
     23252    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23253
     23254  done
     23255  IFS="$save_IFS"
     23256
    2266623257
    2266723258  # finish up
     
    2267523266
    2267623267
     23268  # adjust linker flags for (i)cl compiler
     23269  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     23270  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23271  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23272  #    everything of the form "-lname" by "libname.lib"
     23273  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23274  then
     23275    MIPLIB3_LIBS=`echo " $MIPLIB3_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23276    MIPLIB3_LIBS_INSTALLED=`echo " $MIPLIB3_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23277  fi
     23278
     23279
     23280
     23281fi
     23282
     23283
     23284
     23285if test $coin_has_miplib3 != notGiven &&
     23286                test $coin_has_miplib3 != skipping; then
     23287  COIN_HAS_MIPLIB3_TRUE=
     23288  COIN_HAS_MIPLIB3_FALSE='#'
     23289else
     23290  COIN_HAS_MIPLIB3_TRUE='#'
     23291  COIN_HAS_MIPLIB3_FALSE=
     23292fi
     23293
     23294
     23295
     23296  fi
     23297
     23298else
     23299  echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
     23300echo "${ECHO_T}$coin_has_miplib3" >&6
     23301fi
     23302
     23303if test $coin_has_miplib3 != skipping &&
     23304   test $coin_has_miplib3 != notGiven ; then
     23305
     23306cat >>confdefs.h <<\_ACEOF
     23307#define COIN_HAS_MIPLIB3 1
     23308_ACEOF
     23309
     23310
     23311  # construct dependencies variables from LIBS variables
     23312  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23313  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23314  MIPLIB3_DEPENDENCIES=`echo " $MIPLIB3_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2267723315
    2267823316
     
    2268623324echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
    2268723325    fi
    22688     if test -n "$MIPLIB3_DATA" ; then
    22689       { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
    22690 echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
    22691     fi
    22692 
    22693   fi
    22694 
    22695 fi
    22696 
    22697 
    22698 
    22699 if test $coin_has_miplib3 != notGiven &&
    22700                 test $coin_has_miplib3 != skipping; then
    22701   COIN_HAS_MIPLIB3_TRUE=
    22702   COIN_HAS_MIPLIB3_FALSE='#'
    22703 else
    22704   COIN_HAS_MIPLIB3_TRUE='#'
    22705   COIN_HAS_MIPLIB3_FALSE=
    22706 fi
    22707 
    22708 
    22709 
    22710   fi
    22711 
    22712 else
    22713   echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
    22714 echo "${ECHO_T}$coin_has_miplib3" >&6
    22715 fi
    22716 
    22717 if test $coin_has_miplib3 != skipping &&
    22718    test $coin_has_miplib3 != notGiven ; then
    22719 
    22720 cat >>confdefs.h <<\_ACEOF
    22721 #define COIN_HAS_MIPLIB3 1
    22722 _ACEOF
    22723 
    22724 
    22725   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22726     if test -n "$MIPLIB3_CFLAGS" ; then
    22727       { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
    22728 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
    22729     fi
    22730     if test -n "$MIPLIB3_LIBS" ; then
    22731       { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
    22732 echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
     23326    if test -n "$MIPLIB3_DEPENDENCIES" ; then
     23327      { echo "$as_me:$LINENO: Miplib3 DEPENDENCIES are $MIPLIB3_DEPENDENCIES" >&5
     23328echo "$as_me: Miplib3 DEPENDENCIES are $MIPLIB3_DEPENDENCIES" >&6;}
    2273323329    fi
    2273423330    if test -n "$MIPLIB3_DATA" ; then
     
    2279223388
    2279323389
     23390
     23391
     23392
     23393
     23394
     23395
     23396
    2279423397#check if user provided LIBS, CFLAGS, or DATA for module
    2279523398if test $coin_has_dylp != skipping; then
     
    2284923452    if test "$CYGPATH_W" != "echo" ; then
    2285023453      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22851           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22852         fi
     23454      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23455    fi
    2285323456    DYLP_CFLAGS="$cflags"
    2285423457    DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
     
    2285723460        echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
    2285823461echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
    22859         CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES"
     23462
     23463        # adjust linker flags for (i)cl compiler
     23464        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     23465        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23466        then
     23467          DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23468        fi
     23469
     23470        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric
     23471
     23472          CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES"
     23473          CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS"
     23474          CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS"
    2286023475
    2286123476
     
    2288123496    export PKG_CONFIG_PATH
    2288223497
    22883     # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
    22884 
    22885       CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS"
    22886       CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS"
    22887 
    2288823498  else
    2288923499    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2289523505coin_has_dylp=notGiven
    2289623506DYLP_LIBS=
     23507DYLP_LIBS_INSTALLED=
    2289723508DYLP_CFLAGS=
     23509DYLP_CFLAGS_INSTALLED=
    2289823510DYLP_DATA=
     23511DYLP_DATA_INSTALLED=
    2289923512
    2290023513# initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2290323516# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2290423517# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23518# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2290523519# also, we setup the DATA variable
    2290623520allproj=""
    2290723521allpcfiles=""
     23522allpcifiles=""
    2290823523while test "x$projtoprocess" != x ; do
    2290923524
     
    2291523530    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2291623531      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    22917       if test -r "$dir/$proj-uninstalled.pc" ; then
     23532      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2291823533        pcfile="$dir/$proj-uninstalled.pc"
     23534        if test -r "$dir/${proj}.pc" ; then
     23535          pcifile="$dir/${proj}.pc"
     23536        else
     23537          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23538echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23539          pcifile=
     23540        fi
    2291923541        break
    2292023542      fi
     
    2293023552      projtoprocess=${projtoprocess/$proj/$projrequires}
    2293123553
    22932       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22933       if test "x$allproj" = x ; then
    22934         DYLP_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     23554      # read DATA from $pcfile, if _DATA is still empty
     23555      if test "x$DYLP_DATA" = x ; then
     23556        projdatadir=
     23557        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23558        eval `sh -c "$pcfilemod"`
     23559        DYLP_DATA="$projdatadir"
    2293523560      fi
    2293623561
     
    2294323568      allproj=fail
    2294423569      break 2
     23570    fi
     23571
     23572    if test "x$pcifile" != x ; then
     23573      allpcifiles="$pcifile:$allpcifiles"
     23574
     23575      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23576      if test "x$DYLP_DATA_INSTALLED" = x ; then
     23577        projdatadir=
     23578        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23579        eval `sh -c "$pcifilemod"`
     23580        if test "${CYGPATH_W}" != "echo"; then
     23581          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23582        fi
     23583        DYLP_DATA_INSTALLED="$projdatadir"
     23584      fi
     23585
    2294523586    fi
    2294623587
     
    2297323614    fi
    2297423615
    22975     # reconstruct the directory where the .pc file is located
    22976     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    22977 
    22978     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22979     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22980     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23616    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23617    #   replace "Libs:" by "echo projlibs="
     23618    #   replace "Cflags:" by "echo projcflags="
     23619    #   remove every line starting with <some word>:
     23620    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23621
     23622    # set projcflags and projlibs variables by running $pcfilemod
     23623    projcflags=
     23624    projlibs=
     23625    eval `sh -c "$pcfilemod"`
     23626
     23627    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23628    if test "${CYGPATH_W}" != "echo"; then
     23629      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23630    fi
    2298123631    DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
    2298223632
    22983     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22984     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22985     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22986     if test "x$projlibs" != x ; then
    22987       if test -d "${pcfiledir}/src" ; then
    22988         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22989       else
    22990         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22991       fi
    22992     else
    22993       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22994     fi
     23633    # set LIBS variable
    2299523634    DYLP_LIBS="$projlibs $DYLP_LIBS"
    2299623635
     
    2300023639  done
    2300123640  IFS="$save_IFS"
     23641
     23642
     23643  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23644  # important is here again to obey the reverse order that has been setup before,
     23645  # since then libraries that are required by several others should be after these other libraries
     23646  pcfilesprocessed=""
     23647
     23648  save_IFS="$IFS"
     23649  IFS=":"
     23650  for pcfile in $allpcifiles ; do
     23651
     23652    # if $pcfile has been processed already, skip this round
     23653    if test "x$pcfilesprocessed" != x ; then
     23654      for pcfiledone in $pcfilesprocessed ; do
     23655        if test "$pcfiledone" = "$pcfile" ; then
     23656          continue 2
     23657        fi
     23658      done
     23659    fi
     23660
     23661    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23662    #   replace "Libs:" by "echo projlibs="
     23663    #   replace "Cflags:" by "echo projcflags="
     23664    #   remove every line starting with <some word>:
     23665    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23666
     23667    # set projcflags and projlibs variables by running $pcfilemod
     23668    projcflags=
     23669    projlibs=
     23670    eval `sh -c "$pcfilemod"`
     23671
     23672    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23673    if test "${CYGPATH_W}" != "echo"; then
     23674      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23675    fi
     23676    DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED"
     23677
     23678    # set LIBS variable
     23679    DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED"
     23680
     23681    # remember that we have processed $pcfile
     23682    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23683
     23684  done
     23685  IFS="$save_IFS"
     23686
    2300223687
    2300323688  # finish up
     
    2301123696
    2301223697
     23698  # adjust linker flags for (i)cl compiler
     23699  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     23700  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23701  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23702  #    everything of the form "-lname" by "libname.lib"
     23703  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23704  then
     23705    DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23706    DYLP_LIBS_INSTALLED=`echo " $DYLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23707  fi
     23708
    2301323709
    2301423710    CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES"
    2301523711    CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS"
    2301623712    CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS"
     23713    CBCGENERIC_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     23714    CBCGENERIC_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     23715
     23716
     23717fi
     23718
     23719
     23720
     23721if test $coin_has_dylp != notGiven &&
     23722                test $coin_has_dylp != skipping; then
     23723  COIN_HAS_DYLP_TRUE=
     23724  COIN_HAS_DYLP_FALSE='#'
     23725else
     23726  COIN_HAS_DYLP_TRUE='#'
     23727  COIN_HAS_DYLP_FALSE=
     23728fi
     23729
     23730
     23731
     23732  fi
     23733
     23734else
     23735  echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
     23736echo "${ECHO_T}$coin_has_dylp" >&6
     23737fi
     23738
     23739if test $coin_has_dylp != skipping &&
     23740   test $coin_has_dylp != notGiven ; then
     23741
     23742cat >>confdefs.h <<\_ACEOF
     23743#define COIN_HAS_DYLP 1
     23744_ACEOF
     23745
     23746
     23747  # construct dependencies variables from LIBS variables
     23748  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23749  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23750  DYLP_DEPENDENCIES=`echo " $DYLP_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23751
     23752    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2301723753
    2301823754
     
    2302623762echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
    2302723763    fi
    23028     if test -n "$DYLP_DATA" ; then
    23029       { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
    23030 echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
    23031     fi
    23032 
    23033       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    23034 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    23035       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    23036 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    23037 
    23038   fi
    23039 
    23040 fi
    23041 
    23042 
    23043 
    23044 if test $coin_has_dylp != notGiven &&
    23045                 test $coin_has_dylp != skipping; then
    23046   COIN_HAS_DYLP_TRUE=
    23047   COIN_HAS_DYLP_FALSE='#'
    23048 else
    23049   COIN_HAS_DYLP_TRUE='#'
    23050   COIN_HAS_DYLP_FALSE=
    23051 fi
    23052 
    23053 
    23054 
    23055   fi
    23056 
    23057 else
    23058   echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    23059 echo "${ECHO_T}$coin_has_dylp" >&6
    23060 fi
    23061 
    23062 if test $coin_has_dylp != skipping &&
    23063    test $coin_has_dylp != notGiven ; then
    23064 
    23065 cat >>confdefs.h <<\_ACEOF
    23066 #define COIN_HAS_DYLP 1
    23067 _ACEOF
    23068 
    23069 
    23070   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23071     if test -n "$DYLP_CFLAGS" ; then
    23072       { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
    23073 echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
    23074     fi
    23075     if test -n "$DYLP_LIBS" ; then
    23076       { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
    23077 echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
     23764    if test -n "$DYLP_DEPENDENCIES" ; then
     23765      { echo "$as_me:$LINENO: DyLP DEPENDENCIES are $DYLP_DEPENDENCIES" >&5
     23766echo "$as_me: DyLP DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;}
    2307823767    fi
    2307923768    if test -n "$DYLP_DATA" ; then
     
    2309023779      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2309123780echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     23781      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     23782echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2309223783
    2309323784  fi
     
    2312623817VOL_CFLAGS=
    2312723818VOL_DATA=
     23819
     23820
     23821
     23822
    2312823823
    2312923824
     
    2318423879    if test "$CYGPATH_W" != "echo" ; then
    2318523880      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23186           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23187         fi
     23881      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23882    fi
    2318823883    VOL_CFLAGS="$cflags"
    2318923884    VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
     
    2319323888echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
    2319423889
     23890        # adjust linker flags for (i)cl compiler
     23891        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     23892        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23893        then
     23894          VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23895        fi
     23896
     23897        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     23898
    2319523899
    2319623900
     
    2321523919    export PKG_CONFIG_PATH
    2321623920
    23217     # augment X_CFLAGS and X_LIBS for each build target X in
    23218 
    2321923921  else
    2322023922    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2322623928coin_has_vol=notGiven
    2322723929VOL_LIBS=
     23930VOL_LIBS_INSTALLED=
    2322823931VOL_CFLAGS=
     23932VOL_CFLAGS_INSTALLED=
    2322923933VOL_DATA=
     23934VOL_DATA_INSTALLED=
    2323023935
    2323123936# initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2323423939# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2323523940# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23941# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2323623942# also, we setup the DATA variable
    2323723943allproj=""
    2323823944allpcfiles=""
     23945allpcifiles=""
    2323923946while test "x$projtoprocess" != x ; do
    2324023947
     
    2324623953    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2324723954      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    23248       if test -r "$dir/$proj-uninstalled.pc" ; then
     23955      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2324923956        pcfile="$dir/$proj-uninstalled.pc"
     23957        if test -r "$dir/${proj}.pc" ; then
     23958          pcifile="$dir/${proj}.pc"
     23959        else
     23960          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23961echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23962          pcifile=
     23963        fi
    2325023964        break
    2325123965      fi
     
    2326123975      projtoprocess=${projtoprocess/$proj/$projrequires}
    2326223976
    23263       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    23264       if test "x$allproj" = x ; then
    23265         VOL_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     23977      # read DATA from $pcfile, if _DATA is still empty
     23978      if test "x$VOL_DATA" = x ; then
     23979        projdatadir=
     23980        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23981        eval `sh -c "$pcfilemod"`
     23982        VOL_DATA="$projdatadir"
    2326623983      fi
    2326723984
     
    2327423991      allproj=fail
    2327523992      break 2
     23993    fi
     23994
     23995    if test "x$pcifile" != x ; then
     23996      allpcifiles="$pcifile:$allpcifiles"
     23997
     23998      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23999      if test "x$VOL_DATA_INSTALLED" = x ; then
     24000        projdatadir=
     24001        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24002        eval `sh -c "$pcifilemod"`
     24003        if test "${CYGPATH_W}" != "echo"; then
     24004          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24005        fi
     24006        VOL_DATA_INSTALLED="$projdatadir"
     24007      fi
     24008
    2327624009    fi
    2327724010
     
    2330424037    fi
    2330524038
    23306     # reconstruct the directory where the .pc file is located
    23307     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    23308 
    23309     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    23310     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    23311     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24039    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24040    #   replace "Libs:" by "echo projlibs="
     24041    #   replace "Cflags:" by "echo projcflags="
     24042    #   remove every line starting with <some word>:
     24043    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24044
     24045    # set projcflags and projlibs variables by running $pcfilemod
     24046    projcflags=
     24047    projlibs=
     24048    eval `sh -c "$pcfilemod"`
     24049
     24050    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24051    if test "${CYGPATH_W}" != "echo"; then
     24052      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24053    fi
    2331224054    VOL_CFLAGS="$projcflags $VOL_CFLAGS"
    2331324055
    23314     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    23315     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    23316     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    23317     if test "x$projlibs" != x ; then
    23318       if test -d "${pcfiledir}/src" ; then
    23319         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    23320       else
    23321         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    23322       fi
    23323     else
    23324       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    23325     fi
     24056    # set LIBS variable
    2332624057    VOL_LIBS="$projlibs $VOL_LIBS"
    2332724058
     
    2333124062  done
    2333224063  IFS="$save_IFS"
     24064
     24065
     24066  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24067  # important is here again to obey the reverse order that has been setup before,
     24068  # since then libraries that are required by several others should be after these other libraries
     24069  pcfilesprocessed=""
     24070
     24071  save_IFS="$IFS"
     24072  IFS=":"
     24073  for pcfile in $allpcifiles ; do
     24074
     24075    # if $pcfile has been processed already, skip this round
     24076    if test "x$pcfilesprocessed" != x ; then
     24077      for pcfiledone in $pcfilesprocessed ; do
     24078        if test "$pcfiledone" = "$pcfile" ; then
     24079          continue 2
     24080        fi
     24081      done
     24082    fi
     24083
     24084    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24085    #   replace "Libs:" by "echo projlibs="
     24086    #   replace "Cflags:" by "echo projcflags="
     24087    #   remove every line starting with <some word>:
     24088    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24089
     24090    # set projcflags and projlibs variables by running $pcfilemod
     24091    projcflags=
     24092    projlibs=
     24093    eval `sh -c "$pcfilemod"`
     24094
     24095    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24096    if test "${CYGPATH_W}" != "echo"; then
     24097      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24098    fi
     24099    VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED"
     24100
     24101    # set LIBS variable
     24102    VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED"
     24103
     24104    # remember that we have processed $pcfile
     24105    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24106
     24107  done
     24108  IFS="$save_IFS"
     24109
    2333324110
    2333424111  # finish up
     
    2334224119
    2334324120
     24121  # adjust linker flags for (i)cl compiler
     24122  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     24123  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24124  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24125  #    everything of the form "-lname" by "libname.lib"
     24126  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24127  then
     24128    VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24129    VOL_LIBS_INSTALLED=`echo " $VOL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     24130  fi
     24131
     24132
     24133
     24134fi
     24135
     24136
     24137
     24138if test $coin_has_vol != notGiven &&
     24139                test $coin_has_vol != skipping; then
     24140  COIN_HAS_VOL_TRUE=
     24141  COIN_HAS_VOL_FALSE='#'
     24142else
     24143  COIN_HAS_VOL_TRUE='#'
     24144  COIN_HAS_VOL_FALSE=
     24145fi
     24146
     24147
     24148
     24149  fi
     24150
     24151else
     24152  echo "$as_me:$LINENO: result: $coin_has_vol" >&5
     24153echo "${ECHO_T}$coin_has_vol" >&6
     24154fi
     24155
     24156if test $coin_has_vol != skipping &&
     24157   test $coin_has_vol != notGiven ; then
     24158
     24159cat >>confdefs.h <<\_ACEOF
     24160#define COIN_HAS_VOL 1
     24161_ACEOF
     24162
     24163
     24164  # construct dependencies variables from LIBS variables
     24165  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24166  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24167  VOL_DEPENDENCIES=`echo " $VOL_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2334424168
    2334524169
     
    2335324177echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    2335424178    fi
    23355     if test -n "$VOL_DATA" ; then
    23356       { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
    23357 echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    23358     fi
    23359 
    23360   fi
    23361 
    23362 fi
    23363 
    23364 
    23365 
    23366 if test $coin_has_vol != notGiven &&
    23367                 test $coin_has_vol != skipping; then
    23368   COIN_HAS_VOL_TRUE=
    23369   COIN_HAS_VOL_FALSE='#'
    23370 else
    23371   COIN_HAS_VOL_TRUE='#'
    23372   COIN_HAS_VOL_FALSE=
    23373 fi
    23374 
    23375 
    23376 
    23377   fi
    23378 
    23379 else
    23380   echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    23381 echo "${ECHO_T}$coin_has_vol" >&6
    23382 fi
    23383 
    23384 if test $coin_has_vol != skipping &&
    23385    test $coin_has_vol != notGiven ; then
    23386 
    23387 cat >>confdefs.h <<\_ACEOF
    23388 #define COIN_HAS_VOL 1
    23389 _ACEOF
    23390 
    23391 
    23392   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23393     if test -n "$VOL_CFLAGS" ; then
    23394       { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    23395 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    23396     fi
    23397     if test -n "$VOL_LIBS" ; then
    23398       { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
    23399 echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
     24179    if test -n "$VOL_DEPENDENCIES" ; then
     24180      { echo "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5
     24181echo "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;}
    2340024182    fi
    2340124183    if test -n "$VOL_DATA" ; then
     
    2345824240
    2345924241
     24242
     24243
     24244
     24245
     24246
     24247
     24248
     24249
     24250
     24251
    2346024252#check if user provided LIBS, CFLAGS, or DATA for module
    2346124253if test $coin_has_cpx != skipping; then
     
    2351924311    if test "$CYGPATH_W" != "echo" ; then
    2352024312      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23521           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23522         fi
     24313      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24314    fi
    2352324315    CPX_CFLAGS="$cflags"
    2352424316    CPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/null`
     
    2352724319        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
    2352824320echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
    23529         CBCLIB_PCREQUIRES="osi-cplex $CBCLIB_PCREQUIRES"
    23530         CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES"
     24321
     24322        # adjust linker flags for (i)cl compiler
     24323        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     24324        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24325        then
     24326          CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24327        fi
     24328
     24329        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric
     24330
     24331          CBCLIB_PCREQUIRES="osi-cplex $CBCLIB_PCREQUIRES"
     24332          CBCLIB_CFLAGS="$CPX_CFLAGS $CBCLIB_CFLAGS"
     24333          CBCLIB_LIBS="$CPX_LIBS $CBCLIB_LIBS"
     24334
     24335          CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES"
     24336          CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS"
     24337          CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS"
    2353124338
    2353224339
     
    2355224359    export PKG_CONFIG_PATH
    2355324360
    23554     # augment X_CFLAGS and X_LIBS for each build target X in CbcLib CbcGeneric
    23555 
    23556       CBCLIB_CFLAGS="$CPX_CFLAGS $CBCLIB_CFLAGS"
    23557       CBCLIB_LIBS="$CPX_LIBS $CBCLIB_LIBS"
    23558 
    23559       CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS"
    23560       CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS"
    23561 
    2356224361  else
    2356324362    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2356924368coin_has_cpx=notGiven
    2357024369CPX_LIBS=
     24370CPX_LIBS_INSTALLED=
    2357124371CPX_CFLAGS=
     24372CPX_CFLAGS_INSTALLED=
    2357224373CPX_DATA=
     24374CPX_DATA_INSTALLED=
    2357324375
    2357424376# initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2357724379# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2357824380# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24381# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2357924382# also, we setup the DATA variable
    2358024383allproj=""
    2358124384allpcfiles=""
     24385allpcifiles=""
    2358224386while test "x$projtoprocess" != x ; do
    2358324387
     
    2358924393    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2359024394      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    23591       if test -r "$dir/$proj-uninstalled.pc" ; then
     24395      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2359224396        pcfile="$dir/$proj-uninstalled.pc"
     24397        if test -r "$dir/${proj}.pc" ; then
     24398          pcifile="$dir/${proj}.pc"
     24399        else
     24400          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24401echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24402          pcifile=
     24403        fi
    2359324404        break
    2359424405      fi
     
    2360424415      projtoprocess=${projtoprocess/$proj/$projrequires}
    2360524416
    23606       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    23607       if test "x$allproj" = x ; then
    23608         CPX_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     24417      # read DATA from $pcfile, if _DATA is still empty
     24418      if test "x$CPX_DATA" = x ; then
     24419        projdatadir=
     24420        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24421        eval `sh -c "$pcfilemod"`
     24422        CPX_DATA="$projdatadir"
    2360924423      fi
    2361024424
     
    2361724431      allproj=fail
    2361824432      break 2
     24433    fi
     24434
     24435    if test "x$pcifile" != x ; then
     24436      allpcifiles="$pcifile:$allpcifiles"
     24437
     24438      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24439      if test "x$CPX_DATA_INSTALLED" = x ; then
     24440        projdatadir=
     24441        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24442        eval `sh -c "$pcifilemod"`
     24443        if test "${CYGPATH_W}" != "echo"; then
     24444          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24445        fi
     24446        CPX_DATA_INSTALLED="$projdatadir"
     24447      fi
     24448
    2361924449    fi
    2362024450
     
    2364724477    fi
    2364824478
    23649     # reconstruct the directory where the .pc file is located
    23650     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    23651 
    23652     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    23653     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    23654     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24479    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24480    #   replace "Libs:" by "echo projlibs="
     24481    #   replace "Cflags:" by "echo projcflags="
     24482    #   remove every line starting with <some word>:
     24483    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24484
     24485    # set projcflags and projlibs variables by running $pcfilemod
     24486    projcflags=
     24487    projlibs=
     24488    eval `sh -c "$pcfilemod"`
     24489
     24490    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24491    if test "${CYGPATH_W}" != "echo"; then
     24492      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24493    fi
    2365524494    CPX_CFLAGS="$projcflags $CPX_CFLAGS"
    2365624495
    23657     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    23658     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    23659     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    23660     if test "x$projlibs" != x ; then
    23661       if test -d "${pcfiledir}/src" ; then
    23662         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    23663       else
    23664         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    23665       fi
    23666     else
    23667       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    23668     fi
     24496    # set LIBS variable
    2366924497    CPX_LIBS="$projlibs $CPX_LIBS"
    2367024498
     
    2367424502  done
    2367524503  IFS="$save_IFS"
     24504
     24505
     24506  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24507  # important is here again to obey the reverse order that has been setup before,
     24508  # since then libraries that are required by several others should be after these other libraries
     24509  pcfilesprocessed=""
     24510
     24511  save_IFS="$IFS"
     24512  IFS=":"
     24513  for pcfile in $allpcifiles ; do
     24514
     24515    # if $pcfile has been processed already, skip this round
     24516    if test "x$pcfilesprocessed" != x ; then
     24517      for pcfiledone in $pcfilesprocessed ; do
     24518        if test "$pcfiledone" = "$pcfile" ; then
     24519          continue 2
     24520        fi
     24521      done
     24522    fi
     24523
     24524    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24525    #   replace "Libs:" by "echo projlibs="
     24526    #   replace "Cflags:" by "echo projcflags="
     24527    #   remove every line starting with <some word>:
     24528    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24529
     24530    # set projcflags and projlibs variables by running $pcfilemod
     24531    projcflags=
     24532    projlibs=
     24533    eval `sh -c "$pcfilemod"`
     24534
     24535    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24536    if test "${CYGPATH_W}" != "echo"; then
     24537      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24538    fi
     24539    CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
     24540
     24541    # set LIBS variable
     24542    CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
     24543
     24544    # remember that we have processed $pcfile
     24545    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24546
     24547  done
     24548  IFS="$save_IFS"
     24549
    2367624550
    2367724551  # finish up
     
    2368524559
    2368624560
     24561  # adjust linker flags for (i)cl compiler
     24562  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     24563  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24564  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24565  #    everything of the form "-lname" by "libname.lib"
     24566  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24567  then
     24568    CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24569    CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     24570  fi
     24571
    2368724572
    2368824573    CBCLIB_PCREQUIRES="osi-cplex $CBCLIB_PCREQUIRES"
    2368924574    CBCLIB_CFLAGS="$CPX_CFLAGS $CBCLIB_CFLAGS"
    2369024575    CBCLIB_LIBS="$CPX_LIBS $CBCLIB_LIBS"
     24576    CBCLIB_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED"
     24577    CBCLIB_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED"
    2369124578
    2369224579    CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES"
    2369324580    CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS"
    2369424581    CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS"
     24582    CBCGENERIC_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     24583    CBCGENERIC_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     24584
     24585
     24586fi
     24587
     24588
     24589
     24590if test $coin_has_cpx != notGiven &&
     24591                test $coin_has_cpx != skipping; then
     24592  COIN_HAS_CPX_TRUE=
     24593  COIN_HAS_CPX_FALSE='#'
     24594else
     24595  COIN_HAS_CPX_TRUE='#'
     24596  COIN_HAS_CPX_FALSE=
     24597fi
     24598
     24599
     24600
     24601  fi
     24602
     24603else
     24604  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     24605echo "${ECHO_T}$coin_has_cpx" >&6
     24606fi
     24607
     24608if test $coin_has_cpx != skipping &&
     24609   test $coin_has_cpx != notGiven ; then
     24610
     24611cat >>confdefs.h <<\_ACEOF
     24612#define COIN_HAS_CPX 1
     24613_ACEOF
     24614
     24615
     24616  # construct dependencies variables from LIBS variables
     24617  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24618  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24619  CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24620
     24621    CBCLIB_DEPENDENCIES=`echo " $CBCLIB_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24622
     24623    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2369524624
    2369624625
     
    2370424633echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
    2370524634    fi
    23706     if test -n "$CPX_DATA" ; then
    23707       { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
    23708 echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
    23709     fi
    23710 
    23711       { echo "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5
    23712 echo "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;}
    23713       { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    23714 echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
    23715 
    23716       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    23717 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    23718       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    23719 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    23720 
    23721   fi
    23722 
    23723 fi
    23724 
    23725 
    23726 
    23727 if test $coin_has_cpx != notGiven &&
    23728                 test $coin_has_cpx != skipping; then
    23729   COIN_HAS_CPX_TRUE=
    23730   COIN_HAS_CPX_FALSE='#'
    23731 else
    23732   COIN_HAS_CPX_TRUE='#'
    23733   COIN_HAS_CPX_FALSE=
    23734 fi
    23735 
    23736 
    23737 
    23738   fi
    23739 
    23740 else
    23741   echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
    23742 echo "${ECHO_T}$coin_has_cpx" >&6
    23743 fi
    23744 
    23745 if test $coin_has_cpx != skipping &&
    23746    test $coin_has_cpx != notGiven ; then
    23747 
    23748 cat >>confdefs.h <<\_ACEOF
    23749 #define COIN_HAS_CPX 1
    23750 _ACEOF
    23751 
    23752 
    23753   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23754     if test -n "$CPX_CFLAGS" ; then
    23755       { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
    23756 echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
    23757     fi
    23758     if test -n "$CPX_LIBS" ; then
    23759       { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
    23760 echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
     24635    if test -n "$CPX_DEPENDENCIES" ; then
     24636      { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
     24637echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
    2376124638    fi
    2376224639    if test -n "$CPX_DATA" ; then
     
    2377324650      { echo "$as_me:$LINENO: CbcLib LIBS   are $CBCLIB_LIBS" >&5
    2377424651echo "$as_me: CbcLib LIBS   are $CBCLIB_LIBS" >&6;}
     24652      { echo "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5
     24653echo "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;}
    2377524654
    2377624655      { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
     
    2377824657      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2377924658echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     24659      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     24660echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2378024661
    2378124662  fi
     
    2381424695GLPK_CFLAGS=
    2381524696GLPK_DATA=
     24697
     24698
     24699
     24700
     24701
     24702
     24703
    2381624704
    2381724705
     
    2388124769    if test "$CYGPATH_W" != "echo" ; then
    2388224770      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23883           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23884         fi
     24771      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24772    fi
    2388524773    GLPK_CFLAGS="$cflags"
    2388624774    GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/null`
     
    2388924777        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
    2389024778echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
    23891         CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES"
     24779
     24780        # adjust linker flags for (i)cl compiler
     24781        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     24782        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24783        then
     24784          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24785        fi
     24786
     24787        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric
     24788
     24789          CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES"
     24790          CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS"
     24791          CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS"
    2389224792
    2389324793
     
    2391324813    export PKG_CONFIG_PATH
    2391424814
    23915     # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
    23916 
    23917       CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS"
    23918       CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS"
    23919 
    2392024815  else
    2392124816    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2392724822coin_has_glpk=notGiven
    2392824823GLPK_LIBS=
     24824GLPK_LIBS_INSTALLED=
    2392924825GLPK_CFLAGS=
     24826GLPK_CFLAGS_INSTALLED=
    2393024827GLPK_DATA=
     24828GLPK_DATA_INSTALLED=
    2393124829
    2393224830# initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2393524833# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2393624834# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24835# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2393724836# also, we setup the DATA variable
    2393824837allproj=""
    2393924838allpcfiles=""
     24839allpcifiles=""
    2394024840while test "x$projtoprocess" != x ; do
    2394124841
     
    2394724847    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2394824848      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    23949       if test -r "$dir/$proj-uninstalled.pc" ; then
     24849      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2395024850        pcfile="$dir/$proj-uninstalled.pc"
     24851        if test -r "$dir/${proj}.pc" ; then
     24852          pcifile="$dir/${proj}.pc"
     24853        else
     24854          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24855echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24856          pcifile=
     24857        fi
    2395124858        break
    2395224859      fi
     
    2396224869      projtoprocess=${projtoprocess/$proj/$projrequires}
    2396324870
    23964       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    23965       if test "x$allproj" = x ; then
    23966         GLPK_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     24871      # read DATA from $pcfile, if _DATA is still empty
     24872      if test "x$GLPK_DATA" = x ; then
     24873        projdatadir=
     24874        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24875        eval `sh -c "$pcfilemod"`
     24876        GLPK_DATA="$projdatadir"
    2396724877      fi
    2396824878
     
    2397524885      allproj=fail
    2397624886      break 2
     24887    fi
     24888
     24889    if test "x$pcifile" != x ; then
     24890      allpcifiles="$pcifile:$allpcifiles"
     24891
     24892      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24893      if test "x$GLPK_DATA_INSTALLED" = x ; then
     24894        projdatadir=
     24895        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24896        eval `sh -c "$pcifilemod"`
     24897        if test "${CYGPATH_W}" != "echo"; then
     24898          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24899        fi
     24900        GLPK_DATA_INSTALLED="$projdatadir"
     24901      fi
     24902
    2397724903    fi
    2397824904
     
    2400524931    fi
    2400624932
    24007     # reconstruct the directory where the .pc file is located
    24008     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    24009 
    24010     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    24011     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    24012     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24933    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24934    #   replace "Libs:" by "echo projlibs="
     24935    #   replace "Cflags:" by "echo projcflags="
     24936    #   remove every line starting with <some word>:
     24937    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24938
     24939    # set projcflags and projlibs variables by running $pcfilemod
     24940    projcflags=
     24941    projlibs=
     24942    eval `sh -c "$pcfilemod"`
     24943
     24944    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24945    if test "${CYGPATH_W}" != "echo"; then
     24946      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24947    fi
    2401324948    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
    2401424949
    24015     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    24016     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    24017     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    24018     if test "x$projlibs" != x ; then
    24019       if test -d "${pcfiledir}/src" ; then
    24020         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    24021       else
    24022         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    24023       fi
    24024     else
    24025       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    24026     fi
     24950    # set LIBS variable
    2402724951    GLPK_LIBS="$projlibs $GLPK_LIBS"
    2402824952
     
    2403224956  done
    2403324957  IFS="$save_IFS"
     24958
     24959
     24960  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24961  # important is here again to obey the reverse order that has been setup before,
     24962  # since then libraries that are required by several others should be after these other libraries
     24963  pcfilesprocessed=""
     24964
     24965  save_IFS="$IFS"
     24966  IFS=":"
     24967  for pcfile in $allpcifiles ; do
     24968
     24969    # if $pcfile has been processed already, skip this round
     24970    if test "x$pcfilesprocessed" != x ; then
     24971      for pcfiledone in $pcfilesprocessed ; do
     24972        if test "$pcfiledone" = "$pcfile" ; then
     24973          continue 2
     24974        fi
     24975      done
     24976    fi
     24977
     24978    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24979    #   replace "Libs:" by "echo projlibs="
     24980    #   replace "Cflags:" by "echo projcflags="
     24981    #   remove every line starting with <some word>:
     24982    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24983
     24984    # set projcflags and projlibs variables by running $pcfilemod
     24985    projcflags=
     24986    projlibs=
     24987    eval `sh -c "$pcfilemod"`
     24988
     24989    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24990    if test "${CYGPATH_W}" != "echo"; then
     24991      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24992    fi
     24993    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
     24994
     24995    # set LIBS variable
     24996    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
     24997
     24998    # remember that we have processed $pcfile
     24999    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25000
     25001  done
     25002  IFS="$save_IFS"
     25003
    2403425004
    2403525005  # finish up
     
    2404325013
    2404425014
     25015  # adjust linker flags for (i)cl compiler
     25016  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     25017  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25018  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25019  #    everything of the form "-lname" by "libname.lib"
     25020  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25021  then
     25022    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25023    GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     25024  fi
     25025
    2404525026
    2404625027    CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES"
    2404725028    CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS"
    2404825029    CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS"
     25030    CBCGENERIC_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     25031    CBCGENERIC_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     25032
     25033
     25034fi
     25035
     25036
     25037
     25038if test $coin_has_glpk != notGiven &&
     25039                test $coin_has_glpk != skipping; then
     25040  COIN_HAS_GLPK_TRUE=
     25041  COIN_HAS_GLPK_FALSE='#'
     25042else
     25043  COIN_HAS_GLPK_TRUE='#'
     25044  COIN_HAS_GLPK_FALSE=
     25045fi
     25046
     25047
     25048
     25049  fi
     25050
     25051else
     25052  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     25053echo "${ECHO_T}$coin_has_glpk" >&6
     25054fi
     25055
     25056if test $coin_has_glpk != skipping &&
     25057   test $coin_has_glpk != notGiven ; then
     25058
     25059cat >>confdefs.h <<\_ACEOF
     25060#define COIN_HAS_GLPK 1
     25061_ACEOF
     25062
     25063
     25064  # construct dependencies variables from LIBS variables
     25065  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25066  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25067  GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25068
     25069    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2404925070
    2405025071
     
    2405825079echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
    2405925080    fi
    24060     if test -n "$GLPK_DATA" ; then
    24061       { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
    24062 echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
    24063     fi
    24064 
    24065       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    24066 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    24067       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    24068 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    24069 
    24070   fi
    24071 
    24072 fi
    24073 
    24074 
    24075 
    24076 if test $coin_has_glpk != notGiven &&
    24077                 test $coin_has_glpk != skipping; then
    24078   COIN_HAS_GLPK_TRUE=
    24079   COIN_HAS_GLPK_FALSE='#'
    24080 else
    24081   COIN_HAS_GLPK_TRUE='#'
    24082   COIN_HAS_GLPK_FALSE=
    24083 fi
    24084 
    24085 
    24086 
    24087   fi
    24088 
    24089 else
    24090   echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
    24091 echo "${ECHO_T}$coin_has_glpk" >&6
    24092 fi
    24093 
    24094 if test $coin_has_glpk != skipping &&
    24095    test $coin_has_glpk != notGiven ; then
    24096 
    24097 cat >>confdefs.h <<\_ACEOF
    24098 #define COIN_HAS_GLPK 1
    24099 _ACEOF
    24100 
    24101 
    24102   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24103     if test -n "$GLPK_CFLAGS" ; then
    24104       { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
    24105 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
    24106     fi
    24107     if test -n "$GLPK_LIBS" ; then
    24108       { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
    24109 echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
     25081    if test -n "$GLPK_DEPENDENCIES" ; then
     25082      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
     25083echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
    2411025084    fi
    2411125085    if test -n "$GLPK_DATA" ; then
     
    2412225096      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2412325097echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     25098      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     25099echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2412425100
    2412525101  fi
     
    2415825134GRB_CFLAGS=
    2415925135GRB_DATA=
     25136
     25137
     25138
     25139
    2416025140
    2416125141
     
    2421625196    if test "$CYGPATH_W" != "echo" ; then
    2421725197      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    24218           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24219         fi
     25198      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25199    fi
    2422025200    GRB_CFLAGS="$cflags"
    2422125201    GRB_LIBS=`$PKG_CONFIG --libs "osi-gurobi" 2>/dev/null`
     
    2422525205echo "${ECHO_T}yes: $GRB_VERSIONS" >&6
    2422625206
     25207        # adjust linker flags for (i)cl compiler
     25208        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     25209        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25210        then
     25211          GRB_LIBS=`echo " $GRB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25212        fi
     25213
     25214        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     25215
    2422725216
    2422825217
     
    2424725236    export PKG_CONFIG_PATH
    2424825237
    24249     # augment X_CFLAGS and X_LIBS for each build target X in
    24250 
    2425125238  else
    2425225239    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2425825245coin_has_grb=notGiven
    2425925246GRB_LIBS=
     25247GRB_LIBS_INSTALLED=
    2426025248GRB_CFLAGS=
     25249GRB_CFLAGS_INSTALLED=
    2426125250GRB_DATA=
     25251GRB_DATA_INSTALLED=
    2426225252
    2426325253# initial list of dependencies is "osi-gurobi", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2426625256# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2426725257# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     25258# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2426825259# also, we setup the DATA variable
    2426925260allproj=""
    2427025261allpcfiles=""
     25262allpcifiles=""
    2427125263while test "x$projtoprocess" != x ; do
    2427225264
     
    2427825270    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2427925271      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    24280       if test -r "$dir/$proj-uninstalled.pc" ; then
     25272      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2428125273        pcfile="$dir/$proj-uninstalled.pc"
     25274        if test -r "$dir/${proj}.pc" ; then
     25275          pcifile="$dir/${proj}.pc"
     25276        else
     25277          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     25278echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     25279          pcifile=
     25280        fi
    2428225281        break
    2428325282      fi
     
    2429325292      projtoprocess=${projtoprocess/$proj/$projrequires}
    2429425293
    24295       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    24296       if test "x$allproj" = x ; then
    24297         GRB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     25294      # read DATA from $pcfile, if _DATA is still empty
     25295      if test "x$GRB_DATA" = x ; then
     25296        projdatadir=
     25297        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     25298        eval `sh -c "$pcfilemod"`
     25299        GRB_DATA="$projdatadir"
    2429825300      fi
    2429925301
     
    2430625308      allproj=fail
    2430725309      break 2
     25310    fi
     25311
     25312    if test "x$pcifile" != x ; then
     25313      allpcifiles="$pcifile:$allpcifiles"
     25314
     25315      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     25316      if test "x$GRB_DATA_INSTALLED" = x ; then
     25317        projdatadir=
     25318        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     25319        eval `sh -c "$pcifilemod"`
     25320        if test "${CYGPATH_W}" != "echo"; then
     25321          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     25322        fi
     25323        GRB_DATA_INSTALLED="$projdatadir"
     25324      fi
     25325
    2430825326    fi
    2430925327
     
    2433625354    fi
    2433725355
    24338     # reconstruct the directory where the .pc file is located
    24339     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    24340 
    24341     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    24342     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    24343     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25356    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25357    #   replace "Libs:" by "echo projlibs="
     25358    #   replace "Cflags:" by "echo projcflags="
     25359    #   remove every line starting with <some word>:
     25360    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25361
     25362    # set projcflags and projlibs variables by running $pcfilemod
     25363    projcflags=
     25364    projlibs=
     25365    eval `sh -c "$pcfilemod"`
     25366
     25367    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25368    if test "${CYGPATH_W}" != "echo"; then
     25369      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25370    fi
    2434425371    GRB_CFLAGS="$projcflags $GRB_CFLAGS"
    2434525372
    24346     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    24347     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    24348     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    24349     if test "x$projlibs" != x ; then
    24350       if test -d "${pcfiledir}/src" ; then
    24351         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    24352       else
    24353         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    24354       fi
    24355     else
    24356       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    24357     fi
     25373    # set LIBS variable
    2435825374    GRB_LIBS="$projlibs $GRB_LIBS"
    2435925375
     
    2436325379  done
    2436425380  IFS="$save_IFS"
     25381
     25382
     25383  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     25384  # important is here again to obey the reverse order that has been setup before,
     25385  # since then libraries that are required by several others should be after these other libraries
     25386  pcfilesprocessed=""
     25387
     25388  save_IFS="$IFS"
     25389  IFS=":"
     25390  for pcfile in $allpcifiles ; do
     25391
     25392    # if $pcfile has been processed already, skip this round
     25393    if test "x$pcfilesprocessed" != x ; then
     25394      for pcfiledone in $pcfilesprocessed ; do
     25395        if test "$pcfiledone" = "$pcfile" ; then
     25396          continue 2
     25397        fi
     25398      done
     25399    fi
     25400
     25401    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25402    #   replace "Libs:" by "echo projlibs="
     25403    #   replace "Cflags:" by "echo projcflags="
     25404    #   remove every line starting with <some word>:
     25405    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25406
     25407    # set projcflags and projlibs variables by running $pcfilemod
     25408    projcflags=
     25409    projlibs=
     25410    eval `sh -c "$pcfilemod"`
     25411
     25412    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25413    if test "${CYGPATH_W}" != "echo"; then
     25414      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25415    fi
     25416    GRB_CFLAGS_INSTALLED="$projcflags $GRB_CFLAGS_INSTALLED"
     25417
     25418    # set LIBS variable
     25419    GRB_LIBS_INSTALLED="$projlibs $GRB_LIBS_INSTALLED"
     25420
     25421    # remember that we have processed $pcfile
     25422    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25423
     25424  done
     25425  IFS="$save_IFS"
     25426
    2436525427
    2436625428  # finish up
     
    2437425436
    2437525437
     25438  # adjust linker flags for (i)cl compiler
     25439  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     25440  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25441  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25442  #    everything of the form "-lname" by "libname.lib"
     25443  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25444  then
     25445    GRB_LIBS=`echo " $GRB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25446    GRB_LIBS_INSTALLED=`echo " $GRB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     25447  fi
     25448
     25449
     25450
     25451fi
     25452
     25453
     25454
     25455if test $coin_has_grb != notGiven &&
     25456                test $coin_has_grb != skipping; then
     25457  COIN_HAS_GRB_TRUE=
     25458  COIN_HAS_GRB_FALSE='#'
     25459else
     25460  COIN_HAS_GRB_TRUE='#'
     25461  COIN_HAS_GRB_FALSE=
     25462fi
     25463
     25464
     25465
     25466  fi
     25467
     25468else
     25469  echo "$as_me:$LINENO: result: $coin_has_grb" >&5
     25470echo "${ECHO_T}$coin_has_grb" >&6
     25471fi
     25472
     25473if test $coin_has_grb != skipping &&
     25474   test $coin_has_grb != notGiven ; then
     25475
     25476cat >>confdefs.h <<\_ACEOF
     25477#define COIN_HAS_GRB 1
     25478_ACEOF
     25479
     25480
     25481  # construct dependencies variables from LIBS variables
     25482  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25483  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25484  GRB_DEPENDENCIES=`echo " $GRB_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2437625485
    2437725486
     
    2438525494echo "$as_me: Grb LIBS   are $GRB_LIBS" >&6;}
    2438625495    fi
    24387     if test -n "$GRB_DATA" ; then
    24388       { echo "$as_me:$LINENO: Grb DATA   is  $GRB_DATA" >&5
    24389 echo "$as_me: Grb DATA   is  $GRB_DATA" >&6;}
    24390     fi
    24391 
    24392   fi
    24393 
    24394 fi
    24395 
    24396 
    24397 
    24398 if test $coin_has_grb != notGiven &&
    24399                 test $coin_has_grb != skipping; then
    24400   COIN_HAS_GRB_TRUE=
    24401   COIN_HAS_GRB_FALSE='#'
    24402 else
    24403   COIN_HAS_GRB_TRUE='#'
    24404   COIN_HAS_GRB_FALSE=
    24405 fi
    24406 
    24407 
    24408 
    24409   fi
    24410 
    24411 else
    24412   echo "$as_me:$LINENO: result: $coin_has_grb" >&5
    24413 echo "${ECHO_T}$coin_has_grb" >&6
    24414 fi
    24415 
    24416 if test $coin_has_grb != skipping &&
    24417    test $coin_has_grb != notGiven ; then
    24418 
    24419 cat >>confdefs.h <<\_ACEOF
    24420 #define COIN_HAS_GRB 1
    24421 _ACEOF
    24422 
    24423 
    24424   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24425     if test -n "$GRB_CFLAGS" ; then
    24426       { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
    24427 echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
    24428     fi
    24429     if test -n "$GRB_LIBS" ; then
    24430       { echo "$as_me:$LINENO: Grb LIBS   are $GRB_LIBS" >&5
    24431 echo "$as_me: Grb LIBS   are $GRB_LIBS" >&6;}
     25496    if test -n "$GRB_DEPENDENCIES" ; then
     25497      { echo "$as_me:$LINENO: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&5
     25498echo "$as_me: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&6;}
    2443225499    fi
    2443325500    if test -n "$GRB_DATA" ; then
     
    2448525552
    2448625553
     25554
     25555
     25556
     25557
     25558
     25559
     25560
    2448725561#check if user provided LIBS, CFLAGS, or DATA for module
    2448825562if test $coin_has_msk != skipping; then
     
    2454225616    if test "$CYGPATH_W" != "echo" ; then
    2454325617      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    24544           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24545         fi
     25618      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25619    fi
    2454625620    MSK_CFLAGS="$cflags"
    2454725621    MSK_LIBS=`$PKG_CONFIG --libs "osi-mosek" 2>/dev/null`
     
    2455025624        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
    2455125625echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
    24552         CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES"
     25626
     25627        # adjust linker flags for (i)cl compiler
     25628        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     25629        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25630        then
     25631          MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25632        fi
     25633
     25634        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric
     25635
     25636          CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES"
     25637          CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS"
     25638          CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS"
    2455325639
    2455425640
     
    2457425660    export PKG_CONFIG_PATH
    2457525661
    24576     # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
    24577 
    24578       CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS"
    24579       CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS"
    24580 
    2458125662  else
    2458225663    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2458825669coin_has_msk=notGiven
    2458925670MSK_LIBS=
     25671MSK_LIBS_INSTALLED=
    2459025672MSK_CFLAGS=
     25673MSK_CFLAGS_INSTALLED=
    2459125674MSK_DATA=
     25675MSK_DATA_INSTALLED=
    2459225676
    2459325677# initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2459625680# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2459725681# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     25682# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2459825683# also, we setup the DATA variable
    2459925684allproj=""
    2460025685allpcfiles=""
     25686allpcifiles=""
    2460125687while test "x$projtoprocess" != x ; do
    2460225688
     
    2460825694    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2460925695      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    24610       if test -r "$dir/$proj-uninstalled.pc" ; then
     25696      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2461125697        pcfile="$dir/$proj-uninstalled.pc"
     25698        if test -r "$dir/${proj}.pc" ; then
     25699          pcifile="$dir/${proj}.pc"
     25700        else
     25701          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     25702echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     25703          pcifile=
     25704        fi
    2461225705        break
    2461325706      fi
     
    2462325716      projtoprocess=${projtoprocess/$proj/$projrequires}
    2462425717
    24625       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    24626       if test "x$allproj" = x ; then
    24627         MSK_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     25718      # read DATA from $pcfile, if _DATA is still empty
     25719      if test "x$MSK_DATA" = x ; then
     25720        projdatadir=
     25721        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     25722        eval `sh -c "$pcfilemod"`
     25723        MSK_DATA="$projdatadir"
    2462825724      fi
    2462925725
     
    2463625732      allproj=fail
    2463725733      break 2
     25734    fi
     25735
     25736    if test "x$pcifile" != x ; then
     25737      allpcifiles="$pcifile:$allpcifiles"
     25738
     25739      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     25740      if test "x$MSK_DATA_INSTALLED" = x ; then
     25741        projdatadir=
     25742        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     25743        eval `sh -c "$pcifilemod"`
     25744        if test "${CYGPATH_W}" != "echo"; then
     25745          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     25746        fi
     25747        MSK_DATA_INSTALLED="$projdatadir"
     25748      fi
     25749
    2463825750    fi
    2463925751
     
    2466625778    fi
    2466725779
    24668     # reconstruct the directory where the .pc file is located
    24669     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    24670 
    24671     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    24672     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    24673     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25780    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25781    #   replace "Libs:" by "echo projlibs="
     25782    #   replace "Cflags:" by "echo projcflags="
     25783    #   remove every line starting with <some word>:
     25784    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25785
     25786    # set projcflags and projlibs variables by running $pcfilemod
     25787    projcflags=
     25788    projlibs=
     25789    eval `sh -c "$pcfilemod"`
     25790
     25791    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25792    if test "${CYGPATH_W}" != "echo"; then
     25793      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25794    fi
    2467425795    MSK_CFLAGS="$projcflags $MSK_CFLAGS"
    2467525796
    24676     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    24677     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    24678     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    24679     if test "x$projlibs" != x ; then
    24680       if test -d "${pcfiledir}/src" ; then
    24681         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    24682       else
    24683         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    24684       fi
    24685     else
    24686       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    24687     fi
     25797    # set LIBS variable
    2468825798    MSK_LIBS="$projlibs $MSK_LIBS"
    2468925799
     
    2469325803  done
    2469425804  IFS="$save_IFS"
     25805
     25806
     25807  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     25808  # important is here again to obey the reverse order that has been setup before,
     25809  # since then libraries that are required by several others should be after these other libraries
     25810  pcfilesprocessed=""
     25811
     25812  save_IFS="$IFS"
     25813  IFS=":"
     25814  for pcfile in $allpcifiles ; do
     25815
     25816    # if $pcfile has been processed already, skip this round
     25817    if test "x$pcfilesprocessed" != x ; then
     25818      for pcfiledone in $pcfilesprocessed ; do
     25819        if test "$pcfiledone" = "$pcfile" ; then
     25820          continue 2
     25821        fi
     25822      done
     25823    fi
     25824
     25825    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25826    #   replace "Libs:" by "echo projlibs="
     25827    #   replace "Cflags:" by "echo projcflags="
     25828    #   remove every line starting with <some word>:
     25829    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25830
     25831    # set projcflags and projlibs variables by running $pcfilemod
     25832    projcflags=
     25833    projlibs=
     25834    eval `sh -c "$pcfilemod"`
     25835
     25836    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25837    if test "${CYGPATH_W}" != "echo"; then
     25838      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25839    fi
     25840    MSK_CFLAGS_INSTALLED="$projcflags $MSK_CFLAGS_INSTALLED"
     25841
     25842    # set LIBS variable
     25843    MSK_LIBS_INSTALLED="$projlibs $MSK_LIBS_INSTALLED"
     25844
     25845    # remember that we have processed $pcfile
     25846    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25847
     25848  done
     25849  IFS="$save_IFS"
     25850
    2469525851
    2469625852  # finish up
     
    2470425860
    2470525861
     25862  # adjust linker flags for (i)cl compiler
     25863  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     25864  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25865  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25866  #    everything of the form "-lname" by "libname.lib"
     25867  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25868  then
     25869    MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25870    MSK_LIBS_INSTALLED=`echo " $MSK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     25871  fi
     25872
    2470625873
    2470725874    CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES"
    2470825875    CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS"
    2470925876    CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS"
     25877    CBCGENERIC_CFLAGS_INSTALLED="$MSK_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     25878    CBCGENERIC_LIBS_INSTALLED="$MSK_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     25879
     25880
     25881fi
     25882
     25883
     25884
     25885if test $coin_has_msk != notGiven &&
     25886                test $coin_has_msk != skipping; then
     25887  COIN_HAS_MSK_TRUE=
     25888  COIN_HAS_MSK_FALSE='#'
     25889else
     25890  COIN_HAS_MSK_TRUE='#'
     25891  COIN_HAS_MSK_FALSE=
     25892fi
     25893
     25894
     25895
     25896  fi
     25897
     25898else
     25899  echo "$as_me:$LINENO: result: $coin_has_msk" >&5
     25900echo "${ECHO_T}$coin_has_msk" >&6
     25901fi
     25902
     25903if test $coin_has_msk != skipping &&
     25904   test $coin_has_msk != notGiven ; then
     25905
     25906cat >>confdefs.h <<\_ACEOF
     25907#define COIN_HAS_MSK 1
     25908_ACEOF
     25909
     25910
     25911  # construct dependencies variables from LIBS variables
     25912  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25913  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25914  MSK_DEPENDENCIES=`echo " $MSK_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25915
     25916    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2471025917
    2471125918
     
    2471925926echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
    2472025927    fi
    24721     if test -n "$MSK_DATA" ; then
    24722       { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
    24723 echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
    24724     fi
    24725 
    24726       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    24727 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    24728       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    24729 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    24730 
    24731   fi
    24732 
    24733 fi
    24734 
    24735 
    24736 
    24737 if test $coin_has_msk != notGiven &&
    24738                 test $coin_has_msk != skipping; then
    24739   COIN_HAS_MSK_TRUE=
    24740   COIN_HAS_MSK_FALSE='#'
    24741 else
    24742   COIN_HAS_MSK_TRUE='#'
    24743   COIN_HAS_MSK_FALSE=
    24744 fi
    24745 
    24746 
    24747 
    24748   fi
    24749 
    24750 else
    24751   echo "$as_me:$LINENO: result: $coin_has_msk" >&5
    24752 echo "${ECHO_T}$coin_has_msk" >&6
    24753 fi
    24754 
    24755 if test $coin_has_msk != skipping &&
    24756    test $coin_has_msk != notGiven ; then
    24757 
    24758 cat >>confdefs.h <<\_ACEOF
    24759 #define COIN_HAS_MSK 1
    24760 _ACEOF
    24761 
    24762 
    24763   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24764     if test -n "$MSK_CFLAGS" ; then
    24765       { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
    24766 echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
    24767     fi
    24768     if test -n "$MSK_LIBS" ; then
    24769       { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
    24770 echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
     25928    if test -n "$MSK_DEPENDENCIES" ; then
     25929      { echo "$as_me:$LINENO: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&5
     25930echo "$as_me: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&6;}
    2477125931    fi
    2477225932    if test -n "$MSK_DATA" ; then
     
    2478325943      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2478425944echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     25945      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     25946echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2478525947
    2478625948  fi
     
    2481925981SPX_CFLAGS=
    2482025982SPX_DATA=
     25983
     25984
     25985
     25986
     25987
     25988
     25989
    2482125990
    2482225991
     
    2488626055    if test "$CYGPATH_W" != "echo" ; then
    2488726056      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    24888           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24889         fi
     26057      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26058    fi
    2489026059    SPX_CFLAGS="$cflags"
    2489126060    SPX_LIBS=`$PKG_CONFIG --libs "osi-soplex" 2>/dev/null`
     
    2489426063        echo "$as_me:$LINENO: result: yes: $SPX_VERSIONS" >&5
    2489526064echo "${ECHO_T}yes: $SPX_VERSIONS" >&6
    24896         CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES"
     26065
     26066        # adjust linker flags for (i)cl compiler
     26067        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     26068        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     26069        then
     26070          SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     26071        fi
     26072
     26073        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric
     26074
     26075          CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES"
     26076          CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS"
     26077          CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS"
    2489726078
    2489826079
     
    2491826099    export PKG_CONFIG_PATH
    2491926100
    24920     # augment X_CFLAGS and X_LIBS for each build target X in CbcGeneric
    24921 
    24922       CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS"
    24923       CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS"
    24924 
    2492526101  else
    2492626102    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2493226108coin_has_spx=notGiven
    2493326109SPX_LIBS=
     26110SPX_LIBS_INSTALLED=
    2493426111SPX_CFLAGS=
     26112SPX_CFLAGS_INSTALLED=
    2493526113SPX_DATA=
     26114SPX_DATA_INSTALLED=
    2493626115
    2493726116# initial list of dependencies is "osi-soplex", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2494026119# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2494126120# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     26121# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2494226122# also, we setup the DATA variable
    2494326123allproj=""
    2494426124allpcfiles=""
     26125allpcifiles=""
    2494526126while test "x$projtoprocess" != x ; do
    2494626127
     
    2495226133    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2495326134      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    24954       if test -r "$dir/$proj-uninstalled.pc" ; then
     26135      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2495526136        pcfile="$dir/$proj-uninstalled.pc"
     26137        if test -r "$dir/${proj}.pc" ; then
     26138          pcifile="$dir/${proj}.pc"
     26139        else
     26140          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     26141echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     26142          pcifile=
     26143        fi
    2495626144        break
    2495726145      fi
     
    2496726155      projtoprocess=${projtoprocess/$proj/$projrequires}
    2496826156
    24969       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    24970       if test "x$allproj" = x ; then
    24971         SPX_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     26157      # read DATA from $pcfile, if _DATA is still empty
     26158      if test "x$SPX_DATA" = x ; then
     26159        projdatadir=
     26160        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     26161        eval `sh -c "$pcfilemod"`
     26162        SPX_DATA="$projdatadir"
    2497226163      fi
    2497326164
     
    2498026171      allproj=fail
    2498126172      break 2
     26173    fi
     26174
     26175    if test "x$pcifile" != x ; then
     26176      allpcifiles="$pcifile:$allpcifiles"
     26177
     26178      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     26179      if test "x$SPX_DATA_INSTALLED" = x ; then
     26180        projdatadir=
     26181        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     26182        eval `sh -c "$pcifilemod"`
     26183        if test "${CYGPATH_W}" != "echo"; then
     26184          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     26185        fi
     26186        SPX_DATA_INSTALLED="$projdatadir"
     26187      fi
     26188
    2498226189    fi
    2498326190
     
    2501026217    fi
    2501126218
    25012     # reconstruct the directory where the .pc file is located
    25013     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    25014 
    25015     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    25016     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    25017     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26219    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     26220    #   replace "Libs:" by "echo projlibs="
     26221    #   replace "Cflags:" by "echo projcflags="
     26222    #   remove every line starting with <some word>:
     26223    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     26224
     26225    # set projcflags and projlibs variables by running $pcfilemod
     26226    projcflags=
     26227    projlibs=
     26228    eval `sh -c "$pcfilemod"`
     26229
     26230    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     26231    if test "${CYGPATH_W}" != "echo"; then
     26232      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26233    fi
    2501826234    SPX_CFLAGS="$projcflags $SPX_CFLAGS"
    2501926235
    25020     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    25021     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    25022     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    25023     if test "x$projlibs" != x ; then
    25024       if test -d "${pcfiledir}/src" ; then
    25025         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    25026       else
    25027         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    25028       fi
    25029     else
    25030       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    25031     fi
     26236    # set LIBS variable
    2503226237    SPX_LIBS="$projlibs $SPX_LIBS"
    2503326238
     
    2503726242  done
    2503826243  IFS="$save_IFS"
     26244
     26245
     26246  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     26247  # important is here again to obey the reverse order that has been setup before,
     26248  # since then libraries that are required by several others should be after these other libraries
     26249  pcfilesprocessed=""
     26250
     26251  save_IFS="$IFS"
     26252  IFS=":"
     26253  for pcfile in $allpcifiles ; do
     26254
     26255    # if $pcfile has been processed already, skip this round
     26256    if test "x$pcfilesprocessed" != x ; then
     26257      for pcfiledone in $pcfilesprocessed ; do
     26258        if test "$pcfiledone" = "$pcfile" ; then
     26259          continue 2
     26260        fi
     26261      done
     26262    fi
     26263
     26264    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     26265    #   replace "Libs:" by "echo projlibs="
     26266    #   replace "Cflags:" by "echo projcflags="
     26267    #   remove every line starting with <some word>:
     26268    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     26269
     26270    # set projcflags and projlibs variables by running $pcfilemod
     26271    projcflags=
     26272    projlibs=
     26273    eval `sh -c "$pcfilemod"`
     26274
     26275    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     26276    if test "${CYGPATH_W}" != "echo"; then
     26277      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26278    fi
     26279    SPX_CFLAGS_INSTALLED="$projcflags $SPX_CFLAGS_INSTALLED"
     26280
     26281    # set LIBS variable
     26282    SPX_LIBS_INSTALLED="$projlibs $SPX_LIBS_INSTALLED"
     26283
     26284    # remember that we have processed $pcfile
     26285    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     26286
     26287  done
     26288  IFS="$save_IFS"
     26289
    2503926290
    2504026291  # finish up
     
    2504826299
    2504926300
     26301  # adjust linker flags for (i)cl compiler
     26302  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     26303  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     26304  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     26305  #    everything of the form "-lname" by "libname.lib"
     26306  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     26307  then
     26308    SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     26309    SPX_LIBS_INSTALLED=`echo " $SPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     26310  fi
     26311
    2505026312
    2505126313    CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES"
    2505226314    CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS"
    2505326315    CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS"
     26316    CBCGENERIC_CFLAGS_INSTALLED="$SPX_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED"
     26317    CBCGENERIC_LIBS_INSTALLED="$SPX_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED"
     26318
     26319
     26320fi
     26321
     26322
     26323
     26324if test $coin_has_spx != notGiven &&
     26325                test $coin_has_spx != skipping; then
     26326  COIN_HAS_SPX_TRUE=
     26327  COIN_HAS_SPX_FALSE='#'
     26328else
     26329  COIN_HAS_SPX_TRUE='#'
     26330  COIN_HAS_SPX_FALSE=
     26331fi
     26332
     26333
     26334
     26335  fi
     26336
     26337else
     26338  echo "$as_me:$LINENO: result: $coin_has_spx" >&5
     26339echo "${ECHO_T}$coin_has_spx" >&6
     26340fi
     26341
     26342if test $coin_has_spx != skipping &&
     26343   test $coin_has_spx != notGiven ; then
     26344
     26345cat >>confdefs.h <<\_ACEOF
     26346#define COIN_HAS_SPX 1
     26347_ACEOF
     26348
     26349
     26350  # construct dependencies variables from LIBS variables
     26351  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     26352  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     26353  SPX_DEPENDENCIES=`echo " $SPX_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     26354
     26355    CBCGENERIC_DEPENDENCIES=`echo " $CBCGENERIC_LIBS " | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2505426356
    2505526357
     
    2506326365echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
    2506426366    fi
    25065     if test -n "$SPX_DATA" ; then
    25066       { echo "$as_me:$LINENO: Spx DATA   is  $SPX_DATA" >&5
    25067 echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
    25068     fi
    25069 
    25070       { echo "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5
    25071 echo "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;}
    25072       { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    25073 echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
    25074 
    25075   fi
    25076 
    25077 fi
    25078 
    25079 
    25080 
    25081 if test $coin_has_spx != notGiven &&
    25082                 test $coin_has_spx != skipping; then
    25083   COIN_HAS_SPX_TRUE=
    25084   COIN_HAS_SPX_FALSE='#'
    25085 else
    25086   COIN_HAS_SPX_TRUE='#'
    25087   COIN_HAS_SPX_FALSE=
    25088 fi
    25089 
    25090 
    25091 
    25092   fi
    25093 
    25094 else
    25095   echo "$as_me:$LINENO: result: $coin_has_spx" >&5
    25096 echo "${ECHO_T}$coin_has_spx" >&6
    25097 fi
    25098 
    25099 if test $coin_has_spx != skipping &&
    25100    test $coin_has_spx != notGiven ; then
    25101 
    25102 cat >>confdefs.h <<\_ACEOF
    25103 #define COIN_HAS_SPX 1
    25104 _ACEOF
    25105 
    25106 
    25107   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    25108     if test -n "$SPX_CFLAGS" ; then
    25109       { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
    25110 echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
    25111     fi
    25112     if test -n "$SPX_LIBS" ; then
    25113       { echo "$as_me:$LINENO: Spx LIBS   are $SPX_LIBS" >&5
    25114 echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
     26367    if test -n "$SPX_DEPENDENCIES" ; then
     26368      { echo "$as_me:$LINENO: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&5
     26369echo "$as_me: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&6;}
    2511526370    fi
    2511626371    if test -n "$SPX_DATA" ; then
     
    2512726382      { echo "$as_me:$LINENO: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&5
    2512826383echo "$as_me: CbcGeneric LIBS   are $CBCGENERIC_LIBS" >&6;}
     26384      { echo "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5
     26385echo "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;}
    2512926386
    2513026387  fi
     
    2516326420XPR_CFLAGS=
    2516426421XPR_DATA=
     26422
     26423
     26424
     26425
    2516526426
    2516626427
     
    2522126482    if test "$CYGPATH_W" != "echo" ; then
    2522226483      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    25223           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25224         fi
     26484      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26485    fi
    2522526486    XPR_CFLAGS="$cflags"
    2522626487    XPR_LIBS=`$PKG_CONFIG --libs "osi-xpress" 2>/dev/null`
     
    2523026491echo "${ECHO_T}yes: $XPR_VERSIONS" >&6
    2523126492
     26493        # adjust linker flags for (i)cl compiler
     26494        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     26495        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     26496        then
     26497          XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     26498        fi
     26499
     26500        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     26501
    2523226502
    2523326503
     
    2525226522    export PKG_CONFIG_PATH
    2525326523
    25254     # augment X_CFLAGS and X_LIBS for each build target X in
    25255 
    2525626524  else
    2525726525    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2526326531coin_has_xpr=notGiven
    2526426532XPR_LIBS=
     26533XPR_LIBS_INSTALLED=
    2526526534XPR_CFLAGS=
     26535XPR_CFLAGS_INSTALLED=
    2526626536XPR_DATA=
     26537XPR_DATA_INSTALLED=
    2526726538
    2526826539# initial list of dependencies is "osi-xpress", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2527126542# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2527226543# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     26544# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2527326545# also, we setup the DATA variable
    2527426546allproj=""
    2527526547allpcfiles=""
     26548allpcifiles=""
    2527626549while test "x$projtoprocess" != x ; do
    2527726550
     
    2528326556    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2528426557      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    25285       if test -r "$dir/$proj-uninstalled.pc" ; then
     26558      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2528626559        pcfile="$dir/$proj-uninstalled.pc"
     26560        if test -r "$dir/${proj}.pc" ; then
     26561          pcifile="$dir/${proj}.pc"
     26562        else
     26563          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     26564echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     26565          pcifile=
     26566        fi
    2528726567        break
    2528826568      fi
     
    2529826578      projtoprocess=${projtoprocess/$proj/$projrequires}
    2529926579
    25300       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    25301       if test "x$allproj" = x ; then
    25302         XPR_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     26580      # read DATA from $pcfile, if _DATA is still empty
     26581      if test "x$XPR_DATA" = x ; then
     26582        projdatadir=
     26583        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     26584        eval `sh -c "$pcfilemod"`
     26585        XPR_DATA="$projdatadir"
    2530326586      fi
    2530426587
     
    2531126594      allproj=fail
    2531226595      break 2
     26596    fi
     26597
     26598    if test "x$pcifile" != x ; then
     26599      allpcifiles="$pcifile:$allpcifiles"
     26600
     26601      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     26602      if test "x$XPR_DATA_INSTALLED" = x ; then
     26603        projdatadir=
     26604        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     26605        eval `sh -c "$pcifilemod"`
     26606        if test "${CYGPATH_W}" != "echo"; then
     26607          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     26608        fi
     26609        XPR_DATA_INSTALLED="$projdatadir"
     26610      fi
     26611
    2531326612    fi
    2531426613
     
    2534126640    fi
    2534226641
    25343     # reconstruct the directory where the .pc file is located
    25344     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    25345 
    25346     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    25347     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    25348     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26642    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     26643    #   replace "Libs:" by "echo projlibs="
     26644    #   replace "Cflags:" by "echo projcflags="
     26645    #   remove every line starting with <some word>:
     26646    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     26647
     26648    # set projcflags and projlibs variables by running $pcfilemod
     26649    projcflags=
     26650    projlibs=
     26651    eval `sh -c "$pcfilemod"`
     26652
     26653    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     26654    if test "${CYGPATH_W}" != "echo"; then
     26655      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26656    fi
    2534926657    XPR_CFLAGS="$projcflags $XPR_CFLAGS"
    2535026658
    25351     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    25352     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    25353     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    25354     if test "x$projlibs" != x ; then
    25355       if test -d "${pcfiledir}/src" ; then
    25356         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    25357       else
    25358         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    25359       fi
    25360     else
    25361       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    25362     fi
     26659    # set LIBS variable
    2536326660    XPR_LIBS="$projlibs $XPR_LIBS"
    2536426661
     
    2536826665  done
    2536926666  IFS="$save_IFS"
     26667
     26668
     26669  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     26670  # important is here again to obey the reverse order that has been setup before,
     26671  # since then libraries that are required by several others should be after these other libraries
     26672  pcfilesprocessed=""
     26673
     26674  save_IFS="$IFS"
     26675  IFS=":"
     26676  for pcfile in $allpcifiles ; do
     26677
     26678    # if $pcfile has been processed already, skip this round
     26679    if test "x$pcfilesprocessed" != x ; then
     26680      for pcfiledone in $pcfilesprocessed ; do
     26681        if test "$pcfiledone" = "$pcfile" ; then
     26682          continue 2
     26683        fi
     26684      done
     26685    fi
     26686
     26687    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     26688    #   replace "Libs:" by "echo projlibs="
     26689    #   replace "Cflags:" by "echo projcflags="
     26690    #   remove every line starting with <some word>:
     26691    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     26692
     26693    # set projcflags and projlibs variables by running $pcfilemod
     26694    projcflags=
     26695    projlibs=
     26696    eval `sh -c "$pcfilemod"`
     26697
     26698    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     26699    if test "${CYGPATH_W}" != "echo"; then
     26700      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26701    fi
     26702    XPR_CFLAGS_INSTALLED="$projcflags $XPR_CFLAGS_INSTALLED"
     26703
     26704    # set LIBS variable
     26705    XPR_LIBS_INSTALLED="$projlibs $XPR_LIBS_INSTALLED"
     26706
     26707    # remember that we have processed $pcfile
     26708    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     26709
     26710  done
     26711  IFS="$save_IFS"
     26712
    2537026713
    2537126714  # finish up
     
    2537926722
    2538026723
     26724  # adjust linker flags for (i)cl compiler
     26725  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     26726  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     26727  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     26728  #    everything of the form "-lname" by "libname.lib"
     26729  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     26730  then
     26731    XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     26732    XPR_LIBS_INSTALLED=`echo " $XPR_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     26733  fi
     26734
     26735
     26736
     26737fi
     26738
     26739
     26740
     26741if test $coin_has_xpr != notGiven &&
     26742                test $coin_has_xpr != skipping; then
     26743  COIN_HAS_XPR_TRUE=
     26744  COIN_HAS_XPR_FALSE='#'
     26745else
     26746  COIN_HAS_XPR_TRUE='#'
     26747  COIN_HAS_XPR_FALSE=
     26748fi
     26749
     26750
     26751
     26752  fi
     26753
     26754else
     26755  echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
     26756echo "${ECHO_T}$coin_has_xpr" >&6
     26757fi
     26758
     26759if test $coin_has_xpr != skipping &&
     26760   test $coin_has_xpr != notGiven ; then
     26761
     26762cat >>confdefs.h <<\_ACEOF
     26763#define COIN_HAS_XPR 1
     26764_ACEOF
     26765
     26766
     26767  # construct dependencies variables from LIBS variables
     26768  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     26769  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     26770  XPR_DEPENDENCIES=`echo " $XPR_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2538126771
    2538226772
     
    2539026780echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
    2539126781    fi
    25392     if test -n "$XPR_DATA" ; then
    25393       { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
    25394 echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
    25395     fi
    25396 
    25397   fi
    25398 
    25399 fi
    25400 
    25401 
    25402 
    25403 if test $coin_has_xpr != notGiven &&
    25404                 test $coin_has_xpr != skipping; then
    25405   COIN_HAS_XPR_TRUE=
    25406   COIN_HAS_XPR_FALSE='#'
    25407 else
    25408   COIN_HAS_XPR_TRUE='#'
    25409   COIN_HAS_XPR_FALSE=
    25410 fi
    25411 
    25412 
    25413 
    25414   fi
    25415 
    25416 else
    25417   echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
    25418 echo "${ECHO_T}$coin_has_xpr" >&6
    25419 fi
    25420 
    25421 if test $coin_has_xpr != skipping &&
    25422    test $coin_has_xpr != notGiven ; then
    25423 
    25424 cat >>confdefs.h <<\_ACEOF
    25425 #define COIN_HAS_XPR 1
    25426 _ACEOF
    25427 
    25428 
    25429   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    25430     if test -n "$XPR_CFLAGS" ; then
    25431       { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
    25432 echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
    25433     fi
    25434     if test -n "$XPR_LIBS" ; then
    25435       { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
    25436 echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
     26782    if test -n "$XPR_DEPENDENCIES" ; then
     26783      { echo "$as_me:$LINENO: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&5
     26784echo "$as_me: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&6;}
    2543726785    fi
    2543826786    if test -n "$XPR_DATA" ; then
     
    2549126839
    2549226840
     26841
     26842
     26843
     26844
    2549326845#check if user provided LIBS, CFLAGS, or DATA for module
    2549426846if test $coin_has_asl != skipping; then
     
    2554426896    if test "$CYGPATH_W" != "echo" ; then
    2554526897      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    25546           cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25547         fi
     26898      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     26899    fi
    2554826900    ASL_CFLAGS="$cflags"
    2554926901    ASL_LIBS=`$PKG_CONFIG --libs "coinasl" 2>/dev/null`
     
    2555326905echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
    2555426906
     26907        # adjust linker flags for (i)cl compiler
     26908        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     26909        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     26910        then
     26911          ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     26912        fi
     26913
     26914        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     26915
    2555526916
    2555626917
     
    2557526936    export PKG_CONFIG_PATH
    2557626937
    25577     # augment X_CFLAGS and X_LIBS for each build target X in
    25578 
    2557926938  else
    2558026939    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     
    2558626945coin_has_asl=notGiven
    2558726946ASL_LIBS=
     26947ASL_LIBS_INSTALLED=
    2558826948ASL_CFLAGS=
     26949ASL_CFLAGS_INSTALLED=
    2558926950ASL_DATA=
     26951ASL_DATA_INSTALLED=
    2559026952
    2559126953# initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x)
     
    2559426956# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    2559526957# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     26958# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    2559626959# also, we setup the DATA variable
    2559726960allproj=""
    2559826961allpcfiles=""
     26962allpcifiles=""
    2559926963while test "x$projtoprocess" != x ; do
    2560026964
     
    2560626970    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    2560726971      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    25608       if test -r "$dir/$proj-uninstalled.pc" ; then
     26972      if test -r "$dir/${proj}-uninstalled.pc" ; then
    2560926973        pcfile="$dir/$proj-uninstalled.pc"
     26974        if test -r "$dir/${proj}.pc" ; then
     26975          pcifile="$dir/${proj}.pc"
     26976        else
     26977          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     26978echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     26979          pcifile=
     26980        fi
    2561026981        break
    2561126982      fi
     
    2562126992      projtoprocess=${projtoprocess/$proj/$projrequires}
    2562226993
    25623       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    25624       if test "x$allproj" = x ; then
    25625         ASL_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
     26994      # read DATA from $pcfile, if _DATA is still empty
     26995      if test "x$ASL_DATA" = x ; then
     26996        projdatadir=
     26997        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     26998        eval `sh -c "$pcfilemod"`
     26999        ASL_DATA="$projdatadir"
    2562627000      fi
    2562727001
     
    2563427008      allproj=fail
    2563527009      break 2
     27010    fi
     27011
     27012    if test "x$pcifile" != x ; then
     27013      allpcifiles="$pcifile:$allpcifiles"
     27014
     27015      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     27016      if test "x$ASL_DATA_INSTALLED" = x ; then
     27017        projdatadir=
     27018        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     27019        eval `sh -c "$pcifilemod"`
     27020        if test "${CYGPATH_W}" != "echo"; then
     27021          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     27022        fi
     27023        ASL_DATA_INSTALLED="$projdatadir"
     27024      fi
     27025
    2563627026    fi
    2563727027
     
    2566427054    fi
    2566527055
    25666     # reconstruct the directory where the .pc file is located
    25667     pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
    25668 
    25669     # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    25670     projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    25671     projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     27056    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     27057    #   replace "Libs:" by "echo projlibs="
     27058    #   replace "Cflags:" by "echo projcflags="
     27059    #   remove every line starting with <some word>:
     27060    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     27061
     27062    # set projcflags and projlibs variables by running $pcfilemod
     27063    projcflags=
     27064    projlibs=
     27065    eval `sh -c "$pcfilemod"`
     27066
     27067    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     27068    if test "${CYGPATH_W}" != "echo"; then
     27069      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     27070    fi
    2567227071    ASL_CFLAGS="$projcflags $ASL_CFLAGS"
    2567327072
    25674     # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    25675     # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    25676     projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    25677     if test "x$projlibs" != x ; then
    25678       if test -d "${pcfiledir}/src" ; then
    25679         projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    25680       else
    25681         projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    25682       fi
    25683     else
    25684       projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    25685     fi
     27073    # set LIBS variable
    2568627074    ASL_LIBS="$projlibs $ASL_LIBS"
    2568727075
     
    2569127079  done
    2569227080  IFS="$save_IFS"
     27081
     27082
     27083  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     27084  # important is here again to obey the reverse order that has been setup before,
     27085  # since then libraries that are required by several others should be after these other libraries
     27086  pcfilesprocessed=""
     27087
     27088  save_IFS="$IFS"
     27089  IFS=":"
     27090  for pcfile in $allpcifiles ; do
     27091
     27092    # if $pcfile has been processed already, skip this round
     27093    if test "x$pcfilesprocessed" != x ; then
     27094      for pcfiledone in $pcfilesprocessed ; do
     27095        if test "$pcfiledone" = "$pcfile" ; then
     27096          continue 2
     27097        fi
     27098      done
     27099    fi
     27100
     27101    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     27102    #   replace "Libs:" by "echo projlibs="
     27103    #   replace "Cflags:" by "echo projcflags="
     27104    #   remove every line starting with <some word>:
     27105    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     27106
     27107    # set projcflags and projlibs variables by running $pcfilemod
     27108    projcflags=
     27109    projlibs=
     27110    eval `sh -c "$pcfilemod"`
     27111
     27112    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     27113    if test "${CYGPATH_W}" != "echo"; then
     27114      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     27115    fi
     27116    ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
     27117
     27118    # set LIBS variable
     27119    ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
     27120
     27121    # remember that we have processed $pcfile
     27122    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     27123
     27124  done
     27125  IFS="$save_IFS"
     27126
    2569327127
    2569427128  # finish up
     
    2570227136
    2570327137
     27138  # adjust linker flags for (i)cl compiler
     27139  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     27140  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     27141  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     27142  #    everything of the form "-lname" by "libname.lib"
     27143  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     27144  then
     27145    ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     27146    ASL_LIBS_INSTALLED=`echo " $ASL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     27147  fi
     27148
     27149
     27150
     27151fi
     27152
     27153
     27154
     27155if test $coin_has_asl != notGiven &&
     27156                test $coin_has_asl != skipping; then
     27157  COIN_HAS_ASL_TRUE=
     27158  COIN_HAS_ASL_FALSE='#'
     27159else
     27160  COIN_HAS_ASL_TRUE='#'
     27161  COIN_HAS_ASL_FALSE=
     27162fi
     27163
     27164
     27165
     27166  fi
     27167
     27168else
     27169  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
     27170echo "${ECHO_T}$coin_has_asl" >&6
     27171fi
     27172
     27173if test $coin_has_asl != skipping &&
     27174   test $coin_has_asl != notGiven ; then
     27175
     27176cat >>confdefs.h <<\_ACEOF
     27177#define COIN_HAS_ASL 1
     27178_ACEOF
     27179
     27180
     27181  # construct dependencies variables from LIBS variables
     27182  # we add an extra space in LIBS so we can substitute out everything starting with " -"
     27183  # also substitute out everything of the form `xxx`yyy (may have been added for cygwin/cl)
     27184  ASL_DEPENDENCIES=`echo " $ASL_LIBS" | sed -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    2570427185
    2570527186
     
    2571327194echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
    2571427195    fi
    25715     if test -n "$ASL_DATA" ; then
    25716       { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
    25717 echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
    25718     fi
    25719 
    25720   fi
    25721 
    25722 fi
    25723 
    25724 
    25725 
    25726 if test $coin_has_asl != notGiven &&
    25727                 test $coin_has_asl != skipping; then
    25728   COIN_HAS_ASL_TRUE=
    25729   COIN_HAS_ASL_FALSE='#'
    25730 else
    25731   COIN_HAS_ASL_TRUE='#'
    25732   COIN_HAS_ASL_FALSE=
    25733 fi
    25734 
    25735 
    25736 
    25737   fi
    25738 
    25739 else
    25740   echo "$as_me:$LINENO: result: $coin_has_asl" >&5
    25741 echo "${ECHO_T}$coin_has_asl" >&6
    25742 fi
    25743 
    25744 if test $coin_has_asl != skipping &&
    25745    test $coin_has_asl != notGiven ; then
    25746 
    25747 cat >>confdefs.h <<\_ACEOF
    25748 #define COIN_HAS_ASL 1
    25749 _ACEOF
    25750 
    25751 
    25752   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    25753     if test -n "$ASL_CFLAGS" ; then
    25754       { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
    25755 echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
    25756     fi
    25757     if test -n "$ASL_LIBS" ; then
    25758       { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
    25759 echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
     27196    if test -n "$ASL_DEPENDENCIES" ; then
     27197      { echo "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5
     27198echo "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;}
    2576027199    fi
    2576127200    if test -n "$ASL_DATA" ; then
     
    2646427903          echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
    2646527904echo "${ECHO_T}$doxydir (tag)" >&6
    26466           coin_doxy_excludes="$coin_doxy_excludes */${proj}*"
     27905          coin_doxy_excludes="$coin_doxy_excludes */${proj}"
    2646727906        else
    2646827907          # will process the source -- nothing further to be done here
     
    2666828107Usually this means the macro was only invoked conditionally." >&5
    2666928108echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
     28109Usually this means the macro was only invoked conditionally." >&2;}
     28110   { (exit 1); exit 1; }; }
     28111fi
     28112if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
     28113  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
     28114Usually this means the macro was only invoked conditionally." >&5
     28115echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
     28116Usually this means the macro was only invoked conditionally." >&2;}
     28117   { (exit 1); exit 1; }; }
     28118fi
     28119if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
     28120  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
     28121Usually this means the macro was only invoked conditionally." >&5
     28122echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
    2667028123Usually this means the macro was only invoked conditionally." >&2;}
    2667128124   { (exit 1); exit 1; }; }
     
    2755229005s,@have_svnversion@,$have_svnversion,;t t
    2755329006s,@CBC_SVN_REV@,$CBC_SVN_REV,;t t
     29007s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
     29008s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
    2755429009s,@CDEFS@,$CDEFS,;t t
    2755529010s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
     
    2757229027s,@CXXFLAGS@,$CXXFLAGS,;t t
    2757329028s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     29029s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
     29030s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
    2757429031s,@MPICXX@,$MPICXX,;t t
    2757529032s,@EGREP@,$EGREP,;t t
     
    2765229109s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t
    2765329110s,@COINDEPEND_DATA@,$COINDEPEND_DATA,;t t
     29111s,@COINDEPEND_DEPENDENCIES@,$COINDEPEND_DEPENDENCIES,;t t
     29112s,@COINDEPEND_LIBS_INSTALLED@,$COINDEPEND_LIBS_INSTALLED,;t t
     29113s,@COINDEPEND_CFLAGS_INSTALLED@,$COINDEPEND_CFLAGS_INSTALLED,;t t
     29114s,@COINDEPEND_DATA_INSTALLED@,$COINDEPEND_DATA_INSTALLED,;t t
    2765429115s,@CBCLIB_CFLAGS@,$CBCLIB_CFLAGS,;t t
    2765529116s,@CBCLIB_LIBS@,$CBCLIB_LIBS,;t t
    2765629117s,@CBCLIB_PCLIBS@,$CBCLIB_PCLIBS,;t t
    2765729118s,@CBCLIB_PCREQUIRES@,$CBCLIB_PCREQUIRES,;t t
     29119s,@CBCLIB_DEPENDENCIES@,$CBCLIB_DEPENDENCIES,;t t
     29120s,@CBCLIB_CFLAGS_INSTALLED@,$CBCLIB_CFLAGS_INSTALLED,;t t
     29121s,@CBCLIB_LIBS_INSTALLED@,$CBCLIB_LIBS_INSTALLED,;t t
    2765829122s,@CBCGENERIC_CFLAGS@,$CBCGENERIC_CFLAGS,;t t
    2765929123s,@CBCGENERIC_LIBS@,$CBCGENERIC_LIBS,;t t
    2766029124s,@CBCGENERIC_PCLIBS@,$CBCGENERIC_PCLIBS,;t t
    2766129125s,@CBCGENERIC_PCREQUIRES@,$CBCGENERIC_PCREQUIRES,;t t
     29126s,@CBCGENERIC_DEPENDENCIES@,$CBCGENERIC_DEPENDENCIES,;t t
     29127s,@CBCGENERIC_CFLAGS_INSTALLED@,$CBCGENERIC_CFLAGS_INSTALLED,;t t
     29128s,@CBCGENERIC_LIBS_INSTALLED@,$CBCGENERIC_LIBS_INSTALLED,;t t
    2766229129s,@COIN_HAS_COINDEPEND_TRUE@,$COIN_HAS_COINDEPEND_TRUE,;t t
    2766329130s,@COIN_HAS_COINDEPEND_FALSE@,$COIN_HAS_COINDEPEND_FALSE,;t t
     
    2766529132s,@CLP_CFLAGS@,$CLP_CFLAGS,;t t
    2766629133s,@CLP_DATA@,$CLP_DATA,;t t
     29134s,@CLP_DEPENDENCIES@,$CLP_DEPENDENCIES,;t t
     29135s,@CLP_LIBS_INSTALLED@,$CLP_LIBS_INSTALLED,;t t
     29136s,@CLP_CFLAGS_INSTALLED@,$CLP_CFLAGS_INSTALLED,;t t
     29137s,@CLP_DATA_INSTALLED@,$CLP_DATA_INSTALLED,;t t
    2766729138s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t
    2766829139s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t
     
    2767029141s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
    2767129142s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t
     29143s,@OSITESTS_DEPENDENCIES@,$OSITESTS_DEPENDENCIES,;t t
     29144s,@OSITESTS_LIBS_INSTALLED@,$OSITESTS_LIBS_INSTALLED,;t t
     29145s,@OSITESTS_CFLAGS_INSTALLED@,$OSITESTS_CFLAGS_INSTALLED,;t t
     29146s,@OSITESTS_DATA_INSTALLED@,$OSITESTS_DATA_INSTALLED,;t t
    2767229147s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t
    2767329148s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t
     
    2767529150s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
    2767629151s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
     29152s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
     29153s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
     29154s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
     29155s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
    2767729156s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
    2767829157s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
     
    2768029159s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
    2768129160s,@NETLIB_DATA@,$NETLIB_DATA,;t t
     29161s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
     29162s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
     29163s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
     29164s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
    2768229165s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
    2768329166s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
     
    2768529168s,@MIPLIB3_CFLAGS@,$MIPLIB3_CFLAGS,;t t
    2768629169s,@MIPLIB3_DATA@,$MIPLIB3_DATA,;t t
     29170s,@MIPLIB3_DEPENDENCIES@,$MIPLIB3_DEPENDENCIES,;t t
     29171s,@MIPLIB3_LIBS_INSTALLED@,$MIPLIB3_LIBS_INSTALLED,;t t
     29172s,@MIPLIB3_CFLAGS_INSTALLED@,$MIPLIB3_CFLAGS_INSTALLED,;t t
     29173s,@MIPLIB3_DATA_INSTALLED@,$MIPLIB3_DATA_INSTALLED,;t t
    2768729174s,@COIN_HAS_MIPLIB3_TRUE@,$COIN_HAS_MIPLIB3_TRUE,;t t
    2768829175s,@COIN_HAS_MIPLIB3_FALSE@,$COIN_HAS_MIPLIB3_FALSE,;t t
     
    2769029177s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t
    2769129178s,@DYLP_DATA@,$DYLP_DATA,;t t
     29179s,@DYLP_DEPENDENCIES@,$DYLP_DEPENDENCIES,;t t
     29180s,@DYLP_LIBS_INSTALLED@,$DYLP_LIBS_INSTALLED,;t t
     29181s,@DYLP_CFLAGS_INSTALLED@,$DYLP_CFLAGS_INSTALLED,;t t
     29182s,@DYLP_DATA_INSTALLED@,$DYLP_DATA_INSTALLED,;t t
    2769229183s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t
    2769329184s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t
     
    2769529186s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t
    2769629187s,@VOL_DATA@,$VOL_DATA,;t t
     29188s,@VOL_DEPENDENCIES@,$VOL_DEPENDENCIES,;t t
     29189s,@VOL_LIBS_INSTALLED@,$VOL_LIBS_INSTALLED,;t t
     29190s,@VOL_CFLAGS_INSTALLED@,$VOL_CFLAGS_INSTALLED,;t t
     29191s,@VOL_DATA_INSTALLED@,$VOL_DATA_INSTALLED,;t t
    2769729192s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t
    2769829193s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t
     
    2770029195s,@CPX_CFLAGS@,$CPX_CFLAGS,;t t
    2770129196s,@CPX_DATA@,$CPX_DATA,;t t
     29197s,@CPX_DEPENDENCIES@,$CPX_DEPENDENCIES,;t t
     29198s,@CPX_LIBS_INSTALLED@,$CPX_LIBS_INSTALLED,;t t
     29199s,@CPX_CFLAGS_INSTALLED@,$CPX_CFLAGS_INSTALLED,;t t
     29200s,@CPX_DATA_INSTALLED@,$CPX_DATA_INSTALLED,;t t
    2770229201s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t
    2770329202s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t
     
    2770529204s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
    2770629205s,@GLPK_DATA@,$GLPK_DATA,;t t
     29206s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
     29207s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
     29208s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
     29209s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
    2770729210s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
    2770829211s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
     
    2771029213s,@GRB_CFLAGS@,$GRB_CFLAGS,;t t
    2771129214s,@GRB_DATA@,$GRB_DATA,;t t
     29215s,@GRB_DEPENDENCIES@,$GRB_DEPENDENCIES,;t t
     29216s,@GRB_LIBS_INSTALLED@,$GRB_LIBS_INSTALLED,;t t
     29217s,@GRB_CFLAGS_INSTALLED@,$GRB_CFLAGS_INSTALLED,;t t
     29218s,@GRB_DATA_INSTALLED@,$GRB_DATA_INSTALLED,;t t
    2771229219s,@COIN_HAS_GRB_TRUE@,$COIN_HAS_GRB_TRUE,;t t
    2771329220s,@COIN_HAS_GRB_FALSE@,$COIN_HAS_GRB_FALSE,;t t
     
    2771529222s,@MSK_CFLAGS@,$MSK_CFLAGS,;t t
    2771629223s,@MSK_DATA@,$MSK_DATA,;t t
     29224s,@MSK_DEPENDENCIES@,$MSK_DEPENDENCIES,;t t
     29225s,@MSK_LIBS_INSTALLED@,$MSK_LIBS_INSTALLED,;t t
     29226s,@MSK_CFLAGS_INSTALLED@,$MSK_CFLAGS_INSTALLED,;t t
     29227s,@MSK_DATA_INSTALLED@,$MSK_DATA_INSTALLED,;t t
    2771729228s,@COIN_HAS_MSK_TRUE@,$COIN_HAS_MSK_TRUE,;t t
    2771829229s,@COIN_HAS_MSK_FALSE@,$COIN_HAS_MSK_FALSE,;t t
     
    2772029231s,@SPX_CFLAGS@,$SPX_CFLAGS,;t t
    2772129232s,@SPX_DATA@,$SPX_DATA,;t t
     29233s,@SPX_DEPENDENCIES@,$SPX_DEPENDENCIES,;t t
     29234s,@SPX_LIBS_INSTALLED@,$SPX_LIBS_INSTALLED,;t t
     29235s,@SPX_CFLAGS_INSTALLED@,$SPX_CFLAGS_INSTALLED,;t t
     29236s,@SPX_DATA_INSTALLED@,$SPX_DATA_INSTALLED,;t t
    2772229237s,@COIN_HAS_SPX_TRUE@,$COIN_HAS_SPX_TRUE,;t t
    2772329238s,@COIN_HAS_SPX_FALSE@,$COIN_HAS_SPX_FALSE,;t t
     
    2772529240s,@XPR_CFLAGS@,$XPR_CFLAGS,;t t
    2772629241s,@XPR_DATA@,$XPR_DATA,;t t
     29242s,@XPR_DEPENDENCIES@,$XPR_DEPENDENCIES,;t t
     29243s,@XPR_LIBS_INSTALLED@,$XPR_LIBS_INSTALLED,;t t
     29244s,@XPR_CFLAGS_INSTALLED@,$XPR_CFLAGS_INSTALLED,;t t
     29245s,@XPR_DATA_INSTALLED@,$XPR_DATA_INSTALLED,;t t
    2772729246s,@COIN_HAS_XPR_TRUE@,$COIN_HAS_XPR_TRUE,;t t
    2772829247s,@COIN_HAS_XPR_FALSE@,$COIN_HAS_XPR_FALSE,;t t
     
    2773029249s,@ASL_CFLAGS@,$ASL_CFLAGS,;t t
    2773129250s,@ASL_DATA@,$ASL_DATA,;t t
     29251s,@ASL_DEPENDENCIES@,$ASL_DEPENDENCIES,;t t
     29252s,@ASL_LIBS_INSTALLED@,$ASL_LIBS_INSTALLED,;t t
     29253s,@ASL_CFLAGS_INSTALLED@,$ASL_CFLAGS_INSTALLED,;t t
     29254s,@ASL_DATA_INSTALLED@,$ASL_DATA_INSTALLED,;t t
    2773229255s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
    2773329256s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
Note: See TracChangeset for help on using the changeset viewer.