565191-fix.patch
author Daniel Holbert <dholbert@cs.stanford.edu>
Wed, 26 May 2010 10:24:12 -0700
changeset 248 9f4363a355aae1699b7aab4655878abf7be57dab
permissions -rw-r--r--
add two patches for landing

# HG changeset patch
# User Justin Wood <Callek@gmail.com>
# Date 1274301431 14400
# Node ID d062394a52a78e2cf607d0d82e64c75a6b16aa6f
# Parent  64e1cfd8ba01945a5f2dd2fc6d98dd2c5455068e
Bug 565191 - Add build option "--with-debug-label". r=ted

diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -6954,16 +6954,24 @@ MOZ_ARG_ENABLE_STRING(debug,
         _MOZ_DEBUG_FLAGS_SET=1
     fi
   else
     MOZ_DEBUG=
   fi ],
   MOZ_DEBUG=)
 
 MOZ_DEBUG_ENABLE_DEFS="-DDEBUG -D_DEBUG"
+MOZ_ARG_WITH_STRING(debug-label,
+[  --with-debug-label=LABELS
+                           Define DEBUG_<value> for each comma-separated
+                           value given.],
+[ for option in `echo $withval | sed 's/,/ /g'`; do
+    MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${option}"
+done])
+
  case "${target_os}" in
     beos*)
         MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${USER}"
         ;;
     msvc*|mks*|cygwin*|mingw*|os2*|wince*|winmo*)
         MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
         ;;
     *)