]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - config-scripts/cups-compiler.m4
Merge changes from CUPS 1.4svn-r8329.
[thirdparty/cups.git] / config-scripts / cups-compiler.m4
index 0f6b01de29f3ee0c510e2be58c3becea84fcdd4a..c33d9a5e20d0f75fe08a25447d0ada4a85d964ce 100644 (file)
@@ -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"