Re: Why is this perl checking code not working for me?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Russ Allbery wrote:
"Dr. David Kirkby" <david.kirkby@xxxxxxxxxx> 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
drkirkby@smudge:[~/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]) ])




_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux