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

« back to all changes in this revision

Viewing changes to .pc/libindicate.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
 
dnl Process this file with autoconf to produce a configure script.
2
 
 
3
 
AC_INIT([liferea],[1.6.6b],[liferea-devel@lists.sourceforge.net])
4
 
AC_CANONICAL_HOST
5
 
AC_CONFIG_SRCDIR([src/feedlist.c])
6
 
 
7
 
AC_ENABLE_SHARED(yes)
8
 
AC_ENABLE_STATIC(no)
9
 
 
10
 
AC_CONFIG_HEADERS([config.h])
11
 
AM_INIT_AUTOMAKE([1.6])
12
 
 
13
 
AC_PREREQ(2.59)
14
 
 
15
 
AC_LIBTOOL_DLOPEN
16
 
AC_PROG_LIBTOOL
17
 
IT_PROG_INTLTOOL([0.35.0])
18
 
 
19
 
AC_PROG_CC
20
 
AM_PROG_CC_C_O
21
 
AC_HEADER_STDC
22
 
AC_PROG_INSTALL
23
 
AC_PROG_LN_S
24
 
AC_PROG_MAKE_SET
25
 
AC_SYS_LARGEFILE
26
 
 
27
 
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)
31
 
AC_ARG_ENABLE(lua,       AS_HELP_STRING([--disable-lua],[don't compile with LUA scripting support]),,enable_lua=yes)
32
 
dnl AC_ARG_ENABLE(avahi,     AS_HELP_STRING([--disable-avahi],[don't compile with AVAHI support]),,enable_avahi=yes)
33
 
 
34
 
AC_MSG_CHECKING([for some Win32 platform])
35
 
case "$host" in
36
 
   *-*-cygwin*)
37
 
     platform_win32=yes
38
 
     os_win32=no
39
 
     SO_PREFIX=cyg
40
 
     ;;
41
 
   *-*-mingw*)
42
 
     platform_win32=yes
43
 
     os_win32=yes
44
 
     SO_PREFIX=lib
45
 
     ;;
46
 
   *)
47
 
     platform_win32=no
48
 
     os_win32=no
49
 
     SO_PREFIX=lib
50
 
     ;;
51
 
esac
52
 
 
53
 
AC_MSG_RESULT([$platform_win32])
54
 
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
55
 
 
56
 
AC_MSG_CHECKING([for native Win32])
57
 
AC_MSG_RESULT([$os_win32])
58
 
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
59
 
 
60
 
AC_SUBST(SO_PREFIX)
61
 
AC_DEFINE_UNQUOTED(LIBPREFIX, "$SO_PREFIX", [Platform dependent library prefix])
62
 
 
63
 
AC_CHECK_FUNCS([strsep fsync])
64
 
 
65
 
PKG_PROG_PKG_CONFIG()
66
 
 
67
 
dnl #######################################################################
68
 
dnl # Check for X session management libs
69
 
dnl #######################################################################
70
 
 
71
 
if test "x$enable_sm" = "xyes"; then
72
 
  PKG_CHECK_MODULES([SM], [sm ice], [AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])],[enable_sm=no])
73
 
fi
74
 
 
75
 
dnl *********
76
 
dnl libnotify
77
 
dnl *********
78
 
 
79
 
if test "x$enable_libnotify" = "xyes"; then
80
 
   PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.3.2, libnotify <= 0.5],enable_libnotify=yes,enable_libnotify=no)
81
 
   AC_SUBST(LIBNOTIFY_CFLAGS)
82
 
   AC_SUBST(LIBNOTIFY_LIBS)
83
 
else
84
 
   enable_libnotify=no
85
 
fi
86
 
 
87
 
AM_CONDITIONAL(WITH_LIBNOTIFY, test "x$enable_libnotify" = "xyes")
88
 
 
89
 
dnl ***
90
 
dnl LUA
91
 
dnl ***
92
 
 
93
 
if test "x$enable_lua" = "xyes"; then
94
 
   PKG_CHECK_MODULES([LUA], [lua >= 5.1],, [AC_MSG_NOTICE([No lua.pc >= 5.1 present, is there a lua5.1.pc?])
95
 
     PKG_CHECK_MODULES([LUA], [lua5.1],,[enable_lua=no])])
96
 
   
97
 
   AC_SUBST(LUA_CFLAGS)
98
 
   AC_SUBST(LUA_LIBS)
99
 
fi
100
 
 
101
 
AM_CONDITIONAL(WITH_LUA, test "x$enable_lua" = "xyes")
102
 
 
103
 
dnl *****
104
 
dnl AVAHI
105
 
dnl *****
106
 
 
107
 
dnl if test "x$enable_avahi" = "xyes"; then
108
 
dnl    PKG_CHECK_MODULES(AVAHI,
109
 
dnl       avahi-client >= 0.6
110
 
dnl       avahi-glib >= 0.6,
111
 
dnl       enable_avahi=yes,
112
 
dnl       enable_avahi=no)
113
 
dnl 
114
 
dnl    if test "x$enable_avahi" = "xyes"; then
115
 
