From: Ralf Wildenhues Date: Tue, 4 Dec 2007 21:47:42 +0000 (+0100) Subject: Fix testsuite program wrapper for whitespace in `pwd`. X-Git-Tag: v2.62~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=814cfb9003a3d7d488bd94e09785b02dd3f7c177;p=thirdparty%2Fautoconf.git Fix testsuite program wrapper for whitespace in `pwd`. The problem here is that the usual mantra is that command variables can contain arguments, thus we cannot just escape $AUTOCONF, $AUTOM4TE etc. The compromise is to put the $top_builddir/tests directory early in $PATH, so that the wrappers are found by their plain name. * tests/wrapper.as: Put $testdir early in $PATH. (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names. --- diff --git a/ChangeLog b/ChangeLog index 36cd400b..a7e8ae9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2007-12-08 Ralf Wildenhues + Fix testsuite program wrapper for whitespace in `pwd`. + The problem here is that the usual mantra is that command + variables can contain arguments, thus we cannot just escape + $AUTOCONF, $AUTOM4TE etc. The compromise is to put the + $top_builddir/tests directory early in $PATH, so that the + wrappers are found by their plain name. + * tests/wrapper.as: Put $testdir early in $PATH. + (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names. + Proper config.status --file/--header and $srcdir escaping. * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special characters in $ac_file_inputs. diff --git a/tests/wrapper.as b/tests/wrapper.as index 148dac96..3f313f71 100644 --- a/tests/wrapper.as +++ b/tests/wrapper.as @@ -1,7 +1,7 @@ AS_INIT[]dnl -*- shell-script -*- # wrapper.as -- running `@wrap_program@' as if it were installed. # @configure_input@ -# Copyright (C) 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2007 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 @@ -19,9 +19,10 @@ AS_INIT[]dnl -*- shell-script -*- # along with this program. If not, see . testdir='@abs_top_builddir@/tests' -AUTOCONF=$testdir/autoconf -AUTOHEADER=$testdir/autoheader -AUTOM4TE=$testdir/autom4te +PATH=$testdir$PATH_SEPARATOR$PATH +AUTOCONF=autoconf +AUTOHEADER=autoheader +AUTOM4TE=autom4te AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg' autom4te_perllibdir='@abs_top_srcdir@/lib' export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir