~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/libunity.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
 
3
 
AC_INIT([liferea],[1.6.6b],[liferea-devel@lists.sourceforge.net])
 
3
AC_INIT([liferea],[1.8.3],[liferea-devel@lists.sourceforge.net])
4
4
AC_CANONICAL_HOST
5
5
AC_CONFIG_SRCDIR([src/feedlist.c])
6
6
 
7
 
AC_ENABLE_SHARED(yes)
8
 
AC_ENABLE_STATIC(no)
9
 
 
10
7
AC_CONFIG_HEADERS([config.h])
11
 
AM_INIT_AUTOMAKE([1.6])
 
8
AM_INIT_AUTOMAKE([1.11 foreign std-options -Wall -Werror])
 
9
AM_SILENT_RULES([yes])
12
10
 
13
11
AC_PREREQ(2.59)
14
12
 
15
 
AC_LIBTOOL_DLOPEN
16
 
AC_PROG_LIBTOOL
 
13
LT_INIT
17
14
IT_PROG_INTLTOOL([0.35.0])
18
15
 
19
16
AC_PROG_CC
20
17
AM_PROG_CC_C_O
21
18
AC_HEADER_STDC
22
19
AC_PROG_INSTALL
23
 
AC_PROG_LN_S
24
20
AC_PROG_MAKE_SET
25
21
AC_SYS_LARGEFILE
26
22
 
27
23
AC_ARG_ENABLE(sm,        AS_HELP_STRING([--disable-sm],[compile without X session management support]),,enable_sm=yes)
28
 
AC_ARG_ENABLE(dbus,      AS_HELP_STRING([--disable-dbus],[compile without DBUS support]),,enable_dbus=yes)
29
 
AC_ARG_ENABLE(nm,        AS_HELP_STRING([--disable-nm],[compile without NetworkManager support]),,enable_nm=yes)
30
 
