summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-10-19 14:43:04 +0530
committerArun Isaac2021-10-19 14:43:04 +0530
commit43db9a23ee3b0294180eb50eb78d38cd387eb72c (patch)
treeb0f05ee6c63dbae9423a66475a183b5a6a93d446
parent3641b3318dc72ee4f560263778ae6b0bf2a3a267 (diff)
downloadccwl-43db9a23ee3b0294180eb50eb78d38cd387eb72c.tar.gz
ccwl-43db9a23ee3b0294180eb50eb78d38cd387eb72c.tar.lz
ccwl-43db9a23ee3b0294180eb50eb78d38cd387eb72c.zip
configure: Warn if emacs is not found.
* configure.ac (OPTIONAL_PROGRAM): New macro. Use OPTIONAL_PROGRAM to check for emacs.
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8f7d7ed..1f0cf90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,13 +36,18 @@ AC_DEFUN([CHECK_FOR_PROGRAM], [
AC_DEFUN([REQUIRED_PROGRAM], [
CHECK_FOR_PROGRAM([$1], [$2], [AC_MSG_ERROR([cannot find $2 m4_ifnblank([$3], [from the $3 package])])])
])
+
+# OPTIONAL_PROGRAM(VARIABLE, PROGRAM-TO-CHECK-FOR, WARNING)
+# ----------------------------------------------------------------------------
+AC_DEFUN([OPTIONAL_PROGRAM], [
+ CHECK_FOR_PROGRAM([$1], [$2], [AC_MSG_WARN([$3])])
])
AC_PROG_SED
REQUIRED_PROGRAM([DOT], [dot], [graphviz])
REQUIRED_PROGRAM([CWLTOOL], [cwltool])
REQUIRED_PROGRAM([SKRIBILO], [skribilo])
-AC_PATH_PROG([EMACS], [emacs])
+OPTIONAL_PROGRAM([EMACS], [emacs], [cannot find emacs, and therefore cannot build the website])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])