[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mmm-mode f5974d4894 06/14: Remove emacs/xemacs handling
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mmm-mode f5974d4894 06/14: Remove emacs/xemacs handling from configure.ac |
Date: |
Mon, 10 Oct 2022 18:57:51 -0400 (EDT) |
branch: externals/mmm-mode
commit f5974d489430a93980a3af3b518c98e1375c4d80
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Remove emacs/xemacs handling from configure.ac
This makes configure prefer emacs over xemacs, it used to be the other
way around.
Verify that something that looks like Emacs is found by
AM_PATH_LISPDIR and notify the user with an error otherwise.
AC_SUBST(EMACS) is not needed, already done by AC_CHECK_PROG.
The --with-emacs and --with-xemacs options are not mutually exclusive,
and "configure EMACS=xemacs" works better anyway.
AM_PATH_LISPDIR already does the equivalent of the AC_CHECK_PROG
statement (except it prefers emacs over xemacs), so that can go too.
AM_PATH_LISPDIR also handles EMACS=t, so that test can also be removed.
---
configure.ac | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/configure.ac b/configure.ac
index 02d6c80046..e1a552ed56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,23 +3,11 @@ AC_INIT([mmm-mode], [0.5.8])
AC_CONFIG_SRCDIR([mmm-mode.el])
AM_INIT_AUTOMAKE([info-in-builddir])
-dnl
-dnl Apparently, if you run a shell window in Emacs, it sets the EMACS
-dnl environment variable to 't'. Lets undo the damage.
-dnl
-if test "${EMACS}" = "t"; then
- EMACS=""
-fi
-
-AC_ARG_WITH(xemacs, --with-xemacs Use XEmacs to build, [
if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi ])
-AC_ARG_WITH(emacs, --with-emacs Use Emacs to build, [
if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ])
-
-AC_CHECK_PROG(EMACS, xemacs, xemacs, emacs)
-
AM_PATH_LISPDIR
-AC_EMACS_VERSION
+AS_IF([test "$EMACS" = no],[AC_MSG_ERROR([no Emacs program found])])
+AC_EMACS_VERSION
dnl Checks for programs.
@@ -31,6 +19,4 @@ dnl Checks for typedefs, structures, and compiler
characteristics.
dnl Checks for library functions.
-AC_SUBST(EMACS)
-
AC_OUTPUT(Makefile)
- [elpa] externals/mmm-mode updated (0d00cdf4d0 -> 3269d940b9), ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode edace0ef20 02/14: Rename configure.in -> configure.ac as recommended, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 869d5ef628 08/14: Correct the docstring of mmm-classes-alist, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 7401e1a746 11/14: Replace the distribution hack in Makefile.am, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 8d3a7ecd75 03/14: Quote all AC_DEFUN names in acinclude.m4, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode f5974d4894 06/14: Remove emacs/xemacs handling from configure.ac,
ELPA Syncer <=
- [elpa] externals/mmm-mode 2a36ac3557 05/14: Update the missing script to support --is-lightweight, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 3269d940b9 14/14: Merge pull request #126 from snogge/build-cleanup, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 8cc02668b3 04/14: Rename mmm.texinfo -> mmm.texi as recommended, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 1b1b2f5f47 10/14: Correct the docstring of mmm-clear-all-regions, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 27fff80e0e 12/14: Remove elisp-comp, obsolete since Automake 1.13, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 0181c54d12 01/14: Use correct initialization of autoconf and automake, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode d5af05a4a9 09/14: Mark `mmm-add-find-file-hook' as obsolete, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode eb0ca09da2 07/14: Use `eval' to enable minor modes in mmm.texi, ELPA Syncer, 2022/10/10
- [elpa] externals/mmm-mode 6fa96364e9 13/14: Remove mkinstalldirs, obsolete for a long time, ELPA Syncer, 2022/10/10