=?utf-8?q?Bug=20507683=20=E2=80=93=20Store=20application=20UI=20state
[straw.git] / configure.ac
blobe60785bd4fa7fadd8706b9bf0cb58be3abe97ef3
1 AC_INIT(straw, 0.27.90, [http://bugzilla.gnome.org/simple-bug-guide.cgi?product=straw] )
2 AC_CONFIG_SRCDIR(straw/__init__.py)
3 AC_CONFIG_HEADERS(config.h)
4 AC_CONFIG_MACRO_DIR([m4])
6 AM_INIT_AUTOMAKE
7 GNOME_COMMON_INIT
9 AM_MAINTAINER_MODE
10 AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
12 dnl ***************************************************************************
13 dnl * Some straw-specific variable(s)
14 dnl ***************************************************************************
15 STRAW_HOME="http://www.gnome.org/projects/straw"
16 AC_SUBST(STRAW_HOME)
18 dnl ****************************************************************************
19 dnl * Translation & i18n
20 dnl ****************************************************************************
22 GETTEXT_PACKAGE="straw"
23 IT_PROG_INTLTOOL([0.35.0])
25 AC_SUBST(GETTEXT_PACKAGE)
26 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package])
27 AM_GLIB_GNU_GETTEXT
29 dnl ****************************************************************************
30 dnl * Gnome Doc Utils
31 dnl ****************************************************************************
32 GNOME_DOC_INIT
34 dnl ****************************************************************************
35 dnl * GConf support
36 dnl ****************************************************************************
37 AC_PATH_PROG(GCONFTOOL, gconftool-2)
38 AM_GCONF_SOURCE_2
40 dnl ****************************************************************************
41 dnl * Python 2.4
42 dnl ****************************************************************************
43 AM_PATH_PYTHON(2.4)
44 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
46 dnl ****************************************************************************
47 dnl * Write the values of various paths in defs.py
48 dnl ****************************************************************************
49 AC_SUBST(VERSION)
50 AC_SUBST(PACKAGE)
52 AS_AC_EXPAND(BINDIR, $bindir)
53 AC_SUBST(BINDIR)
55 AS_AC_EXPAND(DATADIR, $datarootdir)
56 AC_SUBST(DATADIR)
58 AS_AC_EXPAND(LIBDIR, $libdir)
59 AC_SUBST(LIBDIR)
61 AS_AC_EXPAND(PYTHONDIR, $pythondir)
62 AC_SUBST(PYTHONDIR)
63                 
64 dnl ****************************************************************************
65 dnl * PyGTK & co
66 dnl ****************************************************************************
67 PKG_CHECK_MODULES(STRAW,
68         gtk+-2.0          >= 2.8
69         pygtk-2.0         >= 2.8
70         pygobject-2.0     >= 2.8
71         gnome-python-2.0  >= 2.8
74 AC_MSG_CHECKING([for python-dbus module])
75 if AC_RUN_LOG([DISPLAY= $PYTHON -c '
76 try:
77     import dbus
78 except ImportError, e:
79     if str(e).find("dbus") >= 0:
80           raise
81 except:
82     pass
83 ']); then
84   AC_MSG_RESULT([yes])
85 else
86   AC_MSG_RESULT([no])
87   AC_MSG_ERROR([DBus Python module is required to build Straw])
91 dnl ****************************************************************************
92 dnl * --------------------------------------------------------------------------
93 dnl ****************************************************************************
94 AC_OUTPUT([
95 Makefile
96 data/Makefile
97 data/straw.desktop.in
98 data/sql/Makefile
99 po/Makefile.in
100 scripts/Makefile
101 straw/Makefile
102 straw/defs.py
103 straw/httplib2/Makefile
104 straw/model/Makefile
105 straw/storage/Makefile
108 echo
109 echo $PACKAGE v$VERSION
110 echo
112 echo Prefix............... : $prefix
113 echo
114 echo "Type 'make' to build"
115 echo