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.
{ (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; }; }
}
# 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
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])
}
#! /bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$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