Albrecht Gebhardt <albrecht.gebhardt@uni-klu.ac.at> writes:
> R-devel:
>
> ./configure doesn't find perl 5 on a SuSE 7.2 system wit perl 5.6.0
> installed:
> this is the output of perl -v:
> ###################################################################
> omega:/usr/src/packages/BUILD-omega/R-devel # /usr/bin/perl -v
>
> This is perl, v5.6.0 built for i586-linux
>
> Copyright 1987-2000, Larry Wall
>
> Perl may be copied only under the terms of either the Artistic License or
> the
> GNU General Public License, which may be found in the Perl 5.0 source kit.
>
> Complete documentation for Perl, including FAQ lists, should be found on
> this system using `man perl' or `perldoc perl'. If you have access
to the
> Internet, point your browser at http://www.perl.com/, the Perl Home Page.
> #########################################################################
>
> the perl version check in the configurte script
> /usr/bin/perl -v | sed -n 's/^.*perl.*version \(.\).*/\1/p'
> clearly fails, but e.g.
> /usr/bin/perl -v | sed -n 's/^.*perl.*v\([0-9]\).*/\1/p'
> would work.
>
> Finally
>
> usr/bin/perl -v | \
> sed -n 's/^.*perl.*v\([0-9]\).*/\1/p;s/^.*perl.*version
\(.\).*/\1/p'
>
> works on systems with a perl version of "perl, v5.xxx" and
"perl, version
> 5.xxx"
???
What version of R is that? To my knowledge we haven't used the
sed-based check for perl versions for more than a year:
revision 1.37
date: 2000/04/07 13:24:08; author: pd; state: Exp; lines: +12 -8
fixup perl5 test
----------------------------
revision 1.36
date: 2000/04/07 06:07:59; author: hornik; state: Exp; lines: +2 -3
Improve test for Perl version 5.
----------------------------
and
[pd@butterfly R]$ cvs diff -ur 1.35 -r1.37 aclocal.m4
Index: aclocal.m4
==================================================================RCS file:
/home/rdevel/CVS-ARCHIVE/R/aclocal.m4,v
retrieving revision 1.35
retrieving revision 1.37
diff -u -r1.35 -r1.37
--- aclocal.m4 2000/04/02 14:24:56 1.35
+++ aclocal.m4 2000/04/07 13:24:08 1.37
@@ -46,19 +46,22 @@
dnl
dnl R_PROG_PERL
dnl
+changequote(<<, >>)dnl
+define(PERL5_CHECK,
+<<
+ if ${PERL} -e 'exit 1 if $]<5'
+ then
+ r_cv_prog_perl_v5=yes
+ else
+ r_cv_prog_perl_v5=no
+ fi
+>>)
+changequote([, ]) dnl
AC_DEFUN(R_PROG_PERL,
[AC_PATH_PROG(PERL, perl)
if test -n "${PERL}"; then
AC_CACHE_CHECK([whether perl version is at least 5],
- r_cv_prog_perl_v5,
- [ perl_version=`${PERL} -v | \
- sed -n 's/^.*perl.*version \(.\).*/\1/p'`
- if test ${perl_version} -ge 5; then
- r_cv_prog_perl_v5=yes
- else
- r_cv_prog_perl_v5=no
- fi
- ])
+ r_cv_prog_perl_v5, [PERL5_CHECK()] )
else
PERL=false
fi
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To:
r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._