[PATCH] Pass Autom4te path down to programs that autoreconf invokes.

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown [PATCH] Pass Autom4te path down to programs that autoreconf invokes.

by Paolo Bonzini-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* bin/autoreconf.in (autom4te): New variable.  Export its value
as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
* THANKS: Update.
---
        Like this?

 ChangeLog         |    7 +++++++
 THANKS            |    1 +
 bin/autoreconf.in |    2 ++
 3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6ff2239..7886907 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-26  Paolo Bonzini  <bonzini@...>
+
+ Pass Autom4te path down to programs that autoreconf invokes.
+ * bin/autoreconf.in (autom4te): New variable.  Export its value
+ as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
+ * THANKS: Update.
+
 2009-10-01  Paolo Bonzini  <bonzini@...>
 
  Unconditionally check for junk ./--version after mkdir search loop.
diff --git a/THANKS b/THANKS
index ba239ca..9ce9360 100644
--- a/THANKS
+++ b/THANKS
@@ -293,6 +293,7 @@ Per Øyvind Karlsen          peroyvind@...
 Peter Breitenlohner         peb@...
 Peter Eisentraut            peter_e@...
 Peter Hendrickson           pdh@...
+Peter Johansson             trojkan@...
 Peter O'Gorman              peter@...
 Peter Palfrader             weasel@...
 Peter Simons                simons@...
diff --git a/bin/autoreconf.in b/bin/autoreconf.in
index e7b60ef..9f6d706 100644
--- a/bin/autoreconf.in
+++ b/bin/autoreconf.in
@@ -109,6 +109,7 @@ Written by David J. MacKenzie and Akim Demaille.
 # Lib files.
 my $autoconf   = $ENV{'AUTOCONF'}   || '@bindir@/@autoconf-name@';
 my $autoheader = $ENV{'AUTOHEADER'} || '@bindir@/@autoheader-name@';
+my $autom4te   = $ENV{'AUTOM4TE'}   || '@bindir@/@autom4te-name@';
 my $automake   = $ENV{'AUTOMAKE'}   || 'automake';
 my $aclocal    = $ENV{'ACLOCAL'}    || 'aclocal';
 my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
@@ -677,6 +678,7 @@ parse_args;
 
 # Autoreconf all the given configure.ac.  Unless `--no-recursive' is passed,
 # AC_CONFIG_SUBDIRS will be traversed in &autoreconf_current_directory.
+$ENV{'AUTOM4TE'} = $autom4te;
 for my $directory (@ARGV)
   {
     require_configure_ac ($directory);
--
1.6.2.5




Re: [PATCH] Pass Autom4te path down to programs that autoreconf invokes.

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paolo Bonzini on 10/26/2009 10:20 AM:
> * bin/autoreconf.in (autom4te): New variable.  Export its value
> as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
> * THANKS: Update.
> ---
> Like this?

Yep, that looks like it will do the right thing.  Please commit.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrmZX4ACgkQ84KuGfSFAYDOewCfX1fGEMPvvxsEhZk8zEasVxM2
jCYAn2miF37prTFlwLa5CrHZeKUwNFho
=Urxm
-----END PGP SIGNATURE-----