summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/meson.build2
-rw-r--r--plugins/perl/meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/meson.build b/plugins/meson.build
index 9e7fae93..6d41182b 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -26,7 +26,7 @@ if get_option('with-lua') != 'false'
   subdir('lua')
 endif
 
-if get_option('with-perl')
+if get_option('with-perl') != 'false'
   subdir('perl')
 endif
 
diff --git a/plugins/perl/meson.build b/plugins/perl/meson.build
index 180797ee..3779a35c 100644
--- a/plugins/perl/meson.build
+++ b/plugins/perl/meson.build
@@ -25,7 +25,7 @@ if get_option('with-perl-legacy-api')
   perl_cflags += '-DOLD_PERL'
 endif
 
-perl = find_program('perl')
+perl = find_program(get_option('with-perl'))
 
 ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
 if ret.returncode() != 0