summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYavor Doganov <yavor@gnu.org>2011-11-21 20:37:45 -0500
committerGlenn Morris <rgm@gnu.org>2011-11-21 20:37:45 -0500
commit816be9f6298874bd26a61c28a97be74ff2298d8d (patch)
treef58bb9c5792b4618f30e9abcea7b8ae8b54ee196
parent84b54fdfa6d56214e9377fc959a761ff04705557 (diff)
downloademacs-816be9f6298874bd26a61c28a97be74ff2298d8d.tar.gz
Small fix for --disable-ns-self-contained builds
Do not install arch-dependent files in the app bundle if --disable-ns-self-contained is requested. * configure.in (exec_prefix, libexecdir): Define relative to ns_appbindir' only if configured for a self-contained app. * Makefile.in (install-arch-dep): Test for the existence of libexec in the Emacs.app bundle before executing commands. Fixes: debbugs:1335
-rw-r--r--ChangeLog9
-rw-r--r--Makefile.in8
-rw-r--r--configure.in4
3 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index bccedc607ba..521d2ab8e00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-11-22 Yavor Doganov <yavor@gnu.org>
+
+ Do not install arch-dependent files in the app bundle if
+ --disable-ns-self-contained is requested. (Bug#1335)
+ * configure.in (exec_prefix, libexecdir): Define relative to
+ `ns_appbindir' only if configured for a self-contained app.
+ * Makefile.in (install-arch-dep): Test for the existence of
+ libexec in the Emacs.app bundle before executing commands.
+
2011-11-20 Andreas Schwab <schwab@linux-m68k.org>
* configure.in: Remove reference to src/m/ibms390.h.
diff --git a/Makefile.in b/Makefile.in
index 47cba3f9070..1e86f5f0176 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -474,10 +474,10 @@ install-arch-dep: mkdir
if test -d share/emacs ; then dir=share/emacs/*/*; $(MV_DIRS); fi;\
if test -d share/info ; then dir=share/info; $(MV_DIRS) ; fi ; \
rm -fr share ) ; \
- ( cd ${ns_appbindir}libexec ; dir=emacs/*/*/* ; $(MV_DIRS); \
- rm -fr emacs ) ; \
- ( cd ${ns_appbindir}bin ; rm -f emacs emacs-24* ; \
- ln -sf ../libexec/* .) ; \
+ ( cd ${ns_appbindir} ; \
+ if test -d libexec; then cd libexec ; dir=emacs/*/*/* ; \
+ $(MV_DIRS); rm -fr emacs; \
+ cd ../bin; rm -f emacs emacs-24*; ln -sf ../libexec/* . ; fi ) ; \
else true ; fi
## FIXME is the emacs-24* bit above really necessary and correct?
diff --git a/configure.in b/configure.in
index 204c0e650a7..3ff8962cef4 100644
--- a/configure.in
+++ b/configure.in
@@ -1568,10 +1568,10 @@ if test "${HAVE_NS}" = yes; then
window_system=nextstep
with_xft=no
# set up packaging dirs
- exec_prefix=${ns_appbindir}
- libexecdir=${ns_appbindir}/libexec
if test "${EN_NS_SELF_CONTAINED}" = yes; then
prefix=${ns_appresdir}
+ exec_prefix=${ns_appbindir}
+ libexecdir=${ns_appbindir}/libexec
fi
ns_frag=$srcdir/src/ns.mk
NS_OBJ="fontset.o fringe.o image.o"