]> arthur.barton.de Git - netatalk.git/commitdiff
Fix the Perl-check macro so that it acutally checks for Perl.
authorjmarcus <jmarcus>
Thu, 7 Feb 2002 05:06:48 +0000 (05:06 +0000)
committerjmarcus <jmarcus>
Thu, 7 Feb 2002 05:06:48 +0000 (05:06 +0000)
macros/perl-check.m4

index 8b3047b52777ce9ec84b190fd1fd90316851b903..72a88e77dcea3146593a70e8a6dbcbd32f6f06a7 100644 (file)
@@ -1,9 +1,10 @@
 dnl Autoconf macro to check for the existence of Perl
-dnl $Id: perl-check.m4,v 1.2 2002-01-17 05:48:00 srittau Exp $
+dnl $Id: perl-check.m4,v 1.3 2002-02-07 05:06:48 jmarcus Exp $
 
-dnl FIXME: This needs to be a proper check
-AC_DEFUN([NETATALK_PROG_PERL], [
-       PERL=/usr/bin/perl
+AC_DEFUN([AC_PROG_PERL], [
+AC_REQUIRE([AC_EXEEXT])dnl
+test x$PERL = x && AC_PATH_PROG(PERL, perl$EXEEXT, perl$EXEEXT)
+test x$PERL = x && AC_MSG_ERROR([no acceptable Perl found in \$PATH])
 ])
 
 AC_SUBST(PERL)