[apparmor] [PATCH v2 31/42] libapparmor: Require and build libapparmor with C99 mode
Tyler Hicks
tyhicks at canonical.com
Fri Mar 6 21:48:47 UTC 2015
This is needed for some of the parser functionality that will be moved
to libapparmor. In the short term, only the 'bool' type is needed but it
makes sense to simply require a C99 compliant compiler for libapparmor
since the parser is being rewritten in C++. The use of C99 will reduce
future headaches when moving code between the two code bases.
Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
Acked-by: Seth Arnold <seth.arnold at canonical.com>
---
libraries/libapparmor/configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libraries/libapparmor/configure.ac b/libraries/libapparmor/configure.ac
index 15155c5..4da65c1 100644
--- a/libraries/libapparmor/configure.ac
+++ b/libraries/libapparmor/configure.ac
@@ -79,6 +79,11 @@ AM_PROG_CC_C_O
AC_C_CONST
AM_PROG_LIBTOOL
+AC_PROG_CC_C99
+if test "$ac_cv_prog_cc_c99" = "no"; then
+ AC_MSG_ERROR([C99 mode is required to build libapparmor])
+fi
+
AC_OUTPUT(
Makefile
doc/Makefile
--
2.1.4
More information about the AppArmor
mailing list