1 # Copyright © 2008 Cosimo Cecchi <cosimoc@gnome.org>
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation; either version 2 of the License, or (at your
6 # option) any later version.
8 # This program is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # General Public License for more details.
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 dnl Process this file with autoconf to produce a configure script.
19 m4_define([mmediamanager_version_major],[0])
20 m4_define([mmediamanager_version_minor],[1])
21 m4_define([mmediamanager_version_micro],[0])
22 m4_define([mmediamanager_version],[mmediamanager_version_major.mmediamanager_version_minor.mmediamanager_version_micro])
24 AC_INIT([mmediamanager],[mmediamanager_version],[http://repo.or.cz/w/mmediamanager.git])
29 AC_CONFIG_HEADERS([config.h])
30 AC_CONFIG_SRCDIR([configure.ac])
32 AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2 tar-ustar])
47 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
49 ######################################
50 # dbus-binding tool and service file #
51 ######################################
53 AC_PATH_PROG([DBUS_BINDING_TOOL],[dbus-binding-tool],[no])
55 if test "$DBUS_BINDING_TOOL" = "no"; then
56 AC_MSG_ERROR([dbus-binding-tool not found])
59 AS_AC_EXPAND(DATADIR, $datadir)
60 DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
61 AC_SUBST(DBUS_SERVICES_DIR)
62 AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where
63 services dir for DBUS is])
65 ########################
66 # internationalization #
67 ########################
69 GETTEXT_PACKAGE=mmediamanager
70 AC_SUBST([GETTEXT_PACKAGE])
71 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
74 IT_PROG_INTLTOOL([0.40.0])
80 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
87 AC_SUBST(MMEDIAMANAGER_CFLAGS)
88 AC_SUBST(MMEDIAMANAGER_LIBS)
94 PKG_CHECK_MODULES(DBUS, [dbus-glib-1
104 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.13])
124 libmmanager-gtk/libmmanager-gtk.pc
125 libmmanager-gtk/Makefile
127 test/clients/Makefile