[apparmor] [PATCH 03/12] libapparmor: Require and build libapparmor with C99 mode

Seth Arnold seth.arnold at canonical.com
Sat Feb 14 01:47:12 UTC 2015


On Wed, Dec 10, 2014 at 04:12:24PM -0600, Tyler Hicks wrote:
> 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>

Thanks

> ---
>  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.0
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150213/0733150e/attachment.pgp>


More information about the AppArmor mailing list