[R] Perl v5.6.0 breaks the configure script
Dirk Eddelbuettel
edd at debian.org
Wed Apr 5 14:37:28 CEST 2000
On Wed, Apr 05, 2000 at 10:31:57AM +0100, Prof Brian D Ripley wrote:
> On Wed, 5 Apr 2000, tom kennedy wrote:
[..]
> I think the trick is to use perl itself, as in
>
> perl_version=`${PERL} -e '$v=$]; $v =~ s/(.)\..*/\1/;print $v'`
>
> as perl is guaranteed to return its version as a number like 5.006
> even for `v5.6.0'.
>
> Unfortunately the "]" in there confuses m4 when building configure
> from aclocal.m4, but I am sure the experts can fix that.
One would be to use the English module and PERL_VERSION instead:
perl_version=
= `${PERL}-MEnglish -e '$v=$PERL_VERSION; $v =~ s/(.)\..*/\1/;print $v'`
> One could even do the whole test in Perl:
>
> r_cv_prog_perl_v5=
> `${PERL} -e 'if($] >= 5) {print "yes";} else {print "no"}'`
Likewise:
r_cv_prog_perl_v5=
`${PERL} -MEnglish -e 'if($] >= 5) {print "yes";} else {print "no"}'`
Dirk
--
According to the latest figures, 43% of all statistics are totally worthless.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list