gramps/configure.in

203 lines
4.8 KiB
Plaintext
Raw Normal View History

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
AC_PREREQ(2.57)
dnl NOTE: 1st arg to macro below becomes the "VERSION"
AC_INIT(gramps, 3.0.2, [gramps-bugs@lists.sourceforge.net])
AC_CONFIG_SRCDIR(configure.in)
AM_INIT_AUTOMAKE([1.6.3 foreign])
2006-03-05 10:01:24 +05:30
AC_CONFIG_MACRO_DIR([m4])
GNOME_DOC_INIT
2008-03-25 11:10:11 +05:30
RELEASE=0.SVN$(svnversion -n .)
dnl RELEASE=0beta
2008-01-17 11:03:39 +05:30
dnl RELEASE=0rc1
2008-03-25 11:10:11 +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
dnl put the ACLOCAL flags in the Makefile
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
AC_PROG_INTLTOOL
AM_SHARED_MIME
AM_PACKAGER
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 19:55:16 +05:30
AC_SUBST(RELEASE)
AC_SUBST(VERSIONSTRING)
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 sk tr bg hr sl"
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.
dnl We first only check for python >= 2.5
2002-10-20 19:55:16 +05:30
AM_PATH_PYTHON(2.5)
2002-10-20 19:55:16 +05:30
AC_PATH_PROG(BINSH, sh)
pygtk_require="
try:
import pygtk
pygtk.require('2.0')
except ImportError:
pass
def out(line):
f = open('conftest.out', 'w')
f.write(line)
f.close()
"
AC_MSG_CHECKING(Python bindings for gtk2.10 (pygtk2>=2.10.0))
cat > conftest.py <<EOF
$pygtk_require
try:
import gobject
version = gobject.pygtk_version
if version >= (2,10,0):
print_version = '.'.join([[str(i) for i in version]])
out(print_version)
else:
out("NO")
except ImportError:
out("NO")
2004-08-19 18:54:17 +05:30
except AttributeError:
out("NO")
EOF
$PYTHON conftest.py
has_pygtk=`cat conftest.out`
rm -f conftest.out conftest.py
if test NO = "$has_pygtk"
then
AC_MSG_ERROR([
**** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.])
fi
AC_MSG_RESULT($has_pygtk)
2002-10-20 19:55:16 +05:30
AC_MSG_CHECKING(Python bindings for gnome)
2002-10-20 19:55:16 +05:30
cat > conftest.py <<EOF
$pygtk_require
2002-10-20 19:55:16 +05:30
try:
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')
out("gnome.ui")
2002-10-20 19:55:16 +05:30
except ImportError:
out("NO")
2002-10-20 19:55:16 +05:30
EOF
$PYTHON conftest.py
2002-11-08 09:40:31 +05:30
has_pygnome=`cat conftest.out`
2002-10-20 19:55:16 +05:30
rm -f conftest.out conftest.py
if test NO = "$has_pygnome"
2002-10-20 19:55:16 +05:30
then
AC_MSG_ERROR([
**** The python bindings for gnome2 (gnome2-python) could not be found.])
2002-10-20 19:55:16 +05:30
fi
AC_MSG_RESULT($has_pygnome)
2002-10-20 19:55:16 +05:30
AC_MSG_CHECKING(Python bindings for glade)
2002-10-20 19:55:16 +05:30
cat > conftest.py <<EOF
$pygtk_require
2002-10-20 19:55:16 +05:30
try:
# 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')
out("gtk.glade")
2002-10-20 19:55:16 +05:30
except ImportError:
out("NO")
2002-10-20 19:55:16 +05:30
EOF
$PYTHON conftest.py
has_pyglade=`cat conftest.out`
2002-10-20 19:55:16 +05:30
rm -f conftest.out conftest.py
if test NO = "$has_pyglade"
2002-10-20 19:55:16 +05:30
then
AC_MSG_ERROR([
**** The python bindings for glade (pygtk2-libglade) could not be found.])
2002-10-20 19:55:16 +05:30
fi
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
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
src/FilterEditor/Makefile
2006-03-04 05:18:11 +05:30
src/Mime/Makefile
src/DisplayTabs/Makefile
src/DisplayModels/Makefile
src/Selectors/Makefile
src/GrampsLogger/Makefile
src/Merge/Makefile
2002-10-20 19:55:16 +05:30
src/docgen/Makefile
src/Editors/Makefile
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
src/Filters/Rules/MediaObject/Makefile
2006-05-03 12:10:02 +05:30
src/Filters/Rules/Repository/Makefile
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
src/BasicUtils/Makefile
src/Simple/Makefile
src/GrampsDbUtils/Makefile
src/GrampsLocale/Makefile
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
src/gen/Makefile
src/gen/proxy/Makefile
src/gen/db/Makefile
2007-10-09 03:21:31 +05:30
src/gen/lib/Makefile
src/gen/utils/Makefile
2002-10-20 19:55:16 +05:30
src/data/Makefile
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
data/Makefile
data/man/Makefile
data/man/fr/Makefile
2008-01-16 19:56:33 +05:30
data/man/nl/Makefile
data/man/pl/Makefile
data/man/sv/Makefile
2003-03-31 09:21:01 +05:30
example/Makefile
example/gramps/Makefile
])
AC_OUTPUT