Position independent wrapper.

* tests/bison: Remove.
* tests/bison.in: New.
* configure.in: Adjust.
This commit is contained in:
Akim Demaille
2001-09-27 15:06:14 +00:00
parent 8c67836b58
commit 02cbcfc577
8 changed files with 24 additions and 17 deletions

View File

@@ -1,3 +1,11 @@
2001-09-27 Akim Demaille <akim@epita.fr>
Position independent wrapper.
* tests/bison: Remove.
* tests/bison.in: New.
* configure.in: Adjust.
2001-09-27 Paul Eggert <eggert@twinsun.com>
Port quotearg fixes from tar 1.13.24.

View File

@@ -292,7 +292,7 @@ distdir: $(DISTFILES)
fi
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
mkdir $(distdir)
$(mkinstalldirs) $(distdir)/intl $(distdir)/po
$(mkinstalldirs) $(distdir)/intl $(distdir)/po $(distdir)/tests
@for file in $(DISTFILES); do \
if test -f $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \

7
configure vendored
View File

@@ -1407,6 +1407,8 @@ if test -f $srcdir/tests/atlocal.in; then
fi
ac_config_files="$ac_config_files tests/bison"
# Checks for programs.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -8913,6 +8915,7 @@ do
case "$ac_config_target" in
# Handling of arguments.
"tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
"tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
@@ -9267,6 +9270,10 @@ s,@INSTALL@,$ac_INSTALL,;t t
rm -f $tmp/out
fi
# Run the commands associated with the file.
case $ac_file in
tests/bison ) chmod +x tests/bison ;;
esac
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

View File

@@ -26,6 +26,7 @@ AM_CONFIG_HEADER(config.h:config.hin)
# Initialize the test suite.
AC_CONFIG_TESTDIR(tests)
AC_CONFIG_FILES([tests/bison], [chmod +x tests/bison])
# Checks for programs.
AC_PROG_CC

View File

@@ -20,7 +20,7 @@
EXTRA_DIST = atlocal.in bison $(TESTSUITE_AT) testsuite
DISTCLEANFILES = atconfig atlocal package.m4
DISTCLEANFILES = atconfig atlocal bison package.m4
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
TESTSUITE_AT = \

View File

@@ -98,7 +98,7 @@ install_sh = @install_sh@
EXTRA_DIST = atlocal.in bison $(TESTSUITE_AT) testsuite
DISTCLEANFILES = atconfig atlocal package.m4
DISTCLEANFILES = atconfig atlocal bison package.m4
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
TESTSUITE_AT = \
@@ -112,9 +112,9 @@ AUTOTEST = $(AUTOM4TE) --language=autotest
subdir = tests
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_FILES = bison
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
DIST_COMMON = Makefile.am Makefile.in bison.in
all: all-am
.SUFFIXES:
@@ -125,6 +125,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
bison: $(top_builddir)/config.status bison.in
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
uninstall-info-am:
tags: TAGS
TAGS:

View File

@@ -1,11 +0,0 @@
#! /bin/sh
# Wrapper around a non installed bison to make it work as an installed one.
. ./atconfig
# We want to use the files shipped with Bison.
BISON_SIMPLE=$top_srcdir/src/bison.simple
export BISON_SIMPLE
BISON_HAIRY=$top_srcdir/src/bison.hairy
export BISON_HAIRY
exec $top_builddir/src/bison ${1+"$@"}

View File

@@ -8,4 +8,4 @@ export BISON_SIMPLE
BISON_HAIRY='@top_srcpath@/src/bison.hairy'
export BISON_HAIRY
exec '@top_builddir@/src/bison' ${1+"$@"}
exec '@top_buildpath@/src/bison' ${1+"$@"}