AC_ARG_ENABLE(libnotify, AS_HELP_STRING([--disable-libnotify],[don't compile the libnotify plugin]),,enable_libnotify=yes)
 
24
AC_ARG_ENABLE(libnotify, AS_HELP_STRING([--disable-libnotify],[compile without libnotify support]),,enable_libnotify=yes)
31
25
AC_ARG_ENABLE(libindicate, AS_HELP_STRING([--disable-libindicate],[compile without libindicate support]),,enable_libindicate=yes)
32
 
AC_ARG_ENABLE(lua,       AS_HELP_STRING([--disable-lua],[don't compile with LUA scripting support]),,enable_lua=yes)
33
 
dnl AC_ARG_ENABLE(avahi,     AS_HELP_STRING([--disable-avahi],[don't compile with AVAHI support]),,enable_avahi=yes)
34
 
 
35
 
AC_MSG_CHECKING([for some Win32 platform])
36
 
case "$host" in
37
 
   *-*-cygwin*)
38
 
     platform_win32=yes
39
 
     os_win32=no
40
 
     SO_PREFIX=cyg
41
 
     ;;
42
 
   *-*-mingw*)
43
 
     platform_win32=yes
44
 
     os_win32=yes
45
 
     SO_PREFIX=lib
46
 
     ;;
47
 
   *)
48
 
     platform_win32=no
49
 
     os_win32=no
50
 
     SO_PREFIX=lib
51
 
     ;;
52
 
esac
53
 
 
54
 
AC_MSG_RESULT([$platform_win32])
55
 
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
56
 
 
57
 
AC_MSG_CHECKING([for native Win32])
58
 
AC_MSG_RESULT([$os_win32])
59
 
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
60
 
 
61
 
AC_SUBST(SO_PREFIX)
62
 
AC_DEFINE_UNQUOTED(LIBPREFIX, "$SO_PREFIX", [Platform dependent library prefix])
63
 
 
64
 
AC_CHECK_FUNCS([strsep fsync])
 
26
 
 
27
AC_CHECK_FUNCS([strsep])
65
28
 
66
29
PKG_PROG_PKG_CONFIG()
67
30
 
78
41
dnl *********
79
42
 
80
43
if test "x$enable_libnotify" = "xyes"; then
81
 
   PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.3.2, libnotify <= 0.5],enable_libnotify=yes,enable_libnotify=no)
82
 
   AC_SUBST(LIBNOTIFY_CFLAGS)
83
 
   AC_SUBST(LIBNOTIFY_LIBS)
 
44
  PKG_CHECK_MODULES([LIBNOTIFY], libnotify >= 0.7,enable_libnotify=yes,enable_libnotify=no)
 
45
  if test "x$enable_libnotify" = "xyes"; then
 
46
    AC_DEFINE(HAVE_LIBNOTIFY, 4, [Define if libnotify.so.4 support is enabled])
 
47
  fi
 
48
  if test "x$enable_libnotify" = "xno"; then
 
49
    PKG_CHECK_MODULES([LIBNOTIFY], libnotify >= 0.3.2,enable_libnotify=yes,enable_libnotify=no)
 
50
    if test "x$enable_libnotify" = "xyes"; then
 
51
      AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define if libnotify.so.1 support is enabled])
 
52
    fi
 
53
  fi
 
54
  AC_SUBST(LIBNOTIFY_CFLAGS)
 
55
  AC_SUBST(LIBNOTIFY_LIBS)
84
56
else
85
 
   enable_libnotify=no
 
57
  enable_libnotify=no
86
58
fi
87
59
 
88
60
AM_CONDITIONAL(WITH_LIBNOTIFY, test "x$enable_libnotify" = "xyes")
89
61
 
90
 
dnl ***
91
 
dnl LUA
92
 
dnl ***
93
 
 
94
 
if test "x$enable_lua" = "xyes"; then
95
 
   PKG_CHECK_MODULES([LUA], [lua >= 5.1],, [AC_MSG_NOTICE([No lua.pc >= 5.1 present, is there a lua5.1.pc?])
96
 
     PKG_CHECK_MODULES([LUA], [lua5.1],,[enable_lua=no])])
97
 
   
98
 
   AC_SUBST(LUA_CFLAGS)
99
 
   AC_SUBST(LUA_LIBS)
100
 
fi
101
 
 
102
 
AM_CONDITIONAL(WITH_LUA, test "x$enable_lua" = "xyes")
103
 
 
104
62
dnl *********
105
63
dnl libindicate
106
64
dnl *********
107
65
 
108
66
if test "x$enable_libindicate" = "xyes"; then
109
 
   PKG_CHECK_MODULES([LIBINDICATE], indicate-0.7 indicate-gtk-0.7,enable_libindicate=yes,enable_libindicate=no)
 
67
   PKG_CHECK_MODULES([LIBINDICATE], indicate-0.5 indicate-gtk-0.5,enable_libindicate=yes,enable_libindicate=no)
110
68
   AC_SUBST(LIBINDICATE_CFLAGS)
111
69
   AC_SUBST(LIBINDICATE_LIBS)
112
70
else
119
77
 
120
78
AM_CONDITIONAL(WITH_LIBINDICATE, test "x$enable_libindicate" = "xyes")
121
79
 
122
 
dnl *****
123
 
dnl AVAHI
124
 
dnl *****
125
 
 
126
 
dnl if test "x$enable_avahi" = "xyes"; then
127
 
dnl    PKG_CHECK_MODULES(AVAHI,
128
 
dnl       avahi-client >= 0.6
129
 
dnl       avahi-glib >= 0.6,
130
 
dnl       enable_avahi=yes,
131
 
dnl       enable_avahi=no)
132
 
dnl 
133
 
dnl    if test "x$enable_avahi" = "xyes"; then
134
 
dnl       AC_DEFINE(USE_AVAHI, 1, [Define if we're using AVAHI.])
135
 
dnl    fi      
136
 
dnl    
137
 
dnl    AC_SUBST(AVAHI_CFLAGS)
138
 
dnl    AC_SUBST(AVAHI_LIBS)
139
 
dnl else
140
 
dnl    enable_avahi=no
141
 
dnl fi
142
 
 
143
 
AM_CONDITIONAL(WITH_AVAHI, test "x$enable_avahi" = "xyes")
144
 
 
145
80
dnl Checking for gconftool-2
146
81
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
147
82
 
151
86
 
152
87
AM_GCONF_SOURCE_2
153
88
 
154
 
dnl webkit-1.0 >= 1.1.1 might work, but versions < 1.1.10 are not supported
155
 
dnl due to various bugs and memory leaks in older versions.
156
 
 
157
 
pkg_modules="   gtk+-2.0 >= 2.16.0 
158
 
                glib-2.0 >= 2.16.0
 
89
pkg_modules="   gtk+-2.0 >= 2.18.0
 
90
                glib-2.0 >= 2.24.0
 
91
                gio-2.0 >= 2.26.0
159
92
                pango >= 1.4.0
160
93
                gconf-2.0 >= 1.1.9 
161
94
                libxml-2.0 >= 2.6.27
162
95
                libxslt >= 1.1.19
163
 
                sqlite3 >= 3.6.10
 
96
                sqlite3 >= 3.7.0
164
97
                gmodule-2.0 >= 2.0.0
165
 
                libglade-2.0 >= 2.0.0
166
 
                libsoup-2.4 >= 2.26.1
167
 
                webkit-1.0 >= 1.1.10
168
 
                x11"
 
98
                gthread-2.0
 
99
                libsoup-2.4 >= 2.28.2
 
100
                unique-1.0
 
101
                webkit-1.0 >= 1.2.2
 
102
                json-glib-1.0"
169
103
 
170
104
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
171
105
 
184
118
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext domain])
185
119
 
186
120
 
187
 
dnl ****
188
 
dnl DBUS
189
 
dnl ****
190
 
 
191
 
 
192
 
if test "x$enable_dbus" = "xyes"; then
193
 
   AC_MSG_NOTICE([checking for DBUS >= 0.30])
194
 
   PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.30 dbus-glib-1 >= 0.30],enable_dbus=yes,enable_dbus=no)
