--- a/src/configure
+++ b/src/configure
@@ -887,6 +887,8 @@
   --with-clos-streams     user defined stream objects (default=YES)
   --with-cmuformat        use CMUCL's FORMAT routine (default=YES)
   --with-asdf             include ASDF building facility (default=YES if
+                          shared library support is on)
+  --with-defsystem        include DEFSYSTEM building facility (default=YES if
                           shared library support is on)
   --with-cmp              build in the compiler (default=YES)
   --with-rt               include MIT-RT testing environment (default=YES)
@@ -1536,6 +1538,15 @@
 
 else
   with_asdf=${enable_shared}
+fi;
+
+
+# Check whether --with-defsystem or --without-defsystem was given.
+if test "${with_defsystem+set}" = set; then
+  withval="$with_defsystem"
+
+else
+  with_defsystem=${enable_shared}
 fi;
 
 
@@ -9774,6 +9785,14 @@
 
 
 LSP_FEATURES="(cons :wants-asdf ${LSP_FEATURES})"
+
+
+fi
+
+if test "${with_defsystem}" = "yes"; then
+
+
+LSP_FEATURES="(cons :wants-defsystem ${LSP_FEATURES})"
 
 
 fi