~ubuntu-branches/debian/experimental/xfce4-panel/experimental

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Lionel Le Folgoc, Yves-Alexis Perez
  • Date: 2011-02-06 18:10:07 UTC
  • mfrom: (1.3.13 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110206181007-vpw5z3xnm3hdvybx
Tags: 4.8.1-1
[ Lionel Le Folgoc ]
* New upstream bugfix release.
* debian/control:
  - refreshed (b-)deps for this new major release
  - add myself to Uploaders
  - bump Standards-Version to 3.9.1.
* debian/NEWS: dropped, unneeded.
* debian/xfce4-panel.shlibs: refreshed, bump to (>= 4.7.2).
* debian/xfce4-panel.lintian-overrides: refreshed, new lib name.
* debian/xfce4-panel.preinst: added, handles removal of old conffiles.
* debian/xfce4-panel.postinst: explicitly set -e.
* debian/*.install: refreshed.
* debian/rules:
  - call dpkg-buildflags
  - dropped rc files mangling as they don't exist anymore
  - updated removal of *.{l,}a files.
  - drop overrides for dh_auto_{configure,clean}, obsolete.
* debian/xfce4-panel.{preinst,postinst,prerm}: use dpkg-maintscript-helper
  to remove pre-xfconf config files.
* Bugs fixed by 4.7.x/4.8.x series:
  - rgba support                                                  lp: #586012
  - disappearing menus                                             lp: #53897
  - xrandr support                               lp: #176174, Closes: #432914
  - Fails to reap children, creating zombies                      lp: #420187
  - DND of desktop-files on the panel to create new launchers Closes: #480380
* Bumped shlibs to >= 4.7.7, abi break for external plugins.

[ Yves-Alexis Perez ]
* New upstream development release
* debian/xfce4-panel.install:
  - install wrapper and migrate tools in xfce4-panel package
  - update plugins paths
* debian/rules:
  - update path when removing .a/.la files for plugins.
  - add hardening flags to {C,LD}FLAGS
* debian/control:
  - add build-dep on hardening-includes
  - update build-dep on garcon to 0.1.4.
* debian/copyright updated for new release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl $Id: configure.in.in 29577 2009-02-24 21:17:49Z stephan $
2
 
dnl
3
 
dnl Copyright (c) 2004-2006
4
 
dnl         The Xfce development team. All rights reserved.
5
 
dnl
6
 
dnl 2005-2007 Jasper Huijsmans <jasper@xfce.org>
7
 
dnl 2006-2007 Nick Schermer <nick@xfce.org>
8
 
dnl
9
 
 
10
 
dnl ***************************
11
 
dnl *** Version information ***
12
 
dnl ***************************
13
 
m4_define([libxfce4panel_verinfo], [2:2:1])
14
 
m4_define([xfce4_panel_version_major], [4])
15
 
m4_define([xfce4_panel_version_minor], [6])
16
 
m4_define([xfce4_panel_version_micro], [0])
17
 
m4_define([xfce4_panel_version_nano],  []) dnl leave this empty to have no nano version
18
 
m4_define([xfce4_panel_version_build], [r29579])
19
 
m4_define([xfce4_panel_version_tag],   [])
20
 
m4_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(), [svn], [xfce4_panel_version_tag()-xfce4_panel_version_build()], [xfce4_panel_version_tag()])])
21
 
 
22
 
dnl *******************************************
23
 
dnl *** Debugging support for SVN snapshots ***
24
 
dnl *******************************************
25
 
m4_define([panel_debug_default], [ifelse(xfce4_panel_version_tag(), [svn], [yes], [minimum])])
26
 
 
27
 
dnl ***************************
28
 
dnl *** Initialize autoconf ***
29
 
dnl ***************************
30
 
AC_COPYRIGHT([Copyright (c) 2002-2009
31
 
        The Xfce development team. All rights reserved.
32
 
 
33
 
Written for Xfce by Jasper Huijsmans <jasper@xfce.org>.])
34
 
AC_INIT([xfce4-panel], [xfce4_panel_version], [http://bugzilla.xfce.org/], [xfce4-panel])
35
 
AC_PREREQ([2.50])
36
 
AC_REVISION([$Id: configure.in.in 29577 2009-02-24 21:17:49Z stephan $])
37
 
 
38
 
dnl ***************************
39
 
dnl *** Initialize automake ***
40
 
dnl ***************************
41
 
AM_CONFIG_HEADER([config.h])
42
 
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
43
 
AM_MAINTAINER_MODE()
44
 
 
45
 
dnl *******************************
46
 
dnl *** Check for UNIX variants ***
47
 
dnl *******************************
48
 
AC_AIX()
49
 
AC_ISC_POSIX()
50
 
AC_MINIX()
51
 
AM_CONDITIONAL([HAVE_CYGWIN], [test "`uname | grep \"CYGWIN\"`" != ""])
52
 
 
53
 
dnl ********************************
54
 
dnl *** Check for basic programs ***
55
 
dnl ********************************
56
 
AC_PROG_CC()
57
 
AC_PROG_LD()
58
 
AC_PROG_INSTALL()
59
 
AC_PROG_INTLTOOL()
60
 
AC_CHECK_PROGS([PERL], [perl5 perl])
61
 
 
62
 
dnl **************************
63
 
dnl *** Initialize libtool ***
64
 
dnl **************************
65
 
AC_DISABLE_STATIC()
66
 
AC_PROG_LIBTOOL()
67
 
 
68
 
dnl ****************************
69
 
dnl *** Intltool-update hack ***
70
 
dnl ****************************
71
 
AC_CONFIG_COMMANDS([intltool-update],
72
 
    [(sed -e 's/^\("desktop.*".*\)/\1\n"rc(?:\\\\.in)+|"\./' intltool-update > intltool-update-tmp &&
73
 
      mv intltool-update-tmp intltool-update && chmod 755 intltool-update)])
74
 
 
75
 
dnl **************************************
76
 
dnl *** Substitute version information ***
77
 
dnl **************************************
78
 
LIBXFCE4PANEL_VERINFO=libxfce4panel_verinfo()
79
 
AC_SUBST([LIBXFCE4PANEL_VERINFO])
80
 
 
81
 
dnl **********************************
82
 
dnl *** Check for standard headers ***
83
 
dnl **********************************
84
 
AC_HEADER_STDC()
85
 
AC_CHECK_HEADERS([stdlib.h unistd.h locale.h stdio.h fcntl.h errno.h \
86
 
                  math.h signal.h stddef.h sys/wait.h  sys/stat.h \
87
 
                  sys/type.h sys/types.h sys/mman.h sys/wait.h time.h \
88
 
                  string.h features.h])
89
 
 
90
 
dnl ************************************
91
 
dnl *** Check for standard functions ***
92
 
dnl ************************************
93
 
AC_FUNC_MMAP()
94
 
AC_CHECK_FUNCS([sigaction localtime_r])
95
 
 
96
 
dnl ******************************
97
 
dnl *** Check for i18n support ***
98
 
dnl ******************************
99
 
XDT_I18N([am ar az be bg bn_IN ca cs da de dz el en_GB eo es es_MX et eu fa fi fr gl gu he hi hu hy id it ja ka ko ku lt lv mk mr ms nb_NO nl pa pl pt_BR pt_PT ro ru si sk sq sv ta tr uk ur vi zh_CN zh_TW])
100
 
 
101
 
dnl *******************************
102
 
dnl *** Check for X11 installed ***
103
 
dnl *******************************
104
 
XDT_CHECK_LIBX11_REQUIRE()
105
 
XDT_CHECK_LIBSM()
106
 
 
107
 
dnl ***********************************
108
 
dnl *** Check for required packages ***
109
 
dnl ***********************************
110
 
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.6.0])
111
 
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.10.0])
112
 
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.12.0])
113
 
XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.12.0])
114
 
XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.6.0])
115
 
XDT_CHECK_PACKAGE([LIBEXO], [exo-0.3], [0.3.100])
116
 
XDT_CHECK_PACKAGE([CAIRO], [cairo], [1.0.0])
117
 
 
118
 
dnl **********************
119
 
dnl *** Check for wnck ***
120
 
dnl **********************
121
 
XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-1.0], [2.20],
122
 
[
123
 
    AC_DEFINE([HAVE_WNCK_TWO_POINT_TWENTY], [1], [Use 2.20 API])
124
 
],
125
 
[
126
 
    XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-1.0], [2.12])
127
 
])
128
 
 
129
 
dnl ***********************************
130
 
dnl *** Check for optional packages ***
131
 
dnl ***********************************
132
 
XDT_CHECK_OPTIONAL_PACKAGE([LIBSTARTUP_NOTIFICATION],
133
 
                           [libstartup-notification-1.0],
134
 
                           [0.5], [startup-notification],
135
 
                           [startup notification library], [yes])
136
 
 
137
 
 
138
 
dnl *************************
139
 
dnl *** Check for gtk-doc ***
140
 
dnl *************************
141
 
GTK_DOC_CHECK([1.0])
142
 
 
143
 
dnl *************************************
144
 
dnl *** Disable deprecated components ***
145
 
dnl *************************************
146
 
AC_DEFINE([XFCE_DISABLE_DEPRECATED], [1], [Define to 1 to disable deprecated Xfce components])
147
 
AC_DEFINE([G_DISABLE_DEPRECATED], [1], [Define to 1 to disable deprecated Glib components])
148
 
 
149
 
dnl ***********************************
150
 
dnl *** Check for debugging support ***
151
 
dnl ***********************************
152
 
AC_ARG_ENABLE([debug],
153
 
AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes/full@:>@], [Turn on debugging @<:@default=panel_debug_default@:>@]),
154
 
  [], [enable_debug=panel_debug_default])
155
 
AC_MSG_CHECKING([whether to enable debugging support])
156
 
if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
157
 
  dnl Print the result
158
 
  AC_MSG_RESULT([$enable_debug])
159
 
 
160
 
  dnl Make sure we detect possible errors (if supported)
161
 
  save_CFLAGS="$CFLAGS"
162
 
  CFLAGS="$CFLAGS -Wall -Werror"
163
 
  AC_MSG_CHECKING([whether $CC accepts -Wall -Werror])
164
 
  AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
165
 
    AC_MSG_RESULT([yes])
166
 
    PLATFORM_CFLAGS="$PLATFORM_CFLAGS -Wall -Werror"
167
 
  ], [
168
 
    AC_MSG_RESULT([no])
169
 
  ])
170
 
  CFLAGS="$save_CFLAGS"
171
 
 
172
 
  dnl Paranoia for --enable-debug=full
173
 
  if test x"$enable_debug" = x"full"; then
174
 
    dnl Enable extensive debugging
175
 
    PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_ENABLE_DEBUG"
176
 
 
177
 
    dnl Use -O0 -g3 if the compiler supports it
178
 
    save_CFLAGS="$CFLAGS"
179
 
    CFLAGS="$CFLAGS -O0 -g3"
180
 
    AC_MSG_CHECKING([whether $CC accepts -O0 -g3])
181
 
    AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
182
 
      AC_MSG_RESULT([yes])
183
 
      PLATFORM_CFLAGS="$PLATFORM_CFLAGS -O0 -g3"
184
 
    ], [
185
 
      AC_MSG_RESULT([no])
186
 
    ])
187
 
    CFLAGS="$save_CFLAGS"
188
 
  fi
189
 
else
190
 
  dnl Print the result
191
 
  AC_MSG_RESULT([$enable_debug])
192
 
 
193
 
  dnl Disable debugging (release build)
194
 
  PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DNDEBUG"
195
 
 
196
 
  dnl Disable object cast checks
197
 
  PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_CAST_CHECKS"
198
 
 
199
 
  dnl Disable all checks for --enable-debug=no
200
 
  if test x"$enable_debug" = x"no"; then
201
 
    PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
202
 
  fi
203
 
fi
204
 
 
205
 
dnl ****************************************
206
 
dnl *** Check for ELF visibility support ***
207
 
dnl ****************************************
208
 
AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Don't use ELF visibility attributes]), [], [enable_visibility=yes])
209
 
have_gnuc_visibility=no
210
 
if test x"$enable_visibility" != x"no"; then
211
 
  dnl Check whether the compiler supports the visibility attribute
212
 
  save_CFLAGS="$CFLAGS"
213
 
  CFLAGS="$CFLAGS -Wall -Werror"
214
 
  AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
215
 
  AC_COMPILE_IFELSE(AC_LANG_SOURCE(
216
 
  [
217
 
    void __attribute__ ((visibility("default"))) test_default (void) {}
218
 
    void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
219
 
    int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
220
 
  ]),
221
 
  [
222
 
    have_gnuc_visibility=yes
223
 
    AC_MSG_RESULT([yes])
224
 
  ],
225
 
  [
226
 
    AC_MSG_RESULT([no])
227
 
  ])
228
 
  CFLAGS="$save_CFLAGS"
229
 
fi
230
 
if test x"$have_gnuc_visibility" = x"yes"; then
231
 
  PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DHAVE_GNUC_VISIBILITY"
232
 
fi
233
 
AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])
234
 
 
235
 
dnl *********************************
236
 
dnl *** Substitute platform flags ***
237
 
dnl *********************************
238
 
AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
239
 
AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
240
 
AC_SUBST([PLATFORM_CPPFLAGS])
241
 
AC_MSG_CHECKING([PLATFORM_CFLAGS])
242
 
AC_MSG_RESULT([$PLATFORM_CFLAGS])
243
 
AC_SUBST([PLATFORM_CFLAGS])
244
 
AC_MSG_CHECKING([PLATFORM_LDFLAGS])
245
 
AC_MSG_RESULT([$PLATFORM_LDFLAGS])
246
 
AC_SUBST([PLATFORM_LDFLAGS])
247
 
 
248
 
AC_OUTPUT([
249
 
xfce4-panel.spec
250
 
Makefile
251
 
config/Makefile
252
 
icons/Makefile
253
 
icons/16x16/Makefile
254
 
icons/22x22/Makefile
255
 
icons/24x24/Makefile
256
 
icons/32x32/Makefile
257
 
icons/48x48/Makefile
258
 
libxfce4panel/Makefile
259
 
libxfce4panel/libxfce4panel-1.0.pc
260
 
panel/Makefile
261
 
plugins/actions/Makefile
262
 
plugins/clock/Makefile
263
 
plugins/iconbox/Makefile
264
 
plugins/launcher/Makefile
265
 
plugins/Makefile
266
 
plugins/pager/Makefile
267
 
plugins/separator/Makefile
268
 
plugins/showdesktop/Makefile
269
 
plugins/systray/Makefile
270
 
plugins/tasklist/Makefile
271
 
plugins/windowlist/Makefile
272
 
settings/Makefile
273
 
po/Makefile.in
274
 
docs/Makefile
275
 
docs/API/Makefile
276
 
docs/API/version.xml
277
 
docs/manual/Makefile
278
 
docs/manual/C/Makefile
279
 
docs/manual/C/images/Makefile
280
 
])
281
 
 
282
 
dnl ***************************
283
 
dnl *** Print configuration ***
284
 
dnl ***************************
285
 
echo
286
 
echo "Build Configuration:"
287
 
echo
288
 
if test x"$LIBSTARTUP_NOTIFICATION_FOUND" = x"yes"; then
289
 
echo "* Startup Notification:          yes"
290
 
else
291
 
echo "* Startup Notification:          no"
292
 
fi
293
 
echo "* Debugging Support:             $enable_debug"
294
 
echo "* Dummy Scripts:                 $enable_dummy_scripts"
295
 
echo