]> eyrie.org Git - kerberos/wallet.git/commitdiff
Add the correct glue for selecting warning flags
authorRuss Allbery <eagle@eyrie.org>
Sun, 17 Jan 2016 22:35:50 +0000 (14:35 -0800)
committerRuss Allbery <eagle@eyrie.org>
Sun, 17 Jan 2016 22:35:50 +0000 (14:35 -0800)
configure.ac

index 3b3c787813bccd6b49eb590718a4eaf4c1fbe56b..6b177a39213a771351bb30faa4c31fa70ecead64 100644 (file)
@@ -78,6 +78,10 @@ AS_IF([test x"$REMCTLD" != x],
     [AC_DEFINE_UNQUOTED([PATH_REMCTLD], ["$REMCTLD"],
         [Define to the full path to remctld to run remctl tests.])])
 
+dnl Enable appropriate warnings.
+AM_CONDITIONAL([WARNINGS_GCC], [test x"$GCC" = xyes && test x"$CLANG" != xyes])
+AM_CONDITIONAL([WARNINGS_CLANG], [test x"$CLANG" = xyes])
+
 dnl Output section.
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_FILES([Makefile])