[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
90-ac-lang-pushdef.patch
From: |
Akim Demaille |
Subject: |
90-ac-lang-pushdef.patch |
Date: |
Sat, 23 Dec 2000 09:32:52 +0100 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* aclang.m4: Use m4_copy to duplicate macros.
(AC_LANG_PUSH): In order to have AC_LANG's simplifications
effective, be sure to let _AC_LANG be the old language before
calling AC_LANG.
Index: aclang.m4
--- aclang.m4 Tue, 19 Dec 2000 20:30:11 +0100 akim (ace/b/32_aclang.m4 1.5.3.60
644)
+++ aclang.m4 Fri, 22 Dec 2000 17:43:35 +0100 akim (ace/b/32_aclang.m4 1.5.3.60
644)
@@ -126,7 +126,7 @@ AC_DEFUN([AC_LANG],
# ------------------
# Save the current language, and use LANG.
m4_define([AC_LANG_PUSH],
-[m4_pushdef([_AC_LANG])dnl
+[m4_pushdef([_AC_LANG], m4_defn([_AC_LANG]))dnl
AC_LANG([$1])])
@@ -431,31 +431,31 @@ m4_define([AC_LANG_SOURCE(C++)],
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
# ----------------------------------------
# Same as C.
-m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
+m4_copy([AC_LANG_PROGRAM(C)], [AC_LANG_PROGRAM(C++)])
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
# -------------------------------------
# Same as C.
-m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
+m4_copy([AC_LANG_CALL(C)], [AC_LANG_CALL(C++)])
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
# ------------------------------------
# Same as C.
-m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
+m4_copy([AC_LANG_FUNC_LINK_TRY(C)], [AC_LANG_FUNC_LINK_TRY(C++)])
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
# ---------------------------------------------------
# Same as C.
-m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)],
m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
+m4_copy([AC_LANG_BOOL_COMPILE_TRY(C)], [AC_LANG_BOOL_COMPILE_TRY(C++)])
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
# -------------------------------------------
# Same as C.
-m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
+m4_copy([AC_LANG_INT_SAVE(C)], [AC_LANG_INT_SAVE(C++)])
- 90-ac-lang-pushdef.patch,
Akim Demaille <=