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"
|
2014-05-29 23:11:38 +05:30
|
|
|
AC_INIT(gramps, 3.4.9, [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])
|
|
|
|
|
2015-04-30 18:58:56 +05:30
|
|
|
dnl RELEASE=$(git log -1 --format=%h .)
|
2008-01-17 12:37:39 +05:30
|
|
|
dnl RELEASE=0beta
|
2008-01-17 11:03:39 +05:30
|
|
|
dnl RELEASE=0rc1
|
2015-04-30 18:58:56 +05:30
|
|
|
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.
|
2013-06-25 14:36:28 +05:30
|
|
|
ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl nn pl pt_BR pt_PT ru sv fi lt sk bg hr sl ca sq he uk ja vi el ar"
|
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.
|
2010-12-12 15:49:51 +05:30
|
|
|
dnl We first only check for python >= 2.6
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2010-12-12 15:49:51 +05:30
|
|
|
AM_PATH_PYTHON(2.6)
|
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
|
|
|
|
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
|
2009-06-16 00:32:15 +05:30
|
|
|
src/cli/Makefile
|
2010-05-01 09:42:42 +05:30
|
|
|
src/cli/plug/Makefile
|
2009-06-16 00:32:15 +05:30
|
|
|
src/gen/Makefile
|
|
|
|
src/gen/db/Makefile
|
2010-01-25 01:47:14 +05:30
|
|
|
src/gen/display/Makefile
|
2009-06-16 00:32:15 +05:30
|
|
|
src/gen/lib/Makefile
|
2010-01-25 01:47:14 +05:30
|
|
|
src/gen/mime/Makefile
|
2009-06-16 00:32:15 +05:30
|
|
|
src/gen/plug/Makefile
|
|
|
|
src/gen/plug/docbackend/Makefile
|
|
|
|
src/gen/plug/docgen/Makefile
|
|
|
|
src/gen/plug/menu/Makefile
|
2010-05-01 09:42:42 +05:30
|
|
|
src/gen/plug/report/Makefile
|
2010-01-25 01:47:14 +05:30
|
|
|
src/gen/proxy/Makefile
|
|
|
|
src/gen/utils/Makefile
|
2009-06-16 00:32:15 +05:30
|
|
|
src/gui/Makefile
|
2009-12-16 08:32:08 +05:30
|
|
|
src/gui/editors/Makefile
|
2009-12-16 11:41:06 +05:30
|
|
|
src/gui/editors/displaytabs/Makefile
|
2010-05-01 09:42:42 +05:30
|
|
|
src/gui/plug/Makefile
|
|
|
|
src/gui/plug/report/Makefile
|
2009-12-16 08:32:08 +05:30
|
|
|
src/gui/selectors/Makefile
|
2009-06-16 00:32:15 +05:30
|
|
|
src/gui/views/Makefile
|
2009-06-29 02:45:10 +05:30
|
|
|
src/gui/views/treemodels/Makefile
|
2010-01-25 01:47:14 +05:30
|
|
|
src/gui/widgets/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-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
|
2011-10-03 04:29:15 +05:30
|
|
|
src/Filters/Rules/Citation/Makefile
|
2006-08-05 10:23:21 +05:30
|
|
|
src/Filters/SideBar/Makefile
|
2007-05-21 09:37:00 +05:30
|
|
|
src/Simple/Makefile
|
2007-02-04 04:11:00 +05:30
|
|
|
src/GrampsLocale/Makefile
|
2002-10-20 19:55:16 +05:30
|
|
|
src/plugins/Makefile
|
2009-01-20 01:56:41 +05:30
|
|
|
src/plugins/docgen/Makefile
|
|
|
|
src/plugins/drawreport/Makefile
|
|
|
|
src/plugins/export/Makefile
|
|
|
|
src/plugins/gramplet/Makefile
|
|
|
|
src/plugins/graph/Makefile
|
|
|
|
src/plugins/import/Makefile
|
2009-01-31 00:49:22 +05:30
|
|
|
src/plugins/lib/Makefile
|
2011-04-25 19:02:10 +05:30
|
|
|
src/plugins/lib/maps/Makefile
|
2009-02-03 03:25:22 +05:30
|
|
|
src/plugins/mapservices/Makefile
|
2009-01-20 01:56:41 +05:30
|
|
|
src/plugins/quickview/Makefile
|
|
|
|
src/plugins/rel/Makefile
|
2010-04-04 23:46:03 +05:30
|
|
|
src/plugins/sidebar/Makefile
|
2009-01-20 01:56:41 +05:30
|
|
|
src/plugins/textreport/Makefile
|
|
|
|
src/plugins/tool/Makefile
|
2009-11-10 02:04:05 +05:30
|
|
|
src/plugins/view/Makefile
|
2009-01-20 01:56:41 +05:30
|
|
|
src/plugins/webreport/Makefile
|
2010-08-12 10:56:45 +05:30
|
|
|
src/plugins/webstuff/Makefile
|
2011-02-26 16:29:48 +05:30
|
|
|
src/plugins/webstuff/css/Makefile
|
|
|
|
src/plugins/webstuff/images/Makefile
|
2012-02-07 07:39:04 +05:30
|
|
|
src/plugins/webstuff/js/Makefile
|
2006-03-08 06:39:17 +05:30
|
|
|
src/DateHandler/Makefile
|
2002-10-20 19:55:16 +05:30
|
|
|
src/data/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
|
2006-03-22 00:26:27 +05:30
|
|
|
data/Makefile
|
|
|
|
data/man/Makefile
|
2011-01-14 00:02:42 +05:30
|
|
|
data/man/cs/Makefile
|
2006-03-22 00:26:27 +05:30
|
|
|
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
|
2012-08-06 07:30:51 +05:30
|
|
|
data/man/pt_BR/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
|