2 AC_INIT(lxde-common,[0.99.2], [http://lxde.org])
3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-dist-gzip dist-xz])
4 dnl AC_PROG_INTLTOOL(, [no-xml])
12 [AC_HELP_STRING([--enable-man],
13 [regenerate roff man pages from Docbook @<:@default=no@:>@])],
14 [enable_man="${enableval}"],
17 # xsessions data of path for GDM
18 AC_ARG_WITH([xsession-path],
20 [--with-xsession-path=PATH],
21 [set the install path of xsession data [[DATAROOTDIR/xsessions]]]),
22 [test x$withval != x && xsesspath="$withval"],
23 [xsesspath="\${datarootdir}/xsessions"])
27 if test x"$enable_man" = x"yes"; then
28 AC_PATH_PROG([XSLTPROC], [xsltproc])
29 if test -z "$XSLTPROC"; then
33 dnl check for DocBook DTD and stylesheets in the local catalog.
34 JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
35 [DocBook XML DTD V4.1.2], [], enable_man=no)
36 JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
37 [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
40 AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
42 dnl Fix invalid sysconfdir when --prefix=/usr
43 if test `eval "echo $sysconfdir"` = /usr/etc
48 GETTEXT_PACKAGE=lxde-common
49 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of default gettext domain])
50 AC_SUBST(GETTEXT_PACKAGE)
52 # Generate po/LINGUAS on the fly rather than relying on translators
53 # to maintain it manually. This also overcome the problem that Transifex
54 # cannot add a language to po/LINGUAS if a new po file is submitted.
55 rm -f $srcdir/po/LINGUAS
56 for po_file in `ls $srcdir/po/*.po | sort`;
58 lang=`echo "$po_file" | sed "s|.*/po/\(.*\)\.po|\1|g"`
59 echo $lang >> $srcdir/po/LINGUAS
64 IT_PROG_INTLTOOL([0.40.0])
66 dnl dirty hack used to prevent the installation of useless mo files.
83 if test x"$sysconfdir" != x'/etc'; then
86 echo 'Error: sysconfdir is not /etc.'
87 echo 'Please consider passing --sysconfdir=/etc to configure.';
88 echo 'Otherwise default config files will be installed to wrong place.'