source: scripts_home/scripts/untested/autotools/patches/autoconf-2.59-more-quotes.patch@ 1c9c5c3

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

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100644
File size: 1.2 KB
  • lib/autoconf/general.m4

    http://bugs.gentoo.org/96882
    
    date: 2005/06/23 20:09:27;  author: eggert;  state: Exp;  lines: +29 -34
    Fix some more shell quoting problems.  Prompted by a bug report
    from Justace Clutter.
    * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Allow special 
    characters in $ac_unique_file.
    
    old new  
    476476  # Try the directory containing this script, then its parent.
    477477  ac_confdir=`AS_DIRNAME(["$[0]"])`
    478478  srcdir=$ac_confdir
    479   if test ! -r $srcdir/$ac_unique_file; then
     479  if test ! -r "$srcdir/$ac_unique_file"; then
    480480    srcdir=..
    481481  fi
    482482else
    483483  ac_srcdir_defaulted=no
    484484fi
    485 if test ! -r $srcdir/$ac_unique_file; then
     485if test ! -r "$srcdir/$ac_unique_file"; then
    486486  if test "$ac_srcdir_defaulted" = yes; then
    487487    AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $ac_confdir or ..])
    488488  else
    489489    AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $srcdir])
    490490  fi
    491491fi
    492 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     492(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
    493493  AC_MSG_ERROR([sources are in $srcdir, but `cd $srcdir' does not work])
    494494dnl Double slashes in pathnames in object file debugging info
    495495dnl mess up M-x gdb in Emacs.
Note: See TracBrowser for help on using the repository browser.