/crypto/heimdal/cf/wflags.m4

https://bitbucket.org/freebsd/freebsd-head/ · m4 · 28 lines · 20 code · 3 blank · 5 comment · 0 complexity · 984b402faf9f710b93060c0c1d0e683c MD5 · raw file

  1. dnl $Id: wflags.m4 21183 2007-06-20 03:07:07Z lha $
  2. dnl
  3. dnl set WFLAGS
  4. AC_DEFUN([rk_WFLAGS],[
  5. AC_ARG_ENABLE(developer,
  6. AS_HELP_STRING([--enable-developer], [enable developer warnings]))
  7. if test "X$enable_developer" = Xyes; then
  8. dwflags="-Werror"
  9. fi
  10. WFLAGS_NOUNUSED=""
  11. WFLAGS_NOIMPLICITINT=""
  12. if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  13. # -Wno-implicit-int for broken X11 headers
  14. # leave these out for now:
  15. # -Wcast-align doesn't work well on alpha osf/1
  16. # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  17. # -Wmissing-declarations -Wnested-externs
  18. WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
  19. WFLAGS_NOUNUSED="-Wno-unused"
  20. WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
  21. fi
  22. AC_SUBST(WFLAGS)dnl
  23. AC_SUBST(WFLAGS_NOUNUSED)dnl
  24. AC_SUBST(WFLAGS_NOIMPLICITINT)dnl
  25. ])