]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't assume Perl lives in /usr/bin; do a proper test for it.
authorJulian Seward <jseward@acm.org>
Sun, 22 Dec 2002 19:32:23 +0000 (19:32 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 22 Dec 2002 19:32:23 +0000 (19:32 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1389

cachegrind/cg_annotate.in
configure.in
tests/vg_regtest.in

index d6f1848e49eb027f3ae15c51c821bf7ba540ba28..67d5af306f35f87beb566ae1ff9272249bd79856 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! @PERL@ -w
 
 ##--------------------------------------------------------------------##
 ##--- The cache simulation framework: instrumentation, recording   ---##
index 8d22798920860f7b105d481b9435291e8ce69bd4..2912b15d66493cae93f20f1659a55ae515f8c3fe 100644 (file)
@@ -19,6 +19,9 @@ if test "${GCC}" != "yes" ; then
    AC_MSG_ERROR([Valgrind relies on GCC to be compiled])
 fi
 
+# figure out where perl lives
+AC_PATH_PROG(PERL, perl)
+
 # some older automake's don't have it so try something on our own
 ifdef([AM_PROG_AS],[AM_PROG_AS],
 [
index 688b69879e20d902896eb3b2325c59d0ed085f7a..e9b2a941409a9975695838f813a8269a480f01d3 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! @PERL@ -w
 ##--------------------------------------------------------------------##
 ##--- Valgrind regression testing script                vg_regtest ---##
 ##--------------------------------------------------------------------##