summaryrefslogtreecommitdiffstats
path: root/rules/host-system-perl.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/host-system-perl.make')
-rw-r--r--rules/host-system-perl.make12
1 files changed, 12 insertions, 0 deletions
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 || \