[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running a plain ./config.status at top level
From: |
Akim Demaille |
Subject: |
Re: Running a plain ./config.status at top level |
Date: |
Wed, 09 Apr 2003 17:08:55 +0200 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) |
| make check is running.
I have an unexpected PASS on subdir5.test, but my local src tree is
old as I have a bad Internet connection. Here is the top of
ChangeLog, so that one can tell me if that XPASS had been fixed in
between:
2003-04-09 Akim Demaille <address@hidden>
* lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is older
than configure.ac, run automake without argument to update the
whole tree at once.
(%MAKEFILE%): If the top level Makefile is to be updated, run
config.status without arguments.
2003-03-01 Akim Demaille <address@hidden>
* lib/am/tags.am (TAGS): Use --etags-include instead of --include,
when supported by etags (Exuberant Ctags).
2003-02-26 Alexandre Duret-Lutz <address@hidden>
* automake.texi (Emacs Lisp): Mention that `dist_' can be used.
* automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
instead of lisp_LISP when they don't want byte-compilation.
Don't mention ELCFILES anymore.
* automake.in (handle_data): Allow lisp_DATA.
* tests/lisp5.test: New file.
* tests/Makefile.am (TESTS): Add lisp5.test.
* automake.in (handle_emacs_lisp): Don't build *.elc files
if ELCFILES was set empty.
* tests/lisp4.test: New file.
* tests/Makefile.am (TESTS): Add lisp4.test.
Reported by Simon Josefsson.
* tests/lex3.test, tests/lex5.test: Require flex.
Reported by Leo Davis.
The current version of the patch is appended below. If you like it,
please just install it, as I doubt my CVS connection to RedHat will
improve.
--- lib/am/configure.am.orig 2003-04-08 18:01:33.000000000 +0200
+++ lib/am/configure.am 2003-04-09 09:16:56.000000000 +0200
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright 2001
+## Copyright (C) 2001, 2003
## Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
@@ -23,14 +23,34 @@
## This rule remakes the Makefile.in.
%MAKEFILE-IN%: %MAINTAINER-MODE% %MAKEFILE-AM% %MAKEFILE-IN-DEPS%
$(top_srcdir)/%CONFIGURE-AC% $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --%STRICTNESS% %USE-DEPS% %MAKEFILE-AM-SOURCES%
+## If Makefile.in is to be updated because of configure.ac, all the
+## Makefile.in are to be updated; it is then more efficient to run
+## automake on all the Makefiles at once.
+ newest=`ls -1dt %MAKEFILE-IN% $(top_srcdir)/%CONFIGURE-AC% 2>/dev/null
| sed 1q`; \
+ if test $$newest != %MAKEFILE-IN%; then \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --%STRICTNESS% %USE-DEPS%; \
+ else \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --%STRICTNESS% %USE-DEPS% %MAKEFILE-AM-SOURCES%; \
+ fi
## This rule remakes the Makefile.
%MAKEFILE%: %MAINTAINER-MODE% %MAKEFILE-IN% %MAKEFILE-DEPS%
$(top_builddir)/config.status
+## If Makefile is to be updated because of config.status, then run
+## config.status without argument in order to (i) rerun all the
+## AC_CONFIG_COMMANDS including those that are not visible to
+## Automake, and (ii) to save time by running config.status all with
+## all the files, instead of once per file.
+ newest=`ls -1dt %MAKEFILE% $(top_builddir)/config.status 2>/dev/null |
sed 1q`; \
+ if test $$newest != %MAKEFILE%; then \
+ cd $(top_builddir) && $(SHELL) ./config.status; \
+ else \
## FIXME: $(am__depfiles_maybe) lets us re-run the rule to create the
## .P files. Ideally we wouldn't have to do this by hand.
- cd $(top_builddir) && $(SHELL) ./config.status %CONFIG-MAKEFILE%
$(am__depfiles_maybe)
+ cd $(top_builddir) && $(SHELL) ./config.status %CONFIG-MAKEFILE%
$(am__depfiles_maybe) ; \
+ fi
+
## --------------------------- ##
## config.status & configure. ##
here is the VERBOSE XPASS.
----------------------------------------------------------------------
make defs
make[1]: Entering directory `/home/akim/src/am/tests'
make[1]: `defs' is up to date.
make[1]: Leaving directory `/home/akim/src/am/tests'
make check-TESTS
make[1]: Entering directory `/home/akim/src/am/tests'
subdir5: running make --version -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
subdir5: running gcc --version
gcc (GCC) 3.2.3 20030331 (Debian prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
=== Running test ./subdir5.test
/home/akim/src/am/tests/testSubDir
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"maude\"
-DVERSION=\"1.0\" -I. -I. -g -O2 -MT a.o -MD -MP -MF ".deps/a.Tpo" \
-c -o a.o a.c; \
then mv ".deps/a.Tpo" ".deps/a.Po"; \
else rm -f ".deps/a.Tpo"; exit 1; \
fi
gcc -g -O2 -o wish a.o
cd . && /usr/bin/perl /home/akim/src/am/tests/testSubDir/../../aclocal -I
/home/akim/src/am/tests/testSubDir/../../m4
--acdir=/home/akim/src/am/tests/../m4
newest=`ls -1dt ./Makefile.in ./configure.in 2>/dev/null | sed 1q`; \
if test $newest != ./Makefile.in; then \
cd . && \
/usr/bin/perl /home/akim/src/am/tests/testSubDir/../../automake
--libdir=/home/akim/src/am/tests/../lib --foreign -Werror -Wall --foreign ; \
else \
cd . && \
/usr/bin/perl /home/akim/src/am/tests/testSubDir/../../automake
--libdir=/home/akim/src/am/tests/../lib --foreign -Werror -Wall --foreign
Makefile; \
fi
cd . && /bin/sh /home/akim/src/am/tests/testSubDir/missing --run autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure CC=gcc --no-create --no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
configure: creating ./config.status
newest=`ls -1dt Makefile ./config.status 2>/dev/null | sed 1q`; \
if test $newest != Makefile; then \
cd . && /bin/sh ./config.status; \
else \
cd . && /bin/sh ./config.status Makefile depfiles ; \
fi
config.status: creating Makefile
config.status: creating maude/Makefile
config.status: executing depfiles commands
Making all in maude
make[1]: Entering directory `/home/akim/src/am/tests/testSubDir/maude'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/akim/src/am/tests/testSubDir/maude'
make[1]: Entering directory `/home/akim/src/am/tests/testSubDir'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/akim/src/am/tests/testSubDir'
XPASS: subdir5.test
=============================================================
1 of 1 tests did not behave as expected (1 unexpected passes)
Please report to address@hidden
=============================================================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/home/akim/src/am/tests'
make: *** [check-am] Error 2
Re: Running a plain ./config.status at top level, Alexandre Duret-Lutz, 2003/04/09