AC_ARG_ENABLE(optimize-pam,
[ --disable-optimize-pam disable optimization for compilation of the PAM code (defaults to enabled)],, enable_optimize_pam="yes"
)
+AC_ARG_ENABLE(warnings,
+[ --enable-warnings enable compilation warnings when building with gcc (defaults to disabled)],, enable_warnings="no"
+)
enable_login="no"
NO_STRIP_KRB=-ns
fi
+if test "x$enable_warnings" = "xyes"; then
+ if test "x$GCC" = "xyes"; then
+ XCFLAGS="${XCFLAGS} -Wall -Wstrict-prototypes -Wold-style-definition"
+ fi
+fi
+
AC_SUBST(CCXPG2)
AC_SUBST(CCOBJ)
AC_SUBST(AFSD_LIBS)