~malept/awn/desktop-agnostic

10.5.30 by Mark Lee
merge trunk r142 (only that revision)
1
AC_INIT([avant-window-navigator], [0.2.1], [])
5 by Neil J Patel
Initial Import
2
3
AC_CONFIG_SRCDIR([.])
4
AC_CONFIG_HEADERS([config.h])
5
10.1.69 by Neil Jagdish Patel
2007-09-01 Neil J. Patel <njp@o-hand.com>
6
m4_define(pycairo_required_version,      1.0.2) dnl or 1.1.7
10.5.29 by Mark Lee
Add patch for Launchpad bug #160845 (AWN 0.2.1 Doesn't 'Make'), awn-pygtk-change-required-version-to-2.10.patch
7
m4_define(pygtk_required_version,        2.10.0)
10.1.69 by Neil Jagdish Patel
2007-09-01 Neil J. Patel <njp@o-hand.com>
8
9
AM_INIT_AUTOMAKE([1.8])
5 by Neil J Patel
Initial Import
10
AM_MAINTAINER_MODE
11
12
AC_SUBST([ACLOCAL_AMFLAGS], ["\${ACLOCAL_FLAGS}"])
13
14
AC_ISC_POSIX
15
AC_PROG_CC
16
AC_STDC_HEADERS
17
AM_PROG_LIBTOOL
18
82 by Mark Lee
2007-11-19 Mark Lee <avant-wn@lazymalevolence.com>
19
dnl check for gtk-doc
20
GTK_DOC_CHECK(1.4)
21
118 by Mark Lee
2007-12-28 Mark Lee <avant-wn@lazymalevolence.com>
22
dnl ==============================================
23
dnl Python support
24
dnl ==============================================
25
107 by Mark Lee
2007-12-19 Mark Lee <avant-wn@lazymalevolence.com>
26
AC_PYTHON_DEVEL(2.3.5)
10.1.69 by Neil Jagdish Patel
2007-09-01 Neil J. Patel <njp@o-hand.com>
27
28
PLATFORM=`$PYTHON -c "from distutils import util; print util.get_platform()"`
29
AC_SUBST(PLATFORM)
30
10.2.101 by Julien Lavergne
2007-12-21 Julien Lavergne <julien.lavergne@gmail.com>
31
dnl ==============================================
10.1.69 by Neil Jagdish Patel
2007-09-01 Neil J. Patel <njp@o-hand.com>
32
dnl check for pygtk
10.2.101 by Julien Lavergne
2007-12-21 Julien Lavergne <julien.lavergne@gmail.com>
33
dnl ==============================================
107 by Mark Lee
2007-12-19 Mark Lee <avant-wn@lazymalevolence.com>
34
PKG_CHECK_MODULES(PYGTK, gtk+-2.0 pygtk-2.0 >= pygtk_required_version)
10.1.69 by Neil Jagdish Patel
2007-09-01 Neil J. Patel <njp@o-hand.com>
35
AC_SUBST(PYGTK_CFLAGS)
36
AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
37
if test "x$PYGTK_CODEGEN" = "xno"; then
38
  AC_MSG_ERROR([could not find pygtk-codegen-2.0 script])
