bug-m4
[Top][All Lists]
Advanced

[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 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
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
-----BEGIN PGP SIGNATURE-----
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

iD8DBQFEjWhA84KuGfSFAYARAv/hAKDIvD11d8XxtWtU3DMVQtHXyRPP5QCfedlx
4caSAzbw9CmW21n8U1/QKO0=
=hX1S
-----END PGP SIGNATURE-----




reply via email to

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