Author: metze Date: 2004-08-24 12:07:36 +0000 (Tue, 24 Aug 2004) New Revision: 2012
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2012&nolog=1 Log: --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 Modified: branches/SAMBA_4_0/source/build/smb_build/check_path.m4 Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/check_path.m4 =================================================================== --- branches/SAMBA_4_0/source/build/smb_build/check_path.m4 2004-08-24 12:04:11 UTC (rev 2011) +++ branches/SAMBA_4_0/source/build/smb_build/check_path.m4 2004-08-24 12:07:36 UTC (rev 2012) @@ -126,20 +126,26 @@ 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