39
fi
40
41
AC_MSG_CHECKING(for pygtk defs)
42
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
43
AC_SUBST(PYGTK_DEFSDIR)
44
AC_MSG_RESULT($PYGTK_DEFSDIR)
45
46
PKG_CHECK_MODULES(PYCAIRO, pycairo >= pycairo_required_version)
47
AC_SUBST(PYCAIRO_CFLAGS)
48
AC_SUBST(PYCAIRO_LIBS)
49
PYGTK_CODEGEN_DEFINES="-DHAVE_PYCAIRO $PYGTK_CODEGEN_DEFINES";
50
AC_DEFINE([HAVE_PYCAIRO], [1], [Define to 1 if pycairo is available])
51
118 by Mark Lee
2007-12-28 Mark Lee <avant-wn@lazymalevolence.com>
52
dnl ==============================================
53
dnl Vala support
54
dnl ==============================================
55
56
VALA_PROG_VALAC(0.1.6)
137 by Mark Lee
Vala bindings: regenerate via make if awn.gi has been modified in some way
57
AC_PATH_PROG(VAPIGEN, vapigen, vapigen, [])
118 by Mark Lee
2007-12-28 Mark Lee <avant-wn@lazymalevolence.com>
58
AM_CONDITIONAL(HAVE_VALA, test -n "$VALAC")
59
60
dnl ==============================================
10.2.101 by Julien Lavergne
2007-12-21 Julien Lavergne <julien.lavergne@gmail.com>
61
dnl check for others python modules
62
dnl ==============================================
63
AC_ARG_ENABLE(pymod_checks, 
64
              AC_HELP_STRING([--disable-pymod-checks], [Disable checks for Python modules]),
65
              enable_pymod_checks=$enableval,
66
	      enable_pymod_checks=yes)
67
              
68
if test x${enable_pymod_checks} = xyes; then
69
  AM_CHECK_PYMOD(gnome,,,AC_MSG_ERROR([python module gnome required (python-gnome2)]))
70
  AM_CHECK_PYMOD(gnomedesktop,,,AC_MSG_ERROR([python module gnome-desktop required (python-gnome2-desktop)]))
71
  AM_CHECK_PYMOD(gconf,,,AC_MSG_ERROR([python module gconf required (python-gconf)]))
72
fi
73
74
75
76
dnl ==============================================
5 by Neil J Patel
Initial Import
77
dnl CFLAGS
118 by Mark Lee
2007-12-28 Mark Lee <avant-wn@lazymalevolence.com>
78
dnl ==============================================
79
5 by Neil J Patel
Initial Import
80
CFLAGS="$CFLAGS -Wall -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2"
81
82
dnl ==============================================
83
dnl translation support
84
dnl ==============================================
85
86
GETTEXT_PACKAGE=avant-window-navigator
87
AC_SUBST(GETTEXT_PACKAGE)
88
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
10.2.73 by Neil Jagdish Patel
2007-10-07 Neil J. Patel <njpatel@gmail.com>
89
ALL_LINGUAS="ar bg ca cs da de de_DE el en_AU en_GB es eu fa fi fi_FI fr fr_FR gl he hr hu it it_IT ja ka ko nb nl nn no_NO pl pt_BR pt ro ru ru_RU sk sr sv tr zh_CN zh_HK zh_TW"
5 by Neil J Patel
Initial Import
90
91
IT_PROG_INTLTOOL([0.34])
92
AM_GLIB_GNU_GETTEXT
93
94
slicelocaledir='${prefix}/${DATADIRNAME}/locale'
95
AC_SUBST(slicelocaledir)
96
97
dnl ==============================================
98
dnl Check that we meet the  dependencies
99
dnl ==============================================
100
AM_PATH_GLIB_2_0(2.8.0,,,gobject)
101
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
102
COMMON_MODULES="glib-2.0 >= 2.8.0 gthread-2.0 gobject-2.0 gtk+-2.0 gdk-2.0"
5 by Neil J Patel
Initial Import
103
12 by Mark Lee
add Xfce4 support for everything but the trash applet, as it seems non-trivial to port at this point
104
AC_MSG_CHECKING([for specific desktop support])
60 by Mark Lee
2007-10-15 Mark Lee <avant-wn@lazymalevolence.com>
105
use_egg=no
12 by Mark Lee
add Xfce4 support for everything but the trash applet, as it seems non-trivial to port at this point
106
AC_ARG_WITH(desktop,
60 by Mark Lee
2007-10-15 Mark Lee <avant-wn@lazymalevolence.com>
107
            AS_HELP_STRING([--with-desktop=[gnome|xfce4|agnostic]],
108
                           [Specifies which desktop type for which to compile.  Current choices: xfce4, gnome, agnostic (defaults to gnome)]),
148 by Mark Lee
configure.in: ensure that Gnome is the default desktop configuration, even if the --with-desktop flag is omitted.
109
            [], [with_desktop=gnome])
