dnl Process this file with autoconf to produce a configure script. dnl May need to run automake && aclocal first AC_INIT(src/gramps.py) AM_INIT_AUTOMAKE(gramps, 0.9.0) RELEASE=rc1 VERSIONSTRING=$VERSION if test x"$RELEASE" != "x" then VERSIONSTRING="$VERSION-$RELEASE" fi AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) AC_PATH_PROG(MSGFMT, msgfmt) AC_SUBST(MSGFMT) LANGUAGES="sv pl de fr es it pt_BR ru da_DK cs" AC_SUBST(LANGUAGES) DISTLANGS= POFILES= MOFILES= for lang in $LANGUAGES; do POFILES="$POFILES $lang.po" MOFILES="$MOFILES $lang.mo" done AC_SUBST(POFILES) AC_SUBST(MOFILES) dnl Checks for programs. dnl We first only check for python >= 2.2 AM_PATH_PYTHON(2.2) dnl override automatic python detection with our own place pythondir=\${prefix}/share pyexecdir=\${prefix}/share pkgpythondir=\${prefix}/share/\${PACKAGE} pkgpyexecdir=\${prefix}/share/\${PACKAGE} AC_PATH_PROG(BINSH, sh) AC_PATH_PROG(SWIG, swig) if test "$PYTHON_VERSION" != "2.2" then AC_PATH_PROG(PYTHON22, python2.2) else PYTHON22=$PYTHON fi AC_PATH_PROG(ZIP, zip) AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_CC AC_CHECK_HEADER(libintl.h) AC_CHECK_LIB(c,textdomain,LIBS="", [ AC_CHECK_LIB(intl,textdomain, LIBS="-lintl", AC_MSG_ERROR("Could not find internationalization libraries")) ]) dnl Check for programs AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, "YES", "NO") GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0` GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0` pygtk_require="try: import pygtk pygtk.require('2.0') except ImportError: pass " dnl Check if python bindings for gtk are installed AC_MSG_CHECKING(Python bindings for gtk) cat > conftest.py < conftest.py < conftest.py < conftest.py < conftest.py < 0.3) but basic scrollkeeper instructions dnl == use 0.1.4 example so we'll just check for that dnl ====================================================== SCROLLKEEPER_REQUIRED=0.1.4 AC_SUBST(SCROLLKEEPER_REQUIRED) dnl First see that *some* version of scrollkeeper is installed dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config, no) dnl if test x$SCROLLKEEPER_CONFIG = xno; then dnl AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package.) dnl DISABLE_SCROLLKEEPER=1 dnl AC_SUBST(DISABLE_SCROLLKEEPER) dnl fi DISABLE_SCROLLKEEPER=1 AC_SUBST(DISABLE_SCROLLKEEPER) dnl ====================================================== dnl == GNOME modified DTD's need jw, not db2html dnl ====================================================== AC_PATH_PROG(JW, jw, no) if test x$JW = xno; then HAVE_JW="no" else HAVE_JW="yes" fi AC_SUBST(HAVE_JW) dnl ====================================================== dnl == end of modern doc tests dnl ====================================================== AC_SUBST(BINSH) AC_SUBST(SWIG) AC_SUBST(PYTHON) AC_SUBST(PYTHON_VERSION) AC_SUBST(GNOMEHELP) AC_SUBST(LIBS) AC_SUBST(P15_INCLUDES) AC_SUBST(P20_INCLUDES) AC_SUBST(P21_INCLUDES) AC_SUBST(P22_INCLUDES) AC_SUBST(GNOMEINC) AC_SUBST(GNOMELIB) AC_SUBST(GPREF) AC_SUBST(INTLLIBS) AC_OUTPUT([ Makefile src/Makefile src/const.py src/docgen/Makefile src/filters/Makefile src/plugins/Makefile src/calendars/Makefile src/data/Makefile src/data/templates/Makefile src/po/Makefile doc/Makefile doc/gramps-manual/Makefile doc/gramps-manual/C/Makefile doc/extending-gramps/Makefile doc/extending-gramps/C/Makefile omf-install/Makefile gramps.spec gramps.sh])