Commit 981b4747 authored by Monty's avatar Monty

Updated configure.pl to new plugin syntax

--with-plugin-name=xxxx
--with-plugins= now uses =AUTO instead of =1
parent f47124c9
...@@ -125,7 +125,7 @@ foreach my $option (@ARGV) ...@@ -125,7 +125,7 @@ foreach my $option (@ARGV)
foreach my $p (@plugins) foreach my $p (@plugins)
{ {
$p =~ s/-/_/g; $p =~ s/-/_/g;
$cmakeargs = $cmakeargs." -DWITH_".uc($p)."=1"; $cmakeargs = $cmakeargs." -DWITH_".uc($p)."=AUTO";
} }
next; next;
} }
...@@ -137,7 +137,12 @@ foreach my $option (@ARGV) ...@@ -137,7 +137,12 @@ foreach my $option (@ARGV)
} }
if($option =~ /without-plugin=/ || $option =~ /without-plugin-/) if($option =~ /without-plugin=/ || $option =~ /without-plugin-/)
{ {
$cmakeargs = $cmakeargs." -DWITHOUT_".uc(substr($option,15))."=1"; $cmakeargs = $cmakeargs." -DPLUGIN_".uc(substr($option,15))."=NO";
next;
}
if($option =~ /with-plugin-(.*)=(.*)/)
{
$cmakeargs = $cmakeargs." -DPLUGIN_".uc($1)."=".uc($2);
next; next;
} }
if($option =~ /with-zlib-dir=bundled/) if($option =~ /with-zlib-dir=bundled/)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment