]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* configure.ac: Require Perl 5.6.
authorAlexandre Duret-Lutz <adl@gnu.org>
Sun, 26 Sep 2004 21:11:34 +0000 (21:11 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sun, 26 Sep 2004 21:11:34 +0000 (21:11 +0000)
* lib/Automake/Config.in: Require Perl 5.6 (not done in
lib/Automake/General.pm because it is shared with Autoconf),
and use `our' instead of `use vars'.
* aclocal.in (rel2abs): Remove.
(scan_configure_dep): Use File::Spec->rel2abs instead.

ChangeLog
NEWS
aclocal.in
configure
configure.ac
lib/Automake/Config.in

index 916b35ac6e88bfbd1403a31c7163f7f7d5592490..f2a60f35291df7f78b0bd80fbcc559c4aa2e9813 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2004-09-26  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * configure.ac: Require Perl 5.6.
+       * lib/Automake/Config.in: Require Perl 5.6 (not done in
+       lib/Automake/General.pm because it is shared with Autoconf),
+       and use `our' instead of `use vars'.
+       * aclocal.in (rel2abs): Remove.
+       (scan_configure_dep): Use File::Spec->rel2abs instead.
+
        * tests/compile.test, tests/instsh2.test, tests/instspc.test: Use
        two consecutive spaces in filename instead of one, to catch mistake
        like `echo $val | ...`.
diff --git a/NEWS b/NEWS
index 532665d1ec7707ef616d140276beaf3e532ef056..6b57038b14b3d2f8a8e625abc40836a9172040c9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ New in 1.9a:
 
   - Autoconf 2.59a is required.
 
+  - Perl 5.6 or greater is required.
+
   - The new AC_REQUIRE_AUX_FILE Autoconf macro is supported.
 
   - The rebuild rules for distributed Yacc and Lex output will avoid
index 2499c2a1b805659ac82c79c3b014ed39a841013b..50e9d1c0793390b6ae476592c1aa4eb962865f70 100644 (file)
@@ -201,25 +201,6 @@ sub add_macro ($)
     &add_file ($map{$macro});
 }
 
-# rel2abs ($file, $directory)
-# ---------------------------
-# Similar to File::Spec->rel2abs ($file, $directory), but
-# work with Perl 5.005.  (File::Spec->rel2abs is available
-# only in Perl 5.6.)
-# Remove this once we require 5.6.
-sub rel2abs ($$)
-{
-  my ($file, $dir) = @_;
-  if (! File::Spec->file_name_is_absolute ($file))
-    {
-      $dir = cwd () . "/$dir"
-       unless File::Spec->file_name_is_absolute ($dir);
-      $file = "$dir/$file";
-    }
-  $file = File::Spec->canonpath ($file);
-  return $file;
-}
-
 # scan_configure_dep ($file)
 # --------------------------
 # Scan a configure dependency (configure.ac, or separate m4 files)
@@ -276,7 +257,7 @@ sub scan_configure_dep ($)
 
   add_macro ($_) foreach (@rlist);
   my $dirname = dirname $file;
-  &scan_configure_dep (rel2abs ($_, $dirname)) foreach (@ilist);
+  &scan_configure_dep (File::Spec->rel2abs ($_, $dirname)) foreach (@ilist);
 }
 
 # Add a file to output.
index de01fa08e6874e9e489ab444346d087dbbc6cee9..c50a066fd058c7668fed3dc789d06992c3716c8a 100755 (executable)
--- a/configure
+++ b/configure
@@ -2026,9 +2026,13 @@ if test -z "$PERL"; then
 echo "$as_me: error: perl not found" >&2;}
    { (exit 1); exit 1; }; }
 fi
-$PERL -e 'require 5.005;' || {
-   { { echo "$as_me:$LINENO: error: perl 5.005 or better is required" >&5
-echo "$as_me: error: perl 5.005 or better is required" >&2;}
+$PERL -e 'require 5.006;' || {
+   { { echo "$as_me:$LINENO: error: perl 5.6 or better is required.  If you have several perl
+versions installed, select the one Automake should use using
+  ./configure PERL=/path/to/perl" >&5
+echo "$as_me: error: perl 5.6 or better is required.  If you have several perl
+versions installed, select the one Automake should use using
+  ./configure PERL=/path/to/perl" >&2;}
    { (exit 1); exit 1; }; }
 }
 
index e55aab9016dfc9b00c7b6d3d2624cc4b22f19c2e..7458e9ddd98c1ec916532be6f5d563e1a0cb15a6 100644 (file)
@@ -56,8 +56,11 @@ AC_PATH_PROG(PERL, perl)
 if test -z "$PERL"; then
    AC_MSG_ERROR([perl not found])
 fi
-$PERL -e 'require 5.005;' || {
-   AC_MSG_ERROR([perl 5.005 or better is required])
+$PERL -e 'require 5.006;' || {
+   AC_MSG_ERROR(
+[perl 5.6 or better is required.  If you have several perl
+versions installed, select the one Automake should use using
+  ./configure PERL=/path/to/perl])
 }
 
 # The test suite will skip some tests if tex is absent.
index 27df82c5aecea44c864a7803f02e332d5a130da7..b6d23da1ad0cb4047548131dc3cc9dcdf8198ca7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2003  Free Software Foundation, Inc.      -*- Perl -*-
+# Copyright (C) 2003, 2004  Free Software Foundation, Inc.      -*- Perl -*-
 # @configure_input@
 
 # This program is free software; you can redistribute it and/or modify
 package Automake::Config;
 use strict;
 
+use 5.006;
 require Exporter;
-use vars qw (@ISA @EXPORT);
 
-@ISA = qw (Exporter);
-@EXPORT = qw ($APIVERSION $PACKAGE $VERSION $libdir);
-
-use vars qw ($APIVERSION $PACKAGE $VERSION $libdir);
+our @ISA = qw (Exporter);
+our @EXPORT = qw ($APIVERSION $PACKAGE $VERSION $libdir);
 
 # Parameters set by configure.  Not to be changed.  NOTE: assign
 # VERSION as string so that e.g. version 0.30 will print correctly.
-$APIVERSION = '@APIVERSION@';
-$PACKAGE = '@PACKAGE@';
-$VERSION = '@VERSION@';
-$libdir = '@datadir@/@PACKAGE@-@APIVERSION@';
+our $APIVERSION = '@APIVERSION@';
+our $PACKAGE = '@PACKAGE@';
+our $VERSION = '@VERSION@';
+our $libdir = '@datadir@/@PACKAGE@-@APIVERSION@';
 
 1;;