+2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
+
+ * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
+ directory have inherent problems with special characters like spaces,
+ due to limitations in Make syntax. Problem reported by Alexandre
+ Duret-Lutz.
+ * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
+ Also, fix Tru64 porting problem with shell patterns,
+ reported by Ralf Wildenhues.
+
2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/autoconf.texi (Subdirectories): Fix markup typos.
* Major changes in Autoconf 2.59c
-** The configure command now warns you if you attempt to use a directory
- whose name contains a special character like space, newline, or "\".
+** The configure command now diagnoses attempts to use a working or source
+ directory whose name contains a special character like space, newline, or "\".
Such names are not supported, and can cause "configure" to crash.
** The configure command now redirects standard input from /dev/null,
AC_MSG_ERROR([Working directory cannot be determined])
ac_pat="[[\$][{][_$as_cr_Letters][_$as_cr_alnum]*[}]]"
+ac_pat1='*[)]*'
-for ac_var in ac_pwd srcdir \
- bindir sbindir libexecdir datarootdir datadir \
- sysconfdir sharedstatedir localstatedir includedir \
- oldincludedir docdir infodir htmldir dvidir pdfdir \
- psdir libdir localedir mandir
+for ac_var in ac_pwd srcdir
do
# Remove references to shell or make variables.
eval ac_dir=\$$ac_var
# Preserve that tab character below!
case $ac_dirx in
'' | -* | */-* | *'
-'* | *' '* | *' '* | *\"* | *\#* | *\$* | *\&* | *\'* | *\(* | *\)* | \
+'* | *' '* | *' '* | *\"* | *\#* | *\$* | *\&* | *\'* | *\(* | $ac_pat1 | \
*\** | *\;* | *\<* | *\=* | *\>* | *\?* | *\@<:@* | *\\* | *\`* | \
*\|* | \~*)
AC_MSG_ERROR([$ac_var directory name `$ac_dir' has special characters]);;