|
From: | Dr. David Kirkby |
Subject: | Re: Why is this perl checking code not working for me? |
Date: | Sat, 08 Aug 2009 08:34:49 +0100 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090218) |
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])])])Thank you. I don't know whether there is a typo here, or perhaps I am calling it incorrectly - which is the same way as I called the original macro.checking how to run the C preprocessor... gcc -E checking for perl... /usr/local/bin/perl checking for Perl version 5.8.0 or later... ./configure: line 4685: 5.8.0: command not foundThat's an odd error message, since it implies that the single quotes around require $1 are missing. What's line 4685 of your configure file?
on line 4685 there is: 5.8.0 Here's are a few lines either side of it: # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: "configure" 6624 lines, 190102 characters fi { $as_echo "$as_me:$LINENO: checking for Perl version 5.8.0 or later" >&5 $as_echo_n "checking for Perl version 5.8.0 or later... " >&6; } if test "${ax_cv_prog_perl_version+set}" = set; then $as_echo_n "(cached) " >&6 else if "$PERL" -e 'require 5.8.0;' >/dev/null 2>&1; then 5.8.0 fi fi { $as_echo "$as_me:$LINENO: result: $ax_cv_prog_perl_version" >&5 $as_echo "$ax_cv_prog_perl_version" >&6; }{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; } if test "${ac_cv_path_SED+set}" = set; then $as_echo_n "(cached) " >&6
[Prev in Thread] | Current Thread | [Next in Thread] |