summaryrefslogtreecommitdiffstats
path: root/usr.sbin/afs/src/cf/prog-cc-flags.m4
blob: 1df320326c69f3f29d961035ac90e7ea36d7e8b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dnl
dnl $KTH: prog-cc-flags.m4,v 1.2 2000/01/23 12:34:11 assar Exp $
dnl

AC_DEFUN(AC_PROG_CC_FLAGS, [
AC_REQUIRE([AC_PROG_CC])dnl
AC_MSG_CHECKING(for $CC warning options)
if test "$GCC" = "yes"; then
  extra_flags="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  CFLAGS="$CFLAGS $extra_flags"
  AC_MSG_RESULT($extra_flags)
else
  AC_MSG_RESULT(none)
fi
])