aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-05-11 20:57:48 -0400
committerGlenn Morris2012-05-11 20:57:48 -0400
commit3fe7cdc86d67dd5dcf1ce9d779b20dfec9eafb8d (patch)
tree024689144c2da897a7a93b8485f76c60b97ba1a1
parent2171cea5fcc5537bf6179284bdce554d80982594 (diff)
downloademacs-3fe7cdc86d67dd5dcf1ce9d779b20dfec9eafb8d.tar.gz
emacs-3fe7cdc86d67dd5dcf1ce9d779b20dfec9eafb8d.zip
Let configure test for a suitable mkdir -p
* configure.in (AC_PROG_MKDIR_P): Call it, to set MKDIR_P. (MKDEPDIR): Use $MKDIR_P. * Makefile.in (MKDIR_P): New, set by configure. (mkdir): Use $MKDIR_P. * doc/emacs/Makefile.in (MKDIR_P): New, set by configure. (mkinfodir): Use $MKDIR_P. * doc/lispintro/Makefile.in (MKDIR_P): New, set by configure. (mkinfodir): Use $MKDIR_P. * doc/lispref/Makefile.in (MKDIR_P): New, set by configure. (mkinfodir): Use $MKDIR_P. * doc/misc/Makefile.in (MKDIR_P): New, set by configure. (mkinfodir): Use $MKDIR_P. * src/Makefile.in (MKDIR_P): New, set by configure. * src/ns.mk (${ns_appdir}, ${ns_appbindir}Emacs): Use $MKDIR_P.
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.in10
-rw-r--r--configure.in7
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/Makefile.in8
-rw-r--r--doc/lispintro/ChangeLog5
-rw-r--r--doc/lispintro/Makefile.in4
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/Makefile.in4
-rw-r--r--doc/misc/ChangeLog7
-rw-r--r--doc/misc/Makefile.in4
-rw-r--r--src/ChangeLog5
-rw-r--r--src/Makefile.in3
-rw-r--r--src/ns.mk6
14 files changed, 58 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d8a3eadec6..7599d2b38be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12012-05-12 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (AC_PROG_MKDIR_P): Call it, to set MKDIR_P.
4 (MKDEPDIR): Use $MKDIR_P.
5 * Makefile.in (MKDIR_P): New, set by configure.
6 (mkdir): Use $MKDIR_P.
7
12012-05-11 Glenn Morris <rgm@gnu.org> 82012-05-11 Glenn Morris <rgm@gnu.org>
2 9
3 * Makefile.in (install-arch-indep): There are no more Makefile.c files. 10 * Makefile.in (install-arch-indep): There are no more Makefile.c files.
diff --git a/Makefile.in b/Makefile.in
index 844d92d228c..0a62875c977 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -229,7 +229,7 @@ gamedir=@gamedir@
229# Note that if the system does not provide a suitable install, 229# Note that if the system does not provide a suitable install,
230# configure will use build-aux/install-sh. Annoyingly, it does 230# configure will use build-aux/install-sh. Annoyingly, it does
231# not use an absolute path. So we must take care to always run 231# not use an absolute path. So we must take care to always run
232# INSTALL-type commands from the top-level directory. 232# INSTALL-type commands from the directory containing the Makefile.
233# This explains (I think) the cd thisdir seen in several install rules. 233# This explains (I think) the cd thisdir seen in several install rules.
234INSTALL = @INSTALL@ 234INSTALL = @INSTALL@
235INSTALL_PROGRAM = @INSTALL_PROGRAM@ 235INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -237,6 +237,7 @@ INSTALL_DATA = @INSTALL_DATA@
237INSTALL_INFO = @INSTALL_INFO@ 237INSTALL_INFO = @INSTALL_INFO@
238# By default, we uphold the dignity of our programs. 238# By default, we uphold the dignity of our programs.
239INSTALL_STRIP = 239INSTALL_STRIP =
240MKDIR_P = @MKDIR_P@
240 241
241# We use gzip to compress installed .el files. 242# We use gzip to compress installed .el files.
242GZIP_PROG = @GZIP_PROG@ 243GZIP_PROG = @GZIP_PROG@
@@ -659,10 +660,7 @@ install-leim: leim/Makefile mkdir
659install-strip: 660install-strip:
660 $(MAKE) $(MFLAGS) INSTALL_STRIP=-s install 661 $(MAKE) $(MFLAGS) INSTALL_STRIP=-s install
661 662
662### Build all the directories we're going to install Emacs in. Since 663### Build all the directories we're going to install Emacs in.
663### we may be creating several layers of directories (for example,
664### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use install-sh -d
665### instead of mkdir. Not all systems' mkdir programs have the `-p' flag.
666### We set the umask so that any created directories are world-readable. 664### We set the umask so that any created directories are world-readable.
667### FIXME it would be good to warn about non-standard permissions of 665### FIXME it would be good to warn about non-standard permissions of
668### pre-existing directories, but that does not seem easy. 666### pre-existing directories, but that does not seem easy.
@@ -675,7 +673,7 @@ mkdir: FRC
675 done ; \ 673 done ; \
676 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \ 674 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \
677 umask 022 ; \ 675 umask 022 ; \
678 $(srcdir)/build-aux/install-sh -d $(DESTDIR)${datadir} ${COPYDESTS} \ 676 $(MKDIR_P) $(DESTDIR)${datadir} ${COPYDESTS} \
679 $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ 677 $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \
680 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ 678 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \
681 $(DESTDIR)${datadir}/emacs/site-lisp \ 679 $(DESTDIR)${datadir}/emacs/site-lisp \
diff --git a/configure.in b/configure.in
index 1554d8e2aee..0ee180633e6 100644
--- a/configure.in
+++ b/configure.in
@@ -808,6 +808,7 @@ fi
808dnl checks for programs 808dnl checks for programs
809AC_PROG_CPP 809AC_PROG_CPP
810AC_PROG_INSTALL 810AC_PROG_INSTALL
811AC_PROG_MKDIR_P
811if test "x$RANLIB" = x; then 812if test "x$RANLIB" = x; then
812 AC_PROG_RANLIB 813 AC_PROG_RANLIB
813fi 814fi
@@ -1480,10 +1481,8 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
1480 fi 1481 fi
1481 if test $ac_enable_autodepend = yes; then 1482 if test $ac_enable_autodepend = yes; then
1482 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP' 1483 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
1483 ## In parallel builds, another make might create depdir between 1484 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
1484 ## the first test and mkdir, so stick another test on the end. 1485 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
1485 ## Or use install-sh -d? mkdir -p is not portable.
1486 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
1487 deps_frag=autodeps.mk 1486 deps_frag=autodeps.mk
1488 fi 1487 fi
1489fi 1488fi
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index b166262a7ca..a9d45ef2a4c 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12012-05-12 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (MKDIR_P): New, set by configure.
4 (mkinfodir): Use $MKDIR_P.
5
12012-05-10 Glenn Morris <rgm@gnu.org> 62012-05-10 Glenn Morris <rgm@gnu.org>
2 7
3 * mule.texi (Disabling Multibyte): Replace the obsolete "unibyte: t" 8 * mule.texi (Disabling Multibyte): Replace the obsolete "unibyte: t"
diff --git a/doc/emacs/Makefile.in b/doc/emacs/Makefile.in
index 0e03efd9877..7ffbf52e94f 100644
--- a/doc/emacs/Makefile.in
+++ b/doc/emacs/Makefile.in
@@ -35,6 +35,8 @@ infodir = $(srcdir)/../../info
35# Directory with the (customized) texinfo.tex file. 35# Directory with the (customized) texinfo.tex file.
36texinfodir = $(srcdir)/../misc 36texinfodir = $(srcdir)/../misc
37 37
38MKDIR_P = @MKDIR_P@
39
38INFO_EXT=@INFO_EXT@ 40INFO_EXT=@INFO_EXT@
39# Options used only when making info output. 41# Options used only when making info output.
40# --no-split is only needed because of MS-DOS. 42# --no-split is only needed because of MS-DOS.
@@ -118,10 +120,8 @@ EMACSSOURCES= \
118 $(EMACS_XTRA) 120 $(EMACS_XTRA)
119 121
120## This seems pointless. The info/ directory exists in both the 122## This seems pointless. The info/ directory exists in both the
121## repository and the release tarfiles. We do not use any 123## repository and the release tarfiles.
122## equivalent of mkdir -p/install-sh -d, so this is not a general 124mkinfodir = @${MKDIR_P} ${infodir}
123## solution anyway. The second test -d is for parallel builds.
124mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
125 125
126.PHONY: info dvi html pdf ps 126.PHONY: info dvi html pdf ps
127 127
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog
index 1191b0de919..126c10c4342 100644
--- a/doc/lispintro/ChangeLog
+++ b/doc/lispintro/ChangeLog
@@ -1,3 +1,8 @@
12012-05-12 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (MKDIR_P): New, set by configure.
4 (mkinfodir): Use $MKDIR_P.
5
12012-05-05 Glenn Morris <rgm@gnu.org> 62012-05-05 Glenn Morris <rgm@gnu.org>
2 7
3 * emacs-lisp-intro.texi (Making Errors): Don't mention Emacs 20. 8 * emacs-lisp-intro.texi (Making Errors): Don't mention Emacs 20.
diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in
index 29f5344b8c6..bf10e5c73b7 100644
--- a/doc/lispintro/Makefile.in
+++ b/doc/lispintro/Makefile.in
@@ -26,6 +26,8 @@ infodir = $(srcdir)/../../info
26# Directory with the (customized) texinfo.tex file. 26# Directory with the (customized) texinfo.tex file.
27texinfodir = $(srcdir)/../misc 27texinfodir = $(srcdir)/../misc
28 28
29MKDIR_P = @MKDIR_P@
30
29INFO_EXT=@INFO_EXT@ 31INFO_EXT=@INFO_EXT@
30# Options used only when making info output. 32# Options used only when making info output.
31INFO_OPTS=@INFO_OPTS@ 33INFO_OPTS=@INFO_OPTS@
@@ -39,7 +41,7 @@ DVIPS = dvips
39ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \ 41ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
40 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)" 42 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
41 43
42mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} 44mkinfodir = @${MKDIR_P} ${infodir}
43 45
44.PHONY: info dvi html pdf ps 46.PHONY: info dvi html pdf ps
45 47
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index b56164669f8..c3b50dbdcd5 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12012-05-12 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (MKDIR_P): New, set by configure.
4 (mkinfodir): Use $MKDIR_P.
5
12012-05-10 Glenn Morris <rgm@gnu.org> 62012-05-10 Glenn Morris <rgm@gnu.org>
2 7
3 * loading.texi (Loading Non-ASCII): Replace the obsolete "unibyte: t" 8 * loading.texi (Loading Non-ASCII): Replace the obsolete "unibyte: t"
diff --git a/doc/lispref/Makefile.in b/doc/lispref/Makefile.in
index f1e3fba3691..dd820d85133 100644
--- a/doc/lispref/Makefile.in
+++ b/doc/lispref/Makefile.in
@@ -30,6 +30,8 @@ texinfodir = $(srcdir)/../misc
30# Directory with emacsver.texi. 30# Directory with emacsver.texi.
31emacsdir = $(srcdir)/../emacs 31emacsdir = $(srcdir)/../emacs
32 32
33MKDIR_P = @MKDIR_P@
34
33INFO_EXT=@INFO_EXT@ 35INFO_EXT=@INFO_EXT@
34# Options used only when making info output. 36# Options used only when making info output.
35INFO_OPTS=@INFO_OPTS@ 37INFO_OPTS=@INFO_OPTS@
@@ -99,7 +101,7 @@ srcs = \
99 $(srcdir)/gpl.texi \ 101 $(srcdir)/gpl.texi \
100 $(srcdir)/doclicense.texi 102 $(srcdir)/doclicense.texi
101 103
102mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} 104mkinfodir = @${MKDIR_P} ${infodir}
103 105
104.PHONY: info dvi pdf ps 106.PHONY: info dvi pdf ps
105 107
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 72e784f1f8d..1765c22d790 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12012-05-12 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (MKDIR_P): New, set by configure.
4 (mkinfodir): Use $MKDIR_P.
5
12012-05-07 Glenn Morris <rgm@gnu.org> 62012-05-07 Glenn Morris <rgm@gnu.org>
2 7
3 * forms.texi (Long Example): Update for changed location of files. 8 * forms.texi (Long Example): Update for changed location of files.
@@ -8995,7 +9000,7 @@
8995;; coding: utf-8 9000;; coding: utf-8
8996;; End: 9001;; End:
8997 9002
8998 Copyright (C) 1993-1999, 2001-2012 Free Software Foundation, Inc. 9003 Copyright (C) 1993-1999, 2001-2012 Free Software Foundation, Inc.
8999 9004
9000 This file is part of GNU Emacs. 9005 This file is part of GNU Emacs.
9001 9006
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index 83bc2d7bf33..30fdbccee75 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -38,6 +38,8 @@ infodir=../../info
38## Currently only used by efaq and calc. 38## Currently only used by efaq and calc.
39emacsdir = $(srcdir)/../emacs 39emacsdir = $(srcdir)/../emacs
40 40
41MKDIR_P = @MKDIR_P@
42
41INFO_EXT=@INFO_EXT@ 43INFO_EXT=@INFO_EXT@
42# Options used only when making info output. 44# Options used only when making info output.
43INFO_OPTS=@INFO_OPTS@ 45INFO_OPTS=@INFO_OPTS@
@@ -211,7 +213,7 @@ TEXI2PDF = texi2pdf
211ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \ 213ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
212 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)" 214 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
213 215
214mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} 216mkinfodir = @${MKDIR_P} ${srcdir}/${infodir}
215 217
216.PHONY: info dvi pdf echo-info 218.PHONY: info dvi pdf echo-info
217 219
diff --git a/src/ChangeLog b/src/ChangeLog
index 805fa7ee097..3c3f04b9238 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-05-12 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (MKDIR_P): New, set by configure.
4 * ns.mk (${ns_appdir}, ${ns_appbindir}Emacs): Use $MKDIR_P.
5
12012-05-11 Paul Eggert <eggert@cs.ucla.edu> 62012-05-11 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Remove unused function hourglass_started. 8 Remove unused function hourglass_started.
diff --git a/src/Makefile.in b/src/Makefile.in
index 32276084b3f..dd667ea60a3 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -40,6 +40,7 @@ version = @version@
40# Substitute an assignment for the MAKE variable, because 40# Substitute an assignment for the MAKE variable, because
41# BSD doesn't have it as a default. 41# BSD doesn't have it as a default.
42@SET_MAKE@ 42@SET_MAKE@
43MKDIR_P = @MKDIR_P@
43# Don't use LIBS. configure puts stuff in it that either shouldn't be 44# Don't use LIBS. configure puts stuff in it that either shouldn't be
44# linked with Emacs or is duplicated by the other stuff below. 45# linked with Emacs or is duplicated by the other stuff below.
45# LIBS = @LIBS@ 46# LIBS = @LIBS@
@@ -284,7 +285,7 @@ CANNOT_DUMP=@CANNOT_DUMP@
284DEPDIR=deps 285DEPDIR=deps
285## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. 286## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
286DEPFLAGS=@DEPFLAGS@ 287DEPFLAGS=@DEPFLAGS@
287## test -d $(DEPDIR) || mkdir $(DEPDIR) (if AUTO_DEPEND); else ':'. 288## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'.
288MKDEPDIR=@MKDEPDIR@ 289MKDEPDIR=@MKDEPDIR@
289 290
290## DO NOT use -R. There is a special hack described in lastfile.c 291## DO NOT use -R. There is a special hack described in lastfile.c
diff --git a/src/ns.mk b/src/ns.mk
index d3b5afeb99e..bdfee61bd0a 100644
--- a/src/ns.mk
+++ b/src/ns.mk
@@ -1,6 +1,6 @@
1### autodeps.mk --- src/Makefile fragment for GNU Emacs 1### autodeps.mk --- src/Makefile fragment for GNU Emacs
2 2
3## Copyright (C) 2008-2012 Free Software Foundation, Inc. 3## Copyright (C) 2008-2012 Free Software Foundation, Inc.
4 4
5## This file is part of GNU Emacs. 5## This file is part of GNU Emacs.
6 6
@@ -27,11 +27,11 @@
27 27
28${ns_appdir}: ${ns_appsrc} 28${ns_appdir}: ${ns_appsrc}
29 rm -fr ${ns_appdir} 29 rm -fr ${ns_appdir}
30 mkdir -p ${ns_appdir} 30 ${MKDIR_P} ${ns_appdir}
31 ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar xf - ) 31 ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar xf - )
32 32
33${ns_appbindir}Emacs: emacs${EXEEXT} 33${ns_appbindir}Emacs: emacs${EXEEXT}
34 mkdir -p ${ns_appbindir} 34 ${MKDIR_P} ${ns_appbindir}
35 cp -f emacs${EXEEXT} ${ns_appbindir}Emacs 35 cp -f emacs${EXEEXT} ${ns_appbindir}Emacs
36 36
37ns-app: ${ns_appdir} ${ns_appbindir}Emacs 37ns-app: ${ns_appdir} ${ns_appbindir}Emacs