134 | | AC_PATH_PROG(INTLTOOL_PERL, perl) |
135 | | if test -z "$INTLTOOL_PERL"; then |
136 | | AC_MSG_ERROR([perl not found]) |
137 | | fi |
138 | | AC_MSG_CHECKING([for perl >= 5.8.1]) |
139 | | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
140 | | if test $? -ne 0; then |
141 | | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
142 | | else |
143 | | IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` |
144 | | AC_MSG_RESULT([$IT_PERL_VERSION]) |
145 | | fi |
146 | | if test "x$2" != "xno-xml"; then |
147 | | AC_MSG_CHECKING([for XML::Parser]) |
148 | | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
149 | | AC_MSG_RESULT([ok]) |
150 | | else |
151 | | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
152 | | fi |
153 | | fi |
154 | | |