Merge lp:~ubuntu-branches/ubuntu/oneiric/seahorse/oneiric-proposed-201111150713 into lp:ubuntu/oneiric-proposed/seahorse
- Oneiric (11.10)
- oneiric-proposed-201111150713
- Merge into oneiric-proposed
Status: | Rejected |
---|---|
Rejected by: | James Westby |
Proposed branch: | lp:~ubuntu-branches/ubuntu/oneiric/seahorse/oneiric-proposed-201111150713 |
Merge into: | lp:ubuntu/oneiric-proposed/seahorse |
Diff against target: |
1252 lines (+1217/-0) (has conflicts) 3 files modified
.pc/01_lpi.patch/configure.ac (+583/-0) .pc/08_force_ssh.patch/configure.ac (+583/-0) debian/control (+51/-0) Text conflict in .pc/01_lpi.patch/configure.ac Text conflict in .pc/08_force_ssh.patch/configure.ac Text conflict in debian/control |
To merge this branch: | bzr merge lp:~ubuntu-branches/ubuntu/oneiric/seahorse/oneiric-proposed-201111150713 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Development Team | Pending | ||
Review via email: mp+82251@code.launchpad.net |
Commit message
Description of the change
The package importer has detected a possible inconsistency between the package history in the archive and the history in bzr. As the archive is authoritative the importer has made lp:ubuntu/oneiric-proposed/seahorse reflect what is in the archive and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/seahorse/oneiric-proposed-201111150713. This merge proposal was created so that an Ubuntu developer can review the situations and perform a merge/upload if necessary. There are three typical cases where this can happen.
1. Where someone pushes a change to bzr and someone else uploads the package without that change. This is the reason that this check is done by the importer. If this appears to be the case then a merge/upload should be done if the changes that were in bzr are still desirable.
2. The importer incorrectly detected the above situation when someone made a change in bzr and then uploaded it.
3. The importer incorrectly detected the above situation when someone just uploaded a package and didn't touch bzr.
If this case doesn't appear to be the first situation then set the status of the merge proposal to "Rejected" and help avoid the problem in future by filing a bug at https:/
(this is an automatically generated message)
Unmerged revisions
- 107. By Ken VanDine
-
releasing version 3.2.2-0ubuntu0.1
Preview Diff
1 | === modified file '.pc/01_lpi.patch/configure.ac' |
2 | --- .pc/01_lpi.patch/configure.ac 2011-11-14 11:44:04 +0000 |
3 | +++ .pc/01_lpi.patch/configure.ac 2011-11-15 07:19:27 +0000 |
4 | @@ -1,3 +1,4 @@ |
5 | +<<<<<<< TREE |
6 | dnl Process this file with autoconf to produce a configure script. |
7 | |
8 | AC_PREREQ(2.52) |
9 | @@ -578,3 +579,585 @@ |
10 | HKP: $enable_hkp |
11 | Key Sharing: $enable_sharing |
12 | " |
13 | +======= |
14 | +dnl Process this file with autoconf to produce a configure script. |
15 | + |
16 | +AC_PREREQ(2.52) |
17 | + |
18 | +dnl **************************************************************************** |
19 | +dnl MAIN SEAHORSE VERSION (update after release) |
20 | + |
21 | +AC_INIT(seahorse, 3.2.1) |
22 | + |
23 | +GCR_REQUIRED=3.1.5 |
24 | + |
25 | +dnl **************************************************************************** |
26 | + |
27 | +AC_CONFIG_SRCDIR(src/seahorse-main.c) |
28 | +AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
29 | +AM_CONFIG_HEADER(config.h) |
30 | +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
31 | +AM_MAINTAINER_MODE([enable]) |
32 | +AC_CONFIG_MACRO_DIR([m4]) |
33 | + |
34 | +AC_PROG_CC |
35 | +AC_PROG_CXX |
36 | +AC_PROG_INTLTOOL([0.35.0]) |
37 | +AM_PROG_LIBTOOL |
38 | +GNOME_DOC_INIT |
39 | + |
40 | +dnl Get the off_t size right |
41 | +AC_SYS_LARGEFILE |
42 | +AC_TYPE_OFF_T |
43 | +AC_FUNC_FSEEKO |
44 | + |
45 | +AC_CHECK_FUNCS(setresuid setresgid) |
46 | +AC_CHECK_FUNCS(strsep) |
47 | + |
48 | +AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
49 | + |
50 | +GTK_REQUIRED=2.90.0 |
51 | + |
52 | +PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) |
53 | +AC_SUBST(GTK_CFLAGS) |
54 | +AC_SUBST(GTK_LIBS) |
55 | + |
56 | +PKG_CHECK_MODULES(SEAHORSE, gmodule-2.0 gio-2.0 gthread-2.0 gtk+-3.0 >= $GTK_REQUIRED) |
57 | + |
58 | +GLIB_GSETTINGS |
59 | + |
60 | +AC_MSG_CHECKING([for some Win32 platform]) |
61 | +case "$host" in |
62 | + *-*-cygwin*|*-*-mingw*) |
63 | + platform_win32=yes |
64 | + ;; |
65 | + *) |
66 | + platform_win32=no |
67 | + ;; |
68 | +esac |
69 | +AC_MSG_RESULT([$platform_win32]) |
70 | +AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") |
71 | + |
72 | +AC_MSG_CHECKING([for native Win32]) |
73 | +case "$host" in |
74 | + *-*-mingw*) |
75 | + os_win32=yes |
76 | + ;; |
77 | + *) |
78 | + os_win32=no |
79 | + ;; |
80 | +esac |
81 | +AC_MSG_RESULT([$os_win32]) |
82 | +AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") |
83 | + |
84 | +if test "$platform_win32" = "yes" ; then |
85 | + PLUGIN_LIBTOOL_FLAGS="-module -avoid-version -no-undefined" |
86 | +else |
87 | + PLUGIN_LIBTOOL_FLAGS="-module -avoid-version" |
88 | +fi |
89 | +AC_SUBST(PLUGIN_LIBTOOL_FLAGS) |
90 | + |
91 | +dnl ************************************************************** |
92 | +dnl GPG / GPGME CHECKS |
93 | +dnl ************************************************************** |
94 | + |
95 | +AC_ARG_ENABLE(pgp, |
96 | + AC_HELP_STRING([--enable-pgp], [enable PGP support (default is auto)])) |
97 | + |
98 | +have_gpg="" |
99 | +have_gpgme="" |
100 | + |
101 | +if test "$enable_pgp" = "no"; then |
102 | + echo "disabling PGP support" |
103 | +else |
104 | + AC_ARG_ENABLE(gpg-check, |
105 | + AC_HELP_STRING([--disable-gpg-check], [check GPG version (default is yes)]), |
106 | + DO_CHECK=$enableval, DO_CHECK=yes) |
107 | + |
108 | + if test "$DO_CHECK" = "yes"; then |
109 | + accepted_versions="1.2 1.4 2.0" |
110 | + AC_PATH_PROGS(GNUPG, [gpg gpg2], no) |
111 | + AC_DEFINE_UNQUOTED(GNUPG, "$GNUPG", [Path to gpg executable.]) |
112 | + ok="no" |
113 | + if test "$GNUPG" != "no"; then |
114 | + AC_MSG_CHECKING(for appropriate GnuPG version) |
115 | + gnupg_version=`$GNUPG --version | grep gpg` |
116 | + major=`echo $gnupg_version | \ |
117 | + sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` |
118 | + minor=`echo $gnupg_version | \ |
119 | + sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` |
120 | + micro=`echo $gnupg_version | \ |
121 | + sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` |
122 | + |
123 | + for ver in $accepted_versions; do |
124 | + if test "$ver" = "$major.$minor"; then |
125 | + AC_DEFINE_UNQUOTED(GPG_MAJOR, [$major], [GPG Major Version]) |
126 | + AC_DEFINE_UNQUOTED(GPG_MINOR, [$minor], [GPG Minor Version]) |
127 | + AC_DEFINE_UNQUOTED(GPG_MICRO, [$micro], [GPG Micro Version]) |
128 | + ok="yes" |
129 | + break |
130 | + fi |
131 | + done |
132 | + fi |
133 | + |
134 | + if test "$ok" = "yes"; then |
135 | + AC_MSG_RESULT([yes]) |
136 | + have_gpg="$gnupg_version" |
137 | + else |
138 | + AC_MSG_RESULT([no]) |
139 | + fi |
140 | + fi |
141 | + |
142 | + |
143 | + ok="no" |
144 | + min_gpgme_version=1.0.0 |
145 | + AC_PATH_PROG(GPGME_CONFIG, gpgme-config, "failed") |
146 | + if test $GPGME_CONFIG != "failed" ; then |
147 | + AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version) |
148 | + req_major=`echo $min_gpgme_version | \ |
149 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` |
150 | + req_minor=`echo $min_gpgme_version | \ |
151 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` |
152 | + req_micro=`echo $min_gpgme_version | \ |
153 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` |
154 | + gpgme_config_version=`$GPGME_CONFIG --version` |
155 | + major=`echo $gpgme_config_version | \ |
156 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` |
157 | + minor=`echo $gpgme_config_version | \ |
158 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` |
159 | + micro=`echo $gpgme_config_version | \ |
160 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` |
161 | + |
162 | + if test "$major" -eq "$req_major"; then |
163 | + if test "$minor" -ge "$req_minor"; then |
164 | + if test "$micro" -ge "$req_micro"; then |
165 | + ok="yes" |
166 | + fi |
167 | + fi |
168 | + fi |
169 | + fi |
170 | + |
171 | + if test $ok = "yes"; then |
172 | + GPGME_CFLAGS=`$GPGME_CONFIG --cflags` |
173 | + GPGME_LIBS=`$GPGME_CONFIG --libs` |
174 | + AC_MSG_RESULT(yes) |
175 | + have_gpgme="$gpgme_config_version" |
176 | + else |
177 | + AC_MSG_RESULT(no) |
178 | + fi |
179 | +fi |
180 | + |
181 | +if test "$enable_pgp" != "no" -a -n "$have_gpg" -a -n "$have_gpgme"; then |
182 | + enable_pgp="yes" |
183 | +fi |
184 | + |
185 | +if test "$enable_pgp" = "yes"; then |
186 | + if test -z "$have_gpg"; then |
187 | + AC_MSG_ERROR([Appropriate version of GnuPG not found. Please install one of versions: $accepted_versions]) |
188 | + fi |
189 | + |
190 | + if test -z "$have_gpgme"; then |
191 | + AC_MSG_ERROR(GPGME $min_gpgme_version or later needed) |
192 | + fi |
193 | + |
194 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GPGME_CFLAGS" |
195 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $GPGME_LIBS" |
196 | + AC_DEFINE(WITH_PGP, 1, [With PGP Support]) |
197 | +fi |
198 | + |
199 | +AM_CONDITIONAL(WITH_PGP, test "$enable_pgp" = "yes") |
200 | + |
201 | +dnl ****************************************************************************** |
202 | +dnl LDAP [from gpg] |
203 | +dnl ****************************************************************************** |
204 | + |
205 | +AC_MSG_CHECKING([LDAP keyserver support]) |
206 | +AC_ARG_ENABLE(ldap, |
207 | +[ --disable-ldap disable LDAP keyserver interface], |
208 | + try_ldap=$enableval, try_ldap=yes) |
209 | + |
210 | +if test "$enable_pgp" != "yes"; then |
211 | + echo "LDAP keyserver interface requires PGP support" |
212 | + try_ldap=no |
213 | +fi |
214 | + |
215 | +AC_MSG_RESULT($try_ldap) |
216 | +with_ldap=no |
217 | + |
218 | +dnl Must check for network library requirements before doing link tests |
219 | +dnl for ldap, for example. If ldap libs are static (or dynamic and without |
220 | +dnl ELF runtime link paths), then link will fail and LDAP support won't |
221 | +dnl be detected. |
222 | + |
223 | +AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname, |
224 | + [NETLIBS="-lnsl $NETLIBS"])) |
225 | +AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt, |
226 | + [NETLIBS="-lsocket $NETLIBS"])) |
227 | + |
228 | +dnl Try and link a LDAP test program to weed out unusable LDAP |
229 | +dnl libraries. -lldap [-llber [-lresolv]] is for OpenLDAP. OpenLDAP in |
230 | +dnl general is terrible with creating weird dependencies. If all else |
231 | +dnl fails, the user can play guess-the-dependency by using something |
232 | +dnl like LDAP_LIBS="-lfoo" ./configure |
233 | + |
234 | +if test "$try_ldap" = yes ; then |
235 | + for MY_LDAPLIBS in ${LDAP_LIBS+"$LDAP_LIBS"} "-lldap -llber" "-lldap" "-lldap -llber -lresolv"; do |
236 | + _ldap_save_libs=$LIBS |
237 | + LIBS="$MY_LDAPLIBS $NETLIBS $LIBS" |
238 | + |
239 | + AC_MSG_CHECKING([whether LDAP via \"$MY_LDAPLIBS\" is present and sane]) |
240 | + AC_TRY_LINK([#include <ldap.h>],[ldap_open("foobar",1234); ber_free(NULL, 0);], |
241 | + [cv_func_ldap_init=yes],[cv_func_ldap_init=no]) |
242 | + AC_MSG_RESULT([$cv_func_ldap_init]) |
243 | + |
244 | + if test $cv_func_ldap_init = no; then |
245 | + AC_MSG_CHECKING([whether I can make LDAP be sane with lber.h]) |
246 | + AC_TRY_LINK([#include <lber.h> |
247 | +#include <ldap.h>],[ldap_open("foobar",1234);], |
248 | + [cv_func_ldaplber_init=yes],[cv_func_ldaplber_init=no]) |
249 | + AC_MSG_RESULT([$cv_func_ldaplber_init]) |
250 | + fi |
251 | + |
252 | + if test "$cv_func_ldaplber_init" = yes ; then |
253 | + AC_DEFINE(NEED_LBER_H,1,[Define if the LDAP library requires including lber.h before ldap.h]) |
254 | + fi |
255 | + |
256 | + if test "$cv_func_ldap_init" = yes || \ |
257 | + test "$cv_func_ldaplber_init" = yes ; then |
258 | + LDAP_LIBS=$MY_LDAPLIBS |
259 | + fi |
260 | + |
261 | + LIBS=$_ldap_save_libs |
262 | + |
263 | + if test "$LDAP_LIBS" != ""; then |
264 | + with_keyserver=yes |
265 | + with_ldap=yes |
266 | + AC_DEFINE(WITH_LDAP, 1, [Support for LDAP operations]) |
267 | + break |
268 | + fi |
269 | + done |
270 | +fi |
271 | + |
272 | +AM_CONDITIONAL(WITH_LDAP, test "$with_ldap" = "yes") |
273 | +SEAHORSE_LIBS="$SEAHORSE_LIBS $LDAP_LIBS" |
274 | + |
275 | +AC_SUBST(NETLIBS) |
276 | + |
277 | + |
278 | +dnl **************************************************************************** |
279 | +dnl HKP (libsoup) |
280 | +dnl **************************************************************************** |
281 | + |
282 | +# Allow hkp to be disabled |
283 | +AC_ARG_ENABLE(hkp, |
284 | + AC_HELP_STRING([--disable-hkp], |
285 | + [disable HKP keyserver interface])) |
286 | + |
287 | +# HKP tests |
288 | +if test "$enable_pgp" != "yes"; then |
289 | + echo "HKP keyserver interface requires PGP support" |
290 | + enable_hkp=no |
291 | +fi |
292 | + |
293 | +if test "$enable_hkp" = "no"; then |
294 | + echo "disabling HKP keyserver interface" |
295 | +else |
296 | + |
297 | + echo "checking for supported versions of libsoup..." |
298 | + |
299 | + PKG_CHECK_MODULES(SOUP, libsoup-2.4, |
300 | + [enable_hkp=yes], |
301 | + [enable_hkp=no]) |
302 | + |
303 | + if test "$enable_hkp" = yes; then |
304 | + with_keyserver=yes |
305 | + |
306 | + AC_DEFINE(WITH_HKP, 1, [Support for HKP operations]) |
307 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $SOUP_LIBS" |
308 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $SOUP_CFLAGS" |
309 | + |
310 | + # libsoup is also used for async lookups |
311 | + AC_DEFINE(WITH_SOUP, 1, [With libsoup]) |
312 | + fi |
313 | +fi |
314 | + |
315 | +AM_CONDITIONAL(WITH_HKP, test "$enable_hkp" = "yes") |
316 | + |
317 | + |
318 | +dnl *************** |
319 | +dnl KEYSERVER |
320 | +dnl *************** |
321 | + |
322 | +AM_CONDITIONAL(WITH_KEYSERVER, test "$with_keyserver" = "yes") |
323 | + |
324 | +if test "$with_keyserver" = "yes"; then |
325 | + echo "enabling key server support" |
326 | + AC_DEFINE(WITH_KEYSERVER, 1, [Support for key server actions]) |
327 | +else |
328 | + with_keyserver=no |
329 | + echo "disabling key server support" |
330 | +fi |
331 | + |
332 | + |
333 | +dnl **************************************************************************** |
334 | +dnl GNOME-KEYRING |
335 | +dnl **************************************************************************** |
336 | + |
337 | +PKG_CHECK_MODULES([GNOME_KEYRING], gnome-keyring-1 >= 2.25.5, |
338 | + [enable_gnome_keyring=yes],[enable_gnome_keyring=no]) |
339 | + |
340 | +if test "$enable_gnome_keyring" = "no"; then |
341 | + AC_MSG_ERROR([gnome-keyring library or headers not found.]) |
342 | +fi |
343 | + |
344 | +SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GNOME_KEYRING_CFLAGS" |
345 | +SEAHORSE_LIBS="$SEAHORSE_LIBS $GNOME_KEYRING_LIBS" |
346 | + |
347 | + |
348 | +dnl ******************* |
349 | +dnl KEY SHARING |
350 | +dnl ******************* |
351 | + |
352 | +AVAHI_GLIB_REQUIRED=0.6 |
353 | + |
354 | +# Allow sharing to be disabled |
355 | +AC_ARG_ENABLE(sharing, |
356 | + AC_HELP_STRING([--disable-sharing], |
357 | + [Don't compile in DNS-SD key sharing])) |
358 | + |
359 | +if test "$enable_pgp" != "yes"; then |
360 | + echo "DNS-SD key sharing requires PGP support" |
361 | + enable_sharing=no |
362 | +fi |
363 | + |
364 | +if test "$enable_hkp" = "no"; then |
365 | + echo "DNS-SD key sharing requires HKP support" |
366 | + enable_sharing=no |
367 | +fi |
368 | + |
369 | +if test "$enable_sharing" = "no"; then |
370 | + echo "disabling DNS-SD key sharing" |
371 | +else |
372 | + |
373 | + PKG_CHECK_MODULES(SHARING, avahi-client avahi-glib >= $AVAHI_GLIB_REQUIRED, |
374 | + [enable_sharing=yes], |
375 | + [enable_sharing=no]) |
376 | + |
377 | + if test "$enable_sharing" = "yes"; then |
378 | + echo "enabling key sharing" |
379 | + |
380 | + AC_DEFINE_UNQUOTED(WITH_SHARING, 1, [Compile bonjour key sharing code]) |
381 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $SHARING_CFLAGS" |
382 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $SHARING_LIBS" |
383 | + fi |
384 | +fi |
385 | + |
386 | +AM_CONDITIONAL(WITH_SHARING, test "$enable_sharing" = "yes") |
387 | + |
388 | +dnl **************************************************************************** |
389 | +dnl PKCS11 |
390 | +dnl **************************************************************************** |
391 | + |
392 | +AC_ARG_ENABLE(pkcs11, |
393 | + AC_HELP_STRING([--disable-pkcs11], |
394 | + [Support keys and certificates via PKCS#11])) |
395 | + |
396 | +if test "$enable_pkcs11" = "no"; then |
397 | + echo "disabling pkcs11 support" |
398 | + enable_pkcs11="no" |
399 | +else |
400 | + PKG_CHECK_MODULES(GCR, gcr-3 >= $GCR_REQUIRED, gcr_is_present="yes", gcr_is_present="no") |
401 | + if test "$gcr_is_present" = "no"; then |
402 | + echo "disabling pkcs11 support" |
403 | + fi |
404 | + PKG_CHECK_MODULES(GCK, gck-1 >= 3.1.2, enable_pkcs11="yes", enable_pkcs11="no") |
405 | + if test "$enable_pkcs11" = "yes" && test "$gcr_is_present" = "yes"; then |
406 | + AC_DEFINE(WITH_PKCS11, 1, [gck library available]) |
407 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GCK_CFLAGS $GCR_CFLAGS" |
408 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $GCK_LIBS $GCR_LIBS" |
409 | + else |
410 | + enable_pkcs11="no" |
411 | + fi |
412 | +fi |
413 | + |
414 | +AM_CONDITIONAL(WITH_PKCS11, test "$enable_pkcs11" = "yes") |
415 | + |
416 | +dnl **************************************************************************** |
417 | +dnl SSH |
418 | +dnl **************************************************************************** |
419 | + |
420 | +AC_ARG_ENABLE(ssh, |
421 | + AC_HELP_STRING([--disable-ssh], |
422 | + [Support for managing SSH keys])) |
423 | + |
424 | +if test "x$enable_ssh" = "xno"; then |
425 | + echo "disabling ssh support" |
426 | +else |
427 | + |
428 | + AC_PATH_PROG(SSH_KEYGEN_PATH, ssh-keygen, "failed") |
429 | + AC_PATH_PROG(SSH_PATH, ssh, "failed") |
430 | + |
431 | + if test $SSH_KEYGEN_PATH != "failed" && |
432 | + test $SSH_PATH != "failed"; then |
433 | + enable_ssh="yes" |
434 | + AC_DEFINE(WITH_SSH, 1, [With SSH Support]) |
435 | + AC_DEFINE_UNQUOTED(SSH_KEYGEN_PATH, "$SSH_KEYGEN_PATH", [Path to ssh-keygen]) |
436 | + AC_DEFINE_UNQUOTED(SSH_PATH, "$SSH_PATH", [Path to ssh]) |
437 | + fi |
438 | + |
439 | +fi |
440 | + |
441 | +AM_CONDITIONAL(WITH_SSH, test "$enable_ssh" = "yes") |
442 | + |
443 | +# ----------------------------------------------------------------------------- |
444 | +# Debug mode |
445 | +# |
446 | + |
447 | +AC_MSG_CHECKING([for debug mode]) |
448 | +AC_ARG_ENABLE(debug, |
449 | + AC_HELP_STRING([--enable-debug=no/yes/full], |
450 | + [Turn on or off debugging])) |
451 | + |
452 | +if test "$enable_debug" != "no"; then |
453 | + AC_DEFINE_UNQUOTED(WITH_DEBUG, 1, [Print debug output]) |
454 | + AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode]) |
455 | +fi |
456 | + |
457 | +if test "$enable_debug" = "full"; then |
458 | + debug_status="full" |
459 | + CFLAGS="$CFLAGS -g -O0 -Werror" |
460 | + CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED" |
461 | + CFLAGS="$CFLAGS -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" |
462 | +elif test "$enable_debug" = "no"; then |
463 | + debug_status="no" |
464 | + AC_DEFINE_UNQUOTED(G_DISABLE_ASSERT, 1, [Disable glib assertions]) |
465 | +else |
466 | + debug_status="yes" |
467 | +fi |
468 | + |
469 | +AC_MSG_RESULT($debug_status) |
470 | + |
471 | +# Fatal Messages mode |
472 | +AC_ARG_ENABLE(fatal-messages, |
473 | + AC_HELP_STRING([--enable-fatal-messages], |
474 | + [Don't make compile and or runtime messages fatal in debug mode.])) |
475 | + |
476 | +if test "$enable_fatal_messages" = "yes" && test "$enable_debug" = "yes"; then |
477 | + CFLAGS="$CFLAGS -Wall -Werror" |
478 | + AC_DEFINE_UNQUOTED(FATAL_MESSAGES, 1, [Fatal runtime messages]) |
479 | + echo "enabling fatal runtime messages" |
480 | +fi |
481 | + |
482 | +# Build Tests |
483 | +AC_ARG_ENABLE(tests, |
484 | + AC_HELP_STRING([--enable-tests], |
485 | + [Compile Test Programs])) |
486 | + |
487 | +if test "$enable_tests" != "yes"; then |
488 | + enable_tests="no" |
489 | +fi |
490 | + |
491 | +AM_CONDITIONAL(WITH_TESTS, test "$enable_tests" = "yes") |
492 | + |
493 | +# ------------------------------------------------------------------- |
494 | +# More warnings |
495 | + |
496 | +AC_MSG_CHECKING(for more warnings) |
497 | +if test "$GCC" = "yes"; then |
498 | + AC_MSG_RESULT(yes) |
499 | + CFLAGS="\ |
500 | + -Wall \ |
501 | + -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ |
502 | + -Wnested-externs -Wpointer-arith \ |
503 | + -Wcast-align -Wsign-compare \ |
504 | + $CFLAGS" |
505 | + |
506 | + for option in -Wno-strict-aliasing -Wno-sign-compare; do |
507 | + SAVE_CFLAGS="$CFLAGS" |
508 | + CFLAGS="$CFLAGS $option" |
509 | + AC_MSG_CHECKING([whether gcc understands $option]) |
510 | + AC_TRY_COMPILE([], [], |
511 | + has_option=yes, |
512 | + has_option=no,) |
513 | + if test $has_option = no; then |
514 | + CFLAGS="$SAVE_CFLAGS" |
515 | + fi |
516 | + AC_MSG_RESULT($has_option) |
517 | + unset has_option |
518 | + unset SAVE_CFLAGS |
519 | + done |
520 | + unset option |
521 | +else |
522 | + AC_MSG_RESULT(no) |
523 | +fi |
524 | + |
525 | +dnl **************************************************************************** |
526 | + |
527 | +AC_SUBST(SEAHORSE_CFLAGS) |
528 | +AC_SUBST(SEAHORSE_LIBS) |
529 | + |
530 | +AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
531 | + |
532 | +AC_ARG_ENABLE(update-mime-database, |
533 | + AC_HELP_STRING([--disable-update-mime-database], |
534 | + [do not run the update-mime-database utility (mostly useful for package maintainers) ])) |
535 | +AM_CONDITIONAL(UPDATE_MIME_DATABASE, test "$enable_update_mime_database" != "no") |
536 | + |
537 | +dnl ******************* |
538 | +dnl ***** gettext ***** |
539 | +dnl ******************* |
540 | + |
541 | +GETTEXT_PACKAGE=seahorse |
542 | +AC_SUBST(GETTEXT_PACKAGE) |
543 | +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext domain.]) |
544 | + |
545 | +AM_GLIB_GNU_GETTEXT |
546 | + |
547 | +dnl **************************************************************************** |
548 | +## here we get the flags we'll actually use |
549 | +PKG_CHECK_MODULES(EGG, gtk+-3.0 >= $GTK_REQUIRED) |
550 | +AC_SUBST(EGG_LIBS) |
551 | +AC_SUBST(EGG_CFLAGS) |
552 | + |
553 | +PKG_CHECK_MODULES(EGG_SMCLIENT, gtk+-3.0) |
554 | +AC_SUBST(EGG_SMCLIENT_LIBS) |
555 | +AC_SUBST(EGG_SMCLIENT_CFLAGS) |
556 | + |
557 | +dnl **************************************************************************** |
558 | + |
559 | +AC_OUTPUT([ |
560 | +Makefile |
561 | +gkr/Makefile |
562 | +libegg/Makefile |
563 | +libseahorse/Makefile |
564 | +pgp/Makefile |
565 | +po/Makefile.in |
566 | +help/Makefile |
567 | +data/Makefile |
568 | +data/icons/Makefile |
569 | +pixmaps/Makefile |
570 | +pixmaps/22x22/Makefile |
571 | +pixmaps/48x48/Makefile |
572 | +pixmaps/scalable/Makefile |
573 | +pkcs11/Makefile |
574 | +src/Makefile |
575 | +src/seahorse.desktop.in |
576 | +ssh/Makefile |
577 | +]) |
578 | + |
579 | +dnl **************************************************************************** |
580 | +dnl SUMMARY |
581 | +dnl **************************************************************************** |
582 | + |
583 | +echo " |
584 | +PKCS11 Support: $enable_pkcs11 |
585 | +PGP Support: $enable_pgp |
586 | + GnuPG Version: $have_gpg |
587 | + GPGME Version: $have_gpgme |
588 | +SSH Support: $enable_ssh |
589 | +Keyserver Support: $with_keyserver |
590 | + LDAP: $with_ldap |
591 | + HKP: $enable_hkp |
592 | + Key Sharing: $enable_sharing |
593 | +" |
594 | +>>>>>>> MERGE-SOURCE |
595 | |
596 | === modified file '.pc/08_force_ssh.patch/configure.ac' |
597 | --- .pc/08_force_ssh.patch/configure.ac 2011-11-14 11:44:04 +0000 |
598 | +++ .pc/08_force_ssh.patch/configure.ac 2011-11-15 07:19:27 +0000 |
599 | @@ -1,3 +1,4 @@ |
600 | +<<<<<<< TREE |
601 | dnl Process this file with autoconf to produce a configure script. |
602 | |
603 | AC_PREREQ(2.52) |
604 | @@ -578,3 +579,585 @@ |
605 | HKP: $enable_hkp |
606 | Key Sharing: $enable_sharing |
607 | " |
608 | +======= |
609 | +dnl Process this file with autoconf to produce a configure script. |
610 | + |
611 | +AC_PREREQ(2.52) |
612 | + |
613 | +dnl **************************************************************************** |
614 | +dnl MAIN SEAHORSE VERSION (update after release) |
615 | + |
616 | +AC_INIT(seahorse, 3.2.1) |
617 | + |
618 | +GCR_REQUIRED=3.1.5 |
619 | + |
620 | +dnl **************************************************************************** |
621 | + |
622 | +AC_CONFIG_SRCDIR(src/seahorse-main.c) |
623 | +AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
624 | +AM_CONFIG_HEADER(config.h) |
625 | +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
626 | +AM_MAINTAINER_MODE([enable]) |
627 | +AC_CONFIG_MACRO_DIR([m4]) |
628 | + |
629 | +AC_PROG_CC |
630 | +AC_PROG_CXX |
631 | +AC_PROG_INTLTOOL([0.35.0]) |
632 | +AM_PROG_LIBTOOL |
633 | +GNOME_DOC_INIT |
634 | + |
635 | +dnl Get the off_t size right |
636 | +AC_SYS_LARGEFILE |
637 | +AC_TYPE_OFF_T |
638 | +AC_FUNC_FSEEKO |
639 | + |
640 | +AC_CHECK_FUNCS(setresuid setresgid) |
641 | +AC_CHECK_FUNCS(strsep) |
642 | + |
643 | +AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
644 | + |
645 | +GTK_REQUIRED=2.90.0 |
646 | + |
647 | +PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) |
648 | +AC_SUBST(GTK_CFLAGS) |
649 | +AC_SUBST(GTK_LIBS) |
650 | + |
651 | +PKG_CHECK_MODULES(SEAHORSE, gmodule-2.0 gio-2.0 gthread-2.0 gtk+-3.0 >= $GTK_REQUIRED launchpad-integration-3.0) |
652 | + |
653 | +GLIB_GSETTINGS |
654 | + |
655 | +AC_MSG_CHECKING([for some Win32 platform]) |
656 | +case "$host" in |
657 | + *-*-cygwin*|*-*-mingw*) |
658 | + platform_win32=yes |
659 | + ;; |
660 | + *) |
661 | + platform_win32=no |
662 | + ;; |
663 | +esac |
664 | +AC_MSG_RESULT([$platform_win32]) |
665 | +AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") |
666 | + |
667 | +AC_MSG_CHECKING([for native Win32]) |
668 | +case "$host" in |
669 | + *-*-mingw*) |
670 | + os_win32=yes |
671 | + ;; |
672 | + *) |
673 | + os_win32=no |
674 | + ;; |
675 | +esac |
676 | +AC_MSG_RESULT([$os_win32]) |
677 | +AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") |
678 | + |
679 | +if test "$platform_win32" = "yes" ; then |
680 | + PLUGIN_LIBTOOL_FLAGS="-module -avoid-version -no-undefined" |
681 | +else |
682 | + PLUGIN_LIBTOOL_FLAGS="-module -avoid-version" |
683 | +fi |
684 | +AC_SUBST(PLUGIN_LIBTOOL_FLAGS) |
685 | + |
686 | +dnl ************************************************************** |
687 | +dnl GPG / GPGME CHECKS |
688 | +dnl ************************************************************** |
689 | + |
690 | +AC_ARG_ENABLE(pgp, |
691 | + AC_HELP_STRING([--enable-pgp], [enable PGP support (default is auto)])) |
692 | + |
693 | +have_gpg="" |
694 | +have_gpgme="" |
695 | + |
696 | +if test "$enable_pgp" = "no"; then |
697 | + echo "disabling PGP support" |
698 | +else |
699 | + AC_ARG_ENABLE(gpg-check, |
700 | + AC_HELP_STRING([--disable-gpg-check], [check GPG version (default is yes)]), |
701 | + DO_CHECK=$enableval, DO_CHECK=yes) |
702 | + |
703 | + if test "$DO_CHECK" = "yes"; then |
704 | + accepted_versions="1.2 1.4 2.0" |
705 | + AC_PATH_PROGS(GNUPG, [gpg gpg2], no) |
706 | + AC_DEFINE_UNQUOTED(GNUPG, "$GNUPG", [Path to gpg executable.]) |
707 | + ok="no" |
708 | + if test "$GNUPG" != "no"; then |
709 | + AC_MSG_CHECKING(for appropriate GnuPG version) |
710 | + gnupg_version=`$GNUPG --version | grep gpg` |
711 | + major=`echo $gnupg_version | \ |
712 | + sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` |
713 | + minor=`echo $gnupg_version | \ |
714 | + sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` |
715 | + micro=`echo $gnupg_version | \ |
716 | + sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` |
717 | + |
718 | + for ver in $accepted_versions; do |
719 | + if test "$ver" = "$major.$minor"; then |
720 | + AC_DEFINE_UNQUOTED(GPG_MAJOR, [$major], [GPG Major Version]) |
721 | + AC_DEFINE_UNQUOTED(GPG_MINOR, [$minor], [GPG Minor Version]) |
722 | + AC_DEFINE_UNQUOTED(GPG_MICRO, [$micro], [GPG Micro Version]) |
723 | + ok="yes" |
724 | + break |
725 | + fi |
726 | + done |
727 | + fi |
728 | + |
729 | + if test "$ok" = "yes"; then |
730 | + AC_MSG_RESULT([yes]) |
731 | + have_gpg="$gnupg_version" |
732 | + else |
733 | + AC_MSG_RESULT([no]) |
734 | + fi |
735 | + fi |
736 | + |
737 | + |
738 | + ok="no" |
739 | + min_gpgme_version=1.0.0 |
740 | + AC_PATH_PROG(GPGME_CONFIG, gpgme-config, "failed") |
741 | + if test $GPGME_CONFIG != "failed" ; then |
742 | + AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version) |
743 | + req_major=`echo $min_gpgme_version | \ |
744 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` |
745 | + req_minor=`echo $min_gpgme_version | \ |
746 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` |
747 | + req_micro=`echo $min_gpgme_version | \ |
748 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` |
749 | + gpgme_config_version=`$GPGME_CONFIG --version` |
750 | + major=`echo $gpgme_config_version | \ |
751 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` |
752 | + minor=`echo $gpgme_config_version | \ |
753 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` |
754 | + micro=`echo $gpgme_config_version | \ |
755 | + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` |
756 | + |
757 | + if test "$major" -eq "$req_major"; then |
758 | + if test "$minor" -ge "$req_minor"; then |
759 | + if test "$micro" -ge "$req_micro"; then |
760 | + ok="yes" |
761 | + fi |
762 | + fi |
763 | + fi |
764 | + fi |
765 | + |
766 | + if test $ok = "yes"; then |
767 | + GPGME_CFLAGS=`$GPGME_CONFIG --cflags` |
768 | + GPGME_LIBS=`$GPGME_CONFIG --libs` |
769 | + AC_MSG_RESULT(yes) |
770 | + have_gpgme="$gpgme_config_version" |
771 | + else |
772 | + AC_MSG_RESULT(no) |
773 | + fi |
774 | +fi |
775 | + |
776 | +if test "$enable_pgp" != "no" -a -n "$have_gpg" -a -n "$have_gpgme"; then |
777 | + enable_pgp="yes" |
778 | +fi |
779 | + |
780 | +if test "$enable_pgp" = "yes"; then |
781 | + if test -z "$have_gpg"; then |
782 | + AC_MSG_ERROR([Appropriate version of GnuPG not found. Please install one of versions: $accepted_versions]) |
783 | + fi |
784 | + |
785 | + if test -z "$have_gpgme"; then |
786 | + AC_MSG_ERROR(GPGME $min_gpgme_version or later needed) |
787 | + fi |
788 | + |
789 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GPGME_CFLAGS" |
790 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $GPGME_LIBS" |
791 | + AC_DEFINE(WITH_PGP, 1, [With PGP Support]) |
792 | +fi |
793 | + |
794 | +AM_CONDITIONAL(WITH_PGP, test "$enable_pgp" = "yes") |
795 | + |
796 | +dnl ****************************************************************************** |
797 | +dnl LDAP [from gpg] |
798 | +dnl ****************************************************************************** |
799 | + |
800 | +AC_MSG_CHECKING([LDAP keyserver support]) |
801 | +AC_ARG_ENABLE(ldap, |
802 | +[ --disable-ldap disable LDAP keyserver interface], |
803 | + try_ldap=$enableval, try_ldap=yes) |
804 | + |
805 | +if test "$enable_pgp" != "yes"; then |
806 | + echo "LDAP keyserver interface requires PGP support" |
807 | + try_ldap=no |
808 | +fi |
809 | + |
810 | +AC_MSG_RESULT($try_ldap) |
811 | +with_ldap=no |
812 | + |
813 | +dnl Must check for network library requirements before doing link tests |
814 | +dnl for ldap, for example. If ldap libs are static (or dynamic and without |
815 | +dnl ELF runtime link paths), then link will fail and LDAP support won't |
816 | +dnl be detected. |
817 | + |
818 | +AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname, |
819 | + [NETLIBS="-lnsl $NETLIBS"])) |
820 | +AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt, |
821 | + [NETLIBS="-lsocket $NETLIBS"])) |
822 | + |
823 | +dnl Try and link a LDAP test program to weed out unusable LDAP |
824 | +dnl libraries. -lldap [-llber [-lresolv]] is for OpenLDAP. OpenLDAP in |
825 | +dnl general is terrible with creating weird dependencies. If all else |
826 | +dnl fails, the user can play guess-the-dependency by using something |
827 | +dnl like LDAP_LIBS="-lfoo" ./configure |
828 | + |
829 | +if test "$try_ldap" = yes ; then |
830 | + for MY_LDAPLIBS in ${LDAP_LIBS+"$LDAP_LIBS"} "-lldap -llber" "-lldap" "-lldap -llber -lresolv"; do |
831 | + _ldap_save_libs=$LIBS |
832 | + LIBS="$MY_LDAPLIBS $NETLIBS $LIBS" |
833 | + |
834 | + AC_MSG_CHECKING([whether LDAP via \"$MY_LDAPLIBS\" is present and sane]) |
835 | + AC_TRY_LINK([#include <ldap.h>],[ldap_open("foobar",1234); ber_free(NULL, 0);], |
836 | + [cv_func_ldap_init=yes],[cv_func_ldap_init=no]) |
837 | + AC_MSG_RESULT([$cv_func_ldap_init]) |
838 | + |
839 | + if test $cv_func_ldap_init = no; then |
840 | + AC_MSG_CHECKING([whether I can make LDAP be sane with lber.h]) |
841 | + AC_TRY_LINK([#include <lber.h> |
842 | +#include <ldap.h>],[ldap_open("foobar",1234);], |
843 | + [cv_func_ldaplber_init=yes],[cv_func_ldaplber_init=no]) |
844 | + AC_MSG_RESULT([$cv_func_ldaplber_init]) |
845 | + fi |
846 | + |
847 | + if test "$cv_func_ldaplber_init" = yes ; then |
848 | + AC_DEFINE(NEED_LBER_H,1,[Define if the LDAP library requires including lber.h before ldap.h]) |
849 | + fi |
850 | + |
851 | + if test "$cv_func_ldap_init" = yes || \ |
852 | + test "$cv_func_ldaplber_init" = yes ; then |
853 | + LDAP_LIBS=$MY_LDAPLIBS |
854 | + fi |
855 | + |
856 | + LIBS=$_ldap_save_libs |
857 | + |
858 | + if test "$LDAP_LIBS" != ""; then |
859 | + with_keyserver=yes |
860 | + with_ldap=yes |
861 | + AC_DEFINE(WITH_LDAP, 1, [Support for LDAP operations]) |
862 | + break |
863 | + fi |
864 | + done |
865 | +fi |
866 | + |
867 | +AM_CONDITIONAL(WITH_LDAP, test "$with_ldap" = "yes") |
868 | +SEAHORSE_LIBS="$SEAHORSE_LIBS $LDAP_LIBS" |
869 | + |
870 | +AC_SUBST(NETLIBS) |
871 | + |
872 | + |
873 | +dnl **************************************************************************** |
874 | +dnl HKP (libsoup) |
875 | +dnl **************************************************************************** |
876 | + |
877 | +# Allow hkp to be disabled |
878 | +AC_ARG_ENABLE(hkp, |
879 | + AC_HELP_STRING([--disable-hkp], |
880 | + [disable HKP keyserver interface])) |
881 | + |
882 | +# HKP tests |
883 | +if test "$enable_pgp" != "yes"; then |
884 | + echo "HKP keyserver interface requires PGP support" |
885 | + enable_hkp=no |
886 | +fi |
887 | + |
888 | +if test "$enable_hkp" = "no"; then |
889 | + echo "disabling HKP keyserver interface" |
890 | +else |
891 | + |
892 | + echo "checking for supported versions of libsoup..." |
893 | + |
894 | + PKG_CHECK_MODULES(SOUP, libsoup-2.4, |
895 | + [enable_hkp=yes], |
896 | + [enable_hkp=no]) |
897 | + |
898 | + if test "$enable_hkp" = yes; then |
899 | + with_keyserver=yes |
900 | + |
901 | + AC_DEFINE(WITH_HKP, 1, [Support for HKP operations]) |
902 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $SOUP_LIBS" |
903 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $SOUP_CFLAGS" |
904 | + |
905 | + # libsoup is also used for async lookups |
906 | + AC_DEFINE(WITH_SOUP, 1, [With libsoup]) |
907 | + fi |
908 | +fi |
909 | + |
910 | +AM_CONDITIONAL(WITH_HKP, test "$enable_hkp" = "yes") |
911 | + |
912 | + |
913 | +dnl *************** |
914 | +dnl KEYSERVER |
915 | +dnl *************** |
916 | + |
917 | +AM_CONDITIONAL(WITH_KEYSERVER, test "$with_keyserver" = "yes") |
918 | + |
919 | +if test "$with_keyserver" = "yes"; then |
920 | + echo "enabling key server support" |
921 | + AC_DEFINE(WITH_KEYSERVER, 1, [Support for key server actions]) |
922 | +else |
923 | + with_keyserver=no |
924 | + echo "disabling key server support" |
925 | +fi |
926 | + |
927 | + |
928 | +dnl **************************************************************************** |
929 | +dnl GNOME-KEYRING |
930 | +dnl **************************************************************************** |
931 | + |
932 | +PKG_CHECK_MODULES([GNOME_KEYRING], gnome-keyring-1 >= 2.25.5, |
933 | + [enable_gnome_keyring=yes],[enable_gnome_keyring=no]) |
934 | + |
935 | +if test "$enable_gnome_keyring" = "no"; then |
936 | + AC_MSG_ERROR([gnome-keyring library or headers not found.]) |
937 | +fi |
938 | + |
939 | +SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GNOME_KEYRING_CFLAGS" |
940 | +SEAHORSE_LIBS="$SEAHORSE_LIBS $GNOME_KEYRING_LIBS" |
941 | + |
942 | + |
943 | +dnl ******************* |
944 | +dnl KEY SHARING |
945 | +dnl ******************* |
946 | + |
947 | +AVAHI_GLIB_REQUIRED=0.6 |
948 | + |
949 | +# Allow sharing to be disabled |
950 | +AC_ARG_ENABLE(sharing, |
951 | + AC_HELP_STRING([--disable-sharing], |
952 | + [Don't compile in DNS-SD key sharing])) |
953 | + |
954 | +if test "$enable_pgp" != "yes"; then |
955 | + echo "DNS-SD key sharing requires PGP support" |
956 | + enable_sharing=no |
957 | +fi |
958 | + |
959 | +if test "$enable_hkp" = "no"; then |
960 | + echo "DNS-SD key sharing requires HKP support" |
961 | + enable_sharing=no |
962 | +fi |
963 | + |
964 | +if test "$enable_sharing" = "no"; then |
965 | + echo "disabling DNS-SD key sharing" |
966 | +else |
967 | + |
968 | + PKG_CHECK_MODULES(SHARING, avahi-client avahi-glib >= $AVAHI_GLIB_REQUIRED, |
969 | + [enable_sharing=yes], |
970 | + [enable_sharing=no]) |
971 | + |
972 | + if test "$enable_sharing" = "yes"; then |
973 | + echo "enabling key sharing" |
974 | + |
975 | + AC_DEFINE_UNQUOTED(WITH_SHARING, 1, [Compile bonjour key sharing code]) |
976 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $SHARING_CFLAGS" |
977 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $SHARING_LIBS" |
978 | + fi |
979 | +fi |
980 | + |
981 | +AM_CONDITIONAL(WITH_SHARING, test "$enable_sharing" = "yes") |
982 | + |
983 | +dnl **************************************************************************** |
984 | +dnl PKCS11 |
985 | +dnl **************************************************************************** |
986 | + |
987 | +AC_ARG_ENABLE(pkcs11, |
988 | + AC_HELP_STRING([--disable-pkcs11], |
989 | + [Support keys and certificates via PKCS#11])) |
990 | + |
991 | +if test "$enable_pkcs11" = "no"; then |
992 | + echo "disabling pkcs11 support" |
993 | + enable_pkcs11="no" |
994 | +else |
995 | + PKG_CHECK_MODULES(GCR, gcr-3 >= $GCR_REQUIRED, gcr_is_present="yes", gcr_is_present="no") |
996 | + if test "$gcr_is_present" = "no"; then |
997 | + echo "disabling pkcs11 support" |
998 | + fi |
999 | + PKG_CHECK_MODULES(GCK, gck-1 >= 3.1.2, enable_pkcs11="yes", enable_pkcs11="no") |
1000 | + if test "$enable_pkcs11" = "yes" && test "$gcr_is_present" = "yes"; then |
1001 | + AC_DEFINE(WITH_PKCS11, 1, [gck library available]) |
1002 | + SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GCK_CFLAGS $GCR_CFLAGS" |
1003 | + SEAHORSE_LIBS="$SEAHORSE_LIBS $GCK_LIBS $GCR_LIBS" |
1004 | + else |
1005 | + enable_pkcs11="no" |
1006 | + fi |
1007 | +fi |
1008 | + |
1009 | +AM_CONDITIONAL(WITH_PKCS11, test "$enable_pkcs11" = "yes") |
1010 | + |
1011 | +dnl **************************************************************************** |
1012 | +dnl SSH |
1013 | +dnl **************************************************************************** |
1014 | + |
1015 | +AC_ARG_ENABLE(ssh, |
1016 | + AC_HELP_STRING([--disable-ssh], |
1017 | + [Support for managing SSH keys])) |
1018 | + |
1019 | +if test "x$enable_ssh" = "xno"; then |
1020 | + echo "disabling ssh support" |
1021 | +else |
1022 | + |
1023 | + AC_PATH_PROG(SSH_KEYGEN_PATH, ssh-keygen, "failed") |
1024 | + AC_PATH_PROG(SSH_PATH, ssh, "failed") |
1025 | + |
1026 | + if test $SSH_KEYGEN_PATH != "failed" && |
1027 | + test $SSH_PATH != "failed"; then |
1028 | + enable_ssh="yes" |
1029 | + AC_DEFINE(WITH_SSH, 1, [With SSH Support]) |
1030 | + AC_DEFINE_UNQUOTED(SSH_KEYGEN_PATH, "$SSH_KEYGEN_PATH", [Path to ssh-keygen]) |
1031 | + AC_DEFINE_UNQUOTED(SSH_PATH, "$SSH_PATH", [Path to ssh]) |
1032 | + fi |
1033 | + |
1034 | +fi |
1035 | + |
1036 | +AM_CONDITIONAL(WITH_SSH, test "$enable_ssh" = "yes") |
1037 | + |
1038 | +# ----------------------------------------------------------------------------- |
1039 | +# Debug mode |
1040 | +# |
1041 | + |
1042 | +AC_MSG_CHECKING([for debug mode]) |
1043 | +AC_ARG_ENABLE(debug, |
1044 | + AC_HELP_STRING([--enable-debug=no/yes/full], |
1045 | + [Turn on or off debugging])) |
1046 | + |
1047 | +if test "$enable_debug" != "no"; then |
1048 | + AC_DEFINE_UNQUOTED(WITH_DEBUG, 1, [Print debug output]) |
1049 | + AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode]) |
1050 | +fi |
1051 | + |
1052 | +if test "$enable_debug" = "full"; then |
1053 | + debug_status="full" |
1054 | + CFLAGS="$CFLAGS -g -O0 -Werror" |
1055 | + CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED" |
1056 | + CFLAGS="$CFLAGS -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" |
1057 | +elif test "$enable_debug" = "no"; then |
1058 | + debug_status="no" |
1059 | + AC_DEFINE_UNQUOTED(G_DISABLE_ASSERT, 1, [Disable glib assertions]) |
1060 | +else |
1061 | + debug_status="yes" |
1062 | +fi |
1063 | + |
1064 | +AC_MSG_RESULT($debug_status) |
1065 | + |
1066 | +# Fatal Messages mode |
1067 | +AC_ARG_ENABLE(fatal-messages, |
1068 | + AC_HELP_STRING([--enable-fatal-messages], |
1069 | + [Don't make compile and or runtime messages fatal in debug mode.])) |
1070 | + |
1071 | +if test "$enable_fatal_messages" = "yes" && test "$enable_debug" = "yes"; then |
1072 | + CFLAGS="$CFLAGS -Wall -Werror" |
1073 | + AC_DEFINE_UNQUOTED(FATAL_MESSAGES, 1, [Fatal runtime messages]) |
1074 | + echo "enabling fatal runtime messages" |
1075 | +fi |
1076 | + |
1077 | +# Build Tests |
1078 | +AC_ARG_ENABLE(tests, |
1079 | + AC_HELP_STRING([--enable-tests], |
1080 | + [Compile Test Programs])) |
1081 | + |
1082 | +if test "$enable_tests" != "yes"; then |
1083 | + enable_tests="no" |
1084 | +fi |
1085 | + |
1086 | +AM_CONDITIONAL(WITH_TESTS, test "$enable_tests" = "yes") |
1087 | + |
1088 | +# ------------------------------------------------------------------- |
1089 | +# More warnings |
1090 | + |
1091 | +AC_MSG_CHECKING(for more warnings) |
1092 | +if test "$GCC" = "yes"; then |
1093 | + AC_MSG_RESULT(yes) |
1094 | + CFLAGS="\ |
1095 | + -Wall \ |
1096 | + -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ |
1097 | + -Wnested-externs -Wpointer-arith \ |
1098 | + -Wcast-align -Wsign-compare \ |
1099 | + $CFLAGS" |
1100 | + |
1101 | + for option in -Wno-strict-aliasing -Wno-sign-compare; do |
1102 | + SAVE_CFLAGS="$CFLAGS" |
1103 | + CFLAGS="$CFLAGS $option" |
1104 | + AC_MSG_CHECKING([whether gcc understands $option]) |
1105 | + AC_TRY_COMPILE([], [], |
1106 | + has_option=yes, |
1107 | + has_option=no,) |
1108 | + if test $has_option = no; then |
1109 | + CFLAGS="$SAVE_CFLAGS" |
1110 | + fi |
1111 | + AC_MSG_RESULT($has_option) |
1112 | + unset has_option |
1113 | + unset SAVE_CFLAGS |
1114 | + done |
1115 | + unset option |
1116 | +else |
1117 | + AC_MSG_RESULT(no) |
1118 | +fi |
1119 | + |
1120 | +dnl **************************************************************************** |
1121 | + |
1122 | +AC_SUBST(SEAHORSE_CFLAGS) |
1123 | +AC_SUBST(SEAHORSE_LIBS) |
1124 | + |
1125 | +AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
1126 | + |
1127 | +AC_ARG_ENABLE(update-mime-database, |
1128 | + AC_HELP_STRING([--disable-update-mime-database], |
1129 | + [do not run the update-mime-database utility (mostly useful for package maintainers) ])) |
1130 | +AM_CONDITIONAL(UPDATE_MIME_DATABASE, test "$enable_update_mime_database" != "no") |
1131 | + |
1132 | +dnl ******************* |
1133 | +dnl ***** gettext ***** |
1134 | +dnl ******************* |
1135 | + |
1136 | +GETTEXT_PACKAGE=seahorse |
1137 | +AC_SUBST(GETTEXT_PACKAGE) |
1138 | +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext domain.]) |
1139 | + |
1140 | +AM_GLIB_GNU_GETTEXT |
1141 | + |
1142 | +dnl **************************************************************************** |
1143 | +## here we get the flags we'll actually use |
1144 | +PKG_CHECK_MODULES(EGG, gtk+-3.0 >= $GTK_REQUIRED) |
1145 | +AC_SUBST(EGG_LIBS) |
1146 | +AC_SUBST(EGG_CFLAGS) |
1147 | + |
1148 | +PKG_CHECK_MODULES(EGG_SMCLIENT, gtk+-3.0) |
1149 | +AC_SUBST(EGG_SMCLIENT_LIBS) |
1150 | +AC_SUBST(EGG_SMCLIENT_CFLAGS) |
1151 | + |
1152 | +dnl **************************************************************************** |
1153 | + |
1154 | +AC_OUTPUT([ |
1155 | +Makefile |
1156 | +gkr/Makefile |
1157 | +libegg/Makefile |
1158 | +libseahorse/Makefile |
1159 | +pgp/Makefile |
1160 | +po/Makefile.in |
1161 | +help/Makefile |
1162 | +data/Makefile |
1163 | +data/icons/Makefile |
1164 | +pixmaps/Makefile |
1165 | +pixmaps/22x22/Makefile |
1166 | +pixmaps/48x48/Makefile |
1167 | +pixmaps/scalable/Makefile |
1168 | +pkcs11/Makefile |
1169 | +src/Makefile |
1170 | +src/seahorse.desktop.in |
1171 | +ssh/Makefile |
1172 | +]) |
1173 | + |
1174 | +dnl **************************************************************************** |
1175 | +dnl SUMMARY |
1176 | +dnl **************************************************************************** |
1177 | + |
1178 | +echo " |
1179 | +PKCS11 Support: $enable_pkcs11 |
1180 | +PGP Support: $enable_pgp |
1181 | + GnuPG Version: $have_gpg |
1182 | + GPGME Version: $have_gpgme |
1183 | +SSH Support: $enable_ssh |
1184 | +Keyserver Support: $with_keyserver |
1185 | + LDAP: $with_ldap |
1186 | + HKP: $enable_hkp |
1187 | + Key Sharing: $enable_sharing |
1188 | +" |
1189 | +>>>>>>> MERGE-SOURCE |
1190 | |
1191 | === modified file 'debian/control' |
1192 | --- debian/control 2011-11-14 11:44:04 +0000 |
1193 | +++ debian/control 2011-11-15 07:19:27 +0000 |
1194 | @@ -1,3 +1,4 @@ |
1195 | +<<<<<<< TREE |
1196 | # This file is autogenerated. DO NOT EDIT! |
1197 | # |
1198 | # Modifications should be made to debian/control.in instead. |
1199 | @@ -46,3 +47,53 @@ |
1200 | communications and data storage. Data encryption and digital signature |
1201 | creation can easily be performed through a GUI and Key Management |
1202 | operations can easily be carried out through an intuitive interface. |
1203 | +======= |
1204 | +# This file is autogenerated. DO NOT EDIT! |
1205 | +# |
1206 | +# Modifications should be made to debian/control.in instead. |
1207 | +# This file is regenerated automatically in the clean target. |
1208 | + |
1209 | +Source: seahorse |
1210 | +Section: gnome |
1211 | +Priority: optional |
1212 | +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
1213 | +XSBC-Original-Maintainer: Jose Carlos Garcia Sogo <jsogo@debian.org> |
1214 | +Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Jordi Mallach <jordi@debian.org>, Josselin Mouette <joss@debian.org>, Michael Biebl <biebl@debian.org> |
1215 | +Build-Depends: debhelper (>= 8), |
1216 | + cdbs (>= 0.4.41), |
1217 | + dh-autoreconf, |
1218 | + libgpgme11-dev (>= 1.0.0), |
1219 | + libgck-1-dev (>= 3.0.0), |
1220 | + libgcr-3-dev (>= 3.0.0), |
1221 | + intltool (>= 0.35), |
1222 | + libsoup2.4-dev, |
1223 | + libldap2-dev, |
1224 | + libavahi-glib-dev (>= 0.6), |
1225 | + libavahi-client-dev (>= 0.6), |
1226 | + gnome-doc-utils, |
1227 | + gtk-doc-tools (>= 1.9), |
1228 | + libgnome-keyring-dev (>= 3.0.0), |
1229 | + libglib2.0-dev (>= 2.10.0), |
1230 | + libgtk-3-dev (>= 2.90.0), |
1231 | + gnome-pkg-tools, |
1232 | + liblaunchpad-integration-3.0-dev |
1233 | +Build-Conflicts: gnupg2 |
1234 | +Standards-Version: 3.9.2 |
1235 | +Vcs-Bzr: https://code.launchpad.net/~ubuntu-desktop/seahorse/ubuntu |
1236 | +Homepage: http://live.gnome.org/Seahorse |
1237 | + |
1238 | +Package: seahorse |
1239 | +Architecture: any |
1240 | +Depends: ${shlibs:Depends}, |
1241 | + ${misc:Depends}, |
1242 | + gnupg (>= 1.4.7), |
1243 | + gnome-keyring (>> 3.1.90) |
1244 | +Recommends: openssh-client |
1245 | +Suggests: seahorse-plugins |
1246 | +Description: GNOME front end for GnuPG |
1247 | + Seahorse is a front end for GnuPG - the GNU Privacy Guard program - |
1248 | + that integrates to the GNOME desktop. It is a tool for secure |
1249 | + communications and data storage. Data encryption and digital signature |
1250 | + creation can easily be performed through a GUI and Key Management |
1251 | + operations can easily be carried out through an intuitive interface. |
1252 | +>>>>>>> MERGE-SOURCE |