]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Open the access to AH_ to users.
authorAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 13:54:48 +0000 (13:54 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 13:54:48 +0000 (13:54 +0000)
* autoheader.m4 (autoheader::AH_DEFUN): New macro.
* tests/tools.m4: New file, in charge of testing the scripts.
All the dependencies adapted.
* tests/actest.m4 (autoheader::AC_TATOOINE): New macro, used while
testing autoheader.
* tests/atspecific.m4: Create config.hin instead of config.h.in.

ChangeLog
autoheader.m4
tests/Makefile.am
tests/actest.m4
tests/suite.m4

index 3659593216d97af047379f56d84877b15bb69226..f3de4faa97f8fa0e91d1eeddf68397daf85e040c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2000-02-08  Akim Demaille  <akim@epita.fr>
+
+       Open the access to AH_ to users.
+
+       * autoheader.m4 (autoheader::AH_DEFUN): New macro.
+       * tests/tools.m4: New file, in charge of testing the scripts.
+       All the dependencies adapted.
+       * tests/actest.m4 (autoheader::AC_TATOOINE): New macro, used while
+       testing autoheader.
+       * tests/atspecific.m4: Create config.hin instead of config.h.in.
+
 2000-02-08  Akim Demaille  <akim@epita.fr>
 
        Because of commas and brackets, m4_split must mess with the
index 32277182e01e34205f108e24997fb77ab73311bf..0ab79634c5bea904c1593f9a2b19ab386b161128 100644 (file)
@@ -66,6 +66,15 @@ define(AH_DEFUN,
 defn([$1])
 [$2])])
 
+# The definition of `AH_DEFUN' above is used for accumulating the
+# definitions before entering the `autoheader' namespace.  Once we
+# enter the autoheader::, `AH_DEFUN' must be understood as immediatly
+# defining.  This happens when we read user m4 files.
+m4_define([autoheader::AH_DEFUN],
+defn([m4_define]))
+m4_namespace_register([AH_DEFUN], [autoheader])
+
+
 
 # These are alternate definitions of some macros, which produce
 # strings in the output marked with "@@@" so we can easily extract
index aa2f657b81093b1b05e0dc1a8d27be7a6f769389..2a6fcbfa66587d95e0e45d73fed84ebeb8dccd98 100644 (file)
@@ -20,7 +20,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-SUITE = torture.m4 semantics.m4 syntax.m4 base.m4
+SUITE = torture.m4 semantics.m4 syntax.m4 base.m4 tools.m4
 
 # We don't actually distribute the testsuite, since one only
 # needs m4 to build it, m4 being required anyway to install Autoconf.
index c9281115f46339cc1604a569c368c2e7e4410330..d019bef366294d9c293edfcb399560a7462f2119 100644 (file)
@@ -44,3 +44,10 @@ AC_DEFINE_UNQUOTED(AC_DUMMY_VAR($1),
                    [Define to a long string if your `Autoconf' works
                     properly.])
 AC_SUBST(AC_DUMMY_VAR($1))])
+
+
+# autoheader::AC_TATOOINE
+# -----------------------
+# Template a dummy entries for config header.
+AH_DEFUN(AC_TATOOINE,
+[AH_TEMPLATE(Tatooine, The planet where Luke was raised.)])
index 587efa16031801bff59be767eefeaf2964ecc035..46c33c2c3e1b66ff9fba81c0b69462be635c7c79 100644 (file)
@@ -17,6 +17,7 @@ EOF
 dnl Run the tests from the most selective to the easiest.
 
 AT_INCLUDE(torture.m4)
-AT_INCLUDE(base.m4)
 AT_INCLUDE(semantics.m4)
 AT_INCLUDE(syntax.m4)
+AT_INCLUDE(tools.m4)
+AT_INCLUDE(base.m4)