summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>1999-09-23 14:06:27 +0000
committerAkim Demaille <akim@epita.fr>1999-09-23 14:06:27 +0000
commita6fa41a1ff5d178238fe189d8b1eb03faccfd9ca (patch)
tree5536775cf64420dd83a840cb75d8c5a2f1dab388
parentc46a290e31917833e73a6ac23e1ea01168a8cb66 (diff)
downloadautoconf-a6fa41a1ff5d178238fe189d8b1eb03faccfd9ca.tar.gz
1999-09-23 Pavel Roskin <pavel_roskin@geocities.com>exp-1999-09-25
Avoid that comments from aclocal.m4 show up in configure when using AC_REVISION. * acgeneral.m4: New diversion levels AC_DIVERSION_KILL and AC_DIVERSION_BINSH introduced. Use AC_DIVERSION_KILL as the initial value for AC_DIVERSION_CURRENT. (AC_INIT_BINSH): Set AC_DIVERSION_BINSH explicitly (AC_REVISION): Likewise. (AC_INIT): Set AC_DIVERSION_NOTICE when calling AC_INIT_NOTICE.
-rw-r--r--ChangeLog12
-rw-r--r--acgeneral.m418
-rw-r--r--lib/autoconf/general.m418
3 files changed, 38 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 55a1190d..f52d2eed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+1999-09-23 Pavel Roskin <pavel_roskin@geocities.com>
+
+ Avoid that comments from aclocal.m4 show up in configure when
+ using AC_REVISION.
+
+ * acgeneral.m4: New diversion levels AC_DIVERSION_KILL and
+ AC_DIVERSION_BINSH introduced. Use AC_DIVERSION_KILL as the
+ initial value for AC_DIVERSION_CURRENT.
+ (AC_INIT_BINSH): Set AC_DIVERSION_BINSH explicitly
+ (AC_REVISION): Likewise.
+ (AC_INIT): Set AC_DIVERSION_NOTICE when calling AC_INIT_NOTICE.
+
1999-09-23 Akim Demaille <akim@epita.fr>
* NEWS: Document AC_ARG_VAR.
diff --git a/acgeneral.m4 b/acgeneral.m4
index 142bd2e9..dbdfd46a 100644
--- a/acgeneral.m4
+++ b/acgeneral.m4
@@ -91,7 +91,8 @@ dnl m4 output diversions. We let m4 output them all in order at the end,
dnl except that we explicitly undivert AC_DIVERSION_SED, AC_DIVERSION_CMDS,
dnl and AC_DIVERSION_ICMDS.
-dnl AC_DIVERSION_NOTICE - 1 (= 0) AC_REQUIRE'd #! /bin/sh line
+define(AC_DIVERSION_KILL, -1)dnl suppress output
+define(AC_DIVERSION_BINSH, 0)dnl AC_REQUIRE'd #! /bin/sh line
define(AC_DIVERSION_NOTICE, 1)dnl copyright notice & option help strings
define(AC_DIVERSION_INIT, 2)dnl initialization code
define(AC_DIVERSION_NORMAL_4, 3)dnl AC_REQUIRE'd code, 4 level deep
@@ -119,8 +120,8 @@ divert(AC_DIVERSION_CURRENT)dnl
dnl Initialize the diversion setup.
define([AC_DIVERSION_CURRENT], AC_DIVERSION_NORMAL)
-dnl This will be popped by AC_REQUIRE in AC_INIT.
-pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_NOTICE)
+dnl Throw away output until AC_INIT is called.
+pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_KILL)
dnl The prologue for Autoconf macros.
dnl AC_PRO(MACRO-NAME)
@@ -1073,7 +1074,9 @@ dnl Try to have only one #! line, so the script doesn't look funny
dnl for users of AC_REVISION.
dnl AC_INIT_BINSH()
AC_DEFUN(AC_INIT_BINSH,
-[#! /bin/sh
+[AC_DIVERT_PUSH(AC_DIVERSION_BINSH)dnl
+#! /bin/sh
+AC_DIVERT_POP()dnl to KILL
])
dnl AC_INIT(UNIQUE-FILE-IN-SOURCE-DIR)
@@ -1083,7 +1086,9 @@ AC_DEFUN(AC_INIT,
[sinclude(acsite.m4)dnl
sinclude(./aclocal.m4)dnl
AC_REQUIRE([AC_INIT_BINSH])dnl
+AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
AC_INIT_NOTICE
+AC_DIVERT_POP()dnl to KILL
AC_DIVERT_POP()dnl to NORMAL
AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl
AC_INIT_PARSE_ARGS
@@ -1346,7 +1351,10 @@ dnl ### Version numbers
dnl AC_REVISION(REVISION-INFO)
AC_DEFUN(AC_REVISION,
[AC_REQUIRE([AC_INIT_BINSH])dnl
-[# From configure.in] translit([$1], $")])
+AC_DIVERT_PUSH(AC_DIVERSION_BINSH)dnl
+[# From configure.in] translit([$1], $")
+AC_DIVERT_POP()dnl to KILL
+])
dnl Subroutines of AC_PREREQ.
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index 142bd2e9..dbdfd46a 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -91,7 +91,8 @@ dnl m4 output diversions. We let m4 output them all in order at the end,
dnl except that we explicitly undivert AC_DIVERSION_SED, AC_DIVERSION_CMDS,
dnl and AC_DIVERSION_ICMDS.
-dnl AC_DIVERSION_NOTICE - 1 (= 0) AC_REQUIRE'd #! /bin/sh line
+define(AC_DIVERSION_KILL, -1)dnl suppress output
+define(AC_DIVERSION_BINSH, 0)dnl AC_REQUIRE'd #! /bin/sh line
define(AC_DIVERSION_NOTICE, 1)dnl copyright notice & option help strings
define(AC_DIVERSION_INIT, 2)dnl initialization code
define(AC_DIVERSION_NORMAL_4, 3)dnl AC_REQUIRE'd code, 4 level deep
@@ -119,8 +120,8 @@ divert(AC_DIVERSION_CURRENT)dnl
dnl Initialize the diversion setup.
define([AC_DIVERSION_CURRENT], AC_DIVERSION_NORMAL)
-dnl This will be popped by AC_REQUIRE in AC_INIT.
-pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_NOTICE)
+dnl Throw away output until AC_INIT is called.
+pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_KILL)
dnl The prologue for Autoconf macros.
dnl AC_PRO(MACRO-NAME)
@@ -1073,7 +1074,9 @@ dnl Try to have only one #! line, so the script doesn't look funny
dnl for users of AC_REVISION.
dnl AC_INIT_BINSH()
AC_DEFUN(AC_INIT_BINSH,
-[#! /bin/sh
+[AC_DIVERT_PUSH(AC_DIVERSION_BINSH)dnl
+#! /bin/sh
+AC_DIVERT_POP()dnl to KILL
])
dnl AC_INIT(UNIQUE-FILE-IN-SOURCE-DIR)
@@ -1083,7 +1086,9 @@ AC_DEFUN(AC_INIT,
[sinclude(acsite.m4)dnl
sinclude(./aclocal.m4)dnl
AC_REQUIRE([AC_INIT_BINSH])dnl
+AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
AC_INIT_NOTICE
+AC_DIVERT_POP()dnl to KILL
AC_DIVERT_POP()dnl to NORMAL
AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl
AC_INIT_PARSE_ARGS
@@ -1346,7 +1351,10 @@ dnl ### Version numbers
dnl AC_REVISION(REVISION-INFO)
AC_DEFUN(AC_REVISION,
[AC_REQUIRE([AC_INIT_BINSH])dnl
-[# From configure.in] translit([$1], $")])
+AC_DIVERT_PUSH(AC_DIVERSION_BINSH)dnl
+[# From configure.in] translit([$1], $")
+AC_DIVERT_POP()dnl to KILL
+])
dnl Subroutines of AC_PREREQ.