Bug 1046224 - Fix --disable-dtrace configure logic. r=ted
authorJan Beich <jbeich@vfemail.net>
Wed, 30 Jul 2014 10:03:00 -0400
changeset 198057 a8027d4132463d1c916c9a4684521df92f4ae375
parent 198056 0e683d5d1e2ec39389910da8626b5aa4b3cf99e9
child 198058 8deaf054ca332f7bb7b11aad72d556b11f5f4aa7
push id47290
push userryanvm@gmail.com
push dateWed, 06 Aug 2014 12:21:58 +0000
treeherdermozilla-inbound@a8027d413246 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1046224
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1046224 - Fix --disable-dtrace configure logic. r=ted
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -2646,17 +2646,17 @@ AC_CACHE_CHECK(for sockaddr.sa_len,
                                 void *foo = (void*) &x.sa_len;],
                                [],
                                [ac_cv_sockaddr_sa_len=true],
                                [ac_cv_sockaddr_sa_len=false])])
 if test "$ac_cv_sockaddr_sa_len" = true ; then
   AC_DEFINE(HAVE_SA_LEN)
 fi
 
-AC_ARG_ENABLE(dtrace,
+MOZ_ARG_ENABLE_BOOL(dtrace,
               [  --enable-dtrace         build with dtrace support if available (default=no)],
               [enable_dtrace="yes"],)
 if test "x$enable_dtrace" = "xyes"; then
   MOZ_CHECK_HEADER(sys/sdt.h, HAVE_DTRACE=1)
   if test -n "$HAVE_DTRACE"; then
       AC_DEFINE(INCLUDE_MOZILLA_DTRACE)
   else
       AC_MSG_ERROR([dtrace enabled but sys/sdt.h not found]);
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2148,17 +2148,17 @@ MOZ_CHECK_COMMON_HEADERS
 
 dnl These are all the places some variant of statfs can be hiding.
 MOZ_CHECK_HEADERS(sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h)
 
 dnl Quota support
 MOZ_CHECK_HEADERS(sys/quota.h)
 MOZ_CHECK_HEADERS(linux/quota.h)
 
-AC_ARG_ENABLE(dtrace,
+MOZ_ARG_ENABLE_BOOL(dtrace,
               [  --enable-dtrace         build with dtrace support if available (default=no)],
               [enable_dtrace="yes"],)
 if test "x$enable_dtrace" = "xyes"; then
   MOZ_CHECK_HEADER(sys/sdt.h, HAVE_DTRACE=1)
   if test -n "$HAVE_DTRACE"; then
       AC_DEFINE(INCLUDE_MOZILLA_DTRACE)
   else
       AC_MSG_ERROR([dtrace enabled but sys/sdt.h not found]);