summaryrefslogtreecommitdiff
blob: 8c84149e256b496d3b8ce2fecad0684aee8d577d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- maxima-5.37.3.orig/configure.ac
+++ maxima-5.37.3/configure.ac
@@ -513,6 +513,17 @@
 	fi
 fi
 
+AC_ARG_ENABLE(emacs,
+	[  --enable-emacs               Emacs support],
+	[case "${enableval}" in
+		yes) enable_emacs=true  ;;
+		no)  enable_emacs=false ;;
+		*) AC_MSG_ERROR(bad value ${enableval} for --enable-emacs) ;;
+	esac],
+	[enable_emacs=true])
+
+AM_CONDITIONAL(WANT_EMACS, test x$enable_emacs = xtrue)
+
 dnl xgettext
 AC_ARG_ENABLE(gettext,
 	[  --enable-gettext             Locale support],
--- maxima-5.37.3.orig/interfaces/Makefile.am
+++ maxima-5.37.3/interfaces/Makefile.am
@@ -1,5 +1,8 @@
+if WANT_EMACS
+   MAYBE_EMACS = emacs
+endif
 if WANT_TK
    MAYBE_XMAXIMA = xmaxima
 endif
-SUBDIRS = emacs $(MAYBE_XMAXIMA)
+SUBDIRS = $(MAYBE_EMACS) $(MAYBE_XMAXIMA)
 EXTRA_DIST = bin/xmaxima.iss