From: Akim Demaille Date: Tue, 8 Feb 2000 13:54:48 +0000 (+0000) Subject: Open the access to AH_ to users. X-Git-Tag: autoconf-2.50~1190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b54d44e0c3c33820db75c7bea4d7b34b9f768ca7;p=thirdparty%2Fautoconf.git 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. --- diff --git a/ChangeLog b/ChangeLog index 365959321..f3de4faa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2000-02-08 Akim Demaille + + 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 Because of commas and brackets, m4_split must mess with the diff --git a/autoheader.m4 b/autoheader.m4 index 32277182e..0ab79634c 100644 --- a/autoheader.m4 +++ b/autoheader.m4 @@ -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 diff --git a/tests/Makefile.am b/tests/Makefile.am index aa2f657b8..2a6fcbfa6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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. diff --git a/tests/actest.m4 b/tests/actest.m4 index c9281115f..d019bef36 100644 --- a/tests/actest.m4 +++ b/tests/actest.m4 @@ -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.)]) diff --git a/tests/suite.m4 b/tests/suite.m4 index 587efa160..46c33c2c3 100644 --- a/tests/suite.m4 +++ b/tests/suite.m4 @@ -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)