mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
build: Warn about etc/indent-code.el when Emacs is absent.
* configure.ac: Warn when 'emacs' is not found, and emit 'etc/indent-code.el' otherwise. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c52555559a
commit
c8364ebca8
1 changed files with 8 additions and 4 deletions
12
configure.ac
12
configure.ac
|
@ -280,9 +280,14 @@ dnl Documentation translation.
|
||||||
AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
|
AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
|
||||||
AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
|
AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
|
||||||
|
|
||||||
dnl Emacs (optional), for 'etc/indent-package.el'.
|
dnl Emacs (optional), for 'etc/indent-code.el'.
|
||||||
AC_PATH_PROG([EMACS], [emacs], [/usr/bin/emacs])
|
AC_PATH_PROG([EMACS], [emacs])
|
||||||
AC_SUBST([EMACS])
|
if test "x$EMACS" = x; then
|
||||||
|
AC_MSG_WARN([Please install GNU Emacs to use etc/indent-code.el.])
|
||||||
|
else
|
||||||
|
AC_SUBST([EMACS])
|
||||||
|
AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
|
||||||
|
fi
|
||||||
|
|
||||||
case "$storedir" in
|
case "$storedir" in
|
||||||
/gnu/store)
|
/gnu/store)
|
||||||
|
@ -302,6 +307,5 @@ AC_CONFIG_FILES([Makefile
|
||||||
AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env])
|
AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env])
|
||||||
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
|
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
|
||||||
[chmod +x pre-inst-env])
|
[chmod +x pre-inst-env])
|
||||||
AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
|
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
Loading…
Reference in a new issue