Imported Upstream version 0.50.2
[platform/upstream/intltool.git] / configure.ac
1 dnl Process this file with autoconf to create configure.
2 AC_PREREQ([2.53])
3
4 AC_INIT([intltool], [0.50.2])
5 AC_CONFIG_SRCDIR([intltoolize.in])
6
7 AM_INIT_AUTOMAKE([foreign])
8
9 pkgdatadir='${datadir}'"/${PACKAGE}"
10 AC_SUBST(pkgdatadir) dnl automake does not need this, but libtoolize does
11 aclocaldir='${datadir}'/aclocal
12 AC_SUBST(aclocaldir)
13
14 AC_PATH_PROG(PERL, perl)
15 if test -z "$PERL"; then
16    AC_MSG_ERROR([perl not found])
17 fi
18 AC_MSG_CHECKING([for perl >= 5.8.1])
19 $PERL -e "use 5.8.1;" > /dev/null 2>&1
20 if test $? -ne 0; then
21    AC_MSG_ERROR([perl 5.8.1 is required for intltool])
22 else
23    PERL_VERSION="`$PERL -e \"printf '%vd', $^V\"`"
24    AC_MSG_RESULT([$PERL_VERSION])
25 fi
26 AC_MSG_CHECKING([for XML::Parser])
27 if `$PERL -e "require XML::Parser" 2>/dev/null`; then
28    AC_MSG_RESULT([ok])
29 else
30    AC_MSG_ERROR([XML::Parser perl module is required for intltool])
31 fi
32 AC_PATH_PROG(BZR, bzr)
33
34
35 AC_CONFIG_FILES([
36 Makefile
37 doc/Makefile
38 intltoolize
39 tests/Makefile
40 tests/cases/Makefile
41 tests/results/Makefile
42 tests/selftest.pl
43 ])
44
45 AC_OUTPUT