diff --git a/tests/Makefile.am b/tests/Makefile.am
index 084e4ef424805eba03845042dbada1e8328f7be4..58475d934d52add568690318c8341f5f75259eef 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,10 +6,10 @@ curl:
 	@(cd ..; make)
 
 test:
-	perl runtests.pl
+	$(PERL) runtests.pl
 
 quiet-test:
-	perl runtests.pl -s -a
+	$(PERL) runtests.pl -s -a
 
 clean:
 	rm -rf log