Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-11-12 Thread Ralf Wildenhues
Hi Stefano,

* Stefano Lattarini wrote on Wed, Nov 03, 2010 at 07:12:27PM CET:
  http://lists.gnu.org/archive/html/automake-patches/2010-11/msg3.html
[...]
 --- /dev/null
 +++ b/tests/backcompat6.test
 @@ -0,0 +1,105 @@

 +# Backward-compatibility test: try to build and distribute a package
 +# using obsoleted forms of AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT.
 +# This script can also serve as mild stress-testing for Automke.
 +# See also the similar test `backcompat5.test'.

 +cat  Makefile.am 'END'
 +bin_PROGRAMS = foo
 +foo_SOURCES = quux.c
 +DISTCLEANFILES = *.tmp
 +check-local:
 + rm -f exp got
 + echo 'PACKAGE = nonesuch-zardoz'  exp.tmp
 + echo 'VERSION = nonesuch-0.1'  exp.tmp
 + echo 'PACKAGE = $(PACKAGE)'  got1.tmp
 + echo 'VERSION = $(VERSION)'  got1.tmp
 + ./foo  got2.tmp
 + cat exp.tmp
 + cat got1.tmp
 + cat got2.tmp
 + diff exp.tmp got1.tmp
 + diff exp.tmp got2.tmp
 +END
 +
 +cat  quux.c 'END'
 +#include config.h
 +#include stdio.h
 +int main (void)
 +{
 +  printf(PACKAGE = %s\nVERSION = %s\n, PACKAGE, VERSION);
 +  return 0;
 +}
 +END

The diff between exp.tmp and got2.tmp fails on MinGW/MSYS because the
foo program uses w32-style CRLF newlines whereas the shell prints LF
only.

The easiest fix would be to grep for the lines in question, I guess.

Thanks,
Ralf



Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-11-12 Thread Ralf Wildenhues
* Stefano Lattarini wrote on Fri, Nov 12, 2010 at 08:57:05PM CET:
 How about
 
   * tests/backcompat6.test (Makefile.am): Grep the output from the
 test program, rather than diffing it, to avoid spurious failures
 on MinGW/MSYS due to LF vs. CRLF line endings.

Sure, thanks!
Ralf



Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-11-06 Thread Stefano Lattarini
On Saturday 06 November 2010, Ralf Wildenhues wrote:
 * Stefano Lattarini wrote on Wed, Nov 03, 2010 at 07:12:27PM CET:
  Pinging this patch again, following this:
   http://lists.gnu.org/archive/html/automake-patches/2010-11/msg3.html
  
  I've also re-based the patch off of latest maint, extended some checks a
  little bit, fixed a typo in comments, and fixed some very minor and 
  theoretic
  portability problems (use of test -z).
  The updated patch is attached.
 
 The patch is ok except I don't think the PACKAGE_URL part will work with
 Autoconf 2.62, it was added later only.
Yes, it works (tested), because we only check that it's empty if AC_INIT is
called with two arguments, and that was true also for older autoconf versions.
 You can look at Automake's own
 configure.ac for a workaround; the patch is OK with a fix to that end
 that you deem suitable.
I don't think a fix is needed here.
 
 When you post updated patches, then to avoid having to re-review the
 whole patch again you could additionally post an incremental patch.
 You can usually get one with something like
   git diff h...@{1}
 
 right after committing the increment, or some
   git diff h...@{$a} h...@{$b}
 
 for some suitable $a and $b.  Thanks.
Will do (hopefully at least; just scold me again if I forgot!)

 [CUT]

Regards,
  Stefano



[FYI] Patch pushed (was: Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.)

2010-11-06 Thread Stefano Lattarini
I just pushed the patch, by applying it to a temporary branch
based off of maint (named backcompat-tests), and then merging
that branch into master right away.

Regards,
   Stefano
 



Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-11-03 Thread Stefano Lattarini
Pinging this patch again, following this:
 http://lists.gnu.org/archive/html/automake-patches/2010-11/msg3.html

