]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/configure.pm
more cleanup
[user/henk/code/inspircd.git] / make / configure.pm
index 089842fb3977a04db78d24fd0ae3005b8c975bcd..5444ca40cd86ca9fd4a6993e625ec01b911eae27 100644 (file)
@@ -154,8 +154,15 @@ sub nopedantic {
 
 sub getmodules
 {
+       my ($silent) = @_;
+
        my $i = 0;
-       print "Detecting modules ";
+
+       if (!$silent)
+       {
+               print "Detecting modules ";
+       }
+
        opendir(DIRHANDLE, "src/modules") or die("WTF, missing src/modules!");
        foreach my $name (sort readdir(DIRHANDLE))
        {
@@ -163,11 +170,18 @@ sub getmodules
                {
                        my $mod = $1;
                        $main::modlist[$i++] = $mod;
-                       print ".";
+                       if (!$silent)
+                       {
+                               print ".";
+                       }
                }
        }
        closedir(DIRHANDLE);
-       print "\nOk, $i modules.\n";
+
+       if (!$silent)
+       {
+               print "\nOk, $i modules.\n";
+       }
 }
 
 sub promptnumeric($$)