mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-06 13:56:25 +08:00
aa7b778007
the list. * ltcf-cxx.sh: Remove any residual `a.out' files resulting from the "eval $output_verbose_link_cmds." * ltconfig.in: Cleaned up nested quotes that were introduced with the tags patch. This fixes part sh.test failure. * ltmain.in: Check if "$run" is of zero length before creating a `.lo' file. This fixes the dryrun.test failure. Cleaned up nested quotes that were introduced with the tags patch. This fixes another part sh.test failure. Remove "$libobj" not "libobj." Exit with an error if both $object_name and $old_object are set to "none" in the corresponding `.lo' file. This should never happen. Changed remaining uses of "mkdir" to "$mkdir." Added dry run case to `.lo' case in link mode. This fixes the link-2.test failure. (object_name, old_object): Prepend the subdirectory the `.lo' resides in to the object names extracted from the `.lo' file. This fixes the build-relink2.test failure. (tempemovelist): Use $echo "X..." instead of echo "..." since $Xsed is being used. This fixes the last part of the sh.test failure. * tagdemo/Makefile.am, tagdemo/Makefile.in, tagdemo/README, tagdemo/acinclude.m4, tagdemo/aclocal.m4, tagdemo/configure, tagdemo/configure.in, tagdemo/foo.cpp, tagdemo/foo.h, tagdemo/main.cpp, tests/tagdemo-conf.test tests/tagdemo-exec.test tests/tagdemo-make.test tests/tagdemo-shared.test tests/tagdemo-static.test: Added a new tagdemo that exercises libtool's tagged configuration support found in the multilanguage branch. * tests/Makefile.am (TESTS): Added the tagdemo tests to the list. * tests/quote.test: Updated to HEAD branch version. This fixes the quote.test failure.
73 lines
1.6 KiB
Plaintext
73 lines
1.6 KiB
Plaintext
dnl
|
|
dnl $Id$
|
|
|
|
dnl
|
|
dnl An autoconf script to automatically configure the sample C++ "foo"
|
|
dnl application.
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
dnl
|
|
|
|
|
|
AC_INIT(foo.cpp)dnl
|
|
|
|
dnl Check what platform we are running on.
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
dnl Cause GNU Automake to initialize the state of things and run
|
|
dnl some sanity checks
|
|
PACKAGE=foo
|
|
VERSION=0.1
|
|
|
|
AM_INIT_AUTOMAKE("$PACKAGE", "$VERSION", DUMMY)dnl
|
|
|
|
dnl Check the C compiler and preprocessor.
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AC_PROG_CC_C_O
|
|
|
|
dnl Check the C++ compiler and preprocessor.
|
|
AC_PROG_CXX
|
|
AC_PROG_CXXCPP
|
|
|
|
dnl Set the test language to C++.
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
|
|
# AC_EXEEXT macros only works for C compilers!
|
|
# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
|
|
# the test language to C. We do it before any libtool setup macros are
|
|
# called so that the proper values are cached beforehand. We also do
|
|
# it before any linker flags (LDFLAGS) are set so that C++ specific
|
|
# ones don't break the tests.
|
|
AC_LANG_SAVE
|
|
AC_LANG_C
|
|
AC_OBJEXT
|
|
AC_EXEEXT
|
|
AC_LANG_RESTORE
|
|
|
|
dnl Setup Libtool
|
|
|
|
dnl Check for libtool and turn on Automake processing for Libtool
|
|
AM_PROG_LIBTOOL
|
|
|
|
dnl Enable C++ support in libtool
|
|
dnl This causes a C++ configuration tag to be appended to the libtool
|
|
dnl script generated during the above AC_PROG_LIBTOOL macro execution.
|
|
AC_LIBTOOL_CXX
|
|
|
|
dnl FIXME: We need a better place to add the libtool "tag" flag.
|
|
dnl This is a really ugly hack.
|
|
LIBTOOL="$LIBTOOL --tag=CXX"
|
|
|
|
AC_CHECK_HEADERS(math.h)
|
|
|
|
AC_CHECK_LIBM
|
|
AC_SUBST(LIBM)
|
|
|
|
AC_OUTPUT([
|
|
Makefile
|
|
],
|
|
[
|
|
echo "Done configuring package $PACKAGE"
|
|
])
|