Adding upstream version 0.3.0+svn20091218.
[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.3.0)
5 AM_CONFIG_HEADER(config.h)
6 AM_MAINTAINER_MODE
7
8 # Init intltool
9 IT_PROG_INTLTOOL
10
11 AC_ISC_POSIX
12 AC_PROG_CC
13 AM_PROG_CC_STDC
14 AC_HEADER_STDC
15
16 AC_ARG_ENABLE(man,
17        [AC_HELP_STRING([--enable-man],
18                [regenerate roff man pages from Docbook @<:@default=no@:>@])],
19        [enable_man="${enableval}"],
20        [enable_man=no]
21 )
22
23 AC_DEFINE([CURSOR_THEME],0,[Cursor theme support is not well implemented])
24 AC_ARG_ENABLE(cursor-theme,[],
25        AC_DEFINE([CURSOR_THEME],1)
26 )
27
28 pkg_modules="gtk+-2.0 >= 2.12.0"
29 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
30 AC_SUBST(PACKAGE_CFLAGS)
31 AC_SUBST(PACKAGE_LIBS)
32
33 GETTEXT_PACKAGE=lxappearance
34 AC_SUBST(GETTEXT_PACKAGE)
35 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
36
37 dnl Add the languages which your application supports here.
38 ALL_LINGUAS="af ar be@latin bg bn bn_IN ca cs da de dz el en_GB es et eu fa fi fr frp gl gu he hr hu id it ja ka ko lt mk ml ms nb nl nn oc pa pl ps pt pt_BR ru sk sl sr sr@Latn sv ta th tr uk ur ur_PK vi zh_CN zh_TW"
39 AM_GLIB_GNU_GETTEXT
40
41 if test x"$enable_man" = x"yes"; then
42         AC_PATH_PROG([XSLTPROC], [xsltproc])
43         if test -z "$XSLTPROC"; then
44                 enable_man=no
45         fi
46
47         dnl check for DocBook DTD and stylesheets in the local catalog.
48         JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
49                 [DocBook XML DTD V4.1.2], [], enable_man=no)
50         JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
51                 [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
52 fi
53
54 AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
55
56 AC_OUTPUT([
57 Makefile
58 src/Makefile
59 po/Makefile.in
60 man/Makefile
61 ])
62