summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 571364e827e292969e86385222ba18ae7710ce2f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
AC_PREREQ(2.59)
AC_INIT([service-discovery-applet],[0.4.5],[sebastien (dot) estienne (at) gmail (dot) com])
AC_CONFIG_SRCDIR([src/service-discovery-applet.in])
AM_INIT_AUTOMAKE([foreign 1.9 -Wall])
AC_CONFIG_MACRO_DIR([common])

AC_PROG_INTLTOOL([0.21])

AC_SUBST(VERSION)

AM_MAINTAINER_MODE

dnl ========================================================
dnl Check for python and some modules
dnl ========================================================
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(avahi.ServiceTypeDatabase,ServiceTypeDatabase,,[AC_MSG_ERROR(You need avahi >= 0.6.9)])
# disable because it needs a DISPLAY
# AM_CHECK_PYMOD(gnomeapplet,,,[AC_MSG_ERROR(Could not find Python module gnomeapplet)])

dnl ========================================================
dnl Directory where services' plugins will be installed
dnl ========================================================
PLUGINSDIR="\$(pkgdatadir)/plugins/"
AC_SUBST(PLUGINSDIR)

dnl ========================================================
dnl Directory where services' tools will be installed
dnl ========================================================
TOOLSDIR="\$(pkgdatadir)/tools/"
AC_SUBST(TOOLSDIR)

dnl ========================================================
dnl Directory where services' icons will be installed
dnl ========================================================
ICONSDIR="\$(pkgdatadir)/icons/"
AC_SUBST(ICONSDIR)

dnl ========================================================
dnl Directory where glade interfaces will be installed
dnl ========================================================
INTERFACESDIR="\$(pkgdatadir)/interfaces/"
AC_SUBST(INTERFACESDIR)

dnl ========================================================
dnl This is to check correct gconf installation
dnl ========================================================
AM_GCONF_SOURCE_2

dnl ========================================================
dnl This is for gettext support
dnl ========================================================
GETTEXT_PACKAGE=service-discovery-applet
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="ca da de fr sv"
AM_GLIB_GNU_GETTEXT

AM_GLIB_DEFINE_LOCALEDIR([LOCALEDIR])
LOCALEDIR=$localedir
AC_SUBST(LOCALEDIR)

dnl ========================================================
AC_CONFIG_FILES([
	Makefile
	common/Makefile
	icons/Makefile
	icons/24x24/Makefile
	icons/48x48/Makefile
	schemas/Makefile
	servers/Makefile
	src/Makefile
	src/modules/Makefile
	plugins/Makefile
	tools/Makefile
	po/Makefile.in
])
AC_OUTPUT

dnl ========================================================
dnl Summary
dnl ========================================================
echo "
 ---{ $PACKAGE_NAME $VERSION }---

    prefix:                 ${prefix}
    sysconfdir:             ${sysconfdir}
    gconf config source:    ${GCONF_SCHEMA_CONFIG_SOURCE}
"