1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(src/led-pattern-editor.vala)
4 AC_CONFIG_HEADERS([config.h])
9 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
12 AM_PROG_VALAC([0.8.0])
17 CFLAGS="$CFLAGS -Wall -ansi -Wmissing-prototypes -Wmissing-declarations"
19 hildon-control-panel-dev, libosso-dev, libhildon
20 1-dev, osso-af-settings
22 PKG_CHECK_MODULES(GLIB, [glib-2.0, gobject-2.0])
26 PKG_CHECK_MODULES(HILDON, [hildon-1 >= 2.2.0, libosso >= 2.20])
28 AC_SUBST(HILDON_CFLAGS)
30 PKG_CHECK_MODULES(HILDONCP, hildon-control-panel >= 2.2)
31 AC_SUBST(HILDONCP_LIBS)
32 AC_SUBST(HILDONCP_CFLAGS)
34 PKG_CHECK_MODULES(OSSOSETTINGS, osso-af-settings >= 0.9.2)
36 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
37 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable pluginlibdir`
38 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable plugindesktopentrydir`
39 sudoersdir=/etc/sudoers.d
41 # Localization-related
42 AC_PROG_INTLTOOL([0.40.5])
43 GETTEXT_PACKAGE=led-pattern-editor
44 AC_SUBST(GETTEXT_PACKAGE)
45 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of gettext package])
46 ALL_LINGUAS="cs de es fi it"
50 AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir", [localedir])
52 AC_SUBST(pluginlibdir)
53 AC_SUBST(plugindesktopentrydir)