[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is this perl checking code not working for me?
From: |
Russ Allbery |
Subject: |
Re: Why is this perl checking code not working for me? |
Date: |
Sat, 08 Aug 2009 00:40:43 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
"Dr. David Kirkby" <address@hidden> writes:
> Russ Allbery wrote:
>> "Dr. David Kirkby" <address@hidden> 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 (address@hidden) <http://www.eyrie.org/~eagle/>
- Why is this perl checking code not working for me?, Dr. David Kirkby, 2009/08/07
- Re: Why is this perl checking code not working for me?, Russ Allbery, 2009/08/07
- Message not available
- Message not available
- Re: Why is this perl checking code not working for me?, Dr. David Kirkby, 2009/08/08
- Re: Why is this perl checking code not working for me?,
Russ Allbery <=
- Re: Why is this perl checking code not working for me?, Dr. David Kirkby, 2009/08/08
- Re: Why is this perl checking code not working for me?, Dr. David Kirkby, 2009/08/08
- Re: Why is this perl checking code not working for me?, Russ Allbery, 2009/08/08
- Re: Why is this perl checking code not working for me?, Dr. David Kirkby, 2009/08/11
- Re: Why is this perl checking code not working for me?, Keith Marshall, 2009/08/11
- Re: Why is this perl checking code not working for me?, Dr. David Kirkby, 2009/08/11
- Re: Why is this perl checking code not working for me?, Keith Marshall, 2009/08/11
- Re: Why is this perl checking code not working for me?, Russ Allbery, 2009/08/11