Dr. David Kirkby wrote:
Russ Allbery wrote:
"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.
It's still not working for me, though the error message is different
this time.
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 4686:
syntax error near unexpected token `fi'
./configure: line 4686: `fi'
Oops, I marked the wrong line!! The error is on 4686 anyway, but I did
not even show that correctly.
# 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" 6622 lines, 190079 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
fi xxxxxxxxxxxxxxx Line 4686
{ $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
else
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
PS
If you do get a bit of code that works, would you release it under the
GPL2? I know it probably seems a bit pointless asking on such a small
bit of code, but it would be good to know.
Dave
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf