2004-08-19 09:03:11 +05:30
|
|
|
dnl $Id$
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl May need to run automake && aclocal first
|
2003-08-11 04:55:22 +05:30
|
|
|
|
|
|
|
AC_PREREQ(2.57)
|
2008-03-30 01:04:28 +05:30
|
|
|
dnl NOTE: arg to macro below becomes the "VERSION"
|
|
|
|
AC_INIT(gramps, 3.1.0, [gramps-bugs@lists.sourceforge.net])
|
2006-03-16 05:28:23 +05:30
|
|
|
AC_CONFIG_SRCDIR(configure.in)
|
2008-03-12 13:56:52 +05:30
|
|
|
AM_INIT_AUTOMAKE([1.6.3 foreign])
|
2006-03-05 10:01:24 +05:30
|
|
|
|
2006-03-18 02:11:14 +05:30
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2008-01-17 11:04:29 +05:30
|
|
|
RELEASE=0.SVN$(svnversion -n .)
|
2008-01-17 12:37:39 +05:30
|
|
|
dnl RELEASE=0beta
|
2008-01-17 11:03:39 +05:30
|
|
|
dnl RELEASE=0rc1
|
2007-01-30 22:16:16 +05:30
|
|
|
dnl RELEASE=1
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
VERSIONSTRING=$VERSION
|
|
|
|
if test x"$RELEASE" != "x"
|
|
|
|
then
|
|
|
|
VERSIONSTRING="$VERSION-$RELEASE"
|
|
|
|
fi
|
|
|
|
|
2006-03-16 05:28:23 +05:30
|
|
|
dnl put the ACLOCAL flags in the Makefile
|
|
|
|
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
|
|
|
|
|
|
|
AC_PROG_INTLTOOL
|
|
|
|
|
2005-03-17 22:49:34 +05:30
|
|
|
AM_SHARED_MIME
|
2005-05-11 19:34:47 +05:30
|
|
|
AM_PACKAGER
|
2002-10-20 19:55:16 +05:30
|
|
|
AC_SUBST(RELEASE)
|
|
|
|
AC_SUBST(VERSIONSTRING)
|
|
|
|
|
2006-03-16 05:28:23 +05:30
|
|
|
dnl Add the languages which your application supports here.
|
2008-11-08 22:32:08 +05:30
|
|
|
ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl nn pl pt_BR ro ru sv eo fi lt sk tr bg hr sl ca"
|
2006-03-16 05:28:23 +05:30
|
|
|
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 19:55:16 +05:30
|
|
|
|
|
|
|
dnl Checks for programs.
|
2007-11-01 23:07:10 +05:30
|
|
|
dnl We first only check for python >= 2.5
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2007-11-01 23:07:10 +05:30
|
|
|
AM_PATH_PYTHON(2.5)
|
2002-10-20 19:55:16 +05:30
|
|
|
AC_PATH_PROG(BINSH, sh)
|
|
|
|
|
2003-04-06 20:14:30 +05:30
|
|
|
pygtk_require="
|
|
|
|
try:
|
2002-11-26 09:36:23 +05:30
|
|
|
import pygtk
|
|
|
|
pygtk.require('2.0')
|
|
|
|
except ImportError:
|
|
|
|
pass
|
2003-08-14 09:23:41 +05:30
|
|
|
|
2006-03-18 00:45:16 +05:30
|
|
|
def out(line):
|
2003-08-14 09:23:41 +05:30
|
|
|
f = open('conftest.out', 'w')
|
2006-03-18 00:45:16 +05:30
|
|
|
f.write(line)
|
2003-08-14 09:23:41 +05:30
|
|
|
f.close()
|
2002-11-26 09:36:23 +05:30
|
|
|
"
|
|
|
|
|
2008-06-08 19:59:07 +05:30
|
|
|
AC_MSG_CHECKING(Python bindings for gtk 2.10 (pygtk2>=2.10.0))
|
2004-08-19 09:03:11 +05:30
|
|
|
cat > conftest.py <<EOF
|
|
|
|
$pygtk_require
|
|
|
|
try:
|
|
|
|
import gobject
|
|
|
|
version = gobject.pygtk_version
|
2007-07-06 09:52:03 +05:30
|
|
|
if version >= (2,10,0):
|
2006-03-18 00:45:16 +05:30
|
|
|
print_version = '.'.join([[str(i) for i in version]])
|
|
|
|
out(print_version)
|
2004-08-19 09:03:11 +05:30
|
|
|
else:
|
2006-03-18 00:45:16 +05:30
|
|
|
out("NO")
|
2004-08-19 09:03:11 +05:30
|
|
|
except ImportError:
|
2006-03-18 00:45:16 +05:30
|
|
|
out("NO")
|
2004-08-19 18:54:17 +05:30
|
|
|
except AttributeError:
|
2006-03-18 00:45:16 +05:30
|
|
|
out("NO")
|
2004-08-19 09:03:11 +05:30
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
|
|
|
has_pygtk=`cat conftest.out`
|
|
|
|
rm -f conftest.out conftest.py
|
2006-03-18 00:45:16 +05:30
|
|
|
if test NO = "$has_pygtk"
|
2004-08-19 09:03:11 +05:30
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
|
|
|
|
2008-06-08 19:59:07 +05:30
|
|
|
**** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be found.])
|
2004-08-19 09:03:11 +05:30
|
|
|
fi
|
2006-03-18 00:45:16 +05:30
|
|
|
AC_MSG_RESULT($has_pygtk)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2004-01-25 13:17:19 +05:30
|
|
|
AC_MSG_CHECKING(Python bindings for glade)
|
2002-10-20 19:55:16 +05:30
|
|
|
cat > conftest.py <<EOF
|
2002-11-26 09:36:23 +05:30
|
|
|
$pygtk_require
|
2002-10-20 19:55:16 +05:30
|
|
|
try:
|
2003-08-14 09:23:41 +05:30
|
|
|
# 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-18 00:45:16 +05:30
|
|
|
out("gtk.glade")
|
2002-10-20 19:55:16 +05:30
|
|
|
except ImportError:
|
2003-08-14 09:23:41 +05:30
|
|
|
out("NO")
|
2002-10-20 19:55:16 +05:30
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
2006-03-18 00:45:16 +05:30
|
|
|
has_pyglade=`cat conftest.out`
|
2002-10-20 19:55:16 +05:30
|
|
|
rm -f conftest.out conftest.py
|
2006-03-18 00:45:16 +05:30
|
|
|
if test NO = "$has_pyglade"
|
2002-10-20 19:55:16 +05:30
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
|
|
|
|
2004-03-02 09:13:51 +05:30
|
|
|
**** The python bindings for glade (pygtk2-libglade) could not be found.])
|
2002-10-20 19:55:16 +05:30
|
|
|
fi
|
2006-03-18 00:45:16 +05:30
|
|
|
AC_MSG_RESULT($has_pyglade)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2006-03-17 00:32:45 +05:30
|
|
|
AC_CONFIG_FILES([
|
|
|
|
po/Makefile.in
|
2006-03-18 06:06:16 +05:30
|
|
|
m4/Makefile
|
2006-03-18 00:45:16 +05:30
|
|
|
Makefile
|
|
|
|
gramps.sh
|
|
|
|
src/const.py
|
2002-10-20 19:55:16 +05:30
|
|
|
src/Makefile
|
2006-03-04 05:18:11 +05:30
|
|
|
src/Config/Makefile
|
2006-06-02 04:07:13 +05:30
|
|
|
src/FilterEditor/Makefile
|
2006-03-04 05:18:11 +05:30
|
|
|
src/Mime/Makefile
|
2006-05-05 06:09:11 +05:30
|
|
|
src/DisplayTabs/Makefile
|
2006-05-17 06:18:46 +05:30
|
|
|
src/DisplayModels/Makefile
|
2006-05-15 21:23:42 +05:30
|
|
|
src/Selectors/Makefile
|
2006-03-03 02:14:39 +05:30
|
|
|
src/GrampsLogger/Makefile
|
2006-05-26 05:40:59 +05:30
|
|
|
src/Merge/Makefile
|
2002-10-20 19:55:16 +05:30
|
|
|
src/docgen/Makefile
|
2006-03-04 10:54:16 +05:30
|
|
|
src/Editors/Makefile
|
2006-05-03 06:35:46 +05:30
|
|
|
src/Filters/Makefile
|
|
|
|
src/Filters/Rules/Makefile
|
2006-05-03 12:10:02 +05:30
|
|
|
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 22:24:40 +05:30
|
|
|
src/Filters/Rules/MediaObject/Makefile
|
2006-05-03 12:10:02 +05:30
|
|
|
src/Filters/Rules/Repository/Makefile
|
2007-02-25 00:46:50 +05:30
|
|
|
src/Filters/Rules/Note/Makefile
|
2006-08-05 10:23:21 +05:30
|
|
|
src/Filters/SideBar/Makefile
|
2006-03-04 21:07:04 +05:30
|
|
|
src/DataViews/Makefile
|
2007-02-04 04:11:00 +05:30
|
|
|
src/BasicUtils/Makefile
|
2007-05-21 09:37:00 +05:30
|
|
|
src/Simple/Makefile
|
2007-02-04 04:11:00 +05:30
|
|
|
src/GrampsDbUtils/Makefile
|
|
|
|
src/GrampsLocale/Makefile
|
2006-03-10 02:19:29 +05:30
|
|
|
src/PluginUtils/Makefile
|
2006-05-31 06:37:43 +05:30
|
|
|
src/ReportBase/Makefile
|
2002-10-20 19:55:16 +05:30
|
|
|
src/plugins/Makefile
|
2006-03-08 06:39:17 +05:30
|
|
|
src/DateHandler/Makefile
|
2008-05-12 14:35:38 +05:30
|
|
|
src/widgets/Makefile
|
2007-10-03 22:44:26 +05:30
|
|
|
src/gen/Makefile
|
|
|
|
src/gen/proxy/Makefile
|
2007-10-07 08:49:35 +05:30
|
|
|
src/gen/db/Makefile
|
2007-10-09 03:21:31 +05:30
|
|
|
src/gen/lib/Makefile
|
2007-10-08 09:32:34 +05:30
|
|
|
src/gen/utils/Makefile
|
2008-10-04 16:39:25 +05:30
|
|
|
src/gen/plug/Makefile
|
|
|
|
src/gen/plug/menu/Makefile
|
2002-10-20 19:55:16 +05:30
|
|
|
src/data/Makefile
|
2007-08-21 17:20:16 +05:30
|
|
|
src/data/templates/Makefile
|
2006-03-05 04:55:22 +05:30
|
|
|
src/glade/Makefile
|
2006-03-04 05:18:11 +05:30
|
|
|
src/images/Makefile
|
2007-02-21 01:35:16 +05:30
|
|
|
src/images/scalable/Makefile
|
|
|
|
src/images/16x16/Makefile
|
|
|
|
src/images/22x22/Makefile
|
|
|
|
src/images/48x48/Makefile
|
2008-12-08 16:34:54 +05:30
|
|
|
src/mapstraction/Makefile
|
2006-03-22 00:26:27 +05:30
|
|
|
data/Makefile
|
|
|
|
data/man/Makefile
|
|
|
|
data/man/fr/Makefile
|
2008-01-16 19:56:33 +05:30
|
|
|
data/man/nl/Makefile
|
2008-03-10 03:36:55 +05:30
|
|
|
data/man/pl/Makefile
|
2008-01-16 20:39:21 +05:30
|
|
|
data/man/sv/Makefile
|
2003-03-31 09:21:01 +05:30
|
|
|
example/Makefile
|
|
|
|
example/gramps/Makefile
|
2006-03-16 05:28:23 +05:30
|
|
|
])
|
|
|
|
|
2006-03-18 00:45:16 +05:30
|
|
|
AC_OUTPUT
|