Don't use libtoolize in autogen.sh, lxtask is not a library.
[lxde/lxtask.git] / configure.ac
CommitLineData
580e78c2 1AC_PREREQ([2.57])
b4cdfbff 2AC_INIT(lxtask,[0.1.4], [],lxtask)
2693655d 3AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz])
580e78c2
HJYP
4AC_PROG_INTLTOOL(, [no-xml])
5AM_MAINTAINER_MODE
6
7AM_CONFIG_HEADER(config.h)
8
9AC_PROG_CC
10AC_PROG_INSTALL
11AM_PROG_CC_C_O
12
13dnl Check for UNIX variants
14AC_AIX()
15AC_ISC_POSIX()
910ae56d 16#AC_MINIX()
580e78c2
HJYP
17
18AC_HEADER_STDC()
19AC_CHECK_HEADERS([dirent.h pwd.h sys/types.h sys/stat.h sys/param.h \
20 stdio.h stdlib.h string.h unistd.h stdlib.h signal.h])
21
b4cdfbff 22AC_ARG_ENABLE(gtk3,
23[ --enable-gtk3 enable to use gtk-3.0 instead of gtk-2.0 ],
24[case "${enableval}" in
25 yes) enable_gtk3=yes ;;
20514680 26 *) enable_gtk3=no ;;
b4cdfbff 27esac],[])
28
20514680 29echo "x$enable_gtk3"
b4cdfbff 30if test "x$enable_gtk3" = "xyes" ; then
20514680 31 pkg_modules="gtk+-3.0 >= 3.0.0"
b4cdfbff 32else
20514680 33 pkg_modules="gtk+-2.0 >= 2.6.0"
b4cdfbff 34fi
35
20514680 36PKG_CHECK_MODULES(GTK, [$pkg_modules])
580e78c2
HJYP
37AC_SUBST(GTK_CFLAGS)
38AC_SUBST(GTK_LIBS)
39
40GETTEXT_PACKAGE=lxtask
41#AM_GNU_GETTEXT([external])
42AM_GNU_GETTEXT_VERSION(0.14.1)
43AC_SUBST(GETTEXT_PACKAGE)
44AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
45
14caeb31
AG
46# Generate po/LINGUAS on the fly rather than relying on translators
47# to maintain it manually. This also overcome the problem that Transifex
48# cannot add a language to po/LINGUAS if a new po file is submitted.
49rm -f $srcdir/po/LINGUAS
50for po_file in `ls $srcdir/po/*.po | sort`;
51do
52 lang=`echo "$po_file" | sed "s|.*/po/\(.*\)\.po|\1|g"`
53 echo $lang >> $srcdir/po/LINGUAS
54done
55
580e78c2
HJYP
56AM_GLIB_GNU_GETTEXT
57
58AC_OUTPUT([
59 Makefile
60 src/Makefile
61 po/Makefile.in
62])
63
64echo
65echo LXTask....................................... : Version $VERSION
66echo
67echo Prefix....................................... : $prefix
68echo
69echo The binary will be installed in $prefix/bin
70echo
3307ac17 71echo http://lxde.org/
580e78c2
HJYP
72echo
73echo Have fun!
74echo