[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnulib needed in AC_CHECK_HEADERS
From: |
Paul Eggert |
Subject: |
Re: Gnulib needed in AC_CHECK_HEADERS |
Date: |
Sat, 29 Dec 2007 00:43:16 -0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> - The autoconf manual still recommends to include <alloca.h> only if
> HAVE_ALLOCA_H.
> - fnmatch.c and regex.c are still included in gcc's libiberty. Its regex.c
> also includes <alloca.h> only if HAVE_ALLOCA_H.
But these are for Autoconf's AC_FUNC_ALLOCA macro.
We are talking about gnulib's gl_FUNC_ALLOCA.
Let's put it this way. Currently, one cannot build a program, part of
which does things the Autoconf way, and part of which does things the
Gnulib way. This is because Gnulib unconditionally defines
HAVE_ALLOCA_H. But with the proposed change (where Gnulib does
unconditionally define HAVE_ALLOCA_H), one could build such a program.
For example, one could build a program that uses gcc's libiberty along
with some gnulib code. The libiberty code won't use Gnulib's
<alloca.h> substitute, but that's OK; it will still work just as well
as it does now.
So I still don't see the downside of making that change.