Changeset 1548 for ThirdParty/Glpk


Ignore:
Timestamp:
May 8, 2010 9:54:35 AM (9 years ago)
Author:
stefan
Message:

copy over pkg-config setup and making thirdparty projects installable projects from split branch

Location:
ThirdParty/Glpk/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Glpk/trunk/Makefile.am

    r1471 r1548  
    99EXTRA_DIST = get.GLPK INSTALL.Glpk glpk.patch
    1010
    11 if COIN_BUILD_GLPK
    12   noinst_LTLIBRARIES = libcoinglpk.la
    13 else
    14   noinst_LTLIBRARIES =
    15 endif
     11thirdpartylibdir = $(libdir)/coin/ThirdParty
     12thirdpartylib_LTLIBRARIES = libcoinglpk.la
    1613
    1714GLPKDIR = @GLPKDIR@
    1815
    19 nodist_libcoinglpk_la_SOURCES = \
     16libcoinglpk_la_SOURCES = \
    2017$(GLPKDIR)/src/glpapi01.c \
    2118$(GLPKDIR)/src/glpapi02.c \
     
    127124$(GLPKDIR)/src/colamd/colamd.c
    128125
    129 # CoinUtils and SYMPHONY include glpmpl.h, have HAVE_CONFIG_H defined,
    130 # and so Glpk attempts to include config.h.
    131 # Therefore, we put a simple config.h file into $(GLPKDIR)/include.
    132 # It's purpose is to include the config_glpk.h file that is generated
    133 # by configure.
    134 libcoinglpk_la_DEPENDENCIES = $(srcdir)/$(GLPKDIR)/include/config.h \
    135   $(srcdir)/$(GLPKDIR)/include/glpmpl.h \
    136   $(srcdir)/$(GLPKDIR)/include/glpavl.h \
    137   $(srcdir)/$(GLPKDIR)/include/glprng.h \
    138   $(srcdir)/$(GLPKDIR)/include/glpdmp.h \
    139   $(srcdir)/$(GLPKDIR)/include/glpenv.h \
    140   $(srcdir)/$(GLPKDIR)/include/glplib.h \
    141   $(srcdir)/$(GLPKDIR)/include/glpstd.h
    142 
    143 $(srcdir)/$(GLPKDIR)/include/config.h : $(srcdir)/config.h
    144         cp $(srcdir)/config.h $(srcdir)/$(GLPKDIR)/include/config.h
    145 
    146 $(srcdir)/$(GLPKDIR)/include/glpmpl.h : $(srcdir)/$(GLPKDIR)/src/glpmpl.h
    147         cp $(srcdir)/$(GLPKDIR)/src/glpmpl.h $(srcdir)/$(GLPKDIR)/include/glpmpl.h
    148 
    149 $(srcdir)/$(GLPKDIR)/include/glpavl.h : $(srcdir)/$(GLPKDIR)/src/glpavl.h
    150         cp $(srcdir)/$(GLPKDIR)/src/glpavl.h $(srcdir)/$(GLPKDIR)/include/glpavl.h
    151 
    152 $(srcdir)/$(GLPKDIR)/include/glprng.h : $(srcdir)/$(GLPKDIR)/src/glprng.h
    153         cp $(srcdir)/$(GLPKDIR)/src/glprng.h $(srcdir)/$(GLPKDIR)/include/glprng.h
    154 
    155 $(srcdir)/$(GLPKDIR)/include/glpdmp.h : $(srcdir)/$(GLPKDIR)/src/glpdmp.h
    156         cp $(srcdir)/$(GLPKDIR)/src/glpdmp.h $(srcdir)/$(GLPKDIR)/include/glpdmp.h
    157 
    158 $(srcdir)/$(GLPKDIR)/include/glpenv.h : $(srcdir)/$(GLPKDIR)/src/glpenv.h
    159         cp $(srcdir)/$(GLPKDIR)/src/glpenv.h $(srcdir)/$(GLPKDIR)/include/glpenv.h
    160 
    161 $(srcdir)/$(GLPKDIR)/include/glplib.h : $(srcdir)/$(GLPKDIR)/src/glplib.h
    162         cp $(srcdir)/$(GLPKDIR)/src/glplib.h $(srcdir)/$(GLPKDIR)/include/glplib.h
    163 
    164 $(srcdir)/$(GLPKDIR)/include/glpstd.h : $(srcdir)/$(GLPKDIR)/src/glpstd.h
    165         cp $(srcdir)/$(GLPKDIR)/src/glpstd.h $(srcdir)/$(GLPKDIR)/include/glpstd.h
    166 
    167126DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
    168127
     
    175134libcoinglpk_la_LDFLAGS = $(LT_LDFLAGS)
    176135
     136thirdpartyincludedir = $(includedir)/coin/ThirdParty
     137thirdpartyinclude_HEADERS = $(GLPKDIR)/include/glpk.h
     138
     139if COIN_HAS_PKGCONFIG
     140addlibsdir = $(datadir)/coin/doc/ThirdParty/Glpk
     141addlibs_DATA = glpk_addlibs.txt
     142
     143glpk_addlibs.txt : coinglpk.pc
     144        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinglpk > glpk_addlibs.txt
     145endif
     146
     147pkgconfiglibdir = $(libdir)/pkgconfig
     148pkgconfiglib_DATA = coinglpk.pc
     149
    177150########################################################################
    178151#                         Maintainer Stuff                             #
    179152########################################################################
     153
     154CLEANFILES = glpk_addlibs.txt
    180155
    181156# Files that are generated and should be cleaned with make distclean
  • ThirdParty/Glpk/trunk/Makefile.in

    r1471 r1548  
    2828#                    Documentation installation                        #
    2929########################################################################
     30
     31
    3032
    3133srcdir = @srcdir@
     
    5759        $(srcdir)/../../ltmain.sh $(srcdir)/../../missing \
    5860        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    59         $(srcdir)/config_glpk.h.in $(srcdir)/glpk_addlibs.txt.in \
     61        $(srcdir)/coinglpk-uninstalled.pc.in $(srcdir)/coinglpk.pc.in \
     62        $(srcdir)/config_glpk.h.in $(thirdpartyinclude_HEADERS) \
    6063        $(top_srcdir)/configure
    6164@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
     
    7174mkinstalldirs = $(install_sh) -d
    7275CONFIG_HEADER = config_glpk.h
    73 CONFIG_CLEAN_FILES = glpk_addlibs.txt
    74 LTLIBRARIES = $(noinst_LTLIBRARIES)
     76CONFIG_CLEAN_FILES = coinglpk.pc coinglpk-uninstalled.pc
     77am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     78am__vpath_adj = case $$p in \
     79    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     80    *) f=$$p;; \
     81  esac;
     82am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     83am__installdirs = "$(DESTDIR)$(thirdpartylibdir)" \
     84        "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" \
     85        "$(DESTDIR)$(thirdpartyincludedir)"
     86thirdpartylibLTLIBRARIES_INSTALL = $(INSTALL)
     87LTLIBRARIES = $(thirdpartylib_LTLIBRARIES)
    7588libcoinglpk_la_LIBADD =
    76 nodist_libcoinglpk_la_OBJECTS = glpapi01.lo glpapi02.lo glpapi03.lo \
     89am_libcoinglpk_la_OBJECTS = glpapi01.lo glpapi02.lo glpapi03.lo \
    7790        glpapi04.lo glpapi05.lo glpapi06.lo glpapi07.lo glpapi08.lo \
    7891        glpapi09.lo glpapi10.lo glpapi11.lo glpapi12.lo glpapi13.lo \
     
    97110        amd_postorder.lo amd_post_tree.lo amd_preprocess.lo \
    98111        amd_valid.lo colamd.lo
    99 libcoinglpk_la_OBJECTS = $(nodist_libcoinglpk_la_OBJECTS)
    100 @COIN_BUILD_GLPK_TRUE@am_libcoinglpk_la_rpath =
     112libcoinglpk_la_OBJECTS = $(am_libcoinglpk_la_OBJECTS)
    101113depcomp = $(SHELL) $(top_srcdir)/../../depcomp
    102114am__depfiles_maybe = depfiles
     
    109121LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    110122        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    111 SOURCES = $(nodist_libcoinglpk_la_SOURCES)
    112 DIST_SOURCES =
     123SOURCES = $(libcoinglpk_la_SOURCES)
     124DIST_SOURCES = $(libcoinglpk_la_SOURCES)
     125addlibsDATA_INSTALL = $(INSTALL_DATA)
     126pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     127DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
     128thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER)
     129HEADERS = $(thirdpartyinclude_HEADERS)
    113130ETAGS = etags
    114131CTAGS = ctags
     
    124141distuninstallcheck_listfiles = find . -type f -print
    125142distcleancheck_listfiles = find . -type f -print
     143ABSBUILDDIR = @ABSBUILDDIR@
    126144ACLOCAL = @ACLOCAL@
    127145ADDLIBS = @ADDLIBS@
     
    143161CDEFS = @CDEFS@
    144162CFLAGS = @CFLAGS@
    145 COIN_BUILD_GLPK_FALSE = @COIN_BUILD_GLPK_FALSE@
    146 COIN_BUILD_GLPK_TRUE = @COIN_BUILD_GLPK_TRUE@
    147 COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
    148 COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
     163COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     164COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    149165COIN_HAS_ZLIB_FALSE = @COIN_HAS_ZLIB_FALSE@
    150166COIN_HAS_ZLIB_TRUE = @COIN_HAS_ZLIB_TRUE@
     167COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    151168CPP = @CPP@
    152169CPPFLAGS = @CPPFLAGS@
     
    169186FFLAGS = @FFLAGS@
    170187GLPKDIR = @GLPKDIR@
    171 GLPKINCDIR = @GLPKINCDIR@
    172 GLPKLIB = @GLPKLIB@
    173 GLPKOBJDIR = @GLPKOBJDIR@
    174188HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    175189HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    191205MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    192206MAKEINFO = @MAKEINFO@
    193 MAKEOKFILE = @MAKEOKFILE@
    194207MPICC = @MPICC@
    195208OBJEXT = @OBJEXT@
     
    202215PACKAGE_VERSION = @PACKAGE_VERSION@
    203216PATH_SEPARATOR = @PATH_SEPARATOR@
     217PKG_CONFIG = @PKG_CONFIG@
    204218RANLIB = @RANLIB@
    205219RPATH_FLAGS = @RPATH_FLAGS@
     
    209223VERSION = @VERSION@
    210224VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
     225_SVN_REV = @_SVN_REV@
    211226abs_bin_dir = @abs_bin_dir@
    212227abs_include_dir = @abs_include_dir@
     
    221236ac_ct_STRIP = @ac_ct_STRIP@
    222237ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     238ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    223239am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    224240am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    238254datadir = @datadir@
    239255exec_prefix = @exec_prefix@
     256glpkmajorver = @glpkmajorver@
     257glpkminorver = @glpkminorver@
    240258have_autoconf = @have_autoconf@
    241259have_automake = @have_automake@
    242260have_svn = @have_svn@
     261have_svnversion = @have_svnversion@
    243262host = @host@
    244263host_alias = @host_alias@
     
    264283AUTOMAKE_OPTIONS = foreign
    265284EXTRA_DIST = get.GLPK INSTALL.Glpk glpk.patch $(am__append_1)
    266 @COIN_BUILD_GLPK_FALSE@noinst_LTLIBRARIES =
    267 @COIN_BUILD_GLPK_TRUE@noinst_LTLIBRARIES = libcoinglpk.la
    268 nodist_libcoinglpk_la_SOURCES = \
     285thirdpartylibdir = $(libdir)/coin/ThirdParty
     286thirdpartylib_LTLIBRARIES = libcoinglpk.la
     287libcoinglpk_la_SOURCES = \
    269288$(GLPKDIR)/src/glpapi01.c \
    270289$(GLPKDIR)/src/glpapi02.c \
     
    376395$(GLPKDIR)/src/colamd/colamd.c
    377396
    378 
    379 # CoinUtils and SYMPHONY include glpmpl.h, have HAVE_CONFIG_H defined,
    380 # and so Glpk attempts to include config.h.
    381 # Therefore, we put a simple config.h file into $(GLPKDIR)/include.
    382 # It's purpose is to include the config_glpk.h file that is generated
    383 # by configure.
    384 libcoinglpk_la_DEPENDENCIES = $(srcdir)/$(GLPKDIR)/include/config.h \
    385   $(srcdir)/$(GLPKDIR)/include/glpmpl.h \
    386   $(srcdir)/$(GLPKDIR)/include/glpavl.h \
    387   $(srcdir)/$(GLPKDIR)/include/glprng.h \
    388   $(srcdir)/$(GLPKDIR)/include/glpdmp.h \
    389   $(srcdir)/$(GLPKDIR)/include/glpenv.h \
    390   $(srcdir)/$(GLPKDIR)/include/glplib.h \
    391   $(srcdir)/$(GLPKDIR)/include/glpstd.h
    392 
    393397DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
    394398AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/$(GLPKDIR)/include` \
     
    399403
    400404libcoinglpk_la_LDFLAGS = $(LT_LDFLAGS)
     405thirdpartyincludedir = $(includedir)/coin/ThirdParty
     406thirdpartyinclude_HEADERS = $(GLPKDIR)/include/glpk.h
     407@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/ThirdParty/Glpk
     408@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = glpk_addlibs.txt
     409pkgconfiglibdir = $(libdir)/pkgconfig
     410pkgconfiglib_DATA = coinglpk.pc
    401411
    402412########################################################################
    403413#                         Maintainer Stuff                             #
    404414########################################################################
     415CLEANFILES = glpk_addlibs.txt
    405416
    406417# Files that are generated and should be cleaned with make distclean
    407418DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES)
    408419DocFiles = README AUTHORS LICENSE
    409 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     420DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    410421all: config_glpk.h
    411422        $(MAKE) $(AM_MAKEFLAGS) all-am
     
    463474distclean-hdr:
    464475        -rm -f config_glpk.h stamp-h1
    465 glpk_addlibs.txt: $(top_builddir)/config.status $(srcdir)/glpk_addlibs.txt.in
     476coinglpk.pc: $(top_builddir)/config.status $(srcdir)/coinglpk.pc.in
    466477        cd $(top_builddir) && $(SHELL) ./config.status $@
    467 
    468 clean-noinstLTLIBRARIES:
    469         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
    470         @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
     478coinglpk-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinglpk-uninstalled.pc.in
     479        cd $(top_builddir) && $(SHELL) ./config.status $@
     480install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES)
     481        @$(NORMAL_INSTALL)
     482        test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     483        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     484          if test -f $$p; then \
     485            f=$(am__strip_dir) \
     486            echo " $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     487            $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     488          else :; fi; \
     489        done
     490
     491uninstall-thirdpartylibLTLIBRARIES:
     492        @$(NORMAL_UNINSTALL)
     493        @set -x; list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     494          p=$(am__strip_dir) \
     495          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(thirdpartylibdir)/$$p'"; \
     496          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(thirdpartylibdir)/$$p"; \
     497        done
     498
     499clean-thirdpartylibLTLIBRARIES:
     500        -test -z "$(thirdpartylib_LTLIBRARIES)" || rm -f $(thirdpartylib_LTLIBRARIES)
     501        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
    471502          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
    472503          test "$$dir" != "$$p" || dir=.; \
     
    475506        done
    476507libcoinglpk.la: $(libcoinglpk_la_OBJECTS) $(libcoinglpk_la_DEPENDENCIES)
    477         $(LINK) $(am_libcoinglpk_la_rpath) $(libcoinglpk_la_LDFLAGS) $(libcoinglpk_la_OBJECTS) $(libcoinglpk_la_LIBADD) $(LIBS)
     508        $(LINK) -rpath $(thirdpartylibdir) $(libcoinglpk_la_LDFLAGS) $(libcoinglpk_la_OBJECTS) $(libcoinglpk_la_LIBADD) $(LIBS)
    478509
    479510mostlyclean-compile:
     
    13781409        -rm -f libtool
    13791410uninstall-info-am:
     1411install-addlibsDATA: $(addlibs_DATA)
     1412        @$(NORMAL_INSTALL)
     1413        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     1414        @list='$(addlibs_DATA)'; for p in $$list; do \
     1415          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     1416          f=$(am__strip_dir) \
     1417          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     1418          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     1419        done
     1420
     1421uninstall-addlibsDATA:
     1422        @$(NORMAL_UNINSTALL)
     1423        @list='$(addlibs_DATA)'; for p in $$list; do \
     1424          f=$(am__strip_dir) \
     1425          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     1426          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     1427        done
     1428install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     1429        @$(NORMAL_INSTALL)
     1430        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     1431        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     1432          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     1433          f=$(am__strip_dir) \
     1434          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     1435          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     1436        done
     1437
     1438uninstall-pkgconfiglibDATA:
     1439        @$(NORMAL_UNINSTALL)
     1440        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     1441          f=$(am__strip_dir) \
     1442          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     1443          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     1444        done
     1445install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS)
     1446        @$(NORMAL_INSTALL)
     1447        test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)"
     1448        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     1449          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     1450          f=$(am__strip_dir) \
     1451          echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     1452          $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     1453        done
     1454
     1455uninstall-thirdpartyincludeHEADERS:
     1456        @$(NORMAL_UNINSTALL)
     1457        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     1458          f=$(am__strip_dir) \
     1459          echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     1460          rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     1461        done
    13801462
    13811463ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    14301512        $(am__remove_distdir)
    14311513        mkdir $(distdir)
    1432         $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
     1514        $(mkdir_p) $(distdir)/$(GLPKDIR)/include $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
    14331515        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    14341516        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    15561638check-am: all-am
    15571639check: check-am
    1558 all-am: Makefile $(LTLIBRARIES) config_glpk.h
     1640all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) config_glpk.h
    15591641installdirs:
     1642        for dir in "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
     1643          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     1644        done
    15601645install: install-am
    15611646install-exec: install-exec-am
     
    15751660
    15761661clean-generic:
     1662        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    15771663
    15781664distclean-generic:
     
    15851671clean: clean-am
    15861672
    1587 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
     1673clean-am: clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
    15881674        mostlyclean-am
    15891675
     
    16051691info-am:
    16061692
    1607 install-data-am:
     1693install-data-am: install-addlibsDATA install-pkgconfiglibDATA \
     1694        install-thirdpartyincludeHEADERS \
     1695        install-thirdpartylibLTLIBRARIES
    16081696
    16091697install-exec-am:
     
    16351723ps-am:
    16361724
    1637 uninstall-am: uninstall-info-am
     1725uninstall-am: uninstall-addlibsDATA uninstall-info-am \
     1726        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     1727        uninstall-thirdpartylibLTLIBRARIES
    16381728
    16391729.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
    1640         clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \
    1641         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    1642         distcheck distclean distclean-compile distclean-generic \
    1643         distclean-hdr distclean-libtool distclean-tags distcleancheck \
    1644         distdir distuninstallcheck dvi dvi-am html html-am info \
    1645         info-am install install-am install-data install-data-am \
    1646         install-exec install-exec-am install-info install-info-am \
    1647         install-man install-strip installcheck installcheck-am \
     1730        clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
     1731        ctags dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \
     1732        dist-zip distcheck distclean distclean-compile \
     1733        distclean-generic distclean-hdr distclean-libtool \
     1734        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     1735        dvi-am html html-am info info-am install install-addlibsDATA \
     1736        install-am install-data install-data-am install-exec \
     1737        install-exec-am install-info install-info-am install-man \
     1738        install-pkgconfiglibDATA install-strip \
     1739        install-thirdpartyincludeHEADERS \
     1740        install-thirdpartylibLTLIBRARIES installcheck installcheck-am \
    16481741        installdirs maintainer-clean maintainer-clean-generic \
    16491742        mostlyclean mostlyclean-compile mostlyclean-generic \
    16501743        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
    1651         uninstall-am uninstall-info-am
    1652 
    1653 
    1654 $(srcdir)/$(GLPKDIR)/include/config.h : $(srcdir)/config.h
    1655         cp $(srcdir)/config.h $(srcdir)/$(GLPKDIR)/include/config.h
    1656 
    1657 $(srcdir)/$(GLPKDIR)/include/glpmpl.h : $(srcdir)/$(GLPKDIR)/src/glpmpl.h
    1658         cp $(srcdir)/$(GLPKDIR)/src/glpmpl.h $(srcdir)/$(GLPKDIR)/include/glpmpl.h
    1659 
    1660 $(srcdir)/$(GLPKDIR)/include/glpavl.h : $(srcdir)/$(GLPKDIR)/src/glpavl.h
    1661         cp $(srcdir)/$(GLPKDIR)/src/glpavl.h $(srcdir)/$(GLPKDIR)/include/glpavl.h
    1662 
    1663 $(srcdir)/$(GLPKDIR)/include/glprng.h : $(srcdir)/$(GLPKDIR)/src/glprng.h
    1664         cp $(srcdir)/$(GLPKDIR)/src/glprng.h $(srcdir)/$(GLPKDIR)/include/glprng.h
    1665 
    1666 $(srcdir)/$(GLPKDIR)/include/glpdmp.h : $(srcdir)/$(GLPKDIR)/src/glpdmp.h
    1667         cp $(srcdir)/$(GLPKDIR)/src/glpdmp.h $(srcdir)/$(GLPKDIR)/include/glpdmp.h
    1668 
    1669 $(srcdir)/$(GLPKDIR)/include/glpenv.h : $(srcdir)/$(GLPKDIR)/src/glpenv.h
    1670         cp $(srcdir)/$(GLPKDIR)/src/glpenv.h $(srcdir)/$(GLPKDIR)/include/glpenv.h
    1671 
    1672 $(srcdir)/$(GLPKDIR)/include/glplib.h : $(srcdir)/$(GLPKDIR)/src/glplib.h
    1673         cp $(srcdir)/$(GLPKDIR)/src/glplib.h $(srcdir)/$(GLPKDIR)/include/glplib.h
    1674 
    1675 $(srcdir)/$(GLPKDIR)/include/glpstd.h : $(srcdir)/$(GLPKDIR)/src/glpstd.h
    1676         cp $(srcdir)/$(GLPKDIR)/src/glpstd.h $(srcdir)/$(GLPKDIR)/include/glpstd.h
     1744        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     1745        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     1746        uninstall-thirdpartylibLTLIBRARIES
     1747
     1748
     1749@COIN_HAS_PKGCONFIG_TRUE@glpk_addlibs.txt : coinglpk.pc
     1750@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinglpk > glpk_addlibs.txt
    16771751
    16781752install-doc: $(DocFiles)
  • ThirdParty/Glpk/trunk/config_glpk.h.in

    r1411 r1548  
    66/* Define to the debug verbosity level (0 is no output) */
    77#undef COIN_GLPK_VERBOSITY
    8 
    9 /* Define to 1 if Glpk package is available */
    10 #undef COIN_HAS_GLPK
    118
    129/* Define to 1 if zlib is available */
     
    106103#undef VERSION
    107104
     105/* SVN revision number of project */
     106#undef _SVN_REV
     107
     108/* Version number of project */
     109#undef _VERSION
     110
    108111/* Define to 1 if windows dll support is available */
    109112#undef __WOE__
  • ThirdParty/Glpk/trunk/configure

    r1471 r1548  
    1010#
    1111#
    12 # Copyright 2007-2009 Stefan Vigerske and others.
     12# Copyright 2007-2010 Stefan Vigerske and others.
    1313# All Rights Reserved.
    1414# This file is part of the open source package Coin which is distributed
     
    434434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
    435435
    436 ac_unique_file="Makefile.am"
     436ac_unique_file="glpk/include/glpk.h"
    437437ac_default_prefix=`pwd`
    438438# Factoring default headers for most tests.
     
    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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE 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 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GLPKOBJDIR COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR 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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion _SVN_REV 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 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    950950ac_cv_env_MPICC_set=${MPICC+set}
    951951ac_cv_env_MPICC_value=$MPICC
     952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     953ac_env_PKG_CONFIG_value=$PKG_CONFIG
     954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    952956ac_env_CPP_set=${CPP+set}
    953957ac_env_CPP_value=$CPP
     
    10621066                          icl/link). Default when mentioned: mingw. Default
    10631067                          when not mentioned: disabled.
     1068  --enable-pkg-config     use pkg-config if available (default is yes)
    10641069  --enable-static[=PKGS]
    10651070                          build static libraries [default=no]
     
    10731078                          optimize for fast installation [default=yes]
    10741079  --disable-libtool-lock  avoid locking (might break parallel builds)
    1075   --enable-glpk-libcheck use disable-glpk-libcheck to skip the
    1076                           link check at configuration time
    10771080  --enable-gnu-packages   compile with GNU packages (disabled by default)
    10781081  --enable-odbc           enable MathProg ODBC support [default=auto]
     
    10841087  --with-glpk-verbosity specify the debug verbosity level for project Glpk
    10851088  --with-glpk-checklevel specify the sanity check level for project Glpk
     1089  --with-coin-instdir     prefix of installation directory for precompiled
     1090                          COIN packages
    10861091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    10871092  --with-pic              try to use only PIC/non-PIC objects [default=use
     
    10891094  --with-tags[=TAGS]
    10901095                          include additional configurations [automatic]
    1091   --with-glpk-incdir specify the header file directory for library Glpk
    1092   --with-glpk-lib specify the flags used to link with the library Glpk
    10931096
    10941097Some influential environment variables:
     
    11041107              headers in a nonstandard directory <include dir>
    11051108  MPICC       C MPI Compiler
     1109  PKG_CONFIG  path to pkg-config utility
    11061110  CPP         C preprocessor
    11071111  CXX         C++ compiler command
     
    12181222
    12191223
    1220 Copyright 2007-2009 Stefan Vigerske and others.
     1224Copyright 2007-2010 Stefan Vigerske and others.
    12211225All Rights Reserved.
    12221226This file is part of the open source package Coin which is distributed
     
    16041608
    16051609
     1610#Set the project's version number
     1611if test "x" != x; then
     1612
     1613cat >>confdefs.h <<_ACEOF
     1614#define _VERSION "$PACKAGE_VERSION"
     1615_ACEOF
     1616
     1617fi
     1618
     1619#Set the project's SVN revision number
     1620# Extract the first word of "svnversion", so it can be a program name with args.
     1621set dummy svnversion; ac_word=$2
     1622echo "$as_me:$LINENO: checking for $ac_word" >&5
     1623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1624if test "${ac_cv_prog_have_svnversion+set}" = set; then
     1625  echo $ECHO_N "(cached) $ECHO_C" >&6
     1626else
     1627  if test -n "$have_svnversion"; then
     1628  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
     1629else
     1630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1631for as_dir in $PATH
     1632do
     1633  IFS=$as_save_IFS
     1634  test -z "$as_dir" && as_dir=.
     1635  for ac_exec_ext in '' $ac_executable_extensions; do
     1636  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1637    ac_cv_prog_have_svnversion="yes"
     1638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1639    break 2
     1640  fi
     1641done
     1642done
     1643
     1644  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
     1645fi
     1646fi
     1647have_svnversion=$ac_cv_prog_have_svnversion
     1648if test -n "$have_svnversion"; then
     1649  echo "$as_me:$LINENO: result: $have_svnversion" >&5
     1650echo "${ECHO_T}$have_svnversion" >&6
     1651else
     1652  echo "$as_me:$LINENO: result: no" >&5
     1653echo "${ECHO_T}no" >&6
     1654fi
     1655
     1656if test "x$have_svnversion" = xyes && test "x" != x; then
     1657
     1658  _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion`
     1659  if test $_SVN_REV != exported; then
     1660
     1661cat >>confdefs.h <<_ACEOF
     1662#define _SVN_REV "$_SVN_REV"
     1663_ACEOF
     1664
     1665  fi
     1666fi
     1667
    16061668# We set the following variable so that we know later in AC_COIN_FINALIZE
    16071669# that we are in a project main directory
    16081670coin_projectdir=yes
     1671
     1672# Check if a library version is set for libtool
     1673
    16091674
    16101675
     
    30963161
    30973162
     3163# Check if pkg-config is available (to setup addlibs file)
     3164
     3165
     3166# Check whether --enable-pkg-config or --disable-pkg-config was given.
     3167if test "${enable_pkg_config+set}" = set; then
     3168  enableval="$enable_pkg_config"
     3169  use_pkgconfig="$enableval"
     3170else
     3171  use_pkgconfig=yes
     3172fi;
     3173
     3174if test $use_pkgconfig = yes ; then
     3175  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     3176    if test -n "$ac_tool_prefix"; then
     3177  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     3178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     3179echo "$as_me:$LINENO: checking for $ac_word" >&5
     3180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3181if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     3182  echo $ECHO_N "(cached) $ECHO_C" >&6
     3183else
     3184  case $PKG_CONFIG in
     3185  [\\/]* | ?:[\\/]*)
     3186  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     3187  ;;
     3188  *)
     3189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3190for as_dir in $PATH
     3191do
     3192  IFS=$as_save_IFS
     3193  test -z "$as_dir" && as_dir=.
     3194  for ac_exec_ext in '' $ac_executable_extensions; do
     3195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3196    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     3197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3198    break 2
     3199  fi
     3200done
     3201done
     3202
     3203  ;;
     3204esac
     3205fi
     3206PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     3207
     3208if test -n "$PKG_CONFIG"; then
     3209  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     3210echo "${ECHO_T}$PKG_CONFIG" >&6
     3211else
     3212  echo "$as_me:$LINENO: result: no" >&5
     3213echo "${ECHO_T}no" >&6
     3214fi
     3215
     3216fi
     3217if test -z "$ac_cv_path_PKG_CONFIG"; then
     3218  ac_pt_PKG_CONFIG=$PKG_CONFIG
     3219  # Extract the first word of "pkg-config", so it can be a program name with args.
     3220set dummy pkg-config; ac_word=$2
     3221echo "$as_me:$LINENO: checking for $ac_word" >&5
     3222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3223if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     3224  echo $ECHO_N "(cached) $ECHO_C" >&6
     3225else
     3226  case $ac_pt_PKG_CONFIG in
     3227  [\\/]* | ?:[\\/]*)
     3228  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     3229  ;;
     3230  *)
     3231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3232for as_dir in $PATH
     3233do
     3234  IFS=$as_save_IFS
     3235  test -z "$as_dir" && as_dir=.
     3236  for ac_exec_ext in '' $ac_executable_extensions; do
     3237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3238    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     3239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3240    break 2
     3241  fi
     3242done
     3243done
     3244
     3245  ;;
     3246esac
     3247fi
     3248ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     3249
     3250if test -n "$ac_pt_PKG_CONFIG"; then
     3251  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     3252echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     3253else
     3254  echo "$as_me:$LINENO: result: no" >&5
     3255echo "${ECHO_T}no" >&6
     3256fi
     3257
     3258  PKG_CONFIG=$ac_pt_PKG_CONFIG
     3259else
     3260  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     3261fi
     3262
     3263  fi
     3264  if test -n "$PKG_CONFIG"; then
     3265    _pkg_min_version=0.9.0
     3266    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     3267echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     3268    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     3269      echo "$as_me:$LINENO: result: yes" >&5
     3270echo "${ECHO_T}yes" >&6
     3271    else
     3272      echo "$as_me:$LINENO: result: no" >&5
     3273echo "${ECHO_T}no" >&6
     3274      PKG_CONFIG=""
     3275    fi
     3276  fi
     3277
     3278  # check if pkg-config supports the short-errors flag
     3279  if test -n "$PKG_CONFIG" && \
     3280    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     3281    pkg_short_errors=" --short-errors "
     3282  else
     3283    pkg_short_errors=""
     3284  fi
     3285fi
     3286
     3287
     3288
     3289if test -n "$PKG_CONFIG"; then
     3290  COIN_HAS_PKGCONFIG_TRUE=
     3291  COIN_HAS_PKGCONFIG_FALSE='#'
     3292else
     3293  COIN_HAS_PKGCONFIG_TRUE='#'
     3294  COIN_HAS_PKGCONFIG_FALSE=
     3295fi
     3296
     3297
     3298
     3299# assemble search path for pkg-config, if we are in a project setup
     3300if test x$coin_projectdir = xyes ; then
     3301  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     3302
     3303  # 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
     3304  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     3305  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     3306  if test -d "${prefix}"; then
     3307    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3308  fi
     3309
     3310
     3311# Check whether --with-coin-instdir or --without-coin-instdir was given.
     3312if test "${with_coin_instdir+set}" = set; then
     3313  withval="$with_coin_instdir"
     3314  if test -d "$withval"; then : ; else
     3315       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     3316echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     3317   { (exit 1); exit 1; }; }
     3318     fi
     3319     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3320
     3321fi;
     3322
     3323  # in a classic setup, we want to find uninstalled projects
     3324  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     3325  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     3326  # 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)
     3327  if test -e ../coin_subdirs.txt ; then
     3328    for i in `cat ../coin_subdirs.txt` ; do
     3329      if test -d ../$i ; then
     3330        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     3331      fi
     3332    done
     3333  fi
     3334
     3335  if test -e ../../coin_subdirs.txt ; then
     3336    for i in `cat ../../coin_subdirs.txt` ; do
     3337      if test -d ../../$i ; then
     3338        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     3339      fi
     3340    done
     3341  fi
     3342
     3343
     3344fi
     3345
     3346
     3347
    30983348# Initialize automake
    30993349{
     
    47294979*-*-irix6*)
    47304980  # Find out which ABI we are using.
    4731   echo '#line 4731 "configure"' > conftest.$ac_ext
     4981  echo '#line 4981 "configure"' > conftest.$ac_ext
    47324982  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    47334983  (eval $ac_compile) 2>&5
     
    63286578
    63296579# Provide some information about the compiler.
    6330 echo "$as_me:6330:" \
     6580echo "$as_me:6580:" \
    63316581     "checking for Fortran 77 compiler version" >&5
    63326582ac_compiler=`set X $ac_compile; echo $2`
     
    73957645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    73967646   -e 's:$: $lt_compiler_flag:'`
    7397    (eval echo "\"\$as_me:7397: $lt_compile\"" >&5)
     7647   (eval echo "\"\$as_me:7647: $lt_compile\"" >&5)
    73987648   (eval "$lt_compile" 2>conftest.err)
    73997649   ac_status=$?
    74007650   cat conftest.err >&5
    7401    echo "$as_me:7401: \$? = $ac_status" >&5
     7651   echo "$as_me:7651: \$? = $ac_status" >&5
    74027652   if (exit $ac_status) && test -s "$ac_outfile"; then
    74037653     # The compiler can only warn and ignore the option if not recognized
     
    76637913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76647914   -e 's:$: $lt_compiler_flag:'`
    7665    (eval echo "\"\$as_me:7665: $lt_compile\"" >&5)
     7915   (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
    76667916   (eval "$lt_compile" 2>conftest.err)
    76677917   ac_status=$?
    76687918   cat conftest.err >&5
    7669    echo "$as_me:7669: \$? = $ac_status" >&5
     7919   echo "$as_me:7919: \$? = $ac_status" >&5
    76707920   if (exit $ac_status) && test -s "$ac_outfile"; then
    76717921     # The compiler can only warn and ignore the option if not recognized
     
    77678017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77688018   -e 's:$: $lt_compiler_flag:'`
    7769    (eval echo "\"\$as_me:7769: $lt_compile\"" >&5)
     8019   (eval echo "\"\$as_me:8019: $lt_compile\"" >&5)
    77708020   (eval "$lt_compile" 2>out/conftest.err)
    77718021   ac_status=$?
    77728022   cat out/conftest.err >&5
    7773    echo "$as_me:7773: \$? = $ac_status" >&5
     8023   echo "$as_me:8023: \$? = $ac_status" >&5
    77748024   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77758025   then
     
    1011210362  lt_status=$lt_dlunknown
    1011310363  cat > conftest.$ac_ext <<EOF
    10114 #line 10114 "configure"
     10364#line 10364 "configure"
    1011510365#include "confdefs.h"
    1011610366
     
    1021210462  lt_status=$lt_dlunknown
    1021310463  cat > conftest.$ac_ext <<EOF
    10214 #line 10214 "configure"
     10464#line 10464 "configure"
    1021510465#include "confdefs.h"
    1021610466
     
    1255612806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1255712807   -e 's:$: $lt_compiler_flag:'`
    12558    (eval echo "\"\$as_me:12558: $lt_compile\"" >&5)
     12808   (eval echo "\"\$as_me:12808: $lt_compile\"" >&5)
    1255912809   (eval "$lt_compile" 2>conftest.err)
    1256012810   ac_status=$?
    1256112811   cat conftest.err >&5
    12562    echo "$as_me:12562: \$? = $ac_status" >&5
     12812   echo "$as_me:12812: \$? = $ac_status" >&5
    1256312813   if (exit $ac_status) && test -s "$ac_outfile"; then
    1256412814     # The compiler can only warn and ignore the option if not recognized
     
    1266012910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1266112911   -e 's:$: $lt_compiler_flag:'`
    12662    (eval echo "\"\$as_me:12662: $lt_compile\"" >&5)
     12912   (eval echo "\"\$as_me:12912: $lt_compile\"" >&5)
    1266312913   (eval "$lt_compile" 2>out/conftest.err)
    1266412914   ac_status=$?
    1266512915   cat out/conftest.err >&5
    12666    echo "$as_me:12666: \$? = $ac_status" >&5
     12916   echo "$as_me:12916: \$? = $ac_status" >&5
    1266712917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1266812918   then
     
    1423014480   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1423114481   -e 's:$: $lt_compiler_flag:'`
    14232    (eval echo "\"\$as_me:14232: $lt_compile\"" >&5)
     14482   (eval echo "\"\$as_me:14482: $lt_compile\"" >&5)
    1423314483   (eval "$lt_compile" 2>conftest.err)
    1423414484   ac_status=$?
    1423514485   cat conftest.err >&5
    14236    echo "$as_me:14236: \$? = $ac_status" >&5
     14486   echo "$as_me:14486: \$? = $ac_status" >&5
    1423714487   if (exit $ac_status) && test -s "$ac_outfile"; then
    1423814488     # The compiler can only warn and ignore the option if not recognized
     
    1433414584   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1433514585   -e 's:$: $lt_compiler_flag:'`
    14336    (eval echo "\"\$as_me:14336: $lt_compile\"" >&5)
     14586   (eval echo "\"\$as_me:14586: $lt_compile\"" >&5)
    1433714587   (eval "$lt_compile" 2>out/conftest.err)
    1433814588   ac_status=$?
    1433914589   cat out/conftest.err >&5
    14340    echo "$as_me:14340: \$? = $ac_status" >&5
     14590   echo "$as_me:14590: \$? = $ac_status" >&5
    1434114591   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1434214592   then
     
    1654116791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1654216792   -e 's:$: $lt_compiler_flag:'`
    16543    (eval echo "\"\$as_me:16543: $lt_compile\"" >&5)
     16793   (eval echo "\"\$as_me:16793: $lt_compile\"" >&5)
    1654416794   (eval "$lt_compile" 2>conftest.err)
    1654516795   ac_status=$?
    1654616796   cat conftest.err >&5
    16547    echo "$as_me:16547: \$? = $ac_status" >&5
     16797   echo "$as_me:16797: \$? = $ac_status" >&5
    1654816798   if (exit $ac_status) && test -s "$ac_outfile"; then
    1654916799     # The compiler can only warn and ignore the option if not recognized
     
    1680917059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1681017060   -e 's:$: $lt_compiler_flag:'`
    16811    (eval echo "\"\$as_me:16811: $lt_compile\"" >&5)
     17061   (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
    1681217062   (eval "$lt_compile" 2>conftest.err)
    1681317063   ac_status=$?
    1681417064   cat conftest.err >&5
    16815    echo "$as_me:16815: \$? = $ac_status" >&5
     17065   echo "$as_me:17065: \$? = $ac_status" >&5
    1681617066   if (exit $ac_status) && test -s "$ac_outfile"; then
    1681717067     # The compiler can only warn and ignore the option if not recognized
     
    1691317163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1691417164   -e 's:$: $lt_compiler_flag:'`
    16915    (eval echo "\"\$as_me:16915: $lt_compile\"" >&5)
     17165   (eval echo "\"\$as_me:17165: $lt_compile\"" >&5)
    1691617166   (eval "$lt_compile" 2>out/conftest.err)
    1691717167   ac_status=$?
    1691817168   cat out/conftest.err >&5
    16919    echo "$as_me:16919: \$? = $ac_status" >&5
     17169   echo "$as_me:17169: \$? = $ac_status" >&5
    1692017170   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1692117171   then
     
    1979820048LT_LDFLAGS=
    1979920049
     20050# Check if we want to set the library version
     20051echo "$as_me:$LINENO: checking if library version is set" >&5
     20052echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
     20053if test x"$coin_libversion" != x; then
     20054  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
     20055  echo "$as_me:$LINENO: result: $coin_libversion" >&5
     20056echo "${ECHO_T}$coin_libversion" >&6
     20057else
     20058  echo "$as_me:$LINENO: result: no" >&5
     20059echo "${ECHO_T}no" >&6
     20060fi
     20061
     20062
    1980020063
    1980120064#END
     
    1980320066
    1980420067###########################################################################
    19805 #                            COIN_HAS_GLPK                                #
     20068#                            check GLPK version                           #
    1980620069###########################################################################
    1980720070
    19808 # This macro checks for a library containing the GLPK library.  It
    19809 # checks if the user has provided an argument for the GLPK library,
    19810 # and if not, it checks whether the GLPK ThirdParty/GLPK directory has
    19811 # been configured.  It adds to ADDLIBS any flags required to link with
    19812 # an externally provided GLPK.  It defines the makefile conditional
    19813 # and preprocessor macro COIN_HAS_GLPK, if GLPK is available, and it
    19814 # defines the makefile conditional COIN_BUILD_GLPK, if GLPK is
    19815 # compiled within COIN.
    19816 
    19817 ## Check if GLPK is already provided by user
    19818 
    19819 if test "$PACKAGE_NAME" = ThirdPartyGlpk; then
    19820   coin_glpkobjdir=../Glpk
    19821 else
    19822   coin_glpkobjdir=../ThirdParty/Glpk
    19823 fi
    19824 coin_glpksrcdir=$abs_source_dir/$coin_glpkobjdir
    19825 
    19826 use_thirdpartyglpk=no
    19827 
    19828 # Check for the requested component. If the user specified an external glpk
    19829 # library don't force a ThirdParty build, let the error propagate.
    19830 
    19831 
    19832   echo "$as_me:$LINENO: checking if user provides library for Glpk" >&5
    19833 echo $ECHO_N "checking if user provides library for Glpk... $ECHO_C" >&6
    19834 
    19835 # Check for header file directory
    19836 
    19837 
    19838 # Check whether --with-glpk-incdir or --without-glpk-incdir was given.
    19839 if test "${with_glpk_incdir+set}" = set; then
    19840   withval="$with_glpk_incdir"
    19841   GLPKINCDIR=`cd $withval; pwd`
    19842 fi;
    19843 
    19844 # Check for library directory
    19845 
    19846 
    19847 # Check whether --with-glpk-lib or --without-glpk-lib was given.
    19848 if test "${with_glpk_lib+set}" = set; then
    19849   withval="$with_glpk_lib"
    19850   GLPKLIB=$withval
    19851 fi;
    19852 
    19853 # Switch to disable library check if requested
    19854 
    19855   # Check whether --enable-glpk-libcheck or --disable-glpk-libcheck was given.
    19856 if test "${enable_glpk_libcheck+set}" = set; then
    19857   enableval="$enable_glpk_libcheck"
    19858   glpk_libcheck=$enableval
    19859 else
    19860   glpk_libcheck=yes
    19861 fi;
    19862 
    19863 # At this point, if we're going to use the library, both LBRYINCDIR and
    19864 # LBRYLIB must be defined and not empty.
    19865 
    19866   if test x"$GLPKINCDIR" != x || test x"$GLPKLIB" != x; then
    19867     if test x"$GLPKINCDIR" = x || test x"$GLPKLIB" = x; then
    19868       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&5
    19869 echo "$as_me: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&2;}
    19870    { (exit 1); exit 1; }; }
    19871     fi
    19872     coin_has_glpk=true
    19873     echo "$as_me:$LINENO: result: yes" >&5
    19874 echo "${ECHO_T}yes" >&6
    19875   else
    19876     coin_has_glpk=false
    19877     echo "$as_me:$LINENO: result: no" >&5
    19878 echo "${ECHO_T}no" >&6
    19879   fi
    19880 
    19881 # If we have instructions for use, consider header and link checks.
    19882 
    19883   if test $coin_has_glpk = true; then
    19884 
    19885 # If argument 3 (file) is given, check for the file. Typically this will be a
    19886 # header file, but that's not assumed.
    19887 
    19888     if test -r $GLPKINCDIR/glpk.h; then
    19889 
    19890   :
    19891 else
    19892   { { echo "$as_me:$LINENO: error: Cannot find file glpk.h in $GLPKINCDIR" >&5
    19893 echo "$as_me: error: Cannot find file glpk.h in $GLPKINCDIR" >&2;}
    19894    { (exit 1); exit 1; }; }
    19895   :
    19896 fi
    19897 
    19898 
    19899 # Now see if we can link the function. There are arguments for and against
    19900 # assuming argument 3 is a header file declaring the function. A correct
    19901 # function declaration is the main argument in favour. Having to cope with
    19902 # possible dependencies or other oddities are the main arguments against.
    19903 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    19904 # Obviously, this has limits.
    19905 
    19906     if test x"$glpk_libcheck" != xno; then
    19907            coin_save_LIBS="$LIBS"
    19908            LIBS="$GLPKLIB $ADDLIBS"
    19909            coin_GLPK_link=no
    19910            ac_ext=c
    19911 ac_cpp='$CPP $CPPFLAGS'
    19912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19915 
    19916            for fnm in _glp_lpx_simplex glp_lpx_simplex ; do
    19917              echo "$as_me:$LINENO: checking whether symbol $fnm is available with GLPK" >&5
    19918 echo $ECHO_N "checking whether symbol $fnm is available with GLPK... $ECHO_C" >&6
    19919              cat >conftest.$ac_ext <<_ACEOF
    19920 /* confdefs.h.  */
    19921 _ACEOF
    19922 cat confdefs.h >>conftest.$ac_ext
    19923 cat >>conftest.$ac_ext <<_ACEOF
    19924 /* end confdefs.h.  */
    19925 
    19926 int
    19927 main ()
    19928 {
    19929 $fnm()
    19930   ;
    19931   return 0;
    19932 }
    19933 _ACEOF
    19934 rm -f conftest.$ac_objext conftest$ac_exeext
    19935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19936   (eval $ac_link) 2>conftest.er1
    19937   ac_status=$?
    19938   grep -v '^ *+' conftest.er1 >conftest.err
    19939   rm -f conftest.er1
    19940   cat conftest.err >&5
    19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19942   (exit $ac_status); } &&
    19943          { ac_try='test -z "$ac_c_werror_flag"
    19944                          || test ! -s conftest.err'
    19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19946   (eval $ac_try) 2>&5
    19947   ac_status=$?
    19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19949   (exit $ac_status); }; } &&
    19950          { ac_try='test -s conftest$ac_exeext'
    19951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19952   (eval $ac_try) 2>&5
    19953   ac_status=$?
    19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19955   (exit $ac_status); }; }; then
    19956   echo "$as_me:$LINENO: result: yes" >&5
    19957 echo "${ECHO_T}yes" >&6
    19958                   coin_GLPK_link=yes
    19959                   break
    19960 else
    19961   echo "$as_me: failed program was:" >&5
    19962 sed 's/^/| /' conftest.$ac_ext >&5
    19963 
    19964 echo "$as_me:$LINENO: result: no" >&5
    19965 echo "${ECHO_T}no" >&6
    19966 fi
    19967 rm -f conftest.err conftest.$ac_objext \
    19968       conftest$ac_exeext conftest.$ac_ext
    19969            done
    19970            ac_ext=c
    19971 ac_cpp='$CPP $CPPFLAGS'
    19972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19975 
    19976            if test x"$coin_GLPK_link" = xyes ; then
    19977              LIBS="$coin_save_LIBS"
    19978            else
    19979              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) _glp_lpx_simplex glp_lpx_simplex with GLPK" >&5
    19980 echo "$as_me: error: Cannot find symbol(s) _glp_lpx_simplex glp_lpx_simplex with GLPK" >&2;}
    19981    { (exit 1); exit 1; }; }
    19982            fi
    19983          fi
    19984 
    19985 
    19986 # If we make it this far, we've verified the file and linked the function. Add
    19987 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    19988 # COIN_HAS_LBRY.
    19989 
    19990     ADDLIBS="$GLPKLIB $ADDLIBS"
    19991 
    19992 cat >>confdefs.h <<\_ACEOF
    19993 #define COIN_HAS_GLPK 1
    19994 _ACEOF
    19995 
    19996   fi
    19997 
    19998 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    19999 # automake conditional. These actions must occur unconditionally.
    20000 
    20001 
    20002 
    20003 
    20004 
    20005 if test $coin_has_glpk = true; then
    20006   COIN_HAS_GLPK_TRUE=
    20007   COIN_HAS_GLPK_FALSE='#'
    20008 else
    20009   COIN_HAS_GLPK_TRUE='#'
    20010   COIN_HAS_GLPK_FALSE=
    20011 fi
    20012 
    20013 
    20014  if test x"$coin_has_glpk" = xfalse && test x"$GLPKLIB" = x ; then
    20015    use_thirdpartyglpk=try
    20016  fi
    20017 
    20018 
    20019 # If the user has supplied an external library, use it. Otherwise, consider
    20020 # a build in ThirdParty/Glpk. If we build, assume we get both glpk and gmpl.
    20021 
    20022 if test x"$use_thirdpartyglpk" = xtry ; then
    20023   MAKEOKFILE=.MakeOk
    20024   # Check if the Glpk's ThirdParty project has been configured
    20025   if test "$PACKAGE_NAME" != ThirdPartyGlpk; then
    20026     if test -r $coin_glpkobjdir/.MakeOk; then
    20027       use_thirdpartyglpk=build
    20028     else
    20029       use_thirdpartyglpk=no
    20030     fi
    20031   else
    20032     use_thirdpartyglpk=build
    20033   fi
    20034 
    20035 # If we're building, set the library and include directory variables, create a
    20036 # preprocessor symbol, define a variable that says we're using glpk/gmpl, and
    20037 # another to indicate a link check is a bad idea (hard to do before the library
    20038 # exists).
    20039 
    20040   if test x"$use_thirdpartyglpk" = xbuild ; then
    20041     GLPKINCDIR="$coin_glpksrcdir/glpk/include"
    20042 
    20043 
    20044 cat >>confdefs.h <<\_ACEOF
    20045 #define COIN_HAS_GLPK 1
    20046 _ACEOF
    20047 
    20048     coin_has_glpk=true
    20049     glpk_libcheck=no
    20050     GLPKOBJDIR=`cd $coin_glpkobjdir; pwd`
    20051 
    20052     { echo "$as_me:$LINENO: Using Glpk in ThirdParty/Glpk" >&5
    20053 echo "$as_me: Using Glpk in ThirdParty/Glpk" >&6;}
    20054   fi
    20055 fi
    20056 
    20057 # Define the necessary automake conditionals.
    20058 
    20059 
    20060 
    20061 if test x"$coin_has_glpk" = xtrue; then
    20062   COIN_HAS_GLPK_TRUE=
    20063   COIN_HAS_GLPK_FALSE='#'
    20064 else
    20065   COIN_HAS_GLPK_TRUE='#'
    20066   COIN_HAS_GLPK_FALSE=
    20067 fi
    20068 
    20069 
    20070 
    20071 if test x"$use_thirdpartyglpk" = xbuild; then
    20072   COIN_BUILD_GLPK_TRUE=
    20073   COIN_BUILD_GLPK_FALSE='#'
    20074 else
    20075   COIN_BUILD_GLPK_TRUE='#'
    20076   COIN_BUILD_GLPK_FALSE=
    20077 fi
    20078 
    20079 
    20080 
    20081 
    20082 rm -f $MAKEOKFILE
    20083 if test x"$use_thirdpartyglpk" = xbuild ; then
    20084   touch $MAKEOKFILE
    20085   echo "$as_me:$LINENO: checking GLPK version" >&5
     20071echo "$as_me:$LINENO: checking GLPK version" >&5
    2008620072echo $ECHO_N "checking GLPK version... $ECHO_C" >&6
    20087   majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' ${GLPKINCDIR}/glpk.h`
    20088   minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' ${GLPKINCDIR}/glpk.h`
    20089   echo "$as_me:$LINENO: result: ${majorver}.${minorver}" >&5
    20090 echo "${ECHO_T}${majorver}.${minorver}" >&6
    20091   if test x$majorver != x4 || test x$minorver != x43 ; then
    20092     { { echo "$as_me:$LINENO: error: \"Incorrect GLPK version. This build system is made for GLPK 4.43. Please update by rerunning get.GLPK\"" >&5
     20073glpkmajorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h`
     20074glpkminorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h`
     20075echo "$as_me:$LINENO: result: ${glpkmajorver}.${glpkminorver}" >&5
     20076echo "${ECHO_T}${glpkmajorver}.${glpkminorver}" >&6
     20077if test x$glpkmajorver != x4 || test x$glpkminorver != x43 ; then
     20078  { { echo "$as_me:$LINENO: error: \"Incorrect GLPK version. This build system is made for GLPK 4.43. Please update by rerunning get.GLPK\"" >&5
    2009320079echo "$as_me: error: \"Incorrect GLPK version. This build system is made for GLPK 4.43. Please update by rerunning get.GLPK\"" >&2;}
    2009420080   { (exit 1); exit 1; }; }
    20095   fi
    20096 else
    20097   if test x$coin_has_glpk = xtrue ; then
    20098     { echo "$as_me:$LINENO: The Glpk sources don't need to be compiled" >&5
    20099 echo "$as_me: The Glpk sources don't need to be compiled" >&6;}
    20100   else
    20101     { echo "$as_me:$LINENO: WARNING: Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?" >&5
    20102 echo "$as_me: WARNING: Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?" >&2;}
    20103   fi
    20104   MAKEOKFILE=
    20105 fi
     20081fi
     20082
    2010620083
    2010720084
     
    2098220959
    2098320960if test "$enable_dl" = "no"; then
    20984 #if test x"" = x; then
     20961  #if test x"" = x; then
    2098520962#  hdr="#include <ltdl.h>"
    2098620963#else
     
    2139221369  enableval="$enable_odbc"
    2139321370  case $enableval in
    21394            yes | unix)
     21371     yes | unix)
    2139521372       #if test x"" = x; then
    2139621373#  hdr="#include <sql.h>"
     
    2155921536       enable_odbc="no"
    2156021537     ;;
    21561            *)
    21562              { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-odbc" >&5
     21538     *)
     21539       { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-odbc" >&5
    2156321540echo "$as_me: error: invalid value '$enableval' for --enable-odbc" >&2;}
    2156421541   { (exit 1); exit 1; }; }
    21565            ;;
     21542     ;;
    2156621543   esac
    2156721544else
     
    2173221709  enableval="$enable_mysql"
    2173321710  case $enableval in
    21734            yes)
     21711     yes)
    2173521712       #if test x"" = x; then
    2173621713#  hdr="#include <mysql.h mysql/mysql.h>"
     
    2190021877       enable_mysql="no"
    2190121878     ;;
    21902            *)
    21903              { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-mysql" >&5
     21879     *)
     21880       { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-mysql" >&5
    2190421881echo "$as_me: error: invalid value '$enableval' for --enable-mysql" >&2;}
    2190521882   { (exit 1); exit 1; }; }
    21906            ;;
     21883     ;;
    2190721884   esac
    2190821885else
     
    2217122148
    2217222149
    22173                     ac_config_files="$ac_config_files Makefile glpk_addlibs.txt"
     22150                              ac_config_files="$ac_config_files Makefile coinglpk.pc coinglpk-uninstalled.pc"
    2217422151
    2217522152          ac_config_headers="$ac_config_headers config_glpk.h"
     
    2223322210  fi
    2223422211
     22212  # need to come before AC_OUTPUT
     22213  if test x$coin_projectdir != xyes; then
     22214    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     22215    echo $coin_subdirs > coin_subdirs.txt
     22216  else
     22217    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     22218    ABSBUILDDIR="`pwd`"
     22219
     22220  fi
     22221
    2223522222  cat >confcache <<\_ACEOF
    2223622223# This file is a shell script that caches the results of configure
     
    2233122318   { (exit 1); exit 1; }; }
    2233222319fi
     22320if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     22321  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     22322Usually this means the macro was only invoked conditionally." >&5
     22323echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     22324Usually this means the macro was only invoked conditionally." >&2;}
     22325   { (exit 1); exit 1; }; }
     22326fi
    2233322327if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    2233422328  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
     
    2236322357Usually this means the macro was only invoked conditionally." >&5
    2236422358echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
    22365 Usually this means the macro was only invoked conditionally." >&2;}
    22366    { (exit 1); exit 1; }; }
    22367 fi
    22368 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
    22369   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22370 Usually this means the macro was only invoked conditionally." >&5
    22371 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22372 Usually this means the macro was only invoked conditionally." >&2;}
    22373    { (exit 1); exit 1; }; }
    22374 fi
    22375 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
    22376   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22377 Usually this means the macro was only invoked conditionally." >&5
    22378 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22379 Usually this means the macro was only invoked conditionally." >&2;}
    22380    { (exit 1); exit 1; }; }
    22381 fi
    22382 if test -z "${COIN_BUILD_GLPK_TRUE}" && test -z "${COIN_BUILD_GLPK_FALSE}"; then
    22383   { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_GLPK\" was never defined.
    22384 Usually this means the macro was only invoked conditionally." >&5
    22385 echo "$as_me: error: conditional \"COIN_BUILD_GLPK\" was never defined.
    2238622359Usually this means the macro was only invoked conditionally." >&2;}
    2238722360   { (exit 1); exit 1; }; }
     
    2283922812  # Handling of arguments.
    2284022813  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    22841   "glpk_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES glpk_addlibs.txt" ;;
     22814  "coinglpk.pc" ) CONFIG_FILES="$CONFIG_FILES coinglpk.pc" ;;
     22815  "coinglpk-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinglpk-uninstalled.pc" ;;
    2284222816  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2284322817  "config_glpk.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_glpk.h" ;;
     
    2293122905s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
    2293222906s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
     22907s,@have_svnversion@,$have_svnversion,;t t
     22908s,@_SVN_REV@,$_SVN_REV,;t t
    2293322909s,@build@,$build,;t t
    2293422910s,@build_cpu@,$build_cpu,;t t
     
    2294822924s,@OBJEXT@,$OBJEXT,;t t
    2294922925s,@MPICC@,$MPICC,;t t
     22926s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     22927s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     22928s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     22929s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     22930s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2295022931s,@EGREP@,$EGREP,;t t
    2295122932s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     
    2302123002s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2302223003s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    23023 s,@GLPKINCDIR@,$GLPKINCDIR,;t t
    23024 s,@GLPKLIB@,$GLPKLIB,;t t
    23025 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
    23026 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
    23027 s,@GLPKOBJDIR@,$GLPKOBJDIR,;t t
    23028 s,@COIN_BUILD_GLPK_TRUE@,$COIN_BUILD_GLPK_TRUE,;t t
    23029 s,@COIN_BUILD_GLPK_FALSE@,$COIN_BUILD_GLPK_FALSE,;t t
    23030 s,@MAKEOKFILE@,$MAKEOKFILE,;t t
     23004s,@glpkmajorver@,$glpkmajorver,;t t
     23005s,@glpkminorver@,$glpkminorver,;t t
    2303123006s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t
    2303223007s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t
     
    2303423009s,@LIBEXT@,$LIBEXT,;t t
    2303523010s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     23011s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2303623012s,@LIBOBJS@,$LIBOBJS,;t t
    2303723013s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • ThirdParty/Glpk/trunk/configure.ac

    r1471 r1548  
    1 # Copyright (C) 2007-2009 Stefan Vigerske and others.
     1# Copyright (C) 2007-2010 Stefan Vigerske and others.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    1414
    1515AC_COPYRIGHT([
    16 Copyright 2007-2009 Stefan Vigerske and others.
     16Copyright 2007-2010 Stefan Vigerske and others.
    1717All Rights Reserved.
    1818This file is part of the open source package Coin which is distributed
     
    2121# List one file in the package so that the configure script can test
    2222# whether the package is actually there
    23 AC_CONFIG_SRCDIR(Makefile.am)
     23AC_CONFIG_SRCDIR(glpk/include/glpk.h)
    2424
    2525# Where should everything be installed by default?  Here, we want it
     
    4848AC_COIN_PROG_CC
    4949
     50# Check if pkg-config is available (to setup addlibs file)
     51AC_COIN_HAS_PKGCONFIG
     52
    5053# Initialize automake
    5154AC_COIN_INIT_AUTO_TOOLS
    5255
    5356###########################################################################
    54 #                            COIN_HAS_GLPK                                #
    55 ###########################################################################
    56 
    57 # This macro checks for a library containing the GLPK library.  It
    58 # checks if the user has provided an argument for the GLPK library,
    59 # and if not, it checks whether the GLPK ThirdParty/GLPK directory has
    60 # been configured.  It adds to ADDLIBS any flags required to link with
    61 # an externally provided GLPK.  It defines the makefile conditional
    62 # and preprocessor macro COIN_HAS_GLPK, if GLPK is available, and it
    63 # defines the makefile conditional COIN_BUILD_GLPK, if GLPK is
    64 # compiled within COIN.
    65 
    66 ## Check if GLPK is already provided by user
    67 AC_COIN_HAS_GLPK(Glpk)
    68 
    69 rm -f $MAKEOKFILE
    70 if test x"$use_thirdpartyglpk" = xbuild ; then
    71   touch $MAKEOKFILE
    72   AC_MSG_CHECKING([GLPK version])
    73   majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' ${GLPKINCDIR}/glpk.h`
    74   minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' ${GLPKINCDIR}/glpk.h`
    75   AC_MSG_RESULT([${majorver}.${minorver}])
    76   if test x$majorver != x4 || test x$minorver != x43 ; then
    77     AC_MSG_ERROR(["Incorrect GLPK version. This build system is made for GLPK 4.43. Please update by rerunning get.GLPK"])
    78   fi
    79 else
    80   if test x$coin_has_glpk = xtrue ; then
    81     AC_MSG_NOTICE([The Glpk sources don't need to be compiled])
    82   else
    83     AC_MSG_WARN([Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?])
    84   fi
    85   MAKEOKFILE=
    86 fi
    87 AC_SUBST(MAKEOKFILE)
     57#                            check GLPK version                           #
     58###########################################################################
     59
     60AC_MSG_CHECKING([GLPK version])
     61glpkmajorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h`
     62glpkminorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h`
     63AC_MSG_RESULT([${glpkmajorver}.${glpkminorver}])
     64if test x$glpkmajorver != x4 || test x$glpkminorver != x43 ; then
     65  AC_MSG_ERROR(["Incorrect GLPK version. This build system is made for GLPK 4.43. Please update by rerunning get.GLPK"])
     66fi
     67AC_SUBST(glpkmajorver)
     68AC_SUBST(glpkminorver)
    8869
    8970###########################################################################
     
    132113
    133114if test "$enable_dl" = "no"; then
    134 AC_COIN_CHECK_HEADER([ltdl.h],[enable_dl=yes])
     115  AC_COIN_CHECK_HEADER([ltdl.h],[enable_dl=yes])
    135116  if test "$enable_dl" = "yes"; then
    136117    #if ltdl.h is there, check also if libltdl is there; if so, set corresponding define for GLPK
     
    150131
    151132AC_ARG_ENABLE(odbc,
    152         AC_HELP_STRING([--enable-odbc],[enable MathProg ODBC support [[default=auto]]]),
    153         [case $enableval in
    154            yes | unix)
     133  AC_HELP_STRING([--enable-odbc],[enable MathProg ODBC support [[default=auto]]]),
     134  [case $enableval in
     135     yes | unix)
    155136       AC_COIN_CHECK_HEADER([sql.h],,[AC_MSG_ERROR(["need sql.h to enable ODBC support"])])
    156137       enable_odbc="$enableval"
     
    159140       enable_odbc="no"
    160141     ;;
    161            *)
    162              AC_MSG_ERROR([invalid value '$enableval' for --enable-odbc])
    163            ;;
     142     *)
     143       AC_MSG_ERROR([invalid value '$enableval' for --enable-odbc])
     144     ;;
    164145   esac],
    165         [AC_COIN_CHECK_HEADER([sql.h],[enable_odbc=yes],[enable_odbc=no])]
     146  [AC_COIN_CHECK_HEADER([sql.h],[enable_odbc=yes],[enable_odbc=no])]
    166147)
    167148
    168149AC_ARG_ENABLE(mysql,
    169         AC_HELP_STRING([--enable-mysql],[enable MathProg MySQL support [[default=auto]]]),
    170         [case $enableval in
    171            yes)
     150  AC_HELP_STRING([--enable-mysql],[enable MathProg MySQL support [[default=auto]]]),
     151  [case $enableval in
     152     yes)
    172153       AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],,[AC_MSG_ERROR(["need mysql.h to enable MySQL support"])])
    173154       enable_mysql="$enableval"
     
    176157       enable_mysql="no"
    177158     ;;
    178            *)
    179              AC_MSG_ERROR([invalid value '$enableval' for --enable-mysql])
    180            ;;
     159     *)
     160       AC_MSG_ERROR([invalid value '$enableval' for --enable-mysql])
     161     ;;
    181162   esac],
    182         [AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no])]
     163  [AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no])]
    183164)
    184165
    185166AC_LANG_POP(C)
    186        
     167
    187168if test "$enable_dl" = "yes" && ( test "$enable_odbc" = "yes" || test "$enable_odbc" = "unix"); then
    188169  AC_MSG_CHECKING([checking name of ODBC library])
     
    267248AC_SUBST(GLPKDIR)
    268249
    269 AC_CONFIG_FILES([Makefile glpk_addlibs.txt])
     250AC_CONFIG_FILES([Makefile coinglpk.pc coinglpk-uninstalled.pc])
    270251AC_CONFIG_HEADER([config_glpk.h])
    271252
Note: See TracChangeset for help on using the changeset viewer.