Small fix for --disable-ns-self-contained builds
authorYavor Doganov <yavor@gnu.org>
Tue, 22 Nov 2011 01:37:45 +0000 (20:37 -0500)
committerGlenn Morris <rgm@gnu.org>
Tue, 22 Nov 2011 01:37:45 +0000 (20:37 -0500)
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

ChangeLog
Makefile.in
configure.in

index bccedc6..521d2ab 100644 (file)
--- 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.
index 47cba3f..1e86f5f 100644 (file)
@@ -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?
index 204c0e6..3ff8962 100644 (file)
@@ -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"