emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master e8ba01d: * configure.ac (MODULES_SUFFIX): Always gi


From: Glenn Morris
Subject: [Emacs-diffs] master e8ba01d: * configure.ac (MODULES_SUFFIX): Always give it a value.
Date: Sat, 22 Jul 2017 21:36:32 -0400 (EDT)

branch: master
commit e8ba01d1a23041d6d2bdb8c8dd7c4e1c929df848
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * configure.ac (MODULES_SUFFIX): Always give it a value.
    
    This prevents a Makefile thinko like "rm *${MODULE_SUFFIX}".
---
 configure.ac | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index 056c8c3..b127563 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3557,27 +3557,22 @@ AC_SUBST(LIBZ)
 LIBMODULES=
 HAVE_MODULES=no
 MODULES_OBJ=
-MODULES_SUFFIX=
+case $opsys in
+  cygwin|mingw32) MODULES_SUFFIX=".dll" ;;
+  *) MODULES_SUFFIX=".so" ;;
+esac
 if test "${with_modules}" != "no"; then
   case $opsys in
     gnu|gnu-linux)
       LIBMODULES="-ldl"
-      MODULES_SUFFIX=".so"
-      HAVE_MODULES=yes
-      ;;
-    cygwin|mingw32)
-      MODULES_SUFFIX=".dll"
       HAVE_MODULES=yes
       ;;
-    darwin)
-      MODULES_SUFFIX=".so"
+    cygwin|mingw32|darwin)
       HAVE_MODULES=yes
       ;;
     *)
       # BSD systems have dlopen in libc.
-      AC_CHECK_FUNC([dlopen],
-        [MODULES_SUFFIX=".so"
-         HAVE_MODULES=yes])
+      AC_CHECK_FUNC([dlopen], [HAVE_MODULES=yes])
       ;;
   esac
 



reply via email to

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