[Rd] Re: [R] Perl v5.6.0 breaks the configure script
Prof Brian D Ripley
ripley@stats.ox.ac.uk
Fri, 7 Apr 2000 07:28:47 +0100 (BST)
On Fri, 7 Apr 2000, Kurt Hornik wrote:
> Anyway, I tried adding a line of code to configure.in which uses $], but
> I failed miserably ... I would either get M4 syntax errors or not get
> the `]'. Hence, I changed the test to
>
> AC_CACHE_CHECK([whether perl version is at least 5],
> r_cv_prog_perl_v5,
> [ ${PERL} -e 'require 5' 2>/dev/null
> if test ${?} -eq 0; then
> r_cv_prog_perl_v5=yes
> else
> r_cv_prog_perl_v5=no
> fi
> ])
>
> which I think should also do the job.
Can anyone test this? Again, I thought of that, and `require number'
is not in my Perl 4 book. So although I think it will fail on Perl4,
I am not sure. In any case, it is safer than what went before.
> Changed in r-devel only. If anyone thinks we should also do this in
> r-release for 1.0.1, pls let me know && I will make the change (assuming
> that the fix is correct).
Yes, I think it should be changed. We want 1.0.1 to configure under the
current Perl, which is the only easy one to find.
Brian
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._