]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Fixes
[user/henk/code/inspircd.git] / configure
index 5a3015fb3bd95425ce56c1a13ecc0f8b96fe3037..fc7ec497998d80962ead303fe13b5c696d90e5aa 100755 (executable)
--- a/configure
+++ b/configure
@@ -1007,6 +1007,17 @@ EOF
        }
        chomp($modules);   # Remove Redundant whitespace..
 
+       opendir(DIRHANDLE, "src/modules");
+       foreach $name (sort readdir(DIRHANDLE)) {
+               if ($name =~ /^m_(.+?)$/) {
+                       if (opendir(MDIRHANDLE, "src/modules/$name") != 0) {
+                               closedir(MDIRHANDLE);
+                               $modules .= "$name.so ";
+                       }
+               }
+       }
+       closedir(DIRHANDLE);
+
 
        # Write all .in files.
        my $tmp = "";
@@ -1263,6 +1274,7 @@ EOCHEESE
                                print FILEHANDLE "      ranlib $name.a$crap3\n";
                                print FILEHANDLE "      \$(CC) -pipe $liflags -shared -o $name.so $name.a\n";
                                closedir(MDIRHANDLE);
+                               $crud = $crud . "       install -m \$(INSTMODE) $name.so \$(MODPATH)\n";
                        }
                }
        }