195
 
else
196
 
   enable_dbus=no
197
 
fi
198
 
 
199
 
if test "x$enable_dbus" = "xyes"; then
200
 
  AC_DEFINE(USE_DBUS, 1, [Define if we're using DBUS.])
201
 
fi
202
 
 
203
 
AC_SUBST(DBUS_CFLAGS)
204
 
AC_SUBST(DBUS_LIBS)
205
 
AM_CONDITIONAL(WITH_DBUS, test "x$enable_dbus" = "xyes")
206
 
 
207
 
dnl **************
208
 
dnl NetworkManager
209
 
dnl **************
210
 
 
211
 
if test "x$enable_nm" = "xyes"; then
212
 
   AC_MSG_NOTICE([checking for NetworkManager])
213
 
   PKG_CHECK_EXISTS([libnm-glib],
214
 
   [ PKG_CHECK_MODULES([NM], [dbus-glib-1 libnm-glib],enable_nm=yes,enable_nm=no) ],
215
 
   [ PKG_CHECK_MODULES([NM], [dbus-glib-1 libnm_glib],enable_nm=yes,enable_nm=no) ])
216
 
fi
217
 
 
218
 
if test "x$enable_nm" = "xyes"; then
219
 
  AC_DEFINE(USE_NM, 1, [Define if we're using NetworkManager.])
220
 
fi
221
 
 
222
 
AC_SUBST(NM_CFLAGS)
223
 
AC_SUBST(NM_LIBS)
224
 
 
225
121
AC_CONFIG_FILES([
226
122
Makefile
227
123
src/Makefile
229
125
src/parsers/Makefile
230
126
src/fl_sources/Makefile
231
127
src/notification/Makefile
232
 
src/scripting/Makefile
233
 
src/sync/Makefile
234
128
src/ui/Makefile
235
129
doc/Makefile
236
130
doc/html/Makefile
247
141
opml/Makefile
248
142
glade/Makefile
249
143
po/Makefile.in
250
 
liferea.spec
 
144
src/liferea-add-feed
251
145
])
252
146
AC_OUTPUT
253
147
 
254
148
echo
255
149
echo "$PACKAGE $VERSION"
256
150
echo
257
 
echo "Build libnotify Plugin.......... : $enable_libnotify"
258
 
echo "Build LUA scripting Plugin ..... : $enable_lua"
259
 
echo
260
151
echo "Use X Session Management........ : $enable_sm"
261
 
echo "Use DBUS........................ : $enable_dbus"
262
 
echo "Use NetworkManager.............. : $enable_nm"
 
152
echo "Use libnotify................... : $enable_libnotify"
263
153
echo "Use libindicate................. : $enable_libindicate"
264
 
dnl echo "AVAHI Support................... : $enable_avahi"
265
154
echo
266
155
eval eval echo Liferea will be installed in $bindir.
267
156
echo