guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: build: Warn about etc/indent-code.el when Emacs is absent.


From: guix-commits
Subject: 04/05: build: Warn about etc/indent-code.el when Emacs is absent.
Date: Fri, 8 Nov 2019 18:37:45 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit c8364ebca82f39fc10ca8b578584b7d1ff546cb1
Author: zimoun <address@hidden>
Date:   Thu Nov 7 19:27:25 2019 +0100

    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 <address@hidden>
---
 configure.ac | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 689b28d..69ab9a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,9 +280,14 @@ dnl Documentation translation.
 AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
 AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
 
-dnl Emacs (optional), for 'etc/indent-package.el'.
-AC_PATH_PROG([EMACS], [emacs], [/usr/bin/emacs])
-AC_SUBST([EMACS])
+dnl Emacs (optional), for 'etc/indent-code.el'.
+AC_PATH_PROG([EMACS], [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
   /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([pre-inst-env:build-aux/pre-inst-env.in],
   [chmod +x pre-inst-env])
-AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
 
 AC_OUTPUT



reply via email to

[Prev in Thread] Current Thread [Next in Thread]