autoconf
[Top][All Lists]
Advanced

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

Fwd: libtool--gary--1.0--patch-8


From: Gary V . Vaughan
Subject: Fwd: libtool--gary--1.0--patch-8
Date: Tue, 13 Apr 2004 16:56:26 +0100

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

In response to this thread:

Alexandre Oliva wrote:
On Apr  7, 2004, "Gary V. Vaughan" <address@hidden> wrote:
Agreed.  Autoconf generates a config.h that encourages #ifdef/#ifndef.

And then it promotes the use of #if.  I recall discussions about this
in the autoconf list years ago, and there was a conscious decision to
replace most uses of #ifdef with #if in the documentation, but I can't
find any wording that explicitly recommends the use of #if over
#ifdef.  Oh well...

I have had to patch up libltdl so that it doesn't give spurious warnings
when gcc isn't used:

Tree version:   address@hidden/libtool--devo--1.0
CVSROOT:        /cvsroot/libtool
TIMESTAMP:       1.1477 2004/04/13 15:30:10
Module name:    /cvsroot/libtool/libtool
Changes by:     address@hidden

Log Message:
        
        * libltdl/lt__pre89.h, libltdl/ltdl.c, libltdl/ltdl.h, libltdl/argz.c,
        libltdl/argz.h, libltdl/lt__glibc.h, libltdl/lt_dlloader.h,
        libltdl/lt__dirent.c, libltdl/lt__dirent.h, libltdl/lt__private.h,
        libltdl/lt__alloc.c, libltdl/lt__alloc.h, libltdl/lt_system.h,
        libltdl/loader-dld_link.c, libltdl/loader-dlopen.c,
        libltdl/loader-dyld.c,  libltdl/loader-loadlibrary.c,
        libltdl/loader-shl_load.c, libltdl/lt_error.h, libltdl/lt_mutex.h:
        Autoconf either defines to 1 or undefs the discovery macros it
        puts in config.h, and many (non-GNU) compilers throw a spurious
        warning when testing an #undef macro with #if.  For consistency,
        while we are touching all these lines, use defined(MACRO) style
        throughout.
        Reported by Bob Friesenhahn  <address@hidden>

I figured you might like to document that somewhere in autoconf.texi to
save anyone else from the same mistake.

Cheers,
        Gary.
- --
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQFAfA2qFRMICSmD1gYRAiKOAKDD26wM5vZRv1SWV6D+ya48QDYabgCguZPA
aUMolI/bo139+mzkajEqOpM=
=uECB
-----END PGP SIGNATURE-----





reply via email to

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