Changeset 1388 for ThirdParty/ASL


Ignore:
Timestamp:
Aug 1, 2009 9:12:40 AM (10 years ago)
Author:
stefan
Message:

install libraries and header files

Location:
ThirdParty/ASL/trunk
Files:
4 edited

Legend:

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

    r1183 r1388  
    1717libampl   = $(AMPLSOLVER_A)
    1818
    19 if SKIPMAKE
    20   alltargets =
    21 else
     19#if SKIPMAKE
     20#  alltargets =
     21#else
    2222  alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    23 endif
     23#endif
    2424
    2525all-local: $(alltargets)
     
    3535stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
    3636
     37thirdpartylibdir = $(prefix)/lib/ThirdParty
     38install-exec-local: $(libampl)
     39        test -z "$(DESTDIR)$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     40        $(install_sh_DATA) $(libampl) "$(DESTDIR)$(thirdpartylibdir)/$(libampl)"
     41
     42uninstall-local:
     43        rm -f $(DESTDIR)$(thirdpartylibdir)/$(libampl)
     44
     45addlibsdir = $(prefix)/share/doc/coin/ThirdParty/ASL
     46addlibs_DATA = README asl_addlibs.txt
     47
     48thirdpartyincludedir = $(includedir)/coin/ThirdParty
     49thirdpartyinclude_HEADERS = \
     50  solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
     51  solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
     52  stdio1.h arith.h
     53
    3754CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    3855
  • ThirdParty/ASL/trunk/Makefile.in

    r1183 r1388  
    2828#                    Documentation installation                        #
    2929########################################################################
     30
     31
    3032srcdir = @srcdir@
    3133top_srcdir = @top_srcdir@
     
    5052build_triplet = @build@
    5153host_triplet = @host@
    52 DIST_COMMON = $(am__configure_deps) \
     54DIST_COMMON = README $(am__configure_deps) \
    5355        $(srcdir)/../../BuildTools/Makemain.inc \
    5456        $(srcdir)/../../config.guess $(srcdir)/../../config.sub \
    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)/asl_addlibs.txt.in \
     60        $(srcdir)/compile_MS_ASL.in $(srcdir)/compile_Unix_ASL.in \
     61        $(thirdpartyinclude_HEADERS) $(top_srcdir)/configure
    5962@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    6063@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    6871 configure.lineno configure.status.lineno
    6972mkinstalldirs = $(install_sh) -d
    70 CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL
     73CONFIG_CLEAN_FILES = asl_addlibs.txt compile_MS_ASL compile_Unix_ASL
    7174SOURCES =
    7275DIST_SOURCES =
     76am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     77am__vpath_adj = case $$p in \
     78    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     79    *) f=$$p;; \
     80  esac;
     81am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     82am__installdirs = "$(DESTDIR)$(addlibsdir)" \
     83        "$(DESTDIR)$(thirdpartyincludedir)"
     84addlibsDATA_INSTALL = $(INSTALL_DATA)
     85DATA = $(addlibs_DATA)
     86thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER)
     87HEADERS = $(thirdpartyinclude_HEADERS)
     88ETAGS = etags
     89CTAGS = ctags
    7390DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    7491distdir = $(PACKAGE)-$(VERSION)
     
    92109AMTAR = @AMTAR@
    93110AR = @AR@
    94 ASLLIB = @ASLLIB@
    95111ASLMAKEFLAGS = @ASLMAKEFLAGS@
    96 ASL_CPPFLAGS = @ASL_CPPFLAGS@
    97112AUTOCONF = @AUTOCONF@
    98113AUTOHEADER = @AUTOHEADER@
     
    105120CDEFS = @CDEFS@
    106121CFLAGS = @CFLAGS@
    107 COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    108 COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
    109122CPP = @CPP@
    110123CPPFLAGS = @CPPFLAGS@
     
    145158MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    146159MAKEINFO = @MAKEINFO@
    147 MAKEOKFILE = @MAKEOKFILE@
    148160MPICC = @MPICC@
    149161MSVC_COMPILE_FALSE = @MSVC_COMPILE_FALSE@
     
    162174SET_MAKE = @SET_MAKE@
    163175SHELL = @SHELL@
    164 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
    165 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    166176STRIP = @STRIP@
    167177VERSION = @VERSION@
     
    228238compdir = compdir
    229239libampl = $(AMPLSOLVER_A)
    230 @SKIPMAKE_FALSE@alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    231 @SKIPMAKE_TRUE@alltargets =
     240
     241#if SKIPMAKE
     242#  alltargets =
     243#else
     244alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     245thirdpartylibdir = $(prefix)/lib/ThirdParty
     246addlibsdir = $(prefix)/share/doc/coin/ThirdParty/ASL
     247addlibs_DATA = README asl_addlibs.txt
     248thirdpartyincludedir = $(includedir)/coin/ThirdParty
     249thirdpartyinclude_HEADERS = \
     250  solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
     251  solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
     252  stdio1.h arith.h
     253
    232254CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    233255
     
    276298$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    277299        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     300asl_addlibs.txt: $(top_builddir)/config.status $(srcdir)/asl_addlibs.txt.in
     301        cd $(top_builddir) && $(SHELL) ./config.status $@
    278302compile_MS_ASL: $(top_builddir)/config.status $(srcdir)/compile_MS_ASL.in
    279303        cd $(top_builddir) && $(SHELL) ./config.status $@
     
    290314        -rm -f libtool
    291315uninstall-info-am:
     316install-addlibsDATA: $(addlibs_DATA)
     317        @$(NORMAL_INSTALL)
     318        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     319        @list='$(addlibs_DATA)'; for p in $$list; do \
     320          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     321          f=$(am__strip_dir) \
     322          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     323          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     324        done
     325
     326uninstall-addlibsDATA:
     327        @$(NORMAL_UNINSTALL)
     328        @list='$(addlibs_DATA)'; for p in $$list; do \
     329          f=$(am__strip_dir) \
     330          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     331          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     332        done
     333install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS)
     334        @$(NORMAL_INSTALL)
     335        test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)"
     336        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     337          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     338          f=$(am__strip_dir) \
     339          echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     340          $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     341        done
     342
     343uninstall-thirdpartyincludeHEADERS:
     344        @$(NORMAL_UNINSTALL)
     345        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     346          f=$(am__strip_dir) \
     347          echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     348          rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     349        done
     350
     351ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     352        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
     353        unique=`for i in $$list; do \
     354            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     355          done | \
     356          $(AWK) '    { files[$$0] = 1; } \
     357               END { for (i in files) print i; }'`; \
     358        mkid -fID $$unique
    292359tags: TAGS
    293 TAGS:
    294 
     360
     361TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     362                $(TAGS_FILES) $(LISP)
     363        tags=; \
     364        here=`pwd`; \
     365        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
     366        unique=`for i in $$list; do \
     367            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     368          done | \
     369          $(AWK) '    { files[$$0] = 1; } \
     370               END { for (i in files) print i; }'`; \
     371        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
     372          test -n "$$unique" || unique=$$empty_fix; \
     373          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     374            $$tags $$unique; \
     375        fi
    295376ctags: CTAGS
    296 CTAGS:
    297 
     377CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     378                $(TAGS_FILES) $(LISP)
     379        tags=; \
     380        here=`pwd`; \
     381        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
     382        unique=`for i in $$list; do \
     383            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     384          done | \
     385          $(AWK) '    { files[$$0] = 1; } \
     386               END { for (i in files) print i; }'`; \
     387        test -z "$(CTAGS_ARGS)$$tags$$unique" \
     388          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
     389             $$tags $$unique
     390
     391GTAGS:
     392        here=`$(am__cd) $(top_builddir) && pwd` \
     393          && cd $(top_srcdir) \
     394          && gtags -i $(GTAGS_ARGS) $$here
     395
     396distclean-tags:
     397        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
    298398
    299399distdir: $(DISTFILES)
    300400        $(am__remove_distdir)
    301401        mkdir $(distdir)
    302         $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
     402        $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools $(distdir)/solvers
    303403        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    304404        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    426526check-am: all-am
    427527check: check-am
    428 all-am: Makefile all-local
     528all-am: Makefile $(DATA) $(HEADERS) all-local
    429529installdirs:
     530        for dir in "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
     531          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     532        done
    430533install: install-am
    431534install-exec: install-exec-am
     
    461564        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    462565        -rm -f Makefile
    463 distclean-am: clean-am distclean-generic distclean-libtool
     566distclean-am: clean-am distclean-generic distclean-libtool \
     567        distclean-tags
    464568
    465569dvi: dvi-am
     
    473577info-am:
    474578
    475 install-data-am:
    476 
    477 install-exec-am:
     579install-data-am: install-addlibsDATA install-thirdpartyincludeHEADERS
     580
     581install-exec-am: install-exec-local
    478582
    479583install-info: install-info-am
     
    501605ps-am:
    502606
    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
    516 
     607uninstall-am: uninstall-addlibsDATA uninstall-info-am uninstall-local \
     608        uninstall-thirdpartyincludeHEADERS
     609
     610.PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \
     611        clean clean-generic clean-libtool ctags dist dist-all \
     612        dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \
     613        distclean distclean-generic distclean-libtool distclean-tags \
     614        distcleancheck distdir distuninstallcheck dvi dvi-am html \
     615        html-am info info-am install install-addlibsDATA install-am \
     616        install-data install-data-am install-exec install-exec-am \
     617        install-exec-local install-info install-info-am install-man \
     618        install-strip install-thirdpartyincludeHEADERS installcheck \
     619        installcheck-am installdirs maintainer-clean \
     620        maintainer-clean-generic mostlyclean mostlyclean-generic \
     621        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     622        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     623        uninstall-local uninstall-thirdpartyincludeHEADERS
     624
     625#endif
    517626
    518627all-local: $(alltargets)
     
    524633
    525634stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
     635install-exec-local: $(libampl)
     636        test -z "$(DESTDIR)$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     637        $(install_sh_DATA) $(libampl) "$(DESTDIR)$(thirdpartylibdir)/$(libampl)"
     638
     639uninstall-local:
     640        rm -f $(DESTDIR)$(thirdpartylibdir)/$(libampl)
    526641
    527642install-doc: $(DocFiles)
  • ThirdParty/ASL/trunk/configure

    r1386 r1388  
    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 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 AMPLSOLVER_A ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10881088  --with-tags[=TAGS]
    10891089                          include additional configurations [automatic]
    1090   --with-asldir           specify path to AMPL solver directory (or BUILD for
    1091                           compilation, or "no" for disabling AMPL)
    10921090
    10931091Some influential environment variables:
     
    12201218
    12211219
    1222 Copyright 2006 International Business Machines and others.
     1220Copyright 2006, 2007, 2009 International Business Machines and others.
    12231221All Rights Reserved.
    12241222This file is part of the open source package Coin which is distributed
     
    47374735*-*-irix6*)
    47384736  # Find out which ABI we are using.
    4739   echo '#line 4739 "configure"' > conftest.$ac_ext
     4737  echo '#line 4737 "configure"' > conftest.$ac_ext
    47404738  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    47414739  (eval $ac_compile) 2>&5
     
    63366334
    63376335# Provide some information about the compiler.
    6338 echo "$as_me:6338:" \
     6336echo "$as_me:6336:" \
    63396337     "checking for Fortran 77 compiler version" >&5
    63406338ac_compiler=`set X $ac_compile; echo $2`
     
    74037401   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    74047402   -e 's:$: $lt_compiler_flag:'`
    7405    (eval echo "\"\$as_me:7405: $lt_compile\"" >&5)
     7403   (eval echo "\"\$as_me:7403: $lt_compile\"" >&5)
    74067404   (eval "$lt_compile" 2>conftest.err)
    74077405   ac_status=$?
    74087406   cat conftest.err >&5
    7409    echo "$as_me:7409: \$? = $ac_status" >&5
     7407   echo "$as_me:7407: \$? = $ac_status" >&5
    74107408   if (exit $ac_status) && test -s "$ac_outfile"; then
    74117409     # The compiler can only warn and ignore the option if not recognized
     
    76717669   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76727670   -e 's:$: $lt_compiler_flag:'`
    7673    (eval echo "\"\$as_me:7673: $lt_compile\"" >&5)
     7671   (eval echo "\"\$as_me:7671: $lt_compile\"" >&5)
    76747672   (eval "$lt_compile" 2>conftest.err)
    76757673   ac_status=$?
    76767674   cat conftest.err >&5
    7677    echo "$as_me:7677: \$? = $ac_status" >&5
     7675   echo "$as_me:7675: \$? = $ac_status" >&5
    76787676   if (exit $ac_status) && test -s "$ac_outfile"; then
    76797677     # The compiler can only warn and ignore the option if not recognized
     
    77757773   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77767774   -e 's:$: $lt_compiler_flag:'`
    7777    (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
     7775   (eval echo "\"\$as_me:7775: $lt_compile\"" >&5)
    77787776   (eval "$lt_compile" 2>out/conftest.err)
    77797777   ac_status=$?
    77807778   cat out/conftest.err >&5
    7781    echo "$as_me:7781: \$? = $ac_status" >&5
     7779   echo "$as_me:7779: \$? = $ac_status" >&5
    77827780   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77837781   then
     
    1012010118  lt_status=$lt_dlunknown
    1012110119  cat > conftest.$ac_ext <<EOF
    10122 #line 10122 "configure"
     10120#line 10120 "configure"
    1012310121#include "confdefs.h"
    1012410122
     
    1022010218  lt_status=$lt_dlunknown
    1022110219  cat > conftest.$ac_ext <<EOF
    10222 #line 10222 "configure"
     10220#line 10220 "configure"
    1022310221#include "confdefs.h"
    1022410222
     
    1256412562   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1256512563   -e 's:$: $lt_compiler_flag:'`
    12566    (eval echo "\"\$as_me:12566: $lt_compile\"" >&5)
     12564   (eval echo "\"\$as_me:12564: $lt_compile\"" >&5)
    1256712565   (eval "$lt_compile" 2>conftest.err)
    1256812566   ac_status=$?
    1256912567   cat conftest.err >&5
    12570    echo "$as_me:12570: \$? = $ac_status" >&5
     12568   echo "$as_me:12568: \$? = $ac_status" >&5
    1257112569   if (exit $ac_status) && test -s "$ac_outfile"; then
    1257212570     # The compiler can only warn and ignore the option if not recognized
     
    1266812666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1266912667   -e 's:$: $lt_compiler_flag:'`
    12670    (eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
     12668   (eval echo "\"\$as_me:12668: $lt_compile\"" >&5)
    1267112669   (eval "$lt_compile" 2>out/conftest.err)
    1267212670   ac_status=$?
    1267312671   cat out/conftest.err >&5
    12674    echo "$as_me:12674: \$? = $ac_status" >&5
     12672   echo "$as_me:12672: \$? = $ac_status" >&5
    1267512673   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1267612674   then
     
    1423814236   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1423914237   -e 's:$: $lt_compiler_flag:'`
    14240    (eval echo "\"\$as_me:14240: $lt_compile\"" >&5)
     14238   (eval echo "\"\$as_me:14238: $lt_compile\"" >&5)
    1424114239   (eval "$lt_compile" 2>conftest.err)
    1424214240   ac_status=$?
    1424314241   cat conftest.err >&5
    14244    echo "$as_me:14244: \$? = $ac_status" >&5
     14242   echo "$as_me:14242: \$? = $ac_status" >&5
    1424514243   if (exit $ac_status) && test -s "$ac_outfile"; then
    1424614244     # The compiler can only warn and ignore the option if not recognized
     
    1434214340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1434314341   -e 's:$: $lt_compiler_flag:'`
    14344    (eval echo "\"\$as_me:14344: $lt_compile\"" >&5)
     14342   (eval echo "\"\$as_me:14342: $lt_compile\"" >&5)
    1434514343   (eval "$lt_compile" 2>out/conftest.err)
    1434614344   ac_status=$?
    1434714345   cat out/conftest.err >&5
    14348    echo "$as_me:14348: \$? = $ac_status" >&5
     14346   echo "$as_me:14346: \$? = $ac_status" >&5
    1434914347   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1435014348   then
     
    1654916547   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1655016548   -e 's:$: $lt_compiler_flag:'`
    16551    (eval echo "\"\$as_me:16551: $lt_compile\"" >&5)
     16549   (eval echo "\"\$as_me:16549: $lt_compile\"" >&5)
    1655216550   (eval "$lt_compile" 2>conftest.err)
    1655316551   ac_status=$?
    1655416552   cat conftest.err >&5
    16555    echo "$as_me:16555: \$? = $ac_status" >&5
     16553   echo "$as_me:16553: \$? = $ac_status" >&5
    1655616554   if (exit $ac_status) && test -s "$ac_outfile"; then
    1655716555     # The compiler can only warn and ignore the option if not recognized
     
    1681716815   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1681816816   -e 's:$: $lt_compiler_flag:'`
    16819    (eval echo "\"\$as_me:16819: $lt_compile\"" >&5)
     16817   (eval echo "\"\$as_me:16817: $lt_compile\"" >&5)
    1682016818   (eval "$lt_compile" 2>conftest.err)
    1682116819   ac_status=$?
    1682216820   cat conftest.err >&5
    16823    echo "$as_me:16823: \$? = $ac_status" >&5
     16821   echo "$as_me:16821: \$? = $ac_status" >&5
    1682416822   if (exit $ac_status) && test -s "$ac_outfile"; then
    1682516823     # The compiler can only warn and ignore the option if not recognized
     
    1692116919   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1692216920   -e 's:$: $lt_compiler_flag:'`
    16923    (eval echo "\"\$as_me:16923: $lt_compile\"" >&5)
     16921   (eval echo "\"\$as_me:16921: $lt_compile\"" >&5)
    1692416922   (eval "$lt_compile" 2>out/conftest.err)
    1692516923   ac_status=$?
    1692616924   cat out/conftest.err >&5
    16927    echo "$as_me:16927: \$? = $ac_status" >&5
     16925   echo "$as_me:16925: \$? = $ac_status" >&5
    1692816926   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1692916927   then
     
    1982419822
    1982519823# 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
     19824#AC_COIN_HAS_ASL
    1982819825
    1982919826# Determine the name of the ASL library
     
    1983619833
    1983719834
    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`
    19888   case $build in
    19889     *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
    19890   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
    19909   ac_ext=c
    19910 ac_cpp='$CPP $CPPFLAGS'
    19911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19914 
    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 
     19835#MAKEOKFILE=.MakeOk
     19836#if test $coin_has_asl != no && test "$use_asldir" != BUILD; then
     19837#  skip_further_test=yes
     19838#  rm -f $MAKEOKFILE
     19839#  AC_MSG_NOTICE([The ASL sources don't need to be compiled])
     19840#  MAKEOKFILE=
     19841#else
     19842#  touch $MAKEOKFILE
     19843#fi
     19844#AC_SUBST(MAKEOKFILE)
     19845#AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
    2003119846
    2003219847#############################################################################
     
    2027920094
    2028020095
    20281           ac_config_files="$ac_config_files Makefile"
     20096                    ac_config_files="$ac_config_files Makefile asl_addlibs.txt"
    2028220097
    2028320098          ac_config_files="$ac_config_files compile_MS_ASL"
     
    2050420319Usually this means the macro was only invoked conditionally." >&5
    2050520320echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
    20506 Usually this means the macro was only invoked conditionally." >&2;}
    20507    { (exit 1); exit 1; }; }
    20508 fi
    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.
    20511 Usually 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.
    2052020321Usually this means the macro was only invoked conditionally." >&2;}
    2052120322   { (exit 1); exit 1; }; }
     
    2096820769  # Handling of arguments.
    2096920770  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     20771  "asl_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES asl_addlibs.txt" ;;
    2097020772  "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;;
    2097120773  "compile_Unix_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_Unix_ASL" ;;
     
    2114920951s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2115020952s,@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
    2115820953s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t
    2115920954s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t
  • ThirdParty/ASL/trunk/configure.ac

    r1183 r1388  
    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
     
    6060
    6161# 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")
     62#AC_COIN_HAS_ASL
     63
     64# Determine the name of the ASL library
     65case "$CC" in
     66  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     67    ampllib=amplsolv.lib ;;
     68  *)
     69    ampllib=amplsolver.a ;;
     70esac
     71
     72
     73#MAKEOKFILE=.MakeOk
     74#if test $coin_has_asl != no && test "$use_asldir" != BUILD; then
     75#  skip_further_test=yes
     76#  rm -f $MAKEOKFILE
     77#  AC_MSG_NOTICE([The ASL sources don't need to be compiled])
     78#  MAKEOKFILE=
     79#else
     80#  touch $MAKEOKFILE
     81#fi
     82#AC_SUBST(MAKEOKFILE)
     83#AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
    7584
    7685#############################################################################
     
    198207AM_CONDITIONAL(MSVC_COMPILE, test x$msvc_compile = xyes)
    199208
    200 AC_CONFIG_FILES([Makefile])
     209AC_CONFIG_FILES([Makefile asl_addlibs.txt])
    201210AC_CONFIG_FILES([compile_MS_ASL],[chmod a+x compile_MS_ASL])
    202211AC_CONFIG_FILES([compile_Unix_ASL],[chmod a+x compile_Unix_ASL])
Note: See TracChangeset for help on using the changeset viewer.