source: trunk/third/gnome-panel/configure.in @ 21394

Revision 21394, 10.2 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21393, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(gnome-panel)
2AM_CONFIG_HEADER(config.h)
3AM_INIT_AUTOMAKE(gnome-panel, 2.8.3)
4
5dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
6AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
7
8# Before making a release, the LT_VERSION string should be modified.
9# The string is of the form C:R:A.
10# - If interfaces have been changed or added, but binary compatibility has
11#   been preserved, change to C+1:0:A+1
12# - If binary compatibility has been broken (eg removed or changed interfaces)
13#   change to C+1:0:0
14# - If the interface is the same as the previous version, change to C:R+1:A
15
16LIB_PANEL_APPLET_LT_VERSION=0:20:0
17AC_SUBST(LIB_PANEL_APPLET_LT_VERSION)
18
19AM_MAINTAINER_MODE
20
21AC_PROG_INTLTOOL([0.31])
22
23AC_ISC_POSIX
24AC_PROG_CC
25AC_STDC_HEADERS
26AC_ARG_PROGRAM
27AC_LIBTOOL_WIN32_DLL
28AM_PROG_LIBTOOL
29AC_PATH_PROGS(PATH_TO_XRDB, "xrdb")
30AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
31AC_PATH_PROG(GCONFTOOL, gconftool-2)
32
33AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
34if test x"$GDK_PIXBUF_CSOURCE" = xno; then
35  AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK])
36fi
37
38GNOME_COMPILE_WARNINGS(yes)
39
40AC_ARG_ENABLE(deprecations,
41              [AC_HELP_STRING([--enable-deprecations],
42                              [warn about deprecated usages [default=no]])],,
43              [enable_deprecations=no])
44
45if test "x$enable_deprecations" = "xyes"; then
46   DISABLE_DEPRECATED_CFLAGS="\
47-DG_DISABLE_DEPRECATED \
48-DGDK_DISABLE_DEPRECATED \
49-DGTK_DISABLE_DEPRECATED \
50-DGDK_PIXBUF_DISABLE_DEPRECATED \
51-DGNOME_DISABLE_DEPRECATED"
52   AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
53fi
54
55dnl If you add a version number here, you *must* add an AC_SUBST line for
56dnl it too, or it will never make it into the spec file!
57
58LIBGNOME_DESKTOP_REQUIRED=2.1.4
59GDK_PIXBUF_REQUIRED=2.1.0
60GTK_REQUIRED=2.3.2
61LIBGLADE_REQUIRED=2.3.0
62LIBGNOME_REQUIRED=2.1.1
63LIBGNOMEUI_REQUIRED=2.5.4
64LIBBONOBOUI_REQUIRED=2.1.1
65ORBIT_REQUIRED=2.4.0
66GNOME_VFS_REQUIRED=2.3.0
67GNOME_VFS_MODULE_REQUIRED=2.1.3
68LIBWNCK_REQUIRED=2.7.91
69GCONF_REQUIRED=2.6.1
70
71AC_SUBST(GTK_REQUIRED)
72AC_SUBST(GDK_PIXBUF_REQUIRED)
73AC_SUBST(LIBGLADE_REQUIRED)
74AC_SUBST(LIBGNOME_REQUIRED)
75AC_SUBST(ORBIT_REQUIRED)
76AC_SUBST(GNOME_VFS_REQUIRED)
77AC_SUBST(LIBWNCK_REQUIRED)
78AC_SUBST(GCONF_REQUIRED)
79
80dnl pkg-config dependency checks
81
82PKG_CHECK_MODULES(PANEL, ORBit-2.0 >= $ORBIT_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-desktop-2.0 >= $LIBGNOME_DESKTOP_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED gnome-vfs-module-2.0 >= $GNOME_VFS_MODULE_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED gconf-2.0 >= $GCONF_REQUIRED)
83AC_SUBST(PANEL_CFLAGS)
84AC_SUBST(PANEL_LIBS)
85
86PKG_CHECK_MODULES(PANEL_SCREENSHOT, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED)
87AC_SUBST(PANEL_SCREENSHOT_CFLAGS)
88AC_SUBST(PANEL_SCREENSHOT_LIBS)
89
90PKG_CHECK_MODULES(LIBPANEL_APPLET, ORBit-2.0 >= $ORBIT_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED libbonoboui-2.0 >= $LIBBONOBOUI_REQUIRED)
91AC_SUBST(LIBPANEL_APPLET_CFLAGS)
92AC_SUBST(LIBPANEL_APPLET_LIBS)
93
94PKG_CHECK_MODULES(WNCKLET, ORBit-2.0 >= $ORBIT_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED gnome-desktop-2.0 >= $LIBGNOME_DESKTOP_REQUIRED)
95AC_SUBST(WNCKLET_CFLAGS)
96AC_SUBST(WNCKLET_LIBS)
97
98AC_ARG_ENABLE(eds,
99        AC_HELP_STRING([--enable-eds],
100                [Enable evolution-data-server dependencies @<:@default=auto@:>@]
101        ),,enable_eds=auto)
102LIBECAL_REQUIREMENT=
103if test "x$enable_eds" = "xyes"; then
104  LIBECAL_REQUIREMENT="libecal-1.0 >= 0.0.97"
105else
106  if test "x$enable_eds" != "xno"; then
107    AC_MSG_CHECKING(for evolution-data-server)
108    if $PKG_CONFIG --exists libecal-1.0; then
109       AC_MSG_RESULT(yes)
110       LIBECAL_REQUIREMENT="libecal-1.0 >= 0.0.97"
111    else
112       AC_MSG_RESULT(no)
113    fi
114  fi
115fi
116if test -n "$LIBECAL_REQUIREMENT"; then
117  AC_DEFINE([HAVE_LIBECAL], 1,
118            [Defined when evolution-data-server libecal-1.0 is detected])
119fi
120AM_CONDITIONAL(HAVE_LIBECAL, test -n "$LIBECAL_REQUIREMENT")
121
122PKG_CHECK_MODULES(CLOCK, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED $LIBECAL_REQUIREMENT)
123AC_SUBST(CLOCK_CFLAGS)
124AC_SUBST(CLOCK_LIBS)
125
126PKG_CHECK_MODULES(MAILCHECK, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
127AC_SUBST(MAILCHECK_CFLAGS)
128AC_SUBST(MAILCHECK_LIBS)
129
130PKG_CHECK_MODULES(FISH, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED)
131AC_SUBST(FISH_CFLAGS)
132AC_SUBST(FISH_LIBS)
133
134dnl shape extenstion for gnome-panel-screenshot
135savecppflags=$CPPFLAGS
136CPPFLAGS="$CPPFLAGS $X_CFLAGS"
137AC_CHECK_HEADERS(X11/extensions/shape.h, XSHAPE_LIBS="-lXext")
138AC_SUBST(XSHAPE_LIBS)
139CPPFLAGS=$savecppflags
140
141# For egg-recent-files
142AC_CHECK_FUNCS(lockf)
143
144dnl X development libraries check
145
146#
147# If Pango included the shared library dependencies from X11 in
148# the pkg-config output, then we use that (to avoid duplicates).
149# but if they were omitted to avoid binary compatibility problems
150# then we need to repeat the checks.
151#
152if $PKG_CONFIG --exists pangoxft ; then
153  PANGO_PACKAGES="pangox pangoxft"
154else
155  PANGO_PACKAGES="pangox"
156fi
157
158x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
159case x_libs in
160  *-lX11*) pango_omitted_x_deps=no ;;
161  *)       pango_omitted_x_deps=yes ;;
162esac
163
164if test $pango_omitted_x_deps = yes ; then
165  AC_PATH_XTRA
166
167  if test x$no_x = xyes ; then
168    AC_MSG_ERROR([X development libraries not found])
169  else
170    X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
171  fi
172fi
173
174AC_SUBST(X_LIBS)
175
176dnl IDL directories
177
178ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
179AC_SUBST(ORBIT_IDL)
180
181BONOBO_IDLDIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
182AC_SUBST(BONOBO_IDLDIR)
183
184BONOBO_ACT_IDLDIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
185AC_SUBST(BONOBO_ACT_IDLDIR)
186
187dnl  Language Support
188
189GETTEXT_PACKAGE=gnome-panel-2.0
190AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
191AC_SUBST(GETTEXT_PACKAGE)
192
193ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id it ja ko li lt lv mi mk ml mn mr ms nb nl nn no nso or pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta th tr uk vi wa yi zh_CN zh_TW zu"
194AM_GLIB_GNU_GETTEXT
195
196
197dnl Check for libpng
198
199PNG_LIBS=
200AC_CHECK_LIB(png, png_init_io, [
201             PNG_LIBS="-lpng"],[
202             AC_MSG_ERROR(libpng is required for gnome-panel)], -lm -lz)
203AC_SUBST(PNG_LIBS)
204
205
206dnl Place to look for KDE menus
207
208AC_ARG_WITH(kde-datadir, [  --with-kde-datadir=DIR  Location of KDE data])
209
210if test "x$with_kde_datadir" = x ; then
211  kde_datadir=/usr/share
212else
213  kde_datadir=$with_kde_datadir
214fi
215
216AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk")
217AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons")
218AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini")
219
220
221dnl Place to look for KDE docs
222
223AC_ARG_WITH(kde-docdir, [  --with-kde-docdir=DIR   Location of KDE documentation])
224
225if test "x$with_kde_docdir" = x ; then
226  kde_docdir=/usr/doc/kde
227else
228  kde_docdir=$with_kde_docdir
229fi
230
231AC_DEFINE_UNQUOTED(KDE_DOCDIR, "$kde_docdir")
232
233
234dnl gtk-doc stuff
235
236GTK_DOC_CHECK([1.0])
237
238dnl scrollkeeper checks
239
240AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
241if test x$SCROLLKEEPER_CONFIG = xno; then
242  AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
243fi
244
245AM_GCONF_SOURCE_2
246
247dnl Don't use AC_PROG_AWK since we need the full pathname.
248AC_PATH_PROGS(AWK, mawk gawk nawk awk, )
249AC_PATH_PROGS(PERL, perl5 perl)
250
251dnl define a MAINT-like variable REBUILD which is set if Perl
252dnl and awk are found, so autogenerated sources can be rebuilt
253AC_ARG_ENABLE(rebuilds, [  --disable-rebuilds      disable all source autogeneration rules],,enable_rebuilds=yes)
254REBUILD=\#
255if test "x$enable_rebuilds" = "xyes" && \
256     test -n "$PERL" && \
257     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
258     test -n "$AWK" ; then
259  REBUILD=
260fi
261AC_SUBST(REBUILD)
262
263AC_OUTPUT([
264Makefile
265gnome-panel.spec
266idl/Makefile
267icons/Makefile
268gnome-panel/Makefile
269libpanel-applet/libpanelapplet-2.0.pc
270libpanel-applet/libpanelapplet-2.0-uninstalled.pc
271libpanel-applet/Makefile
272po/Makefile.in
273applets/Makefile
274applets/clock/Makefile
275applets/clock/cut-n-paste/Makefile
276applets/fish/Makefile
277applets/notification_area/Makefile
278applets/wncklet/Makefile
279applets/wncklet/eel/Makefile
280doc/Makefile
281doc/reference/Makefile
282doc/reference/panel-applet/Makefile
283help/Makefile
284help/C/Makefile
285help/C/fish/Makefile
286help/C/clock/Makefile
287help/C/window-list/Makefile
288help/C/workspace-switcher/Makefile
289help/ja/Makefile
290help/ja/fish/Makefile
291help/ja/clock/Makefile
292help/ja/window-list/Makefile
293help/ja/workspace-switcher/Makefile
294help/de/Makefile
295help/de/fish/Makefile
296help/de/clock/Makefile
297help/de/window-list/Makefile
298help/de/workspace-switcher/Makefile
299help/es/Makefile
300help/es/fish/Makefile
301help/es/clock/Makefile
302help/es/window-list/Makefile
303help/es/workspace-switcher/Makefile
304help/fr/Makefile
305help/fr/fish/Makefile
306help/fr/clock/Makefile
307help/fr/window-list/Makefile
308help/fr/workspace-switcher/Makefile
309help/it/Makefile
310help/it/fish/Makefile
311help/it/clock/Makefile
312help/it/window-list/Makefile
313help/it/workspace-switcher/Makefile
314help/sv/Makefile
315help/sv/fish/Makefile
316help/sv/clock/Makefile
317help/sv/window-list/Makefile
318help/sv/workspace-switcher/Makefile
319help/ko/Makefile
320help/ko/fish/Makefile
321help/ko/clock/Makefile
322help/ko/window-list/Makefile
323help/ko/workspace-switcher/Makefile
324help/zh_CN/Makefile
325help/zh_CN/fish/Makefile
326help/zh_CN/clock/Makefile
327help/zh_CN/window-list/Makefile
328help/zh_CN/workspace-switcher/Makefile
329help/zh_TW/Makefile
330help/zh_TW/fish/Makefile
331help/zh_TW/clock/Makefile
332help/zh_TW/window-list/Makefile
333help/zh_TW/workspace-switcher/Makefile
334man/Makefile
335])
336
337if echo foo | xgettext --from-code=UTF-8 -LC -o - - 2>/dev/null ; then
338:;
339else
340echo "Warning: Your version of gettext does not support --from-code."
341echo "         This will cause translation of some strings in non US-English"
342echo "         locales to fail. For full support please upgrade to GNU"
343echo "         gettext 0.12 or later."
344echo
345fi
Note: See TracBrowser for help on using the repository browser.