1
AC_INIT([gnome-panel], [3.6.2],
2
[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-panel])
3
AM_CONFIG_HEADER(config.h)
4
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz tar-ustar -Wno-portability])
5
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7
AC_CONFIG_MACRO_DIR([m4])
9
# Before making a release, the LT_VERSION string should be modified.
10
# The string is of the form C:R:A.
11
# - If interfaces have been changed or added, but binary compatibility has
12
# been preserved, change to C+1:0:A+1
13
# - If binary compatibility has been broken (eg removed or changed interfaces)
15
# - If the interface is the same as the previous version, change to C:R+1:A
17
LIBPANEL_APPLET_API_VERSION=4.0
18
AC_SUBST([LIBPANEL_APPLET_API_VERSION],[$LIBPANEL_APPLET_API_VERSION])
20
LIB_PANEL_APPLET_LT_VERSION=1:1:1
21
AC_SUBST(LIB_PANEL_APPLET_LT_VERSION)
23
GNOME_MAINTAINER_MODE_DEFINES
25
AC_ARG_ENABLE([documentation],
26
AS_HELP_STRING([--enable-documentation], [enable man pages and HTML]),
27
[], [enable_documentation=yes])
28
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
31
LT_INIT([dlopen disable-static])
33
IT_PROG_INTLTOOL([0.40.6])
38
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
39
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
40
AC_PATH_PROG(GCONFTOOL, gconftool-2)
42
GNOME_COMPILE_WARNINGS([maximum])
44
# Check for introspection
45
GOBJECT_INTROSPECTION_CHECK([0.9.5])
49
m4_pattern_allow([AM_V_GEN])dnl Make autoconf not complain about the rule below
50
PANEL_INTLTOOL_PANEL_APPLET_RULE='%.panel-applet: %.panel-applet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(AM_V_GEN) LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
51
AC_SUBST([PANEL_INTLTOOL_PANEL_APPLET_RULE])
53
AC_ARG_ENABLE(deprecation_flags,
54
[AC_HELP_STRING([--enable-deprecation-flags],
55
[use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],,
56
[enable_deprecation_flags=no])
58
if test "x$enable_deprecation_flags" = "xyes"; then
59
DISABLE_DEPRECATED_CFLAGS=$DISABLE_DEPRECATED
60
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
63
AC_CHECK_HEADERS(crt_externs.h)
64
AC_CHECK_FUNCS(_NSGetEnviron)
66
LIBGNOME_DESKTOP_REQUIRED=2.91.0
67
GDK_PIXBUF_REQUIRED=2.25.2
71
LIBWNCK_REQUIRED=2.91.0
73
LIBGNOME_MENU_REQUIRED=3.1.4
74
TELEPATHY_GLIB_REQUIRED=0.14.0
75
LIBECAL_REQUIRED=3.5.3
76
LIBEDATASERVER_REQUIRED=3.5.3
78
GWEATHER_REQUIRED=3.5.1
79
DBUS_GLIB_REQUIRED=0.80
82
dnl pkg-config dependency checks
84
PKG_CHECK_MODULES(EGG_SMCLIENT, ice sm gtk+-3.0)
86
PKG_CHECK_MODULES(PANEL, gmodule-2.0 >= $GLIB_REQUIRED
87
gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED
88
pango >= $PANGO_REQUIRED
89
gtk+-3.0 >= $GTK_REQUIRED
90
cairo-xlib glib-2.0 >= $GLIB_REQUIRED
91
gmodule-2.0 >= $GLIB_REQUIRED
92
gio-2.0 >= $GLIB_REQUIRED
93
gio-unix-2.0 >= $GLIB_REQUIRED
94
gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
95
gconf-2.0 >= $GCONF_REQUIRED
96
libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
97
dconf >= $DCONF_REQUIRED)
98
AC_SUBST(PANEL_CFLAGS)
101
AC_ARG_ENABLE(telepathy_glib, AS_HELP_STRING([--enable-telepathy-glib],[Enable telepathy-glib support (auto)]),enable_telepathy_glib=$enableval,enable_telepathy_glib=auto)
102
if test "x$enable_telepathy_glib" = "xno" ; then
103
HAVE_TELEPATHY_GLIB=no
105
PKG_CHECK_MODULES(TELEPATHY_GLIB, telepathy-glib >= $TELEPATHY_GLIB_REQUIRED, HAVE_TELEPATHY_GLIB=yes, HAVE_TELEPATHY_GLIB=no)
107
if test "x$HAVE_TELEPATHY_GLIB" = "xyes" ; then
108
AC_DEFINE(HAVE_TELEPATHY_GLIB, 1, [Defined if telepathy-glib support is enabled])
111
PKG_CHECK_MODULES(LIBPANEL_APPLET, gtk+-3.0 >= $GTK_REQUIRED cairo-xlib cairo-gobject gconf-2.0 >= $GCONF_REQUIRED gio-2.0 >= $GLIB_REQUIRED gio-unix-2.0 >= $GLIB_REQUIRED)
112
AC_SUBST(LIBPANEL_APPLET_CFLAGS)
113
AC_SUBST(LIBPANEL_APPLET_LIBS)
115
PKG_CHECK_MODULES(FISH, gtk+-3.0 >= $GTK_REQUIRED cairo >= $CAIRO_REQUIRED)
116
AC_SUBST(FISH_CFLAGS)
119
PKG_CHECK_MODULES(NOTIFICATION_AREA, gtk+-3.0 >= $GTK_REQUIRED)
120
AC_SUBST(NOTIFICATION_AREA_CFLAGS)
121
AC_SUBST(NOTIFICATION_AREA_LIBS)
123
PKG_CHECK_MODULES(WNCKLET, gtk+-3.0 >= $GTK_REQUIRED libwnck-3.0 >= $LIBWNCK_REQUIRED)
124
AC_SUBST(WNCKLET_CFLAGS)
125
AC_SUBST(WNCKLET_LIBS)
127
AC_CHECK_HEADERS(langinfo.h)
128
AC_CHECK_FUNCS(nl_langinfo)
130
PKG_CHECK_MODULES(TZ, gio-2.0 >= $GLIB_REQUIRED)
134
PKG_CHECK_MODULES(CLOCK, pango >= $PANGO_REQUIRED gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED librsvg-2.0 gweather-3.0 >= $GWEATHER_REQUIRED gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED)
135
AC_SUBST(CLOCK_CFLAGS)
138
# Check whether to enable e-d-s support for clock applet
139
AC_MSG_CHECKING([whether to enable evolution-data-server support])
141
AS_HELP_STRING([--enable-eds], [Whether to enable evolution-data-server support @<:@default=auto@:>@]),
142
[], [enable_eds=auto])
143
AC_MSG_RESULT([$enable_eds])
145
if test "$enable_eds" != "no"; then
146
PKG_CHECK_MODULES(CLOCK_EDS,[
147
libecal-1.2 >= $LIBECAL_REQUIRED
148
libedataserver-1.2 >= $LIBEDATASERVER_REQUIRED
149
], [have_eds=yes], [have_eds=no])
151
if test "$enable_eds" = "yes" -a "$have_eds" = "no"; then
152
AC_MSG_ERROR([evolution-data-server support was requested but required dependencies were not found: $CLOCK_EDS_PKG_ERRORS])
153
elif test "$have_eds" = "yes"; then
155
AC_DEFINE([HAVE_EDS], 1, [Define to enable evolution-data-server support])
156
CLOCK_EDS_ICONDIR=`$PKG_CONFIG --variable=datadir evolution-data-server-1.2`/pixmaps/evolution-data-server
162
AM_CONDITIONAL(ENABLE_EDS, test "$enable_eds" = "yes")
163
AC_SUBST(CLOCK_EDS_ICONDIR)
166
NETWORK_MANAGER_REQUIRED=0.6
168
AC_ARG_ENABLE(network_manager, AS_HELP_STRING([--enable-network-manager],[Enable NetworkManager support (auto)]),enable_network_manager=$enableval,enable_network_manager=auto)
169
if test "x$enable_network_manager" = "xno" ; then
170
HAVE_NETWORK_MANAGER=no
172
PKG_CHECK_MODULES(NETWORK_MANAGER, NetworkManager >= $NETWORK_MANAGER_REQUIRED, HAVE_NETWORK_MANAGER=yes, HAVE_NETWORK_MANAGER=no)
174
if test "x$HAVE_NETWORK_MANAGER" = "xyes" ; then
175
AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Defined if NetworkManager support is enabled])
178
# Make it possible to compile the applets in-process
179
PANEL_INPROCESS_NONE=
181
PANEL_INPROCESS_APPLETS=
182
AC_ARG_WITH(in-process-applets,
183
AC_HELP_STRING([--with-in-process-applets=APPLETS],
184
[comma-separated list of applets to compile in-process (possible values: none, clock, fish, notification-area, wncklet, all) @<:@default=none@:>@]),
185
[for i in `echo $withval | tr , ' '`; do
186
if test $i = "none"; then
187
PANEL_INPROCESS_NONE=1
188
else if test $i = "all"; then
189
PANEL_INPROCESS_ALL=1
190
else if test $i = "clock"; then
191
PANEL_INPROCESS_APPLETS="$PANEL_INPROCESS_APPLETS $i"
192
else if test $i = "fish"; then
193
PANEL_INPROCESS_APPLETS="$PANEL_INPROCESS_APPLETS $i"
194
else if test $i = "notification-area"; then
195
PANEL_INPROCESS_APPLETS="$PANEL_INPROCESS_APPLETS $i"
196
else if test $i = "wncklet"; then
197
PANEL_INPROCESS_APPLETS="$PANEL_INPROCESS_APPLETS $i"
199
echo "applet $i not recognized, ignoring..."
200
fi; fi; fi; fi; fi; fi
204
if test -n "$PANEL_INPROCESS_ALL"; then
205
PANEL_INPROCESS_APPLETS="clock fish notification-area wncklet"
207
if test -n "$PANEL_INPROCESS_NONE"; then
208
PANEL_INPROCESS_APPLETS=""
210
for i in $PANEL_INPROCESS_APPLETS; do
211
if test $i = "clock"; then
212
CLOCK_COMPILE_INPROCESS=1
213
AC_DEFINE([CLOCK_INPROCESS], 1,
214
[Defined when compiling the clock applet in-process])
215
else if test $i = "fish"; then
216
FISH_COMPILE_INPROCESS=1
217
AC_DEFINE([FISH_INPROCESS], 1,
218
[Defined when compiling the fish applet in-process])
219
else if test $i = "notification-area"; then
220
NOTIFICATION_AREA_COMPILE_INPROCESS=1
221
AC_DEFINE([NOTIFICATION_AREA_INPROCESS], 1,
222
[Defined when compiling the notification-area applet in-process])
223
else if test $i = "wncklet"; then
224
WNCKLET_COMPILE_INPROCESS=1
225
AC_DEFINE([WNCKLET_INPROCESS], 1,
226
[Defined when compiling the wncklet applet in-process])
229
if test "x$PANEL_INPROCESS_APPLETS" = "x"; then
230
PANEL_INPROCESS_APPLETS="(none)"
233
AM_CONDITIONAL(CLOCK_INPROCESS, test -n "$CLOCK_COMPILE_INPROCESS")
234
AM_CONDITIONAL(FISH_INPROCESS, test -n "$FISH_COMPILE_INPROCESS")
235
AM_CONDITIONAL(NOTIFICATION_AREA_INPROCESS, test -n "$NOTIFICATION_AREA_COMPILE_INPROCESS")
236
AM_CONDITIONAL(WNCKLET_INPROCESS, test -n "$WNCKLET_COMPILE_INPROCESS")
239
gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE
241
dnl X development libraries check
243
PKG_CHECK_MODULES(X, x11 xau, :, [
244
# pkg-config modules not found (only present since X11R7 aka Xorg); use
245
# old-style detection
248
if test x$no_x = xyes ; then
249
AC_MSG_ERROR([X development libraries not found])
252
gp_save_cflags="$CFLAGS"
255
LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
256
AC_CHECK_LIB(X11, XFree,, AC_MSG_ERROR([libX11 not found]))
257
AC_CHECK_LIB(Xau, XauFileName,, AC_MSG_ERROR([libXau not found]))
258
CFLAGS="$gp_save_cflags"
261
X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXau $X_EXTRA_LIBS"
266
dnl X RANDR extension
268
PKG_CHECK_MODULES(XRANDR, xrandr >= 1.2.0, have_randr=yes, have_randr=no)
269
if test "x$have_randr" = "xyes"; then
270
AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library])
274
AC_SUBST([modulesdir],"\$(libdir)/gnome-panel/modules")
277
AC_SUBST([appletsdir],"\$(datadir)/gnome-panel/\$(LIBPANEL_APPLET_API_VERSION)/applets")
278
AC_SUBST([appletsdir_pkgconfig],"\${datadir}/gnome-panel/\${libpanel_applet_api_version}/applets")
282
GETTEXT_PACKAGE=gnome-panel-3.0
283
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define the gettext package to be used])
284
AC_SUBST(GETTEXT_PACKAGE)
302
AC_DEFINE(HAVE_SOLARIS, 1, [Define to 1])
314
data/scalable/Makefile
316
gnome-panel/libegg/Makefile
317
gnome-panel/libpanel-applet-private/Makefile
318
gnome-panel/libpanel-util/Makefile
319
gnome-panel/gnome-panel.desktop.in
320
libpanel-applet/Makefile
321
libpanel-applet/libpanelapplet-4.0.pc
322
libpanel-applet/libpanelapplet-4.0-uninstalled.pc
325
applets/clock/Makefile
326
applets/clock/pixmaps/Makefile
327
applets/fish/Makefile
328
applets/notification_area/Makefile
329
applets/wncklet/Makefile
331
doc/reference/Makefile
332
doc/reference/panel-applet/Makefile
341
if echo foo | xgettext --from-code=UTF-8 -LC -o - - 2>/dev/null ; then
344
echo "Warning: Your version of gettext does not support --from-code."
345
echo " This will cause translation of some strings in non US-English"
346
echo " locales to fail. For full support please upgrade to GNU"
347
echo " gettext 0.12 or later."
351
dnl ---------------------------------------------------------------------------
353
dnl ---------------------------------------------------------------------------
357
`echo gnome-panel $VERSION | sed "s/./=/g"`
360
exec_prefix: ${exec_prefix}
364
sysconfdir: ${sysconfdir}
365
localstatedir: ${localstatedir}
367
source code location: ${srcdir}
370
Maintainer mode: ${USE_MAINTAINER_MODE}
371
Use *_DISABLE_DEPRECATED: ${enable_deprecation_flags}
373
Bonobo applets support: ${HAVE_BONOBO}
374
Applets to build in-process: ${PANEL_INPROCESS_APPLETS}
375
Evolution-Data-Server support: ${enable_eds}
376
Telepathy-Glib support: ${HAVE_TELEPATHY_GLIB}
377
NetworkManager support: ${HAVE_NETWORK_MANAGER}
378
XRandr support: ${have_randr}
379
Build introspection support: ${found_introspection}
380
Build gtk-doc documentation: ${enable_gtk_doc}