Add require-pwchange flag to HDB and honour it if present in mit-db:.
[heimdal.git] / cf / wflags.m4
blob016d1bd30588d292d24cbb5aea76fbc881e1ba63
1 dnl $Id$
2 dnl
3 dnl set WFLAGS
5 AC_DEFUN([rk_WFLAGS],[
7 AC_ARG_ENABLE(developer, 
8         AS_HELP_STRING([--enable-developer], [enable developer warnings]))
9 if test "X$enable_developer" = Xyes; then
10     dwflags="-Werror"
13 WFLAGS_NOUNUSED=""
14 WFLAGS_NOIMPLICITINT=""
15 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
16   # -Wno-implicit-int for broken X11 headers
17   # leave these out for now:
18   #   -Wcast-align doesn't work well on alpha osf/1
19   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
20   #   -Wmissing-declarations -Wnested-externs
21   #   -Wstrict-overflow=5
22   WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
23   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
25   #
26   # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings
27   # that fail for various bits of older code in appl/.  Let's not use it
28   # for the main libraries, though.
30   WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-unused-result -Wno-shadow"
32 AC_SUBST(WFLAGS)dnl
33 AC_SUBST(WFLAGS_LITE)dnl
34 AC_SUBST(WFLAGS_NOIMPLICITINT)dnl