diff options
author | Petri Lehtinen <petri@digip.org> | 2010-08-12 20:59:48 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2010-08-12 21:00:09 +0300 |
commit | f71eb7fe1749836ac45cc6c0015dd6d2aec4bef9 (patch) | |
tree | d3b7a93c63c92494cc4ae5b42c538e1324da04c7 | |
parent | 6e3ca5c45c984a27d0f5c9b9249e17ef0c412e3a (diff) | |
download | jansson-f71eb7fe1749836ac45cc6c0015dd6d2aec4bef9.zip jansson-f71eb7fe1749836ac45cc6c0015dd6d2aec4bef9.tar.gz jansson-f71eb7fe1749836ac45cc6c0015dd6d2aec4bef9.tar.bz2 |
Check for gcc before setting gcc specific CFLAGS
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/Makefile.am | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3191d8a..a46fc27 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,7 @@ AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_LIBTOOL +AM_CONDITIONAL([GCC], [test x$GCC = xyes]) # Checks for libraries. diff --git a/src/Makefile.am b/src/Makefile.am index cb9180e..52a2e57 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,4 +17,7 @@ libjansson_la_LDFLAGS = \ -export-symbols-regex '^json_' \ -version-info 3:0:3 +if GCC +# These flags are gcc specific AM_CFLAGS = -Wall -Wextra -Werror +endif |