aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-06-20 09:05:10 -0700
committerPaul Eggert2014-06-20 09:05:10 -0700
commit539ad293eb36b4cf458cbdb5a6b37f5cd1bb68a1 (patch)
tree1a0840c2a54e6d39b1a5541c1ff7fa763ead4182
parentcb5f7e19f2e71dec8cae189c7233f31610d543aa (diff)
downloademacs-539ad293eb36b4cf458cbdb5a6b37f5cd1bb68a1.tar.gz
emacs-539ad293eb36b4cf458cbdb5a6b37f5cd1bb68a1.zip
Diagnose failures due to colons in directory names.
* Makefile.in (epaths-force): Don't allow ':' in directories whose names go into a colon-separated path. * configure.ac: Fail if submake fails. Fixes: debbugs:17278
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.in8
-rw-r--r--configure.ac2
3 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 39ea1f54452..412b840a55e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12014-06-20 Paul Eggert <eggert@cs.ucla.edu>
2
3 Diagnose failures due to colons in directory names (Bug#17278).
4 * Makefile.in (epaths-force): Don't allow ':' in directories whose
5 names go into a colon-separated path.
6 * configure.ac: Fail if submake fails.
7
12014-06-17 Paul Eggert <eggert@cs.ucla.edu> 82014-06-17 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 Omit redundant extern decls. 10 Omit redundant extern decls.
diff --git a/Makefile.in b/Makefile.in
index 7104ef82744..1a7acef0c5a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -297,6 +297,14 @@ removenullpaths=sed -e 's/^:*//' -e 's/:*$$//g' -e 's/::*/:/g'
297# to just letting configure generate epaths.h from epaths.in in a 297# to just letting configure generate epaths.h from epaths.in in a
298# similar way to how Makefile is made from Makefile.in. 298# similar way to how Makefile is made from Makefile.in.
299epaths-force: 299epaths-force:
300 @for dir in '$(abs_srcdir)' '$(lispdir)' '$(archlibdir)'; do \
301 case $$dir in \
302 *:*) \
303 echo >&2 "Build or installation directory '$$dir'"; \
304 echo >&2 "cannot contain ':'."; \
305 exit 1;; \
306 esac; \
307 done
300 @(standardlisppath=`echo "${standardlisppath}" | ${removenullpaths}` ; \ 308 @(standardlisppath=`echo "${standardlisppath}" | ${removenullpaths}` ; \
301 locallisppath=`echo "${locallisppath}" | ${removenullpaths}` ; \ 309 locallisppath=`echo "${locallisppath}" | ${removenullpaths}` ; \
302 buildlisppath=`echo "${buildlisppath}" | ${removenullpaths}` ; \ 310 buildlisppath=`echo "${buildlisppath}" | ${removenullpaths}` ; \
diff --git a/configure.ac b/configure.ac
index 56005b51e22..c4ca395d6d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5121,7 +5121,7 @@ if test "${opsys}" = "mingw32"; then
5121 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32 5121 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
5122else 5122else
5123 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force 5123 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
5124fi 5124fi || AC_MSG_ERROR(['src/epaths.h' could not be made.])
5125], [GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"]) 5125], [GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"])
5126 5126
5127dnl NB we have to cheat and use the ac_... version because abs_top_srcdir 5127dnl NB we have to cheat and use the ac_... version because abs_top_srcdir