Source

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

Full commit
# 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