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

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

 



"Dr. David Kirkby" <david.kirkby@xxxxxxxxxx> writes:
> Russ Allbery wrote:
>> "Dr. David Kirkby" <david.kirkby@xxxxxxxxxx> writes:
>>> Russ Allbery wrote:

>>>> That macro is using a questionable technique to accomplish this (parsing
>>>> the output of perl -v and then relying on AX_COMPARE_VERSION).  Here's a
>>>> much simpler macro that accomplishes the same thing:
>>>>
>>>> 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], [$1], [$2])])])

Oh, doh, I'm sorry.  This should be:

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], [$2], [$3])])])

Stupid typo indeed.

Thanks for the configure script.  That made it obvious.

-- 
Russ Allbery (rra@xxxxxxxxxxxx)             <http://www.eyrie.org/~eagle/>


_______________________________________________
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