]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* configure.ac: Recommend perl-5.8.2.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 10 May 2006 21:13:22 +0000 (21:13 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 10 May 2006 21:13:22 +0000 (21:13 +0000)
* tests/automake.test: Do not fail because of buggy Getopt::Long
in perl < 5.8.2.

ChangeLog
configure
configure.ac
tests/automake.test

index 70c9fbca7962dcfea26c2a60eb3aaa79b4071c03..95a59d8b447a28ebda3d9692819cd1e0e6b2e80d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-05-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * configure.ac: Recommend perl-5.8.2.
+       * tests/automake.test: Do not fail because of buggy Getopt::Long
+       in perl < 5.8.2.
+
        * tests/longlin2.test: Do not use `grep' on Makefile.am:
        it has long lines and is thus not a text file; AIX 5.1 grep
        fails to scan non-plain patterns from long lines.
index 6f7e2ad61dad1f1d7a2791c274ba420c7b45ece1..1f6b40fa8e698ce01d36dffc07bbf73109c24ca8 100755 (executable)
--- a/configure
+++ b/configure
@@ -2226,11 +2226,13 @@ echo "$as_me: error: perl not found" >&2;}
    { (exit 1); exit 1; }; }
 fi
 $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
+   { { echo "$as_me:$LINENO: error: perl 5.6 or better is required; perl 5.8.2 or better
+is recommended.  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
+echo "$as_me: error: perl 5.6 or better is required; perl 5.8.2 or better
+is recommended.  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 f709fe9505941d7bf731b128c9c707e9f9e45f0e..f61ef248dab616cbda1780821cc53b4dbe5ab0b4 100644 (file)
@@ -1,7 +1,7 @@
 # Process this file with autoconf to produce a configure script.
 
-# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
-# Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+# 2004, 2006  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -58,8 +58,9 @@ if test -z "$PERL"; then
 fi
 $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
+[perl 5.6 or better is required; perl 5.8.2 or better
+is recommended.  If you have several perl versions
+installed, select the one Automake should use using
   ./configure PERL=/path/to/perl])
 }
 
index 0d12892ef249801cb7d45cbfd97dfe1880c71e24..4e197d34d8c5c6f9196320e8a569c15bdeba04c3 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2004  Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -27,8 +27,11 @@ $AUTOMAKE --help
 $AUTOMAKE --version
 AUTOMAKE_fails --voo
 grep 'unrecognized option.*--voo' stderr
-AUTOMAKE_fails -- --voo
-grep 'input file.*--voo' stderr
+# older perl has a buggy Getopt::Long which makes this fail.
+if $PERL -e 'require 5.8.2;'; then
+  AUTOMAKE_fails -- --voo
+  grep 'input file.*--voo' stderr
+fi
 AUTOMAKE_fails ''
 grep 'empty argument' stderr
 AUTOMAKE_fails -W