[Telepathy-commits] [telepathy-salut/master] add --disable-debug configure option as in Gabble
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Jan 7 03:54:19 PST 2009
---
configure.ac | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0101e37..b6ac8a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,10 @@ ifelse(salut_nano_version, 0,
])
AC_SUBST(ERROR_CFLAGS)
+AC_ARG_ENABLE(debug,
+ AC_HELP_STRING([--disable-debug],[compile without debug code]),
+ enable_debug=$enableval, enable_debug=yes )
+
AS_COMPILER_FLAG(-Wdeclaration-after-statement, ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
AS_COMPILER_FLAG(-Wshadow, ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow")
AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
@@ -75,6 +79,10 @@ AC_ARG_ENABLE(coding-style-checks,
[ENABLE_CODING_STYLE_CHECKS=$enableval], [ENABLE_CODING_STYLE_CHECKS=yes])
])
+if test x$enable_debug = xyes; then
+ AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
+fi
+
AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
dnl Check for code generation tools
--
1.5.6.5
More information about the Telepathy-commits
mailing list