intltool: make dependency on XML::Parser optional
[feed/packages.git] / libs / intltool / patches / 100-optional-perl-xml-parser.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -25,7 +25,7 @@ AC_MSG_CHECKING([for XML::Parser])
4 if `$PERL -e "require XML::Parser" 2>/dev/null`; then
5 AC_MSG_RESULT([ok])
6 else
7 - AC_MSG_ERROR([XML::Parser perl module is required for intltool])
8 + AC_MSG_RESULT([XML::Parser perl module is required for some intltool utilitities])
9 fi
10
11 AC_OUTPUT([
12 --- a/intltool.m4
13 +++ b/intltool.m4
14 @@ -127,7 +127,7 @@ if test "x$2" != "xno-xml"; then
15 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16 AC_MSG_RESULT([ok])
17 else
18 - AC_MSG_ERROR([XML::Parser perl module is required for intltool])
19 + AC_MSG_RESULT([XML::Parser perl module is required for some intltool utilitities])
20 fi
21 fi
22