diff options
Diffstat (limited to 'config-scripts/cups-compiler.m4')
-rw-r--r-- | config-scripts/cups-compiler.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config-scripts/cups-compiler.m4 b/config-scripts/cups-compiler.m4 index 0f6b01de2..c33d9a5e2 100644 --- a/config-scripts/cups-compiler.m4 +++ b/config-scripts/cups-compiler.m4 @@ -3,7 +3,7 @@ dnl "$Id: cups-compiler.m4 7871 2008-08-27 21:12:43Z mike $" dnl dnl Compiler stuff for the Common UNIX Printing System (CUPS). dnl -dnl Copyright 2007-2008 by Apple Inc. +dnl Copyright 2007-2009 by Apple Inc. dnl Copyright 1997-2007 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -22,6 +22,7 @@ AC_SUBST(OPTIM) AC_ARG_WITH(optim, [ --with-optim="flags" set optimization flags ]) AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging, default=no]) +AC_ARG_ENABLE(debug_guards, [ --enable-debug-guards turn on debug guards, default=no]) AC_ARG_ENABLE(debug_printfs, [ --enable-debug-printfs turn on debug printfs, default=no]) AC_ARG_ENABLE(unit_tests, [ --enable-unit-tests turn on unit tests, default=no]) @@ -37,6 +38,12 @@ if test x$enable_debug_printfs = xyes; then CFLAGS="$CFLAGS -DDEBUG" fi +dnl Debug guards use an extra 4 bytes for some structures like strings in the +dnl string pool, so provide a separate option for that +if test x$enable_debug_guards = xyes; then + CFLAGS="$CFLAGS -DDEBUG_GUARDS" +fi + dnl Unit tests take up time during a compile... if test x$enable_unit_tests = xyes; then UNITTESTS="unittests" |