2004-08-19 03:33:11 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl May need to run automake && aclocal first
|
2003-08-10 23:25:22 +00:00
|
|
|
|
|
|
|
AC_PREREQ(2.57)
|
2006-11-03 17:05:24 +00:00
|
|
|
AC_INIT(gramps, 2.2.3, [gramps-bugs@lists.sourceforge.net])
|
2006-03-15 23:58:23 +00:00
|
|
|
AC_CONFIG_SRCDIR(configure.in)
|
2003-08-10 23:25:22 +00:00
|
|
|
AM_INIT_AUTOMAKE(1.6.3)
|
2006-03-05 04:31:24 +00:00
|
|
|
|
2006-03-17 20:41:14 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
GNOME_DOC_INIT
|
|
|
|
|
2006-11-03 17:05:24 +00:00
|
|
|
RELEASE=0.SVN$(svnversion -n .)
|
|
|
|
dnl RELEASE=1
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
|
|
VERSIONSTRING=$VERSION
|
|
|
|
if test x"$RELEASE" != "x"
|
|
|
|
then
|
|
|
|
VERSIONSTRING="$VERSION-$RELEASE"
|
|
|
|
fi
|
|
|
|
|
2006-03-15 23:58:23 +00:00
|
|
|
dnl put the ACLOCAL flags in the Makefile
|
|
|
|
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
|
|
|
|
|
|
|
AC_PROG_INTLTOOL
|
|
|
|
|
2005-08-18 05:58:28 +00:00
|
|
|
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
|
|
|
|
|
2005-05-11 14:04:47 +00:00
|
|
|
AM_GCONF2_REPLACEMENT
|
2005-03-17 17:19:34 +00:00
|
|
|
AM_SHARED_MIME
|
2005-05-11 14:04:47 +00:00
|
|
|
AM_PACKAGER
|
2006-08-03 01:14:54 +00:00
|
|
|
dnl This is a hack to disable scrollkeeper update when in the packager mode.
|
|
|
|
dnl It may not seem good to purists, since we're defining
|
|
|
|
dnl ENABLE_SK_{TRUE,FALSE} twice, but I cannot see any other way
|
|
|
|
dnl without tweaking the gnome-doc-utils macros manually.
|
|
|
|
dnl So, scrollkeeper update is enabled when it would normally be,
|
|
|
|
dnl *provided* this is not the packager mode. Packager mode cancels it.
|
|
|
|
AM_CONDITIONAL(ENABLE_SK, test "x$packager_mode" = "xfalse" -a "x$enable_scrollkeeper" = "xyes")
|
2002-10-20 14:25:16 +00:00
|
|
|
AC_SUBST(RELEASE)
|
|
|
|
AC_SUBST(VERSIONSTRING)
|
|
|
|
|
2006-03-15 23:58:23 +00:00
|
|
|
dnl Add the languages which your application supports here.
|
2006-11-05 22:56:08 +00:00
|
|
|
ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl no pl pt_BR ro ru sv eo fi lt sk tr"
|
2006-03-15 23:58:23 +00:00
|
|
|
GETTEXT_PACKAGE=gramps
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the Gettext package name.])
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
2005-02-22 03:55:34 +00:00
|
|
|
dnl We first only check for python >= 2.3
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2005-02-22 03:55:34 +00:00
|
|
|
AM_PATH_PYTHON(2.3)
|
2002-10-20 14:25:16 +00:00
|
|
|
AC_PATH_PROG(BINSH, sh)
|
|
|
|
|
2003-04-06 14:44:30 +00:00
|
|
|
pygtk_require="
|
|
|
|
try:
|
2002-11-26 04:06:23 +00:00
|
|
|
import pygtk
|
|
|
|
pygtk.require('2.0')
|
|
|
|
except ImportError:
|
|
|
|
pass
|
2003-08-14 03:53:41 +00:00
|
|
|
|
2006-03-17 19:15:16 +00:00
|
|
|
def out(line):
|
2003-08-14 03:53:41 +00:00
|
|
|
f = open('conftest.out', 'w')
|
2006-03-17 19:15:16 +00:00
|
|
|
f.write(line)
|
2003-08-14 03:53:41 +00:00
|
|
|
f.close()
|
2002-11-26 04:06:23 +00:00
|
|
|
"
|
|
|
|
|
2004-08-19 03:33:11 +00:00
|
|
|
AC_MSG_CHECKING(Python bindings for gtk2.4 (pygtk2>=2.3.4))
|
|
|
|
cat > conftest.py <<EOF
|
|
|
|
$pygtk_require
|
|
|
|
try:
|
|
|
|
import gobject
|
|
|
|
version = gobject.pygtk_version
|
|
|
|
if version >= (2,3,4):
|
2006-03-17 19:15:16 +00:00
|
|
|
print_version = '.'.join([[str(i) for i in version]])
|
|
|
|
out(print_version)
|
2004-08-19 03:33:11 +00:00
|
|
|
else:
|
2006-03-17 19:15:16 +00:00
|
|
|
out("NO")
|
2004-08-19 03:33:11 +00:00
|
|
|
except ImportError:
|
2006-03-17 19:15:16 +00:00
|
|
|
out("NO")
|
2004-08-19 13:24:17 +00:00
|
|
|
except AttributeError:
|
2006-03-17 19:15:16 +00:00
|
|
|
out("NO")
|
2004-08-19 03:33:11 +00:00
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
|
|
|
has_pygtk=`cat conftest.out`
|
|
|
|
rm -f conftest.out conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
if test NO = "$has_pygtk"
|
2004-08-19 03:33:11 +00:00
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
|
|
|
|
|
|
|
**** The python bindings for gtk 2.4 (pygtk2>=2.3.4) could not be found.])
|
|
|
|
fi
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_MSG_RESULT($has_pygtk)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2004-04-04 04:39:52 +00:00
|
|
|
AC_MSG_CHECKING(Python bindings for gnome)
|
2002-10-20 14:25:16 +00:00
|
|
|
cat > conftest.py <<EOF
|
2003-04-06 14:44:30 +00:00
|
|
|
$pygtk_require
|
2002-10-20 14:25:16 +00:00
|
|
|
try:
|
2003-08-14 03:53:41 +00:00
|
|
|
import gnome
|
|
|
|
# Do not import gnome.ui, this can kill python if the
|
|
|
|
# display cannot be opened. Just search it.
|
|
|
|
import imp
|
|
|
|
imp.find_module('gnome/ui')
|
2006-03-17 19:15:16 +00:00
|
|
|
out("gnome.ui")
|
2002-10-20 14:25:16 +00:00
|
|
|
except ImportError:
|
2003-08-14 03:53:41 +00:00
|
|
|
out("NO")
|
2002-10-20 14:25:16 +00:00
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
2002-11-08 04:10:31 +00:00
|
|
|
has_pygnome=`cat conftest.out`
|
2002-10-20 14:25:16 +00:00
|
|
|
rm -f conftest.out conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
if test NO = "$has_pygnome"
|
2002-10-20 14:25:16 +00:00
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
2006-03-17 19:15:16 +00:00
|
|
|
**** The python bindings for gnome 2.0 (gnome2-python) could not be found.])
|
2002-10-20 14:25:16 +00:00
|
|
|
fi
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_MSG_RESULT($has_pygnome)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2002-11-08 04:10:31 +00:00
|
|
|
AC_MSG_CHECKING(Python bindings for gconf)
|
2002-10-20 14:25:16 +00:00
|
|
|
cat > conftest.py <<EOF
|
2002-11-26 04:06:23 +00:00
|
|
|
$pygtk_require
|
2002-10-20 14:25:16 +00:00
|
|
|
try:
|
2002-11-08 04:10:31 +00:00
|
|
|
import gconf
|
2006-03-17 19:15:16 +00:00
|
|
|
out("gconf")
|
2003-12-09 04:14:35 +00:00
|
|
|
except ImportError:
|
|
|
|
import gnome.gconf
|
2006-03-17 19:15:16 +00:00
|
|
|
out("gnome.gconf")
|
2002-10-20 14:25:16 +00:00
|
|
|
except ImportError:
|
2003-08-14 03:53:41 +00:00
|
|
|
out("NO")
|
2002-10-20 14:25:16 +00:00
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
2002-11-08 04:10:31 +00:00
|
|
|
has_gconf=`cat conftest.out`
|
2002-10-20 14:25:16 +00:00
|
|
|
rm -f conftest.out conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
if test NO = "$has_gconf"
|
2002-10-20 14:25:16 +00:00
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
2006-03-17 19:15:16 +00:00
|
|
|
**** The python bindings for gconf (gnome2-python-gconf) could not be found.])
|
2002-10-20 14:25:16 +00:00
|
|
|
fi
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_MSG_RESULT($has_gconf)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2004-04-04 04:39:52 +00:00
|
|
|
AC_MSG_CHECKING(Python bindings for gnome vfs)
|
2004-01-01 19:10:23 +00:00
|
|
|
cat > conftest.py <<EOF
|
|
|
|
$pygtk_require
|
|
|
|
try:
|
2006-03-17 19:15:16 +00:00
|
|
|
# Do not import gnome.vfs, this can raise a RuntimeError if the
|
2004-01-01 19:10:23 +00:00
|
|
|
# display cannot be opened. Just search it.
|
|
|
|
import imp
|
|
|
|
imp.find_module('gnome/vfs')
|
2006-03-17 19:15:16 +00:00
|
|
|
out("gnome.vfs")
|
2004-01-01 19:10:23 +00:00
|
|
|
except ImportError:
|
2006-03-17 19:15:16 +00:00
|
|
|
imp.find_module('gnomevfs')
|
|
|
|
out("gnomevfs")
|
|
|
|
except:
|
2004-01-01 19:10:23 +00:00
|
|
|
out("NO")
|
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
|
|
|
has_vfs=`cat conftest.out`
|
|
|
|
rm -f conftest.out conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
if test NO = "$has_vfs"
|
2004-01-01 19:10:23 +00:00
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
2006-03-17 19:15:16 +00:00
|
|
|
**** The python bindings for GNOME VFS (gnome2-python-vfs) could not be found.])
|
2004-01-01 19:10:23 +00:00
|
|
|
fi
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_MSG_RESULT($has_vfs)
|
2004-01-01 19:10:23 +00:00
|
|
|
|
2004-01-25 07:47:19 +00:00
|
|
|
AC_MSG_CHECKING(Python bindings for glade)
|
2002-10-20 14:25:16 +00:00
|
|
|
cat > conftest.py <<EOF
|
2002-11-26 04:06:23 +00:00
|
|
|
$pygtk_require
|
2002-10-20 14:25:16 +00:00
|
|
|
try:
|
2003-08-14 03:53:41 +00:00
|
|
|
# Do not import gtk.glade, this can raise a RuntimeError if the
|
|
|
|
# display cannot be opened. Just search it.
|
|
|
|
import imp
|
|
|
|
imp.find_module('gtk/glade')
|
2006-03-17 19:15:16 +00:00
|
|
|
out("gtk.glade")
|
2002-10-20 14:25:16 +00:00
|
|
|
except ImportError:
|
2003-08-14 03:53:41 +00:00
|
|
|
out("NO")
|
2002-10-20 14:25:16 +00:00
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
has_pyglade=`cat conftest.out`
|
2002-10-20 14:25:16 +00:00
|
|
|
rm -f conftest.out conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
if test NO = "$has_pyglade"
|
2002-10-20 14:25:16 +00:00
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
|
|
|
|
2004-03-02 03:43:51 +00:00
|
|
|
**** The python bindings for glade (pygtk2-libglade) could not be found.])
|
2002-10-20 14:25:16 +00:00
|
|
|
fi
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_MSG_RESULT($has_pyglade)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2006-03-16 19:02:45 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
po/Makefile.in
|
2006-03-18 00:36:16 +00:00
|
|
|
m4/Makefile
|
2006-06-23 20:10:56 +00:00
|
|
|
help/Makefile
|
2006-03-17 19:15:16 +00:00
|
|
|
Makefile
|
|
|
|
gramps.spec
|
|
|
|
gramps.sh
|
|
|
|
src/const.py
|
2002-10-20 14:25:16 +00:00
|
|
|
src/Makefile
|
* src/RelLib.py: Remove file (replaced by the package dir).
* src/RelLib: Add directory.
* src/RelLib/__init__.py, src/RelLib/_helper.py,
src/RelLib/_secondary.py, src/RelLib/Researcher.py,
src/RelLib/GenderStats.py, src/RelLib/Person.py,
src/RelLib/Family.py, src/RelLib/Event.py, src/RelLib/Place.py,
src/RelLib/Source.py, src/RelLib/MediaObject.py,
src/RelLib/Repository.py, src/RelLib/Makefile.am,
src/RelLib/.cvsignore: Add to CVS.
* src/configure.in: Create Makefile in src/RelLib.
svn: r5587
2005-12-20 02:38:07 +00:00
|
|
|
src/RelLib/Makefile
|
2006-03-03 23:48:11 +00:00
|
|
|
src/Config/Makefile
|
2006-06-01 22:37:13 +00:00
|
|
|
src/FilterEditor/Makefile
|
2006-03-03 23:48:11 +00:00
|
|
|
src/Mime/Makefile
|
2006-05-05 00:39:11 +00:00
|
|
|
src/DisplayTabs/Makefile
|
2006-05-17 00:48:46 +00:00
|
|
|
src/DisplayModels/Makefile
|
2006-05-15 15:53:42 +00:00
|
|
|
src/Selectors/Makefile
|
2006-03-02 20:44:39 +00:00
|
|
|
src/GrampsLogger/Makefile
|
2005-12-21 23:37:50 +00:00
|
|
|
src/GrampsDb/Makefile
|
2006-05-26 00:10:59 +00:00
|
|
|
src/Merge/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/docgen/Makefile
|
2006-03-04 05:24:16 +00:00
|
|
|
src/Editors/Makefile
|
2006-05-03 01:05:46 +00:00
|
|
|
src/Filters/Makefile
|
|
|
|
src/Filters/Rules/Makefile
|
2006-05-03 06:40:02 +00:00
|
|
|
src/Filters/Rules/Person/Makefile
|
|
|
|
src/Filters/Rules/Family/Makefile
|
|
|
|
src/Filters/Rules/Event/Makefile
|
|
|
|
src/Filters/Rules/Source/Makefile
|
|
|
|
src/Filters/Rules/Place/Makefile
|
2006-08-22 16:54:40 +00:00
|
|
|
src/Filters/Rules/MediaObject/Makefile
|
2006-05-03 06:40:02 +00:00
|
|
|
src/Filters/Rules/Repository/Makefile
|
2006-08-05 04:53:21 +00:00
|
|
|
src/Filters/SideBar/Makefile
|
2006-03-04 15:37:04 +00:00
|
|
|
src/DataViews/Makefile
|
2006-03-09 20:49:29 +00:00
|
|
|
src/PluginUtils/Makefile
|
2006-05-31 01:07:43 +00:00
|
|
|
src/ReportBase/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/plugins/Makefile
|
2006-03-08 01:09:17 +00:00
|
|
|
src/DateHandler/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/data/Makefile
|
2006-03-04 23:25:22 +00:00
|
|
|
src/glade/Makefile
|
2006-03-03 23:48:11 +00:00
|
|
|
src/images/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/data/templates/Makefile
|
2006-03-21 18:56:27 +00:00
|
|
|
data/Makefile
|
|
|
|
data/man/Makefile
|
|
|
|
data/man/fr/Makefile
|
2003-03-31 03:51:01 +00:00
|
|
|
example/Makefile
|
|
|
|
example/gramps/Makefile
|
2006-03-15 23:58:23 +00:00
|
|
|
])
|
|
|
|
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_OUTPUT
|