[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LIBTOOL_DEPS wrong when AC_CANONICAL_BUILD not called before initializin
LIBTOOL_DEPS wrong when AC_CANONICAL_BUILD not called before initializing libtool
Fri, 14 Mar 2008 20:18:55 +0100
On Fri, Mar 14, 2008 at 07:53:13PM +0100, Jakub Bogusz wrote:
> Reduced test:
> AC_INIT([libtool-test], )
> if test "$with_canonical" != ""; then
> echo "NM: $NM"
> echo "OBJDUMP: $OBJDUMP"
And I've just found another problem related to AC_CANONICAL_BUILD placed
to late (or ltmain= substitution too early). For this one cross compiler
is not needed. Just add one more line at the end of the above configure.ac:
echo "LIBTOOL_DEPS: $LIBTOOL_DEPS"
then regenerate configure.
`./configure` output ends with:
`./configure --with-canonical` output ends with:
Note the missing "." in the first case. It's because of empty ac_aux_dir
(used for ltmain substitution in configure) which is set by one of
AC_CONFIG_AUX_DIR* macros, with default one called from
Jakub Bogusz http://qboosh.pl/