diff options
author | Stefano Karapetsas <[email protected]> | 2012-01-12 18:28:35 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-01-12 18:28:35 +0100 |
commit | e87fbefcec0c44579495b1bcb22ac59814029566 (patch) | |
tree | e6f14613713d8e431dc26868e50e1d12900beb8a /configure.ac | |
download | mozo-e87fbefcec0c44579495b1bcb22ac59814029566.tar.bz2 mozo-e87fbefcec0c44579495b1bcb22ac59814029566.tar.xz |
import from Mate-Extra
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..632c2b2 --- /dev/null +++ b/configure.ac @@ -0,0 +1,80 @@ +dnl -*- Mode: autoconf -*- +dnl Process this file with autoconf to produce a configure script. +AC_PREREQ(2.53) +AC_INIT(alacarte, 2011.12.01, http://bugzilla.mate.org/enter_bug.cgi?product=alacarte) +AC_CONFIG_SRCDIR(alacarte.in) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE([1.7]) +AM_MAINTAINER_MODE + +m4_define(required_pygobject_version, 2.15.1) +m4_define(required_pygtk_version, 2.13.0) + +dnl put the ACLOCAL flags in the makefile +ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" + + +GETTEXT_PACKAGE=alacarte +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) +AM_GLIB_GNU_GETTEXT +IT_PROG_INTLTOOL([0.40.0]) + +AM_PATH_PYTHON_VERSION(2.7, 2.7.0, 2.6, 2.6.0, 2.5, 2.5.0, 2.4, 2.4.0) + +PKG_CHECK_MODULES(ALACARTE, libmate-menu >= 2.27.92) + +dnl Check for correctly installed pygobject +AC_MSG_CHECKING(for pygobject required_pygobject_version installed for python required_python_abi) +prog=" +import pygtk; pygtk.require('2.0') +import gobject +assert gobject.pygobject_version >= tuple(map(int, 'required_pygobject_version'.split('.'))) +" + +if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then + AC_MSG_RESULT(found) +else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(required pygobject version not found) +fi + +dnl Check for correctly installed pygtk +AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python ${PYTHON_VERSION}) +prog=" +import pygtk; pygtk.require('2.0') +import gobject +assert gobject.pygtk_version >= tuple(map(int, 'required_pygtk_version'.split('.'))) +" + +if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then + AC_MSG_RESULT(found) +else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(required pygtk version not found) +fi + +dnl Check for correctly installed python-glade +dnl AC_MSG_CHECKING(for pyglade required_pygtk_version installed for python ${PYTHON_VERSION}) +dnl prog=" +dnl import pygtk; pygtk.require('2.0') +dnl import gtk.glade +dnl " +dnl if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then +dnl AC_MSG_RESULT(found) +dnl else +dnl AC_MSG_RESULT(not found) +dnl AC_MSG_ERROR(required pyglade version not found) +dnl fi + +AC_CONFIG_FILES([ + Makefile + po/Makefile.in + Alacarte/Makefile + data/alacarte.desktop.in + data/Makefile + data/icons/Makefile + ]) + +AC_OUTPUT + |