From 7c51c8fd17ce5c602f8d08adefa6977ade9219f1 Mon Sep 17 00:00:00 2001 From: tmm1 Date: Tue, 17 Dec 2013 02:03:09 +0000 Subject: configure.in: build probes with systemtap's dtrace wrapper * configure.in (RUBY_DTRACE_POSTPROCESS): Fix compatibility with systemtap on linux. stap requires `dtrace -G` post-processing, but the dtrace compatibility wrapper is very strict about probes.d syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ configure.in | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bc5658652d..1cfb424152 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Dec 17 10:48:04 2013 Aman Gupta + + * configure.in (RUBY_DTRACE_POSTPROCESS): Fix compatibility with + systemtap on linux. stap requires `dtrace -G` post-processing, but + the dtrace compatibility wrapper is very strict about probes.d + syntax. + Tue Dec 17 05:18:17 2013 Eric Hodel * lib/rubygems: Update to RubyGems master 1c5f4b3. Allows rubygems diff --git a/configure.in b/configure.in index 6d5e6c8d48..c54b4a347c 100644 --- a/configure.in +++ b/configure.in @@ -584,7 +584,11 @@ AC_DEFUN([RUBY_DTRACE_POSTPROCESS], [AC_CACHE_CHECK(whether $DTRACE needs post processing, rb_cv_prog_dtrace_g, [ if { - echo "provider conftest{ probe fire(); };" > conftest_provider.d && + cat >conftest_provider.d <<_PROBES && + provider conftest { + probe fire(); + }; +_PROBES dtrace -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null && cat >conftest.c <<_CONF && @%:@include "conftest_provider.h" -- cgit v1.2.3