exporting env var AUTOM4TE in autoreconf

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

exporting env var AUTOM4TE in autoreconf

by Peter Johansson-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have Autoconf 2.64 installed in `/usr/local/bin'
and Autoconf 2.63 installed in
`~/local/autoconf-2.63/bin/'
the latter is not in my path so `which autoconf' gives
`/usr/local/bin/autoconf'

In a project I wanted to check that the configure.ac still works with
autoconf 2.63 so I issued
~/local/autoreconf-2.63/bin/autoreconf which gave the following output

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
aclocal.m4:16: warning: this file was generated for autoconf 2.64.
You have another version of autoconf.  It may work, but is not
guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically
`autoreconf'.
autoreconf: configure.ac: not running libtoolize: --install not given
...


IIUC, the problem is that aclocal here calls autom4te 2.64 and not 2.63.
As aclocal has support for  environement variable AUTOM4TE I wonder if
it would make sense if autoreconf exported this variable to something
sensible. If the variable is already set there is no use of overriding
the user's choice, but if it's not set one could set it to
@bindir@/@autom4te-name@.

Thanks
Peter

--
Peter Johansson

svndigest maintainer, http://dev.thep.lu.se/svndigest
yat maintainer,       http://dev.thep.lu.se/yat




Re: exporting env var AUTOM4TE in autoreconf

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

According to Peter Johansson on 10/23/2009 12:30 PM:
>
> IIUC, the problem is that aclocal here calls autom4te 2.64 and not 2.63.
> As aclocal has support for  environement variable AUTOM4TE I wonder if
> it would make sense if autoreconf exported this variable to something
> sensible. If the variable is already set there is no use of overriding
> the user's choice, but if it's not set one could set it to
> @bindir@/@autom4te-name@.

Yes, that sounds like a reasonable idea.  Would you care to submit a patch?

- --
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/

iEYEARECAAYFAkrlk+sACgkQ84KuGfSFAYA8YQCgnoLPdQISkywSJnvONVy3YPk9
tOkAnRtVsS+skecYdFPliUiImYYGLBcG
=/LaK
-----END PGP SIGNATURE-----