summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny@ces.clemson.edu>2008-07-15 21:00:36 -0400
committerJoel E. Denny <jdenny@ces.clemson.edu>2008-07-15 21:00:36 -0400
commita9fc7990fac9294374dd5e723c1e2609079cddcb (patch)
tree0eeef5e06fb6400bbd55f2ac35769f9359a2fdd1 /lib
parent0f1d6f10d76a4510cc179ee0bce7a2fd18019069 (diff)
downloadbison-a9fc7990fac9294374dd5e723c1e2609079cddcb.tar.gz
Improve forward-compatibility with GNU M4.
Reported by Eric Blake at <http://lists.gnu.org/archive/html/bug-bison/2008-07/msg00000.html>. * bootstrap.conf (gnulib_modules): Add unsetenv. * lib/.gitignore, lib/.cvsignore (/unsetenv.c): Add. * m4/.gitignore, m4/.cvsignore (/environ.m4): Add. (/setenv.m4): Add. * src/output.c (output_skeleton): For the m4 invocation, pass -dV as the first argument because it may become position-dependent, and unset POSIXLY_CORRECT so Bison's skeletons have access to GNU M4 extensions. Add comments explaining these issues in more detail.
Diffstat (limited to 'lib')
-rw-r--r--lib/.cvsignore1
-rw-r--r--lib/.gitignore1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/.cvsignore b/lib/.cvsignore
index fa0fe44d..c7a817b6 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -87,6 +87,7 @@ unitypes.h
uniwidth
uniwidth.h
unlocked-io.h
+unsetenv.c
verify.h
wchar.h
wchar.in.h
diff --git a/lib/.gitignore b/lib/.gitignore
index 05e56a6a..9d2d22d4 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -89,6 +89,7 @@
/uniwidth
/uniwidth.h
/unlocked-io.h
+/unsetenv.c
/verify.h
/wchar.h
/wchar.in.h