l10n: Updated Czech (cs) translation to 100%
[lxde/lxinput.git] / configure.in
CommitLineData
14f5ccb1
HJYP
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(configure.in)
a031a272 4AM_INIT_AUTOMAKE(lxinput, 0.3.0)
14f5ccb1
HJYP
5AM_CONFIG_HEADER(config.h)
6AM_MAINTAINER_MODE
7
8AC_ISC_POSIX
9AC_PROG_CC
10AM_PROG_CC_STDC
11AC_HEADER_STDC
12
13AM_GLIB_GNU_GETTEXT
14IT_PROG_INTLTOOL([0.40.0])
15
16pkg_modules="gtk+-2.0 >= 2.12.0 gthread-2.0"
17PKG_CHECK_MODULES(GTK, [$pkg_modules])
18AC_SUBST(GTK_CFLAGS)
19AC_SUBST(GTK_LIBS)
20
ff18e6bb
HJYP
21PKG_CHECK_MODULES(XLIB, "x11")
22AC_SUBST(XLIB_CFLAGS)
23AC_SUBST(XLIB_LIBS)
24
1e9362df
JH
25AC_ARG_ENABLE(man,
26 [AC_HELP_STRING([--enable-man],
27 [regenerate roff man pages from Docbook @<:@default=no@:>@])],
28 [enable_man="${enableval}"],
29 [enable_man=no]
30)
31
46c1dfce
HJYP
32# Generate po/LINGUAS on the fly rather than relying on translators
33# to maintain it manually. This also overcome the problem that Transifex
34# cannot add a language to po/LINGUAS if a new po file is submitted.
35rm -f $srcdir/po/LINGUAS
36for po_file in `ls $srcdir/po/*.po | sort`;
37do
38 lang=`echo "$po_file" | sed "s|.*/po/\(.*\)\.po|\1|g"`
39 echo $lang >> $srcdir/po/LINGUAS
40done
41
14f5ccb1
HJYP
42GETTEXT_PACKAGE=lxinput
43AC_SUBST(GETTEXT_PACKAGE)
46c1dfce 44AM_GLIB_GNU_GETTEXT
14f5ccb1
HJYP
45AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
46
1e9362df 47if test x"$enable_man" = x"yes"; then
ff18e6bb
HJYP
48 AC_PATH_PROG([XSLTPROC], [xsltproc])
49 if test -z "$XSLTPROC"; then
50 enable_man=no
51 fi
52
53 dnl check for DocBook DTD and stylesheets in the local catalog.
54 JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
55 [DocBook XML DTD V4.1.2], [], enable_man=no)
56 JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
57 [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
1e9362df
JH
58fi
59
60AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
61
14f5ccb1
HJYP
62AC_OUTPUT([
63Makefile
64src/Makefile
65po/Makefile.in
a93acddb 66man/Makefile
14f5ccb1 67])