autoconf
[Top][All Lists]
Advanced

[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: Tue, 11 Aug 2009 12:06:28 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

"Dr. David Kirkby" <address@hidden> writes:

> 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]) ])

If you want to use a shell variable here, you need to modify the code to
use double quotes rather than single quotes.

    [AS_IF(["$PERL" -e 'require $1;' >/dev/null 2>&1],

That would need to be "require $1;" instead.  Also, the shell variable
would need to be exported.

It would be easier to not use shell variables.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]