Merging upstream version 0.2.1.
[debian/lxappearance.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT(configure.in)
4 AM_INIT_AUTOMAKE(lxappearance, 0.2.1)
5 AM_CONFIG_HEADER(config.h)
6 AM_MAINTAINER_MODE
7
8 AC_ISC_POSIX
9 AC_PROG_CC
10 AM_PROG_CC_STDC
11 AC_HEADER_STDC
12
13 AC_ARG_ENABLE(man,
14        [AC_HELP_STRING([--enable-man],
15                [regenerate roff man pages from Docbook @<:@default=no@:>@])],
16        [enable_man="${enableval}"],
17        [enable_man=no]
18 )
19
20 pkg_modules="gtk+-2.0 >= 2.0.0"
21 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
22 AC_SUBST(PACKAGE_CFLAGS)
23 AC_SUBST(PACKAGE_LIBS)
24
25 GETTEXT_PACKAGE=lxappearance
26 AC_SUBST(GETTEXT_PACKAGE)
27 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
28
29 dnl Add the languages which your application supports here.
30 ALL_LINGUAS="af ar cs da de es et eu fa fi fr gl hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW"
31 AM_GLIB_GNU_GETTEXT
32
33 if test x"$enable_man" = x"yes"; then
34         AC_PATH_PROG([XSLTPROC], [xsltproc])
35         if test -z "$XSLTPROC"; then
36                 enable_man=no
37         fi
38
39         dnl check for DocBook DTD and stylesheets in the local catalog.
40         JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
41                 [DocBook XML DTD V4.1.2], [], enable_man=no)
42         JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
43                 [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
44 fi
45
46 AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
47
48 AC_OUTPUT([
49 Makefile
50 src/Makefile
51 po/Makefile.in
52 man/Makefile
53 ])
54