1 dnl -*- Mode: autoconf -*-
2 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT(alacarte, 0.12.2, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte)
5 AC_CONFIG_SRCDIR(alacarte.in)
6 AC_CONFIG_HEADERS([config.h])
7 AM_INIT_AUTOMAKE([1.7])
10 m4_define(required_pygobject_version, 2.15.1)
11 m4_define(required_pygtk_version, 2.13.0)
13 dnl put the ACLOCAL flags in the makefile
14 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
17 GETTEXT_PACKAGE=alacarte
18 AC_SUBST(GETTEXT_PACKAGE)
19 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
21 IT_PROG_INTLTOOL([0.40.0])
23 AM_PATH_PYTHON_VERSION(2.6, 2.6.0, 2.5, 2.5.0, 2.4, 2.4.0)
25 PKG_CHECK_MODULES(ALACARTE, libgnome-menu >= 2.27.92)
27 dnl Check for correctly installed pygobject
28 AC_MSG_CHECKING(for pygobject required_pygobject_version installed for python required_python_abi)
30 import pygtk; pygtk.require('2.0')
32 assert gobject.pygobject_version >= tuple(map(int, 'required_pygobject_version'.split('.')))
35 if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
38 AC_MSG_RESULT(not found)
39 AC_MSG_ERROR(required pygobject version not found)
42 dnl Check for correctly installed pygtk
43 AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python ${PYTHON_VERSION})
45 import pygtk; pygtk.require('2.0')
47 assert gobject.pygtk_version >= tuple(map(int, 'required_pygtk_version'.split('.')))
50 if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
53 AC_MSG_RESULT(not found)
54 AC_MSG_ERROR(required pygtk version not found)
57 dnl Check for correctly installed python-glade
58 dnl AC_MSG_CHECKING(for pyglade required_pygtk_version installed for python ${PYTHON_VERSION})
60 dnl import pygtk; pygtk.require('2.0')
63 dnl if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
64 dnl AC_MSG_RESULT(found)
66 dnl AC_MSG_RESULT(not found)
67 dnl AC_MSG_ERROR(required pyglade version not found)
74 data/alacarte.desktop.in