From: Glenn Morris Date: Wed, 23 Oct 2013 20:46:46 +0000 (-0400) Subject: * configure.ac: Explicit error for non-ASCII directories X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1169 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7b65c8d0b93e2d1b06dec9d756a02d2034c7865a;p=emacs.git * configure.ac: Explicit error for non-ASCII directories Fixes: debbugs:15260 --- diff --git a/ChangeLog b/ChangeLog index d7bb5212601..a57b88a89c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2013-10-23 Glenn Morris + * configure.ac: Explicit error for non-ASCII directories. (Bug#15260) + Progress towards allowing installation in directories with whitespace. * Makefile.in (COPYDESTS, write_subdir, install-arch-dep) (install-arch-indep, install-etcdoc, install-info, install-man) diff --git a/configure.ac b/configure.ac index d88f1d39b66..74ac7695cdc 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,17 @@ dnl Support for --program-prefix, --program-suffix and dnl --program-transform-name options AC_ARG_PROGRAM +dnl http://debbugs.gnu.org/15260 +for var in "`pwd`" "`cd \"$srcdir\"; pwd`" "$bindir" \ + "$datadir" "$sharedstatedir" "$libexecdir"; do + + dnl configure sets LC_ALL=C early on, so this range should work. + case "$var" in + *[[^\ -~]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var]) ;; + esac + +done + dnl It is important that variables on the RHS not be expanded here, dnl hence the single quotes. This is per the GNU coding standards, see dnl (autoconf) Installation Directory Variables