Merge branch 'maint'
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 8 Nov 2012 08:24:51 +0000 (09:24 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 8 Nov 2012 08:26:44 +0000 (09:26 +0100)
* origin/maint:
  regen
  maint: post-release administrivia
  version 2.6.5
  regen
  tests: syntax-check
  tests: beware of compilers that do not support POSIXLY_CORRECT
  gnulib: update

Conflicts:
src/parse-gram.c
src/parse-gram.h
tests/atlocal.in

1  2 
NEWS
configure.ac
m4/c-working.m4
tests/actions.at
tests/atlocal.in
tests/local.at

diff --cc NEWS
Simple merge
diff --cc configure.ac
Simple merge
diff --cc m4/c-working.m4
Simple merge
Simple merge
@@@ -79,9 -78,14 +79,18 @@@ LIBS="$abs_top_builddir/lib/libbison.a 
  # Empty if no xsltproc was found
  : ${XSLTPROC='@XSLTPROC@'}
  
 -: ${PERL='@PERL@'}
 -
+ # Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched
+ # as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not
+ # the environment variable.
+ : ${C_COMPILER_POSIXLY_CORRECT='@C_COMPILER_POSIXLY_CORRECT@'}
+ if env | grep '^POSIXLY_CORRECT=' >/dev/null; then
+   POSIXLY_CORRECT_IS_EXPORTED=true
+ else
+   POSIXLY_CORRECT_IS_EXPORTED=false
+ fi
 +
 +# Handle --compile-c-with-cxx here, once CXX and CXXFLAGS are known.
 +if "$at_arg_compile_c_with_cxx"; then
 +  CC=$CXX
 +  CFLAGS=$CXXFLAGS
 +fi
diff --cc tests/local.at
@@@ -472,12 -468,8 +472,8 @@@ m4_define([AT_BISON_CHECK_WARNINGS_]
  [[# Defining POSIXLY_CORRECT causes bison to complain if options are
  # added after the grammar file name, so skip these checks in that
  # case.
- #
- # Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched
- # as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not
- # the environment variable.
- if env | grep '^POSIXLY_CORRECT=' >/dev/null; then :; else
+ if test "$POSIXLY_CORRECT_IS_EXPORTED" = false; then
 -  ]AT_SAVE_SPECIAL_FILES[
 +          ]AT_SAVE_SPECIAL_FILES[
  
    # To avoid expanding it repeatedly, store specified stdout.
    ]AT_DATA([expout], [$3])[