110
case "$with_desktop" in
111
    xfce4)
112
    use_egg=yes
113
    VFS_MODULE="thunar-vfs-1"
114
    AC_DEFINE(LIBAWN_USE_XFCE, 1, [Define support for the Xfce4 desktop])
115
    USE_DESKTOP="-DLIBAWN_USE_XFCE"
116
    AC_MSG_RESULT(Xfce4)
117
    ;;
118
    agnostic)
119
    use_egg=yes
120
    VFS_MODULE="gio-2.0"
121
    AC_MSG_RESULT([None, enabling desktop agnostic support])
122
    ;;
123
    gnome|*)
124
    DESKTOP_MODULES="gnome-desktop-2.0 libgnome-2.0"
125
    VFS_MODULE="gnome-vfs-module-2.0"
126
    AC_DEFINE(LIBAWN_USE_GNOME, 1, [Define support for the Gnome desktop])
127
    USE_DESKTOP="-DLIBAWN_USE_GNOME"
128
    AC_MSG_RESULT(Gnome)
129
    AC_SYS_LARGEFILE
130
    ;;
131
esac
14 by Mark Lee
* ChangeLog:
132
AC_SUBST(DESKTOP_MODULES)
60 by Mark Lee
2007-10-15 Mark Lee <avant-wn@lazymalevolence.com>
133
AC_SUBST(VFS_MODULE)
26 by Mark Lee
2007-09-19 Mark Lee <avant-wn@lazymalevolence.com>
134
AC_SUBST(USE_DESKTOP)
12 by Mark Lee
add Xfce4 support for everything but the trash applet, as it seems non-trivial to port at this point
135
AM_CONDITIONAL(USE_GNOME, test "$with_desktop" = "gnome")
136
AM_CONDITIONAL(USE_XFCE, test "$with_desktop" = "xfce4")
60 by Mark Lee
2007-10-15 Mark Lee <avant-wn@lazymalevolence.com>
137
AM_CONDITIONAL(USE_EGG, test "$use_egg" = "yes")
29 by Mark Lee
2007-09-19 Mark Lee <avant-wn@lazymalevolence.com>
138
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
139
AC_MSG_CHECKING([for config backend support])
140
AC_ARG_WITH(gconf,
141
            AS_HELP_STRING([--with-gconf],
142
                           [Use GConf to store configuration information]),
90 by Mark Lee
Fix checksum build logic; fix gconf build logic
143
            [if test "$with_gconf" == "no"; then
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
144
                # use Glib's GKeyFile - it's already covered by $COMMON_MODULES
145
                CFG_MODULE=""
96 by Mark Lee
awn.pc.in, configure.in: add variable to awn.pc that tells which configuration backend Awn is using (useful for installing applet schemas)
146
                CFG_BACKEND_NAME="GKeyFile"
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
147
                GCONF_SCHEMA_INSTALL_SOURCE="/dev/null"
148
                GCONF_SCHEMA_FILE_DIR="/dev/null"
149
                AC_MSG_RESULT([GKeyFile (part of Glib)])
150
            fi])
90 by Mark Lee
Fix checksum build logic; fix gconf build logic
151
if test "$with_gconf" != "no"; then
152
    CFG_MODULE="gconf-2.0"
96 by Mark Lee
awn.pc.in, configure.in: add variable to awn.pc that tells which configuration backend Awn is using (useful for installing applet schemas)
153
    CFG_BACKEND_NAME="GConf"
90 by Mark Lee
Fix checksum build logic; fix gconf build logic
154
    AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
155
    if test x"$GCONFTOOL" = xno; then
156
        AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
157
    fi
158
    AC_DEFINE([USE_GCONF], 1, [Use GConf to store configuration information])
159
    AC_MSG_RESULT([GConf])
