diff options
-rw-r--r-- | rules/host-system-perl.in | 6 | ||||
-rw-r--r-- | rules/host-system-perl.make | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/rules/host-system-perl.in b/rules/host-system-perl.in index fc487ced8..e92e8565c 100644 --- a/rules/host-system-perl.in +++ b/rules/host-system-perl.in @@ -5,6 +5,12 @@ config HOST_SYSTEM_PERL if HOST_SYSTEM_PERL +config HOST_SYSTEM_PERL_JSON + bool + +config HOST_SYSTEM_PERL_LOCALE_PO + bool + config HOST_SYSTEM_PERL_XMLPARSER bool diff --git a/rules/host-system-perl.make b/rules/host-system-perl.make index 8a7b33cf0..e0415105b 100644 --- a/rules/host-system-perl.make +++ b/rules/host-system-perl.make @@ -22,6 +22,18 @@ $(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_JSON + @echo "Checking for Perl: JSON" + @perl -e "require JSON" 2>/dev/null || \ + ptxd_bailout "JSON perl module is required. \ + Please install libjson-perl (debian)." +endif +ifdef PTXCONF_HOST_SYSTEM_PERL_LOCALE_PO + @echo "Checking for Perl: Locale::PO" + @perl -e "require Locale::PO" 2>/dev/null || \ + ptxd_bailout "Locale::PO perl module is required. \ + Please install liblocale-po-perl (debian)." +endif ifdef PTXCONF_HOST_SYSTEM_PERL_XMLPARSER @echo "Checking for Perl: XML::Parser" @perl -e "require XML::Parser" 2>/dev/null || \ |