]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
A macro which is not defined with AC_DEFUN should not be
authorAkim Demaille <akim@epita.fr>
Mon, 26 Jun 2000 09:04:40 +0000 (09:04 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 26 Jun 2000 09:04:40 +0000 (09:04 +0000)
AC_REQUIRE'd, since it doesn't AC_PROVIDE itself.

* acgeneral.m4 (AC_REQUIRE): Issue a warning when after expansion,
the macro is not AC_PROVIDE'd.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index b87b89028971b3f4ab25254e7a082a6390b84786..8a01f9d0a7b4dd1da006a296bd7b1b3b07948380 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-06-26  Akim Demaille  <akim@epita.fr>
+
+       A macro which is not defined with AC_DEFUN should not be
+       AC_REQUIRE'd, since it doesn't AC_PROVIDE itself.
+
+       * acgeneral.m4 (AC_REQUIRE): Issue a warning when after expansion,
+       the macro is not AC_PROVIDE'd.
+
 2000-06-26  Akim Demaille  <akim@epita.fr>
 
        Various cleanups.
index 23dc4dd89ef18f684c3f52994d076aad2c7c2e50..14afd0f7fc5aaed132c33589fde944020b1e5b98 100644 (file)
@@ -275,6 +275,10 @@ define([AC_REQUIRE],
 [AC_PROVIDE_IFELSE([$1],
                    [],
                    [AC_DIVERT(m4_eval(AC_DIVERT_DIVERSION - 1), [$1])])dnl
+AC_PROVIDE_IFELSE([$1],
+                  [],
+                  [AC_DIAGNOSE([syntax],
+                               [$1 is AC_REQUIRE'd but is not AC_DEFUN'd])])dnl
 ])
 
 
index 23dc4dd89ef18f684c3f52994d076aad2c7c2e50..14afd0f7fc5aaed132c33589fde944020b1e5b98 100644 (file)
@@ -275,6 +275,10 @@ define([AC_REQUIRE],
 [AC_PROVIDE_IFELSE([$1],
                    [],
                    [AC_DIVERT(m4_eval(AC_DIVERT_DIVERSION - 1), [$1])])dnl
+AC_PROVIDE_IFELSE([$1],
+                  [],
+                  [AC_DIAGNOSE([syntax],
+                               [$1 is AC_REQUIRE'd but is not AC_DEFUN'd])])dnl
 ])