AC_PREREQ(2.59) AC_INIT([service-discovery-applet],[0.2],[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_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)]) # disable because it needs a DISPLAY # AM_CHECK_PYMOD(gnomeapplet,,,[AC_MSG_ERROR(Could not find Python module gnomeapplet)]) dnl ======================================================== dnl Directory where services' actions will be installed dnl ======================================================== ACTIONSDIR="${datadir}/${PACKAGE}/actions/" AC_SUBST(ACTIONSDIR) dnl ======================================================== dnl Directory where services' icons will be installed dnl ======================================================== ICONSDIR="${datadir}/${PACKAGE}/icons/" AC_SUBST(ICONSDIR) dnl ======================================================== dnl Directory where glade interfaces will be installed dnl ======================================================== INTERFACESDIR="${datadir}/${PACKAGE}/interfaces/" AC_SUBST(INTERFACESDIR) dnl ======================================================== dnl This is to check correct gconf installation dnl ======================================================== AM_GCONF_SOURCE_2 dnl ======================================================== AC_CONFIG_FILES([ Makefile common/Makefile icons/Makefile icons/24x24/Makefile icons/48x48/Makefile schemas/Makefile servers/Makefile actions/Makefile actions/services/Makefile src/Makefile ]) AC_OUTPUT dnl ======================================================== dnl Summary dnl ======================================================== echo " ---{ $PACKAGE_NAME $VERSION }--- prefix: ${prefix} sysconfdir: ${sysconfdir} gconf config source: ${GCONF_SCHEMA_CONFIG_SOURCE} "