apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r723601 - /apr/apr-util/trunk/configure.in
Date Fri, 05 Dec 2008 06:01:50 GMT
Author: pquerna
Date: Thu Dec  4 22:01:49 2008
New Revision: 723601

URL: http://svn.apache.org/viewvc?rev=723601&view=rev
Log:
Add --enable-dtrace to configure, to trigger the existing dtrace code.

Modified:
    apr/apr-util/trunk/configure.in

Modified: apr/apr-util/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/configure.in?rev=723601&r1=723600&r2=723601&view=diff
==============================================================================
--- apr/apr-util/trunk/configure.in (original)
+++ apr/apr-util/trunk/configure.in Thu Dec  4 22:01:49 2008
@@ -165,6 +165,22 @@
 APU_FIND_EXPAT
 APU_FIND_ICONV
 
+AC_CHECK_HEADERS( \
+sys/sdt.h
+)
+
+AC_ARG_ENABLE(dtrace,APR_HELP_STRING(--enable-dtrace, Enable DTrace probes),
+[
+  enable_dtrace=$enableval
+],
+[
+  enable_dtrace=no
+])
+
+if test $enable_dtrace = "yes" -a "$ac_cv_header_sys_sdt_h" = "yes"; then
+    APR_ADDTO(CPPFLAGS, -DAPR_DTRACE_PROVIDER)
+fi
+
 dnl Enable DSO build; must be last:
 APU_CHECK_UTIL_DSO
 



Mime
View raw message