]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
authorAkim Demaille <akim@epita.fr>
Fri, 3 Oct 2003 07:30:01 +0000 (07:30 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 3 Oct 2003 07:30:01 +0000 (07:30 +0000)
* bin/autoreconf.in (autoreconf_current_directory): Create the
AUX_DIR if needed, for sake of automake --add-missing etc.
Suggested by Alexandre Duret-Lutz.

ChangeLog
NEWS
bin/autoreconf.in
lib/autom4te.in

index 6dcf25504bc0bca105ed8b66c42a45cc7527e635..b4945c4083bf6ea76f150837e975ac764a48f7dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-03  Akim Demaille  <akim@epita.fr>
+
+       * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
+       * bin/autoreconf.in (autoreconf_current_directory): Create the
+       AUX_DIR if needed, for sake of automake --add-missing etc.
+       Suggested by Alexandre Duret-Lutz.
+
 2003-10-03  Akim Demaille  <akim@epita.fr>
 
        * configure.ac: Quotation and formatting changes.
diff --git a/NEWS b/NEWS
index 97448611f7a260fc3d93e20542ecaa1a4bc0dd9b..6afa02de7df0f3965f5880b6116817f10a033f62 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,10 @@
-* Major changes in Autoconf 2.57f                       -*- outline -*-
+* Major changes in Autoconf 2.57g                       -*- outline -*-
+
+** autoreconf and auxiliary directory
+  Autoreconf creates the auxiliary directory if needed.  This is
+  especially useful for initial "bootstrapping" of fresh CVS checkouts.
+
+* Major changes in Autoconf 2.57f
 
   Released 2003-10-01, by Akim Demaille.
 
index aa0f2e28a52071dee74c15625deab84b4e1dab9c..2859cff1e5e7068af0d6f33631cb7d69bd032918 100644 (file)
@@ -423,6 +423,7 @@ sub autoreconf_current_directory ()
   # Perform a single trace reading to avoid --force forcing a rerun
   # between two --trace, that's useless.  If there is no AC_INIT, then
   # we are not interested: it looks like a Cygnus thingy.
+  my $aux_dir;
   my $uses_gettext_via_traces;
   my $uses_libtool;
   my $uses_autoheader;
@@ -433,6 +434,7 @@ sub autoreconf_current_directory ()
      . join (' --trace=', '',
             # If you change this list, update the
             # `Autoreconf-preselections' section of autom4te.in.
+            'AC_CONFIG_AUX_DIR:AC_CONFIG_AUX_DIR:\$1',
             'AC_CONFIG_HEADERS',
             'AC_CONFIG_SUBDIRS:AC_CONFIG_SUBDIRS:\$1',
             'AC_INIT',
@@ -442,6 +444,7 @@ sub autoreconf_current_directory ()
      . ' |');
   while ($_ = $traces->getline)
     {
+      $aux_dir = $1                 if /AC_CONFIG_AUX_DIR:(.*)/;
       $uses_autoconf = 1            if /AC_INIT/;
       $uses_gettext_via_traces = 1  if /AM_GNU_GETTEXT/;
       $uses_libtool = 1             if /AC_PROG_LIBTOOL/;
@@ -470,6 +473,24 @@ sub autoreconf_current_directory ()
     if $uses_gettext && ! $uses_gettext_via_traces;
 
 
+  # ---------------------------- #
+  # Setting up the source tree.  #
+  # ---------------------------- #
+
+  # libtoolize, automake --add-missing etc. will drop files in the
+  # $AUX_DIR.  But these tools fail to install these files if the
+  # directory itself does not exist, which valid: just imagine a CVS
+  # repository with hand written code only (there is not even a need
+  # for a Makefile.am!).
+
+  if (defined $aux_dir && ! -d $aux_dir)
+    {
+      verb "$configure_ac: creating directory $aux_dir";
+      mkdir $aux_dir
+       or error "cannot create $aux_dir: $!";
+    }
+
+
   # -------------------- #
   # Running libtoolize.  #
   # -------------------- #
index 30c974411a0087c93fba825a9a78fc81362e16dd..7cb868a151bea43acdd39b9e6f97b3be6c559081 100644 (file)
@@ -61,6 +61,7 @@ end-language: "Automake-preselections"
 ## -------------------------- ##
 
 begin-language: "Autoreconf-preselections"
+args: --preselect AC_CONFIG_AUX_DIR
 args: --preselect AC_CONFIG_HEADERS
 args: --preselect AC_CONFIG_SUBDIRS
 args: --preselect AC_INIT