summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2015-11-20 20:12:19 +0900
committerAkira TAGOH <akira@tagoh.org>2015-11-20 20:12:19 +0900
commitccd2d8d96cfef940efda3accd45abb6050a88ed9 (patch)
treed70cec88fd0cfaf9b982daa5eb3b84f2254b007f
parent85c65904d2056b6108cad9323e46e9a21979577d (diff)
Fix a build fail when --enable-debug
-rw-r--r--configure.ac1
-rw-r--r--liblangtag-gobject/Makefile.am3
2 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9773fa8..2c5242c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4macros])
AX_CHECK_ENABLE_DEBUG([no], [ENABLE_DEBUG])
+AM_CONDITIONAL(ENABLE_DEBUG, test $ax_enable_debug = yes)
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
diff --git a/liblangtag-gobject/Makefile.am b/liblangtag-gobject/Makefile.am
index 146e925..0bc0dea 100644
--- a/liblangtag-gobject/Makefile.am
+++ b/liblangtag-gobject/Makefile.am
@@ -11,6 +11,9 @@ AM_CPPFLAGS = \
-D__LANGTAG_COMPILATION \
$(GOBJECT_CFLAGS) \
$(NULL)
+if ENABLE_DEBUG
+CFLAGS += -Wno-error=cpp -Wcpp
+endif
DEPS = \
$(top_builddir)/liblangtag/liblangtag.la \
$(NULL)