From: Paolo Bonzini Date: Thu, 28 Jun 2001 22:46:43 +0000 (+0000) Subject: * tagdemo/configure.ac, tagdemo/configure.in: USe the former instead of X-Git-Tag: release-1-4b~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5760d547b229989aa55693b6f414212463d1bbe7;p=thirdparty%2Flibtool.git * tagdemo/configure.ac, tagdemo/configure.in: USe the former instead of the latter. --- diff --git a/ChangeLog b/ChangeLog index 6daf9ff81..9e15f2ed4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ * libltdl/configure.ac, libltdl/configure.in: Ditto. * mdemo/configure.ac, mdemo/configure.in: Ditto. * pdemo/configure.ac, pdemo/configure.in: Ditto. + * tagdemo/configure.ac, tagdemo/configure.in: Ditto. * libltdl/acconfig.h: Deleted. * Makefile.am (libtool): libtool now depends on configure.ac. * libtool.m4 (_LT_AC_LOCK): Use 2.50's AC_LANG_PUSH/AC_LANG_POP @@ -23,7 +24,7 @@ 2001-06-28 Tim Van Holder - * pdemo/Makefile.am: Use '=' isntead of '+=' to shut up + * pdemo/Makefile.am: Use '=' instead of '+=' to shut up automake. 2001-06-27 Gary V. Vaughan diff --git a/tagdemo/configure.in b/tagdemo/configure.ac similarity index 79% rename from tagdemo/configure.in rename to tagdemo/configure.ac index ab17f3613..623fa297f 100644 --- a/tagdemo/configure.in +++ b/tagdemo/configure.ac @@ -8,10 +8,11 @@ dnl Process this file with autoconf to produce a configure script. dnl -AC_INIT(foo.cpp)dnl +AC_INIT +AC_CONFIG_SRCDIR([foo.cpp])dnl dnl Check what platform we are running on. -AC_CANONICAL_SYSTEM +AC_CANONICAL_TARGET([]) dnl Cause GNU Automake to initialize the state of things and run dnl some sanity checks @@ -30,7 +31,7 @@ AC_PROG_CXX AC_PROG_CXXCPP dnl Set the test language to C++. -AC_LANG_CPLUSPLUS +AC_LANG([C++]) # As of the writing of this demo, GNU Autoconf's AC_OBJEXT and # AC_EXEEXT macros only works for C compilers! @@ -39,11 +40,13 @@ AC_LANG_CPLUSPLUS # 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_DIAGNOSE([obsolete],[instead of using `AC_LANG', `AC_LANG_SAVE', +and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.]) + +AC_LANG_PUSH([C]) AC_OBJEXT AC_EXEEXT -AC_LANG_RESTORE +AC_LANG_POP dnl Setup Libtool @@ -55,9 +58,10 @@ AC_CHECK_HEADERS(math.h) AC_CHECK_LIBM AC_SUBST(LIBM) -AC_OUTPUT([ +AC_CONFIG_FILES([ Makefile - ], - [ - echo "Done configuring package $PACKAGE" ]) +AC_CONFIG_COMMANDS([default],[[ + echo "Done configuring package $PACKAGE" + ]],[[]]) +AC_OUTPUT