-# -- Variablen --
-
-if test "$GCC" = "yes"; then
- the_CFLAGS="-Wmissing-declarations -Wpointer-arith -Wstrict-prototypes"
- $CC --version | grep 20020420 > /dev/null 2>&1
- if test $? -eq 0; then
- # Mac OS X (and Darwin?) ship with a slightly broken
- # prerelease of GCC 3.1 which don't like -pedantic:
- AC_MSG_RESULT([detected broken GNU C compiler, disabling "-pedantic"])
- add_CFLAGS="-Wall -W -ansi $CFLAGS $CFLAGS_ADD"
- else
- add_CFLAGS="-Wall -W -ansi -pedantic $CFLAGS $CFLAGS_ADD"
- fi
-else
- the_CFLAGS="$CFLAGS"
- add_CFLAGS="$CFLAGS_ADD"
-fi
-
-CFLAGS="$the_CFLAGS $add_CFLAGS $add_DEFINES -DSYSCONFDIR='\"\$(sysconfdir)\"'"
+# Add additional CFLAGS, eventually specified on the command line, but after
+# running this configure script. Useful for "-Werror" for example.
+test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"