summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 5f293d7dbcec7da799daf1d866e45269aee5375c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
AC_PREREQ(2.57)
AC_INIT([service-discovery-applet], [0.1], [sebastien (dot) estienne (at) gmail (dot) com])
AC_CONFIG_SRCDIR([src/service-discovery-applet.in])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign 1.9 -Wall])

AC_SUBST(VERSION)

AM_MAINTAINER_MODE

AM_PATH_PYTHON([2.4])
AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find Python module pygtk)])
AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)])
AM_CHECK_PYMOD(avahi,,,[AC_MSG_ERROR(Could not find Python module avahi)])
AM_CHECK_PYMOD(gnomeapplet,,,[AC_MSG_ERROR(Could not find Python module gnomeapplet)])

SCRIPTSDIR="${datadir}/${PACKAGE}/scripts/"
AC_SUBST(SCRIPTSDIR)

ICONSDIR="${datadir}/${PACKAGE}/icons/"
AC_SUBST(ICONSDIR)

INTERFACESDIR="${datadir}/${PACKAGE}/interfaces/"
AC_SUBST(INTERFACESDIR)

AC_CONFIG_FILES([
	Makefile
	common/Makefile
	src/Makefile
	scripts/Makefile
	servers/Makefile
	icons/Makefile
	icons/24x24/Makefile
	icons/48x48/Makefile
])
AC_OUTPUT