[Top][All Lists]

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

changing compiler flags at configure time

From: Eric Blake
Subject: changing compiler flags at configure time
Date: Mon, 12 Jun 2006 07:12:33 -0600
User-agent: Thunderbird (Windows/20060516)

Hash: SHA1

CVS head of m4 currently has a macro, ltdl/m4/debug.m4, that attempts to
alter compile-time flags according to whether --enable-debug is passed to
./configure.  However, it uses AC_DISABLE_SHARED and AC_ENABLE_SHARED
inside a shell if-then-else to enforce this decision, and autoupdate
reports that both macors are obsolete and should now be done by LT_INIT.
Hmm, AC_ENABLE_SHARED and its replacement of the parameter 'shared' to
LT_INIT aren't even mentioned in libtool.texi.

Is it safe to call LT_INIT more than once, in order to conditionally
change what libtool's defaults should be according to the outcome of an
AC_ARG_ENABLE?  Or is it safe to pass a shell variable instead of a
literal as the argument to LT_INIT?

Also, m4 uses the obsolete AC_LIBTOOL_COMPILER_OPTION in one place, and
its replacement _LT_COMPILER_OPTION in another.  Any chance that we can
document and make this macro public, so that m4 isn't relying on
undocumented internals of libtool?

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]