Joe Orton wrote:
> [not sure if this made it through to the list first time; resent]
> 
> Renamed modules are causing me to lose hair again; would it be OK to do
> something like the below, so a call like have_module("proxy_http.c")
> will succeed if either a module named either "proxy_http.c" or
> "mod_proxy_http.c" is loaded?

looks ok to me, though it means that in addition to

  have_module('mod_rewrite.c');
  have_module('mod_rewrite');

working

  have_module('rewrite');
  have_module('rewrite.c');

will also work.  hopefully that is intuitive instead of confusing :)

> 
> Index: Test.pm
> ===================================================================
> --- Test.pm   (revision 153211)
> +++ Test.pm   (working copy)
> @@ -282,6 +282,7 @@
>                  $mod .= '.c'
>              }
>              next if $cfg->{modules}->{$mod};
> +            next if $cfg->{modules}->{'mod_' . $mod };
>              if (exists $cfg->{cmodules_disabled}->{$mod}) {
>                  push @reasons, $cfg->{cmodules_disabled}->{$mod};
>                  next;

--Geoff

Reply via email to