[Rd] configure doesn't find perl 5 on suse 7.2

Albrecht Gebhardt albrecht.gebhardt@uni-klu.ac.at
Sun, 17 Jun 2001 14:58:36 +0200 (MET DST)


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" 

The following patch would correct this problem:
--- ./aclocal.m4.orig   Sun Jun 17 14:27:06 2001
+++ ./aclocal.m4        Sun Jun 17 14:45:53 2001
@@ -52,7 +52,8 @@
     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'`
+         sed -n 's/^.*perl.*v\([[0-9]]\).*/\1/p; \
+                 s/^.*perl.*version \(.\).*/\1/p'`
        if test ${perl_version} -ge 5; then
          r_cv_prog_perl_v5=yes
        else



// Albrecht Gebhardt          Tel.: (++43 463) 2700/3118
// Institut fuer Mathematik   Fax : (++43 463) 2700/3198
// Universitaet Klagenfurt    mailto:albrecht.gebhardt@uni-klu.ac.at
// Universitaetsstr. 65       http://www-stat.uni-klu.ac.at/~agebhard
// A-9020 Klagenfurt, Austria 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._