[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
put AC_BEFORE decls in the right place [libtool--gary--1.0--patch-41]
From: |
Gary V. Vaughan |
Subject: |
put AC_BEFORE decls in the right place [libtool--gary--1.0--patch-41] |
Date: |
Fri, 2 Sep 2005 11:56:14 +0100 (BST) |
User-agent: |
mailnotify/0.6 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Okay to commit?
AC_BEFORE only works if declarations are made inside the macro
cited as the first argument:
* libltdl/m4/libtool.m4 (LT_OUTPUT): Move AC_BEFORE decls...
(LT_INIT, LT_LANG): ...to the macro that has to come first.
- --
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 0.9
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDGC/NFRMICSmD1gYRAjvwAKCAwiJvF+kqq9LrUFCMdAlOotWMjQCgpcUb
vq79J+Vso1E2afsLvqhBVE8=
=QAbN
-----END PGP SIGNATURE-----
* looking for address@hidden/libtool--gary--1.0--patch-40 to compare with
* comparing to address@hidden/libtool--gary--1.0--patch-40
M libltdl/m4/libtool.m4
M ChangeLog
* modified files
Index: Changelog
from Gary V. Vaughan <address@hidden>
AC_BEFORE only works if declarations are made inside the macro
cited as the first argument:
* libltdl/m4/libtool.m4 (LT_OUTPUT): Move AC_BEFORE decls...
(LT_INIT, LT_LANG): ...to the macro that has to come first.
--- orig/libltdl/m4/libtool.m4
+++ mod/libltdl/m4/libtool.m4
@@ -56,6 +56,8 @@
AC_DEFUN([LT_INIT],
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW)$])dnl
@@ -534,11 +536,7 @@
# AC_OUTPUT is called), incase it is used in configure for compilation
# tests.
AC_DEFUN([LT_OUTPUT],
-[dnl This macro can only work once all the language testing is completed
-AC_BEFORE([LT_INIT], [LT_OUTPUT])
-AC_BEFORE([LT_LANG], [LT_OUTPUT])
-
-: ${CONFIG_LT=./config.lt}
+[: ${CONFIG_LT=./config.lt}
AC_MSG_NOTICE([creating $CONFIG_LT])
cat >"$CONFIG_LT" <<_LTEOF
#! $SHELL
@@ -748,7 +746,8 @@
# -------------
# Enable libtool support for the given language if not already enabled.
AC_DEFUN([LT_LANG],
-[m4_case([$1],
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
+m4_case([$1],
[C], [_LT_LANG(C)],
[C++], [_LT_LANG(CXX)],
[Java], [_LT_LANG(GCJ)],
- put AC_BEFORE decls in the right place [libtool--gary--1.0--patch-41],
Gary V. Vaughan <=