diff options
author | Brice Goglin <Brice.Goglin@inria.fr> | 2014-08-26 14:56:14 +0200 |
---|---|---|
committer | Brice Goglin <Brice.Goglin@inria.fr> | 2014-08-26 15:01:13 +0200 |
commit | 485c7640a17f13506ee466ebf621923cf7999d95 (patch) | |
tree | 64f3c47f2f4a38f9f226a923d8a819581bb14f09 /configure.ac | |
parent | d4a7de7c11a7c2b7964f654805107ffa9601501d (diff) | |
download | jansson-485c7640a17f13506ee466ebf621923cf7999d95.zip jansson-485c7640a17f13506ee466ebf621923cf7999d95.tar.gz jansson-485c7640a17f13506ee466ebf621923cf7999d95.tar.bz2 |
Don't use GNU-make specific export for global AM_CFLAGS
Just define it at configure time, it's automatically set in all makefiles.
Fixes #203.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a4e0be6..c8b5284 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,11 @@ AC_DEFINE([USE_WINDOWS_CRYPTOAPI], [1], [Define to 1 if CryptGenRandom should be used for seeding the hash function]) fi +if test x$GCC = xyes; then + AM_CFLAGS="-Wall -Wextra -Wdeclaration-after-statement" +fi +AC_SUBST([AM_CFLAGS]) + AC_CONFIG_FILES([ jansson.pc Makefile |