summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac1
-rwxr-xr-xdtrace.in (renamed from dtrace)2
3 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index d1b39c34..5eb5eb05 100755
--- a/configure
+++ b/configure
@@ -8866,6 +8866,8 @@ if test $enable_translator == "yes"; then
fi
ac_config_files="$ac_config_files run-staprun"
+ac_config_files="$ac_config_files dtrace"
+
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
@@ -9597,6 +9599,7 @@ do
"initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
"run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
"run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;;
+ "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
@@ -10386,6 +10389,7 @@ done
;;
"run-stap":F) chmod +x run-stap ;;
"run-staprun":F) chmod +x run-staprun ;;
+ "dtrace":F) chmod +x dtrace ;;
esac
done # for ac_tag
diff --git a/configure.ac b/configure.ac
index 747c549b..747aac97 100644
--- a/configure.ac
+++ b/configure.ac
@@ -586,6 +586,7 @@ if test $enable_translator == "yes"; then
AC_CONFIG_FILES([run-stap], [chmod +x run-stap])
fi
AC_CONFIG_FILES([run-staprun], [chmod +x run-staprun])
+AC_CONFIG_FILES([dtrace], [chmod +x dtrace])
AC_OUTPUT
if test "${prefix}" = "/usr/local"; then
diff --git a/dtrace b/dtrace.in
index 0c7711dc..91885977 100755
--- a/dtrace
+++ b/dtrace.in
@@ -179,5 +179,5 @@ if (build_source):
f = open(fn,mode='w')
f.write("#include \"" + filename + ".h\"\nstatic __dtrace () {}\n")
f.close()
- call(["gcc", "-fPIC", "-I.", "-g", "-c", fn, "-o", filename + ".o"], shell=False)
+ call(["gcc", "-fPIC", "-I.", "-I@prefix@/include", "-g", "-c", fn, "-o", filename + ".o"], shell=False)
os.remove(fn)