fix alsactl invocation bug. Spotted by DocScrutinizer -- thanks!
[openmoko-gsoc2008.git] / odeviced-old / configure.ac
blob7d94d740fc9ac64899e5ea3ba6e3448837ee5282
1 AC_INIT([odeviced], [0.1.0], [sudharsh@gmail.com], [odeviced])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
5 AM_MAINTAINER_MODE
7 AC_PROG_CC
8 AM_PROG_CC_C_O
9 AC_DISABLE_STATIC
10 AC_PROG_LIBTOOL
12 AC_PATH_PROG(VALAC, valac, valac)
13 AC_SUBST(VALAC)
15 AH_TEMPLATE([GETTEXT_PACKAGE], [Package name for gettext])
16 GETTEXT_PACKAGE=odeviced
17 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
18 AC_SUBST(GETTEXT_PACKAGE)
19 AM_GLIB_GNU_GETTEXT
20 IT_PROG_INTLTOOL([0.35.0])
22 AC_SUBST(CFLAGS)
23 AC_SUBST(CPPFLAGS)
24 AC_SUBST(LDFLAGS)
26 GLIB_REQUIRED=2.12.0
28 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0)
29 PKG_CHECK_MODULES(DBUS, dbus-1 dbus-glib-1)
30 PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
31 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10) 
32 AC_SUBST(GLIB_CFLAGS)
33 AC_SUBST(GLIB_LIBS)
35 AC_SUBST(DBUS_CFLAGS)
36 AC_SUBST(DBUS_LIBS)
38 AC_SUBST(GMODULE_CFLAGS)
39 AC_SUBST(GMODULE_LIBS)
41 AC_SUBST(GSTREAMER_CFLAGS)
42 AC_SUBST(GSTREAMER_LIBS)
44 dnl dbus
45 DBUS_GLIB_BIN="`$PKG_CONFIG --variable=exec_prefix dbus-glib-1`/bin"
46 AC_ARG_WITH(dbusbindir,[  --with-dbusbindir=DIR  dbus tools in DIR], [DBUS_GLIB_BIN="$withval"])
47 echo "DBus tools location ${DBUS_GLIB_BIN}"
48 AC_SUBST(DBUS_GLIB_BIN)
50 DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
51 AC_SUBST(DBUS_SERVICES_DIR)
52 AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for dbus is])
54 DBUS_SYSTEM_DIR="/etc/dbus-1/system.d"
55 AC_SUBST(DBUS_SYSTEM_DIR)
56 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_DIR, "$DBUS_SYSTEM_DIR", [Where system.d dir is])
58 AC_CONFIG_FILES([po/Makefile.in])
60 AC_OUTPUT([
61 Makefile
62 src/Makefile
63 src/plugins/Makefile
64 src/plugins/powercontrol/Makefile
65 src/plugins/rtc/Makefile
66 src/plugins/display/Makefile
67 src/plugins/power/Makefile
68 src/plugins/input/Makefile
69 src/plugins/led/Makefile
70 src/plugins/idlenotifier/Makefile
71 src/plugins/audio/Makefile
72 src/plugins/accelerometer/Makefile