* configure.in (WARNING_CFLAGS): Add -Werror when possible.

(CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
Gettext doesn't compile cleanly, and dies with -Werror.
* src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
Include WARNING_CFLAGS here.
* lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
before being defined.
This commit is contained in:
Akim Demaille
2001-11-30 14:25:16 +00:00
parent f4e421e6e4
commit 2c8a9dfa1d
7 changed files with 70 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
# We need a C compiler.
CC='@CC@'
CFLAGS='@CFLAGS@'
CFLAGS='@CFLAGS@ @WARNING_CFLAGS@'
# We need to know if the compiler is GCC.
GCC='@GCC@'