mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
build: Don't generate Emacs autoloads when Emacs is unavailable.
Reported by Andreas Enge. * configure.ac: Define 'HAVE_EMACS' Automake conditional. * emacs.am ($(AUTOLOADS)): Wrap in 'if HAVE_EMACS'.
This commit is contained in:
parent
6c4a2884b6
commit
596fcbf768
2 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,8 @@ AC_CONFIG_FILES([test-env], [chmod +x test-env])
|
||||||
|
|
||||||
dnl Emacs interface.
|
dnl Emacs interface.
|
||||||
AM_PATH_LISPDIR
|
AM_PATH_LISPDIR
|
||||||
|
AM_CONDITIONAL([HAVE_EMACS], [test "x$EMACS" != "xno"])
|
||||||
|
|
||||||
emacsuidir="${guilemoduledir}/guix/emacs"
|
emacsuidir="${guilemoduledir}/guix/emacs"
|
||||||
AC_SUBST([emacsuidir])
|
AC_SUBST([emacsuidir])
|
||||||
AC_CONFIG_FILES([emacs/guix-init.el
|
AC_CONFIG_FILES([emacs/guix-init.el
|
||||||
|
|
4
emacs.am
4
emacs.am
|
@ -34,6 +34,8 @@ dist_lisp_DATA = \
|
||||||
nodist_lisp_DATA = \
|
nodist_lisp_DATA = \
|
||||||
emacs/guix-init.el
|
emacs/guix-init.el
|
||||||
|
|
||||||
|
if HAVE_EMACS
|
||||||
|
|
||||||
$(AUTOLOADS): $(ELFILES)
|
$(AUTOLOADS): $(ELFILES)
|
||||||
$(EMACS) --batch --eval \
|
$(EMACS) --batch --eval \
|
||||||
"(let ((backup-inhibited t) \
|
"(let ((backup-inhibited t) \
|
||||||
|
@ -41,3 +43,5 @@ $(AUTOLOADS): $(ELFILES)
|
||||||
(expand-file-name \"$(AUTOLOADS)\" \"$(srcdir)\"))) \
|
(expand-file-name \"$(AUTOLOADS)\" \"$(srcdir)\"))) \
|
||||||
(update-directory-autoloads \
|
(update-directory-autoloads \
|
||||||
(expand-file-name \"emacs\" \"$(srcdir)\")))"
|
(expand-file-name \"emacs\" \"$(srcdir)\")))"
|
||||||
|
|
||||||
|
endif HAVE_EMACS
|
||||||
|
|
Loading…
Reference in a new issue