I've also re-based the patch off of latest maint, extended some checks a
little bit, fixed a typo in comments, and fixed some very minor and theoretic
portability problems (use of test -z).
The updated patch is attached.

The only unresolved question about the patch is the following one:
 At Thursday 17 June 2010, Ralf Wildenhues wrote:
  Stefano Lattarini wrote:
   --- /dev/null
   +++ b/tests/backcompat2.test
  
   @@ -0,0 +1,69 @@
   +# A trick to make the test run muuuch faster, by avoiding repeated
   +# runs of aclocal (one order of magnitude improvement in speed!).
   +echo 'AC_INIT(x,0) AM_INIT_AUTOMAKE' configure.in
   +$ACLOCAL
 
  Hmm, does that mean this test completely relies on caching?
 It should mean that the test relies on each autoconf call requiring an
 aclocal.m4 that defines just AM_INIT_AUTOMAKE and the macros it requires,
 and nothing more.  And this aclocal.m4 is created by the first $ACLOCAL
 run.
 Just to be sure, I amended the script to remove the autom4te.* stuff after
 the call to $ACLOCAL (and only then).

  You probably need a $sleep or rm -rf autom4te.cache before
  each of the following edits to configure.in, to avoid autotools
  operating on old cached transformations of the file.
 But then we would need to do that in each test where we modify and reuse
 'configure.in' (see e.g. acloca10.test, pr401.test, nodef.test, etc..).
 Right?

  Am I overlooking something here?
 I'd like to ask you the same question :-)

So, OK to push as is, or should I address your concerns about autom4te
caching in some way?

Regards,
   Stefano
From d41eadf9a9f51c74c9a3095db01739094c77aba4 Mon Sep 17 00:00:00 2001
From: Stefano Lattarini stefano.lattar...@gmail.com
Date: Fri, 18 Jun 2010 12:56:47 +0200
Subject: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

* tests/backcompat.test: New test script.
* tests/backcompat2.test: Likewise.
* tests/backcompat3.test: Likewise.
* tests/backcompat4.test: Likewise.
* tests/backcompat5.test: Likewise.
* tests/backcompat6.test: Likewise.
* tests/init.test: Extended and improved, esp. by trying more
combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
arguments.
* tests/Makefile.am (TESTS): Updated.
---
 ChangeLog  |   15 +
 tests/Makefile.am  |6 ++
 tests/Makefile.in  |7 ++
 tests/backcompat.test  |   66 +
 tests/backcompat2.test |   67 +
 tests/backcompat3.test |  153 
 tests/backcompat4.test |   64 
 tests/backcompat5.test |  119 +
 tests/backcompat6.test |  105 +
 tests/init.test|   29 ++
 10 files changed, 620 insertions(+), 11 deletions(-)
 create mode 100755 tests/backcompat.test
 create mode 100755 tests/backcompat2.test
 create mode 100755 tests/backcompat3.test
 create mode 100755 tests/backcompat4.test
 create mode 100755 tests/backcompat5.test
 create mode 100755 tests/backcompat6.test

