From 7eff96cb43587f03a6735e99492be6d775c5d7ef Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 23 May 2010 00:16:52 +0200 Subject: s3: Factor out compiler-independent defines --- source3/configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index 04a1c05b5b..885b086dcb 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -124,11 +124,13 @@ m4_include(../lib/util/time.m4) m4_include(m4/swat.m4) +DEVELOPER_CFLAGS="-DDEBUG_PASSWORD -DDEVELOPER" + # Probe the gcc version for extra CFLAGS. We always stash these in # DEVELOPER_CFLAGS, so that you can turn them on and off with a simple # Makefile edit, avoiding the need to re-run configure. if test x"$ac_cv_prog_gcc" = x"yes" ; then - DEVELOPER_CFLAGS="-g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER" + DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings" # Add -Wdeclaration-after-statement if compiler supports it AC_CACHE_CHECK( [that the C compiler understands -Wdeclaration-after-statement], -- cgit