]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autoreconf.in (autoreconf): Run automake after autoconf and
authorAkim Demaille <akim@epita.fr>
Wed, 24 Apr 2002 16:28:39 +0000 (16:28 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 24 Apr 2002 16:28:39 +0000 (16:28 +0000)
autoheader, so that automake does not complain about a missing
config.h.in that was to be created.

ChangeLog
bin/autoreconf.in

index 3f5787b3c96cdcbe844e7c8be0223b4a6a6c0328..b0ae74474f23951df584fa291ed99d664e43bc25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-24  Akim Demaille  <akim@epita.fr>
+
+       * bin/autoreconf.in (autoreconf): Run automake after autoconf and
+       autoheader, so that automake does not complain about a missing
+       config.h.in that was to be created.
+
 2002-04-23  Akim Demaille  <akim@epita.fr>
 
        * bin/autoheader.in (parse_args): --warning takes an argument.
index 2b75bfb09632de8fe313cbf867b34ec5a9018a5c..6c5e1624ec4d3d965a0fca690f1dae472b10bf48 100644 (file)
@@ -448,30 +448,17 @@ sub autoreconf ($)
     }
 
 
-  # ------------------ #
-  # Running automake.  #
-  # ------------------ #
-
-  # Assumes that there is a Makefile.am in the topmost directory.
-  if (!-f 'Makefile.am')
-    {
-      verbose "$configure_ac: not using Automake";
-    }
-  else
-    {
-      # We should always run automake, and let it decide whether it shall
-      # update the file or not.  In fact, the effect of `$force' is already
-      # included in `$automake' via `--no-force'.
-      xsystem ($automake);
-    }
-
-
   # ------------------ #
   # Running autoconf.  #
   # ------------------ #
 
-  # Don't try to be smarter than `autoconf', which does its own
-  # up to date checks.
+  # Don't try to be smarter than `autoconf', which does its own up to
+  # date checks.
+  #
+  # We prefer running autoconf before autoheader, because (i) the
+  # latter runs the former, and (ii) autoconf is stricter than
+  # autoheader.  So all in all, autoconf should give better error
+  # messages.
   xsystem ($autoconf);
 
 
@@ -481,7 +468,12 @@ sub autoreconf ($)
 
   # We now consider that if AC_CONFIG_HEADERS is used, then autoheader
   # is used too.
-  # Just as for autoconf, up to date ness is performed by the tool itself.
+  #
+  # Just as for autoconf, up to date ness is performed by the tool
+  # itself.
+  #
+  # Run it before automake, since the latter checks the presence of
+  # config.h.in when it sees an AC_CONFIG_HEADERS.
   if (!$uses_autoheader)
     {
       verbose "$configure_ac: not using Autoheader";
@@ -491,6 +483,24 @@ sub autoreconf ($)
       xsystem ($autoheader);
     }
 
+
+  # ------------------ #
+  # Running automake.  #
+  # ------------------ #
+
+  # Assumes that there is a Makefile.am in the topmost directory.
+  if (!-f 'Makefile.am')
+    {
+      verbose "$configure_ac: not using Automake";
+    }
+  else
+    {
+      # We should always run automake, and let it decide whether it shall
+      # update the file or not.  In fact, the effect of `$force' is already
+      # included in `$automake' via `--no-force'.
+      xsystem ($automake);
+    }
+
   chdir $cwd
     or die "$me: cannot chdir to $cwd: $!\n";
 }