diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2017-01-07 13:45:26 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-01-07 14:31:47 +0000 |
commit | ad21efe410bfbdd2cac7198618bf0f8599a5a2e6 (patch) | |
tree | 4ff579231133674e233743687b485ac05a7071b2 /configure.ac | |
parent | fd45ec178fd8f114a2c7ef334cf88a23f4fc0436 (diff) | |
download | appstream-glib-ad21efe410bfbdd2cac7198618bf0f8599a5a2e6.tar.gz |
build: Enable C99 support in configure.ac
We use C99 features (as-app.c:1278), so need to explicitly enable them
in configure.ac, as some compilers will not enable them automatically,
and will instead error when they encounter usage of C99.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 309de48..1b216cf 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,10 @@ AC_HEADER_STDC LT_INIT AM_PROG_CC_C_O +# We use C99 features +AC_PROG_CC_C99 +AS_IF([test "$ac_cv_prog_cc_c99" = "no"],[AC_MSG_ERROR([C99 support is required])]) + WARN_CFLAGS_EXTRA=" -D_FORTIFY_SOURCE=2 -fstack-protector-strong |