160
fi
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
161
AC_SUBST(CFG_MODULE)
96 by Mark Lee
awn.pc.in, configure.in: add variable to awn.pc that tells which configuration backend Awn is using (useful for installing applet schemas)
162
AC_SUBST(CFG_BACKEND_NAME)
78 by Mark Lee
2007-11-14 Mark Lee <avant-wn@lazymalevolence.com>
163
AM_CONDITIONAL(USE_GCONF, test "$with_gconf" != "no")
147 by Mark Lee
Add patch from moonbeam which adds a simple config key locking API
164
# we need GChecksum (is in Glib 2.15)
165
PKG_CHECK_EXISTS(
166
    [glib-2.0 >= 2.15.0],
167
    [use_egg_checksum="no"],
168
    [use_egg_checksum="yes"])
78 by Mark Lee
2007-11-14 Mark Lee <avant-wn@lazymalevolence.com>
169
AM_CONDITIONAL(USE_EGG_CHECKSUM, test "$use_egg_checksum" = "yes")
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
170
10.5.18 by Mark Lee
Add patch from Launchpad bug #147591 (AWN doesn't update window's status)
171
PKG_CHECK_EXISTS([libwnck-1.0 >= 2.19.3.1], [AC_DEFINE(HAVE_LIBWNCK_220, 1, [Have libwnck with the ABI that changed with version 2.19.3.1])])
172
71 by Mark Lee
2007-10-23 Mark Lee <avant-wn@lazymalevolence.com>
173
PKG_CHECK_MODULES(AWN, [ $COMMON_MODULES libwnck-1.0 $DESKTOP_MODULES $VFS_MODULE $CFG_MODULE x11 xproto dbus-glib-1 libglade-2.0 xdamage xcomposite xrender])
5 by Neil J Patel
Initial Import
174
AC_SUBST(AWN_CFLAGS)
175
AC_SUBST(AWN_LIBS)
176
132 by Mark Lee
configure.in: check for gdk_x11_display_broadcast_startup_message() (used by eggdesktopfile)
177
if test "$use_egg" = "yes"; then
178
	old_LIBS="$LIBS"
179
	LIBS="$LIBS $AWN_LIBS"
180
	AC_CHECK_FUNCS(gdk_x11_display_broadcast_startup_message)
181
	LIBS="$old_LIBS"
182
fi
110 by Mark Lee
configure.in, libawn/awn-vfs.[ch]: VFS build fixes
183
AC_CHECK_LIB(m, sin)
184
5 by Neil J Patel
Initial Import
185
dnl ==============================================
186
dnl DBUS
187
dnl ==============================================
188
189
DBUS_GLIB_BIN="`$PKG_CONFIG --variable=exec_prefix dbus-glib-1`/bin"
190
AC_SUBST(DBUS_GLIB_BIN)
191
192
dnl ==============================================
193
dnl GConf
194
dnl ==============================================
195
AM_GCONF_SOURCE_2
196
197
AC_OUTPUT([
198
Makefile
10.1.38 by Neil J Patel
2007-08-18 Neil J. Patel <njpatel@gmail.com>
199
awn-manager/Makefile
118 by Mark Lee
2007-12-28 Mark Lee <avant-wn@lazymalevolence.com>
200
bindings/Makefile
201
bindings/python/Makefile
202
bindings/vala/Makefile
82 by Mark Lee
2007-11-19 Mark Lee <avant-wn@lazymalevolence.com>
203
doc/Makefile
204
doc/reference/Makefile
5 by Neil J Patel
Initial Import
205
libawn/Makefile
60 by Mark Lee
2007-10-15 Mark Lee <avant-wn@lazymalevolence.com>
206
libawn/egg/Makefile
5 by Neil J Patel
Initial Import
207
src/Makefile
208
awn-applet-activation/Makefile
209
applets/Makefile
210
data/Makefile
211
data/active/Makefile
212
po/Makefile.in
75 by Mark Lee
Fix build (fix handling of the test subdirectory)
213
test/Makefile
5 by Neil J Patel
Initial Import
214
awn.pc
215
])