From ac3d1593392cd442e9d134678bbeeb4dab1194ac Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Wed, 2 Aug 2006 23:09:30 +0200
Subject: [PATCH] Fixed detection of the dynamic_modules feature.

Rev: lib/modules/Tools.pmod/Install.pmod:1.28
---
 lib/modules/Tools.pmod/Install.pmod | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/modules/Tools.pmod/Install.pmod b/lib/modules/Tools.pmod/Install.pmod
index 5c4236a31b..e409ddb59d 100644
--- a/lib/modules/Tools.pmod/Install.pmod
+++ b/lib/modules/Tools.pmod/Install.pmod
@@ -8,8 +8,9 @@
 array(string) features()
 {
   array a = ({}), m = ({});
-  
-  if(!_static_modules["Regexp"])
+
+  // FIXME: This method is ugly and fragile.
+  if(!_static_modules["___Regexp"])
     a += ({ "dynamic_modules" });
 
 #if efun(thread_create)
-- 
GitLab