]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix running configure on systems with old versions of Perl.
authorSadie Powell <sadie@witchery.services>
Sun, 28 Feb 2021 18:46:56 +0000 (18:46 +0000)
committerSadie Powell <sadie@witchery.services>
Sun, 28 Feb 2021 18:46:56 +0000 (18:46 +0000)
Closes #1852.

make/configure.pm

index 223f4e58aa46851da3e98c72aa012c7c5c1dd4e0..656c9809711be700eb356ed18af77e66ec7495c6 100644 (file)
@@ -237,7 +237,8 @@ sub module_expand($) {
 
 sub module_shrink($) {
        my $module = basename shift;
-       return $module =~ s/(?:^m_|\.cpp$)//gr;
+       $module =~ s/(?:^m_|\.cpp$)//g;
+       return $module;
 }
 
 sub write_configure_cache(%) {