1 dnl Check for a reasonable version of Perl. 2 dnl $1 - Minimum Perl version. Typically 5.006. 3 dnl 4 AC_DEFUN([LLVM_PROG_PERL], [ 5 AC_PATH_PROG(PERL, [perl], [none]) 6 if test "$PERL" != "none"; then 7 AC_MSG_CHECKING(for Perl $1 or newer) 8 if $PERL -e 'use $1;' 2>&1 > /dev/null; then 9 AC_MSG_RESULT(yes) 10 else 11 PERL=none 12 AC_MSG_RESULT(not found) 13 fi 14 fi 15 ]) 16 17