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) AC_INIT(gramps, 2.1.0, [gramps-bugs@lists.sourceforge.net]) AC_CONFIG_SRCDIR(configure.in) AM_INIT_AUTOMAKE(1.6.3) RELEASE=0.SVN$(svnversion -n .) 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 dnl Checking for gconftool-2 AC_PATH_PROG(GCONFTOOL, gconftool-2, no) if test "x$GCONFTOOL" = xno; then AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) fi AM_GCONF2_REPLACEMENT AM_SHARED_MIME AM_PACKAGER AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) AC_PATH_PROG(MSGFMT, msgfmt,no) if test x$MSGFMT = xno; then AC_MSG_ERROR(Couldn't find msgfmt program. Please install the GNU gettext package.) fi AC_PATH_PROG(MSGCONV, msgconv,no) if test x$MSGCONV = xno; then AC_MSG_ERROR(Couldn't find msgconv program. Please install the GNU gettext package.) fi AC_PATH_PROG(ICONV, iconv,no) if test x$ICONV = xno; then AC_MSG_ERROR(Couldn't find iconv program.) fi dnl Add the languages which your application supports here. ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl no pl pt_BR ro ru sv eo fi lt" 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 LANGUAGES="hu zh_CN cs da de es fr it nb nl no pl pt_BR ro ru sv eo fi lt" dnl AC_SUBST(LANGUAGES) dnl dnl DISTLANGS= dnl POFILES= dnl MOFILES= dnl for lang in $LANGUAGES; do dnl POFILES="$POFILES $lang.po" dnl MOFILES="$MOFILES $lang.mo" dnl done dnl AC_SUBST(POFILES) dnl AC_SUBST(MOFILES) dnl Checks for programs. dnl We first only check for python >= 2.3 AM_PATH_PYTHON(2.3) AC_PATH_PROG(BINSH, sh) pygtk_require=" try: import pygtk pygtk.require('2.0') except ImportError: pass def out(str): f = open('conftest.out', 'w') f.write(str) f.close() " AC_MSG_CHECKING(Python bindings for gtk2.4 (pygtk2>=2.3.4)) cat > conftest.py <= (2,3,4): out("YES") 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 YES != "$has_pygtk" then AC_MSG_ERROR([ **** The python bindings for gtk 2.4 (pygtk2>=2.3.4) could not be found.]) fi AC_MSG_RESULT(ok) AC_MSG_CHECKING(Python bindings for gnome) cat > conftest.py < conftest.py < conftest.py < conftest.py <