Changeset 1522 for branches


Ignore:
Timestamp:
Feb 21, 2010 1:56:28 PM (10 years ago)
Author:
stefan
Message:

merge chgsets 1391:1520 from BSPsplit branch: pkg-config setup

Location:
branches/split
Files:
28 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/split

    • Property svn:externals
      •  

        old new  
        1 BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.5
        2 ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
        3 ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
        4 Data/Netlib   https://projects.coin-or.org/svn/Data/stable/1.0/Netlib
        5 Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
        6 CoinUtils     https://projects.coin-or.org/svn/CoinUtils/stable/2.6/CoinUtils
         1BuildTools    https://projects.coin-or.org/svn/BuildTools/branches/split
         2#ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
         3#ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
         4#Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
         5#CoinUtils     https://projects.coin-or.org/svn/CoinUtils/stable/BSPsplit/CoinUtils
  • branches/split/Clp/Makefile.am

    r1162 r1522  
    8989        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    9090
     91install-exec-local: install-doc
     92
     93uninstall-local: uninstall-doc
     94
    9195.PHONY: test unitTest
    9296
     
    9599########################################################################
    96100
    97 addlibsfile = clp_addlibs.txt
    98 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     101addlibsdir = $(datadir)/coin/doc/Clp
     102addlibs_DATA = clp_addlibs.txt
    99103
    100 install-exec-local: install-doc
    101         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    102 
    103 uninstall-local: uninstall-doc
    104         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     104pkgconfiglibdir = $(libdir)/pkgconfig
     105pkgconfiglib_DATA = clp.pc
    105106
    106107########################################################################
  • branches/split/Clp/Makefile.in

    r1162 r1522  
    3030#                    Documentation installation                        #
    3131########################################################################
     32
    3233srcdir = @srcdir@
    3334top_srcdir = @top_srcdir@
     
    6263        $(srcdir)/../ltmain.sh $(srcdir)/../missing \
    6364        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
     65        $(srcdir)/clp-uninstalled.pc.in $(srcdir)/clp.pc.in \
    6466        $(srcdir)/clp_addlibs.txt.in $(top_srcdir)/configure \
    6567        $(top_srcdir)/examples/Makefile.in \
     
    7779mkinstalldirs = $(install_sh) -d
    7880CONFIG_HEADER = $(top_builddir)/inc/config_clp.h
    79 CONFIG_CLEAN_FILES = examples/Makefile clp_addlibs.txt
     81CONFIG_CLEAN_FILES = examples/Makefile clp_addlibs.txt clp.pc \
     82        clp-uninstalled.pc
    8083SOURCES =
    8184DIST_SOURCES =
     
    8689        pdf-recursive ps-recursive uninstall-info-recursive \
    8790        uninstall-recursive
     91am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     92am__vpath_adj = case $$p in \
     93    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     94    *) f=$$p;; \
     95  esac;
     96am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     97am__installdirs = "$(DESTDIR)$(addlibsdir)" \
     98        "$(DESTDIR)$(pkgconfiglibdir)"
     99addlibsDATA_INSTALL = $(INSTALL_DATA)
     100pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     101DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
    88102ETAGS = etags
    89103CTAGS = ctags
     
    100114distuninstallcheck_listfiles = find . -type f -print
    101115distcleancheck_listfiles = find . -type f -print
     116ABSBUILDDIR = @ABSBUILDDIR@
    102117ACLOCAL = @ACLOCAL@
    103118ADDLIBS = @ADDLIBS@
     
    120135CDEFS = @CDEFS@
    121136CFLAGS = @CFLAGS@
    122 CLPDOCDIR = @CLPDOCDIR@
    123 CLPOBJDIR = @CLPOBJDIR@
    124 CLPSRCDIR = @CLPSRCDIR@
    125137COINUTILSDOCDIR = @COINUTILSDOCDIR@
    126138COINUTILSOBJDIR = @COINUTILSOBJDIR@
    127139COINUTILSSRCDIR = @COINUTILSSRCDIR@
    128 COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    129 COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
     140COINUTILS_CFLAGS = @COINUTILS_CFLAGS@
     141COINUTILS_DATA = @COINUTILS_DATA@
     142COINUTILS_LIBS = @COINUTILS_LIBS@
    130143COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    131144COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     145COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
     146COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     147COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
     148COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
    132149CPP = @CPP@
    133150CPPFLAGS = @CPPFLAGS@
     
    172189MPICC = @MPICC@
    173190MPICXX = @MPICXX@
     191NETLIB_CFLAGS = @NETLIB_CFLAGS@
     192NETLIB_DATA = @NETLIB_DATA@
     193NETLIB_LIBS = @NETLIB_LIBS@
    174194OBJEXT = @OBJEXT@
    175195OPT_CFLAGS = @OPT_CFLAGS@
     
    182202PACKAGE_VERSION = @PACKAGE_VERSION@
    183203PATH_SEPARATOR = @PATH_SEPARATOR@
     204PKG_CONFIG = @PKG_CONFIG@
    184205RANLIB = @RANLIB@
     206REQUIREDPACKAGES = @REQUIREDPACKAGES@
    185207RPATH_FLAGS = @RPATH_FLAGS@
     208SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     209SAMPLE_DATA = @SAMPLE_DATA@
     210SAMPLE_LIBS = @SAMPLE_LIBS@
    186211SET_MAKE = @SET_MAKE@
    187212SHELL = @SHELL@
     
    201226ac_ct_STRIP = @ac_ct_STRIP@
    202227ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     228ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    203229am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    204230am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    276302#                  Installation of the addlibs file                    #
    277303########################################################################
    278 addlibsfile = clp_addlibs.txt
    279 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     304addlibsdir = $(datadir)/coin/doc/Clp
     305addlibs_DATA = clp_addlibs.txt
     306pkgconfiglibdir = $(libdir)/pkgconfig
     307pkgconfiglib_DATA = clp.pc
    280308
    281309########################################################################
     
    286314DISTCLEANFILES = $(am__append_3) $(VPATH_DISTCLEANFILES)
    287315DocFiles = README AUTHORS LICENSE
    288 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     316DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    289317all: all-recursive
    290318
     
    344372clp_addlibs.txt: $(top_builddir)/config.status $(srcdir)/clp_addlibs.txt.in
    345373        cd $(top_builddir) && $(SHELL) ./config.status $@
     374clp.pc: $(top_builddir)/config.status $(srcdir)/clp.pc.in
     375        cd $(top_builddir) && $(SHELL) ./config.status $@
     376clp-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/clp-uninstalled.pc.in
     377        cd $(top_builddir) && $(SHELL) ./config.status $@
    346378
    347379mostlyclean-libtool:
     
    354386        -rm -f libtool
    355387uninstall-info-am:
     388install-addlibsDATA: $(addlibs_DATA)
     389        @$(NORMAL_INSTALL)
     390        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     391        @list='$(addlibs_DATA)'; for p in $$list; do \
     392          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     393          f=$(am__strip_dir) \
     394          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     395          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     396        done
     397
     398uninstall-addlibsDATA:
     399        @$(NORMAL_UNINSTALL)
     400        @list='$(addlibs_DATA)'; for p in $$list; do \
     401          f=$(am__strip_dir) \
     402          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     403          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     404        done
     405install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     406        @$(NORMAL_INSTALL)
     407        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     408        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     409          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     410          f=$(am__strip_dir) \
     411          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     412          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     413        done
     414
     415uninstall-pkgconfiglibDATA:
     416        @$(NORMAL_UNINSTALL)
     417        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     418          f=$(am__strip_dir) \
     419          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     420          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     421        done
    356422
    357423# This directory's subdirectories are mostly independent; you can cd
     
    631697check-am: all-am
    632698check: check-recursive
    633 all-am: Makefile
     699all-am: Makefile $(DATA)
    634700installdirs: installdirs-recursive
    635701installdirs-am:
     702        for dir in "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)"; do \
     703          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     704        done
    636705install: install-recursive
    637706install-exec: install-exec-recursive
     
    679748info-am:
    680749
    681 install-data-am:
     750install-data-am: install-addlibsDATA install-pkgconfiglibDATA
    682751
    683752install-exec-am: install-exec-local
     
    707776ps-am:
    708777
    709 uninstall-am: uninstall-info-am uninstall-local
     778uninstall-am: uninstall-addlibsDATA uninstall-info-am uninstall-local \
     779        uninstall-pkgconfiglibDATA
    710780
    711781uninstall-info: uninstall-info-recursive
     
    718788        distclean-local distclean-recursive distclean-tags \
    719789        distcleancheck distdir distuninstallcheck dvi dvi-am html \
    720         html-am info info-am install install-am install-data \
    721         install-data-am install-exec install-exec-am \
     790        html-am info info-am install install-addlibsDATA install-am \
     791        install-data install-data-am install-exec install-exec-am \
    722792        install-exec-local install-info install-info-am install-man \
    723         install-strip installcheck installcheck-am installdirs \
    724         installdirs-am maintainer-clean maintainer-clean-generic \
    725         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    726         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    727         tags tags-recursive uninstall uninstall-am uninstall-info-am \
    728         uninstall-local
     793        install-pkgconfiglibDATA install-strip installcheck \
     794        installcheck-am installdirs installdirs-am maintainer-clean \
     795        maintainer-clean-generic maintainer-clean-recursive \
     796        mostlyclean mostlyclean-generic mostlyclean-libtool \
     797        mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
     798        uninstall uninstall-addlibsDATA uninstall-am uninstall-info-am \
     799        uninstall-local uninstall-pkgconfiglibDATA
    729800
    730801
     
    744815        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    745816
     817install-exec-local: install-doc
     818
     819uninstall-local: uninstall-doc
     820
    746821.PHONY: test unitTest
    747 
    748 install-exec-local: install-doc
    749         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    750 
    751 uninstall-local: uninstall-doc
    752         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    753822
    754823install-doc: $(DocFiles)
  • branches/split/Clp/configure

    r1421 r1522  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA REQUIREDPACKAGES COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_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 COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    994994ac_cv_env_FFLAGS_set=${FFLAGS+set}
    995995ac_cv_env_FFLAGS_value=$FFLAGS
     996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     997ac_env_PKG_CONFIG_value=$PKG_CONFIG
     998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    9961000
    9971001#
     
    10931097                          optimize for fast installation [default=yes]
    10941098  --disable-libtool-lock  avoid locking (might break parallel builds)
     1099  --enable-pkg-config     use pkg-config if available (default is yes)
    10951100  --enable-gnu-packages   compile with GNU packages (disabled by default)
    10961101
     
    11051110  --with-tags[=TAGS]
    11061111                          include additional configurations [automatic]
     1112  --with-coinutils-lib linker flags for using module CoinUtils
     1113  --with-coinutils-incdir directory with header files for using module
     1114                          CoinUtils
     1115  --with-coinutils-datadir
     1116                          directory with data files for using module CoinUtils
     1117  --with-coin-instdir     prefix of installation directory for precompiled
     1118                          COIN packages
     1119  --with-sample-lib linker flags for using module Sample
     1120  --with-sample-incdir directory with header files for using module Sample
     1121  --with-sample-datadir directory with data files for using module Sample
     1122  --with-netlib-lib linker flags for using module Netlib
     1123  --with-netlib-incdir directory with header files for using module Netlib
     1124  --with-netlib-datadir directory with data files for using module Netlib
    11071125  --with-wsmp             specify WSMP library
    11081126
     
    11331151  F77         Fortran 77 compiler command
    11341152  FFLAGS      Fortran 77 compiler flags
     1153  PKG_CONFIG  path to pkg-config utility
    11351154
    11361155Use these variables to override the choices made by `configure' or to help
     
    57865805*-*-irix6*)
    57875806  # Find out which ABI we are using.
    5788   echo '#line 5788 "configure"' > conftest.$ac_ext
     5807  echo '#line 5807 "configure"' > conftest.$ac_ext
    57895808  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    57905809  (eval $ac_compile) 2>&5
     
    69206939
    69216940# Provide some information about the compiler.
    6922 echo "$as_me:6922:" \
     6941echo "$as_me:6941:" \
    69236942     "checking for Fortran 77 compiler version" >&5
    69246943ac_compiler=`set X $ac_compile; echo $2`
     
    79878006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    79888007   -e 's:$: $lt_compiler_flag:'`
    7989    (eval echo "\"\$as_me:7989: $lt_compile\"" >&5)
     8008   (eval echo "\"\$as_me:8008: $lt_compile\"" >&5)
    79908009   (eval "$lt_compile" 2>conftest.err)
    79918010   ac_status=$?
    79928011   cat conftest.err >&5
    7993    echo "$as_me:7993: \$? = $ac_status" >&5
     8012   echo "$as_me:8012: \$? = $ac_status" >&5
    79948013   if (exit $ac_status) && test -s "$ac_outfile"; then
    79958014     # The compiler can only warn and ignore the option if not recognized
     
    82558274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82568275   -e 's:$: $lt_compiler_flag:'`
    8257    (eval echo "\"\$as_me:8257: $lt_compile\"" >&5)
     8276   (eval echo "\"\$as_me:8276: $lt_compile\"" >&5)
    82588277   (eval "$lt_compile" 2>conftest.err)
    82598278   ac_status=$?
    82608279   cat conftest.err >&5
    8261    echo "$as_me:8261: \$? = $ac_status" >&5
     8280   echo "$as_me:8280: \$? = $ac_status" >&5
    82628281   if (exit $ac_status) && test -s "$ac_outfile"; then
    82638282     # The compiler can only warn and ignore the option if not recognized
     
    83598378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83608379   -e 's:$: $lt_compiler_flag:'`
    8361    (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
     8380   (eval echo "\"\$as_me:8380: $lt_compile\"" >&5)
    83628381   (eval "$lt_compile" 2>out/conftest.err)
    83638382   ac_status=$?
    83648383   cat out/conftest.err >&5
    8365    echo "$as_me:8365: \$? = $ac_status" >&5
     8384   echo "$as_me:8384: \$? = $ac_status" >&5
    83668385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    83678386   then
     
    1070410723  lt_status=$lt_dlunknown
    1070510724  cat > conftest.$ac_ext <<EOF
    10706 #line 10706 "configure"
     10725#line 10725 "configure"
    1070710726#include "confdefs.h"
    1070810727
     
    1080410823  lt_status=$lt_dlunknown
    1080510824  cat > conftest.$ac_ext <<EOF
    10806 #line 10806 "configure"
     10825#line 10825 "configure"
    1080710826#include "confdefs.h"
    1080810827
     
    1314813167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1314913168   -e 's:$: $lt_compiler_flag:'`
    13150    (eval echo "\"\$as_me:13150: $lt_compile\"" >&5)
     13169   (eval echo "\"\$as_me:13169: $lt_compile\"" >&5)
    1315113170   (eval "$lt_compile" 2>conftest.err)
    1315213171   ac_status=$?
    1315313172   cat conftest.err >&5
    13154    echo "$as_me:13154: \$? = $ac_status" >&5
     13173   echo "$as_me:13173: \$? = $ac_status" >&5
    1315513174   if (exit $ac_status) && test -s "$ac_outfile"; then
    1315613175     # The compiler can only warn and ignore the option if not recognized
     
    1325213271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1325313272   -e 's:$: $lt_compiler_flag:'`
    13254    (eval echo "\"\$as_me:13254: $lt_compile\"" >&5)
     13273   (eval echo "\"\$as_me:13273: $lt_compile\"" >&5)
    1325513274   (eval "$lt_compile" 2>out/conftest.err)
    1325613275   ac_status=$?
    1325713276   cat out/conftest.err >&5
    13258    echo "$as_me:13258: \$? = $ac_status" >&5
     13277   echo "$as_me:13277: \$? = $ac_status" >&5
    1325913278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1326013279   then
     
    1482214841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1482314842   -e 's:$: $lt_compiler_flag:'`
    14824    (eval echo "\"\$as_me:14824: $lt_compile\"" >&5)
     14843   (eval echo "\"\$as_me:14843: $lt_compile\"" >&5)
    1482514844   (eval "$lt_compile" 2>conftest.err)
    1482614845   ac_status=$?
    1482714846   cat conftest.err >&5
    14828    echo "$as_me:14828: \$? = $ac_status" >&5
     14847   echo "$as_me:14847: \$? = $ac_status" >&5
    1482914848   if (exit $ac_status) && test -s "$ac_outfile"; then
    1483014849     # The compiler can only warn and ignore the option if not recognized
     
    1492614945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1492714946   -e 's:$: $lt_compiler_flag:'`
    14928    (eval echo "\"\$as_me:14928: $lt_compile\"" >&5)
     14947   (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
    1492914948   (eval "$lt_compile" 2>out/conftest.err)
    1493014949   ac_status=$?
    1493114950   cat out/conftest.err >&5
    14932    echo "$as_me:14932: \$? = $ac_status" >&5
     14951   echo "$as_me:14951: \$? = $ac_status" >&5
    1493314952   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1493414953   then
     
    1713317152   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1713417153   -e 's:$: $lt_compiler_flag:'`
    17135    (eval echo "\"\$as_me:17135: $lt_compile\"" >&5)
     17154   (eval echo "\"\$as_me:17154: $lt_compile\"" >&5)
    1713617155   (eval "$lt_compile" 2>conftest.err)
    1713717156   ac_status=$?
    1713817157   cat conftest.err >&5
    17139    echo "$as_me:17139: \$? = $ac_status" >&5
     17158   echo "$as_me:17158: \$? = $ac_status" >&5
    1714017159   if (exit $ac_status) && test -s "$ac_outfile"; then
    1714117160     # The compiler can only warn and ignore the option if not recognized
     
    1740117420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1740217421   -e 's:$: $lt_compiler_flag:'`
    17403    (eval echo "\"\$as_me:17403: $lt_compile\"" >&5)
     17422   (eval echo "\"\$as_me:17422: $lt_compile\"" >&5)
    1740417423   (eval "$lt_compile" 2>conftest.err)
    1740517424   ac_status=$?
    1740617425   cat conftest.err >&5
    17407    echo "$as_me:17407: \$? = $ac_status" >&5
     17426   echo "$as_me:17426: \$? = $ac_status" >&5
    1740817427   if (exit $ac_status) && test -s "$ac_outfile"; then
    1740917428     # The compiler can only warn and ignore the option if not recognized
     
    1750517524   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1750617525   -e 's:$: $lt_compiler_flag:'`
    17507    (eval echo "\"\$as_me:17507: $lt_compile\"" >&5)
     17526   (eval echo "\"\$as_me:17526: $lt_compile\"" >&5)
    1750817527   (eval "$lt_compile" 2>out/conftest.err)
    1750917528   ac_status=$?
    1751017529   cat out/conftest.err >&5
    17511    echo "$as_me:17511: \$? = $ac_status" >&5
     17530   echo "$as_me:17530: \$? = $ac_status" >&5
    1751217531   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1751317532   then
     
    2041120430#############################################################################
    2041220431
    20413 echo "$as_me:$LINENO: checking for COIN project CoinUtils" >&5
     20432
     20433
     20434# Check whether --enable-pkg-config or --disable-pkg-config was given.
     20435if test "${enable_pkg_config+set}" = set; then
     20436  enableval="$enable_pkg_config"
     20437  use_pkgconfig="$enableval"
     20438else
     20439  use_pkgconfig=yes
     20440fi;
     20441
     20442if test $use_pkgconfig = yes ; then
     20443  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     20444    if test -n "$ac_tool_prefix"; then
     20445  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     20446set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     20447echo "$as_me:$LINENO: checking for $ac_word" >&5
     20448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20449if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     20450  echo $ECHO_N "(cached) $ECHO_C" >&6
     20451else
     20452  case $PKG_CONFIG in
     20453  [\\/]* | ?:[\\/]*)
     20454  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     20455  ;;
     20456  *)
     20457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20458for as_dir in $PATH
     20459do
     20460  IFS=$as_save_IFS
     20461  test -z "$as_dir" && as_dir=.
     20462  for ac_exec_ext in '' $ac_executable_extensions; do
     20463  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20464    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20466    break 2
     20467  fi
     20468done
     20469done
     20470
     20471  ;;
     20472esac
     20473fi
     20474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     20475
     20476if test -n "$PKG_CONFIG"; then
     20477  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     20478echo "${ECHO_T}$PKG_CONFIG" >&6
     20479else
     20480  echo "$as_me:$LINENO: result: no" >&5
     20481echo "${ECHO_T}no" >&6
     20482fi
     20483
     20484fi
     20485if test -z "$ac_cv_path_PKG_CONFIG"; then
     20486  ac_pt_PKG_CONFIG=$PKG_CONFIG
     20487  # Extract the first word of "pkg-config", so it can be a program name with args.
     20488set dummy pkg-config; ac_word=$2
     20489echo "$as_me:$LINENO: checking for $ac_word" >&5
     20490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20491if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     20492  echo $ECHO_N "(cached) $ECHO_C" >&6
     20493else
     20494  case $ac_pt_PKG_CONFIG in
     20495  [\\/]* | ?:[\\/]*)
     20496  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     20497  ;;
     20498  *)
     20499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20500for as_dir in $PATH
     20501do
     20502  IFS=$as_save_IFS
     20503  test -z "$as_dir" && as_dir=.
     20504  for ac_exec_ext in '' $ac_executable_extensions; do
     20505  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20506    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20507    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20508    break 2
     20509  fi
     20510done
     20511done
     20512
     20513  ;;
     20514esac
     20515fi
     20516ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     20517
     20518if test -n "$ac_pt_PKG_CONFIG"; then
     20519  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     20520echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     20521else
     20522  echo "$as_me:$LINENO: result: no" >&5
     20523echo "${ECHO_T}no" >&6
     20524fi
     20525
     20526  PKG_CONFIG=$ac_pt_PKG_CONFIG
     20527else
     20528  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     20529fi
     20530
     20531  fi
     20532  if test -n "$PKG_CONFIG"; then
     20533    _pkg_min_version=0.9.0
     20534    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     20535echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     20536    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     20537      echo "$as_me:$LINENO: result: yes" >&5
     20538echo "${ECHO_T}yes" >&6
     20539    else
     20540      echo "$as_me:$LINENO: result: no" >&5
     20541echo "${ECHO_T}no" >&6
     20542      PKG_CONFIG=""
     20543    fi
     20544  fi
     20545
     20546  # check if pkg-config supports the short-errors flag
     20547  if test -n "$PKG_CONFIG" && \
     20548    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     20549    pkg_short_errors=" --short-errors "
     20550  else
     20551    pkg_short_errors=""
     20552  fi
     20553fi
     20554
     20555
     20556echo "$as_me:$LINENO: checking for COIN module CoinUtils" >&5
     20557echo $ECHO_N "checking for COIN module CoinUtils... $ECHO_C" >&6
     20558
     20559coin_has_coinutils=notGiven
     20560
     20561# check if user wants to skip module in any case
     20562if test x"$COIN_SKIP_PROJECTS" != x; then
     20563  for dir in $COIN_SKIP_PROJECTS; do
     20564    if test $dir = "CoinUtils"; then
     20565      coin_has_coinutils=skipping
     20566    fi
     20567  done
     20568fi
     20569
     20570COINUTILS_LIBS=
     20571COINUTILS_CFLAGS=
     20572COINUTILS_DATA=
     20573
     20574
     20575
     20576
     20577
     20578required=1
     20579
     20580# execute third argument that can be used to overwrite flags like 'required'
     20581
     20582
     20583#check if user provided LIBS, CFLAGS, and DATA for module
     20584if test $coin_has_coinutils != skipping; then
     20585
     20586
     20587# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
     20588if test "${with_coinutils_lib+set}" = set; then
     20589  withval="$with_coinutils_lib"
     20590  coin_has_coinutils=yes
     20591       COINUTILS_LIBS="$withval"
     20592       if test $required = 1; then
     20593         ADDLIBS="$ADDLIBS $withval"
     20594       fi
     20595
     20596fi;
     20597
     20598
     20599# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
     20600if test "${with_coinutils_incdir+set}" = set; then
     20601  withval="$with_coinutils_incdir"
     20602  coin_has_coinutils=yes
     20603     COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
     20604fi;
     20605
     20606
     20607# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
     20608if test "${with_coinutils_datadir+set}" = set; then
     20609  withval="$with_coinutils_datadir"
     20610  coin_has_coinutils=yes
     20611     COINUTILS_DATA="$withval"
     20612fi;
     20613fi
     20614
     20615if test $coin_has_coinutils = notGiven; then
     20616  if test -n "$PKG_CONFIG" ; then
     20617    # assemble search path for pkg-config
     20618    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20619
     20620    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     20621    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20622    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20623    if test -d "${prefix}"; then
     20624      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     20625    fi
     20626
     20627
     20628# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20629if test "${with_coin_instdir+set}" = set; then
     20630  withval="$with_coin_instdir"
     20631  if test -d "$withval"; then : ; else
     20632         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20633echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20634   { (exit 1); exit 1; }; }
     20635       fi
     20636       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     20637
     20638fi;
     20639
     20640    # in a classic setup, we want to find uninstalled projects
     20641    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20642    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20643    # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     20644    if test -e ../coin_subdirs.txt ; then
     20645      for i in `cat ../coin_subdirs.txt` ; do
     20646        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     20647      done
     20648    fi
     20649
     20650    if test -e ../../coin_subdirs.txt ; then
     20651      for i in `cat ../../coin_subdirs.txt` ; do
     20652        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     20653      done
     20654    fi
     20655
     20656    # let pkg-config do it's magic
     20657    # need to export variable to be sure that the following pkg-config gets these values
     20658    export PKG_CONFIG_PATH
     20659
     20660
     20661
     20662if test -n "$PKG_CONFIG" ; then
     20663  if $PKG_CONFIG --exists "coinutils = split"; then
     20664    COINUTILS_VERSIONS="`$PKG_CONFIG --modversion coinutils = split 2>/dev/null`"
     20665     cflags=`$PKG_CONFIG --cflags "coinutils = split" 2>/dev/null`
     20666    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     20667        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     20668        # but only do this if is not trivial
     20669    if test "$CYGPATH_W" != "echo" ; then
     20670      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     20671          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20672        fi
     20673    COINUTILS_CFLAGS="$cflags"
     20674    COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils = split" 2>/dev/null`
     20675    COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils = split" 2>/dev/null`
     20676     coin_has_coinutils=yes
     20677        echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
     20678echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
     20679        if test $required = 1; then
     20680          REQUIREDPACKAGES="$REQUIREDPACKAGES coinutils = split"
     20681        fi
     20682
     20683
     20684  else
     20685    COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinutils = split`
     20686      coin_has_coinutils=notGiven
     20687        echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
     20688echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
     20689
     20690  fi
     20691else
     20692  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
     20693echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
     20694   { (exit 1); exit 1; }; }
     20695fi
     20696
     20697
     20698
     20699
     20700    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     20701  else
     20702    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     20703echo "${ECHO_T}skipped check via pkg-config" >&6
     20704  fi
     20705
     20706else
     20707  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
     20708echo "${ECHO_T}$coin_has_coinutils" >&6
     20709fi
     20710
     20711if test $coin_has_coinutils != skipping &&
     20712   test $coin_has_coinutils != notGiven ; then
     20713  if test -n "$COINUTILS_CFLAGS" ; then
     20714    { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
     20715echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
     20716  fi
     20717  if test -n "$COINUTILS_LIBS" ; then
     20718    { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
     20719echo "$as_me: CoinUtils LIBS   are $COINUTILS_LIBS" >&6;}
     20720  fi
     20721  if test -n "$COINUTILS_DATA" ; then
     20722    { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
     20723echo "$as_me: CoinUtils DATA   is  $COINUTILS_DATA" >&6;}
     20724  fi
     20725
     20726cat >>confdefs.h <<\_ACEOF
     20727#define COIN_HAS_COINUTILS 1
     20728_ACEOF
     20729
     20730fi
     20731
     20732# Define the Makefile conditional
     20733
     20734
     20735if test $coin_has_coinutils != notGiven &&
     20736                test $coin_has_coinutils != skipping; then
     20737  COIN_HAS_COINUTILS_TRUE=
     20738  COIN_HAS_COINUTILS_FALSE='#'
     20739else
     20740  COIN_HAS_COINUTILS_TRUE='#'
     20741  COIN_HAS_COINUTILS_FALSE=
     20742fi
     20743
     20744
     20745
     20746
     20747echo "$as_me:$LINENO: checking for COIN module Sample" >&5
     20748echo $ECHO_N "checking for COIN module Sample... $ECHO_C" >&6
     20749
     20750coin_has_sample=notGiven
     20751
     20752# check if user wants to skip module in any case
     20753if test x"$COIN_SKIP_PROJECTS" != x; then
     20754  for dir in $COIN_SKIP_PROJECTS; do
     20755    if test $dir = "Sample"; then
     20756      coin_has_sample=skipping
     20757    fi
     20758  done
     20759fi
     20760
     20761SAMPLE_LIBS=
     20762SAMPLE_CFLAGS=
     20763SAMPLE_DATA=
     20764
     20765
     20766
     20767
     20768
     20769required=1
     20770
     20771# execute third argument that can be used to overwrite flags like 'required'
     20772required=0
     20773
     20774#check if user provided LIBS, CFLAGS, and DATA for module
     20775if test $coin_has_sample != skipping; then
     20776
     20777
     20778# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
     20779if test "${with_sample_lib+set}" = set; then
     20780  withval="$with_sample_lib"
     20781  coin_has_sample=yes
     20782       SAMPLE_LIBS="$withval"
     20783       if test $required = 1; then
     20784         ADDLIBS="$ADDLIBS $withval"
     20785       fi
     20786
     20787fi;
     20788
     20789
     20790# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
     20791if test "${with_sample_incdir+set}" = set; then
     20792  withval="$with_sample_incdir"
     20793  coin_has_sample=yes
     20794     SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
     20795fi;
     20796
     20797
     20798# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
     20799if test "${with_sample_datadir+set}" = set; then
     20800  withval="$with_sample_datadir"
     20801  coin_has_sample=yes
     20802     SAMPLE_DATA="$withval"
     20803fi;
     20804fi
     20805
     20806if test $coin_has_sample = notGiven; then
     20807  if test -n "$PKG_CONFIG" ; then
     20808    # assemble search path for pkg-config
     20809    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20810
     20811    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     20812    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20813    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20814    if test -d "${prefix}"; then
     20815      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     20816    fi
     20817
     20818
     20819# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20820if test "${with_coin_instdir+set}" = set; then
     20821  withval="$with_coin_instdir"
     20822  if test -d "$withval"; then : ; else
     20823         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20824echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20825   { (exit 1); exit 1; }; }
     20826       fi
     20827       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     20828
     20829fi;
     20830
     20831    # in a classic setup, we want to find uninstalled projects
     20832    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20833    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20834    # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     20835    if test -e ../coin_subdirs.txt ; then
     20836      for i in `cat ../coin_subdirs.txt` ; do
     20837        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     20838      done
     20839    fi
     20840
     20841    if test -e ../../coin_subdirs.txt ; then
     20842      for i in `cat ../../coin_subdirs.txt` ; do
     20843        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     20844      done
     20845    fi
     20846
     20847    # let pkg-config do it's magic
     20848    # need to export variable to be sure that the following pkg-config gets these values
     20849    export PKG_CONFIG_PATH
     20850
     20851
     20852
     20853if test -n "$PKG_CONFIG" ; then
     20854  if $PKG_CONFIG --exists "coindatasample"; then
     20855    SAMPLE_VERSIONS="`$PKG_CONFIG --modversion coindatasample 2>/dev/null`"
     20856     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
     20857    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     20858        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     20859        # but only do this if is not trivial
     20860    if test "$CYGPATH_W" != "echo" ; then
     20861      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     20862          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20863        fi
     20864    SAMPLE_CFLAGS="$cflags"
     20865    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
     20866    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
     20867     coin_has_sample=yes
     20868        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
     20869echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
     20870        if test $required = 1; then
     20871          REQUIREDPACKAGES="$REQUIREDPACKAGES coindatasample"
     20872        fi
     20873
     20874
     20875  else
     20876    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatasample`
     20877      coin_has_sample=notGiven
     20878        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
     20879echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
     20880
     20881  fi
     20882else
     20883  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
     20884echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
     20885   { (exit 1); exit 1; }; }
     20886fi
     20887
     20888
     20889
     20890
     20891    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     20892  else
     20893    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     20894echo "${ECHO_T}skipped check via pkg-config" >&6
     20895  fi
     20896
     20897else
     20898  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     20899echo "${ECHO_T}$coin_has_sample" >&6
     20900fi
     20901
     20902if test $coin_has_sample != skipping &&
     20903   test $coin_has_sample != notGiven ; then
     20904  if test -n "$SAMPLE_CFLAGS" ; then
     20905    { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     20906echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     20907  fi
     20908  if test -n "$SAMPLE_LIBS" ; then
     20909    { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     20910echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     20911  fi
     20912  if test -n "$SAMPLE_DATA" ; then
     20913    { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     20914echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
     20915  fi
     20916
     20917cat >>confdefs.h <<\_ACEOF
     20918#define COIN_HAS_SAMPLE 1
     20919_ACEOF
     20920
     20921fi
     20922
     20923# Define the Makefile conditional
     20924
     20925
     20926if test $coin_has_sample != notGiven &&
     20927                test $coin_has_sample != skipping; then
     20928  COIN_HAS_SAMPLE_TRUE=
     20929  COIN_HAS_SAMPLE_FALSE='#'
     20930else
     20931  COIN_HAS_SAMPLE_TRUE='#'
     20932  COIN_HAS_SAMPLE_FALSE=
     20933fi
     20934
     20935
     20936
     20937
     20938echo "$as_me:$LINENO: checking for COIN module Netlib" >&5
     20939echo $ECHO_N "checking for COIN module Netlib... $ECHO_C" >&6
     20940
     20941coin_has_netlib=notGiven
     20942
     20943# check if user wants to skip module in any case
     20944if test x"$COIN_SKIP_PROJECTS" != x; then
     20945  for dir in $COIN_SKIP_PROJECTS; do
     20946    if test $dir = "Netlib"; then
     20947      coin_has_netlib=skipping
     20948    fi
     20949  done
     20950fi
     20951
     20952NETLIB_LIBS=
     20953NETLIB_CFLAGS=
     20954NETLIB_DATA=
     20955
     20956
     20957
     20958
     20959
     20960required=1
     20961
     20962# execute third argument that can be used to overwrite flags like 'required'
     20963required=0
     20964
     20965#check if user provided LIBS, CFLAGS, and DATA for module
     20966if test $coin_has_netlib != skipping; then
     20967
     20968
     20969# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
     20970if test "${with_netlib_lib+set}" = set; then
     20971  withval="$with_netlib_lib"
     20972  coin_has_netlib=yes
     20973       NETLIB_LIBS="$withval"
     20974       if test $required = 1; then
     20975         ADDLIBS="$ADDLIBS $withval"
     20976       fi
     20977
     20978fi;
     20979
     20980
     20981# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
     20982if test "${with_netlib_incdir+set}" = set; then
     20983  withval="$with_netlib_incdir"
     20984  coin_has_netlib=yes
     20985     NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
     20986fi;
     20987
     20988
     20989# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
     20990if test "${with_netlib_datadir+set}" = set; then
     20991  withval="$with_netlib_datadir"
     20992  coin_has_netlib=yes
     20993     NETLIB_DATA="$withval"
     20994fi;
     20995fi
     20996
     20997if test $coin_has_netlib = notGiven; then
     20998  if test -n "$PKG_CONFIG" ; then
     20999    # assemble search path for pkg-config
     21000    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21001
     21002    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21003    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21004    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21005    if test -d "${prefix}"; then
     21006      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21007    fi
     21008
     21009
     21010# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21011if test "${with_coin_instdir+set}" = set; then
     21012  withval="$with_coin_instdir"
     21013  if test -d "$withval"; then : ; else
     21014         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21015echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21016   { (exit 1); exit 1; }; }
     21017       fi
     21018       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21019
     21020fi;
     21021
     21022    # in a classic setup, we want to find uninstalled projects
     21023    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21024    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21025    # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     21026    if test -e ../coin_subdirs.txt ; then
     21027      for i in `cat ../coin_subdirs.txt` ; do
     21028        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     21029      done
     21030    fi
     21031
     21032    if test -e ../../coin_subdirs.txt ; then
     21033      for i in `cat ../../coin_subdirs.txt` ; do
     21034        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     21035      done
     21036    fi
     21037
     21038    # let pkg-config do it's magic
     21039    # need to export variable to be sure that the following pkg-config gets these values
     21040    export PKG_CONFIG_PATH
     21041
     21042
     21043
     21044if test -n "$PKG_CONFIG" ; then
     21045  if $PKG_CONFIG --exists "coindatanetlib"; then
     21046    NETLIB_VERSIONS="`$PKG_CONFIG --modversion coindatanetlib 2>/dev/null`"
     21047     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
     21048    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21049        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21050        # but only do this if is not trivial
     21051    if test "$CYGPATH_W" != "echo" ; then
     21052      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21053          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21054        fi
     21055    NETLIB_CFLAGS="$cflags"
     21056    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
     21057    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
     21058     coin_has_netlib=yes
     21059        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
     21060echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
     21061        if test $required = 1; then
     21062          REQUIREDPACKAGES="$REQUIREDPACKAGES coindatanetlib"
     21063        fi
     21064
     21065
     21066  else
     21067    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatanetlib`
     21068      coin_has_netlib=notGiven
     21069        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
     21070echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
     21071
     21072  fi
     21073else
     21074  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
     21075echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
     21076   { (exit 1); exit 1; }; }
     21077fi
     21078
     21079
     21080
     21081
     21082    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21083  else
     21084    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21085echo "${ECHO_T}skipped check via pkg-config" >&6
     21086  fi
     21087
     21088else
     21089  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     21090echo "${ECHO_T}$coin_has_netlib" >&6
     21091fi
     21092
     21093if test $coin_has_netlib != skipping &&
     21094   test $coin_has_netlib != notGiven ; then
     21095  if test -n "$NETLIB_CFLAGS" ; then
     21096    { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     21097echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     21098  fi
     21099  if test -n "$NETLIB_LIBS" ; then
     21100    { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     21101echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     21102  fi
     21103  if test -n "$NETLIB_DATA" ; then
     21104    { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     21105echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
     21106  fi
     21107
     21108cat >>confdefs.h <<\_ACEOF
     21109#define COIN_HAS_NETLIB 1
     21110_ACEOF
     21111
     21112fi
     21113
     21114# Define the Makefile conditional
     21115
     21116
     21117if test $coin_has_netlib != notGiven &&
     21118                test $coin_has_netlib != skipping; then
     21119  COIN_HAS_NETLIB_TRUE=
     21120  COIN_HAS_NETLIB_FALSE='#'
     21121else
     21122  COIN_HAS_NETLIB_TRUE='#'
     21123  COIN_HAS_NETLIB_FALSE=
     21124fi
     21125
     21126
     21127
     21128
     21129if test "$coin_has_coinutils" != yes ; then
     21130  echo "$as_me:$LINENO: checking for COIN project CoinUtils" >&5
    2041421131echo $ECHO_N "checking for COIN project CoinUtils... $ECHO_C" >&6
    2041521132
     
    2046921186echo "${ECHO_T}$coin_has_coinutils" >&6
    2047021187
    20471 echo "$as_me:$LINENO: checking for COIN project Clp" >&5
    20472 echo $ECHO_N "checking for COIN project Clp... $ECHO_C" >&6
    20473 
    20474 # First check, if the sub-project is actually available (ToDo: allow
    20475 # other locations)
    20476 
    20477 coin_has_clp=unavailable
    20478 if test x"$COIN_SKIP_PROJECTS" != x; then
    20479   for dir in $COIN_SKIP_PROJECTS; do
    20480     if test $dir = Clp; then
    20481       coin_has_clp=skipping
    20482     fi
    20483   done
    20484 fi
    20485 
    20486 if test $coin_has_clp != skipping; then
    20487   if test $PACKAGE_TARNAME = clp; then
    20488     coin_has_clp=.
     21188  if test $coin_has_coinutils != notGiven && test $coin_has_coinutils != skipping ; then
     21189    COINUTILS_CFLAGS="-I`${CYGPATH_W} ${COINUTILSSRCDIR}/src` -I`${CYGPATH_W} ${COINUTILSOBJDIR}/inc`"
     21190    COINUTILS_LIBS="${COINUTILSOBJDIR}/src/libCoinUtils.la `cat ${COINUTILSOBJDIR}/coinutils_addlibs.txt`"
    2048921191  else
    20490     if test -d $srcdir/../Clp; then
    20491       coin_has_clp=../Clp
    20492     fi
    20493   fi
    20494 fi
    20495 
    20496 if test $coin_has_clp != unavailable &&
    20497    test $coin_has_clp != skipping; then
    20498   # Set the #define if the component is available
    20499 
    20500 cat >>confdefs.h <<\_ACEOF
    20501 #define COIN_HAS_CLP 1
    20502 _ACEOF
    20503 
    20504 
    20505   # Set the variables for source and object code location
    20506 
    20507   CLPSRCDIR=`cd $srcdir/$coin_has_clp; pwd`
    20508 
    20509   CLPOBJDIR=`pwd`/$coin_has_clp
    20510 
    20511   CLPDOCDIR=$abs_lib_dir/../share/doc/coin/Clp
    20512 fi
    20513 
    20514   # Define the Makefile conditional
    20515 
    20516 
    20517 if test $coin_has_clp != unavailable &&
    20518                 test $coin_has_clp != skipping; then
    20519   COIN_HAS_CLP_TRUE=
    20520   COIN_HAS_CLP_FALSE='#'
    20521 else
    20522   COIN_HAS_CLP_TRUE='#'
    20523   COIN_HAS_CLP_FALSE=
    20524 fi
    20525 
    20526 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    20527 echo "${ECHO_T}$coin_has_clp" >&6
    20528 
     21192    { { echo "$as_me:$LINENO: error: \"Required package CoinUtils unavailable.\"" >&5
     21193echo "$as_me: error: \"Required package CoinUtils unavailable.\"" >&2;}
     21194   { (exit 1); exit 1; }; }
     21195  fi
     21196fi
    2052921197
    2053021198#############################################################################
     
    2101721685# Here list all the files that configure should create (except for the
    2101821686# configuration header file)
    21019                                                   ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile test/Makefile clp_addlibs.txt"
     21687                                                                      ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile test/Makefile clp_addlibs.txt clp.pc clp-uninstalled.pc"
    2102021688
    2102121689
     
    2108221750  fi
    2108321751
     21752  # need to come before AC_OUTPUT
     21753  if test x$coin_projectdir != xyes; then
     21754    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     21755    echo $coin_subdirs > coin_subdirs.txt
     21756  else
     21757    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     21758    ABSBUILDDIR="`pwd`"
     21759
     21760  fi
     21761
    2108421762  cat >confcache <<\_ACEOF
    2108521763# This file is a shell script that caches the results of configure
     
    2122221900   { (exit 1); exit 1; }; }
    2122321901fi
    21224 if test -z "${COIN_HAS_CLP_TRUE}" && test -z "${COIN_HAS_CLP_FALSE}"; then
    21225   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined.
     21902if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
     21903  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
    2122621904Usually this means the macro was only invoked conditionally." >&5
    21227 echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
     21905echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
     21906Usually this means the macro was only invoked conditionally." >&2;}
     21907   { (exit 1); exit 1; }; }
     21908fi
     21909if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
     21910  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
     21911Usually this means the macro was only invoked conditionally." >&5
     21912echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
     21913Usually this means the macro was only invoked conditionally." >&2;}
     21914   { (exit 1); exit 1; }; }
     21915fi
     21916if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
     21917  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
     21918Usually this means the macro was only invoked conditionally." >&5
     21919echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
    2122821920Usually this means the macro was only invoked conditionally." >&2;}
    2122921921   { (exit 1); exit 1; }; }
     
    2167822370  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    2167922371  "clp_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES clp_addlibs.txt" ;;
     22372  "clp.pc" ) CONFIG_FILES="$CONFIG_FILES clp.pc" ;;
     22373  "clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES clp-uninstalled.pc" ;;
    2168022374  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2168122375  "inc/config_clp.h" ) CONFIG_HEADERS="$CONFIG_HEADERS inc/config_clp.h" ;;
     
    2186422558s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2186522559s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     22560s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     22561s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     22562s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
     22563s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
     22564s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
     22565s,@REQUIREDPACKAGES@,$REQUIREDPACKAGES,;t t
     22566s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
     22567s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
     22568s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
     22569s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
     22570s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
     22571s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
     22572s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
     22573s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
     22574s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
     22575s,@NETLIB_DATA@,$NETLIB_DATA,;t t
     22576s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
     22577s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
    2186622578s,@COINUTILSSRCDIR@,$COINUTILSSRCDIR,;t t
    2186722579s,@COINUTILSOBJDIR@,$COINUTILSOBJDIR,;t t
    2186822580s,@COINUTILSDOCDIR@,$COINUTILSDOCDIR,;t t
    21869 s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
    21870 s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
    21871 s,@CLPSRCDIR@,$CLPSRCDIR,;t t
    21872 s,@CLPOBJDIR@,$CLPOBJDIR,;t t
    21873 s,@CLPDOCDIR@,$CLPDOCDIR,;t t
    21874 s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t
    21875 s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t
    2187622581s,@LIBEXT@,$LIBEXT,;t t
    2187722582s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     22583s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2187822584s,@LIBOBJS@,$LIBOBJS,;t t
    2187922585s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • branches/split/Clp/configure.ac

    r1421 r1522  
    5757#############################################################################
    5858
    59 AC_COIN_HAS_PROJECT(CoinUtils)
    60 AC_COIN_HAS_PROJECT(Clp)
     59AC_COIN_HAS_MODULE(CoinUtils,  [coinutils = split])
     60AC_COIN_HAS_MODULE(Sample,     [coindatasample], [required=0])
     61AC_COIN_HAS_MODULE(Netlib,     [coindatanetlib], [required=0])
     62
     63if test "$coin_has_coinutils" != yes ; then
     64  AC_COIN_HAS_PROJECT(CoinUtils)
     65  if test $coin_has_coinutils != notGiven && test $coin_has_coinutils != skipping ; then
     66    COINUTILS_CFLAGS="-I`${CYGPATH_W} ${COINUTILSSRCDIR}/src` -I`${CYGPATH_W} ${COINUTILSOBJDIR}/inc`"
     67    COINUTILS_LIBS="${COINUTILSOBJDIR}/src/libCoinUtils.la `cat ${COINUTILSOBJDIR}/coinutils_addlibs.txt`"
     68  else
     69    AC_MSG_ERROR("Required package CoinUtils unavailable.")
     70  fi
     71fi
    6172
    6273#############################################################################
     
    127138                 src/Makefile
    128139                 test/Makefile
    129                  clp_addlibs.txt])
     140                 clp_addlibs.txt
     141                 clp.pc
     142                 clp-uninstalled.pc])
    130143
    131144# Here put the location and name of the configuration header file
  • branches/split/Clp/examples/Makefile.in

    r1265 r1522  
    4242
    4343# C++ Compiler options
    44 CXXFLAGS = @CXXFLAGS@
     44CXXFLAGS = @CXXFLAGS@ -DSAMPLEDIR=\"@SAMPLE_DATA@\"
    4545
    4646# additional C++ Compiler options for linking
     
    5151
    5252# C Compiler options
    53 CFLAGS = @CFLAGS@
     53CFLAGS = @CFLAGS@ -DSAMPLEDIR=\"@SAMPLE_DATA@\"
    5454
    5555# Directory with COIN header files
     
    5757
    5858# Directory with COIN libraries
    59 COINLIBDIR = @abs_lib_dir@
     59COINLIBDIR = @abs_lib_dir@/coin
    6060
    6161# Libraries necessary to link with Clp
    62 LIBS = -L$(COINLIBDIR) -lClp -lCoinUtils \
    63         @ADDLIBS@ `cat @COINUTILSDOCDIR@/coinutils_addlibs.txt`
     62LIBS = @COINUTILS_LIBS@ -L`$(CYGPATH_W) $(COINLIBDIR)` -lClp @ADDLIBS@
    6463
    6564# Necessary Include dirs (we use the CYGPATH_W variables to allow
    6665# compilation with Windows compilers)
    67 INCL = -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
     66INCL = @COINUTILS_CFLAGS@ -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
    6867
    6968# The following is necessary under cygwin, if native compilers are used
  • branches/split/Clp/examples/addColumns.cpp

    r1370 r1522  
    183183    ClpSimplex  model;
    184184    int status;
    185     if (argc<2)
    186       status=model.readMps("../../Data/Sample/p0033.mps");
    187     else
     185    if (argc<2) {
     186#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     187      status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     188#else
     189      fprintf(stderr,"Do not know where to find sample MPS files.\n");
     190      exit(1);
     191#endif
     192    } else
    188193      status=model.readMps(argv[1]);
    189194    if (status) {
     
    227232    ClpSimplex  model;
    228233    int status;
    229     if (argc<2)
    230       status=model.readMps("../../Data/Sample/p0033.mps");
    231     else
     234    if (argc<2) {
     235#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     236      status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     237#else
     238      fprintf(stderr,"Do not know where to find sample MPS files.\n");
     239      exit(1);
     240#endif
     241    } else
    232242      status=model.readMps(argv[1]);
    233243    if (status) {
  • branches/split/Clp/examples/defaults.cpp

    r1370 r1522  
    1313  int status;
    1414  // Keep names
    15   if (argc<2)
    16     status=model.readMps("../../Data/Sample/p0033.mps",true);
    17   else
     15  if (argc<2) {
     16#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     17    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     18#else
     19    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     20    exit(1);
     21#endif
     22  } else
    1823    status=model.readMps(argv[1],true);
    1924  /*
  • branches/split/Clp/examples/driver.cpp

    r1370 r1522  
    1111  int status;
    1212  // Keep names when reading an mps file
    13   if (argc<2)
    14     status=model.readMps("../../Data/Sample/p0033.mps",true);
    15   else
     13  if (argc<2) {
     14#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     15    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     16#else
     17    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     18    exit(1);
     19#endif
     20  } else
    1621    status=model.readMps(argv[1],true);
    1722
  • branches/split/Clp/examples/driver2.cpp

    r1370 r1522  
    183183  int status;
    184184  // Keep names when reading an mps file
    185   if (argc<2)
    186     status=model.readMps("../../Data/Sample/p0033.mps",true);
    187   else
     185  if (argc<2) {
     186#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     187    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     188#else
     189    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     190    exit(1);
     191#endif
     192  } else
    188193    status=model.readMps(argv[1],true);
    189194
  • branches/split/Clp/examples/driverC.c

    r1370 r1522  
    55/* This example shows the use of the "C" interface */
    66
     7#include "ClpConfig.h"
    78#include "Clp_C_Interface.h"
    89#include <stdio.h>
     
    4142  Clp_registerCallBack(model,callBack);
    4243  /* Keep names when reading an mps file */
    43   if (argc<2)
    44     status=Clp_readMps(model,"../../Data/Sample/p0033.mps",1,0);
    45   else
     44  if (argc<2) {
     45#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     46    status=Clp_readMps(model,SAMPLEDIR "/p0033.mps",1,0);
     47#else
     48    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     49    exit(1);
     50#endif
     51  } else
    4652    status=Clp_readMps(model,argv[1],1,0);
    4753
  • branches/split/Clp/examples/ekk.cpp

    r1370 r1522  
    6565    name=argv[1];
    6666  } else {
    67     name="../../Data/Sample/p0033.mps";
     67#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     68    name=(SAMPLEDIR "/p0033.mps";
     69#else
     70    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     71    exit(1);
     72#endif
    6873  }
    6974
  • branches/split/Clp/examples/makeDual.cpp

    r1370 r1522  
    1010  ClpSimplex  model;
    1111  int status;
    12   if (argc<2)
    13     status=model.readMps("../../Data/Sample/p0033.mps");
    14   else
     12  if (argc<2) {
     13#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     14    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     15#else
     16    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     17    exit(1);
     18#endif
     19  } else
    1520    status=model.readMps(argv[1]);
    1621  if (status) {
  • branches/split/Clp/examples/minimum.cpp

    r1370 r1522  
    88  ClpSimplex  model;
    99  int status;
    10   if (argc<2)
    11     status=model.readMps("../../Data/Sample/p0033.mps");
    12   else
     10  if (argc<2) {
     11#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     12    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     13#else
     14    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     15    exit(1);
     16#endif
     17  } else
    1318    status=model.readMps(argv[1]);
    1419  if (!status) {
  • branches/split/Clp/examples/testBarrier.cpp

    r1370 r1522  
    1111  ClpInterior  model;
    1212  int status;
    13   if (argc<2)
    14     status=model.readMps("../../Data/Sample/p0033.mps");
    15   else
     13  if (argc<2) {
     14#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     15    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     16#else
     17    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     18    exit(1);
     19#endif
     20  } else
    1621    status=model.readMps(argv[1]);
    1722  if (status) {
  • branches/split/Clp/examples/testGub2.cpp

    r1370 r1522  
    1616  int maxIts=0;
    1717  int maxFactor=100;
    18   if (argc<2)
    19     status=model.readMps("../../Data/Sample/p0033.mps");
    20   else
     18  if (argc<2) {
     19#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     20    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     21#else
     22    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     23    exit(1);
     24#endif
     25  } else
    2126    status=model.readMps(argv[1]);
    2227  if (status) {
     
    271276      const int * id = gubMatrix->id();
    272277      int i;
    273       const float * lowerColumn = gubMatrix->lowerColumn();
    274       const float * upperColumn = gubMatrix->upperColumn();
     278      const double * lowerColumn = gubMatrix->lowerColumn();
     279      const double * upperColumn = gubMatrix->upperColumn();
    275280      for (i=0;i<numberGubColumns;i++) {
    276281        if (gubMatrix->getDynamicStatus(i)==ClpGubDynamicMatrix::atUpperBound) {
  • branches/split/Clp/examples/testQP.cpp

    r1370 r1522  
    2222  if (argc<2) {
    2323    CoinMpsIO  m;
    24     int status=m.readMps("../../Data/Sample/share2qp","mps");
     24#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     25    int status=m.readMps(SAMPLEDIR "/share2qp","mps");
     26#else
     27    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     28    exit(1);
     29#endif
    2530    if (status) {
    2631      printf("errors on input\n");
  • branches/split/Clp/examples/useVolume.cpp

    r1370 r1522  
    162162  int status;
    163163
    164   if (argc<2)
    165     status=model.readMps("../../Data/Sample/p0033.mps",true);
    166   else
     164  if (argc<2) {
     165#if defined(COIN_HAS_SAMPLE) && defined(SAMPLEDIR)
     166    status=model.readMps(SAMPLEDIR "/p0033.mps",true);
     167#else
     168    fprintf(stderr,"Do not know where to find sample MPS files.\n");
     169    exit(1);
     170#endif
     171  } else
    167172    status=model.readMps(argv[1],true);
    168173  /*
  • branches/split/Clp/inc/config_clp.h.in

    r1421 r1522  
    1010#undef COIN_CLP_VERBOSITY
    1111
    12 /* Define to 1 if the Clp package is used */
    13 #undef COIN_HAS_CLP
    14 
    1512/* Define to 1 if the CoinUtils package is used */
    1613#undef COIN_HAS_COINUTILS
    1714
     15/* Define to 1 if the Netlib module is available */
     16#undef COIN_HAS_NETLIB
     17
    1818/* Define to 1 if readline is available */
    1919#undef COIN_HAS_READLINE
     20
     21/* Define to 1 if the Sample module is available */
     22#undef COIN_HAS_SAMPLE
    2023
    2124/* Define to 1 if you have the <dlfcn.h> header file. */
  • branches/split/Clp/src/Makefile.am

    r1344 r1522  
    1515# Name of the library compiled in this directory.  We want it to be installed
    1616# in the 'lib' directory
    17 lib_LTLIBRARIES = libClp.la
     17coinlibdir = ${libdir}/coin
     18coinlib_LTLIBRARIES = libClp.la
    1819
    1920# List all source files for this library, including headers
     
    9293
    9394# List all additionally required COIN libraries
    94 clp_LDADD = libClp.la \
    95         $(COINUTILSOBJDIR)/src/libCoinUtils.la
     95clp_LDADD = libClp.la
    9696
    97 # Here we add additional libraries
    98 LIBS += $(ADDLIBS) `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
     97LIBS += $(COINUTILS_LIBS) $(ADDLIBS)
    9998
    10099# Finally, the -rpath flag is used by libtool to make sure that the shared
    101100# library is found (in the lib install directory) when we are using dynamic
    102101# libraries.
    103 clp_LDFLAGS = -rpath $(libdir)
     102clp_LDFLAGS = -rpath $(libdir)/coin
    104103
    105104########################################################################
     
    107106########################################################################
    108107
    109 # Here list all include flags, relative to this "srcdir" directory.  This
    110 # "cygpath" stuff is necessary to compile with native compilers on Windows.
    111 AM_CPPFLAGS = \
    112         -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
    113         -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc`
     108# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
     109AM_CPPFLAGS = $(COINUTILS_CFLAGS) -DCOIN_HAS_CLP
    114110
    115111# This line is necessary to allow VPATH compilation with MS compilers
  • branches/split/Clp/src/Makefile.in

    r1344 r1522  
    6363  esac;
    6464am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
    65 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
     65am__installdirs = "$(DESTDIR)$(coinlibdir)" "$(DESTDIR)$(bindir)" \
    6666        "$(DESTDIR)$(includecoindir)"
    67 libLTLIBRARIES_INSTALL = $(INSTALL)
    68 LTLIBRARIES = $(lib_LTLIBRARIES)
     67coinlibLTLIBRARIES_INSTALL = $(INSTALL)
     68LTLIBRARIES = $(coinlib_LTLIBRARIES)
    6969libClp_la_LIBADD =
    7070am_libClp_la_OBJECTS = ClpCholeskyBase.lo ClpCholeskyDense.lo \
     
    9393        unitTest.$(OBJEXT)
    9494clp_OBJECTS = $(am_clp_OBJECTS)
    95 clp_DEPENDENCIES = libClp.la $(COINUTILSOBJDIR)/src/libCoinUtils.la
     95clp_DEPENDENCIES = libClp.la
    9696depcomp = $(SHELL) $(top_srcdir)/../depcomp
    9797am__depfiles_maybe = depfiles
     
    119119CTAGS = ctags
    120120DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     121ABSBUILDDIR = @ABSBUILDDIR@
    121122ACLOCAL = @ACLOCAL@
    122123ADDLIBS = @ADDLIBS@
     
    139140CDEFS = @CDEFS@
    140141CFLAGS = @CFLAGS@
    141 CLPDOCDIR = @CLPDOCDIR@
    142 CLPOBJDIR = @CLPOBJDIR@
    143 CLPSRCDIR = @CLPSRCDIR@
    144142COINUTILSDOCDIR = @COINUTILSDOCDIR@
    145143COINUTILSOBJDIR = @COINUTILSOBJDIR@
    146144COINUTILSSRCDIR = @COINUTILSSRCDIR@
    147 COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    148 COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
     145COINUTILS_CFLAGS = @COINUTILS_CFLAGS@
     146COINUTILS_DATA = @COINUTILS_DATA@
     147COINUTILS_LIBS = @COINUTILS_LIBS@
    149148COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    150149COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     150COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
     151COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     152COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
     153COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
    151154CPP = @CPP@
    152155CPPFLAGS = @CPPFLAGS@
     
    179182LIBEXT = @LIBEXT@
    180183LIBOBJS = @LIBOBJS@
    181 
    182 # Here we add additional libraries
    183 LIBS = @LIBS@ $(ADDLIBS) `cat \
    184         $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
     184LIBS = @LIBS@ $(COINUTILS_LIBS) $(ADDLIBS)
    185185LIBTOOL = @LIBTOOL@
    186186LIBTOOLM4 = @LIBTOOLM4@
     
    194194MPICC = @MPICC@
    195195MPICXX = @MPICXX@
     196NETLIB_CFLAGS = @NETLIB_CFLAGS@
     197NETLIB_DATA = @NETLIB_DATA@
     198NETLIB_LIBS = @NETLIB_LIBS@
    196199OBJEXT = @OBJEXT@
    197200OPT_CFLAGS = @OPT_CFLAGS@
     
    204207PACKAGE_VERSION = @PACKAGE_VERSION@
    205208PATH_SEPARATOR = @PATH_SEPARATOR@
     209PKG_CONFIG = @PKG_CONFIG@
    206210RANLIB = @RANLIB@
     211REQUIREDPACKAGES = @REQUIREDPACKAGES@
    207212RPATH_FLAGS = @RPATH_FLAGS@
     213SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     214SAMPLE_DATA = @SAMPLE_DATA@
     215SAMPLE_LIBS = @SAMPLE_LIBS@
    208216SET_MAKE = @SET_MAKE@
    209217SHELL = @SHELL@
     
    223231ac_ct_STRIP = @ac_ct_STRIP@
    224232ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     233ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    225234am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    226235am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    272281# Name of the library compiled in this directory.  We want it to be installed
    273282# in the 'lib' directory
    274 lib_LTLIBRARIES = libClp.la
     283coinlibdir = ${libdir}/coin
     284coinlib_LTLIBRARIES = libClp.la
    275285
    276286# List all source files for this library, including headers
     
    343353
    344354# List all additionally required COIN libraries
    345 clp_LDADD = libClp.la \
    346         $(COINUTILSOBJDIR)/src/libCoinUtils.la
    347 
     355clp_LDADD = libClp.la
    348356
    349357# Finally, the -rpath flag is used by libtool to make sure that the shared
    350358# library is found (in the lib install directory) when we are using dynamic
    351359# libraries.
    352 clp_LDFLAGS = -rpath $(libdir)
     360clp_LDFLAGS = -rpath $(libdir)/coin
    353361
    354362########################################################################
     
    356364########################################################################
    357365
    358 # Here list all include flags, relative to this "srcdir" directory.  This
    359 # "cygpath" stuff is necessary to compile with native compilers on Windows.
    360 AM_CPPFLAGS = \
    361         -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
    362         -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc`
    363 
     366# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
     367AM_CPPFLAGS = $(COINUTILS_CFLAGS) -DCOIN_HAS_CLP
    364368
    365369# This line is necessary to allow VPATH compilation with MS compilers
     
    459463$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    460464        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    461 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
     465install-coinlibLTLIBRARIES: $(coinlib_LTLIBRARIES)
    462466        @$(NORMAL_INSTALL)
    463         test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
    464         @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     467        test -z "$(coinlibdir)" || $(mkdir_p) "$(DESTDIR)$(coinlibdir)"
     468        @list='$(coinlib_LTLIBRARIES)'; for p in $$list; do \
    465469          if test -f $$p; then \
    466470            f=$(am__strip_dir) \
    467             echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
    468             $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
     471            echo " $(LIBTOOL) --mode=install $(coinlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(coinlibdir)/$$f'"; \
     472            $(LIBTOOL) --mode=install $(coinlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(coinlibdir)/$$f"; \
    469473          else :; fi; \
    470474        done
    471475
    472 uninstall-libLTLIBRARIES:
     476uninstall-coinlibLTLIBRARIES:
    473477        @$(NORMAL_UNINSTALL)
    474         @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     478        @set -x; list='$(coinlib_LTLIBRARIES)'; for p in $$list; do \
    475479          p=$(am__strip_dir) \
    476           echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
    477           $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
    478         done
    479 
    480 clean-libLTLIBRARIES:
    481         -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
    482         @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     480          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(coinlibdir)/$$p'"; \
     481          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(coinlibdir)/$$p"; \
     482        done
     483
     484clean-coinlibLTLIBRARIES:
     485        -test -z "$(coinlib_LTLIBRARIES)" || rm -f $(coinlib_LTLIBRARIES)
     486        @list='$(coinlib_LTLIBRARIES)'; for p in $$list; do \
    483487          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
    484488          test "$$dir" != "$$p" || dir=.; \
     
    487491        done
    488492libClp.la: $(libClp_la_OBJECTS) $(libClp_la_DEPENDENCIES)
    489         $(CXXLINK) -rpath $(libdir) $(libClp_la_LDFLAGS) $(libClp_la_OBJECTS) $(libClp_la_LIBADD) $(LIBS)
     493        $(CXXLINK) -rpath $(coinlibdir) $(libClp_la_LDFLAGS) $(libClp_la_OBJECTS) $(libClp_la_LIBADD) $(LIBS)
    490494install-binPROGRAMS: $(bin_PROGRAMS)
    491495        @$(NORMAL_INSTALL)
     
    709713check: check-am
    710714all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
    711 install-binPROGRAMS: install-libLTLIBRARIES
    712 
    713715installdirs:
    714         for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includecoindir)"; do \
     716        for dir in "$(DESTDIR)$(coinlibdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includecoindir)"; do \
    715717          test -z "$$dir" || $(mkdir_p) "$$dir"; \
    716718        done
     
    741743clean: clean-am
    742744
    743 clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
     745clean-am: clean-binPROGRAMS clean-coinlibLTLIBRARIES clean-generic \
    744746        clean-libtool mostlyclean-am
    745747
     
    760762info-am:
    761763
    762 install-data-am: install-includecoinHEADERS
    763 
    764 install-exec-am: install-binPROGRAMS install-exec-local \
    765         install-libLTLIBRARIES
     764install-data-am: install-coinlibLTLIBRARIES install-includecoinHEADERS
     765
     766install-exec-am: install-binPROGRAMS install-exec-local
    766767
    767768install-info: install-info-am
     
    789790ps-am:
    790791
    791 uninstall-am: uninstall-binPROGRAMS uninstall-includecoinHEADERS \
    792         uninstall-info-am uninstall-libLTLIBRARIES uninstall-local
     792uninstall-am: uninstall-binPROGRAMS uninstall-coinlibLTLIBRARIES \
     793        uninstall-includecoinHEADERS uninstall-info-am uninstall-local
    793794
    794795.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
    795         clean-generic clean-libLTLIBRARIES clean-libtool ctags \
     796        clean-coinlibLTLIBRARIES clean-generic clean-libtool ctags \
    796797        distclean distclean-compile distclean-generic \
    797798        distclean-libtool distclean-tags distdir dvi dvi-am html \
    798799        html-am info info-am install install-am install-binPROGRAMS \
    799         install-data install-data-am install-exec install-exec-am \
    800         install-exec-local install-includecoinHEADERS install-info \
    801         install-info-am install-libLTLIBRARIES install-man \
    802         install-strip installcheck installcheck-am installdirs \
    803         maintainer-clean maintainer-clean-generic mostlyclean \
    804         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    805         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    806         uninstall-binPROGRAMS uninstall-includecoinHEADERS \
    807         uninstall-info-am uninstall-libLTLIBRARIES uninstall-local
     800        install-coinlibLTLIBRARIES install-data install-data-am \
     801        install-exec install-exec-am install-exec-local \
     802        install-includecoinHEADERS install-info install-info-am \
     803        install-man install-strip installcheck installcheck-am \
     804        installdirs maintainer-clean maintainer-clean-generic \
     805        mostlyclean mostlyclean-compile mostlyclean-generic \
     806        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     807        uninstall-am uninstall-binPROGRAMS \
     808        uninstall-coinlibLTLIBRARIES uninstall-includecoinHEADERS \
     809        uninstall-info-am uninstall-local
    808810
    809811
  • branches/split/Clp/src/unitTest.cpp

    r1434 r1522  
    778778    CoinMpsIO m;
    779779    std::string fn = dirSample+"exmip1";
    780     m.readMps(fn.c_str(),"mps");
    781     ClpSimplex solution;
    782     solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    783                          m.getObjCoefficients(),
    784                          m.getRowLower(),m.getRowUpper());
    785     solution.dual();
    786     // Test event handling
    787     MyEventHandler handler;
    788     solution.passInEventHandler(&handler);
    789     int numberRows=solution.numberRows();
    790     // make sure values pass has something to do
    791     for (int i=0;i<numberRows;i++)
    792       solution.setRowStatus(i,ClpSimplex::basic);
    793     solution.primal(1);
    794     assert (solution.secondaryStatus()==102); // Came out at end of pass
     780    if (m.readMps(fn.c_str(),"mps") == 0) {
     781      ClpSimplex solution;
     782      solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     783                          m.getObjCoefficients(),
     784                          m.getRowLower(),m.getRowUpper());
     785      solution.dual();
     786      // Test event handling
     787      MyEventHandler handler;
     788      solution.passInEventHandler(&handler);
     789      int numberRows=solution.numberRows();
     790      // make sure values pass has something to do
     791      for (int i=0;i<numberRows;i++)
     792        solution.setRowStatus(i,ClpSimplex::basic);
     793      solution.primal(1);
     794      assert (solution.secondaryStatus()==102); // Came out at end of pass
     795    } else {
     796      std::cerr << "Error reading exmip1 from sample data. Skipping test." << std::endl;
     797    }
    795798  }
    796799  // Test Message handler
     
    799802    std::string fn = dirSample+"exmip1";
    800803    //fn = "Test/subGams4";
    801     m.readMps(fn.c_str(),"mps");
    802     ClpSimplex model;
    803     model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    804                          m.getObjCoefficients(),
    805                          m.getRowLower(),m.getRowUpper());
    806     // Message handler
    807     MyMessageHandler messageHandler(&model);
    808     std::cout<<"Testing derived message handler"<<std::endl;
    809     model.passInMessageHandler(&messageHandler);
    810     model.messagesPointer()->setDetailMessage(1,102);
    811     model.setFactorizationFrequency(10);
    812     model.primal();
    813     model.primal(0,3);
    814     model.setObjCoeff(3,-2.9473684210526314);
    815     model.primal(0,3);
    816     // Write saved solutions
    817     int nc = model.getNumCols();
    818     int s;
    819     std::deque<StdVectorDouble> fep = messageHandler.getFeasibleExtremePoints();
    820     int numSavedSolutions = fep.size();
    821     for ( s=0; s<numSavedSolutions; ++s ) {
    822       const StdVectorDouble & solnVec = fep[s];
    823       for ( int c=0; c<nc; ++c ) {
    824         if (fabs(solnVec[c])>1.0e-8)
    825           std::cout <<"Saved Solution: " <<s <<" ColNum: " <<c <<" Value: " <<solnVec[c] <<std::endl;
    826       }
    827     }
    828     // Solve again without scaling
    829     // and maximize then minimize
    830     messageHandler.clearFeasibleExtremePoints();
    831     model.scaling(0);
    832     model.setOptimizationDirection(-1);
    833     model.primal();
    834     model.setOptimizationDirection(1);
    835     model.primal();
    836     fep = messageHandler.getFeasibleExtremePoints();
    837     numSavedSolutions = fep.size();
    838     for ( s=0; s<numSavedSolutions; ++s ) {
    839       const StdVectorDouble & solnVec = fep[s];
    840       for ( int c=0; c<nc; ++c ) {
    841         if (fabs(solnVec[c])>1.0e-8)
    842           std::cout <<"Saved Solution: " <<s <<" ColNum: " <<c <<" Value: " <<solnVec[c] <<std::endl;
    843       }
     804    if (m.readMps(fn.c_str(),"mps") == 0) {
     805      ClpSimplex model;
     806      model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     807                          m.getObjCoefficients(),
     808                          m.getRowLower(),m.getRowUpper());
     809      // Message handler
     810      MyMessageHandler messageHandler(&model);
     811      std::cout<<"Testing derived message handler"<<std::endl;
     812      model.passInMessageHandler(&messageHandler);
     813      model.messagesPointer()->setDetailMessage(1,102);
     814      model.setFactorizationFrequency(10);
     815      model.primal();
     816      model.primal(0,3);
     817      model.setObjCoeff(3,-2.9473684210526314);
     818      model.primal(0,3);
     819      // Write saved solutions
     820      int nc = model.getNumCols();
     821      int s;
     822      std::deque<StdVectorDouble> fep = messageHandler.getFeasibleExtremePoints();
     823      int numSavedSolutions = fep.size();
     824      for ( s=0; s<numSavedSolutions; ++s ) {
     825        const StdVectorDouble & solnVec = fep[s];
     826        for ( int c=0; c<nc; ++c ) {
     827          if (fabs(solnVec[c])>1.0e-8)
     828            std::cout <<"Saved Solution: " <<s <<" ColNum: " <<c <<" Value: " <<solnVec[c] <<std::endl;
     829        }
     830      }
     831      // Solve again without scaling
     832      // and maximize then minimize
     833      messageHandler.clearFeasibleExtremePoints();
     834      model.scaling(0);
     835      model.setOptimizationDirection(-1);
     836      model.primal();
     837      model.setOptimizationDirection(1);
     838      model.primal();
     839      fep = messageHandler.getFeasibleExtremePoints();
     840      numSavedSolutions = fep.size();
     841      for ( s=0; s<numSavedSolutions; ++s ) {
     842        const StdVectorDouble & solnVec = fep[s];
     843        for ( int c=0; c<nc; ++c ) {
     844          if (fabs(solnVec[c])>1.0e-8)
     845            std::cout <<"Saved Solution: " <<s <<" ColNum: " <<c <<" Value: " <<solnVec[c] <<std::endl;
     846        }
     847      }
     848    } else {
     849      std::cerr << "Error reading exmip1 from sample data. Skipping test." << std::endl;
    844850    }
    845851  }
     
    849855    CoinMpsIO m;
    850856    std::string fn = dirSample+"exmip1";
    851     m.readMps(fn.c_str(),"mps");
    852     ClpSimplex model;
    853     model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    854                          m.getObjCoefficients(),
    855                          m.getRowLower(),m.getRowUpper());
    856     model.primal();
    857     int which[13] = {0,1,2,3,4,5,6,7,8,9,10,11,12};
    858     double costIncrease[13];
    859     int sequenceIncrease[13];
    860     double costDecrease[13];
    861     int sequenceDecrease[13];
    862     // ranging
    863     model.dualRanging(13,which,costIncrease,sequenceIncrease,
    864                       costDecrease,sequenceDecrease);
    865     int i;
    866     for ( i=0;i<13;i++)
    867       printf("%d increase %g %d, decrease %g %d\n",
    868              i,costIncrease[i],sequenceIncrease[i],
    869              costDecrease[i],sequenceDecrease[i]);
    870     assert (fabs(costDecrease[3])<1.0e-4);
    871     assert (fabs(costIncrease[7]-1.0)<1.0e-4);
    872     model.setOptimizationDirection(-1);
    873     {
    874       int j;
    875       double * obj = model.objective();
    876       int n=model.numberColumns();
    877       for (j=0;j<n;j++)
    878         obj[j] *= -1.0;
    879     }
    880     double costIncrease2[13];
    881     int sequenceIncrease2[13];
    882     double costDecrease2[13];
    883     int sequenceDecrease2[13];
    884     // ranging
    885     model.dualRanging(13,which,costIncrease2,sequenceIncrease2,
    886                       costDecrease2,sequenceDecrease2);
    887     for (i=0;i<13;i++) {
    888       assert (fabs(costIncrease[i]-costDecrease2[i])<1.0e-6);
    889       assert (fabs(costDecrease[i]-costIncrease2[i])<1.0e-6);
    890       assert (sequenceIncrease[i]==sequenceDecrease2[i]);
    891       assert (sequenceDecrease[i]==sequenceIncrease2[i]);
    892     }
    893     // Now delete all rows and see what happens
    894     model.deleteRows(model.numberRows(),which);
    895     model.primal();
    896     // ranging
    897     if (!model.dualRanging(8,which,costIncrease,sequenceIncrease,
    898                            costDecrease,sequenceDecrease)) {
    899       for (i=0;i<8;i++) {
    900         printf("%d increase %g %d, decrease %g %d\n",
    901                i,costIncrease[i],sequenceIncrease[i],
    902                costDecrease[i],sequenceDecrease[i]);
    903       }
     857    if (m.readMps(fn.c_str(),"mps") == 0) {
     858      ClpSimplex model;
     859      model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     860                          m.getObjCoefficients(),
     861                          m.getRowLower(),m.getRowUpper());
     862      model.primal();
     863      int which[13] = {0,1,2,3,4,5,6,7,8,9,10,11,12};
     864      double costIncrease[13];
     865      int sequenceIncrease[13];
     866      double costDecrease[13];
     867      int sequenceDecrease[13];
     868      // ranging
     869      model.dualRanging(13,which,costIncrease,sequenceIncrease,
     870                        costDecrease,sequenceDecrease);
     871      int i;
     872      for ( i=0;i<13;i++)
     873        printf("%d increase %g %d, decrease %g %d\n",
     874              i,costIncrease[i],sequenceIncrease[i],
     875              costDecrease[i],sequenceDecrease[i]);
     876      assert (fabs(costDecrease[3])<1.0e-4);
     877      assert (fabs(costIncrease[7]-1.0)<1.0e-4);
     878      model.setOptimizationDirection(-1);
     879      {
     880        int j;
     881        double * obj = model.objective();
     882        int n=model.numberColumns();
     883        for (j=0;j<n;j++)
     884          obj[j] *= -1.0;
     885      }
     886      double costIncrease2[13];
     887      int sequenceIncrease2[13];
     888      double costDecrease2[13];
     889      int sequenceDecrease2[13];
     890      // ranging
     891      model.dualRanging(13,which,costIncrease2,sequenceIncrease2,
     892                        costDecrease2,sequenceDecrease2);
     893      for (i=0;i<13;i++) {
     894        assert (fabs(costIncrease[i]-costDecrease2[i])<1.0e-6);
     895        assert (fabs(costDecrease[i]-costIncrease2[i])<1.0e-6);
     896        assert (sequenceIncrease[i]==sequenceDecrease2[i]);
     897        assert (sequenceDecrease[i]==sequenceIncrease2[i]);
     898      }
     899      // Now delete all rows and see what happens
     900      model.deleteRows(model.numberRows(),which);
     901      model.primal();
     902      // ranging
     903      if (!model.dualRanging(8,which,costIncrease,sequenceIncrease,
     904                            costDecrease,sequenceDecrease)) {
     905        for (i=0;i<8;i++) {
     906          printf("%d increase %g %d, decrease %g %d\n",
     907                i,costIncrease[i],sequenceIncrease[i],
     908                costDecrease[i],sequenceDecrease[i]);
     909        }
     910      }
     911    } else {
     912      std::cerr << "Error reading exmip1 from sample data. Skipping test." << std::endl;
    904913    }
    905914  }
     
    908917    CoinMpsIO m;
    909918    std::string fn = dirSample+"exmip1";
    910     m.readMps(fn.c_str(),"mps");
    911     ClpSimplex model;
    912     model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    913                          m.getObjCoefficients(),
    914                          m.getRowLower(),m.getRowUpper());
    915     model.primal();
    916     int which[13] = {0,1,2,3,4,5,6,7,8,9,10,11,12};
    917     double valueIncrease[13];
    918     int sequenceIncrease[13];
    919     double valueDecrease[13];
    920     int sequenceDecrease[13];
    921     // ranging
    922     model.primalRanging(13,which,valueIncrease,sequenceIncrease,
    923                       valueDecrease,sequenceDecrease);
    924     int i;
    925     for ( i=0;i<13;i++)
    926       printf("%d increase %g %d, decrease %g %d\n",
    927              i,valueIncrease[i],sequenceIncrease[i],
    928              valueDecrease[i],sequenceDecrease[i]);
    929     assert (fabs(valueIncrease[3]-0.642857)<1.0e-4);
    930     assert (fabs(valueIncrease[8]-2.95113)<1.0e-4);
     919    if (m.readMps(fn.c_str(),"mps") == 0) {
     920      ClpSimplex model;
     921      model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     922                          m.getObjCoefficients(),
     923                          m.getRowLower(),m.getRowUpper());
     924      model.primal();
     925      int which[13] = {0,1,2,3,4,5,6,7,8,9,10,11,12};
     926      double valueIncrease[13];
     927      int sequenceIncrease[13];
     928      double valueDecrease[13];
     929      int sequenceDecrease[13];
     930      // ranging
     931      model.primalRanging(13,which,valueIncrease,sequenceIncrease,
     932                        valueDecrease,sequenceDecrease);
     933      int i;
     934      for ( i=0;i<13;i++)
     935        printf("%d increase %g %d, decrease %g %d\n",
     936              i,valueIncrease[i],sequenceIncrease[i],
     937              valueDecrease[i],sequenceDecrease[i]);
     938      assert (fabs(valueIncrease[3]-0.642857)<1.0e-4);
     939      assert (fabs(valueIncrease[8]-2.95113)<1.0e-4);
     940    } else {
     941      std::cerr << "Error reading exmip1 from sample data. Skipping test." << std::endl;
     942    }
    931943#if 0
    932944    // out until I find optimization bug
     
    11051117      // probable cause is that gz not there
    11061118      fprintf(stderr,"Unable to open finnis.mps in %s\n", dirSample.c_str());
    1107       fprintf(stderr,"Most probable cause is finnis.mps is gzipped i.e. finnis.mps.gz and libz has not been activated\n");
     1119      fprintf(stderr,"Most probable cause is that sample data is not available, or finnis.mps is gzipped i.e. finnis.mps.gz and libz has not been activated\n");
    11081120      fprintf(stderr,"Either gunzip files or edit Makefiles/Makefile.location to get libz\n");
    1109       exit(999);
    1110     }
    1111     ClpModel model;
    1112     model.loadProblem(*m.getMatrixByCol(),m.getColLower(),
    1113                     m.getColUpper(),
    1114                     m.getObjCoefficients(),
    1115                     m.getRowLower(),m.getRowUpper());
    1116     ClpSimplex solution(model);
    1117 
    1118     solution.scaling(1);
    1119     solution.setDualBound(1.0e8);
    1120     //solution.factorization()->maximumPivots(1);
    1121     //solution.setLogLevel(3);
    1122     solution.setDualTolerance(1.0e-7);
    1123     // set objective sense,
    1124     ClpDualRowSteepest steep;
    1125     solution.setDualRowPivotAlgorithm(steep);
    1126     solution.setDblParam(ClpObjOffset,m.objectiveOffset());
    1127     solution.dual();
     1121    } else {
     1122      ClpModel model;
     1123      model.loadProblem(*m.getMatrixByCol(),m.getColLower(),
     1124                      m.getColUpper(),
     1125                      m.getObjCoefficients(),
     1126                      m.getRowLower(),m.getRowUpper());
     1127      ClpSimplex solution(model);
     1128
     1129      solution.scaling(1);
     1130      solution.setDualBound(1.0e8);
     1131      //solution.factorization()->maximumPivots(1);
     1132      //solution.setLogLevel(3);
     1133      solution.setDualTolerance(1.0e-7);
     1134      // set objective sense,
     1135      ClpDualRowSteepest steep;
     1136      solution.setDualRowPivotAlgorithm(steep);
     1137      solution.setDblParam(ClpObjOffset,m.objectiveOffset());
     1138      solution.dual();
     1139    }
    11281140  }
    11291141  // test normal solution
     
    11311143    CoinMpsIO m;
    11321144    std::string fn = dirSample+"afiro";
    1133     m.readMps(fn.c_str(),"mps");
    1134     ClpSimplex solution;
    1135     ClpModel model;
    1136     // do twice - without and with scaling
    1137     int iPass;
    1138     for (iPass=0;iPass<2;iPass++) {
    1139       // explicit row objective for testing
    1140       int nr = m.getNumRows();
    1141       double * rowObj = new double[nr];
    1142       CoinFillN(rowObj,nr,0.0);
    1143       model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1144                       m.getObjCoefficients(),
    1145                       m.getRowLower(),m.getRowUpper(),rowObj);
    1146       delete [] rowObj;
    1147       solution = ClpSimplex(model);
    1148       if (iPass) {
    1149         solution.scaling();
    1150       }
    1151       solution.dual();
    1152       solution.dual();
    1153       // test optimal
    1154       assert (solution.status()==0);
    1155       int numberColumns = solution.numberColumns();
    1156       int numberRows = solution.numberRows();
    1157       CoinPackedVector colsol(numberColumns,solution.primalColumnSolution());
    1158       double * objective = solution.objective();
    1159 #ifndef NDEBUG
    1160       double objValue = colsol.dotProduct(objective);
    1161 #endif
    1162       CoinRelFltEq eq(1.0e-8);
    1163       assert(eq(objValue,-4.6475314286e+02));
    1164       solution.dual();
    1165       assert(eq(solution.objectiveValue(),-4.6475314286e+02));
    1166       double * lower = solution.columnLower();
    1167       double * upper = solution.columnUpper();
    1168       double * sol = solution.primalColumnSolution();
    1169       double * result = new double[numberColumns];
    1170       CoinFillN ( result, numberColumns,0.0);
    1171       solution.matrix()->transposeTimes(solution.dualRowSolution(), result);
    1172       int iRow , iColumn;
    1173       // see if feasible and dual feasible
    1174       for (iColumn=0;iColumn<numberColumns;iColumn++) {
    1175         double value = sol[iColumn];
    1176         assert(value<upper[iColumn]+1.0e-8);
    1177         assert(value>lower[iColumn]-1.0e-8);
    1178         value = objective[iColumn]-result[iColumn];
    1179         assert (value>-1.0e-5);
    1180         if (sol[iColumn]>1.0e-5)
    1181           assert (value<1.0e-5);
    1182       }
    1183       delete [] result;
    1184       result = new double[numberRows];
    1185       CoinFillN ( result, numberRows,0.0);
    1186       solution.matrix()->times(colsol, result);
    1187       lower = solution.rowLower();
    1188       upper = solution.rowUpper();
    1189       sol = solution.primalRowSolution();
    1190 #ifndef NDEBUG
    1191       for (iRow=0;iRow<numberRows;iRow++) {
    1192         double value = result[iRow];
    1193         assert(eq(value,sol[iRow]));
    1194         assert(value<upper[iRow]+1.0e-8);
    1195         assert(value>lower[iRow]-1.0e-8);
    1196       }
    1197 #endif
    1198       delete [] result;
    1199       // test row objective
    1200       double * rowObjective = solution.rowObjective();
    1201       CoinDisjointCopyN(solution.dualRowSolution(),numberRows,rowObjective);
    1202       CoinDisjointCopyN(solution.dualColumnSolution(),numberColumns,objective);
    1203       // this sets up all slack basis
    1204       solution.createStatus();
    1205       solution.dual();
    1206       CoinFillN(rowObjective,numberRows,0.0);
    1207       CoinDisjointCopyN(m.getObjCoefficients(),numberColumns,objective);
    1208       solution.dual();
     1145    if (m.readMps(fn.c_str(),"mps") == 0) {
     1146      ClpSimplex solution;
     1147      ClpModel model;
     1148      // do twice - without and with scaling
     1149      int iPass;
     1150      for (iPass=0;iPass<2;iPass++) {
     1151        // explicit row objective for testing
     1152        int nr = m.getNumRows();
     1153        double * rowObj = new double[nr];
     1154        CoinFillN(rowObj,nr,0.0);
     1155        model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1156                        m.getObjCoefficients(),
     1157                        m.getRowLower(),m.getRowUpper(),rowObj);
     1158        delete [] rowObj;
     1159        solution = ClpSimplex(model);
     1160        if (iPass) {
     1161          solution.scaling();
     1162        }
     1163        solution.dual();
     1164        solution.dual();
     1165        // test optimal
     1166        assert (solution.status()==0);
     1167        int numberColumns = solution.numberColumns();
     1168        int numberRows = solution.numberRows();
     1169        CoinPackedVector colsol(numberColumns,solution.primalColumnSolution());
     1170        double * objective = solution.objective();
     1171  #ifndef NDEBUG
     1172        double objValue = colsol.dotProduct(objective);
     1173  #endif
     1174        CoinRelFltEq eq(1.0e-8);
     1175        assert(eq(objValue,-4.6475314286e+02));
     1176        solution.dual();
     1177        assert(eq(solution.objectiveValue(),-4.6475314286e+02));
     1178        double * lower = solution.columnLower();
     1179        double * upper = solution.columnUpper();
     1180        double * sol = solution.primalColumnSolution();
     1181        double * result = new double[numberColumns];
     1182        CoinFillN ( result, numberColumns,0.0);
     1183        solution.matrix()->transposeTimes(solution.dualRowSolution(), result);
     1184        int iRow , iColumn;
     1185        // see if feasible and dual feasible
     1186        for (iColumn=0;iColumn<numberColumns;iColumn++) {
     1187          double value = sol[iColumn];
     1188          assert(value<upper[iColumn]+1.0e-8);
     1189          assert(value>lower[iColumn]-1.0e-8);
     1190          value = objective[iColumn]-result[iColumn];
     1191          assert (value>-1.0e-5);
     1192          if (sol[iColumn]>1.0e-5)
     1193            assert (value<1.0e-5);
     1194        }
     1195        delete [] result;
     1196        result = new double[numberRows];
     1197        CoinFillN ( result, numberRows,0.0);
     1198        solution.matrix()->times(colsol, result);
     1199        lower = solution.rowLower();
     1200        upper = solution.rowUpper();
     1201        sol = solution.primalRowSolution();
     1202  #ifndef NDEBUG
     1203        for (iRow=0;iRow<numberRows;iRow++) {
     1204          double value = result[iRow];
     1205          assert(eq(value,sol[iRow]));
     1206          assert(value<upper[iRow]+1.0e-8);
     1207          assert(value>lower[iRow]-1.0e-8);
     1208        }
     1209  #endif
     1210        delete [] result;
     1211        // test row objective
     1212        double * rowObjective = solution.rowObjective();
     1213        CoinDisjointCopyN(solution.dualRowSolution(),numberRows,rowObjective);
     1214        CoinDisjointCopyN(solution.dualColumnSolution(),numberColumns,objective);
     1215        // this sets up all slack basis
     1216        solution.createStatus();
     1217        solution.dual();
     1218        CoinFillN(rowObjective,numberRows,0.0);
     1219        CoinDisjointCopyN(m.getObjCoefficients(),numberColumns,objective);
     1220        solution.dual();
     1221      }
     1222    } else {
     1223      std::cerr << "Error reading afiro from sample data. Skipping test." << std::endl;
    12091224    }
    12101225  }
     
    12131228    CoinMpsIO m;
    12141229    std::string fn = dirSample+"brandy";
    1215     m.readMps(fn.c_str(),"mps");
    1216     ClpSimplex solution;
    1217     // do twice - without and with scaling
    1218     int iPass;
    1219     for (iPass=0;iPass<2;iPass++) {
    1220       solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1221                       m.getObjCoefficients(),
    1222                       m.getRowLower(),m.getRowUpper());
    1223       if (iPass)
    1224         solution.scaling();
    1225       solution.setOptimizationDirection(-1);
    1226       // test unbounded and ray
    1227 #ifdef DUAL
    1228       solution.setDualBound(100.0);
    1229       solution.dual();
    1230 #else
    1231       solution.primal();
    1232 #endif
    1233       assert (solution.status()==2);
    1234       int numberColumns = solution.numberColumns();
    1235       int numberRows = solution.numberRows();
    1236       double * lower = solution.columnLower();
    1237       double * upper = solution.columnUpper();
    1238       double * sol = solution.primalColumnSolution();
    1239       double * ray = solution.unboundedRay();
    1240       double * objective = solution.objective();
    1241       double objChange=0.0;
    1242       int iRow , iColumn;
    1243       // make sure feasible and columns form ray
    1244       for (iColumn=0;iColumn<numberColumns;iColumn++) {
    1245         double value = sol[iColumn];
    1246         assert(value<upper[iColumn]+1.0e-8);
    1247         assert(value>lower[iColumn]-1.0e-8);
    1248         value = ray[iColumn];
    1249         if (value>0.0)
    1250           assert(upper[iColumn]>1.0e30);
    1251         else if (value<0.0)
    1252           assert(lower[iColumn]<-1.0e30);
    1253         objChange += value*objective[iColumn];
    1254       }
    1255       // make sure increasing objective
    1256       assert(objChange>0.0);
    1257       double * result = new double[numberRows];
    1258       CoinFillN ( result, numberRows,0.0);
    1259       solution.matrix()->times(sol, result);
    1260       lower = solution.rowLower();
    1261       upper = solution.rowUpper();
    1262       sol = solution.primalRowSolution();
    1263 #ifndef NDEBUG
    1264       for (iRow=0;iRow<numberRows;iRow++) {
    1265         double value = result[iRow];
    1266         assert(eq(value,sol[iRow]));
    1267         assert(value<upper[iRow]+2.0e-8);
    1268         assert(value>lower[iRow]-2.0e-8);
    1269       }
    1270 #endif
    1271       CoinFillN ( result, numberRows,0.0);
    1272       solution.matrix()->times(ray, result);
    1273       // there may be small differences (especially if scaled)
    1274       for (iRow=0;iRow<numberRows;iRow++) {
    1275         double value = result[iRow];
    1276         if (value>1.0e-8)
    1277           assert(upper[iRow]>1.0e30);
    1278         else if (value<-1.0e-8)
    1279           assert(lower[iRow]<-1.0e30);
    1280       }
    1281       delete [] result;
    1282       delete [] ray;
     1230    if (m.readMps(fn.c_str(),"mps") == 0) {
     1231      ClpSimplex solution;
     1232      // do twice - without and with scaling
     1233      int iPass;
     1234      for (iPass=0;iPass<2;iPass++) {
     1235        solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1236                        m.getObjCoefficients(),
     1237                        m.getRowLower(),m.getRowUpper());
     1238        if (iPass)
     1239          solution.scaling();
     1240        solution.setOptimizationDirection(-1);
     1241        // test unbounded and ray
     1242  #ifdef DUAL
     1243        solution.setDualBound(100.0);
     1244        solution.dual();
     1245  #else
     1246        solution.primal();
     1247  #endif
     1248        assert (solution.status()==2);
     1249        int numberColumns = solution.numberColumns();
     1250        int numberRows = solution.numberRows();
     1251        double * lower = solution.columnLower();
     1252        double * upper = solution.columnUpper();
     1253        double * sol = solution.primalColumnSolution();
     1254        double * ray = solution.unboundedRay();
     1255        double * objective = solution.objective();
     1256        double objChange=0.0;
     1257        int iRow , iColumn;
     1258        // make sure feasible and columns form ray
     1259        for (iColumn=0;iColumn<numberColumns;iColumn++) {
     1260          double value = sol[iColumn];
     1261          assert(value<upper[iColumn]+1.0e-8);
     1262          assert(value>lower[iColumn]-1.0e-8);
     1263          value = ray[iColumn];
     1264          if (value>0.0)
     1265            assert(upper[iColumn]>1.0e30);
     1266          else if (value<0.0)
     1267            assert(lower[iColumn]<-1.0e30);
     1268          objChange += value*objective[iColumn];
     1269        }
     1270        // make sure increasing objective
     1271        assert(objChange>0.0);
     1272        double * result = new double[numberRows];
     1273        CoinFillN ( result, numberRows,0.0);
     1274        solution.matrix()->times(sol, result);
     1275        lower = solution.rowLower();
     1276        upper = solution.rowUpper();
     1277        sol = solution.primalRowSolution();
     1278  #ifndef NDEBUG
     1279        for (iRow=0;iRow<numberRows;iRow++) {
     1280          double value = result[iRow];
     1281          assert(eq(value,sol[iRow]));
     1282          assert(value<upper[iRow]+2.0e-8);
     1283          assert(value>lower[iRow]-2.0e-8);
     1284        }
     1285  #endif
     1286        CoinFillN ( result, numberRows,0.0);
     1287        solution.matrix()->times(ray, result);
     1288        // there may be small differences (especially if scaled)
     1289        for (iRow=0;iRow<numberRows;iRow++) {
     1290          double value = result[iRow];
     1291          if (value>1.0e-8)
     1292            assert(upper[iRow]>1.0e30);
     1293          else if (value<-1.0e-8)
     1294            assert(lower[iRow]<-1.0e30);
     1295        }
     1296        delete [] result;
     1297        delete [] ray;
     1298      }
     1299    } else {
     1300      std::cerr << "Error reading brandy from sample data. Skipping test." << std::endl;
    12831301    }
    12841302  }
     
    12871305    CoinMpsIO m;
    12881306    std::string fn = dirSample+"brandy";
    1289     m.readMps(fn.c_str(),"mps");
    1290     ClpSimplex solution;
    1291     // do twice - without and with scaling
    1292     int iPass;
    1293     for (iPass=0;iPass<2;iPass++) {
    1294       solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1295                       m.getObjCoefficients(),
    1296                       m.getRowLower(),m.getRowUpper());
    1297       if (iPass)
    1298         solution.scaling();
    1299       // test infeasible and ray
    1300       solution.columnUpper()[0]=0.0;
    1301 #ifdef DUAL
    1302       solution.setDualBound(100.0);
    1303       solution.dual();
    1304 #else
    1305       solution.primal();
    1306 #endif
    1307       assert (solution.status()==1);
    1308       int numberColumns = solution.numberColumns();
    1309       int numberRows = solution.numberRows();
    1310       double * lower = solution.rowLower();
    1311       double * upper = solution.rowUpper();
    1312       double * ray = solution.infeasibilityRay();
    1313       assert(ray);
    1314       // construct proof of infeasibility
    1315       int iRow , iColumn;
    1316       double lo=0.0,up=0.0;
    1317       int nl=0,nu=0;
    1318       for (iRow=0;iRow<numberRows;iRow++) {
    1319         if (lower[iRow]>-1.0e20) {
    1320           lo += ray[iRow]*lower[iRow];
    1321         } else {
    1322           if (ray[iRow]>1.0e-8)
    1323             nl++;
    1324         }
    1325         if (upper[iRow]<1.0e20) {
    1326           up += ray[iRow]*upper[iRow];
    1327         } else {
    1328           if (ray[iRow]>1.0e-8)
    1329             nu++;
    1330         }
    1331       }
    1332       if (nl)
    1333         lo=-1.0e100;
    1334       if (nu)
    1335         up=1.0e100;
    1336       double * result = new double[numberColumns];
    1337       double lo2=0.0,up2=0.0;
    1338       CoinFillN ( result, numberColumns,0.0);
    1339       solution.matrix()->transposeTimes(ray, result);
    1340       lower = solution.columnLower();
    1341       upper = solution.columnUpper();
    1342       nl=nu=0;
    1343       for (iColumn=0;iColumn<numberColumns;iColumn++) {
    1344         if (result[iColumn]>1.0e-8) {
    1345           if (lower[iColumn]>-1.0e20)
    1346             lo2 += result[iColumn]*lower[iColumn];
    1347           else
    1348             nl++;
    1349           if (upper[iColumn]<1.0e20)
    1350             up2 += result[iColumn]*upper[iColumn];
    1351           else
    1352             nu++;
    1353         } else if (result[iColumn]<-1.0e-8) {
    1354           if (lower[iColumn]>-1.0e20)
    1355             up2 += result[iColumn]*lower[iColumn];
    1356           else
    1357             nu++;
    1358           if (upper[iColumn]<1.0e20)
    1359             lo2 += result[iColumn]*upper[iColumn];
    1360           else
    1361             nl++;
    1362         }
    1363       }
    1364       if (nl)
    1365         lo2=-1.0e100;
    1366       if (nu)
    1367         up2=1.0e100;
    1368       // make sure inconsistency
    1369       assert(lo2>up||up2<lo);
    1370       delete [] result;
    1371       delete [] ray;
     1307    if (m.readMps(fn.c_str(),"mps") == 0) {
     1308      ClpSimplex solution;
     1309      // do twice - without and with scaling
     1310      int iPass;
     1311      for (iPass=0;iPass<2;iPass++) {
     1312        solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1313                        m.getObjCoefficients(),
     1314                        m.getRowLower(),m.getRowUpper());
     1315        if (iPass)
     1316          solution.scaling();
     1317        // test infeasible and ray
     1318        solution.columnUpper()[0]=0.0;
     1319  #ifdef DUAL
     1320        solution.setDualBound(100.0);
     1321        solution.dual();
     1322  #else
     1323        solution.primal();
     1324  #endif
     1325        assert (solution.status()==1);
     1326        int numberColumns = solution.numberColumns();
     1327        int numberRows = solution.numberRows();
     1328        double * lower = solution.rowLower();
     1329        double * upper = solution.rowUpper();
     1330        double * ray = solution.infeasibilityRay();
     1331        assert(ray);
     1332        // construct proof of infeasibility
     1333        int iRow , iColumn;
     1334        double lo=0.0,up=0.0;
     1335        int nl=0,nu=0;
     1336        for (iRow=0;iRow<numberRows;iRow++) {
     1337          if (lower[iRow]>-1.0e20) {
     1338            lo += ray[iRow]*lower[iRow];
     1339          } else {
     1340            if (ray[iRow]>1.0e-8)
     1341              nl++;
     1342          }
     1343          if (upper[iRow]<1.0e20) {
     1344            up += ray[iRow]*upper[iRow];
     1345          } else {
     1346            if (ray[iRow]>1.0e-8)
     1347              nu++;
     1348          }
     1349        }
     1350        if (nl)
     1351          lo=-1.0e100;
     1352        if (nu)
     1353          up=1.0e100;
     1354        double * result = new double[numberColumns];
     1355        double lo2=0.0,up2=0.0;
     1356        CoinFillN ( result, numberColumns,0.0);
     1357        solution.matrix()->transposeTimes(ray, result);
     1358        lower = solution.columnLower();
     1359        upper = solution.columnUpper();
     1360        nl=nu=0;
     1361        for (iColumn=0;iColumn<numberColumns;iColumn++) {
     1362          if (result[iColumn]>1.0e-8) {
     1363            if (lower[iColumn]>-1.0e20)
     1364              lo2 += result[iColumn]*lower[iColumn];
     1365            else
     1366              nl++;
     1367            if (upper[iColumn]<1.0e20)
     1368              up2 += result[iColumn]*upper[iColumn];
     1369            else
     1370              nu++;
     1371          } else if (result[iColumn]<-1.0e-8) {
     1372            if (lower[iColumn]>-1.0e20)
     1373              up2 += result[iColumn]*lower[iColumn];
     1374            else
     1375              nu++;
     1376            if (upper[iColumn]<1.0e20)
     1377              lo2 += result[iColumn]*upper[iColumn];
     1378            else
     1379              nl++;
     1380          }
     1381        }
     1382        if (nl)
     1383          lo2=-1.0e100;
     1384        if (nu)
     1385          up2=1.0e100;
     1386        // make sure inconsistency
     1387        assert(lo2>up||up2<lo);
     1388        delete [] result;
     1389        delete [] ray;
     1390      }
     1391    } else {
     1392      std::cerr << "Error reading brandy from sample data. Skipping test." << std::endl;
    13721393    }
    13731394  }
     
    13761397    CoinMpsIO m;
    13771398    std::string fn = dirSample+"brandy";
    1378     m.readMps(fn.c_str(),"mps");
    1379     ClpSimplex solution;
    1380     solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1381                          m.getObjCoefficients(),
    1382                          m.getRowLower(),m.getRowUpper());
    1383     solution.dual();
    1384     CoinRelFltEq eq(1.0e-8);
    1385     assert(eq(solution.objectiveValue(),1.5185098965e+03));
    1386 
    1387     int numberColumns = solution.numberColumns();
    1388     int numberRows = solution.numberRows();
    1389     double * saveObj = new double [numberColumns];
    1390     double * saveLower = new double[numberRows+numberColumns];
    1391     double * saveUpper = new double[numberRows+numberColumns];
    1392     int * which = new int [numberRows+numberColumns];
    1393 
    1394     int numberElements = m.getMatrixByCol()->getNumElements();
    1395     int * starts = new int[numberRows+numberColumns];
    1396     int * index = new int[numberElements];
    1397     double * element = new double[numberElements];
    1398 
    1399     const CoinBigIndex * startM;
    1400     const int * lengthM;
    1401     const int * indexM;
    1402     const double * elementM;
    1403 
    1404     int n,nel;
    1405 
    1406     // delete non basic columns
    1407     n=0;
    1408     nel=0;
    1409     int iRow , iColumn;
    1410     const double * lower = m.getColLower();
    1411     const double * upper = m.getColUpper();
    1412     const double * objective = m.getObjCoefficients();
    1413     startM = m.getMatrixByCol()->getVectorStarts();
    1414     lengthM = m.getMatrixByCol()->getVectorLengths();
    1415     indexM = m.getMatrixByCol()->getIndices();
    1416     elementM = m.getMatrixByCol()->getElements();
    1417     starts[0]=0;
    1418     for (iColumn=0;iColumn<numberColumns;iColumn++) {
    1419       if (solution.getColumnStatus(iColumn)!=ClpSimplex::basic) {
     1399    if (m.readMps(fn.c_str(),"mps") == 0) {
     1400      ClpSimplex solution;
     1401      solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1402                          m.getObjCoefficients(),
     1403                          m.getRowLower(),m.getRowUpper());
     1404      solution.dual();
     1405      CoinRelFltEq eq(1.0e-8);
     1406      assert(eq(solution.objectiveValue(),1.5185098965e+03));
     1407
     1408      int numberColumns = solution.numberColumns();
     1409      int numberRows = solution.numberRows();
     1410      double * saveObj = new double [numberColumns];
     1411      double * saveLower = new double[numberRows+numberColumns];
     1412      double * saveUpper = new double[numberRows+numberColumns];
     1413      int * which = new int [numberRows+numberColumns];
     1414
     1415      int numberElements = m.getMatrixByCol()->getNumElements();
     1416      int * starts = new int[numberRows+numberColumns];
     1417      int * index = new int[numberElements];
     1418      double * element = new double[numberElements];
     1419
     1420      const CoinBigIndex * startM;
     1421      const int * lengthM;
     1422      const int * indexM;
     1423      const double * elementM;
     1424
     1425      int n,nel;
     1426
     1427      // delete non basic columns
     1428      n=0;
     1429      nel=0;
     1430      int iRow , iColumn;
     1431      const double * lower = m.getColLower();
     1432      const double * upper = m.getColUpper();
     1433      const double * objective = m.getObjCoefficients();
     1434      startM = m.getMatrixByCol()->getVectorStarts();
     1435      lengthM = m.getMatrixByCol()->getVectorLengths();
     1436      indexM = m.getMatrixByCol()->getIndices();
     1437      elementM = m.getMatrixByCol()->getElements();
     1438      starts[0]=0;
     1439      for (iColumn=0;iColumn<numberColumns;iColumn++) {
     1440        if (solution.getColumnStatus(iColumn)!=ClpSimplex::basic) {
     1441          saveObj[n]=objective[iColumn];
     1442          saveLower[n]=lower[iColumn];
     1443          saveUpper[n]=upper[iColumn];
     1444          int j;
     1445          for (j=startM[iColumn];j<startM[iColumn]+lengthM[iColumn];j++) {
     1446            index[nel]=indexM[j];
     1447            element[nel++]=elementM[j];
     1448          }
     1449          which[n++]=iColumn;
     1450          starts[n]=nel;
     1451        }
     1452      }
     1453      solution.deleteColumns(n,which);
     1454      solution.dual();
     1455      // Put back
     1456      solution.addColumns(n,saveLower,saveUpper,saveObj,
     1457                          starts,index,element);
     1458      solution.dual();
     1459      assert(eq(solution.objectiveValue(),1.5185098965e+03));
     1460      // Delete all columns and add back
     1461      n=0;
     1462      nel=0;
     1463      starts[0]=0;
     1464      lower = m.getColLower();
     1465      upper = m.getColUpper();
     1466      objective = m.getObjCoefficients();
     1467      for (iColumn=0;iColumn<numberColumns;iColumn++) {
    14201468        saveObj[n]=objective[iColumn];
    14211469        saveLower[n]=lower[iColumn];
     
    14291477        starts[n]=nel;
    14301478      }
    1431     }
    1432     solution.deleteColumns(n,which);
    1433     solution.dual();
    1434     // Put back
    1435     solution.addColumns(n,saveLower,saveUpper,saveObj,
    1436                         starts,index,element);
    1437     solution.dual();
    1438     assert(eq(solution.objectiveValue(),1.5185098965e+03));
    1439     // Delete all columns and add back
    1440     n=0;
    1441     nel=0;
    1442     starts[0]=0;
    1443     lower = m.getColLower();
    1444     upper = m.getColUpper();
    1445     objective = m.getObjCoefficients();
    1446     for (iColumn=0;iColumn<numberColumns;iColumn++) {
    1447       saveObj[n]=objective[iColumn];
    1448       saveLower[n]=lower[iColumn];
    1449       saveUpper[n]=upper[iColumn];
    1450       int j;
    1451       for (j=startM[iColumn];j<startM[iColumn]+lengthM[iColumn];j++) {
    1452         index[nel]=indexM[j];
    1453         element[nel++]=elementM[j];
    1454       }
    1455       which[n++]=iColumn;
    1456       starts[n]=nel;
    1457     }
    1458     solution.deleteColumns(n,which);
    1459     solution.dual();
    1460     // Put back
    1461     solution.addColumns(n,saveLower,saveUpper,saveObj,
    1462                         starts,index,element);
    1463     solution.dual();
    1464     assert(eq(solution.objectiveValue(),1.5185098965e+03));
    1465 
    1466     // reload with original
    1467     solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1468                          m.getObjCoefficients(),
    1469                          m.getRowLower(),m.getRowUpper());
    1470     // delete half rows
    1471     n=0;
    1472     nel=0;
    1473     lower = m.getRowLower();
    1474     upper = m.getRowUpper();
    1475     startM = m.getMatrixByRow()->getVectorStarts();
    1476     lengthM = m.getMatrixByRow()->getVectorLengths();
    1477     indexM = m.getMatrixByRow()->getIndices();
    1478     elementM = m.getMatrixByRow()->getElements();
    1479     starts[0]=0;
    1480     for (iRow=0;iRow<numberRows;iRow++) {
    1481       if ((iRow&1)==0) {
     1479      solution.deleteColumns(n,which);
     1480      solution.dual();
     1481      // Put back
     1482      solution.addColumns(n,saveLower,saveUpper,saveObj,
     1483                          starts,index,element);
     1484      solution.dual();
     1485      assert(eq(solution.objectiveValue(),1.5185098965e+03));
     1486
     1487      // reload with original
     1488      solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1489                          m.getObjCoefficients(),
     1490                          m.getRowLower(),m.getRowUpper());
     1491      // delete half rows
     1492      n=0;
     1493      nel=0;
     1494      lower = m.getRowLower();
     1495      upper = m.getRowUpper();
     1496      startM = m.getMatrixByRow()->getVectorStarts();
     1497      lengthM = m.getMatrixByRow()->getVectorLengths();
     1498      indexM = m.getMatrixByRow()->getIndices();
     1499      elementM = m.getMatrixByRow()->getElements();
     1500      starts[0]=0;
     1501      for (iRow=0;iRow<numberRows;iRow++) {
     1502        if ((iRow&1)==0) {
     1503          saveLower[n]=lower[iRow];
     1504          saveUpper[n]=upper[iRow];
     1505          int j;
     1506          for (j=startM[iRow];j<startM[iRow]+lengthM[iRow];j++) {
     1507            index[nel]=indexM[j];
     1508            element[nel++]=elementM[j];
     1509          }
     1510          which[n++]=iRow;
     1511          starts[n]=nel;
     1512        }
     1513      }
     1514      solution.deleteRows(n,which);
     1515      solution.dual();
     1516      // Put back
     1517      solution.addRows(n,saveLower,saveUpper,
     1518                          starts,index,element);
     1519      solution.dual();
     1520      assert(eq(solution.objectiveValue(),1.5185098965e+03));
     1521      solution.writeMps("yy.mps");
     1522      // Delete all rows
     1523      n=0;
     1524      nel=0;
     1525      lower = m.getRowLower();
     1526      upper = m.getRowUpper();
     1527      starts[0]=0;
     1528      for (iRow=0;iRow<numberRows;iRow++) {
    14821529        saveLower[n]=lower[iRow];
    14831530        saveUpper[n]=upper[iRow];
     
    14901537        starts[n]=nel;
    14911538      }
    1492     }
    1493     solution.deleteRows(n,which);
    1494     solution.dual();
    1495     // Put back
    1496     solution.addRows(n,saveLower,saveUpper,
    1497                         starts,index,element);
    1498     solution.dual();
    1499     assert(eq(solution.objectiveValue(),1.5185098965e+03));
    1500     solution.writeMps("yy.mps");
    1501     // Delete all rows
    1502     n=0;
    1503     nel=0;
    1504     lower = m.getRowLower();
    1505     upper = m.getRowUpper();
    1506     starts[0]=0;
    1507     for (iRow=0;iRow<numberRows;iRow++) {
    1508       saveLower[n]=lower[iRow];
    1509       saveUpper[n]=upper[iRow];
    1510       int j;
    1511       for (j=startM[iRow];j<startM[iRow]+lengthM[iRow];j++) {
    1512         index[nel]=indexM[j];
    1513         element[nel++]=elementM[j];
    1514       }
    1515       which[n++]=iRow;
    1516       starts[n]=nel;
    1517     }
    1518     solution.deleteRows(n,which);
    1519     solution.dual();
    1520     // Put back
    1521     solution.addRows(n,saveLower,saveUpper,
    1522                         starts,index,element);
    1523     solution.dual();
    1524     solution.writeMps("xx.mps");
    1525     assert(eq(solution.objectiveValue(),1.5185098965e+03));
    1526     // Zero out status array to give some interest
    1527     memset(solution.statusArray()+numberColumns,0,numberRows);
    1528     solution.primal(1);
    1529     assert(eq(solution.objectiveValue(),1.5185098965e+03));
    1530     // Delete all columns and rows
    1531     n=0;
    1532     for (iColumn=0;iColumn<numberColumns;iColumn++) {
    1533       which[n++]=iColumn;
    1534       starts[n]=nel;
    1535     }
    1536     solution.deleteColumns(n,which);
    1537     n=0;
    1538     for (iRow=0;iRow<numberRows;iRow++) {
    1539       which[n++]=iRow;
    1540       starts[n]=nel;
    1541     }
    1542     solution.deleteRows(n,which);
    1543 
    1544     delete [] saveObj;
    1545     delete [] saveLower;
    1546     delete [] saveUpper;
    1547     delete [] which;
    1548     delete [] starts;
    1549     delete [] index;
    1550     delete [] element;
     1539      solution.deleteRows(n,which);
     1540      solution.dual();
     1541      // Put back
     1542      solution.addRows(n,saveLower,saveUpper,
     1543                          starts,index,element);
     1544      solution.dual();
     1545      solution.writeMps("xx.mps");
     1546      assert(eq(solution.objectiveValue(),1.5185098965e+03));
     1547      // Zero out status array to give some interest
     1548      memset(solution.statusArray()+numberColumns,0,numberRows);
     1549      solution.primal(1);
     1550      assert(eq(solution.objectiveValue(),1.5185098965e+03));
     1551      // Delete all columns and rows
     1552      n=0;
     1553      for (iColumn=0;iColumn<numberColumns;iColumn++) {
     1554        which[n++]=iColumn;
     1555        starts[n]=nel;
     1556      }
     1557      solution.deleteColumns(n,which);
     1558      n=0;
     1559      for (iRow=0;iRow<numberRows;iRow++) {
     1560        which[n++]=iRow;
     1561        starts[n]=nel;
     1562      }
     1563      solution.deleteRows(n,which);
     1564
     1565      delete [] saveObj;
     1566      delete [] saveLower;
     1567      delete [] saveUpper;
     1568      delete [] which;
     1569      delete [] starts;
     1570      delete [] index;
     1571      delete [] element;
     1572    } else {
     1573      std::cerr << "Error reading brandy from sample data. Skipping test." << std::endl;
     1574    }
    15511575  }
    15521576#if 1
     
    15551579    CoinMpsIO m;
    15561580    std::string fn = dirSample+"exmip1";
    1557     m.readMps(fn.c_str(),"mps");
    1558     ClpInterior solution;
    1559     solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1560                          m.getObjCoefficients(),
    1561                          m.getRowLower(),m.getRowUpper());
    1562     solution.primalDual();
     1581    if (m.readMps(fn.c_str(),"mps") == 0) {
     1582      ClpInterior solution;
     1583      solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1584                          m.getObjCoefficients(),
     1585                          m.getRowLower(),m.getRowUpper());
     1586      solution.primalDual();
     1587    } else {
     1588      std::cerr << "Error reading exmip1 from sample data. Skipping test." << std::endl;
     1589    }
    15631590  }
    15641591#endif
    15651592  // test network
    15661593#define QUADRATIC
    1567   if (1) {   
     1594  if (1) {
    15681595    std::string fn = dirSample+"input.130";
    15691596    int numberColumns;
     
    17481775    CoinMpsIO m;
    17491776    std::string fn = dirSample+"exmip1";
    1750     m.readMps(fn.c_str(),"mps");
    1751     ClpSimplex solution;
    1752     solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1753                          m.getObjCoefficients(),
    1754                          m.getRowLower(),m.getRowUpper());
    1755     //solution.dual();
    1756     // get quadratic part
    1757     int numberColumns=solution.numberColumns();
    1758     int * start=new int [numberColumns+1];
    1759     int * column = new int[numberColumns];
    1760     double * element = new double[numberColumns];
    1761     int i;
    1762     start[0]=0;
    1763     int n=0;
    1764     int kk=numberColumns-1;
    1765     int kk2=numberColumns-1;
    1766     for (i=0;i<numberColumns;i++) {
    1767       if (i>=kk) {
    1768         column[n]=i;
    1769         if (i>=kk2)
    1770           element[n]=1.0e-1;
    1771         else
    1772           element[n]=0.0;
    1773         n++;
    1774       }
    1775       start[i+1]=n;
    1776     }
    1777     // Load up objective
    1778     solution.loadQuadraticObjective(numberColumns,start,column,element);
    1779     delete [] start;
    1780     delete [] column;
    1781     delete [] element;
    1782     //solution.quadraticSLP(50,1.0e-4);
    1783     CoinRelFltEq eq(1.0e-4);
    1784     //assert(eq(objValue,820.0));
    1785     //solution.setLogLevel(63);
    1786     solution.primal();
    1787     printSol(solution);
    1788     //assert(eq(objValue,3.2368421));
    1789     //exit(77);
     1777    if (m.readMps(fn.c_str(),"mps") == 0) {
     1778      ClpSimplex solution;
     1779      solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1780                          m.getObjCoefficients(),
     1781                          m.getRowLower(),m.getRowUpper());
     1782      //solution.dual();
     1783      // get quadratic part
     1784      int numberColumns=solution.numberColumns();
     1785      int * start=new int [numberColumns+1];
     1786      int * column = new int[numberColumns];
     1787      double * element = new double[numberColumns];
     1788      int i;
     1789      start[0]=0;
     1790      int n=0;
     1791      int kk=numberColumns-1;
     1792      int kk2=numberColumns-1;
     1793      for (i=0;i<numberColumns;i++) {
     1794        if (i>=kk) {
     1795          column[n]=i;
     1796          if (i>=kk2)
     1797            element[n]=1.0e-1;
     1798          else
     1799            element[n]=0.0;
     1800          n++;
     1801        }
     1802        start[i+1]=n;
     1803      }
     1804      // Load up objective
     1805      solution.loadQuadraticObjective(numberColumns,start,column,element);
     1806      delete [] start;
     1807      delete [] column;
     1808      delete [] element;
     1809      //solution.quadraticSLP(50,1.0e-4);
     1810      CoinRelFltEq eq(1.0e-4);
     1811      //assert(eq(objValue,820.0));
     1812      //solution.setLogLevel(63);
     1813      solution.primal();
     1814      printSol(solution);
     1815      //assert(eq(objValue,3.2368421));
     1816      //exit(77);
     1817    } else {
     1818      std::cerr << "Error reading exmip1 from sample data. Skipping test." << std::endl;
     1819    }
    17901820  }
    17911821  // Test quadratic
     
    17941824    std::string fn = dirSample+"share2qp";
    17951825    //fn = "share2qpb";
    1796     m.readMps(fn.c_str(),"mps");
    1797     ClpSimplex model;
    1798     model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1799                          m.getObjCoefficients(),
    1800                          m.getRowLower(),m.getRowUpper());
    1801     model.dual();
    1802     // get quadratic part
    1803     int * start=NULL;
    1804     int * column = NULL;
    1805     double * element = NULL;
    1806     m.readQuadraticMps(NULL,start,column,element,2);
    1807     int column2[200];
    1808     double element2[200];
    1809     int start2[80];
    1810     int j;
    1811     start2[0]=0;
    1812     int nel=0;
    1813     bool good=false;
    1814     for (j=0;j<79;j++) {
    1815       if (start[j]==start[j+1]) {
    1816         column2[nel]=j;
    1817         element2[nel]=0.0;
    1818         nel++;
    1819       } else {
    1820         int i;
    1821         for (i=start[j];i<start[j+1];i++) {
    1822           column2[nel]=column[i];
    1823           element2[nel++]=element[i];
    1824         }
    1825       }
    1826       start2[j+1]=nel;
    1827     }
    1828     // Load up objective
    1829     if (good)
    1830       model.loadQuadraticObjective(model.numberColumns(),start2,column2,element2);
    1831     else
    1832       model.loadQuadraticObjective(model.numberColumns(),start,column,element);
    1833     delete [] start;
    1834     delete [] column;
    1835     delete [] element;
    1836     int numberColumns=model.numberColumns();
    1837     model.scaling(0);
    1838 #if 0
    1839     model.nonlinearSLP(50,1.0e-4);
    1840 #else
    1841     // Get feasible
    1842     ClpObjective * saveObjective = model.objectiveAsObject()->clone();
    1843     ClpLinearObjective zeroObjective(NULL,numberColumns);
    1844     model.setObjective(&zeroObjective);
    1845     model.dual();
    1846     model.setObjective(saveObjective);
    1847     delete saveObjective;
    1848 #endif
    1849     //model.setLogLevel(63);
    1850     //exit(77);
    1851     model.setFactorizationFrequency(10);
    1852     model.primal();
    1853     printSol(model);
    1854 #ifndef NDEBUG
    1855     double objValue = model.getObjValue();
    1856 #endif
    1857     CoinRelFltEq eq(1.0e-4);
    1858     assert(eq(objValue,-400.92));
    1859     // and again for barrier
    1860     model.barrier(false);
    1861     //printSol(model);
    1862     model.allSlackBasis();
    1863     model.primal();
    1864     //printSol(model);
     1826    if (m.readMps(fn.c_str(),"mps") == 0) {
     1827      ClpSimplex model;
     1828      model.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1829                          m.getObjCoefficients(),
     1830                          m.getRowLower(),m.getRowUpper());
     1831      model.dual();
     1832      // get quadratic part
     1833      int * start=NULL;
     1834      int * column = NULL;
     1835      double * element = NULL;
     1836      m.readQuadraticMps(NULL,start,column,element,2);
     1837      int column2[200];
     1838      double element2[200];
     1839      int start2[80];
     1840      int j;
     1841      start2[0]=0;
     1842      int nel=0;
     1843      bool good=false;
     1844      for (j=0;j<79;j++) {
     1845        if (start[j]==start[j+1]) {
     1846          column2[nel]=j;
     1847          element2[nel]=0.0;
     1848          nel++;
     1849        } else {
     1850          int i;
     1851          for (i=start[j];i<start[j+1];i++) {
     1852            column2[nel]=column[i];
     1853            element2[nel++]=element[i];
     1854          }
     1855        }
     1856        start2[j+1]=nel;
     1857      }
     1858      // Load up objective
     1859      if (good)
     1860        model.loadQuadraticObjective(model.numberColumns(),start2,column2,element2);
     1861      else
     1862        model.loadQuadraticObjective(model.numberColumns(),start,column,element);
     1863      delete [] start;
     1864      delete [] column;
     1865      delete [] element;
     1866      int numberColumns=model.numberColumns();
     1867      model.scaling(0);
     1868  #if 0
     1869      model.nonlinearSLP(50,1.0e-4);
     1870  #else
     1871      // Get feasible
     1872      ClpObjective * saveObjective = model.objectiveAsObject()->clone();
     1873      ClpLinearObjective zeroObjective(NULL,numberColumns);
     1874      model.setObjective(&zeroObjective);
     1875      model.dual();
     1876      model.setObjective(saveObjective);
     1877      delete saveObjective;
     1878  #endif
     1879      //model.setLogLevel(63);
     1880      //exit(77);
     1881      model.setFactorizationFrequency(10);
     1882      model.primal();
     1883      printSol(model);
     1884  #ifndef NDEBUG
     1885      double objValue = model.getObjValue();
     1886  #endif
     1887      CoinRelFltEq eq(1.0e-4);
     1888      assert(eq(objValue,-400.92));
     1889      // and again for barrier
     1890      model.barrier(false);
     1891      //printSol(model);
     1892      model.allSlackBasis();
     1893      model.primal();
     1894      //printSol(model);
     1895    } else {
     1896      std::cerr << "Error reading share2qp from sample data. Skipping test." << std::endl;
     1897    }
    18651898  }
    18661899  if (0) {   
     
    18681901    std::string fn = "./beale";
    18691902    //fn = "./jensen";
    1870     m.readMps(fn.c_str(),"mps");
    1871     ClpSimplex solution;
    1872     solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
    1873                          m.getObjCoefficients(),
    1874                          m.getRowLower(),m.getRowUpper());
    1875     solution.setDblParam(ClpObjOffset,m.objectiveOffset());
    1876     solution.dual();
    1877     // get quadratic part
    1878     int * start=NULL;
    1879     int * column = NULL;
    1880     double * element = NULL;
    1881     m.readQuadraticMps(NULL,start,column,element,2);
    1882     // Load up objective
    1883     solution.loadQuadraticObjective(solution.numberColumns(),start,column,element);
    1884     delete [] start;
    1885     delete [] column;
    1886     delete [] element;
    1887     solution.primal(1);
    1888     solution.nonlinearSLP(50,1.0e-4);
    1889     double objValue = solution.getObjValue();
    1890     CoinRelFltEq eq(1.0e-4);
    1891     assert(eq(objValue,0.5));
    1892     solution.primal();
    1893     objValue = solution.getObjValue();
    1894     assert(eq(objValue,0.5));
     1903    if (m.readMps(fn.c_str(),"mps") == 0) {
     1904      ClpSimplex solution;
     1905      solution.loadProblem(*m.getMatrixByCol(),m.getColLower(),m.getColUpper(),
     1906                          m.getObjCoefficients(),
     1907                          m.getRowLower(),m.getRowUpper());
     1908      solution.setDblParam(ClpObjOffset,m.objectiveOffset());
     1909      solution.dual();
     1910      // get quadratic part
     1911      int * start=NULL;
     1912      int * column = NULL;
     1913      double * element = NULL;
     1914      m.readQuadraticMps(NULL,start,column,element,2);
     1915      // Load up objective
     1916      solution.loadQuadraticObjective(solution.numberColumns(),start,column,element);
     1917      delete [] start;
     1918      delete [] column;
     1919      delete [] element;
     1920      solution.primal(1);
     1921      solution.nonlinearSLP(50,1.0e-4);
     1922      double objValue = solution.getObjValue();
     1923      CoinRelFltEq eq(1.0e-4);
     1924      assert(eq(objValue,0.5));
     1925      solution.primal();
     1926      objValue = solution.getObjValue();
     1927      assert(eq(objValue,0.5));
     1928    } else {
     1929      std::cerr << "Error reading beale.mps. Skipping test." << std::endl;
     1930    }
    18951931  }
    18961932#endif
  • branches/split/Clp/test/Makefile.am

    r1088 r1522  
    1313########################################################################
    1414
     15unittestflags =
     16if COIN_HAS_SAMPLE
     17  unittestflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
     18endif
     19unittestflags += -unitTest
     20if COIN_HAS_NETLIB
     21  unittestflags += -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib
     22endif
     23
    1524# We are using the CLP solver executable to do the unit test
    1625test: ../src/clp$(EXEEXT)
    17         if test x"$(DIRNETLIB)" != x; then \
    18                 NETLIBARG="-dirNetlib $(DIRNETLIB) -netlib"; \
    19         fi; \
    20         if test x"$(DIRSAMPLE)" != x; then \
    21                 SAMPLEARG="-dirSample $(DIRSAMPLE)"; \
    22         fi; \
    23         ../src/clp$(EXEEXT) $$SAMPLEARG -unitTest $$NETLIBARG
     26        ../src/clp$(EXEEXT) $(unittestflags)
    2427
    2528.PHONY: test
  • branches/split/Clp/test/Makefile.in

    r1155 r1522  
    4242build_triplet = @build@
    4343host_triplet = @host@
     44@COIN_HAS_SAMPLE_TRUE@am__append_1 = -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
     45@COIN_HAS_NETLIB_TRUE@am__append_2 = -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib
    4446subdir = test
    4547DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
     
    5557DIST_SOURCES =
    5658DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     59ABSBUILDDIR = @ABSBUILDDIR@
    5760ACLOCAL = @ACLOCAL@
    5861ADDLIBS = @ADDLIBS@
     
    7578CDEFS = @CDEFS@
    7679CFLAGS = @CFLAGS@
    77 CLPDOCDIR = @CLPDOCDIR@
    78 CLPOBJDIR = @CLPOBJDIR@
    79 CLPSRCDIR = @CLPSRCDIR@
    8080COINUTILSDOCDIR = @COINUTILSDOCDIR@
    8181COINUTILSOBJDIR = @COINUTILSOBJDIR@
    8282COINUTILSSRCDIR = @COINUTILSSRCDIR@
    83 COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    84 COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
     83COINUTILS_CFLAGS = @COINUTILS_CFLAGS@
     84COINUTILS_DATA = @COINUTILS_DATA@
     85COINUTILS_LIBS = @COINUTILS_LIBS@
    8586COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    8687COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     88COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
     89COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     90COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
     91COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
    8792CPP = @CPP@
    8893CPPFLAGS = @CPPFLAGS@
     
    127132MPICC = @MPICC@
    128133MPICXX = @MPICXX@
     134NETLIB_CFLAGS = @NETLIB_CFLAGS@
     135NETLIB_DATA = @NETLIB_DATA@
     136NETLIB_LIBS = @NETLIB_LIBS@
    129137OBJEXT = @OBJEXT@
    130138OPT_CFLAGS = @OPT_CFLAGS@
     
    137145PACKAGE_VERSION = @PACKAGE_VERSION@
    138146PATH_SEPARATOR = @PATH_SEPARATOR@
     147PKG_CONFIG = @PKG_CONFIG@
    139148RANLIB = @RANLIB@
     149REQUIREDPACKAGES = @REQUIREDPACKAGES@
    140150RPATH_FLAGS = @RPATH_FLAGS@
     151SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     152SAMPLE_DATA = @SAMPLE_DATA@
     153SAMPLE_LIBS = @SAMPLE_LIBS@
    141154SET_MAKE = @SET_MAKE@
    142155SHELL = @SHELL@
     
    156169ac_ct_STRIP = @ac_ct_STRIP@
    157170ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     171ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    158172am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    159173am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    200214
    201215########################################################################
     216#                         unitTest for Clp                             #
     217########################################################################
     218unittestflags = $(am__append_1) -unitTest $(am__append_2)
     219
     220########################################################################
    202221#                          Cleaning stuff                              #
    203222########################################################################
     
    368387
    369388
    370 ########################################################################
    371 #                         unitTest for Clp                             #
    372 ########################################################################
    373 
    374389# We are using the CLP solver executable to do the unit test
    375390test: ../src/clp$(EXEEXT)
    376         if test x"$(DIRNETLIB)" != x; then \
    377                 NETLIBARG="-dirNetlib $(DIRNETLIB) -netlib"; \
    378         fi; \
    379         if test x"$(DIRSAMPLE)" != x; then \
    380                 SAMPLEARG="-dirSample $(DIRSAMPLE)"; \
    381         fi; \
    382         ../src/clp$(EXEEXT) $$SAMPLEARG -unitTest $$NETLIBARG
     391        ../src/clp$(EXEEXT) $(unittestflags)
    383392
    384393.PHONY: test
  • branches/split/Externals

    r1478 r1522  
    1 BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.5
    2 ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
    3 ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
    4 Data/Netlib   https://projects.coin-or.org/svn/Data/stable/1.0/Netlib
    5 Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
    6 CoinUtils     https://projects.coin-or.org/svn/CoinUtils/stable/2.6/CoinUtils
     1BuildTools    https://projects.coin-or.org/svn/BuildTools/branches/split
     2#ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
     3#ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
     4#Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
     5#CoinUtils     https://projects.coin-or.org/svn/CoinUtils/stable/BSPsplit/CoinUtils
  • branches/split/Makefile.in

    r1165 r1522  
    9090distuninstallcheck_listfiles = find . -type f -print
    9191distcleancheck_listfiles = find . -type f -print
     92ABSBUILDDIR = @ABSBUILDDIR@
    9293ACLOCAL = @ACLOCAL@
    9394ADD_CFLAGS = @ADD_CFLAGS@
     
    163164PACKAGE_VERSION = @PACKAGE_VERSION@
    164165PATH_SEPARATOR = @PATH_SEPARATOR@
     166PKG_CONFIG = @PKG_CONFIG@
    165167RANLIB = @RANLIB@
    166168RPATH_FLAGS = @RPATH_FLAGS@
     
    182184ac_ct_STRIP = @ac_ct_STRIP@
    183185ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     186ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    184187am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    185188am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    242245DISTCLEANFILES = $(am__append_2) $(VPATH_DISTCLEANFILES)
    243246DocFiles = README AUTHORS LICENSE
    244 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     247DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    245248all: all-recursive
    246249
  • branches/split/configure

    r1415 r1522  
    22# From configure.ac 0.9.
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated by GNU Autoconf 2.59 for Clp trunk.
     4# Generated by GNU Autoconf 2.59 for Clp split.
    55#
    66# Report bugs to <coin-clp@lists.coin-or.org>.
     
    431431PACKAGE_NAME='Clp'
    432432PACKAGE_TARNAME='clp'
    433 PACKAGE_VERSION='trunk'
    434 PACKAGE_STRING='Clp trunk'
     433PACKAGE_VERSION='split'
     434PACKAGE_STRING='Clp split'
    435435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
    436436
     
    476476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
    477477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
    478 ac_subdirs_all="$ac_subdirs_all CoinUtils"
    479478ac_subdirs_all="$ac_subdirs_all Data/Sample"
    480479ac_subdirs_all="$ac_subdirs_all Data/Netlib"
     480ac_subdirs_all="$ac_subdirs_all CoinUtils"
    481481ac_subdirs_all="$ac_subdirs_all Clp"
    482 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 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     482ac_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 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    483483ac_subst_files=''
    484484
     
    10171017ac_cv_env_CXXCPP_set=${CXXCPP+set}
    10181018ac_cv_env_CXXCPP_value=$CXXCPP
     1019ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     1020ac_env_PKG_CONFIG_value=$PKG_CONFIG
     1021ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     1022ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    10191023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
    10201024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
     
    10291033  # This message is too long to be a string in the A/UX 3.1 sh.
    10301034  cat <<_ACEOF
    1031 \`configure' configures Clp trunk to adapt to many kinds of systems.
     1035\`configure' configures Clp split to adapt to many kinds of systems.
    10321036
    10331037Usage: $0 [OPTION]... [VAR=VALUE]...
     
    10951099if test -n "$ac_init_help"; then
    10961100  case $ac_init_help in
    1097      short | recursive ) echo "Configuration of Clp trunk:";;
     1101     short | recursive ) echo "Configuration of Clp split:";;
    10981102   esac
    10991103  cat <<\_ACEOF
     
    11191123                          optimize for fast installation [default=yes]
    11201124  --disable-libtool-lock  avoid locking (might break parallel builds)
     1125  --enable-pkg-config     use pkg-config if available (default is yes)
    11211126
    11221127Optional Packages:
     
    11281133  --with-tags[=TAGS]
    11291134                          include additional configurations [automatic]
     1135  --with-blas-lib linker flags for using project Blas
     1136  --with-blas-incdir directory with header files for using project Blas
     1137  --with-blas-datadir directory with data files for using project Blas
     1138  --with-coin-instdir     prefix of installation directory for precompiled
     1139                          COIN packages
     1140  --with-lapack-lib linker flags for using project Lapack
     1141  --with-lapack-incdir directory with header files for using project Lapack
     1142  --with-lapack-datadir directory with data files for using project Lapack
     1143  --with-sample-lib linker flags for using project Sample
     1144  --with-sample-incdir directory with header files for using project Sample
     1145  --with-sample-datadir directory with data files for using project Sample
     1146  --with-netlib-lib linker flags for using project Netlib
     1147  --with-netlib-incdir directory with header files for using project Netlib
     1148  --with-netlib-datadir directory with data files for using project Netlib
     1149  --with-coinutils-lib linker flags for using project CoinUtils
     1150  --with-coinutils-incdir directory with header files for using project
     1151                          CoinUtils
     1152  --with-coinutils-datadir
     1153                          directory with data files for using project
     1154                          CoinUtils
     1155  --with-clp-lib linker flags for using project Clp
     1156  --with-clp-incdir directory with header files for using project Clp
     1157  --with-clp-datadir directory with data files for using project Clp
    11301158
    11311159Some influential environment variables:
     
    11591187  CPP         C preprocessor
    11601188  CXXCPP      C++ preprocessor
     1189  PKG_CONFIG  path to pkg-config utility
    11611190  COIN_SKIP_PROJECTS
    11621191              Set to the subdirectories of projects that should be skipped in
     
    12621291if $ac_init_version; then
    12631292  cat <<\_ACEOF
    1264 Clp configure trunk
     1293Clp configure split
    12651294generated by GNU Autoconf 2.59
    12661295
     
    12821311running configure, to aid debugging if configure makes a mistake.
    12831312
    1284 It was created by Clp $as_me trunk, which was
     1313It was created by Clp $as_me split, which was
    12851314generated by GNU Autoconf 2.59.  Invocation command line was
    12861315
     
    41634192
    41644193# Provide some information about the compiler.
    4165 echo "$as_me:4165:" \
     4194echo "$as_me:4194:" \
    41664195     "checking for Fortran 77 compiler version" >&5
    41674196ac_compiler=`set X $ac_compile; echo $2`
     
    51205149# Define the identity of the package.
    51215150 PACKAGE='clp'
    5122  VERSION='trunk'
     5151 VERSION='split'
    51235152
    51245153
     
    64226451*-*-irix6*)
    64236452  # Find out which ABI we are using.
    6424   echo '#line 6424 "configure"' > conftest.$ac_ext
     6453  echo '#line 6453 "configure"' > conftest.$ac_ext
    64256454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    64266455  (eval $ac_compile) 2>&5
     
    83868415   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83878416   -e 's:$: $lt_compiler_flag:'`
    8388    (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
     8417   (eval echo "\"\$as_me:8417: $lt_compile\"" >&5)
    83898418   (eval "$lt_compile" 2>conftest.err)
    83908419   ac_status=$?
    83918420   cat conftest.err >&5
    8392    echo "$as_me:8392: \$? = $ac_status" >&5
     8421   echo "$as_me:8421: \$? = $ac_status" >&5
    83938422   if (exit $ac_status) && test -s "$ac_outfile"; then
    83948423     # The compiler can only warn and ignore the option if not recognized
     
    86548683   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    86558684   -e 's:$: $lt_compiler_flag:'`
    8656    (eval echo "\"\$as_me:8656: $lt_compile\"" >&5)
     8685   (eval echo "\"\$as_me:8685: $lt_compile\"" >&5)
    86578686   (eval "$lt_compile" 2>conftest.err)
    86588687   ac_status=$?
    86598688   cat conftest.err >&5
    8660    echo "$as_me:8660: \$? = $ac_status" >&5
     8689   echo "$as_me:8689: \$? = $ac_status" >&5
    86618690   if (exit $ac_status) && test -s "$ac_outfile"; then
    86628691     # The compiler can only warn and ignore the option if not recognized
     
    87588787   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    87598788   -e 's:$: $lt_compiler_flag:'`
    8760    (eval echo "\"\$as_me:8760: $lt_compile\"" >&5)
     8789   (eval echo "\"\$as_me:8789: $lt_compile\"" >&5)
    87618790   (eval "$lt_compile" 2>out/conftest.err)
    87628791   ac_status=$?
    87638792   cat out/conftest.err >&5
    8764    echo "$as_me:8764: \$? = $ac_status" >&5
     8793   echo "$as_me:8793: \$? = $ac_status" >&5
    87658794   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    87668795   then
     
    1110311132  lt_status=$lt_dlunknown
    1110411133  cat > conftest.$ac_ext <<EOF
    11105 #line 11105 "configure"
     11134#line 11134 "configure"
    1110611135#include "confdefs.h"
    1110711136
     
    1120311232  lt_status=$lt_dlunknown
    1120411233  cat > conftest.$ac_ext <<EOF
    11205 #line 11205 "configure"
     11234#line 11234 "configure"
    1120611235#include "confdefs.h"
    1120711236
     
    1354713576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1354813577   -e 's:$: $lt_compiler_flag:'`
    13549    (eval echo "\"\$as_me:13549: $lt_compile\"" >&5)
     13578   (eval echo "\"\$as_me:13578: $lt_compile\"" >&5)
    1355013579   (eval "$lt_compile" 2>conftest.err)
    1355113580   ac_status=$?
    1355213581   cat conftest.err >&5
    13553    echo "$as_me:13553: \$? = $ac_status" >&5
     13582   echo "$as_me:13582: \$? = $ac_status" >&5
    1355413583   if (exit $ac_status) && test -s "$ac_outfile"; then
    1355513584     # The compiler can only warn and ignore the option if not recognized
     
    1365113680   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1365213681   -e 's:$: $lt_compiler_flag:'`
    13653    (eval echo "\"\$as_me:13653: $lt_compile\"" >&5)
     13682   (eval echo "\"\$as_me:13682: $lt_compile\"" >&5)
    1365413683   (eval "$lt_compile" 2>out/conftest.err)
    1365513684   ac_status=$?
    1365613685   cat out/conftest.err >&5
    13657    echo "$as_me:13657: \$? = $ac_status" >&5
     13686   echo "$as_me:13686: \$? = $ac_status" >&5
    1365813687   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1365913688   then
     
    1522115250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1522215251   -e 's:$: $lt_compiler_flag:'`
    15223    (eval echo "\"\$as_me:15223: $lt_compile\"" >&5)
     15252   (eval echo "\"\$as_me:15252: $lt_compile\"" >&5)
    1522415253   (eval "$lt_compile" 2>conftest.err)
    1522515254   ac_status=$?
    1522615255   cat conftest.err >&5
    15227    echo "$as_me:15227: \$? = $ac_status" >&5
     15256   echo "$as_me:15256: \$? = $ac_status" >&5
    1522815257   if (exit $ac_status) && test -s "$ac_outfile"; then
    1522915258     # The compiler can only warn and ignore the option if not recognized
     
    1532515354   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1532615355   -e 's:$: $lt_compiler_flag:'`
    15327    (eval echo "\"\$as_me:15327: $lt_compile\"" >&5)
     15356   (eval echo "\"\$as_me:15356: $lt_compile\"" >&5)
    1532815357   (eval "$lt_compile" 2>out/conftest.err)
    1532915358   ac_status=$?
    1533015359   cat out/conftest.err >&5
    15331    echo "$as_me:15331: \$? = $ac_status" >&5
     15360   echo "$as_me:15360: \$? = $ac_status" >&5
    1533215361   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1533315362   then
     
    1753217561   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1753317562   -e 's:$: $lt_compiler_flag:'`
    17534    (eval echo "\"\$as_me:17534: $lt_compile\"" >&5)
     17563   (eval echo "\"\$as_me:17563: $lt_compile\"" >&5)
    1753517564   (eval "$lt_compile" 2>conftest.err)
    1753617565   ac_status=$?
    1753717566   cat conftest.err >&5
    17538    echo "$as_me:17538: \$? = $ac_status" >&5
     17567   echo "$as_me:17567: \$? = $ac_status" >&5
    1753917568   if (exit $ac_status) && test -s "$ac_outfile"; then
    1754017569     # The compiler can only warn and ignore the option if not recognized
     
    1780017829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1780117830   -e 's:$: $lt_compiler_flag:'`
    17802    (eval echo "\"\$as_me:17802: $lt_compile\"" >&5)
     17831   (eval echo "\"\$as_me:17831: $lt_compile\"" >&5)
    1780317832   (eval "$lt_compile" 2>conftest.err)
    1780417833   ac_status=$?
    1780517834   cat conftest.err >&5
    17806    echo "$as_me:17806: \$? = $ac_status" >&5
     17835   echo "$as_me:17835: \$? = $ac_status" >&5
    1780717836   if (exit $ac_status) && test -s "$ac_outfile"; then
    1780817837     # The compiler can only warn and ignore the option if not recognized
     
    1790417933   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1790517934   -e 's:$: $lt_compiler_flag:'`
    17906    (eval echo "\"\$as_me:17906: $lt_compile\"" >&5)
     17935   (eval echo "\"\$as_me:17935: $lt_compile\"" >&5)
    1790717936   (eval "$lt_compile" 2>out/conftest.err)
    1790817937   ac_status=$?
    1790917938   cat out/conftest.err >&5
    17910    echo "$as_me:17910: \$? = $ac_status" >&5
     17939   echo "$as_me:17939: \$? = $ac_status" >&5
    1791117940   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1791217941   then
     
    2080920838
    2081020839#############################################################################
    20811 #             Check which ThirdParty sources are available                  #
     20840#                  Check which subprojects are there                        #
    2081220841#############################################################################
    2081320842
    20814 echo "$as_me:$LINENO: checking whether code for third party package Blas is available" >&5
    20815 echo $ECHO_N "checking whether code for third party package Blas is available... $ECHO_C" >&6
    20816 coin_skip=no
     20843
     20844
     20845# Check whether --enable-pkg-config or --disable-pkg-config was given.
     20846if test "${enable_pkg_config+set}" = set; then
     20847  enableval="$enable_pkg_config"
     20848  use_pkgconfig="$enableval"
     20849else
     20850  use_pkgconfig=yes
     20851fi;
     20852
     20853if test $use_pkgconfig = yes ; then
     20854  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     20855    if test -n "$ac_tool_prefix"; then
     20856  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     20857set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     20858echo "$as_me:$LINENO: checking for $ac_word" >&5
     20859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20860if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     20861  echo $ECHO_N "(cached) $ECHO_C" >&6
     20862else
     20863  case $PKG_CONFIG in
     20864  [\\/]* | ?:[\\/]*)
     20865  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     20866  ;;
     20867  *)
     20868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20869for as_dir in $PATH
     20870do
     20871  IFS=$as_save_IFS
     20872  test -z "$as_dir" && as_dir=.
     20873  for ac_exec_ext in '' $ac_executable_extensions; do
     20874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20875    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20877    break 2
     20878  fi
     20879done
     20880done
     20881
     20882  ;;
     20883esac
     20884fi
     20885PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     20886
     20887if test -n "$PKG_CONFIG"; then
     20888  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     20889echo "${ECHO_T}$PKG_CONFIG" >&6
     20890else
     20891  echo "$as_me:$LINENO: result: no" >&5
     20892echo "${ECHO_T}no" >&6
     20893fi
     20894
     20895fi
     20896if test -z "$ac_cv_path_PKG_CONFIG"; then
     20897  ac_pt_PKG_CONFIG=$PKG_CONFIG
     20898  # Extract the first word of "pkg-config", so it can be a program name with args.
     20899set dummy pkg-config; ac_word=$2
     20900echo "$as_me:$LINENO: checking for $ac_word" >&5
     20901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20902if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     20903  echo $ECHO_N "(cached) $ECHO_C" >&6
     20904else
     20905  case $ac_pt_PKG_CONFIG in
     20906  [\\/]* | ?:[\\/]*)
     20907  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     20908  ;;
     20909  *)
     20910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20911for as_dir in $PATH
     20912do
     20913  IFS=$as_save_IFS
     20914  test -z "$as_dir" && as_dir=.
     20915  for ac_exec_ext in '' $ac_executable_extensions; do
     20916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20917    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20919    break 2
     20920  fi
     20921done
     20922done
     20923
     20924  ;;
     20925esac
     20926fi
     20927ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     20928
     20929if test -n "$ac_pt_PKG_CONFIG"; then
     20930  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     20931echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     20932else
     20933  echo "$as_me:$LINENO: result: no" >&5
     20934echo "${ECHO_T}no" >&6
     20935fi
     20936
     20937  PKG_CONFIG=$ac_pt_PKG_CONFIG
     20938else
     20939  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     20940fi
     20941
     20942  fi
     20943  if test -n "$PKG_CONFIG"; then
     20944    _pkg_min_version=0.9.0
     20945    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     20946echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     20947    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     20948      echo "$as_me:$LINENO: result: yes" >&5
     20949echo "${ECHO_T}yes" >&6
     20950    else
     20951      echo "$as_me:$LINENO: result: no" >&5
     20952echo "${ECHO_T}no" >&6
     20953      PKG_CONFIG=""
     20954    fi
     20955  fi
     20956
     20957  # check if pkg-config supports the short-errors flag
     20958  if test -n "$PKG_CONFIG" && \
     20959    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     20960    pkg_short_errors=" --short-errors "
     20961  else
     20962    pkg_short_errors=""
     20963  fi
     20964fi
     20965
     20966
     20967echo "$as_me:$LINENO: checking whether project Blas is available" >&5
     20968echo $ECHO_N "checking whether project Blas is available... $ECHO_C" >&6
     20969
     20970coin_has_blas=notGiven
     20971coin_have_project_dir=no
     20972
     20973# check if user wants to skip project in any case
     20974
    2081720975if test x"$COIN_SKIP_PROJECTS" != x; then
    2081820976  for dir in $COIN_SKIP_PROJECTS; do
    20819     if test $dir = ThirdParty/Blas; then
    20820       coin_skip=yes
     20977    if test $dir = "Blas"; then
     20978      coin_has_blas=skipping
     20979    fi
     20980    if test $dir = "ThirdParty/Blas"; then
     20981      coin_has_blas=skipping
    2082120982    fi
    2082220983  done
    2082320984fi
    20824 if test $coin_skip = yes; then
    20825   echo "$as_me:$LINENO: result: skipping" >&5
    20826 echo "${ECHO_T}skipping" >&6
    20827 else
    20828   coin_tmp=`echo $srcdir/ThirdParty/Blas/daxpy.f`
    20829   # There is probably a more elegant way to get the first thing out here...
    20830   for i in $coin_tmp; do
    20831     coin_tmp2=$i
    20832     #break 1
    20833   done
    20834   if test -r $coin_tmp2; then
     20985
     20986if test $coin_has_blas != skipping; then
     20987  if test $PACKAGE_TARNAME = blas; then
     20988    coin_has_blas=.
     20989    coin_have_project_dir=yes
     20990  fi
     20991
     20992
     20993# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
     20994if test "${with_blas_lib+set}" = set; then
     20995  withval="$with_blas_lib"
     20996  coin_has_blas=installed
     20997fi;
     20998
     20999
     21000# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
     21001if test "${with_blas_incdir+set}" = set; then
     21002  withval="$with_blas_incdir"
     21003  coin_has_blas=installed
     21004fi;
     21005
     21006
     21007# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
     21008if test "${with_blas_datadir+set}" = set; then
     21009  withval="$with_blas_datadir"
     21010  coin_has_blas=installed
     21011fi;
     21012fi
     21013
     21014if test $coin_has_blas = notGiven; then
     21015  #only if pkg-config is available:
     21016  #see if user gives directory where project might be installed: assemble search path for pkg-config
     21017  if test -n "$PKG_CONFIG" ; then
     21018    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21019
     21020    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21021    if test -d "$prefix"; then
     21022      PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
     21023    fi
     21024
     21025
     21026# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21027if test "${with_coin_instdir+set}" = set; then
     21028  withval="$with_coin_instdir"
     21029  if test -d "$withval"; then : ; else
     21030         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21031echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21032   { (exit 1); exit 1; }; }
     21033       fi
     21034       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21035
     21036fi;
     21037
     21038    # let pkgconfig check if the project is already installed somewhere
     21039    # need to export variable to be sure that the following pkg-config call gets these values
     21040    export PKG_CONFIG_PATH
     21041
     21042if test -n "$PKG_CONFIG" ; then
     21043  if $PKG_CONFIG --exists "coinblas"; then
     21044    COINBLAS_VERSION=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null`
     21045    coin_has_blas="$COINBLAS_VERSION"
     21046  else
     21047    COINBLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
     21048
     21049  fi
     21050else
     21051  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module coinblas without pkg-config\"" >&5
     21052echo "$as_me: error: \"Cannot check for existance of module coinblas without pkg-config\"" >&2;}
     21053   { (exit 1); exit 1; }; }
     21054fi
     21055
     21056
     21057    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21058  fi
     21059fi
     21060
     21061# if not found yet, check if project is available in present directory
     21062if test "$coin_has_blas" = notGiven; then
     21063  if test -d $srcdir/ThirdParty/Blas; then
     21064    for i in $srcdir/ThirdParty/Blas/daxpy.f; do
     21065         if test -r $i; then
     21066           coin_have_project_dir=yes
     21067         fi
     21068       done
     21069
     21070    if test $coin_have_project_dir = yes; then
     21071      coin_has_blas=ThirdParty/Blas
     21072    fi
     21073  fi
     21074fi
     21075
     21076echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     21077echo "${ECHO_T}$coin_has_blas" >&6
     21078
     21079echo "$as_me:$LINENO: checking whether project Blas need to be configured" >&5
     21080echo $ECHO_N "checking whether project Blas need to be configured... $ECHO_C" >&6
     21081if test "$coin_have_project_dir" = yes ; then
     21082
     21083  if test -r $srcdir/ThirdParty/Blas/configure; then
    2083521084    coin_subdirs="$coin_subdirs ThirdParty/Blas"
    2083621085    echo "$as_me:$LINENO: result: yes" >&5
     
    2084421093echo "${ECHO_T}no" >&6
    2084521094  fi
    20846 fi
    20847 
    20848 echo "$as_me:$LINENO: checking whether code for third party package Lapack is available" >&5
    20849 echo $ECHO_N "checking whether code for third party package Lapack is available... $ECHO_C" >&6
    20850 coin_skip=no
     21095else
     21096  echo "$as_me:$LINENO: result: no" >&5
     21097echo "${ECHO_T}no" >&6
     21098fi
     21099
     21100
     21101echo "$as_me:$LINENO: checking whether project Lapack is available" >&5
     21102echo $ECHO_N "checking whether project Lapack is available... $ECHO_C" >&6
     21103
     21104coin_has_lapack=notGiven
     21105coin_have_project_dir=no
     21106
     21107# check if user wants to skip project in any case
     21108
    2085121109if test x"$COIN_SKIP_PROJECTS" != x; then
    2085221110  for dir in $COIN_SKIP_PROJECTS; do
    20853     if test $dir = ThirdParty/Lapack; then
    20854       coin_skip=yes
     21111    if test $dir = "Lapack"; then
     21112      coin_has_lapack=skipping
     21113    fi
     21114    if test $dir = "ThirdParty/Lapack"; then
     21115      coin_has_lapack=skipping
    2085521116    fi
    2085621117  done
    2085721118fi
    20858 if test $coin_skip = yes; then
    20859   echo "$as_me:$LINENO: result: skipping" >&5
    20860 echo "${ECHO_T}skipping" >&6
    20861 else
    20862   coin_tmp=`echo $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f`
    20863   # There is probably a more elegant way to get the first thing out here...
    20864   for i in $coin_tmp; do
    20865     coin_tmp2=$i
    20866     #break 1
    20867   done
    20868   if test -r $coin_tmp2; then
     21119
     21120if test $coin_has_lapack != skipping; then
     21121  if test $PACKAGE_TARNAME = lapack; then
     21122    coin_has_lapack=.
     21123    coin_have_project_dir=yes
     21124  fi
     21125
     21126
     21127# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
     21128if test "${with_lapack_lib+set}" = set; then
     21129  withval="$with_lapack_lib"
     21130  coin_has_lapack=installed
     21131fi;
     21132
     21133
     21134# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
     21135if test "${with_lapack_incdir+set}" = set; then
     21136  withval="$with_lapack_incdir"
     21137  coin_has_lapack=installed
     21138fi;
     21139
     21140
     21141# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
     21142if test "${with_lapack_datadir+set}" = set; then
     21143  withval="$with_lapack_datadir"
     21144  coin_has_lapack=installed
     21145fi;
     21146fi
     21147
     21148if test $coin_has_lapack = notGiven; then
     21149  #only if pkg-config is available:
     21150  #see if user gives directory where project might be installed: assemble search path for pkg-config
     21151  if test -n "$PKG_CONFIG" ; then
     21152    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21153
     21154    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21155    if test -d "$prefix"; then
     21156      PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
     21157    fi
     21158
     21159
     21160# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21161if test "${with_coin_instdir+set}" = set; then
     21162  withval="$with_coin_instdir"
     21163  if test -d "$withval"; then : ; else
     21164         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21165echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21166   { (exit 1); exit 1; }; }
     21167       fi
     21168       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21169
     21170fi;
     21171
     21172    # let pkgconfig check if the project is already installed somewhere
     21173    # need to export variable to be sure that the following pkg-config call gets these values
     21174    export PKG_CONFIG_PATH
     21175
     21176if test -n "$PKG_CONFIG" ; then
     21177  if $PKG_CONFIG --exists "coinlapack"; then
     21178    COINLAPACK_VERSION=`$PKG_CONFIG --modversion "coinlapack" 2>/dev/null`
     21179    coin_has_lapack="$COINLAPACK_VERSION"
     21180  else
     21181    COINLAPACK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinlapack"`
     21182
     21183  fi
     21184else
     21185  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module coinlapack without pkg-config\"" >&5
     21186echo "$as_me: error: \"Cannot check for existance of module coinlapack without pkg-config\"" >&2;}
     21187   { (exit 1); exit 1; }; }
     21188fi
     21189
     21190
     21191    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21192  fi
     21193fi
     21194
     21195# if not found yet, check if project is available in present directory
     21196if test "$coin_has_lapack" = notGiven; then
     21197  if test -d $srcdir/ThirdParty/Lapack; then
     21198    for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
     21199         if test -r $i; then
     21200           coin_have_project_dir=yes
     21201         fi
     21202       done
     21203
     21204    if test $coin_have_project_dir = yes; then
     21205      coin_has_lapack=ThirdParty/Lapack
     21206    fi
     21207  fi
     21208fi
     21209
     21210echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
     21211echo "${ECHO_T}$coin_has_lapack" >&6
     21212
     21213echo "$as_me:$LINENO: checking whether project Lapack need to be configured" >&5
     21214echo $ECHO_N "checking whether project Lapack need to be configured... $ECHO_C" >&6
     21215if test "$coin_have_project_dir" = yes ; then
     21216
     21217  if test -r $srcdir/ThirdParty/Lapack/configure; then
    2086921218    coin_subdirs="$coin_subdirs ThirdParty/Lapack"
    2087021219    echo "$as_me:$LINENO: result: yes" >&5
     
    2087821227echo "${ECHO_T}no" >&6
    2087921228  fi
    20880 fi
    20881 
    20882 
    20883 #############################################################################
    20884 #                  Check which subprojects are there                        #
    20885 #############################################################################
    20886 
    20887 
    20888 
    20889 echo "$as_me:$LINENO: checking whether directory CoinUtils is available" >&5
    20890 echo $ECHO_N "checking whether directory CoinUtils is available... $ECHO_C" >&6
    20891                 coin_skip=no
    20892                 if test x"$COIN_SKIP_PROJECTS" != x; then
    20893                   for dir in $COIN_SKIP_PROJECTS; do
    20894                     if test $dir = CoinUtils; then
    20895                       coin_skip=yes
    20896                     fi
    20897                   done
    20898                 fi
    20899                 if test $coin_skip = yes; then
    20900                   echo "$as_me:$LINENO: result: skipping" >&5
    20901 echo "${ECHO_T}skipping" >&6
    20902                 elif test -r $srcdir/CoinUtils/configure; then
    20903                   coin_subdirs="$coin_subdirs CoinUtils"
    20904                   echo "$as_me:$LINENO: result: yes" >&5
     21229else
     21230  echo "$as_me:$LINENO: result: no" >&5
     21231echo "${ECHO_T}no" >&6
     21232fi
     21233
     21234
     21235echo "$as_me:$LINENO: checking whether project Sample is available" >&5
     21236echo $ECHO_N "checking whether project Sample is available... $ECHO_C" >&6
     21237
     21238coin_has_sample=notGiven
     21239coin_have_project_dir=no
     21240
     21241# check if user wants to skip project in any case
     21242
     21243if test x"$COIN_SKIP_PROJECTS" != x; then
     21244  for dir in $COIN_SKIP_PROJECTS; do
     21245    if test $dir = "Sample"; then
     21246      coin_has_sample=skipping
     21247    fi
     21248    if test $dir = "Data/Sample"; then
     21249      coin_has_sample=skipping
     21250    fi
     21251  done
     21252fi
     21253
     21254if test $coin_has_sample != skipping; then
     21255  if test $PACKAGE_TARNAME = sample; then
     21256    coin_has_sample=.
     21257    coin_have_project_dir=yes
     21258  fi
     21259
     21260
     21261# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
     21262if test "${with_sample_lib+set}" = set; then
     21263  withval="$with_sample_lib"
     21264  coin_has_sample=installed
     21265fi;
     21266
     21267
     21268# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
     21269if test "${with_sample_incdir+set}" = set; then
     21270  withval="$with_sample_incdir"
     21271  coin_has_sample=installed
     21272fi;
     21273
     21274
     21275# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
     21276if test "${with_sample_datadir+set}" = set; then
     21277  withval="$with_sample_datadir"
     21278  coin_has_sample=installed
     21279fi;
     21280fi
     21281
     21282if test $coin_has_sample = notGiven; then
     21283  #only if pkg-config is available:
     21284  #see if user gives directory where project might be installed: assemble search path for pkg-config
     21285  if test -n "$PKG_CONFIG" ; then
     21286    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21287
     21288    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21289    if test -d "$prefix"; then
     21290      PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
     21291    fi
     21292
     21293
     21294# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21295if test "${with_coin_instdir+set}" = set; then
     21296  withval="$with_coin_instdir"
     21297  if test -d "$withval"; then : ; else
     21298         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21299echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21300   { (exit 1); exit 1; }; }
     21301       fi
     21302       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21303
     21304fi;
     21305
     21306    # let pkgconfig check if the project is already installed somewhere
     21307    # need to export variable to be sure that the following pkg-config call gets these values
     21308    export PKG_CONFIG_PATH
     21309
     21310if test -n "$PKG_CONFIG" ; then
     21311  if $PKG_CONFIG --exists "coindatasample"; then
     21312    COINDATASAMPLE_VERSION=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null`
     21313    coin_has_sample="$COINDATASAMPLE_VERSION"
     21314  else
     21315    COINDATASAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
     21316
     21317  fi
     21318else
     21319  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module coindatasample without pkg-config\"" >&5
     21320echo "$as_me: error: \"Cannot check for existance of module coindatasample without pkg-config\"" >&2;}
     21321   { (exit 1); exit 1; }; }
     21322fi
     21323
     21324
     21325    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21326  fi
     21327fi
     21328
     21329# if not found yet, check if project is available in present directory
     21330if test "$coin_has_sample" = notGiven; then
     21331  if test -d $srcdir/Data/Sample; then
     21332     coin_have_project_dir=yes
     21333
     21334    if test $coin_have_project_dir = yes; then
     21335      coin_has_sample=Data/Sample
     21336    fi
     21337  fi
     21338fi
     21339
     21340echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     21341echo "${ECHO_T}$coin_has_sample" >&6
     21342
     21343echo "$as_me:$LINENO: checking whether project Sample need to be configured" >&5
     21344echo $ECHO_N "checking whether project Sample need to be configured... $ECHO_C" >&6
     21345if test "$coin_have_project_dir" = yes ; then
     21346
     21347  if test -r $srcdir/Data/Sample/configure; then
     21348    coin_subdirs="$coin_subdirs Data/Sample"
     21349    echo "$as_me:$LINENO: result: yes" >&5
    2090521350echo "${ECHO_T}yes" >&6
    2090621351
    2090721352
     21353subdirs="$subdirs Data/Sample"
     21354
     21355  else
     21356    echo "$as_me:$LINENO: result: no" >&5
     21357echo "${ECHO_T}no" >&6
     21358  fi
     21359else
     21360  echo "$as_me:$LINENO: result: no" >&5
     21361echo "${ECHO_T}no" >&6
     21362fi
     21363
     21364
     21365echo "$as_me:$LINENO: checking whether project Netlib is available" >&5
     21366echo $ECHO_N "checking whether project Netlib is available... $ECHO_C" >&6
     21367
     21368coin_has_netlib=notGiven
     21369coin_have_project_dir=no
     21370
     21371# check if user wants to skip project in any case
     21372
     21373if test x"$COIN_SKIP_PROJECTS" != x; then
     21374  for dir in $COIN_SKIP_PROJECTS; do
     21375    if test $dir = "Netlib"; then
     21376      coin_has_netlib=skipping
     21377    fi
     21378    if test $dir = "Data/Netlib"; then
     21379      coin_has_netlib=skipping
     21380    fi
     21381  done
     21382fi
     21383
     21384if test $coin_has_netlib != skipping; then
     21385  if test $PACKAGE_TARNAME = netlib; then
     21386    coin_has_netlib=.
     21387    coin_have_project_dir=yes
     21388  fi
     21389
     21390
     21391# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
     21392if test "${with_netlib_lib+set}" = set; then
     21393  withval="$with_netlib_lib"
     21394  coin_has_netlib=installed
     21395fi;
     21396
     21397
     21398# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
     21399if test "${with_netlib_incdir+set}" = set; then
     21400  withval="$with_netlib_incdir"
     21401  coin_has_netlib=installed
     21402fi;
     21403
     21404
     21405# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
     21406if test "${with_netlib_datadir+set}" = set; then
     21407  withval="$with_netlib_datadir"
     21408  coin_has_netlib=installed
     21409fi;
     21410fi
     21411
     21412if test $coin_has_netlib = notGiven; then
     21413  #only if pkg-config is available:
     21414  #see if user gives directory where project might be installed: assemble search path for pkg-config
     21415  if test -n "$PKG_CONFIG" ; then
     21416    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21417
     21418    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21419    if test -d "$prefix"; then
     21420      PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
     21421    fi
     21422
     21423
     21424# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21425if test "${with_coin_instdir+set}" = set; then
     21426  withval="$with_coin_instdir"
     21427  if test -d "$withval"; then : ; else
     21428         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21429echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21430   { (exit 1); exit 1; }; }
     21431       fi
     21432       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21433
     21434fi;
     21435
     21436    # let pkgconfig check if the project is already installed somewhere
     21437    # need to export variable to be sure that the following pkg-config call gets these values
     21438    export PKG_CONFIG_PATH
     21439
     21440if test -n "$PKG_CONFIG" ; then
     21441  if $PKG_CONFIG --exists "coindatanetlib"; then
     21442    COINDATANETLIB_VERSION=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null`
     21443    coin_has_netlib="$COINDATANETLIB_VERSION"
     21444  else
     21445    COINDATANETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
     21446
     21447  fi
     21448else
     21449  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module coindatanetlib without pkg-config\"" >&5
     21450echo "$as_me: error: \"Cannot check for existance of module coindatanetlib without pkg-config\"" >&2;}
     21451   { (exit 1); exit 1; }; }
     21452fi
     21453
     21454
     21455    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21456  fi
     21457fi
     21458
     21459# if not found yet, check if project is available in present directory
     21460if test "$coin_has_netlib" = notGiven; then
     21461  if test -d $srcdir/Data/Netlib; then
     21462     coin_have_project_dir=yes
     21463
     21464    if test $coin_have_project_dir = yes; then
     21465      coin_has_netlib=Data/Netlib
     21466    fi
     21467  fi
     21468fi
     21469
     21470echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     21471echo "${ECHO_T}$coin_has_netlib" >&6
     21472
     21473echo "$as_me:$LINENO: checking whether project Netlib need to be configured" >&5
     21474echo $ECHO_N "checking whether project Netlib need to be configured... $ECHO_C" >&6
     21475if test "$coin_have_project_dir" = yes ; then
     21476
     21477  if test -r $srcdir/Data/Netlib/configure; then
     21478    coin_subdirs="$coin_subdirs Data/Netlib"
     21479    echo "$as_me:$LINENO: result: yes" >&5
     21480echo "${ECHO_T}yes" >&6
     21481
     21482
     21483subdirs="$subdirs Data/Netlib"
     21484
     21485  else
     21486    echo "$as_me:$LINENO: result: no" >&5
     21487echo "${ECHO_T}no" >&6
     21488  fi
     21489else
     21490  echo "$as_me:$LINENO: result: no" >&5
     21491echo "${ECHO_T}no" >&6
     21492fi
     21493
     21494
     21495echo "$as_me:$LINENO: checking whether project CoinUtils is available" >&5
     21496echo $ECHO_N "checking whether project CoinUtils is available... $ECHO_C" >&6
     21497
     21498coin_has_coinutils=notGiven
     21499coin_have_project_dir=no
     21500
     21501# check if user wants to skip project in any case
     21502
     21503if test x"$COIN_SKIP_PROJECTS" != x; then
     21504  for dir in $COIN_SKIP_PROJECTS; do
     21505    if test $dir = "CoinUtils"; then
     21506      coin_has_coinutils=skipping
     21507    fi
     21508    if test $dir = "/CoinUtils"; then
     21509      coin_has_coinutils=skipping
     21510    fi
     21511  done
     21512fi
     21513
     21514if test $coin_has_coinutils != skipping; then
     21515  if test $PACKAGE_TARNAME = coinutils; then
     21516    coin_has_coinutils=.
     21517    coin_have_project_dir=yes
     21518  fi
     21519
     21520
     21521# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
     21522if test "${with_coinutils_lib+set}" = set; then
     21523  withval="$with_coinutils_lib"
     21524  coin_has_coinutils=installed
     21525fi;
     21526
     21527
     21528# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
     21529if test "${with_coinutils_incdir+set}" = set; then
     21530  withval="$with_coinutils_incdir"
     21531  coin_has_coinutils=installed
     21532fi;
     21533
     21534
     21535# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
     21536if test "${with_coinutils_datadir+set}" = set; then
     21537  withval="$with_coinutils_datadir"
     21538  coin_has_coinutils=installed
     21539fi;
     21540fi
     21541
     21542if test $coin_has_coinutils = notGiven; then
     21543  #only if pkg-config is available:
     21544  #see if user gives directory where project might be installed: assemble search path for pkg-config
     21545  if test -n "$PKG_CONFIG" ; then
     21546    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21547
     21548    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21549    if test -d "$prefix"; then
     21550      PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
     21551    fi
     21552
     21553
     21554# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21555if test "${with_coin_instdir+set}" = set; then
     21556  withval="$with_coin_instdir"
     21557  if test -d "$withval"; then : ; else
     21558         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21559echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21560   { (exit 1); exit 1; }; }
     21561       fi
     21562       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21563
     21564fi;
     21565
     21566    # let pkgconfig check if the project is already installed somewhere
     21567    # need to export variable to be sure that the following pkg-config call gets these values
     21568    export PKG_CONFIG_PATH
     21569
     21570if test -n "$PKG_CONFIG" ; then
     21571  if $PKG_CONFIG --exists "coinutils"; then
     21572    COINUTILS_VERSION=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null`
     21573    coin_has_coinutils="$COINUTILS_VERSION"
     21574  else
     21575    COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
     21576
     21577  fi
     21578else
     21579  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
     21580echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
     21581   { (exit 1); exit 1; }; }
     21582fi
     21583
     21584
     21585    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21586  fi
     21587fi
     21588
     21589# if not found yet, check if project is available in present directory
     21590if test "$coin_has_coinutils" = notGiven; then
     21591  if test -d $srcdir//CoinUtils; then
     21592     coin_have_project_dir=yes
     21593
     21594    if test $coin_have_project_dir = yes; then
     21595      coin_has_coinutils=/CoinUtils
     21596    fi
     21597  fi
     21598fi
     21599
     21600echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
     21601echo "${ECHO_T}$coin_has_coinutils" >&6
     21602
     21603echo "$as_me:$LINENO: checking whether project CoinUtils need to be configured" >&5
     21604echo $ECHO_N "checking whether project CoinUtils need to be configured... $ECHO_C" >&6
     21605if test "$coin_have_project_dir" = yes ; then
     21606
     21607  if test -r $srcdir//CoinUtils/configure; then
     21608    coin_subdirs="$coin_subdirs CoinUtils"
     21609    echo "$as_me:$LINENO: result: yes" >&5
     21610echo "${ECHO_T}yes" >&6
     21611
     21612
    2090821613subdirs="$subdirs CoinUtils"
    2090921614
    20910                 else
    20911                   echo "$as_me:$LINENO: result: no" >&5
     21615  else
     21616    echo "$as_me:$LINENO: result: no" >&5
    2091221617echo "${ECHO_T}no" >&6
    20913                 fi
    20914 
    20915 
    20916 
    20917 
    20918 
    20919 
    20920 
    20921 
    20922 
    20923 
    20924 
    20925 
    20926 
    20927 echo "$as_me:$LINENO: checking whether directory Data/Sample is available" >&5
    20928 echo $ECHO_N "checking whether directory Data/Sample is available... $ECHO_C" >&6
    20929                 coin_skip=no
    20930                 if test x"$COIN_SKIP_PROJECTS" != x; then
    20931                   for dir in $COIN_SKIP_PROJECTS; do
    20932                     if test $dir = Data/Sample; then
    20933                       coin_skip=yes
    20934                     fi
    20935                   done
    20936                 fi
    20937                 if test $coin_skip = yes; then
    20938                   echo "$as_me:$LINENO: result: skipping" >&5
    20939 echo "${ECHO_T}skipping" >&6
    20940                 elif test -r $srcdir/Data/Sample/configure; then
    20941                   coin_subdirs="$coin_subdirs Data/Sample"
    20942                   echo "$as_me:$LINENO: result: yes" >&5
     21618  fi
     21619else
     21620  echo "$as_me:$LINENO: result: no" >&5
     21621echo "${ECHO_T}no" >&6
     21622fi
     21623
     21624
     21625echo "$as_me:$LINENO: checking whether project Clp is available" >&5
     21626echo $ECHO_N "checking whether project Clp is available... $ECHO_C" >&6
     21627
     21628coin_has_clp=notGiven
     21629coin_have_project_dir=no
     21630
     21631# check if user wants to skip project in any case
     21632
     21633if test x"$COIN_SKIP_PROJECTS" != x; then
     21634  for dir in $COIN_SKIP_PROJECTS; do
     21635    if test $dir = "Clp"; then
     21636      coin_has_clp=skipping
     21637    fi
     21638    if test $dir = "/Clp"; then
     21639      coin_has_clp=skipping
     21640    fi
     21641  done
     21642fi
     21643
     21644if test $coin_has_clp != skipping; then
     21645  if test $PACKAGE_TARNAME = clp; then
     21646    coin_has_clp=.
     21647    coin_have_project_dir=yes
     21648  fi
     21649
     21650
     21651# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
     21652if test "${with_clp_lib+set}" = set; then
     21653  withval="$with_clp_lib"
     21654  coin_has_clp=installed
     21655fi;
     21656
     21657
     21658# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
     21659if test "${with_clp_incdir+set}" = set; then
     21660  withval="$with_clp_incdir"
     21661  coin_has_clp=installed
     21662fi;
     21663
     21664
     21665# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
     21666if test "${with_clp_datadir+set}" = set; then
     21667  withval="$with_clp_datadir"
     21668  coin_has_clp=installed
     21669fi;
     21670fi
     21671
     21672if test $coin_has_clp = notGiven; then
     21673  #only if pkg-config is available:
     21674  #see if user gives directory where project might be installed: assemble search path for pkg-config
     21675  if test -n "$PKG_CONFIG" ; then
     21676    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21677
     21678    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     21679    if test -d "$prefix"; then
     21680      PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
     21681    fi
     21682
     21683
     21684# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21685if test "${with_coin_instdir+set}" = set; then
     21686  withval="$with_coin_instdir"
     21687  if test -d "$withval"; then : ; else
     21688         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21689echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21690   { (exit 1); exit 1; }; }
     21691       fi
     21692       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21693
     21694fi;
     21695
     21696    # let pkgconfig check if the project is already installed somewhere
     21697    # need to export variable to be sure that the following pkg-config call gets these values
     21698    export PKG_CONFIG_PATH
     21699
     21700if test -n "$PKG_CONFIG" ; then
     21701  if $PKG_CONFIG --exists "clp"; then
     21702    CLP_VERSION=`$PKG_CONFIG --modversion "clp" 2>/dev/null`
     21703    coin_has_clp="$CLP_VERSION"
     21704  else
     21705    CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "clp"`
     21706
     21707  fi
     21708else
     21709  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
     21710echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
     21711   { (exit 1); exit 1; }; }
     21712fi
     21713
     21714
     21715    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21716  fi
     21717fi
     21718
     21719# if not found yet, check if project is available in present directory
     21720if test "$coin_has_clp" = notGiven; then
     21721  if test -d $srcdir//Clp; then
     21722     coin_have_project_dir=yes
     21723
     21724    if test $coin_have_project_dir = yes; then
     21725      coin_has_clp=/Clp
     21726    fi
     21727  fi
     21728fi
     21729
     21730echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     21731echo "${ECHO_T}$coin_has_clp" >&6
     21732
     21733echo "$as_me:$LINENO: checking whether project Clp need to be configured" >&5
     21734echo $ECHO_N "checking whether project Clp need to be configured... $ECHO_C" >&6
     21735if test "$coin_have_project_dir" = yes ; then
     21736
     21737  if test -r $srcdir//Clp/configure; then
     21738    coin_subdirs="$coin_subdirs Clp"
     21739    echo "$as_me:$LINENO: result: yes" >&5
    2094321740echo "${ECHO_T}yes" >&6
    2094421741
    2094521742
    20946 subdirs="$subdirs Data/Sample"
    20947 
    20948                 else
    20949                   echo "$as_me:$LINENO: result: no" >&5
     21743subdirs="$subdirs Clp"
     21744
     21745  else
     21746    echo "$as_me:$LINENO: result: no" >&5
    2095021747echo "${ECHO_T}no" >&6
    20951                 fi
    20952 
    20953 
    20954 
    20955 
    20956 
    20957 
    20958 
    20959 
    20960 
    20961 
    20962 
    20963 
    20964 
    20965 echo "$as_me:$LINENO: checking whether directory Data/Netlib is available" >&5
    20966 echo $ECHO_N "checking whether directory Data/Netlib is available... $ECHO_C" >&6
    20967                 coin_skip=no
    20968                 if test x"$COIN_SKIP_PROJECTS" != x; then
    20969                   for dir in $COIN_SKIP_PROJECTS; do
    20970                     if test $dir = Data/Netlib; then
    20971                       coin_skip=yes
    20972                     fi
    20973                   done
    20974                 fi
    20975                 if test $coin_skip = yes; then
    20976                   echo "$as_me:$LINENO: result: skipping" >&5
    20977 echo "${ECHO_T}skipping" >&6
    20978                 elif test -r $srcdir/Data/Netlib/configure; then
    20979                   coin_subdirs="$coin_subdirs Data/Netlib"
    20980                   echo "$as_me:$LINENO: result: yes" >&5
    20981 echo "${ECHO_T}yes" >&6
    20982 
    20983 
    20984 subdirs="$subdirs Data/Netlib"
    20985 
    20986                 else
    20987                   echo "$as_me:$LINENO: result: no" >&5
     21748  fi
     21749else
     21750  echo "$as_me:$LINENO: result: no" >&5
    2098821751echo "${ECHO_T}no" >&6
    20989                 fi
    20990 
    20991 
    20992 
    20993 
    20994 
    20995 
    20996 
    20997 
    20998 
    20999 
    21000 
    21001 
    21002 
    21003 echo "$as_me:$LINENO: checking whether directory Clp is available" >&5
    21004 echo $ECHO_N "checking whether directory Clp is available... $ECHO_C" >&6
    21005                 coin_skip=no
    21006                 if test x"$COIN_SKIP_PROJECTS" != x; then
    21007                   for dir in $COIN_SKIP_PROJECTS; do
    21008                     if test $dir = Clp; then
    21009                       coin_skip=yes
    21010                     fi
    21011                   done
    21012                 fi
    21013                 if test $coin_skip = yes; then
    21014                   echo "$as_me:$LINENO: result: skipping" >&5
    21015 echo "${ECHO_T}skipping" >&6
    21016                 elif test -r $srcdir/Clp/configure; then
    21017                   coin_subdirs="$coin_subdirs Clp"
    21018                   echo "$as_me:$LINENO: result: yes" >&5
    21019 echo "${ECHO_T}yes" >&6
    21020 
    21021 
    21022 subdirs="$subdirs Clp"
    21023 
    21024                 else
    21025                   echo "$as_me:$LINENO: result: no" >&5
    21026 echo "${ECHO_T}no" >&6
    21027                 fi
    21028 
    21029 
    21030 
    21031 
    21032 
    21033 
    21034 
    21035 
    21036 
    21037 
     21752fi
    2103821753
    2103921754
     
    2110321818    done
    2110421819    subdirs="$new_subdirs"
     21820  fi
     21821
     21822  # need to come before AC_OUTPUT
     21823  if test x$coin_projectdir != xyes; then
     21824    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     21825    echo $coin_subdirs > coin_subdirs.txt
     21826  else
     21827    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     21828    ABSBUILDDIR="`pwd`"
     21829
    2110521830  fi
    2110621831
     
    2153322258cat >&5 <<_CSEOF
    2153422259
    21535 This file was extended by Clp $as_me trunk, which was
     22260This file was extended by Clp $as_me split, which was
    2153622261generated by GNU Autoconf 2.59.  Invocation command line was
    2153722262
     
    2159122316cat >>$CONFIG_STATUS <<_ACEOF
    2159222317ac_cs_version="\\
    21593 Clp config.status trunk
     22318Clp config.status split
    2159422319configured by $0, generated by GNU Autoconf 2.59,
    2159522320  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     
    2188622611s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2188722612s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     22613s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     22614s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     22615s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
    2188822616s,@subdirs@,$subdirs,;t t
    21889 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
    2189022617s,@LIBEXT@,$LIBEXT,;t t
    2189122618s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     22619s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2189222620s,@LIBOBJS@,$LIBOBJS,;t t
    2189322621s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • branches/split/configure.ac

    r1415 r1522  
    1313AC_PREREQ(2.59)
    1414
    15 AC_INIT([Clp],[trunk],[coin-clp@lists.coin-or.org])
     15AC_INIT([Clp],[split],[coin-clp@lists.coin-or.org])
    1616
    1717AC_COPYRIGHT([
     
    4040
    4141#############################################################################
    42 #             Check which ThirdParty sources are available                  #
    43 #############################################################################
    44 
    45 AC_COIN_THIRDPARTY_SUBDIRS([Blas],[ThirdParty/Blas],[daxpy.f])
    46 AC_COIN_THIRDPARTY_SUBDIRS([Lapack],[ThirdParty/Lapack],[LAPACK/SRC/dlarf.f])
    47 
    48 #############################################################################
    4942#                  Check which subprojects are there                        #
    5043#############################################################################
    5144
    52 AC_COIN_MAIN_SUBDIRS(CoinUtils)
    53 AC_COIN_MAIN_SUBDIRS(Data/Sample)
    54 AC_COIN_MAIN_SUBDIRS(Data/Netlib)
    55 AC_COIN_MAIN_SUBDIRS(Clp)
     45AC_COIN_MAIN_PACKAGEDIR(Blas,ThirdParty,daxpy.f,coinblas)
     46AC_COIN_MAIN_PACKAGEDIR(Lapack,ThirdParty,[LAPACK/SRC/dlarf.f],coinlapack)
     47AC_COIN_MAIN_PACKAGEDIR(Sample,Data,,coindatasample)
     48AC_COIN_MAIN_PACKAGEDIR(Netlib,Data,,coindatanetlib)
     49AC_COIN_MAIN_PACKAGEDIR(CoinUtils)
     50AC_COIN_MAIN_PACKAGEDIR(Clp)
    5651
    5752##############################################################################
Note: See TracChangeset for help on using the changeset viewer.