diff --git a/configure b/configure
index b885ed8..2b19d59 100755
--- a/configure
+++ b/configure
@@ -18917,13 +18917,10 @@
# Check whether --with-perl-options was given.
if test "${with_perl_options+set}" = set; then :
- withval=$with_perl_options;
+ withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
fi
-PERL_MAKE_OPTIONS=$with_perl_options
-
-
# Enable umem, object-caching memory allocation library.
@@ -30551,6 +30548,12 @@
fi
fi
+if test "$with_perl" != 'yes' ; then
+ DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
+fi
+
+PERL_SUPPORTS_DESTDIR='no'
+
with_perl_static='no'
with_perl_dynamic='no'
if test "$have_perl" != 'no'; then