dnl $Id$ dnl Process this file with autoconf to produce a configure script. dnl May need to run automake && aclocal first AC_PREREQ(2.57) dnl NOTE: 1st arg to macro below becomes the "VERSION" AC_INIT(gramps, 3.0.4, [gramps-bugs@lists.sourceforge.net]) AC_CONFIG_SRCDIR(configure.in) AM_INIT_AUTOMAKE([1.6.3 foreign]) AC_CONFIG_MACRO_DIR([m4]) RELEASE=0.SVN$(svnversion -n .) dnl RELEASE=0beta dnl RELEASE=0rc1 dnl RELEASE=1 VERSIONSTRING=$VERSION if test x"$RELEASE" != "x" then VERSIONSTRING="$VERSION-$RELEASE" fi dnl put the ACLOCAL flags in the Makefile ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" AC_PROG_INTLTOOL AM_SHARED_MIME AM_PACKAGER AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) dnl Add the languages which your application supports here. ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl pl pt_BR ro ru sv eo fi lt sk tr bg hr sl ca" GETTEXT_PACKAGE=gramps AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the Gettext package name.]) AM_GLIB_GNU_GETTEXT dnl Checks for programs. dnl We first only check for python >= 2.5 AM_PATH_PYTHON(2.5) AC_PATH_PROG(BINSH, sh) pygtk_require=" try: import pygtk pygtk.require('2.0') except ImportError: pass def out(line): f = open('conftest.out', 'w') f.write(line) f.close() " AC_MSG_CHECKING(Python bindings for gtk2.10 (pygtk2>=2.10.0)) cat > conftest.py <= (2,10,0): print_version = '.'.join([[str(i) for i in version]]) out(print_version) else: out("NO") except ImportError: out("NO") except AttributeError: out("NO") EOF $PYTHON conftest.py has_pygtk=`cat conftest.out` rm -f conftest.out conftest.py if test NO = "$has_pygtk" then AC_MSG_ERROR([ **** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.]) fi AC_MSG_RESULT($has_pygtk) AC_MSG_CHECKING(Python bindings for gnome) cat > conftest.py < conftest.py <