"Fossies" - the Fresh Open Source Software Archive

Member "ruby-2.7.4/tool/m4/ruby_dtrace_available.m4" (7 Jul 2021, 795 Bytes) of package /linux/misc/ruby-2.7.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ruby_dtrace_available.m4": 2.7.3_vs_2.7.4.

    1 # -*- Autoconf -*-
    2 AC_DEFUN([RUBY_DTRACE_AVAILABLE],
    3 [AC_CACHE_CHECK(whether dtrace USDT is available, rb_cv_dtrace_available,
    4 [
    5     echo "provider conftest{ probe fire(); };" > conftest_provider.d
    6     rb_cv_dtrace_available=no
    7     AS_FOR(opt, rb_dtrace_opt, ["-xnolibs" ""], [dnl
    8 	AS_IF([$DTRACE opt -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null],
    9 	    [], [continue])
   10 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include "conftest_provider.h"]], [[CONFTEST_FIRE();]])],
   11 	    [], [continue])
   12 	# DTrace is available on the system
   13 	rb_cv_dtrace_available=yes${rb_dtrace_opt:+"(opt)"}
   14 	break
   15     ])
   16     rm -f conftest.[co] conftest_provider.[dho]
   17 ])
   18 AS_CASE(["$rb_cv_dtrace_available"], ["yes("*")"],
   19     [DTRACE_OPT=`expr "$rb_cv_dtrace_available" : "yes(\(.*\))"`])
   20 ])dnl