jsprobes-patches / add-configure-moz-jsflags-option

# HG changeset patch
# Parent f4049f65efc6e367c54643ad7c66b3e81e24bac5
Add the MOZ_JSPROBES guard to configure.in

diff --git a/js/src/configure.in b/js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2012,16 +2012,28 @@ dnl ====================================
 dnl = Use profiling compile flags
 dnl ========================================================
 MOZ_ARG_ENABLE_BOOL(profiling,
 [  --enable-profiling      Set compile flags necessary for using sampling profilers (e.g. shark, perf)],
     MOZ_PROFILING=1,
     MOZ_PROFILING= )
 
 dnl ========================================================
+dnl = Enable jsprobes instrumentation points and handlers.
+dnl ========================================================
+MOZ_ARG_ENABLE_BOOL(jsprobes,
+[  --enable-jsprobes       Set compile flags necessary to add static probe instrumentation points and support for JavaScript probe handlers],
+    MOZ_JSPROBES=1,
+    MOZ_JSPROBES= )
+
+if test -n "$MOZ_JSPROBES"; then
+    AC_DEFINE(MOZ_JSPROBES)
+fi
+
+dnl ========================================================
 dnl System overrides of the defaults for host
 dnl ========================================================
 case "$host" in
 *mingw*)
     # we need Python 2.5 on Windows
     PYTHON_VERSION=2.5
     if test -n "$_WIN32_MSVC"; then
         HOST_AR=lib
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.