Changeset 2141


Ignore:
Timestamp:
Mar 27, 2011 12:40:30 PM (9 years ago)
Author:
stefan
Message:

build libtool library libcoinasl.la from static libamplsolver.a|lib

Location:
ThirdParty/ASL/trunk
Files:
6 edited

Legend:

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

    r2078 r2141  
    55## $Id$
    66
     7# the idea is to use the ASL Makefiles to build a static $(AMPLSOLVER_A) library via the compile_*_ASL scripts
     8# from this library, we create a libcoinasl.la libtool library
     9# in a MS VC build, we assume static libraries are used, so we can use the usual libtool machinery via LIBADD
     10# in a normal build, we build the libcoinasl.la library by extracting the $(AMPLSOLVER_A) library and relinking it via libtool
     11#    in a shared library build, this should give a shared libcoinasl.so library
     12#    further, configure should have taken care of adding -fPIC -DPIC to the CFLAGS when compiling the ASL sources
     13
    714AUTOMAKE_OPTIONS = foreign
    815
    916EXTRA_DIST = get.ASL INSTALL.ASL
     17
     18if COIN_CC_IS_CL
     19lib_LTLIBRARIES = libcoinasl.la
     20
     21libcoinasl_la_SOURCES =
     22libcoinasl_la_LIBADD = $(AMPLSOLVER_A)
     23
     24# This is for libtool
     25libcoinasl_la_LDFLAGS = $(LT_LDFLAGS)
     26endif
    1027
    1128########################################################################
     
    1532compdir = compdir
    1633
    17 libampl   = $(AMPLSOLVER_A)
     34alltargets = stdio1.h arith.h funcadd0.$(OBJEXT)
    1835
    19 alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     36if COIN_CC_IS_CL
     37$(AMPLSOLVER_A):
     38        ./compile_MS_ASL
     39       
     40else
     41$(AMPLSOLVER_A):
     42        ./compile_Unix_ASL
     43
     44libcoinasl.la : $(AMPLSOLVER_A)
     45        mkdir tmp ; cd tmp ; $(AR) x ../$(AMPLSOLVER_A) ; cd ..
     46        $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) tmp/*.o
     47        rm -rf tmp
     48
     49alltargets += libcoinasl.la
     50
     51thirdpartylibdir = $(libdir)
     52thirdpartylib_DATA = libcoinasl.la
     53endif
     54
     55stdio1.h arith.h funcadd0.$(OBJEXT): $(AMPLSOLVER_A)
    2056
    2157all-local: $(alltargets)
    22 
    23 if MSVC_COMPILE
    24 $(libampl):
    25         ./compile_MS_ASL
    26 else
    27 $(libampl):
    28         ./compile_Unix_ASL
    29 endif
    30 
    31 stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
    3258
    3359test:
     
    4066  stdio1.h arith.h
    4167
    42 thirdpartylibdir = $(libdir)
    43 thirdpartylib_DATA = $(libampl)
    44 
    4568pkgconfiglibdir = $(libdir)/pkgconfig
    4669pkgconfiglib_DATA = coinasl.pc
    4770
    48 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     71CLEANFILES = $(AMPLSOLVER_A) $(alltargets)
    4972
    5073########################################################################
     
    5376
    5477# Files that are generated and should be cleaned with make distclean
    55 DISTCLEANFILES = $(MAKEOKFILE)
     78DISTCLEANFILES =
    5679
    5780include BuildTools/Makemain.inc
  • ThirdParty/ASL/trunk/Makefile.in

    r2121 r2141  
    1919# This file is distributed under the Eclipse Public License.
    2020
     21# the idea is to use the ASL Makefiles to build a static $(AMPLSOLVER_A) library via the compile_*_ASL scripts
     22# from this library, we create a libcoinasl.la libtool library
     23# in a MS VC build, we assume static libraries are used, so we can use the usual libtool machinery via LIBADD
     24# in a normal build, we build the libcoinasl.la library by extracting the $(AMPLSOLVER_A) library and relinking it via libtool
     25#    in a shared library build, this should give a shared libcoinasl.so library
     26#    further, configure should have taken care of adding -fPIC -DPIC to the CFLAGS when compiling the ASL sources
     27
    2128# Copyright (C) 2006, 2007 International Business Machines and others.
    2229# All Rights Reserved.
     
    2835#                    Documentation installation                        #
    2936########################################################################
     37
    3038
    3139
     
    5260build_triplet = @build@
    5361host_triplet = @host@
     62@COIN_CC_IS_CL_FALSE@am__append_1 = libcoinasl.la
    5463DIST_COMMON = $(am__configure_deps) $(srcdir)/BuildTools/Makemain.inc \
    5564        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
     
    5867        $(thirdpartyinclude_HEADERS) $(top_srcdir)/configure \
    5968        config.guess config.sub depcomp install-sh ltmain.sh missing
    60 @HAVE_EXTERNALS_TRUE@am__append_1 = Dependencies
    61 @HAVE_EXTERNALS_TRUE@am__append_2 = .Dependencies-stamp
     69@HAVE_EXTERNALS_TRUE@am__append_2 = Dependencies
     70@HAVE_EXTERNALS_TRUE@am__append_3 = .Dependencies-stamp
    6271subdir = .
    6372ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    7180CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL coinasl.pc \
    7281        coinasl-uninstalled.pc
    73 SOURCES =
    74 DIST_SOURCES =
    7582am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
    7683am__vpath_adj = case $$p in \
     
    7986  esac;
    8087am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
    81 am__installdirs = "$(DESTDIR)$(pkgconfiglibdir)" \
     88am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfiglibdir)" \
    8289        "$(DESTDIR)$(thirdpartylibdir)" \
    8390        "$(DESTDIR)$(thirdpartyincludedir)"
     91libLTLIBRARIES_INSTALL = $(INSTALL)
     92LTLIBRARIES = $(lib_LTLIBRARIES)
     93am__DEPENDENCIES_1 =
     94@COIN_CC_IS_CL_TRUE@libcoinasl_la_DEPENDENCIES =  \
     95@COIN_CC_IS_CL_TRUE@    $(am__DEPENDENCIES_1)
     96am_libcoinasl_la_OBJECTS =
     97libcoinasl_la_OBJECTS = $(am_libcoinasl_la_OBJECTS)
     98@COIN_CC_IS_CL_TRUE@am_libcoinasl_la_rpath = -rpath $(libdir)
     99DEFAULT_INCLUDES = -I. -I$(srcdir)
     100COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     101        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     102LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
     103        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
     104        $(AM_CFLAGS) $(CFLAGS)
     105CCLD = $(CC)
     106LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
     107        $(AM_LDFLAGS) $(LDFLAGS) -o $@
     108SOURCES = $(libcoinasl_la_SOURCES)
     109DIST_SOURCES = $(libcoinasl_la_SOURCES)
    84110pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
    85111thirdpartylibDATA_INSTALL = $(INSTALL_DATA)
     
    167193MAKEINFO = @MAKEINFO@
    168194MPICC = @MPICC@
    169 MSVC_COMPILE_FALSE = @MSVC_COMPILE_FALSE@
    170 MSVC_COMPILE_TRUE = @MSVC_COMPILE_TRUE@
    171195OBJEXT = @OBJEXT@
    172196OPT_CFLAGS = @OPT_CFLAGS@
     
    242266target_alias = @target_alias@
    243267AUTOMAKE_OPTIONS = foreign
    244 EXTRA_DIST = get.ASL INSTALL.ASL $(am__append_1)
     268EXTRA_DIST = get.ASL INSTALL.ASL $(am__append_2)
     269@COIN_CC_IS_CL_TRUE@lib_LTLIBRARIES = libcoinasl.la
     270@COIN_CC_IS_CL_TRUE@libcoinasl_la_SOURCES =
     271@COIN_CC_IS_CL_TRUE@libcoinasl_la_LIBADD = $(AMPLSOLVER_A)
     272
     273# This is for libtool
     274@COIN_CC_IS_CL_TRUE@libcoinasl_la_LDFLAGS = $(LT_LDFLAGS)
    245275
    246276########################################################################
     
    248278########################################################################
    249279compdir = compdir
    250 libampl = $(AMPLSOLVER_A)
    251 alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     280alltargets = stdio1.h arith.h funcadd0.$(OBJEXT) $(am__append_1)
     281@COIN_CC_IS_CL_FALSE@thirdpartylibdir = $(libdir)
     282@COIN_CC_IS_CL_FALSE@thirdpartylib_DATA = libcoinasl.la
    252283thirdpartyincludedir = $(includedir)/coin/ThirdParty
    253284thirdpartyinclude_HEADERS = \
     
    256287  stdio1.h arith.h
    257288
    258 thirdpartylibdir = $(libdir)
    259 thirdpartylib_DATA = $(libampl)
    260289pkgconfiglibdir = $(libdir)/pkgconfig
    261290pkgconfiglib_DATA = coinasl.pc
    262 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
     291CLEANFILES = $(AMPLSOLVER_A) $(alltargets)
    263292
    264293########################################################################
     
    267296
    268297# Files that are generated and should be cleaned with make distclean
    269 DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES)
     298DISTCLEANFILES = $(am__append_3) $(VPATH_DISTCLEANFILES)
    270299DocFiles = README AUTHORS LICENSE
    271300DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
     
    314343coinasl-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinasl-uninstalled.pc.in
    315344        cd $(top_builddir) && $(SHELL) ./config.status $@
     345install-libLTLIBRARIES: $(lib_LTLIBRARIES)
     346        @$(NORMAL_INSTALL)
     347        test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
     348        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     349          if test -f $$p; then \
     350            f=$(am__strip_dir) \
     351            echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
     352            $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
     353          else :; fi; \
     354        done
     355
     356uninstall-libLTLIBRARIES:
     357        @$(NORMAL_UNINSTALL)
     358        @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     359          p=$(am__strip_dir) \
     360          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
     361          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
     362        done
     363
     364clean-libLTLIBRARIES:
     365        -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
     366        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     367          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
     368          test "$$dir" != "$$p" || dir=.; \
     369          echo "rm -f \"$${dir}/so_locations\""; \
     370          rm -f "$${dir}/so_locations"; \
     371        done
     372@COIN_CC_IS_CL_TRUE@libcoinasl.la: $(libcoinasl_la_OBJECTS) $(libcoinasl_la_DEPENDENCIES)
     373@COIN_CC_IS_CL_TRUE@    $(LINK) $(am_libcoinasl_la_rpath) $(libcoinasl_la_LDFLAGS) $(libcoinasl_la_OBJECTS) $(libcoinasl_la_LIBADD) $(LIBS)
     374
     375mostlyclean-compile:
     376        -rm -f *.$(OBJEXT)
     377
     378distclean-compile:
     379        -rm -f *.tab.c
    316380
    317381mostlyclean-libtool:
     
    553617check-am: all-am
    554618check: check-am
    555 all-am: Makefile $(DATA) $(HEADERS) all-local
     619all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) all-local
    556620installdirs:
    557         for dir in "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
     621        for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
    558622          test -z "$$dir" || $(mkdir_p) "$$dir"; \
    559623        done
     
    586650clean: clean-am
    587651
    588 clean-am: clean-generic clean-libtool mostlyclean-am
     652clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
     653        mostlyclean-am
    589654
    590655distclean: distclean-am
    591656        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    592657        -rm -f Makefile
    593 distclean-am: clean-am distclean-generic distclean-libtool \
    594         distclean-tags
     658distclean-am: clean-am distclean-compile distclean-generic \
     659        distclean-libtool distclean-tags
    595660
    596661dvi: dvi-am
     
    607672        install-thirdpartyincludeHEADERS install-thirdpartylibDATA
    608673
    609 install-exec-am:
     674install-exec-am: install-libLTLIBRARIES
    610675
    611676install-info: install-info-am
     
    623688mostlyclean: mostlyclean-am
    624689
    625 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
     690mostlyclean-am: mostlyclean-compile mostlyclean-generic \
     691        mostlyclean-libtool
    626692
    627693pdf: pdf-am
     
    633699ps-am:
    634700
    635 uninstall-am: uninstall-info-am uninstall-pkgconfiglibDATA \
    636         uninstall-thirdpartyincludeHEADERS uninstall-thirdpartylibDATA
     701uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
     702        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     703        uninstall-thirdpartylibDATA
    637704
    638705.PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \
    639         clean clean-generic clean-libtool ctags dist dist-all \
    640         dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \
    641         distclean distclean-generic distclean-libtool distclean-tags \
     706        clean clean-generic clean-libLTLIBRARIES clean-libtool ctags \
     707        dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \
     708        dist-zip distcheck distclean distclean-compile \
     709        distclean-generic distclean-libtool distclean-tags \
    642710        distcleancheck distdir distuninstallcheck dvi dvi-am html \
    643711        html-am info info-am install install-am install-data \
    644712        install-data-am install-exec install-exec-am install-info \
    645         install-info-am install-man install-pkgconfiglibDATA \
    646         install-strip install-thirdpartyincludeHEADERS \
    647         install-thirdpartylibDATA installcheck installcheck-am \
    648         installdirs maintainer-clean maintainer-clean-generic \
    649         mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
    650         ps ps-am tags uninstall uninstall-am uninstall-info-am \
    651         uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
    652         uninstall-thirdpartylibDATA
    653 
     713        install-info-am install-libLTLIBRARIES install-man \
     714        install-pkgconfiglibDATA install-strip \
     715        install-thirdpartyincludeHEADERS install-thirdpartylibDATA \
     716        installcheck installcheck-am installdirs maintainer-clean \
     717        maintainer-clean-generic mostlyclean mostlyclean-compile \
     718        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
     719        tags uninstall uninstall-am uninstall-info-am \
     720        uninstall-libLTLIBRARIES uninstall-pkgconfiglibDATA \
     721        uninstall-thirdpartyincludeHEADERS uninstall-thirdpartylibDATA
     722
     723
     724@COIN_CC_IS_CL_TRUE@$(AMPLSOLVER_A):
     725@COIN_CC_IS_CL_TRUE@    ./compile_MS_ASL
     726
     727@COIN_CC_IS_CL_FALSE@$(AMPLSOLVER_A):
     728@COIN_CC_IS_CL_FALSE@   ./compile_Unix_ASL
     729
     730@COIN_CC_IS_CL_FALSE@libcoinasl.la : $(AMPLSOLVER_A)
     731@COIN_CC_IS_CL_FALSE@   mkdir tmp ; cd tmp ; $(AR) x ../$(AMPLSOLVER_A) ; cd ..
     732@COIN_CC_IS_CL_FALSE@   $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) tmp/*.o
     733@COIN_CC_IS_CL_FALSE@   rm -rf tmp
     734
     735stdio1.h arith.h funcadd0.$(OBJEXT): $(AMPLSOLVER_A)
    654736
    655737all-local: $(alltargets)
    656 
    657 @MSVC_COMPILE_TRUE@$(libampl):
    658 @MSVC_COMPILE_TRUE@     ./compile_MS_ASL
    659 @MSVC_COMPILE_FALSE@$(libampl):
    660 @MSVC_COMPILE_FALSE@    ./compile_Unix_ASL
    661 
    662 stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
    663738
    664739test:
  • ThirdParty/ASL/trunk/coinasl-uninstalled.pc.in

    r2051 r2141  
    66URL: https://projects.coin-or.org/BuildTools
    77Version: @PACKAGE_VERSION@
    8 Libs: ${libdir}/@AMPLSOLVER_A@ @ASL_PCLIBS@
     8Libs: ${libdir}/libcoinasl.la @ASL_PCLIBS@
    99Cflags: -I@ABSBUILDDIR@ -I@abs_source_dir@/solvers
  • ThirdParty/ASL/trunk/coinasl.pc.in

    r2051 r2141  
    88URL: https://projects.coin-or.org/BuildTools
    99Version: @PACKAGE_VERSION@
    10 Libs: -L${libdir} -lamplsolver @ASL_PCLIBS@
     10Libs: -L${libdir} -lcoinasl @ASL_PCLIBS@
    1111Cflags: -I${includedir}
  • ThirdParty/ASL/trunk/configure

    r2121 r2141  
    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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    2014120141# Set a substitutable variable with the library name, and determine the compilation style.
    2014220142
    20143 case "$CC" in
    20144   cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    20145     AMPLSOLVER_A=libamplsolver.lib
    20146     msvc_compile=yes
    20147     ;;
    20148   *)
    20149     AMPLSOLVER_A=libamplsolver.a
    20150     msvc_compile=no
    20151     ;;
    20152 esac
    20153 { echo "$as_me:$LINENO: Configuring ASL to build $AMPLSOLVER_A." >&5
    20154 echo "$as_me: Configuring ASL to build $AMPLSOLVER_A." >&6;}
     20143if test "x$coin_cc_is_cl" = xtrue ; then
     20144  AMPLSOLVER_A=libamplsolver.lib
     20145else
     20146  AMPLSOLVER_A=libamplsolver.a
     20147fi
    2015520148
    2015620149# Determine flags to be passed on the command line to (n)make. The main
     
    2032020313# Remove -Werror if present, to make sure we are not interrupting compilation
    2032120314# of ASL because of warning messages. The cl equivalent is -WX.
     20315# SV: Our buildsystem should never add these flags to the CFLAGS, so why bother checking for them?
     20316#     If the user added some, shouldn't we listen to it and not just remove them again?
    2032220317  bla=
    20323   if test x$msvc_compile = xyes ; then
     20318  if test "x$coin_cc_is_cl" = xtrue ; then
    2032420319    warnToErr="-WX"
    2032520320  else
     
    2033120326    fi
    2033220327  done
     20328
     20329# Add -fPIC -DPIC if we actually build shared libraries
     20330  if test x$enable_shared != xno; then
     20331    asladdcflags="$asladdcflags -fPIC -DPIC"
     20332  fi
     20333
    2033320334  ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
    2033420335
     
    2034620347# Limit GNU make to one thread. But remember that if we're building with
    2034720348# cl, ultimately we're going to use nmake, which knows nothing of this.
    20348   if test x$msvc_compile = xno ; then
     20349  if test "x$coin_cc_is_cl" != xtrue ; then
    2034920350    rm -rf conftest.mak
    2035020351    ($am_make -v > conftest.grp) 2>&5
     
    2036120362
    2036220363
    20363 # Set automake conditional and generate the output files.
    20364 
    20365 
    20366 
    20367 if test x$msvc_compile = xyes; then
    20368   MSVC_COMPILE_TRUE=
    20369   MSVC_COMPILE_FALSE='#'
    20370 else
    20371   MSVC_COMPILE_TRUE='#'
    20372   MSVC_COMPILE_FALSE=
    20373 fi
    20374 
     20364# generate the output files.
    2037520365
    2037620366          ac_config_files="$ac_config_files Makefile"
     
    2063720627Usually this means the macro was only invoked conditionally." >&5
    2063820628echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
    20639 Usually this means the macro was only invoked conditionally." >&2;}
    20640    { (exit 1); exit 1; }; }
    20641 fi
    20642 if test -z "${MSVC_COMPILE_TRUE}" && test -z "${MSVC_COMPILE_FALSE}"; then
    20643   { { echo "$as_me:$LINENO: error: conditional \"MSVC_COMPILE\" was never defined.
    20644 Usually this means the macro was only invoked conditionally." >&5
    20645 echo "$as_me: error: conditional \"MSVC_COMPILE\" was never defined.
    2064620629Usually this means the macro was only invoked conditionally." >&2;}
    2064720630   { (exit 1); exit 1; }; }
     
    2128021263s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t
    2128121264s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t
    21282 s,@MSVC_COMPILE_TRUE@,$MSVC_COMPILE_TRUE,;t t
    21283 s,@MSVC_COMPILE_FALSE@,$MSVC_COMPILE_FALSE,;t t
    2128421265s,@ASL_PCLIBS@,$ASL_PCLIBS,;t t
    2128521266s,@LIBEXT@,$LIBEXT,;t t
  • ThirdParty/ASL/trunk/configure.ac

    r2011 r2141  
    7070# Set a substitutable variable with the library name, and determine the compilation style.
    7171AC_SUBST(AMPLSOLVER_A)
    72 case "$CC" in
    73   cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    74     AMPLSOLVER_A=libamplsolver.lib
    75     msvc_compile=yes
    76     ;;
    77   *)
    78     AMPLSOLVER_A=libamplsolver.a
    79     msvc_compile=no
    80     ;;
    81 esac
    82 AC_MSG_NOTICE([Configuring ASL to build $AMPLSOLVER_A.])
     72if test "x$coin_cc_is_cl" = xtrue ; then
     73  AMPLSOLVER_A=libamplsolver.lib
     74else
     75  AMPLSOLVER_A=libamplsolver.a
     76fi
    8377
    8478# Determine flags to be passed on the command line to (n)make. The main
     
    133127# Remove -Werror if present, to make sure we are not interrupting compilation
    134128# of ASL because of warning messages. The cl equivalent is -WX.
     129# SV: Our buildsystem should never add these flags to the CFLAGS, so why bother checking for them?
     130#     If the user added some, shouldn't we listen to it and not just remove them again?
    135131  bla=
    136   if test x$msvc_compile = xyes ; then
     132  if test "x$coin_cc_is_cl" = xtrue ; then
    137133    warnToErr="-WX"
    138134  else
     
    144140    fi
    145141  done
     142 
     143# Add -fPIC -DPIC if we actually build shared libraries
     144  if test x$enable_shared != xno; then
     145    asladdcflags="$asladdcflags -fPIC -DPIC"
     146  fi
     147 
    146148  ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
    147149
     
    159161# Limit GNU make to one thread. But remember that if we're building with
    160162# cl, ultimately we're going to use nmake, which knows nothing of this.
    161   if test x$msvc_compile = xno ; then
     163  if test "x$coin_cc_is_cl" != xtrue ; then
    162164    rm -rf conftest.mak
    163165    ($am_make -v > conftest.grp) 2>&5
     
    173175AC_ARG_VAR(ASLMAKEFLAGS, [Compilation flags necessary for compiling the AMPL solver library])
    174176
    175 # Set automake conditional and generate the output files.
    176 
    177 AM_CONDITIONAL(MSVC_COMPILE, test x$msvc_compile = xyes)
     177# generate the output files.
    178178
    179179AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.