Merge branch 'maint'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 27 Mar 2012 20:40:20 +0000 (22:40 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 27 Mar 2012 20:42:47 +0000 (22:42 +0200)
* maint:
  depcomp: support tcc (Tiny C Compiler)
  tests: workaround for automatic linker determination and conditionals
  info: allow user to inhibit pruning of '${infodir}/dir'
  vala tests: fix spurious failures with older valac (<= 0.7.2)
  tests: fix a timestamp issue, and other minor buglets
  tests: fix spurious failure with older autoconf
  build: remove duplicated entries in $(TESTS)

+ Extra non-trivia edits:
* tests/link_cond.test: Use 'configure.ac', not 'configure.in'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
1  2 
NEWS
THANKS
doc/automake.texi
lib/am/texinfos.am
lib/depcomp
tests/install-info-dir.test
tests/link_cond.test
tests/list-of-tests.mk
tests/vala-mix.test
tests/vala-mix2.test
tests/vala-vpath.test

diff --cc NEWS
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -370,11 -108,10 +375,11 @@@ New in 1.11.2
      file generated by automake-provided rules by defining the special make
      variable `$(EXTRA_DEJAGNU_SITE_CONFIG)'.
  
-   - The `install-info' rule can now be instructed not to create/update
-     the `${infodir}/dir' file, by exporting the new environment variable
-     `AM_UPDATE_INFO_DIR' to the value "no".
+   - The `install-info' and `uninstall-info' rules can now be instructed
+     not to create/update the `${infodir}/dir' file, by exporting the new
+     environment variable `AM_UPDATE_INFO_DIR' to the value "no".
  
 +Bugs fixed in 1.11.2:
    - For programs and libraries, automake now detects EXTRA_foo_DEPENDENCIES
      and adds them to the normal list of dependencies, but without
      overwriting the foo_DEPENDENCIES variable, which is normally computed
diff --cc THANKS
Simple merge
Simple merge
Simple merge
diff --cc lib/depcomp
@@@ -1,9 -1,10 +1,9 @@@
  #! /bin/sh
  # depcomp - compile a program generating dependencies as side-effects
  
- scriptversion=2012-03-12.15; # UTC
+ scriptversion=2012-03-27.16; # UTC
  
 -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
 -# 2011, 2012 Free Software Foundation, Inc.
 +# Copyright (C) 1999-2012 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
@@@ -72,10 -74,11 +72,11 @@@ els
    have_installinfo=no
  fi
  
 -# The `install-info' target updates the `${infodir}/dir' file
 -# by default (if the `install-info' program is available).
 +# The 'install-info' target updates the '${infodir}/dir' file
 +# by default (if the 'install-info' program is available).
  # This should happen in a normal as well as in a DESTDIR installation.
  if test $have_installinfo = yes; then
    $MAKE install-info
    test -f $instdir/info/foo.info
    test -f $instdir/info/dir
index 0000000,0d61865..7b9fd5a
mode 000000,100755..100755
--- /dev/null
@@@ -1,0 -1,90 +1,90 @@@
 -cat >> configure.in << 'END'
+ #! /bin/sh
+ # Copyright (C) 2012 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
+ # the Free Software Foundation; either version 2, or (at your option)
+ # any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ # Test that automatic determination of the linker works well with
+ # conditional use of languages in a single program.
+ # This currently doesn't truly work, but we have an easy workaround
+ # at least, that is tested here.
+ # See automake bug#11089.
+ required='cc c++'
+ . ./defs || Exit 1
+ set -e
++cat >> configure.ac << 'END'
+ AC_PROG_CC
+ AC_PROG_CXX
+ AM_CONDITIONAL([HAVE_CXX], [test $have_cxx = yes])
+ AC_OUTPUT
+ END
+ cat > Makefile.am << 'END'
+ bin_PROGRAMS = foo
+ if HAVE_CXX
+ foo_SOURCES = more.c++
+ else
+ foo_SOURCES = less.c
+ endif
+ ## FIXME: ideally, this workaround shouldn't be needed.
+ if HAVE_CXX
+ foo_LINK = $(CXXLINK)
+ else
+ foo_LINK = $(LINK)
+ endif
+ END
+ $ACLOCAL
+ $AUTOMAKE
+ $AUTOCONF
+ rm -f *.c++
+ cat > less.c <<'END'
+ /* Valid C but deliberately invalid C++ */
+ main ()
+ {
+   int new = 0;
+   return new;
+ }
+ END
+ ./configure have_cxx=no
+ CXX=false $MAKE -e
+ # Sanity check.
+ rm -f foo foo.exe
+ CC=false $MAKE -e && Exit 99
+ $MAKE distclean
+ rm -f *.c
+ cat > more.c++ <<'END'
+ /* Valid C++ but deliberately invalid C */
+ using namespace std;
+ int main (void)
+ {
+   return 0;
+ }
+ END
+ ./configure have_cxx=yes
+ CC=false $MAKE -e
+ # Sanity check.
+ rm -f foo foo.exe
+ CXX=false $MAKE -e && Exit 99
+ :
Simple merge
  required='valac cc GNUmake'
  . ./defs || Exit 1
  
 -set -e
 -
 -cat >> configure.in <<'END'
 +cat >> configure.ac <<'END'
  AC_PROG_CC
  AM_PROG_CC_C_O
- AM_PROG_VALAC
+ AM_PROG_VALAC([0.7.3])
  AC_OUTPUT
  END
  
  required='valac cc c++ GNUmake'
  . ./defs || Exit 1
  
 -set -e
 -
 -cat >> configure.in <<'END'
 +cat >> configure.ac <<'END'
  AC_PROG_CC
  AC_PROG_CXX
- AM_PROG_VALAC
+ AM_PROG_VALAC([0.7.3])
  AC_OUTPUT
  END
  
  required="valac GNUmake"
  . ./defs || Exit 1
  
 -set -e
 -
 -cat >> configure.in << 'END'
 +cat >> configure.ac << 'END'
  AC_CONFIG_SRCDIR([hello.vala])
  AC_PROG_CC
- AM_PROG_VALAC([0.7])
+ AM_PROG_VALAC([0.7.3])
  AC_OUTPUT
  END