aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2017-07-22 18:36:22 -0700
committerGlenn Morris2017-07-22 18:36:22 -0700
commite8ba01d1a23041d6d2bdb8c8dd7c4e1c929df848 (patch)
treebb459db053979e683484aa69dca712018853ff56
parent195a161bbcf4322cb6edc424e9c6835d3ac330b9 (diff)
downloademacs-e8ba01d1a23041d6d2bdb8c8dd7c4e1c929df848.tar.gz
emacs-e8ba01d1a23041d6d2bdb8c8dd7c4e1c929df848.zip
* configure.ac (MODULES_SUFFIX): Always give it a value.
This prevents a Makefile thinko like "rm *${MODULE_SUFFIX}".
-rw-r--r--configure.ac17
1 files changed, 6 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 056c8c35c57..b127563c9d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3557,27 +3557,22 @@ AC_SUBST(LIBZ)
3557LIBMODULES= 3557LIBMODULES=
3558HAVE_MODULES=no 3558HAVE_MODULES=no
3559MODULES_OBJ= 3559MODULES_OBJ=
3560MODULES_SUFFIX= 3560case $opsys in
3561 cygwin|mingw32) MODULES_SUFFIX=".dll" ;;
3562 *) MODULES_SUFFIX=".so" ;;
3563esac
3561if test "${with_modules}" != "no"; then 3564if test "${with_modules}" != "no"; then
3562 case $opsys in 3565 case $opsys in
3563 gnu|gnu-linux) 3566 gnu|gnu-linux)
3564 LIBMODULES="-ldl" 3567 LIBMODULES="-ldl"
3565 MODULES_SUFFIX=".so"
3566 HAVE_MODULES=yes
3567 ;;
3568 cygwin|mingw32)
3569 MODULES_SUFFIX=".dll"
3570 HAVE_MODULES=yes 3568 HAVE_MODULES=yes
3571 ;; 3569 ;;
3572 darwin) 3570 cygwin|mingw32|darwin)
3573 MODULES_SUFFIX=".so"
3574 HAVE_MODULES=yes 3571 HAVE_MODULES=yes
3575 ;; 3572 ;;
3576 *) 3573 *)
3577 # BSD systems have dlopen in libc. 3574 # BSD systems have dlopen in libc.
3578 AC_CHECK_FUNC([dlopen], 3575 AC_CHECK_FUNC([dlopen], [HAVE_MODULES=yes])
3579 [MODULES_SUFFIX=".so"
3580 HAVE_MODULES=yes])
3581 ;; 3576 ;;
3582 esac 3577 esac
3583 3578