X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=macros%2Fperl-check.m4;h=7ad755b973e52aaf02263c0896337acc54f30eaa;hb=d4fdc0119a3fd21571e27aad6c3e6ff5c56ac880;hp=8b3047b52777ce9ec84b190fd1fd90316851b903;hpb=0d25702ee216e6b0d293d0cd02f2f661d1a38d81;p=netatalk.git diff --git a/macros/perl-check.m4 b/macros/perl-check.m4 index 8b3047b5..7ad755b9 100644 --- a/macros/perl-check.m4 +++ b/macros/perl-check.m4 @@ -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.4 2002-03-12 11:03:49 srittau 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)