diff --git a/ChangeLog b/ChangeLog
index 7883d5e..b22b094 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2010-11-03  Stefano Lattarini  stefano.lattar...@gmail.com
+
+	New tests on obsoleted usages of automake/autoconf macros (such
+	as AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
+	* tests/backcompat.test: New test script.
+	* tests/backcompat2.test: Likewise.
+	* tests/backcompat3.test: Likewise.
+	* tests/backcompat4.test: Likewise.
+	* tests/backcompat5.test: Likewise.
+	* tests/backcompat6.test: Likewise.
+	* tests/init.test: Extended and improved, esp. by trying more
+	combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
+	arguments.
+	* tests/Makefile.am (TESTS): Updated.
+
 2010-10-04  Stefano Lattarini  stefano.lattar...@gmail.com
 
 	Add support for newer python versions.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index acc7640..5cc293d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -103,6 +103,12 @@ auxdir.test \
 auxdir2.test \
 auxdir3.test \
 auxdir4.test \
+backcompat.test \
+backcompat2.test \
+backcompat3.test \
+backcompat4.test \
+backcompat5.test \
+backcompat6.test \
 backsl.test \
 backsl2.test \
 backsl3.test \
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 117f2ba..7e88ab6 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -280,6 +280,7 @@ gcj6.test \
 txinfo5.test
 
 parallel_tests = \
+backcompat5-p.test \
 check-p.test \
 check10-p.test \
 check11-p.test \
@@ -370,6 +371,12 @@ auxdir.test \
 auxdir2.test \
 auxdir3.test \
 auxdir4.test \
+backcompat.test \
+backcompat2.test \
+backcompat3.test \
+backcompat4.test \
+backcompat5.test \
+backcompat6.test \
 backsl.test \
 backsl2.test \
 backsl3.test \
diff --git a/tests/backcompat.test b/tests/backcompat.test
new file mode 100755
index 000..3367db2
--- /dev/null
+++ b

Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-08-05 Thread Stefano Lattarini
Hello Ralf.

Ping on this?  It seems to me that most issues with this patch had 
already been solved, so it's probably a pity to let it bitrotting
here...

Regards,
Stefano



Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-06-18 Thread Stefano Lattarini
At Thursday 17 June 2010, Ralf Wildenhues wrote:
 Hi Stefano,
 
 * Stefano Lattarini wrote on Sat, Jun 12, 2010 at 11:31:57PM CEST:
  New tests on obsoleted usages of automake/autoconf macros (as
  AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
 
 I have some detail questions about these tests, below.
 Thanks for working on them!
 
 Cheers,
 Ralf
 
  --- /dev/null
  +++ b/tests/backcompat2.test
 
  @@ -0,0 +1,69 @@
  +# A trick to make the test run muuuch faster, by avoiding repeated
  +# runs of aclocal (one order of magnitude improvement in speed!).
  +echo 'AC_INIT(x,0) AM_INIT_AUTOMAKE' configure.in
  +$ACLOCAL
 
 Hmm, does that mean this test completely relies on caching?
It *should* mean that the test relies on each autoconf call requiring an
aclocal.m4 that defines just AM_INIT_AUTOMAKE and the macros it requires,
and nothing more.  And this aclocal.m4 is created by the first $ACLOCAL
run.

Just to be sure, I amended the script to remove the autom4te.* stuff after
the call to $ACLOCAL (and only then).

 You probably need a $sleep or rm -rf autom4te.cache before
 each of the following edits to configure.in, to avoid autotools
 operating on old cached transformations of the file.
But then we would need to do that in each test where we modify and reuse
'configure.in' (see e.g. acloca10.test, pr401.test, nodef.test, etc..).  Right?

 Am I overlooking something here?
I'd like to ask you the same question :-)
Can you explain in few words how autotools caching works exactly?
I'm starting to feel rather confused...

  +
  +cat  Makefile.am 'END'
  +got: Makefile
  +   @{ \
 
 Please put ':;' before '{', see `info Autoconf Limitations of
 Builtins' on {...}.
OK.

  + echo 'PACKAGE = $(PACKAGE)'; \
  + echo 'VERSION = $(VERSION)'; \
  + echo 'PACKAGE_NAME = $(PACKAGE_NAME)'; \
  + echo 'PACKAGE_VERSION = $(PACKAGE_VERSION)'; \
  + echo 'PACKAGE_STRING = $(PACKAGE_STRING)'; \
  + echo 'PACKAGE_TARNAME = $(PACKAGE_TARNAME)'; \
  + echo 'PACKAGE_BUGREPORT = $(PACKAGE_BUGREPORT)'; \
  + echo 'PACKAGE_URL = $(PACKAGE_URL)'; \
 
 git Automake still aims to build with Autoconf 2.62, which didn't
 provide PACKAGE_URL yet,
Oops.
 that is only 2.64+.  Does this test work with older Autoconf
 versions?
Nope.  But the amended test works with autoconf 2.62 and autom4te 2.62
(tested).

  --- /dev/null
  +++ b/tests/backcompat6.test
 
  +# Anyone doing something like this in a real-life package probably
  +# deserves to be killed.
 
 I'm not yet sure whether I really want this particular test.
Well, it's up to you to decide :-)
It depends on which degree of backward-compatibility and/or users' bad
practices you are willing to support (the 'configure.in' in this test is
admittedly a bit extreme in those respects).
For the moment, I've watered down the test a bit.  If you still think it's not
worth having, simply remove it.  But IMHO we should have at least a test
having in 'configure.in' something like:
  PACKAGE=foo
  VERSION=bar
  AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

  diff --git a/tests/init.test b/tests/init.test
  index 38ec681..61a5b63 100755
  --- a/tests/init.test
  +++ b/tests/init.test
  [CUT]
  -cat configure.in END
  -AC_INIT
  -AM_INIT_AUTOMAKE
  +for ac_init_args in '' '([x])'; do
  +  for am_init_args in '' '([1.10])'; do
  +rm -rf aclocal.m4 autom4ate*.cache
 
 Typo autom4ate.
Oops. Fixed.

Regards,
  Stefano
From 77b0461a42045a68d316328cc5a6963c0f1aa796 Mon Sep 17 00:00:00 2001
From: Stefano Lattarini stefano.lattar...@gmail.com
Date: Fri, 18 Jun 2010 12:56:47 +0200
Subject: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

* tests/backcompat.test: New test script.
* tests/backcompat2.test: Likewise.
* tests/backcompat3.test: Likewise.
* tests/backcompat4.test: Likewise.
* tests/backcompat5.test: Likewise.
* tests/backcompat6.test: Likewise.
* tests/init.test: Extended and improved, esp. by trying more
combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
arguments.
* tests/Makefile.am (TESTS): Updated.
---
 ChangeLog  |   15 +
 tests/Makefile.am  |6 ++
 tests/Makefile.in  |   19 --
 tests/backcompat.test  |   66 
 tests/backcompat2.test |   69 +
 tests/backcompat3.test |  154 
 tests/backcompat4.test |   62 +++
 tests/backcompat5.test |  118 
 tests/backcompat6.test |  104 
 tests/init.test|   29 ++
 10 files changed, 625 insertions(+), 17 deletions(-)
 create mode 100755 tests/backcompat.test
 create mode 100755 tests/backcompat2.test
 create mode 100755 tests/backcompat3.test
 create mode 100755 tests/backcompat4.test
 create mode 100755 tests/backcompat5.test
 create mode 100755 tests/backcompat6.test

diff --git a/ChangeLog b/ChangeLog
index c4e69a5..8c03021 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2010-06-18

Re: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-06-17 Thread Ralf Wildenhues
Hi Stefano,

* Stefano Lattarini wrote on Sat, Jun 12, 2010 at 11:31:57PM CEST:
 New tests on obsoleted usages of automake/autoconf macros (as
 AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).

I have some detail questions about these tests, below.
Thanks for working on them!

Cheers,
Ralf

 --- /dev/null
 +++ b/tests/backcompat2.test

 @@ -0,0 +1,69 @@
 +# A trick to make the test run muuuch faster, by avoiding repeated
 +# runs of aclocal (one order of magnitude improvement in speed!).
 +echo 'AC_INIT(x,0) AM_INIT_AUTOMAKE' configure.in
 +$ACLOCAL

Hmm, does that mean this test completely relies on caching?
You probably need a $sleep or rm -rf autom4te.cache before
each of the following edits to configure.in, to avoid autotools
operating on old cached transformations of the file.  Am I overlooking
something here?

 +rm -f configure.in
 +
 +cat  config.h.in 'END'
 +#undef PACKAGE
 +#undef VERSION
 +END
 +
 +for am_arg3 in ':' 'false' '#' ' '; do
 +  cat  configure.in END
 +AC_INIT
 +AC_CONFIG_HEADERS([config.h])
 +AM_INIT_AUTOMAKE([pkgname], [pkgversion], [$am_arg3])
 +AC_OUTPUT
 +END
 +  cat configure.in # might be useful for debugging
 +  $AUTOCONF
 +  ./configure
 +  test -f config.h # sanity check
 +  cat config.h # might be useful for debugging
 +  # The non-empty third argument should prevent PACKAGE and VERSION
 +  # from being AC_DEFINE'd.
 +  $EGREP 'pkg(name|version)' config.h  Exit 1
 +done
 +
 +for am_extra_args in '' ',' ', []'; do
 +  cat  configure.in END
 +AC_INIT
 +AC_CONFIG_HEADERS([config.h])
 +AM_INIT_AUTOMAKE([pkgname], [pkgversion]$am_extra_args)
 +AC_OUTPUT
 +END
 +  cat configure.in # might be useful for debugging
 +  $AUTOCONF
 +  ./configure
 +  test -f config.h # sanity check
 +  cat config.h # might be useful for debugging
 +  grep '^ *# *define  *PACKAGE  *pkgname *$' config.h
 +  grep '^ *# *define  *VERSION  *pkgversion *$' config.h
 +done

 --- /dev/null
 +++ b/tests/backcompat3.test
 @@ -0,0 +1,144 @@

 +# Backward-compatibility test: check what happens when AC_INIT and
 +# AM_INIT_AUTOMAKE are both given two or more arguments.
 +
 +. ./defs || Exit 1
 +
 +set -e
 +
 +empty=''
 +
 +cat  Makefile.am 'END'
 +got: Makefile
 + @{ \

Please put ':;' before '{', see `info Autoconf Limitations of
Builtins' on {...}.

 +   echo 'PACKAGE = $(PACKAGE)'; \
 +   echo 'VERSION = $(VERSION)'; \
 +   echo 'PACKAGE_NAME = $(PACKAGE_NAME)'; \
 +   echo 'PACKAGE_VERSION = $(PACKAGE_VERSION)'; \
 +   echo 'PACKAGE_STRING = $(PACKAGE_STRING)'; \
 +   echo 'PACKAGE_TARNAME = $(PACKAGE_TARNAME)'; \
 +   echo 'PACKAGE_BUGREPORT = $(PACKAGE_BUGREPORT)'; \
 +   echo 'PACKAGE_URL = $(PACKAGE_URL)'; \

git Automake still aims to build with Autoconf 2.62, which didn't
provide PACKAGE_URL yet, that is only 2.64+.  Does this test work
with older Autoconf versions?

 + } $@
 +END
 +
 +
 +### Run 1 ###
 +
 +cat  configure.in END
 +AC_INIT([ac_name], [ac_version])
 +AM_INIT_AUTOMAKE([am_name], [am_version])
 +AC_CONFIG_FILES([Makefile])
 +AC_OUTPUT
 +END
 +
 +cat configure.in
 +
 +$ACLOCAL
 +$AUTOCONF
 +$AUTOMAKE
 +
 +./configure
 +
 +cat exp END
 +PACKAGE = am_name
 +VERSION = am_version
 +PACKAGE_NAME = ac_name
 +PACKAGE_VERSION = ac_version
 +PACKAGE_STRING = ac_name ac_version
 +PACKAGE_TARNAME = ac_name
 +PACKAGE_BUGREPORT = $empty
 +PACKAGE_URL = $empty
 +END
 +
 +$MAKE got
 +
 +diff exp got
 +
 +
 +### Run 2 ###
 +
 +cat  configure.in END
 +AC_INIT([ac_name], [ac_version], [ac_bugreport], [ac_tarname], [ac_url])
 +AM_INIT_AUTOMAKE([am_name], [am_version])
 +AC_CONFIG_FILES([Makefile])
 +AC_OUTPUT
 +END
 +
 +cat configure.in
 +
 +$ACLOCAL
 +$AUTOCONF
 +$AUTOMAKE
 +
 +./configure
 +
 +cat exp END
 +PACKAGE = am_name
 +VERSION = am_version
 +PACKAGE_NAME = ac_name
 +PACKAGE_VERSION = ac_version
 +PACKAGE_STRING = ac_name ac_version
 +PACKAGE_TARNAME = ac_tarname
 +PACKAGE_BUGREPORT = ac_bugreport
 +PACKAGE_URL = ac_url
 +END
 +
 +$MAKE got
 +
 +diff exp got
 +
 +
 +### Run 3 ###
 +
 +cat  configure.in END
 +AC_INIT([ac_name], [ac_version])
 +AM_INIT_AUTOMAKE([am_name], [am_version], [am_foo_quux])
 +AC_CONFIG_FILES([Makefile])
 +AC_OUTPUT
 +END
 +
 +cat configure.in
 +
 +$ACLOCAL
 +$AUTOCONF
 +$AUTOMAKE
 +
 +./configure
 +
 +cat exp END
 +PACKAGE = am_name
 +VERSION = am_version
 +PACKAGE_NAME = ac_name
 +PACKAGE_VERSION = ac_version
 +PACKAGE_STRING = ac_name ac_version
 +PACKAGE_TARNAME = ac_name
 +PACKAGE_BUGREPORT = $empty
 +PACKAGE_URL = $empty
 +END
 +
 +$MAKE got
 +
 +diff exp got
 +
 +$FGREP am_foo_quux Makefile.in Makefile configure config.status  Exit 1
 +
 +
 +### Done ###



 --- /dev/null
 +++ b/tests/backcompat6.test

 +# Anyone doing something like this in a real-life package probably
 +# deserves to be killed.

I'm not yet sure whether I really want this particular test.

 +cat  configure.in 'END'
 +dnl. Everything here is *deliberately* underquoted!
 +AC_INIT(${me-xxx}.c) dnl. Hacky!
 +PACKAGE=nonesuch-${me-xxx} dnl. Hacky!
 +VERSION=nonesuch-0.1
 

[PATCH] New tests on obsoleted usages of automake/autoconf macros.

2010-06-12 Thread Stefano Lattarini
New tests on obsoleted usages of automake/autoconf macros (as
AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).

* tests/backcompat.test: New test script.
* tests/backcompat2.test: Likewise.
* tests/backcompat3.test: Likewise.
* tests/backcompat4.test: Likewise.
* tests/backcompat5.test: Likewise.
* tests/backcompat6.test: Likewise.
* tests/init.test: Extended and improved, esp. by trying more
combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
arguments.
* tests/Makefile.am (TESTS): Updated.
From 6d32cd86d163831ef0d9b915b4906afb6e1b4794 Mon Sep 17 00:00:00 2001
From: Stefano Lattarini stefano.lattar...@gmail.com
Date: Sat, 12 Jun 2010 22:29:59 +0200
Subject: [PATCH] New tests on obsoleted usages of automake/autoconf macros.

* tests/backcompat.test: New test script.
* tests/backcompat2.test: Likewise.
* tests/backcompat3.test: Likewise.
* tests/backcompat4.test: Likewise.
* tests/backcompat5.test: Likewise.
* tests/backcompat6.test: Likewise.
* tests/init.test: Extended and improved, esp. by trying more
combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
arguments.
* tests/Makefile.am (TESTS): Updated.
---
 ChangeLog  |   15 +
 tests/Makefile.am  |6 ++
 tests/Makefile.in  |   19 --
 tests/backcompat.test  |   66 ++
 tests/backcompat2.test |   69 +++
 tests/backcompat3.test |  144 
 tests/backcompat4.test |   62 +
 tests/backcompat5.test |  118 +++
 tests/backcompat6.test |  104 ++
 tests/init.test|   29 ++
 10 files changed, 615 insertions(+), 17 deletions(-)
 create mode 100755 tests/backcompat.test
 create mode 100755 tests/backcompat2.test
 create mode 100755 tests/backcompat3.test
 create mode 100755 tests/backcompat4.test
 create mode 100755 tests/backcompat5.test
 create mode 100755 tests/backcompat6.test

diff --git a/ChangeLog b/ChangeLog
index c4e69a5..320fbd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2010-06-12  Stefano Lattarini  stefano.lattar...@gmail.com
+
+	New tests on obsoleted usages of automake/autoconf macros (as
+	AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
+	* tests/backcompat.test: New test script.
+	* tests/backcompat2.test: Likewise.
+	* tests/backcompat3.test: Likewise.
+	* tests/backcompat4.test: Likewise.
+	* tests/backcompat5.test: Likewise.
+	* tests/backcompat6.test: Likewise.
+	* tests/init.test: Extended and improved, esp. by trying more
+	combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
+	arguments.
+	* tests/Makefile.am (TESTS): Updated.
+
 2010-06-12  Ralf Wildenhues  ralf.wildenh...@gmx.de
 
 	Remove a couple of unneeded conditionals from tests.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7875fc5..f5f06b9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -118,6 +118,12 @@ auxdir.test \
 auxdir2.test \
 auxdir3.test \
 auxdir4.test \
+backcompat.test \
+backcompat2.test \
+backcompat3.test \
+backcompat4.test \
+backcompat5.test \
+backcompat6.test \
 backsl.test \
 backsl2.test \
 backsl3.test \
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 07f27ed..905b12e 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -257,12 +257,12 @@ cond17.test	\
 gcj6.test	\
 txinfo5.test
 
-parallel_tests = check-p.test check10-p.test check11-p.test \
-	check2-p.test check3-p.test check4-p.test check5-p.test \
-	check6-p.test check7-p.test check8-p.test check9-p.test \
-	color-p.test color2-p.test comment9-p.test dejagnu-p.test \
-	exeext4-p.test maken3-p.test maken4-p.test pr401-p.test \
-	pr401b-p.test pr401c-p.test
+parallel_tests = backcompat5-p.test check-p.test check10-p.test \
+	check11-p.test check2-p.test check3-p.test check4-p.test \
+	check5-p.test check6-p.test check7-p.test check8-p.test \
+	check9-p.test color-p.test color2-p.test comment9-p.test \
+	dejagnu-p.test exeext4-p.test maken3-p.test maken4-p.test \
+	pr401-p.test pr401b-p.test pr401c-p.test
 MAINTAINERCLEANFILES = $(parallel_tests)
 TESTS = \
 aclibobj.test \
@@ -331,6 +331,12 @@ auxdir.test \
 auxdir2.test \
 auxdir3.test \
 auxdir4.test \
+backcompat.test \
+backcompat2.test \
+backcompat3.test \
+backcompat4.test \
+backcompat5.test \
+backcompat6.test \
 backsl.test \
 backsl2.test \
 backsl3.test \
@@ -1364,6 +1370,7 @@ uninstall-am:
 	maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
 	pdf-am ps ps-am recheck recheck-html uninstall uninstall-am
 
+backcompat5-p.log: backcompat5.test
 check-p.log: check.test
 check10-p.log: check10.test
 check11-p.log: check11.test
diff --git a/tests/backcompat.test b/tests/backcompat.test
new file mode 100755
index 000..770e8d8
--- /dev/null
+++ b/tests/backcompat.test
@@ -0,0 +1,66 @@
+#! /bin/sh
+# Copyright (C) 2010 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms