diff --git a/configure b/configure
index e4089d8..ddb426b 100755
--- a/configure
+++ b/configure
@@ -18577,7 +18577,7 @@
if test "${with_modules+set}" = set; then :
withval=$with_modules; with_modules=$withval
else
- with_modules=$libtool_build_shared_libs
+ with_modules='no'
fi
diff --git a/configure.ac b/configure.ac
index 8c2ea3c..e0e056e 100755
--- a/configure.ac
+++ b/configure.ac
@@ -454,7 +454,7 @@
[AC_HELP_STRING([--with-modules],
[enable building dynamically loadable modules])],
[with_modules=$withval],
- [with_modules=$libtool_build_shared_libs])
+ [with_modules='no'])
# Only allow building loadable modules if we are building shared libraries
if test "$with_modules" != 'no' ; then