* 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:23:47 +00:00
parent 3757d84e90
commit a69f6fa569
10 changed files with 122 additions and 19 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@'