Thanks to Alex Rousskov for identifying the necessary environment setting.
# Default configuration options.
# - Nothing special configured. Just whatever is found by "./configure"
#
-OPTS=""
+OPTS="--disable-loadable-modules"
+
+# Fix the distclean testing.
+export DISTCHECK_CONFIGURE_FLAGS="${OPTS}"
#
# Check - everything MUST work at this level
# distcheck is not possible here since it drops our configure options...
-MAKETEST="check"
+MAKETEST="distcheck"
#
#
# The options for this level can be easily generated semi-automatically from configure.in by:
--without-dns-cname \
--without-po2html \
"
+
+# Fix the distclean testing.
+export DISTCHECK_CONFIGURE_FLAGS="${OPTS}"
#
# Complete Check - everything is supposed to work at this level
# distcheck is not possible since it drops our configure options...
-MAKETEST="check"
+MAKETEST="distcheck"
#
#
# The options for this level can be easily generated semi-automatically from configure.in by:
#
#
OPTS=" \
- --enable-loadable-modules \
+ --disable-loadable-modules \
--enable-gnuregex \
--enable-optimizations \
--enable-inline \
--with-pthreads \
--with-valgrind-debug \
"
+
+# Fix the distclean testing.
+export DISTCHECK_CONFIGURE_FLAGS="${OPTS}"
+
+