* tests/missing.test: Use "./missing" instead of "`pwd`/missing".
* tests/missing2.test: Likewise.
* tests/mmodely.test: Add `pwd` to $PATH instead of absolute
references to myyacc.sh and mylex.sh.
* tests/multlib.test: Likewise for mycc.
* tests/txinfo26.test: Skip if `pwd` contains whitespace, as
an absolute --srcdir does not work there.
2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Modify some tests for absolute trees containing whitespace.
+ * tests/missing.test: Use "./missing" instead of "`pwd`/missing".
+ * tests/missing2.test: Likewise.
+ * tests/mmodely.test: Add `pwd` to $PATH instead of absolute
+ references to myyacc.sh and mylex.sh.
+ * tests/multlib.test: Likewise for mycc.
+ * tests/txinfo26.test: Skip if `pwd` contains whitespace, as
+ an absolute --srcdir does not work there.
+
* INSTALL, lib/INSTALL, lib/config-ml.in, lib/config.guess,
lib/config.sub, lib/texinfo.tex: Sync from upstream.
#! /bin/sh
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# Make sure we do use missing, even if the user exported AUTOCONF.
# (We cannot export this new value, because it would be used by Automake
# when tracing, and missing is no good for this.)
-MYAUTOCONF="`pwd`/missing --run $AUTOCONF"
+MYAUTOCONF="./missing --run $AUTOCONF"
unset AUTOCONF
./configure AUTOCONF="$MYAUTOCONF"
#! /bin/sh
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$AUTOMAKE --add-missing
# See missing.test for explanations about this.
-MYAUTOCONF="`pwd`/missing --run $AUTOCONF"
+MYAUTOCONF="./missing --run $AUTOCONF"
unset AUTOCONF
./configure AUTOCONF="$MYAUTOCONF"
#! /bin/sh
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
./configure
$MAKE
-echo 'echo "$@" >y.tab.c' > myyacc.sh
-echo 'echo "$@" >lex.yy.c' > mylex.sh
+cat >myyacc.sh <<'END'
+#! /bin/sh
+echo "$@" >y.tab.c
+END
+cat >mylex.sh <<'END'
+echo "$@" >lex.yy.c
+END
+chmod +x myyacc.sh mylex.sh
+PATH="`pwd`:$PATH"
# make maintainer-clean; ./configure; make should always work,
# per GNU Standard.
$MAKE maintainer-clean
./configure
-YACC="$SHELL `pwd`/myyacc.sh" LEX="$SHELL `pwd`/mylex.sh" \
+YACC="myyacc.sh" LEX="mylex.sh" \
LEX_OUTPUT_ROOT='lex.yy' $MAKE -e zardoz.c joe.c
grep zardoz.y zardoz.c
grep joe.l joe.c
END
chmod +x mycc
+PATH=`pwd`:$PATH
cat >Makefile.am <<'EOF'
SUBDIRS = @subdirs@
# Check VPATH builds
mkdir build
cd build
-../configure --enable-multilib CC=`pwd`/../mycc
+../configure --enable-multilib CC=mycc
$MAKE
$MAKE install
$MAKE distcleancheck
# Check standard builds.
cd ..
# Why to I have to specify --with-target-subdir?
-./configure --enable-multilib --with-target-subdir=. CC=`pwd`/mycc
+./configure --enable-multilib --with-target-subdir=. CC=mycc
$MAKE
./configure
$MAKE
$MAKE distclean
+
+# We do not require this to work with a directory that contains white space.
+case `pwd` in
+ *\ * | *\ *) exit 77;;
+esac
+
mkdir build
cd build
../configure "--srcdir=`pwd`/.." "--prefix=`pwd`/_inst" "--infodir=`pwd`/_inst/info"