|
From: | Dr. David Kirkby |
Subject: | Re: Why is this perl checking code not working for me? |
Date: | Tue, 11 Aug 2009 17:57:47 +0100 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090218) |
Russ Allbery wrote:
"Dr. David Kirkby" <address@hidden> writes:Oops, I marked the wrong line!! The error is on 4686 anyway, but I did not even show that correctly.Sorry, I was really too tired when I wrote that and didn't pay attention to what I'm doing. Here's an actually tested version. AC_DEFUN([AX_PROG_PERL_VERSION], [AC_CACHE_CHECK([for Perl version $1 or later], [ax_cv_prog_perl_version], [AS_IF(["$PERL" -e 'require $1;' >/dev/null 2>&1], [ax_cv_prog_perl_version=yes], [ax_cv_prog_perl_version=no])]) AS_IF([test x"$ax_cv_prog_perl_version" = xyes], [$2], [$3])])
It STILL does not work for me, though at least it is not a syntax error. checking for perl... /usr/local/bin/perl checking for Perl version 5.6.0 or later... no configure: error: Sorry, your version of perl is too old address@hidden:[~/zzz-1.2.3] $ perl -v This is perl, v5.8.4 built for sun4-solaris-64int (with 31 registered patches, see perl -V for more detail) This is what I have in configure.ac minimum_perl_version="5.6.0" AC_PATH_PROG([PERL],[perl])AX_PROG_PERL_VERSION([$minimum_perl_version],[],[AC_MSG_ERROR([Sorry, your version of perl is too old]) ])
[Prev in Thread] | Current Thread | [Next in Thread] |