summaryrefslogtreecommitdiffstats
path: root/common/dhash
diff options
context:
space:
mode:
Diffstat (limited to 'common/dhash')
-rw-r--r--common/dhash/Makefile.am8
-rw-r--r--common/dhash/configure.ac2
2 files changed, 9 insertions, 1 deletions
diff --git a/common/dhash/Makefile.am b/common/dhash/Makefile.am
index 9037bf97c..b8d5ce6ff 100644
--- a/common/dhash/Makefile.am
+++ b/common/dhash/Makefile.am
@@ -1,4 +1,10 @@
-AM_CPPFLAGS = -Wall
+AM_CFLAGS =
+if HAVE_GCC
+ AM_CFLAGS += \
+ -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+ -Wcast-align -Wwrite-strings
+endif
+
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
diff --git a/common/dhash/configure.ac b/common/dhash/configure.ac
index feabc4845..bd2102877 100644
--- a/common/dhash/configure.ac
+++ b/common/dhash/configure.ac
@@ -7,6 +7,8 @@ AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_INSTALL
+AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
+
m4_pattern_allow([AM_SILENT_RULES])
AM_SILENT_RULES