fix typo.
[lxde/lxpanel.git] / configure.ac
... / ...
CommitLineData
1AC_PREREQ(2.53)
2AC_INIT(lxpanel, 0.1.1, http://lxpanel.sourceforge.net/)
3AM_INIT_AUTOMAKE()
4AC_CONFIG_SRCDIR([src/bg.c])
5AC_CONFIG_HEADER([config.h])
6
7# Checks for programs.
8AC_PROG_CC
9AC_PROG_INSTALL
10AC_PROG_LN_S
11AC_PROG_LIBTOOL
12AC_PROG_INTLTOOL(, [no-xml])
13
14# Checks for libraries.
15pkg_modules="gtk+-2.0 >= 2.6.0 \
16 gthread-2.0 \
17 libstartup-notification-1.0"
18PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
19AC_SUBST(PACKAGE_CFLAGS)
20AC_SUBST(PACKAGE_LIBS)
21
22AC_ARG_ENABLE([plugins-loading],
23 AS_HELP_STRING([--disable-plugins-loading],
24 [disable plugin loading (default: enable)]),
25 plugins_loading=$enableval, plugins_loading="yes")
26
27AM_CONDITIONAL(BUILD_PLUGIN_LOADER, test x$plugins_loading = xyes)
28
29if test "$plugins_loading" = "no"; then
30 AC_DEFINE(DISABLE_PLUGINS_LOADING, [1], [Disable plugin loading])
31fi
32
33
34# Checks for header files.
35AC_PATH_X
36AC_HEADER_STDC
37AC_HEADER_SYS_WAIT
38AC_CHECK_HEADERS([locale.h stdlib.h string.h sys/time.h unistd.h])
39
40# Checks for typedefs, structures, and compiler characteristics.
41AC_C_CONST
42AC_C_INLINE
43AC_STRUCT_TM
44
45# Checks for library functions.
46AC_FUNC_MALLOC
47AC_FUNC_MEMCMP
48AC_TYPE_SIGNAL
49AC_FUNC_STAT
50AC_FUNC_STRFTIME
51AC_CHECK_FUNCS([bzero memset mkdir setlocale strchr])
52
53
54GETTEXT_PACKAGE=lxpanel
55AM_GNU_GETTEXT([external])
56AM_GNU_GETTEXT_VERSION(0.14.1)
57AC_SUBST(GETTEXT_PACKAGE)
58AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
59
60ALL_LINGUAS="zh_TW"
61AM_GLIB_GNU_GETTEXT
62
63AC_CONFIG_FILES([
64 Makefile
65 src/Makefile
66 src/plugins/Makefile
67 src/plugins/netstatus/Makefile
68 src/plugins/volume/Makefile
69 src/plugins/cpu/Makefile
70 po/Makefile.in
71 data/Makefile
72 data/default
73])
74AC_OUTPUT