source: scripts/untested/autotools/patches/autoconf-2.59-more-quotes.patch@ f118837

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f118837 was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[d1afb9e]1http://bugs.gentoo.org/96882
2
3date: 2005/06/23 20:09:27; author: eggert; state: Exp; lines: +29 -34
4Fix some more shell quoting problems. Prompted by a bug report
5from Justace Clutter.
6* lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Allow special
7characters in $ac_unique_file.
8
9--- autoconf-2.59-orig/lib/autoconf/general.m4
10+++ autoconf-2.59/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.
Note: See TracBrowser for help on using the repository browser.