1dnl
2dnl This file was autogenerated from "configure.ac.in".
3dnl Edit that file instead!
4dnl
5
6dnl
7dnl Copyright (c) 2004 - 2020 The Xfce development team
8dnl
9dnl 2005-2007 Jasper Huijsmans <jasper@xfce.org>
10dnl 2006-2008 Nick Schermer <nick@xfce.org>
11dnl
12
13dnl ***************************
14dnl *** Version information ***
15dnl ***************************
16m4_define([libxfce4panel_verinfo], [4:0:0]) dnl current:revision:age
17m4_define([libxfce4panel_version_api], [2.0])
18m4_define([xfce4_panel_config_version], [2])
19m4_define([xfce4_panel_version_major], [4])
20m4_define([xfce4_panel_version_minor], [16])
21m4_define([xfce4_panel_version_micro], [3])
22m4_define([xfce4_panel_version_nano],  []) dnl leave this empty to have no nano version
23m4_define([xfce4_panel_version_build], [1a7ed33f])
24m4_define([xfce4_panel_version_tag], [])
25m4_define([xfce4_panel_version], [xfce4_panel_version_major().xfce4_panel_version_minor().xfce4_panel_version_micro()ifelse(xfce4_panel_version_nano(), [], [], [.xfce4_panel_version_nano()])ifelse(xfce4_panel_version_tag(), [git], [xfce4_panel_version_tag()-xfce4_panel_version_build()], [xfce4_panel_version_tag()])])
26
27dnl *******************************************
28dnl *** Debugging support for GIT snapshots ***
29dnl *******************************************
30m4_define([panel_debug_default], [ifelse(xfce4_panel_version_tag(), [git], [yes], [minimum])])
31
32dnl ***************************
33dnl *** Initialize autoconf ***
34dnl ***************************
35AC_COPYRIGHT([Copyright (c) 2002 - 2020
36        The Xfce development team. All rights reserved.
37
38Written for Xfce by Jasper Huijsmans <jasper@xfce.org>
39and Nick Schermer <nick@xfce.org>.])
40AC_INIT([xfce4-panel],[xfce4_panel_version],[http://bugzilla.xfce.org/],[xfce4-panel])
41AC_PREREQ([2.69])
42AC_REVISION([xfce4_panel_version_build])
43
44dnl ***************************
45dnl *** Initialize automake ***
46dnl ***************************
47AC_CONFIG_HEADERS([config.h])
48AM_INIT_AUTOMAKE([1.8 no-dist-gzip dist-bzip2 tar-ustar foreign])
49AM_MAINTAINER_MODE()
50AC_CONFIG_MACRO_DIRS([m4])
51m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
52
53dnl ******************************
54dnl *** Set helper path prefix ***
55dnl ******************************
56AC_ARG_WITH([helper-path-prefix],
57            [AC_HELP_STRING([--with-helper-path-prefix=PATH],
58                            [Path prefix under which helper executables will be installed (default: $libdir)])],
59            [HELPER_PATH_PREFIX="$withval"],
60            [HELPER_PATH_PREFIX="$libdir"])
61AC_SUBST([HELPER_PATH_PREFIX])
62
63dnl *******************************
64dnl *** Check for UNIX variants ***
65dnl *******************************
66AC_USE_SYSTEM_EXTENSIONS
67
68dnl ********************************
69dnl *** Check for basic programs ***
70dnl ********************************
71AC_PROG_CC()
72AM_PROG_CC_C_O()
73LT_PATH_LD([])
74AC_PROG_INSTALL()
75IT_PROG_INTLTOOL([0.35.0])
76AC_CHECK_PROGS([PERL], [perl5 perl])
77m4_ifdef([AC_PROG_SED], [AC_PROG_SED], [AC_CHECK_PROG(SED, sed, sed)])
78
79dnl **************************
80dnl *** Initialize libtool ***
81dnl **************************
82LT_PREREQ([2.2.6])
83LT_INIT([disable-static])
84
85dnl **************************************
86dnl *** Substitute version information ***
87dnl **************************************
88LIBXFCE4PANEL_VERINFO=libxfce4panel_verinfo()
89AC_SUBST([LIBXFCE4PANEL_VERINFO])
90
91dnl **************************
92dnl *** Substitute version ***
93dnl **************************
94LIBXFCE4PANEL_VERSION=xfce4_panel_version()
95LIBXFCE4PANEL_VERSION_API=libxfce4panel_version_api()
96LIBXFCE4PANEL_VERSION_MAJOR=xfce4_panel_version_major()
97LIBXFCE4PANEL_VERSION_MINOR=xfce4_panel_version_minor()
98LIBXFCE4PANEL_VERSION_MICRO=xfce4_panel_version_micro()
99AC_DEFINE([LIBXFCE4PANEL_VERSION_API], "libxfce4panel_version_api()", [libxfce4panel api version])
100AC_SUBST([LIBXFCE4PANEL_VERSION])
101AC_SUBST([LIBXFCE4PANEL_VERSION_API])
102AC_SUBST([LIBXFCE4PANEL_VERSION_MAJOR])
103AC_SUBST([LIBXFCE4PANEL_VERSION_MINOR])
104AC_SUBST([LIBXFCE4PANEL_VERSION_MICRO])
105
106dnl *********************************
107dnl *** Substitute config version ***
108dnl *********************************
109XFCE4_PANEL_CONFIG_VERSION=xfce4_panel_config_version()
110AC_DEFINE([XFCE4_PANEL_CONFIG_VERSION], xfce4_panel_config_version(), [config migration version])
111AC_SUBST([XFCE4_PANEL_CONFIG_VERSION])
112
113dnl **********************************
114dnl *** Check for standard headers ***
115dnl **********************************
116AC_HEADER_STDC()
117AC_CHECK_HEADERS([stdlib.h unistd.h locale.h stdio.h errno.h time.h string.h \
118                  math.h sys/types.h sys/wait.h memory.h signal.h sys/prctl.h \
119                  libintl.h])
120AC_CHECK_FUNCS([bind_textdomain_codeset])
121
122dnl ******************************
123dnl *** Check for i18n support ***
124dnl ******************************
125XDT_I18N([])
126
127dnl *******************************
128dnl *** Check for X11 installed ***
129dnl *******************************
130XDT_CHECK_LIBX11_REQUIRE()
131
132dnl ***********************************
133dnl *** Check for gdbus-codegen ***
134dnl ***********************************
135AC_ARG_VAR([GDBUS_CODEGEN], [D-Bus code and documentation generator from XML D-Bus interface definitions])
136AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen], [no])
137if test x"$GDBUS_CODEGEN" = x"no"; then
138  AC_MSG_ERROR([could not find gdbus-codegen in \$PATH. You can run
139  ./configure GDBUS_CODEGEN=/path/to/gdbus-codegen to define
140  a custom location for it.])
141fi
142
143
144dnl ***********************************
145dnl *** Check for required packages ***
146dnl ***********************************
147XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.15.6])
148XDT_CHECK_PACKAGE([GARCON], [garcon-1], [0.5.0])
149XDT_CHECK_PACKAGE([GARCON_GTK3], [garcon-gtk3-1], [0.5.0])
150XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.15.8])
151XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.13.2])
152XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
153XDT_CHECK_PACKAGE([EXO], [exo-2], [0.11.2])
154XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.50.0])
155XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.50.0])
156PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.50.0])
157XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.50.0])
158XDT_CHECK_PACKAGE([CAIRO], [cairo], [1.0.0])
159XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-3.0], [3.0])
160
161dnl *********************************************
162dnl *** Optional DBUSMENU for StatusNotifiers ***
163dnl *********************************************
164XDT_CHECK_OPTIONAL_PACKAGE([DBUSMENU], [dbusmenu-gtk3-0.4],
165                           [16.04.0], [dbusmenu-gtk3], [dbusmenu features])
166
167dnl **********************************
168dnl *** Optional GIO UNIX features ***
169dnl **********************************
170XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0],
171                           [2.50.0], [gio-unix], [GIO UNIX features])
172
173dnl ***************************************
174dnl *** Check for gobject-introspection ***
175dnl ***************************************
176GOBJECT_INTROSPECTION_CHECK([1.30.0])
177
178dnl *************************
179dnl *** Check for vapigen ***
180dnl *************************
181VAPIGEN_CHECK()
182
183dnl *************************
184dnl *** Check for gtk-doc ***
185dnl *************************
186GTK_DOC_CHECK([1.9])
187
188dnl ***********************************
189dnl *** Check for debugging support ***
190dnl ***********************************
191XDT_FEATURE_DEBUG([panel_debug_default])
192
193dnl **************************************
194dnl *** Check for linker optimizations ***
195dnl **************************************
196XDT_FEATURE_LINKER_OPTS()
197
198dnl ****************************************
199dnl *** Check for ELF visibility support ***
200dnl ****************************************
201AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Do not use ELF visibility attributes]), [], [enable_visibility=yes])
202have_gnuc_visibility=no
203if test x"$enable_visibility" != x"no"; then
204  dnl Check whether the compiler supports the visibility attribute
205  save_CFLAGS="$CFLAGS"
206  CFLAGS="$CFLAGS -Wall -Werror"
207  AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
208  AC_COMPILE_IFELSE([AC_LANG_SOURCE(
209  [
210    void test_default (void);
211    void test_hidden (void);
212
213    void __attribute__ ((visibility("default"))) test_default (void) {}
214    void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
215
216    int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
217  ])],
218  [
219    have_gnuc_visibility=yes
220    AC_MSG_RESULT([yes])
221  ],
222  [
223    AC_MSG_RESULT([no])
224  ])
225  CFLAGS="$save_CFLAGS"
226fi
227if test x"$have_gnuc_visibility" = x"yes"; then
228  CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
229fi
230AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])
231
232dnl *************************************
233dnl *** Compensate for broken gtk-doc ***
234dnl *************************************
235XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
236AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
237
238dnl *********************************
239dnl *** Substitute platform flags ***
240dnl *********************************
241AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
242AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
243AC_SUBST([PLATFORM_CPPFLAGS])
244AC_MSG_CHECKING([PLATFORM_CFLAGS])
245AC_MSG_RESULT([$PLATFORM_CFLAGS])
246AC_SUBST([PLATFORM_CFLAGS])
247AC_MSG_CHECKING([PLATFORM_LDFLAGS])
248AC_MSG_RESULT([$PLATFORM_LDFLAGS])
249AC_SUBST([PLATFORM_LDFLAGS])
250
251AC_CONFIG_FILES([
252Makefile
253common/Makefile
254docs/Makefile
255docs/reference/Makefile
256icons/Makefile
257icons/16x16/Makefile
258icons/24x24/Makefile
259icons/32x32/Makefile
260icons/48x48/Makefile
261icons/128x128/Makefile
262icons/scalable/Makefile
263libxfce4panel/Makefile
264libxfce4panel/libxfce4panel-2.0.pc
265libxfce4panel/libxfce4panel-config.h
266migrate/Makefile
267migrate/default.xml
268panel/Makefile
269wrapper/Makefile
270plugins/Makefile
271plugins/actions/Makefile
272plugins/actions/actions.desktop.in
273plugins/applicationsmenu/Makefile
274plugins/applicationsmenu/applicationsmenu.desktop.in
275plugins/clock/Makefile
276plugins/clock/clock.desktop.in
277plugins/directorymenu/Makefile
278plugins/directorymenu/directorymenu.desktop.in
279plugins/launcher/Makefile
280plugins/launcher/launcher.desktop.in
281plugins/pager/Makefile
282plugins/pager/pager.desktop.in
283plugins/separator/Makefile
284plugins/separator/separator.desktop.in
285plugins/showdesktop/Makefile
286plugins/showdesktop/showdesktop.desktop.in
287plugins/systray/Makefile
288plugins/systray/systray.desktop.in
289plugins/tasklist/Makefile
290plugins/tasklist/tasklist.desktop.in
291plugins/windowmenu/Makefile
292plugins/windowmenu/windowmenu.desktop.in
293po/Makefile.in
294])
295AC_OUTPUT
296
297dnl ***************************
298dnl *** Print configuration ***
299dnl ***************************
300echo
301echo "Build Configuration:"
302echo
303echo "* Debug Support:          $enable_debug"
304echo "* GNU Visibility:         $have_gnuc_visibility"
305echo
306