summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/check_path.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-24 12:07:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:17 -0500
commit2ed6f07ccd05d5fa30c8cf53bf55db5f28f0ea50 (patch)
treebb9be2fa6bdf847b73e291ef1728f3f33580d041 /source4/build/smb_build/check_path.m4
parent335e74167169c5c2154bf464393da2c93b2c16c3 (diff)
downloadsamba-2ed6f07ccd05d5fa30c8cf53bf55db5f28f0ea50.tar.gz
samba-2ed6f07ccd05d5fa30c8cf53bf55db5f28f0ea50.tar.bz2
samba-2ed6f07ccd05d5fa30c8cf53bf55db5f28f0ea50.zip
r2012: --enable-developer also sets debug=yes now
and we how set the CFLAGS="-g -Wall" and the rest only if the compiler supports it. CFLAGS is now not empty when we call PROG_CC so there won't be a "-O2" in the final CFLAGS metze (This used to be commit 479f68169466532c7903ced06907288baa1ed8e5)
Diffstat (limited to 'source4/build/smb_build/check_path.m4')
-rw-r--r--source4/build/smb_build/check_path.m412
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/build/smb_build/check_path.m4 b/source4/build/smb_build/check_path.m4
index 0e0b481b0b..3d1d4c8c18 100644
--- a/source4/build/smb_build/check_path.m4
+++ b/source4/build/smb_build/check_path.m4
@@ -126,20 +126,26 @@ AC_ARG_ENABLE(debug,
developer=no
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
[if eval "test x$enable_developer = xyes"; then
+ debug=yes
+ CFLAGS="${CFLAGS} -g -Wall"
developer=yes
- DEVELOPER_CFLAGS="-g -Wall -Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
+ DEVELOPER_CFLAGS="-Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
fi])
AC_ARG_ENABLE(krb5developer, [ --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)],
[if eval "test x$enable_krb5developer = xyes"; then
+ debug=yes
+ CFLAGS="${CFLAGS} -g -Wall"
developer=yes
- DEVELOPER_CFLAGS="-g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
+ DEVELOPER_CFLAGS="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
fi])
AC_ARG_ENABLE(gtkdeveloper, [ --enable-gtkdeveloper Turn on developer warnings and debugging, except -Wstrict-prototypes and -Wshadow (default=no)],
[if eval "test x$enable_gtkdeveloper = xyes"; then
+ debug=yes
+ CFLAGS="${CFLAGS} -g -Wall"
developer=yes
- DEVELOPER_CFLAGS="-g -Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
+ DEVELOPER_CFLAGS="-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
fi])
experimental=no