Adding upstream version 0.1.1.
[debian/lxrandr.git] / configure.in
CommitLineData
e96a0ec2
DB
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(configure.in)
4AM_INIT_AUTOMAKE(lxrandr, 0.1.1)
5AM_CONFIG_HEADER(config.h)
6AM_MAINTAINER_MODE
7
8AC_ISC_POSIX
9AC_PROG_CC
10AM_PROG_CC_STDC
11AC_HEADER_STDC
12
d5f1e565
DB
13AC_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
e96a0ec2
DB
20pkg_modules="gtk+-2.0 >= 2.0.0"
21PKG_CHECK_MODULES(GTK, [$pkg_modules])
22AC_SUBST(GTK_CFLAGS)
23AC_SUBST(GTK_LIBS)
24
25GETTEXT_PACKAGE=lxrandr
26AC_SUBST(GETTEXT_PACKAGE)
27AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
28
29dnl Add the languages which your application supports here.
d5f1e565 30ALL_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 pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW"
e96a0ec2
DB
31AM_GLIB_GNU_GETTEXT
32
d5f1e565
DB
33if 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)
44fi
45
46AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
47
e96a0ec2
DB
48AC_OUTPUT([
49Makefile
50src/Makefile
51po/Makefile.in
52data/lxrandr.desktop
53man/Makefile
54])