Contents of /trunk/autoconf/patches/autoconf-2.59-more-quotes.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1223 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1223 byte(s)
-import
1 | http://bugs.gentoo.org/96882 |
2 | |
3 | date: 2005/06/23 20:09:27; author: eggert; state: Exp; lines: +29 -34 |
4 | Fix some more shell quoting problems. Prompted by a bug report |
5 | from Justace Clutter. |
6 | * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Allow special |
7 | characters in $ac_unique_file. |
8 | |
9 | --- lib/autoconf/general.m4 |
10 | +++ lib/autoconf/general.m4 |
11 | @@ -476,20 +476,20 @@ |
12 | # Try the directory containing this script, then its parent. |
13 | ac_confdir=`AS_DIRNAME(["$[0]"])` |
14 | srcdir=$ac_confdir |
15 | - if test ! -r $srcdir/$ac_unique_file; then |
16 | + if test ! -r "$srcdir/$ac_unique_file"; then |
17 | srcdir=.. |
18 | fi |
19 | else |
20 | ac_srcdir_defaulted=no |
21 | fi |
22 | -if test ! -r $srcdir/$ac_unique_file; then |
23 | +if test ! -r "$srcdir/$ac_unique_file"; then |
24 | if test "$ac_srcdir_defaulted" = yes; then |
25 | AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $ac_confdir or ..]) |
26 | else |
27 | AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $srcdir]) |
28 | fi |
29 | fi |
30 | -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
31 | +(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null || |
32 | AC_MSG_ERROR([sources are in $srcdir, but `cd $srcdir' does not work]) |
33 | dnl Double slashes in pathnames in object file debugging info |
34 | dnl mess up M-x gdb in Emacs. |