Re: aclocal: warning: AC_CANONICAL_HOST invoked multiple times

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

According to Sam Steingold on 10/17/2007 10:14 AM:
> I get the following warning:
> 
> aclocal -I `pwd`/src/m4 -I `pwd`/src/glm4 \
>         --output=src/autoconf/aclocal.m4
> configure.ac:87: warning: AC_CANONICAL_BUILD invoked multiple times
...
> 
> how do I avoid this warning?

Generally, these sorts of errors can be avoided by using
AC_REQUIRE([AC_CANONICAL_BUILD]) rather than flat-out invoking
AC_CANONICAL_BUILD.

On the other hand, this ChangeLog may shed some light on the matter:
2005-08-26  Stepan Kasal  <kasal@xxxxxx>
	* lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
	AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
	but change the m4_divert_text to m4_divert_once.

The message is printed by AC_DEFUN_ONCE, but the current git sources of
Autoconf don't use that any more as of the above-mentioned change.  So my
guess is that you are still using autoconf 2.59 instead of 2.61.

Try upgrading, and seeing if that makes the message disappear.

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

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

iD8DBQFHGANM84KuGfSFAYARAjFdAKDI6fKf+7JfaUqP6XvtVr7Qtao19QCgiNxf
25gVgxf92MiCO/ROCEJg4/E=
=lw7y
-----END PGP SIGNATURE-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux