Changeset 1548 for ThirdParty/ASL/trunk


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

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

Location:
ThirdParty/ASL/trunk
Files:
2 added
4 edited

Legend:

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

    r1411 r1548  
    1717libampl   = $(AMPLSOLVER_A)
    1818
    19 if SKIPMAKE
    20   alltargets =
    21 else
    22   alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    23 endif
     19alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    2420
    2521all-local: $(alltargets)
     
    3531stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
    3632
    37 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     33thirdpartyincludedir = $(includedir)/coin/ThirdParty
     34thirdpartyinclude_HEADERS = \
     35  solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
     36  solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
     37  stdio1.h arith.h
     38
     39thirdpartylibdir = $(libdir)/coin/ThirdParty
     40thirdpartylib_DATA = $(libampl)
     41
     42if COIN_HAS_PKGCONFIG
     43addlibsdir = $(datadir)/coin/doc/ThirdParty/ASL
     44addlibs_DATA = asl_addlibs.txt
     45
     46asl_addlibs.txt : coinasl.pc
     47        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinasl > asl_addlibs.txt
     48endif
     49
     50pkgconfiglibdir = $(libdir)/pkgconfig
     51pkgconfiglib_DATA = coinasl.pc
     52
     53CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) asl_addlibs.txt
    3854
    3955########################################################################
  • ThirdParty/ASL/trunk/Makefile.in

    r1411 r1548  
    2828#                    Documentation installation                        #
    2929########################################################################
     30
     31
    3032srcdir = @srcdir@
    3133top_srcdir = @top_srcdir@
     
    5557        $(srcdir)/../../install-sh $(srcdir)/../../ltmain.sh \
    5658        $(srcdir)/../../missing $(srcdir)/Makefile.am \
    57         $(srcdir)/Makefile.in $(srcdir)/compile_MS_ASL.in \
    58         $(srcdir)/compile_Unix_ASL.in $(top_srcdir)/configure
     59        $(srcdir)/Makefile.in $(srcdir)/coinasl-uninstalled.pc.in \
     60        $(srcdir)/coinasl.pc.in $(srcdir)/compile_MS_ASL.in \
     61        $(srcdir)/compile_Unix_ASL.in $(thirdpartyinclude_HEADERS) \
     62        $(top_srcdir)/configure
    5963@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    6064@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    6872 configure.lineno configure.status.lineno
    6973mkinstalldirs = $(install_sh) -d
    70 CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL
     74CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL coinasl.pc \
     75        coinasl-uninstalled.pc
    7176SOURCES =
    7277DIST_SOURCES =
     78am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     79am__vpath_adj = case $$p in \
     80    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     81    *) f=$$p;; \
     82  esac;
     83am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     84am__installdirs = "$(DESTDIR)$(addlibsdir)" \
     85        "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartylibdir)" \
     86        "$(DESTDIR)$(thirdpartyincludedir)"
     87addlibsDATA_INSTALL = $(INSTALL_DATA)
     88pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     89thirdpartylibDATA_INSTALL = $(INSTALL_DATA)
     90DATA = $(addlibs_DATA) $(pkgconfiglib_DATA) $(thirdpartylib_DATA)
     91thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER)
     92HEADERS = $(thirdpartyinclude_HEADERS)
     93ETAGS = etags
     94CTAGS = ctags
    7395DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    7496distdir = $(PACKAGE)-$(VERSION)
     
    82104distuninstallcheck_listfiles = find . -type f -print
    83105distcleancheck_listfiles = find . -type f -print
     106ABSBUILDDIR = @ABSBUILDDIR@
     107ABSPATH_AMPLSOLVER_INSTALLED = @ABSPATH_AMPLSOLVER_INSTALLED@
     108ABSPATH_AMPLSOLVER_UNINSTALLED = @ABSPATH_AMPLSOLVER_UNINSTALLED@
    84109ACLOCAL = @ACLOCAL@
    85110ADDLIBS = @ADDLIBS@
     
    92117AMTAR = @AMTAR@
    93118AR = @AR@
    94 ASLLIB = @ASLLIB@
    95119ASLMAKEFLAGS = @ASLMAKEFLAGS@
    96 ASL_CPPFLAGS = @ASL_CPPFLAGS@
    97120AUTOCONF = @AUTOCONF@
    98121AUTOHEADER = @AUTOHEADER@
     
    105128CDEFS = @CDEFS@
    106129CFLAGS = @CFLAGS@
    107 COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    108 COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
     130COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     131COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
     132COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    109133CPP = @CPP@
    110134CPPFLAGS = @CPPFLAGS@
     
    145169MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    146170MAKEINFO = @MAKEINFO@
    147 MAKEOKFILE = @MAKEOKFILE@
    148171MPICC = @MPICC@
    149172MSVC_COMPILE_FALSE = @MSVC_COMPILE_FALSE@
     
    158181PACKAGE_VERSION = @PACKAGE_VERSION@
    159182PATH_SEPARATOR = @PATH_SEPARATOR@
     183PKG_CONFIG = @PKG_CONFIG@
    160184RANLIB = @RANLIB@
    161185RPATH_FLAGS = @RPATH_FLAGS@
    162186SET_MAKE = @SET_MAKE@
    163187SHELL = @SHELL@
    164 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
    165 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    166188STRIP = @STRIP@
    167189VERSION = @VERSION@
    168190VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
     191_SVN_REV = @_SVN_REV@
    169192abs_bin_dir = @abs_bin_dir@
    170193abs_include_dir = @abs_include_dir@
     
    179202ac_ct_STRIP = @ac_ct_STRIP@
    180203ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     204ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    181205am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    182206am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    199223have_automake = @have_automake@
    200224have_svn = @have_svn@
     225have_svnversion = @have_svnversion@
    201226host = @host@
    202227host_alias = @host_alias@
     
    228253compdir = compdir
    229254libampl = $(AMPLSOLVER_A)
    230 @SKIPMAKE_FALSE@alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    231 @SKIPMAKE_TRUE@alltargets =
    232 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     255alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     256thirdpartyincludedir = $(includedir)/coin/ThirdParty
     257thirdpartyinclude_HEADERS = \
     258  solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
     259  solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
     260  stdio1.h arith.h
     261
     262thirdpartylibdir = $(libdir)/coin/ThirdParty
     263thirdpartylib_DATA = $(libampl)
     264@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/ThirdParty/ASL
     265@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = asl_addlibs.txt
     266pkgconfiglibdir = $(libdir)/pkgconfig
     267pkgconfiglib_DATA = coinasl.pc
     268CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) asl_addlibs.txt
    233269
    234270########################################################################
     
    239275DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES)
    240276DocFiles = README AUTHORS LICENSE
    241 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     277DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    242278all: all-am
    243279
     
    280316compile_Unix_ASL: $(top_builddir)/config.status $(srcdir)/compile_Unix_ASL.in
    281317        cd $(top_builddir) && $(SHELL) ./config.status $@
     318coinasl.pc: $(top_builddir)/config.status $(srcdir)/coinasl.pc.in
     319        cd $(top_builddir) && $(SHELL) ./config.status $@
     320coinasl-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinasl-uninstalled.pc.in
     321        cd $(top_builddir) && $(SHELL) ./config.status $@
    282322
    283323mostlyclean-libtool:
     
    290330        -rm -f libtool
    291331uninstall-info-am:
     332install-addlibsDATA: $(addlibs_DATA)
     333        @$(NORMAL_INSTALL)
     334        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     335        @list='$(addlibs_DATA)'; for p in $$list; do \
     336          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     337          f=$(am__strip_dir) \
     338          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     339          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     340        done
     341
     342uninstall-addlibsDATA:
     343        @$(NORMAL_UNINSTALL)
     344        @list='$(addlibs_DATA)'; for p in $$list; do \
     345          f=$(am__strip_dir) \
     346          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     347          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     348        done
     349install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     350        @$(NORMAL_INSTALL)
     351        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     352        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     353          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     354          f=$(am__strip_dir) \
     355          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     356          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     357        done
     358
     359uninstall-pkgconfiglibDATA:
     360        @$(NORMAL_UNINSTALL)
     361        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     362          f=$(am__strip_dir) \
     363          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     364          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     365        done
     366install-thirdpartylibDATA: $(thirdpartylib_DATA)
     367        @$(NORMAL_INSTALL)
     368        test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     369        @list='$(thirdpartylib_DATA)'; for p in $$list; do \
     370          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     371          f=$(am__strip_dir) \
     372          echo " $(thirdpartylibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     373          $(thirdpartylibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     374        done
     375
     376uninstall-thirdpartylibDATA:
     377        @$(NORMAL_UNINSTALL)
     378        @list='$(thirdpartylib_DATA)'; for p in $$list; do \
     379          f=$(am__strip_dir) \
     380          echo " rm -f '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     381          rm -f "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     382        done
     383install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS)
     384        @$(NORMAL_INSTALL)
     385        test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)"
     386        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     387          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     388          f=$(am__strip_dir) \
     389          echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     390          $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     391        done
     392
     393uninstall-thirdpartyincludeHEADERS:
     394        @$(NORMAL_UNINSTALL)
     395        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     396          f=$(am__strip_dir) \
     397          echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     398          rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     399        done
     400
     401ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     402        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
     403        unique=`for i in $$list; do \
     404            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     405          done | \
     406          $(AWK) '    { files[$$0] = 1; } \
     407               END { for (i in files) print i; }'`; \
     408        mkid -fID $$unique
    292409tags: TAGS
    293 TAGS:
    294 
     410
     411TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     412                $(TAGS_FILES) $(LISP)
     413        tags=; \
     414        here=`pwd`; \
     415        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
     416        unique=`for i in $$list; do \
     417            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     418          done | \
     419          $(AWK) '    { files[$$0] = 1; } \
     420               END { for (i in files) print i; }'`; \
     421        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     422          test -n "$$unique" || unique=$$empty_fix; \
     423          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     424            $$tags $$unique; \
     425        fi
    295426ctags: CTAGS
    296 CTAGS:
    297 
     427CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     428                $(TAGS_FILES) $(LISP)
     429        tags=; \
     430        here=`pwd`; \
     431        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
     432        unique=`for i in $$list; do \
     433            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     434          done | \
     435          $(AWK) '    { files[$$0] = 1; } \
     436               END { for (i in files) print i; }'`; \
     437        test -z "$(CTAGS_ARGS)$$tags$$unique" \
     438          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
     439             $$tags $$unique
     440
     441GTAGS:
     442        here=`$(am__cd) $(top_builddir) && pwd` \
     443          && cd $(top_srcdir) \
     444          && gtags -i $(GTAGS_ARGS) $$here
     445
     446distclean-tags:
     447        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
    298448
    299449distdir: $(DISTFILES)
    300450        $(am__remove_distdir)
    301451        mkdir $(distdir)
    302         $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
     452        $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools $(distdir)/solvers
    303453        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    304454        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    426576check-am: all-am
    427577check: check-am
    428 all-am: Makefile all-local
     578all-am: Makefile $(DATA) $(HEADERS) all-local
    429579installdirs:
     580        for dir in "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
     581          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     582        done
    430583install: install-am
    431584install-exec: install-exec-am
     
    461614        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    462615        -rm -f Makefile
    463 distclean-am: clean-am distclean-generic distclean-libtool
     616distclean-am: clean-am distclean-generic distclean-libtool \
     617        distclean-tags
    464618
    465619dvi: dvi-am
     
    473627info-am:
    474628
    475 install-data-am:
     629install-data-am: install-addlibsDATA install-pkgconfiglibDATA \
     630        install-thirdpartyincludeHEADERS install-thirdpartylibDATA
    476631
    477632install-exec-am:
     
    501656ps-am:
    502657
    503 uninstall-am: uninstall-info-am
    504 
    505 .PHONY: all all-am all-local am--refresh check check-am clean \
    506         clean-generic clean-libtool dist dist-all dist-bzip2 dist-gzip \
    507         dist-shar dist-tarZ dist-zip distcheck distclean \
    508         distclean-generic distclean-libtool distcleancheck distdir \
    509         distuninstallcheck dvi dvi-am html html-am info info-am \
    510         install install-am install-data install-data-am install-exec \
    511         install-exec-am install-info install-info-am install-man \
    512         install-strip installcheck installcheck-am installdirs \
    513         maintainer-clean maintainer-clean-generic mostlyclean \
    514         mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
    515         uninstall uninstall-am uninstall-info-am
     658uninstall-am: uninstall-addlibsDATA uninstall-info-am \
     659        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     660        uninstall-thirdpartylibDATA
     661
     662.PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \
     663        clean clean-generic clean-libtool ctags dist dist-all \
     664        dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \
     665        distclean distclean-generic distclean-libtool distclean-tags \
     666        distcleancheck distdir distuninstallcheck dvi dvi-am html \
     667        html-am info info-am install install-addlibsDATA install-am \
     668        install-data install-data-am install-exec install-exec-am \
     669        install-info install-info-am install-man \
     670        install-pkgconfiglibDATA install-strip \
     671        install-thirdpartyincludeHEADERS install-thirdpartylibDATA \
     672        installcheck installcheck-am installdirs maintainer-clean \
     673        maintainer-clean-generic mostlyclean mostlyclean-generic \
     674        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     675        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     676        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     677        uninstall-thirdpartylibDATA
    516678
    517679
     
    524686
    525687stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
     688
     689@COIN_HAS_PKGCONFIG_TRUE@asl_addlibs.txt : coinasl.pc
     690@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinasl > asl_addlibs.txt
    526691
    527692install-doc: $(DocFiles)
  • ThirdParty/ASL/trunk/configure

    r1411 r1548  
    1010#
    1111#
    12 # Copyright 2006 International Business Machines and others.
     12# Copyright 2006, 2007, 2009 International Business Machines and others.
    1313# All Rights Reserved.
    1414# This file is part of the open source package Coin which is distributed
     
    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 EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_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 have_svnversion _SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH AMPLSOLVER_A ABSPATH_AMPLSOLVER_INSTALLED ABSPATH_AMPLSOLVER_UNINSTALLED ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    974974ac_cv_env_FFLAGS_set=${FFLAGS+set}
    975975ac_cv_env_FFLAGS_value=$FFLAGS
     976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     977ac_env_PKG_CONFIG_value=$PKG_CONFIG
     978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    976980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
    977981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
     
    10771081                          optimize for fast installation [default=yes]
    10781082  --disable-libtool-lock  avoid locking (might break parallel builds)
     1083  --enable-pkg-config     use pkg-config if available (default is yes)
    10791084
    10801085Optional Packages:
     
    10881093  --with-tags[=TAGS]
    10891094                          include additional configurations [automatic]
    1090   --with-asldir           specify path to AMPL solver directory (or BUILD for
    1091                           compilation, or "no" for disabling AMPL)
     1095  --with-coin-instdir     prefix of installation directory for precompiled
     1096                          COIN packages
    10921097
    10931098Some influential environment variables:
     
    11091114  F77         Fortran 77 compiler command
    11101115  FFLAGS      Fortran 77 compiler flags
     1116  PKG_CONFIG  path to pkg-config utility
    11111117  ASLMAKEFLAGS
    11121118              Compilation flags necessary for compiling the AMPL solver
     
    12201226
    12211227
    1222 Copyright 2006 International Business Machines and others.
     1228Copyright 2006, 2007, 2009 International Business Machines and others.
    12231229All Rights Reserved.
    12241230This file is part of the open source package Coin which is distributed
     
    16691675fi
    16701676
     1677
     1678#Set the project's version number
     1679if test "x" != x; then
     1680
     1681cat >>confdefs.h <<_ACEOF
     1682#define _VERSION "$PACKAGE_VERSION"
     1683_ACEOF
     1684
     1685fi
     1686
     1687#Set the project's SVN revision number
     1688# Extract the first word of "svnversion", so it can be a program name with args.
     1689set dummy svnversion; ac_word=$2
     1690echo "$as_me:$LINENO: checking for $ac_word" >&5
     1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1692if test "${ac_cv_prog_have_svnversion+set}" = set; then
     1693  echo $ECHO_N "(cached) $ECHO_C" >&6
     1694else
     1695  if test -n "$have_svnversion"; then
     1696  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
     1697else
     1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1699for as_dir in $PATH
     1700do
     1701  IFS=$as_save_IFS
     1702  test -z "$as_dir" && as_dir=.
     1703  for ac_exec_ext in '' $ac_executable_extensions; do
     1704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1705    ac_cv_prog_have_svnversion="yes"
     1706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1707    break 2
     1708  fi
     1709done
     1710done
     1711
     1712  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
     1713fi
     1714fi
     1715have_svnversion=$ac_cv_prog_have_svnversion
     1716if test -n "$have_svnversion"; then
     1717  echo "$as_me:$LINENO: result: $have_svnversion" >&5
     1718echo "${ECHO_T}$have_svnversion" >&6
     1719else
     1720  echo "$as_me:$LINENO: result: no" >&5
     1721echo "${ECHO_T}no" >&6
     1722fi
     1723
     1724if test "x$have_svnversion" = xyes && test "x" != x; then
     1725
     1726  _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion`
     1727  if test $_SVN_REV != exported; then
     1728
     1729cat >>confdefs.h <<_ACEOF
     1730#define _SVN_REV "$_SVN_REV"
     1731_ACEOF
     1732
     1733  fi
     1734fi
    16711735
    16721736# We set the following variable so that we know later in AC_COIN_FINALIZE
     
    47374801*-*-irix6*)
    47384802  # Find out which ABI we are using.
    4739   echo '#line 4739 "configure"' > conftest.$ac_ext
     4803  echo '#line 4803 "configure"' > conftest.$ac_ext
    47404804  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    47414805  (eval $ac_compile) 2>&5
     
    63366400
    63376401# Provide some information about the compiler.
    6338 echo "$as_me:6338:" \
     6402echo "$as_me:6402:" \
    63396403     "checking for Fortran 77 compiler version" >&5
    63406404ac_compiler=`set X $ac_compile; echo $2`
     
    74037467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    74047468   -e 's:$: $lt_compiler_flag:'`
    7405    (eval echo "\"\$as_me:7405: $lt_compile\"" >&5)
     7469   (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
    74067470   (eval "$lt_compile" 2>conftest.err)
    74077471   ac_status=$?
    74087472   cat conftest.err >&5
    7409    echo "$as_me:7409: \$? = $ac_status" >&5
     7473   echo "$as_me:7473: \$? = $ac_status" >&5
    74107474   if (exit $ac_status) && test -s "$ac_outfile"; then
    74117475     # The compiler can only warn and ignore the option if not recognized
     
    76717735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76727736   -e 's:$: $lt_compiler_flag:'`
    7673    (eval echo "\"\$as_me:7673: $lt_compile\"" >&5)
     7737   (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
    76747738   (eval "$lt_compile" 2>conftest.err)
    76757739   ac_status=$?
    76767740   cat conftest.err >&5
    7677    echo "$as_me:7677: \$? = $ac_status" >&5
     7741   echo "$as_me:7741: \$? = $ac_status" >&5
    76787742   if (exit $ac_status) && test -s "$ac_outfile"; then
    76797743     # The compiler can only warn and ignore the option if not recognized
     
    77757839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77767840   -e 's:$: $lt_compiler_flag:'`
    7777    (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
     7841   (eval echo "\"\$as_me:7841: $lt_compile\"" >&5)
    77787842   (eval "$lt_compile" 2>out/conftest.err)
    77797843   ac_status=$?
    77807844   cat out/conftest.err >&5
    7781    echo "$as_me:7781: \$? = $ac_status" >&5
     7845   echo "$as_me:7845: \$? = $ac_status" >&5
    77827846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77837847   then
     
    1012010184  lt_status=$lt_dlunknown
    1012110185  cat > conftest.$ac_ext <<EOF
    10122 #line 10122 "configure"
     10186#line 10186 "configure"
    1012310187#include "confdefs.h"
    1012410188
     
    1022010284  lt_status=$lt_dlunknown
    1022110285  cat > conftest.$ac_ext <<EOF
    10222 #line 10222 "configure"
     10286#line 10286 "configure"
    1022310287#include "confdefs.h"
    1022410288
     
    1256412628   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1256512629   -e 's:$: $lt_compiler_flag:'`
    12566    (eval echo "\"\$as_me:12566: $lt_compile\"" >&5)
     12630   (eval echo "\"\$as_me:12630: $lt_compile\"" >&5)
    1256712631   (eval "$lt_compile" 2>conftest.err)
    1256812632   ac_status=$?
    1256912633   cat conftest.err >&5
    12570    echo "$as_me:12570: \$? = $ac_status" >&5
     12634   echo "$as_me:12634: \$? = $ac_status" >&5
    1257112635   if (exit $ac_status) && test -s "$ac_outfile"; then
    1257212636     # The compiler can only warn and ignore the option if not recognized
     
    1266812732   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1266912733   -e 's:$: $lt_compiler_flag:'`
    12670    (eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
     12734   (eval echo "\"\$as_me:12734: $lt_compile\"" >&5)
    1267112735   (eval "$lt_compile" 2>out/conftest.err)
    1267212736   ac_status=$?
    1267312737   cat out/conftest.err >&5
    12674    echo "$as_me:12674: \$? = $ac_status" >&5
     12738   echo "$as_me:12738: \$? = $ac_status" >&5
    1267512739   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1267612740   then
     
    1423814302   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1423914303   -e 's:$: $lt_compiler_flag:'`
    14240    (eval echo "\"\$as_me:14240: $lt_compile\"" >&5)
     14304   (eval echo "\"\$as_me:14304: $lt_compile\"" >&5)
    1424114305   (eval "$lt_compile" 2>conftest.err)
    1424214306   ac_status=$?
    1424314307   cat conftest.err >&5
    14244    echo "$as_me:14244: \$? = $ac_status" >&5
     14308   echo "$as_me:14308: \$? = $ac_status" >&5
    1424514309   if (exit $ac_status) && test -s "$ac_outfile"; then
    1424614310     # The compiler can only warn and ignore the option if not recognized
     
    1434214406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1434314407   -e 's:$: $lt_compiler_flag:'`
    14344    (eval echo "\"\$as_me:14344: $lt_compile\"" >&5)
     14408   (eval echo "\"\$as_me:14408: $lt_compile\"" >&5)
    1434514409   (eval "$lt_compile" 2>out/conftest.err)
    1434614410   ac_status=$?
    1434714411   cat out/conftest.err >&5
    14348    echo "$as_me:14348: \$? = $ac_status" >&5
     14412   echo "$as_me:14412: \$? = $ac_status" >&5
    1434914413   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1435014414   then
     
    1654916613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1655016614   -e 's:$: $lt_compiler_flag:'`
    16551    (eval echo "\"\$as_me:16551: $lt_compile\"" >&5)
     16615   (eval echo "\"\$as_me:16615: $lt_compile\"" >&5)
    1655216616   (eval "$lt_compile" 2>conftest.err)
    1655316617   ac_status=$?
    1655416618   cat conftest.err >&5
    16555    echo "$as_me:16555: \$? = $ac_status" >&5
     16619   echo "$as_me:16619: \$? = $ac_status" >&5
    1655616620   if (exit $ac_status) && test -s "$ac_outfile"; then
    1655716621     # The compiler can only warn and ignore the option if not recognized
     
    1681716881   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1681816882   -e 's:$: $lt_compiler_flag:'`
    16819    (eval echo "\"\$as_me:16819: $lt_compile\"" >&5)
     16883   (eval echo "\"\$as_me:16883: $lt_compile\"" >&5)
    1682016884   (eval "$lt_compile" 2>conftest.err)
    1682116885   ac_status=$?
    1682216886   cat conftest.err >&5
    16823    echo "$as_me:16823: \$? = $ac_status" >&5
     16887   echo "$as_me:16887: \$? = $ac_status" >&5
    1682416888   if (exit $ac_status) && test -s "$ac_outfile"; then
    1682516889     # The compiler can only warn and ignore the option if not recognized
     
    1692116985   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1692216986   -e 's:$: $lt_compiler_flag:'`
    16923    (eval echo "\"\$as_me:16923: $lt_compile\"" >&5)
     16987   (eval echo "\"\$as_me:16987: $lt_compile\"" >&5)
    1692416988   (eval "$lt_compile" 2>out/conftest.err)
    1692516989   ac_status=$?
    1692616990   cat out/conftest.err >&5
    16927    echo "$as_me:16927: \$? = $ac_status" >&5
     16991   echo "$as_me:16991: \$? = $ac_status" >&5
    1692816992   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1692916993   then
     
    1982319887}
    1982419888
    19825 # See what we're actually going to do for ASL. This will define ampllib.
    19826 coin_aslobjdir=../ThirdParty/ASL
    19827 coin_aslsrcdir=$srcdir/$coin_aslobjdir
     19889# Check if pkg-config is available (to setup addlibs file)
     19890
     19891
     19892# Check whether --enable-pkg-config or --disable-pkg-config was given.
     19893if test "${enable_pkg_config+set}" = set; then
     19894  enableval="$enable_pkg_config"
     19895  use_pkgconfig="$enableval"
     19896else
     19897  use_pkgconfig=yes
     19898fi;
     19899
     19900if test $use_pkgconfig = yes ; then
     19901  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     19902    if test -n "$ac_tool_prefix"; then
     19903  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     19904set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     19905echo "$as_me:$LINENO: checking for $ac_word" >&5
     19906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     19907if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     19908  echo $ECHO_N "(cached) $ECHO_C" >&6
     19909else
     19910  case $PKG_CONFIG in
     19911  [\\/]* | ?:[\\/]*)
     19912  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     19913  ;;
     19914  *)
     19915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     19916for as_dir in $PATH
     19917do
     19918  IFS=$as_save_IFS
     19919  test -z "$as_dir" && as_dir=.
     19920  for ac_exec_ext in '' $ac_executable_extensions; do
     19921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     19922    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     19923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     19924    break 2
     19925  fi
     19926done
     19927done
     19928
     19929  ;;
     19930esac
     19931fi
     19932PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     19933
     19934if test -n "$PKG_CONFIG"; then
     19935  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     19936echo "${ECHO_T}$PKG_CONFIG" >&6
     19937else
     19938  echo "$as_me:$LINENO: result: no" >&5
     19939echo "${ECHO_T}no" >&6
     19940fi
     19941
     19942fi
     19943if test -z "$ac_cv_path_PKG_CONFIG"; then
     19944  ac_pt_PKG_CONFIG=$PKG_CONFIG
     19945  # Extract the first word of "pkg-config", so it can be a program name with args.
     19946set dummy pkg-config; ac_word=$2
     19947echo "$as_me:$LINENO: checking for $ac_word" >&5
     19948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     19949if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     19950  echo $ECHO_N "(cached) $ECHO_C" >&6
     19951else
     19952  case $ac_pt_PKG_CONFIG in
     19953  [\\/]* | ?:[\\/]*)
     19954  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     19955  ;;
     19956  *)
     19957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     19958for as_dir in $PATH
     19959do
     19960  IFS=$as_save_IFS
     19961  test -z "$as_dir" && as_dir=.
     19962  for ac_exec_ext in '' $ac_executable_extensions; do
     19963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     19964    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     19965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     19966    break 2
     19967  fi
     19968done
     19969done
     19970
     19971  ;;
     19972esac
     19973fi
     19974ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     19975
     19976if test -n "$ac_pt_PKG_CONFIG"; then
     19977  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     19978echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     19979else
     19980  echo "$as_me:$LINENO: result: no" >&5
     19981echo "${ECHO_T}no" >&6
     19982fi
     19983
     19984  PKG_CONFIG=$ac_pt_PKG_CONFIG
     19985else
     19986  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     19987fi
     19988
     19989  fi
     19990  if test -n "$PKG_CONFIG"; then
     19991    _pkg_min_version=0.9.0
     19992    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     19993echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     19994    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     19995      echo "$as_me:$LINENO: result: yes" >&5
     19996echo "${ECHO_T}yes" >&6
     19997    else
     19998      echo "$as_me:$LINENO: result: no" >&5
     19999echo "${ECHO_T}no" >&6
     20000      PKG_CONFIG=""
     20001    fi
     20002  fi
     20003
     20004  # check if pkg-config supports the short-errors flag
     20005  if test -n "$PKG_CONFIG" && \
     20006    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     20007    pkg_short_errors=" --short-errors "
     20008  else
     20009    pkg_short_errors=""
     20010  fi
     20011fi
     20012
     20013
     20014
     20015if test -n "$PKG_CONFIG"; then
     20016  COIN_HAS_PKGCONFIG_TRUE=
     20017  COIN_HAS_PKGCONFIG_FALSE='#'
     20018else
     20019  COIN_HAS_PKGCONFIG_TRUE='#'
     20020  COIN_HAS_PKGCONFIG_FALSE=
     20021fi
     20022
     20023
     20024
     20025# assemble search path for pkg-config, if we are in a project setup
     20026if test x$coin_projectdir = xyes ; then
     20027  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20028
     20029  # 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
     20030  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20031  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20032  if test -d "${prefix}"; then
     20033    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20034  fi
     20035
     20036
     20037# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20038if test "${with_coin_instdir+set}" = set; then
     20039  withval="$with_coin_instdir"
     20040  if test -d "$withval"; then : ; else
     20041       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20042echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20043   { (exit 1); exit 1; }; }
     20044     fi
     20045     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     20046
     20047fi;
     20048
     20049  # in a classic setup, we want to find uninstalled projects
     20050  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20051  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20052  # 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)
     20053  if test -e ../coin_subdirs.txt ; then
     20054    for i in `cat ../coin_subdirs.txt` ; do
     20055      if test -d ../$i ; then
     20056        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     20057      fi
     20058    done
     20059  fi
     20060
     20061  if test -e ../../coin_subdirs.txt ; then
     20062    for i in `cat ../../coin_subdirs.txt` ; do
     20063      if test -d ../../$i ; then
     20064        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     20065      fi
     20066    done
     20067  fi
     20068
     20069
     20070fi
     20071
     20072
     20073
     20074#############################################################################
     20075#                          AMPL SOLVER LIBRARY                              #
     20076#############################################################################
    1982820077
    1982920078# Determine the name of the ASL library
     20079
     20080# Set a substitutable variable with the library name, and determine the compilation style.
     20081
    1983020082case "$CC" in
    1983120083  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    19832     ampllib=amplsolv.lib ;;
     20084    AMPLSOLVER_A=amplsolv.lib
     20085    msvc_compile=yes
     20086    ;;
    1983320087  *)
    19834     ampllib=amplsolver.a ;;
     20088    AMPLSOLVER_A=amplsolver.a
     20089    msvc_compile=no
     20090    ;;
    1983520091esac
    19836 
    19837 
    19838 # Check whether --with-asldir or --without-asldir was given.
    19839 if test "${with_asldir+set}" = set; then
    19840   withval="$with_asldir"
    19841   use_asldir=$withval
    19842 else
    19843   use_asldir=
    19844 fi;
    19845 
    19846 if test "$use_asldir" = BUILD; then
    19847   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    19848     # If we are configuring ThirdParty/ASL, don't check
    19849     if test -r $coin_aslobjdir/.MakeOk; then :; else
    19850       { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5
    19851 echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;}
    19852    { (exit 1); exit 1; }; }
    19853     fi
    19854   fi
    19855 elif test -z "$use_asldir"; then
    19856  # try to find sources - if not given don't compile
    19857   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    19858     if test -r $coin_aslobjdir/.MakeOk; then
    19859       use_asldir=BUILD
    19860     else
    19861       use_asldir=no
    19862     fi
    19863   else
    19864     use_asldir=no
    19865   fi
    19866 elif test "$use_asldir" != "no"; then
    19867   if test -r $use_asldir/$ampllib; then
    19868 
    19869   :
    19870 else
    19871   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
    19872 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
    19873    { (exit 1); exit 1; }; }
    19874   :
    19875 fi
    19876 
    19877   if test -r $use_asldir/asl.h; then
    19878 
    19879   :
    19880 else
    19881   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
    19882 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
    19883    { (exit 1); exit 1; }; }
    19884   :
    19885 fi
    19886 
    19887   use_asldir=`cd $use_asldir; pwd`
     20092{ echo "$as_me:$LINENO: Configuring ASL to build $AMPLSOLVER_A." >&5
     20093echo "$as_me: Configuring ASL to build $AMPLSOLVER_A." >&6;}
     20094
     20095# Set substitutable variables with the absolute path to the library name
     20096# translate to windows style if necessary, but use slashes instead of backslashes
     20097ABSPATH_AMPLSOLVER_INSTALLED=`${CYGPATH_W} ${libdir}/coin/ThirdParty/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'`
     20098curdir=`pwd`
     20099ABSPATH_AMPLSOLVER_UNINSTALLED=`${CYGPATH_W} ${curdir}/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'`
     20100
     20101
     20102
     20103# Determine flags to be passed on the command line to (n)make. The main
     20104# activity is to groom CFLAGS and set up ASLMAKEFLAGS to pass CFLAGS on the
     20105# (n)make command line.
     20106# NON_STDIO no longer appears in any source file; removed all mention.
     20107# No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined.
     20108
     20109if test -z "$ASLMAKEFLAGS" ; then
     20110  asladdcflags=
    1988820111  case $build in
    19889     *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
     20112    *-linux*)
     20113      case $CC in
     20114        pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)
     20115          asladdcflags="$asladdcflags -DNO_fpu_control";;
     20116      esac
     20117      ;;
    1989020118  esac
    19891 fi
    19892 
    19893 # Variable containing ASL library (including full path)
    19894 
    19895 # Variable containing flags for including ASL header files
    19896 
    19897 
    19898 if test "$use_asldir" = BUILD; then
    19899   coin_aslobjdir=`cd $coin_aslobjdir; pwd`
    19900   ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    19901   coin_aslsrcdir=`cd $coin_aslsrcdir; pwd`
    19902   ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg`
    19903 elif test "$use_asldir" != no; then
    19904   ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    19905   ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg`
    19906 fi
    19907 
    19908 if test "$use_asldir" != no; then
     20119
     20120# Various feature checks. Force the language to be C while we do this to avoid
     20121# issues with C++ (re)declarations.
    1990920122  ac_ext=c
    1991020123ac_cpp='$CPP $CPPFLAGS'
     
    1991320126ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1991420127
    19915   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    19916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    19917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    19918   echo $ECHO_N "(cached) $ECHO_C" >&6
    19919 else
    19920   ac_check_lib_save_LIBS=$LIBS
    19921 LIBS="-ldl  $LIBS"
    19922 cat >conftest.$ac_ext <<_ACEOF
    19923 /* confdefs.h.  */
    19924 _ACEOF
    19925 cat confdefs.h >>conftest.$ac_ext
    19926 cat >>conftest.$ac_ext <<_ACEOF
    19927 /* end confdefs.h.  */
    19928 
    19929 /* Override any gcc2 internal prototype to avoid an error.  */
    19930 #ifdef __cplusplus
    19931 extern "C"
    19932 #endif
    19933 /* We use char because int might match the return type of a gcc2
    19934    builtin and then its argument prototype would still apply.  */
    19935 char dlopen ();
    19936 int
    19937 main ()
    19938 {
    19939 dlopen ();
    19940   ;
    19941   return 0;
    19942 }
    19943 _ACEOF
    19944 rm -f conftest.$ac_objext conftest$ac_exeext
    19945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19946   (eval $ac_link) 2>conftest.er1
    19947   ac_status=$?
    19948   grep -v '^ *+' conftest.er1 >conftest.err
    19949   rm -f conftest.er1
    19950   cat conftest.err >&5
    19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19952   (exit $ac_status); } &&
    19953          { ac_try='test -z "$ac_c_werror_flag"
    19954                          || test ! -s conftest.err'
    19955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19956   (eval $ac_try) 2>&5
    19957   ac_status=$?
    19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19959   (exit $ac_status); }; } &&
    19960          { ac_try='test -s conftest$ac_exeext'
    19961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19962   (eval $ac_try) 2>&5
    19963   ac_status=$?
    19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19965   (exit $ac_status); }; }; then
    19966   ac_cv_lib_dl_dlopen=yes
    19967 else
    19968   echo "$as_me: failed program was:" >&5
    19969 sed 's/^/| /' conftest.$ac_ext >&5
    19970 
    19971 ac_cv_lib_dl_dlopen=no
    19972 fi
    19973 rm -f conftest.err conftest.$ac_objext \
    19974       conftest$ac_exeext conftest.$ac_ext
    19975 LIBS=$ac_check_lib_save_LIBS
    19976 fi
    19977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    19978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    19979 if test $ac_cv_lib_dl_dlopen = yes; then
    19980   ASLLIB="$ASLLIB -ldl"
    19981 fi
    19982 
    19983   coin_has_asl=yes
    19984 
    19985 cat >>confdefs.h <<\_ACEOF
    19986 #define COIN_HAS_ASL 1
    19987 _ACEOF
    19988 
    19989   ac_ext=c
    19990 ac_cpp='$CPP $CPPFLAGS'
    19991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19994 
    19995 else
    19996   coin_has_asl=no
    19997 fi
    19998 
    19999 
    20000 if test $coin_has_asl = yes; then
    20001   COIN_HAS_ASL_TRUE=
    20002   COIN_HAS_ASL_FALSE='#'
    20003 else
    20004   COIN_HAS_ASL_TRUE='#'
    20005   COIN_HAS_ASL_FALSE=
    20006 fi
    20007 
    20008 
    20009 
    20010 MAKEOKFILE=.MakeOk
    20011 if test $coin_has_asl != no && test "$use_asldir" != BUILD; then
    20012   skip_further_test=yes
    20013   rm -f $MAKEOKFILE
    20014   { echo "$as_me:$LINENO: The ASL sources don't need to be compiled" >&5
    20015 echo "$as_me: The ASL sources don't need to be compiled" >&6;}
    20016   MAKEOKFILE=
    20017 else
    20018   touch $MAKEOKFILE
    20019 fi
    20020 
    20021 
    20022 
    20023 if test -z "$MAKEOKFILE"; then
    20024   SKIPMAKE_TRUE=
    20025   SKIPMAKE_FALSE='#'
    20026 else
    20027   SKIPMAKE_TRUE='#'
    20028   SKIPMAKE_FALSE=
    20029 fi
    20030 
    20031 
    20032 #############################################################################
    20033 #                          AMPL SOLVER LIBRARY                              #
    20034 #############################################################################
    20035 
    20036 if test x$skip_further_test != xyes; then
    20037 
    20038 # Set a substitutable variable with the library name, and determine the
    20039 # compilation style.
    20040 
    20041 
    20042   AMPLSOLVER_A=$ampllib
    20043   case "$CC" in
    20044     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    20045       msvc_compile=yes ;;
    20046     *)
    20047       msvc_compile=no ;;
    20048   esac
    20049   { echo "$as_me:$LINENO: Configuring ASL to build $AMPLSOLVER_A." >&5
    20050 echo "$as_me: Configuring ASL to build $AMPLSOLVER_A." >&6;}
    20051 
    20052 # Determine flags to be passed on the command line to (n)make. The main
    20053 # activity is to groom CFLAGS and set up ASLMAKEFLAGS to pass CFLAGS on the
    20054 # (n)make command line.
    20055 # NON_STDIO no longer appears in any source file; removed all mention.
    20056 # No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined.
    20057 
    20058   if test -z "$ASLMAKEFLAGS" ; then
    20059     asladdcflags=
    20060     case $build in
    20061       *-linux*)
    20062         case $CC in
    20063           pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)
    20064             asladdcflags="$asladdcflags -DNO_fpu_control";;
    20065         esac
    20066         ;;
    20067     esac
    20068 
    20069 # Various feature checks. Force the language to be C while we do this to avoid
    20070 # issues with C++ (re)declarations.
    20071 
    20072     ac_ext=c
    20073 ac_cpp='$CPP $CPPFLAGS'
    20074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20077 
    2007820128
    2007920129# The critical function for NO_RUSAGE is getrusage(). Use a standard test.
    2008020130
    20081     echo "$as_me:$LINENO: checking for getrusage" >&5
     20131  echo "$as_me:$LINENO: checking for getrusage" >&5
    2008220132echo $ECHO_N "checking for getrusage... $ECHO_C" >&6
    20083     cat >conftest.$ac_ext <<_ACEOF
     20133  cat >conftest.$ac_ext <<_ACEOF
    2008420134/* confdefs.h.  */
    2008520135_ACEOF
     
    2012520175
    2012620176asladdcflags="$asladdcflags -DNO_RUSAGE"
    20127        echo "$as_me:$LINENO: result: no" >&5
     20177     echo "$as_me:$LINENO: result: no" >&5
    2012820178echo "${ECHO_T}no" >&6
    2012920179fi
     
    2013820188# system, but it's easy to check.
    2013920189
    20140     echo "$as_me:$LINENO: checking for long long" >&5
     20190  echo "$as_me:$LINENO: checking for long long" >&5
    2014120191echo $ECHO_N "checking for long long... $ECHO_C" >&6
    2014220192if test "${ac_cv_type_long_long+set}" = set; then
     
    2020220252
    2020320253# Back to whatever language we were in.
    20204 
    20205     ac_ext=c
     20254  ac_ext=c
    2020620255ac_cpp='$CPP $CPPFLAGS'
    2020720256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2021120260
    2021220261# On BlueGene disable dynamic library loading
    20213 
    20214     if test x"$enable_bg" = xyes; then
    20215       asladdcflags="$asladdcflags -DNO_FUNCADD"
    20216     fi
     20262  if test x"$enable_bg" = xyes; then
     20263    asladdcflags="$asladdcflags -DNO_FUNCADD"
     20264  fi
    2021720265
    2021820266# Groom CFLAGS before we merge it with asladdcflags.
    2021920267# Remove -Werror if present, to make sure we are not interrupting compilation
    2022020268# of ASL because of warning messages. The cl equivalent is -WX.
    20221 
    20222     bla=
    20223     if test x$msvc_compile = xyes ; then
    20224       warnToErr="-WX"
    20225     else
    20226       warnToErr="-Werror"
     20269  bla=
     20270  if test x$msvc_compile = xyes ; then
     20271    warnToErr="-WX"
     20272  else
     20273    warnToErr="-Werror"
     20274  fi
     20275  for i in $CFLAGS; do
     20276    if test "$i" != "$warnToErr"; then
     20277      bla="$bla $i"
    2022720278    fi
    20228     for i in $CFLAGS; do
    20229       if test "$i" != "$warnToErr"; then
    20230         bla="$bla $i"
    20231       fi
    20232     done
    20233     ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
     20279  done
     20280  ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
    2023420281
    2023520282# Somehow, the flags specified here cause ASL to segfault on the AIX
    2023620283# compiler, so take them out.
    20237 
    20238     case $CC in
    20239       xlc* | */xlc* | mpxlc* | */mpxlc*)
    20240         ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'`
    20241         ;;
    20242       pgcc* | */pgcc*)
    20243         ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'`
    20244         ;;
    20245     esac
     20284  case $CC in
     20285    xlc* | */xlc* | mpxlc* | */mpxlc*)
     20286      ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'`
     20287      ;;
     20288    pgcc* | */pgcc*)
     20289      ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'`
     20290      ;;
     20291  esac
    2024620292
    2024720293# Limit GNU make to one thread. But remember that if we're building with
    2024820294# cl, ultimately we're going to use nmake, which knows nothing of this.
    20249 
    20250     if test x$msvc_compile = xno ; then
    20251       rm -rf conftest.mak
    20252       ($am_make -v > conftest.grp) 2>&5
    20253       if $EGREP GNU conftest.grp >&5 ; then
    20254         ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
    20255       fi
    20256       rm -f conftest.grp
     20295  if test x$msvc_compile = xno ; then
     20296    rm -rf conftest.mak
     20297    ($am_make -v > conftest.grp) 2>&5
     20298    if $EGREP GNU conftest.grp >&5 ; then
     20299      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
    2025720300    fi
     20301    rm -f conftest.grp
    2025820302  fi
    20259 
     20303fi
    2026020304# End if-then to construct ASLMAKEFLAGS. Announce the result.
    2026120305
    20262   { echo "$as_me:$LINENO: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&5
     20306{ echo "$as_me:$LINENO: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&5
    2026320307echo "$as_me: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&6;}
    2026420308
    20265 
    20266 fi
    2026720309
    2026820310# Set automake conditional and generate the output files.
     
    2028420326
    2028520327          ac_config_files="$ac_config_files compile_Unix_ASL"
     20328
     20329                    ac_config_files="$ac_config_files coinasl.pc coinasl-uninstalled.pc"
    2028620330
    2028720331
     
    2034120385    done
    2034220386    subdirs="$new_subdirs"
     20387  fi
     20388
     20389  # need to come before AC_OUTPUT
     20390  if test x$coin_projectdir != xyes; then
     20391    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     20392    echo $coin_subdirs > coin_subdirs.txt
     20393  else
     20394    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     20395    ABSBUILDDIR="`pwd`"
     20396
    2034320397  fi
    2034420398
     
    2050720561   { (exit 1); exit 1; }; }
    2050820562fi
    20509 if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
    20510   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
     20563if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     20564  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
    2051120565Usually this means the macro was only invoked conditionally." >&5
    20512 echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
    20513 Usually this means the macro was only invoked conditionally." >&2;}
    20514    { (exit 1); exit 1; }; }
    20515 fi
    20516 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
    20517   { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
    20518 Usually this means the macro was only invoked conditionally." >&5
    20519 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
     20566echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
    2052020567Usually this means the macro was only invoked conditionally." >&2;}
    2052120568   { (exit 1); exit 1; }; }
     
    2097021017  "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;;
    2097121018  "compile_Unix_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_Unix_ASL" ;;
     21019  "coinasl.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl.pc" ;;
     21020  "coinasl-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl-uninstalled.pc" ;;
    2097221021  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2097321022  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     
    2106321112s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
    2106421113s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
     21114s,@have_svnversion@,$have_svnversion,;t t
     21115s,@_SVN_REV@,$_SVN_REV,;t t
    2106521116s,@EGREP@,$EGREP,;t t
    2106621117s,@LN_S@,$LN_S,;t t
     
    2114921200s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2115021201s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    21151 s,@ASLLIB@,$ASLLIB,;t t
    21152 s,@ASL_CPPFLAGS@,$ASL_CPPFLAGS,;t t
    21153 s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
    21154 s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
    21155 s,@MAKEOKFILE@,$MAKEOKFILE,;t t
    21156 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
    21157 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
     21202s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     21203s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     21204s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     21205s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     21206s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2115821207s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t
     21208s,@ABSPATH_AMPLSOLVER_INSTALLED@,$ABSPATH_AMPLSOLVER_INSTALLED,;t t
     21209s,@ABSPATH_AMPLSOLVER_UNINSTALLED@,$ABSPATH_AMPLSOLVER_UNINSTALLED,;t t
    2115921210s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t
    2116021211s,@MSVC_COMPILE_TRUE@,$MSVC_COMPILE_TRUE,;t t
     
    2116221213s,@LIBEXT@,$LIBEXT,;t t
    2116321214s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     21215s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2116421216s,@LIBOBJS@,$LIBOBJS,;t t
    2116521217s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • ThirdParty/ASL/trunk/configure.ac

    r1411 r1548  
    1 # Copyright (C) 2007 International Business Machines.
     1# Copyright (C) 2007, 2009 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    1717
    1818AC_COPYRIGHT([
    19 Copyright 2006 International Business Machines and others.
     19Copyright 2006, 2007, 2009 International Business Machines and others.
    2020All Rights Reserved.
    2121This file is part of the open source package Coin which is distributed
     
    5959AC_COIN_INIT_AUTO_TOOLS
    6060
    61 # See what we're actually going to do for ASL. This will define ampllib.
    62 AC_COIN_HAS_ASL
    63 
    64 MAKEOKFILE=.MakeOk
    65 if test $coin_has_asl != no && test "$use_asldir" != BUILD; then
    66   skip_further_test=yes
    67   rm -f $MAKEOKFILE
    68   AC_MSG_NOTICE([The ASL sources don't need to be compiled])
    69   MAKEOKFILE=
    70 else
    71   touch $MAKEOKFILE
    72 fi
    73 AC_SUBST(MAKEOKFILE)
    74 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     61# Check if pkg-config is available (to setup addlibs file)
     62AC_COIN_HAS_PKGCONFIG
    7563
    7664#############################################################################
     
    7866#############################################################################
    7967
    80 if test x$skip_further_test != xyes; then
     68# Determine the name of the ASL library
    8169
    82 # Set a substitutable variable with the library name, and determine the
    83 # compilation style.
     70# Set a substitutable variable with the library name, and determine the compilation style.
     71AC_SUBST(AMPLSOLVER_A)
     72case "$CC" in
     73  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     74    AMPLSOLVER_A=amplsolv.lib
     75    msvc_compile=yes
     76    ;;
     77  *)
     78    AMPLSOLVER_A=amplsolver.a
     79    msvc_compile=no
     80    ;;
     81esac
     82AC_MSG_NOTICE([Configuring ASL to build $AMPLSOLVER_A.])
    8483
    85   AC_SUBST(AMPLSOLVER_A)
    86   AMPLSOLVER_A=$ampllib
    87   case "$CC" in
    88     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    89       msvc_compile=yes ;;
    90     *)
    91       msvc_compile=no ;;
    92   esac
    93   AC_MSG_NOTICE([Configuring ASL to build $AMPLSOLVER_A.])
     84# Set substitutable variables with the absolute path to the library name
     85# translate to windows style if necessary, but use slashes instead of backslashes
     86ABSPATH_AMPLSOLVER_INSTALLED=`${CYGPATH_W} ${libdir}/coin/ThirdParty/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'`
     87curdir=`pwd`
     88ABSPATH_AMPLSOLVER_UNINSTALLED=`${CYGPATH_W} ${curdir}/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'`
     89AC_SUBST(ABSPATH_AMPLSOLVER_INSTALLED)
     90AC_SUBST(ABSPATH_AMPLSOLVER_UNINSTALLED)
    9491
    9592# Determine flags to be passed on the command line to (n)make. The main
     
    9996# No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined.
    10097
    101   if test -z "$ASLMAKEFLAGS" ; then
    102     asladdcflags=
    103     case $build in
    104       *-linux*)
    105         case $CC in
    106           pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)
    107             asladdcflags="$asladdcflags -DNO_fpu_control";;
    108         esac
    109         ;;
    110     esac
     98if test -z "$ASLMAKEFLAGS" ; then
     99  asladdcflags=
     100  case $build in
     101    *-linux*)
     102      case $CC in
     103        pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)
     104          asladdcflags="$asladdcflags -DNO_fpu_control";;
     105      esac
     106      ;;
     107  esac
    111108
    112109# Various feature checks. Force the language to be C while we do this to avoid
    113110# issues with C++ (re)declarations.
    114 
    115     AC_LANG_PUSH(C)
     111  AC_LANG_PUSH(C)
    116112
    117113# The critical function for NO_RUSAGE is getrusage(). Use a standard test.
    118114
    119     AC_MSG_CHECKING([for getrusage])
    120     AC_LINK_IFELSE(
    121       [AC_LANG_PROGRAM([[]],[[getrusage()]])],
    122       [AC_MSG_RESULT([yes])],
    123       [asladdcflags="$asladdcflags -DNO_RUSAGE"
    124        AC_MSG_RESULT([no])])
     115  AC_MSG_CHECKING([for getrusage])
     116  AC_LINK_IFELSE(
     117    [AC_LANG_PROGRAM([[]],[[getrusage()]])],
     118    [AC_MSG_RESULT([yes])],
     119    [asladdcflags="$asladdcflags -DNO_RUSAGE"
     120     AC_MSG_RESULT([no])])
    125121
    126122# Check for long long; we need to define NO_LONG_LONG if it's not present.  ASL
     
    131127# system, but it's easy to check.
    132128
    133     AC_CHECK_TYPE([long long],[],
    134       [asladdcflags="$asladdcflags -DNO_LONG_LONG"],[])
     129  AC_CHECK_TYPE([long long],[],
     130    [asladdcflags="$asladdcflags -DNO_LONG_LONG"],[])
    135131
    136132# Back to whatever language we were in.
    137 
    138     AC_LANG_POP(C)
     133  AC_LANG_POP(C)
    139134
    140135# On BlueGene disable dynamic library loading
    141 
    142     if test x"$enable_bg" = xyes; then
    143       asladdcflags="$asladdcflags -DNO_FUNCADD"
    144     fi
     136  if test x"$enable_bg" = xyes; then
     137    asladdcflags="$asladdcflags -DNO_FUNCADD"
     138  fi
    145139
    146140# Groom CFLAGS before we merge it with asladdcflags.
    147141# Remove -Werror if present, to make sure we are not interrupting compilation
    148142# of ASL because of warning messages. The cl equivalent is -WX.
    149 
    150     bla=
    151     if test x$msvc_compile = xyes ; then
    152       warnToErr="-WX"
    153     else
    154       warnToErr="-Werror"
     143  bla=
     144  if test x$msvc_compile = xyes ; then
     145    warnToErr="-WX"
     146  else
     147    warnToErr="-Werror"
     148  fi
     149  for i in $CFLAGS; do
     150    if test "$i" != "$warnToErr"; then
     151      bla="$bla $i"
    155152    fi
    156     for i in $CFLAGS; do
    157       if test "$i" != "$warnToErr"; then
    158         bla="$bla $i"
    159       fi
    160     done
    161     ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
     153  done
     154  ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
    162155
    163156# Somehow, the flags specified here cause ASL to segfault on the AIX
    164157# compiler, so take them out.
    165 
    166     case $CC in
    167       xlc* | */xlc* | mpxlc* | */mpxlc*)
    168         ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'`
    169         ;;
    170       pgcc* | */pgcc*)
    171         ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'`
    172         ;;
    173     esac
     158  case $CC in
     159    xlc* | */xlc* | mpxlc* | */mpxlc*)
     160      ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'`
     161      ;;
     162    pgcc* | */pgcc*)
     163      ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'`
     164      ;;
     165  esac
    174166
    175167# Limit GNU make to one thread. But remember that if we're building with
    176168# cl, ultimately we're going to use nmake, which knows nothing of this.
    177 
    178     if test x$msvc_compile = xno ; then
    179       rm -rf conftest.mak
    180       ($am_make -v > conftest.grp) 2>&5
    181       if $EGREP GNU conftest.grp >&5 ; then
    182         ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
    183       fi
    184       rm -f conftest.grp
     169  if test x$msvc_compile = xno ; then
     170    rm -rf conftest.mak
     171    ($am_make -v > conftest.grp) 2>&5
     172    if $EGREP GNU conftest.grp >&5 ; then
     173      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
    185174    fi
     175    rm -f conftest.grp
    186176  fi
    187 
     177fi
    188178# End if-then to construct ASLMAKEFLAGS. Announce the result.
    189179
    190   AC_MSG_NOTICE([Command line flags for (n)make \"$ASLMAKEFLAGS\".])
    191   AC_ARG_VAR(ASLMAKEFLAGS,
    192         [Compilation flags necessary for compiling the AMPL solver library])
    193 
    194 fi
     180AC_MSG_NOTICE([Command line flags for (n)make \"$ASLMAKEFLAGS\".])
     181AC_ARG_VAR(ASLMAKEFLAGS, [Compilation flags necessary for compiling the AMPL solver library])
    195182
    196183# Set automake conditional and generate the output files.
     
    201188AC_CONFIG_FILES([compile_MS_ASL],[chmod a+x compile_MS_ASL])
    202189AC_CONFIG_FILES([compile_Unix_ASL],[chmod a+x compile_Unix_ASL])
     190AC_CONFIG_FILES([coinasl.pc coinasl-uninstalled.pc])
    203191
    204192AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.