#401 configure.ac - some macros out of order

3.2.0
closed
Mark Miesfeld
5
2014-10-08
2007-08-31
Mark Miesfeld
No

When you run bootstrap for a unix build you get warning messages like the following:

[root@Falcon interpreter.new]# ./bootstrap
+ libtoolize --copy --force --automake
+ aclocal
configure.ac:61: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
autoconf/general.m4:1660: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:61: the top level
configure.ac:362: warning: AC_LIBTOOL_SETUP was called before AC_LIBTOOL_DLOPEN
/usr/share/aclocal/libtool.m4:1911: AC_LIBTOOL_DLOPEN is expanded from...
configure.ac:362: the top level

These warning indicate that the autoconf macros are being expanded out of order.

For instance from the gnu automake mailing list:

AM_INIT_AUTOMAKE calls AC_ARG_PROGRAM.
But it is an error to run AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM.

The same thing applies for AC_LIBTOOL_DLOPEN, its position in configure.ac is incorrect.

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2007-08-31

    Logged In: YES
    user_id=191588
    Originator: YES

    Committed revision 729.

    AC_CANONICAL_SYSTEM should be before AM_INIT_AUTOMAKE. Likewise, AC_LIBTOOL_DLOPEN should be before AC_PROG_LIBTOOL.

     


Anonymous


Cancel   Add attachments