[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed gnulib-related additions to Autoconf
From: |
Eric Blake |
Subject: |
Re: proposed gnulib-related additions to Autoconf |
Date: |
Sat, 04 Mar 2006 16:42:20 -0700 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paul Eggert on 3/1/2006 11:28 AM:
> "Gary V. Vaughan" <address@hidden> writes:
>
>> i) Let's just improve AC_CHECK_HEADERS (et al) to always make configure
>> smaller and faster by despatching to (undocumented internal)
>> _AC_CHECK_HEADERS_ONCE when it can.
>
> Won't that break old scripts? If they do something like this:
Not just old scripts. Read on.
>
> if test $ac_feature_foo = yes; then
> AC_CHECK_HEADERS([sys/param.h])
> fi
>
> then we'd hoist the test for sys/param.h out of the then-part, which
> is not what was intended.
Indeed, my recent patch for gnulib's m4/sys_socket_h.m4 relies on the
AC_CHECK_HEADERS *NOT* being run when expanded inside a conditional, since
on cygwin, the header winsock2.h exists but is incompatible with
sys/socket.h. If we used AC_CHECK_HEADERS_ONCE in that case, then cygwin
would get annoying warning messages from CVS head coreutils that a header
is present but cannot be compiled.
- --
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
iD8DBQFECiXc84KuGfSFAYARAsH5AKCBfxKg5uBBouPtbR/IUNvRB8KgHACgi7j/
46ffnGOpm1pgxZ4OC9tkH7k=
=HSQU
-----END PGP SIGNATURE-----