dnl       AC_DEFINE(USE_AVAHI, 1, [Define if we're using AVAHI.])
116
 
dnl    fi      
117
 
dnl    
118
 
dnl    AC_SUBST(AVAHI_CFLAGS)
119
 
dnl    AC_SUBST(AVAHI_LIBS)
120
 
dnl else
121
 
dnl    enable_avahi=no
122
 
dnl fi
123
 
 
124
 
AM_CONDITIONAL(WITH_AVAHI, test "x$enable_avahi" = "xyes")
125
 
 
126
 
dnl Checking for gconftool-2
127
 
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
128
 
 
129
 
if test "x$GCONFTOOL" = xno; then
130
 
        AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
131
 
fi
132
 
 
133
 
AM_GCONF_SOURCE_2
134
 
 
135
 
dnl webkit-1.0 >= 1.1.1 might work, but versions < 1.1.10 are not supported
136
 
dnl due to various bugs and memory leaks in older versions.
137
 
 
138
 
pkg_modules="   gtk+-2.0 >= 2.16.0 
139
 
                glib-2.0 >= 2.16.0
140
 
                pango >= 1.4.0
141
 
                gconf-2.0 >= 1.1.9 
142
 
                libxml-2.0 >= 2.6.27
143
 
                libxslt >= 1.1.19
144
 
                sqlite3 >= 3.6.10
145
 
                gmodule-2.0 >= 2.0.0
146
 
                libglade-2.0 >= 2.0.0
147
 
                libsoup-2.4 >= 2.26.1
148
 
                webkit-1.0 >= 1.1.10
149
 
                x11"
150
 
 
151
 
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
152
 
 
153
 
AC_SUBST(PACKAGE_CFLAGS)
154
 
AC_SUBST(PACKAGE_LIBS)
155
 
 
156
 
uname=`uname`
157
 
AC_DEFINE_UNQUOTED(OS, $uname, [defines a OS version string, used for OS specific code])
158
 
AC_DEFINE_UNQUOTED(OSNAME, "$uname", [defines a OS version string, used for the user agent string])
159
 
AC_MSG_RESULT(user agent OS = $uname)
160
 
 
161
 
AM_GLIB_GNU_GETTEXT
162
 
 
163
 
GETTEXT_PACKAGE=liferea
164
 
AC_SUBST(GETTEXT_PACKAGE)
165
 
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext domain])
166
 
 
167
 
 
168
 
dnl ****
169
 
dnl DBUS
170
 
dnl ****
171
 
 
172
 
 
173
 
if test "x$enable_dbus" = "xyes"; then
174
 
   AC_MSG_NOTICE([checking for DBUS >= 0.30])
175
 
   PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.30 dbus-glib-1 >= 0.30],enable_dbus=yes,enable_dbus=no)
176
 
else
177
 
   enable_dbus=no
178
 
fi
179
 
 
180
 
if test "x$enable_dbus" = "xyes"; then
181
 
  AC_DEFINE(USE_DBUS, 1, [Define if we're using DBUS.])
182
 
fi
183
 
 
184
 
AC_SUBST(DBUS_CFLAGS)
185
 
AC_SUBST(DBUS_LIBS)
186
 
AM_CONDITIONAL(WITH_DBUS, test "x$enable_dbus" = "xyes")
187
 
 
188
 
dnl **************
189
 
dnl NetworkManager
190
 
dnl **************
191
 
 
192
 
if test "x$enable_nm" = "xyes"; then
193
 
   AC_MSG_NOTICE([checking for NetworkManager])
194
 
   PKG_CHECK_EXISTS([libnm-glib],
195
 
   [ PKG_CHECK_MODULES([NM], [dbus-glib-1 libnm-glib],enable_nm=yes,enable_nm=no) ],
196
 
   [ PKG_CHECK_MODULES([NM], [dbus-glib-1 libnm_glib],enable_nm=yes,enable_nm=no) ])
197
 
fi
198
 
 
199
 
if test "x$enable_nm" = "xyes"; then
200
 
  AC_DEFINE(USE_NM, 1, [Define if we're using NetworkManager.])
201
 
fi
202
 
 
203
 
AC_SUBST(NM_CFLAGS)
204
 
AC_SUBST(NM_LIBS)
205
 
 
206
 
AC_CONFIG_FILES([
207
 
Makefile
208
 
src/Makefile
209
 
src/webkit/Makefile
210
 
src/parsers/Makefile
211
 
src/fl_sources/Makefile
212
 
src/notification/Makefile
213
 
src/scripting/Makefile
214
 
src/sync/Makefile
215
 
src/ui/Makefile
216
 
doc/Makefile
217
 
doc/html/Makefile
218
 
xslt/Makefile
219
 
man/Makefile
220
 
man/pl/Makefile
221
 
pixmaps/Makefile
222
 
pixmaps/16x16/Makefile
223
 
pixmaps/22x22/Makefile
224
 
pixmaps/24x24/Makefile
225
 
pixmaps/32x32/Makefile
226
 
pixmaps/48x48/Makefile
227
 
pixmaps/scalable/Makefile
228
 
opml/Makefile
229
 
glade/Makefile
230
 
po/Makefile.in
231
 
liferea.spec
232
 
])
233
 
AC_OUTPUT
234
 
 
235
 
echo
236
 
echo "$PACKAGE $VERSION"
237
 
echo
238
 
echo "Build libnotify Plugin.......... : $enable_libnotify"
239
 
echo "Build LUA scripting Plugin ..... : $enable_lua"
240
 
echo
241
 
echo "Use X Session Management........ : $enable_sm"
242
 
echo "Use DBUS........................ : $enable_dbus"
243
 
echo "Use NetworkManager.............. : $enable_nm"
244
 
dnl echo "AVAHI Support................... : $enable_avahi"
245
 
echo
246
 
eval eval echo Liferea will be installed in $bindir.
247
 
echo
248
 
echo configure complete, now type \'make\'
249
 
echo