* 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>
+
+ 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
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
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.
[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.)])
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)