diff options
-rw-r--r-- | rules/host-system-perl.in | 3 | ||||
-rw-r--r-- | rules/host-system-perl.make | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/rules/host-system-perl.in b/rules/host-system-perl.in index e92e8565c..b8f7adcf6 100644 --- a/rules/host-system-perl.in +++ b/rules/host-system-perl.in @@ -5,6 +5,9 @@ config HOST_SYSTEM_PERL if HOST_SYSTEM_PERL +config HOST_SYSTEM_PERL_BUILD + bool + config HOST_SYSTEM_PERL_JSON bool diff --git a/rules/host-system-perl.make b/rules/host-system-perl.make index 21d257f06..d70ae5f68 100644 --- a/rules/host-system-perl.make +++ b/rules/host-system-perl.make @@ -23,6 +23,12 @@ $(STATEDIR)/host-system-perl.prepare: @echo "Checking for Perl ..." @perl -v >/dev/null 2>&1 || \ ptxd_bailout "'perl' not found! Please install."; +ifdef PTXCONF_HOST_SYSTEM_PERL_BUILD + @echo "Checking for Perl: Module::Build" + @perl -e "require Module::Build" 2>/dev/null || \ + ptxd_bailout "Module::Build perl module is required. \ + Please install libmodule-build-perl (debian)." +endif ifdef PTXCONF_HOST_SYSTEM_PERL_JSON @echo "Checking for Perl: JSON" @perl -e "require JSON" 2>/dev/null || \ |