~ubuntu-branches/ubuntu/quantal/consolekit/quantal-updates

« back to all changes in this revision

Viewing changes to debian/patches/99-autoreconf.patch

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-10-13 12:28:33 UTC
  • mfrom: (0.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20101013122833-i43tbcnvjs3jiynv
Tags: 0.4.2-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - 10-retry_console_open_eio.patch: Retry console opens if they return
    EIO, since this may happen while a tty is closing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Index: consolekit/aclocal.m4
2
2
===================================================================
3
 
--- consolekit.orig/aclocal.m4  2009-11-04 19:45:33.562022249 +0100
4
 
+++ consolekit/aclocal.m4       2009-11-04 19:44:43.682021633 +0100
5
 
@@ -2933,6 +2933,18 @@
 
3
--- consolekit.orig/aclocal.m4  2010-09-20 03:08:40.997095837 +0200
 
4
+++ consolekit/aclocal.m4       2010-09-20 03:07:49.397100192 +0200
 
5
@@ -13,8 +13,8 @@
 
6
 
 
7
 m4_ifndef([AC_AUTOCONF_VERSION],
 
8
   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
9
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
 
10
-[m4_warning([this file was generated for autoconf 2.66.
 
11
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
 
12
+[m4_warning([this file was generated for autoconf 2.67.
 
13
 You have another version of autoconf.  It may work, but is not guaranteed to.
 
14
 If you have problems, you may need to regenerate the build system entirely.
 
15
 To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
16
@@ -2922,14 +2922,10 @@
 
17
   # before this can be enabled.
 
18
   hardcode_into_libs=yes
 
19
 
 
20
-  # Add ABI-specific directories to the system library path.
 
21
-  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
22
-
 
23
   # Append ld.so.conf contents to the search path
 
24
   if test -f /etc/ld.so.conf; then
 
25
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
26
-    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
27
-
 
28
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
29
   fi
 
30
 
 
31
   # We used to test for /lib/ld.so.1 and disable shared libraries on
 
32
@@ -2941,6 +2937,18 @@
6
33
   dynamic_linker='GNU/Linux ld.so'
7
34
   ;;
8
35
 
21
48
 netbsd*)
22
49
   version_type=sunos
23
50
   need_lib_prefix=no
24
 
@@ -3524,7 +3536,7 @@
 
51
@@ -3541,7 +3549,7 @@
25
52
   lt_cv_deplibs_check_method=pass_all
26
53
   ;;
27
54
 
30
57
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
31
58
     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
32
59
   else
33
 
@@ -4205,7 +4217,7 @@
 
60
@@ -4245,7 +4253,7 @@
34
61
            ;;
35
62
        esac
36
63
        ;;
39
66
        ;;
40
67
       *qnx* | *nto*)
41
68
         # QNX uses GNU C++, but need to define -shared option too, otherwise
42
 
@@ -4630,6 +4642,9 @@
 
69
@@ -4685,6 +4693,9 @@
43
70
   cygwin* | mingw* | cegcc*)
44
71
     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
45
72
   ;;
49
76
   *)
50
77
     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
51
78
   ;;
52
 
@@ -4694,6 +4709,9 @@
 
79
@@ -4749,6 +4760,9 @@
53
80
   openbsd*)
54
81
     with_gnu_ld=no
55
82
     ;;
59
86
   esac
60
87
 
61
88
   _LT_TAGVAR(ld_shlibs, $1)=yes
62
 
@@ -4876,7 +4894,7 @@
 
89
@@ -4970,7 +4984,7 @@
63
90
       fi
64
91
       ;;
65
92
 
68
95
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
69
96
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
70
97
        wlarc=
71
 
@@ -5051,6 +5069,7 @@
 
98
@@ -5147,6 +5161,7 @@
72
99
        if test "$aix_use_runtimelinking" = yes; then
73
100
          shared_flag="$shared_flag "'${wl}-G'
74
101
        fi
76
103
       else
77
104
        # not using gcc
78
105
        if test "$host_cpu" = ia64; then
79
 
@@ -5289,7 +5308,7 @@
 
106
@@ -5397,7 +5412,7 @@
80
107
       _LT_TAGVAR(link_all_deplibs, $1)=yes
81
108
       ;;
82
109
 
85
112
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
86
113
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
87
114
       else
88
 
@@ -8466,14 +8485,16 @@
89
 
 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
90
 
 # ---------------------------------------------
91
 
 m4_define([_PKG_CONFIG],
92
 
-[if test -n "$$1"; then
93
 
-    pkg_cv_[]$1="$$1"
94
 
- elif test -n "$PKG_CONFIG"; then
95
 
-    PKG_CHECK_EXISTS([$3],
96
 
-                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
97
 
-                    [pkg_failed=yes])
98
 
- else
99
 
-    pkg_failed=untried
100
 
+[if test -n "$PKG_CONFIG"; then
101
 
+    if test -n "$$1"; then
102
 
+        pkg_cv_[]$1="$$1"
103
 
+    else
104
 
+        PKG_CHECK_EXISTS([$3],
105
 
+                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
106
 
+                        [pkg_failed=yes])
107
 
+    fi
108
 
+else
109
 
+       pkg_failed=untried
110
 
 fi[]dnl
111
 
 ])# _PKG_CONFIG
112
 
 
113
 
@@ -8517,9 +8538,9 @@
114
 
 if test $pkg_failed = yes; then
115
 
         _PKG_SHORT_ERRORS_SUPPORTED
116
 
         if test $_pkg_short_errors_supported = yes; then
117
 
-               $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
118
 
+               $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
119
 
         else 
120
 
-               $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
121
 
+               $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
122
 
         fi
123
 
        # Put the nasty error message in config.log where it belongs
124
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
115
@@ -8626,7 +8641,7 @@
 
116
 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
117
 installed software in a non-standard prefix.
 
118
 
 
119
-_PKG_TEXT])
 
120
+_PKG_TEXT])dnl
 
121
         ])
 
122
 elif test $pkg_failed = untried; then
 
123
        AC_MSG_RESULT([no])
 
124
@@ -8637,7 +8652,7 @@
 
125
 
 
126
 _PKG_TEXT
 
127
 
 
128
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
129
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
 
130
         ])
 
131
 else
 
132
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
125
133
Index: consolekit/configure
126
134
===================================================================
127
 
--- consolekit.orig/configure   2009-11-04 19:45:33.214032944 +0100
128
 
+++ consolekit/configure        2009-11-04 19:44:55.010015927 +0100
129
 
@@ -805,6 +805,8 @@
 
135
--- consolekit.orig/configure   2010-09-20 03:08:41.721090604 +0200
 
136
+++ consolekit/configure        2010-09-20 03:07:57.305091267 +0200
 
137
@@ -1,6 +1,6 @@
 
138
 #! /bin/sh
 
139
 # Guess values for system-dependent variables and create Makefiles.
 
140
-# Generated by GNU Autoconf 2.66 for ConsoleKit 0.4.2.
 
141
+# Generated by GNU Autoconf 2.67 for ConsoleKit 0.4.2.
 
142
 #
 
143
 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=ConsoleKit>.
 
144
 #
 
145
@@ -629,6 +629,8 @@
130
146
 HAVE_PAM_FALSE
131
147
 HAVE_PAM_TRUE
132
148
 CK_BACKEND
135
151
 CK_COMPILE_SOLARIS_FALSE
136
152
 CK_COMPILE_SOLARIS_TRUE
137
153
 CK_COMPILE_FREEBSD_FALSE
138
 
@@ -6277,13 +6279,13 @@
139
 
 else
140
 
   lt_cv_nm_interface="BSD nm"
141
 
   echo "int some_variable = 0;" > conftest.$ac_ext
142
 
-  (eval echo "\"\$as_me:6280: $ac_compile\"" >&5)
143
 
+  (eval echo "\"\$as_me:6282: $ac_compile\"" >&5)
144
 
   (eval "$ac_compile" 2>conftest.err)
145
 
   cat conftest.err >&5
146
 
-  (eval echo "\"\$as_me:6283: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
147
 
+  (eval echo "\"\$as_me:6285: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
148
 
   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
149
 
   cat conftest.err >&5
150
 
-  (eval echo "\"\$as_me:6286: output\"" >&5)
151
 
+  (eval echo "\"\$as_me:6288: output\"" >&5)
152
 
   cat conftest.out >&5
153
 
   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
154
 
     lt_cv_nm_interface="MS dumpbin"
155
 
@@ -6753,7 +6755,7 @@
 
154
@@ -895,8 +897,9 @@
 
155
   fi
 
156
 
 
157
   case $ac_option in
 
158
-  *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
159
-  *)   ac_optarg=yes ;;
 
160
+  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
161
+  *=)   ac_optarg= ;;
 
162
+  *)    ac_optarg=yes ;;
 
163
   esac
 
164
 
 
165
   # Accept the important Cygnus configure options, so we can diagnose typos.
 
166
@@ -1591,7 +1594,7 @@
 
167
 if $ac_init_version; then
 
168
   cat <<\_ACEOF
 
169
 ConsoleKit configure 0.4.2
 
170
-generated by GNU Autoconf 2.66
 
171
+generated by GNU Autoconf 2.67
 
172
 
 
173
 Copyright (C) 2010 Free Software Foundation, Inc.
 
174
 This configure script is free software; the Free Software Foundation
 
175
@@ -1663,7 +1666,7 @@
 
176
     mv -f conftest.er1 conftest.err
 
177
   fi
 
178
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
179
-  test $ac_status = 0; } >/dev/null && {
 
180
+  test $ac_status = 0; } > conftest.i && {
 
181
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
182
         test ! -s conftest.err
 
183
        }; then :
 
184
@@ -1726,7 +1729,7 @@
 
185
 else
 
186
   ac_header_preproc=no
 
187
 fi
 
188
-rm -f conftest.err conftest.$ac_ext
 
189
+rm -f conftest.err conftest.i conftest.$ac_ext
 
190
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
191
 $as_echo "$ac_header_preproc" >&6; }
 
192
 
 
193
@@ -1960,7 +1963,7 @@
 
194
 running configure, to aid debugging if configure makes a mistake.
 
195
 
 
196
 It was created by ConsoleKit $as_me 0.4.2, which was
 
197
-generated by GNU Autoconf 2.66.  Invocation command line was
 
198
+generated by GNU Autoconf 2.67.  Invocation command line was
 
199
 
 
200
   $ $0 $@
 
201
 
 
202
@@ -2218,7 +2221,7 @@
 
203
       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
204
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
205
 as_fn_error $? "failed to load site script $ac_site_file
 
206
-See \`config.log' for more details" "$LINENO" 5; }
 
207
+See \`config.log' for more details" "$LINENO" 5 ; }
 
208
   fi
 
209
 done
 
210
 
 
211
@@ -2445,11 +2448,11 @@
 
212
 '
 
213
 case `pwd` in
 
214
   *[\\\"\#\$\&\'\`$am_lf]*)
 
215
-    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
216
+    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
217
 esac
 
218
 case $srcdir in
 
219
   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
 
220
-    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
221
+    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
222
 esac
 
223
 
 
224
 # Do `set' in a subshell so we don't clobber the current shell's
 
225
@@ -3217,7 +3220,7 @@
 
226
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
227
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
228
 as_fn_error $? "no acceptable C compiler found in \$PATH
 
229
-See \`config.log' for more details" "$LINENO" 5; }
 
230
+See \`config.log' for more details" "$LINENO" 5 ; }
 
231
 
 
232
 # Provide some information about the compiler.
 
233
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
234
@@ -3332,7 +3335,7 @@
 
235
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
236
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
237
 as_fn_error 77 "C compiler cannot create executables
 
238
-See \`config.log' for more details" "$LINENO" 5; }
 
239
+See \`config.log' for more details" "$LINENO" 5 ; }
 
240
 else
 
241
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
242
 $as_echo "yes" >&6; }
 
243
@@ -3375,7 +3378,7 @@
 
244
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
245
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
246
 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
247
-See \`config.log' for more details" "$LINENO" 5; }
 
248
+See \`config.log' for more details" "$LINENO" 5 ; }
 
249
 fi
 
250
 rm -f conftest conftest$ac_cv_exeext
 
251
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
252
@@ -3434,7 +3437,7 @@
 
253
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
254
 as_fn_error $? "cannot run C compiled programs.
 
255
 If you meant to cross compile, use \`--host'.
 
256
-See \`config.log' for more details" "$LINENO" 5; }
 
257
+See \`config.log' for more details" "$LINENO" 5 ; }
 
258
     fi
 
259
   fi
 
260
 fi
 
261
@@ -3486,7 +3489,7 @@
 
262
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
263
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
264
 as_fn_error $? "cannot compute suffix of object files: cannot compile
 
265
-See \`config.log' for more details" "$LINENO" 5; }
 
266
+See \`config.log' for more details" "$LINENO" 5 ; }
 
267
 fi
 
268
 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
269
 fi
 
270
@@ -3876,7 +3879,7 @@
 
271
   # Broken: fails on valid input.
 
272
 continue
 
273
 fi
 
274
-rm -f conftest.err conftest.$ac_ext
 
275
+rm -f conftest.err conftest.i conftest.$ac_ext
 
276
 
 
277
   # OK, works on sane cases.  Now check whether nonexistent headers
 
278
   # can be detected and how.
 
279
@@ -3892,11 +3895,11 @@
 
280
 ac_preproc_ok=:
 
281
 break
 
282
 fi
 
283
-rm -f conftest.err conftest.$ac_ext
 
284
+rm -f conftest.err conftest.i conftest.$ac_ext
 
285
 
 
286
 done
 
287
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
288
-rm -f conftest.err conftest.$ac_ext
 
289
+rm -f conftest.i conftest.err conftest.$ac_ext
 
290
 if $ac_preproc_ok; then :
 
291
   break
 
292
 fi
 
293
@@ -3935,7 +3938,7 @@
 
294
   # Broken: fails on valid input.
 
295
 continue
 
296
 fi
 
297
-rm -f conftest.err conftest.$ac_ext
 
298
+rm -f conftest.err conftest.i conftest.$ac_ext
 
299
 
 
300
   # OK, works on sane cases.  Now check whether nonexistent headers
 
301
   # can be detected and how.
 
302
@@ -3951,18 +3954,18 @@
 
303
 ac_preproc_ok=:
 
304
 break
 
305
 fi
 
306
-rm -f conftest.err conftest.$ac_ext
 
307
+rm -f conftest.err conftest.i conftest.$ac_ext
 
308
 
 
309
 done
 
310
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
311
-rm -f conftest.err conftest.$ac_ext
 
312
+rm -f conftest.i conftest.err conftest.$ac_ext
 
313
 if $ac_preproc_ok; then :
 
314
 
 
315
 else
 
316
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
317
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
318
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
319
-See \`config.log' for more details" "$LINENO" 5; }
 
320
+See \`config.log' for more details" "$LINENO" 5 ; }
 
321
 fi
 
322
 
 
323
 ac_ext=c
 
324
@@ -4651,7 +4654,7 @@
 
325
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
326
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
327
 as_fn_error $? "no acceptable C compiler found in \$PATH
 
328
-See \`config.log' for more details" "$LINENO" 5; }
 
329
+See \`config.log' for more details" "$LINENO" 5 ; }
 
330
 
 
331
 # Provide some information about the compiler.
 
332
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
333
@@ -5207,7 +5210,7 @@
 
334
 $as_echo "$ac_cv_build" >&6; }
 
335
 case $ac_cv_build in
 
336
 *-*-*) ;;
 
337
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
338
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
339
 esac
 
340
 build=$ac_cv_build
 
341
 ac_save_IFS=$IFS; IFS='-'
 
342
@@ -5240,7 +5243,7 @@
 
343
 $as_echo "$ac_cv_host" >&6; }
 
344
 case $ac_cv_host in
 
345
 *-*-*) ;;
 
346
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
347
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
348
 esac
 
349
 host=$ac_cv_host
 
350
 ac_save_IFS=$IFS; IFS='-'
 
351
@@ -6278,7 +6281,7 @@
156
352
   lt_cv_deplibs_check_method=pass_all
157
353
   ;;
158
354
 
161
357
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
162
358
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
163
359
   else
164
 
@@ -7488,7 +7490,7 @@
165
 
   ;;
166
 
 *-*-irix6*)
167
 
   # Find out which ABI we are using.
168
 
-  echo '#line 7491 "configure"' > conftest.$ac_ext
169
 
+  echo '#line 7493 "configure"' > conftest.$ac_ext
170
 
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
171
 
   (eval $ac_compile) 2>&5
172
 
   ac_status=$?
173
 
@@ -8823,11 +8825,11 @@
174
 
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
175
 
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
176
 
    -e 's:$: $lt_compiler_flag:'`
177
 
-   (eval echo "\"\$as_me:8826: $lt_compile\"" >&5)
178
 
+   (eval echo "\"\$as_me:8828: $lt_compile\"" >&5)
179
 
    (eval "$lt_compile" 2>conftest.err)
180
 
    ac_status=$?
181
 
    cat conftest.err >&5
182
 
-   echo "$as_me:8830: \$? = $ac_status" >&5
183
 
+   echo "$as_me:8832: \$? = $ac_status" >&5
184
 
    if (exit $ac_status) && test -s "$ac_outfile"; then
185
 
      # The compiler can only warn and ignore the option if not recognized
186
 
      # So say no if there are warnings other than the usual output.
187
 
@@ -9162,11 +9164,11 @@
188
 
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
189
 
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
190
 
    -e 's:$: $lt_compiler_flag:'`
191
 
-   (eval echo "\"\$as_me:9165: $lt_compile\"" >&5)
192
 
+   (eval echo "\"\$as_me:9167: $lt_compile\"" >&5)
193
 
    (eval "$lt_compile" 2>conftest.err)
194
 
    ac_status=$?
195
 
    cat conftest.err >&5
196
 
-   echo "$as_me:9169: \$? = $ac_status" >&5
197
 
+   echo "$as_me:9171: \$? = $ac_status" >&5
198
 
    if (exit $ac_status) && test -s "$ac_outfile"; then
199
 
      # The compiler can only warn and ignore the option if not recognized
200
 
      # So say no if there are warnings other than the usual output.
201
 
@@ -9267,11 +9269,11 @@
202
 
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
203
 
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
204
 
    -e 's:$: $lt_compiler_flag:'`
205
 
-   (eval echo "\"\$as_me:9270: $lt_compile\"" >&5)
206
 
+   (eval echo "\"\$as_me:9272: $lt_compile\"" >&5)
207
 
    (eval "$lt_compile" 2>out/conftest.err)
208
 
    ac_status=$?
209
 
    cat out/conftest.err >&5
210
 
-   echo "$as_me:9274: \$? = $ac_status" >&5
211
 
+   echo "$as_me:9276: \$? = $ac_status" >&5
212
 
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
213
 
    then
214
 
      # The compiler can only warn and ignore the option if not recognized
215
 
@@ -9322,11 +9324,11 @@
216
 
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
217
 
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
218
 
    -e 's:$: $lt_compiler_flag:'`
219
 
-   (eval echo "\"\$as_me:9325: $lt_compile\"" >&5)
220
 
+   (eval echo "\"\$as_me:9327: $lt_compile\"" >&5)
221
 
    (eval "$lt_compile" 2>out/conftest.err)
222
 
    ac_status=$?
223
 
    cat out/conftest.err >&5
224
 
-   echo "$as_me:9329: \$? = $ac_status" >&5
225
 
+   echo "$as_me:9331: \$? = $ac_status" >&5
226
 
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
227
 
    then
228
 
      # The compiler can only warn and ignore the option if not recognized
229
 
@@ -9441,6 +9443,9 @@
 
360
@@ -8894,6 +8897,9 @@
230
361
   openbsd*)
231
362
     with_gnu_ld=no
232
363
     ;;
236
367
   esac
237
368
 
238
369
   ld_shlibs=yes
239
 
@@ -9623,7 +9628,7 @@
 
370
@@ -9115,7 +9121,7 @@
240
371
       fi
241
372
       ;;
242
373
 
245
376
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
246
377
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
247
378
        wlarc=
248
 
@@ -9798,6 +9803,7 @@
 
379
@@ -9292,6 +9298,7 @@
249
380
        if test "$aix_use_runtimelinking" = yes; then
250
381
          shared_flag="$shared_flag "'${wl}-G'
251
382
        fi
253
384
       else
254
385
        # not using gcc
255
386
        if test "$host_cpu" = ia64; then
256
 
@@ -10212,7 +10218,7 @@
 
387
@@ -9666,7 +9673,7 @@
257
388
       link_all_deplibs=yes
258
389
       ;;
259
390
 
262
393
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
263
394
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
264
395
       else
265
 
@@ -11189,6 +11195,18 @@
 
396
@@ -10628,14 +10635,10 @@
 
397
   # before this can be enabled.
 
398
   hardcode_into_libs=yes
 
399
 
 
400
-  # Add ABI-specific directories to the system library path.
 
401
-  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
402
-
 
403
   # Append ld.so.conf contents to the search path
 
404
   if test -f /etc/ld.so.conf; then
 
405
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
406
-    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
407
-
 
408
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
409
   fi
 
410
 
 
411
   # We used to test for /lib/ld.so.1 and disable shared libraries on
 
412
@@ -10647,6 +10650,18 @@
266
413
   dynamic_linker='GNU/Linux ld.so'
267
414
   ;;
268
415
 
281
428
 netbsd*)
282
429
   version_type=sunos
283
430
   need_lib_prefix=no
284
 
@@ -12122,7 +12140,7 @@
285
 
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
286
 
   lt_status=$lt_dlunknown
287
 
   cat > conftest.$ac_ext <<_LT_EOF
288
 
-#line 12125 "configure"
289
 
+#line 12143 "configure"
290
 
 #include "confdefs.h"
291
 
 
292
 
 #if HAVE_DLFCN_H
293
 
@@ -12218,7 +12236,7 @@
294
 
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
295
 
   lt_status=$lt_dlunknown
296
 
   cat > conftest.$ac_ext <<_LT_EOF
297
 
-#line 12221 "configure"
298
 
+#line 12239 "configure"
299
 
 #include "confdefs.h"
300
 
 
301
 
 #if HAVE_DLFCN_H
302
 
@@ -15109,10 +15127,11 @@
303
 
 { $as_echo "$as_me:$LINENO: checking for CONSOLE_KIT" >&5
304
 
 $as_echo_n "checking for CONSOLE_KIT... " >&6; }
305
 
 
306
 
-if test -n "$CONSOLE_KIT_CFLAGS"; then
307
 
-    pkg_cv_CONSOLE_KIT_CFLAGS="$CONSOLE_KIT_CFLAGS"
308
 
- elif test -n "$PKG_CONFIG"; then
309
 
-    if test -n "$PKG_CONFIG" && \
310
 
+if test -n "$PKG_CONFIG"; then
311
 
+    if test -n "$CONSOLE_KIT_CFLAGS"; then
312
 
+        pkg_cv_CONSOLE_KIT_CFLAGS="$CONSOLE_KIT_CFLAGS"
313
 
+    else
314
 
+        if test -n "$PKG_CONFIG" && \
315
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= \$DBUS_REQUIRED_VERSION
316
 
   gobject-2.0 >= \$GLIB_REQUIRED_VERSION
317
 
   gthread-2.0 >= \$GLIB_REQUIRED_VERSION
318
 
@@ -15131,13 +15150,15 @@
319
 
 else
320
 
   pkg_failed=yes
321
 
 fi
322
 
- else
323
 
-    pkg_failed=untried
324
 
+    fi
325
 
+else
326
 
+       pkg_failed=untried
327
 
 fi
328
 
-if test -n "$CONSOLE_KIT_LIBS"; then
329
 
-    pkg_cv_CONSOLE_KIT_LIBS="$CONSOLE_KIT_LIBS"
330
 
- elif test -n "$PKG_CONFIG"; then
331
 
-    if test -n "$PKG_CONFIG" && \
332
 
+if test -n "$PKG_CONFIG"; then
333
 
+    if test -n "$CONSOLE_KIT_LIBS"; then
334
 
+        pkg_cv_CONSOLE_KIT_LIBS="$CONSOLE_KIT_LIBS"
335
 
+    else
336
 
+        if test -n "$PKG_CONFIG" && \
337
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= \$DBUS_REQUIRED_VERSION
338
 
   gobject-2.0 >= \$GLIB_REQUIRED_VERSION
339
 
   gthread-2.0 >= \$GLIB_REQUIRED_VERSION
340
 
@@ -15156,8 +15177,9 @@
341
 
 else
342
 
   pkg_failed=yes
343
 
 fi
344
 
- else
345
 
-    pkg_failed=untried
346
 
+    fi
347
 
+else
348
 
+       pkg_failed=untried
349
 
 fi
350
 
 
351
 
 
352
 
@@ -15170,15 +15192,15 @@
353
 
         _pkg_short_errors_supported=no
354
 
 fi
355
 
         if test $_pkg_short_errors_supported = yes; then
356
 
-               CONSOLE_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1 >= $DBUS_REQUIRED_VERSION
357
 
+               CONSOLE_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_REQUIRED_VERSION
358
 
   gobject-2.0 >= $GLIB_REQUIRED_VERSION
359
 
   gthread-2.0 >= $GLIB_REQUIRED_VERSION
360
 
-" 2>&1`
361
 
+"`
362
 
         else
363
 
-               CONSOLE_KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1 >= $DBUS_REQUIRED_VERSION
364
 
+               CONSOLE_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_REQUIRED_VERSION
365
 
   gobject-2.0 >= $GLIB_REQUIRED_VERSION
366
 
   gthread-2.0 >= $GLIB_REQUIRED_VERSION
367
 
-" 2>&1`
368
 
+"`
369
 
         fi
370
 
        # Put the nasty error message in config.log where it belongs
371
 
        echo "$CONSOLE_KIT_PKG_ERRORS" >&5
372
 
@@ -15249,10 +15271,11 @@
373
 
 { $as_echo "$as_me:$LINENO: checking for POLKIT" >&5
374
 
 $as_echo_n "checking for POLKIT... " >&6; }
375
 
 
376
 
-if test -n "$POLKIT_CFLAGS"; then
377
 
-    pkg_cv_POLKIT_CFLAGS="$POLKIT_CFLAGS"
378
 
- elif test -n "$PKG_CONFIG"; then
379
 
-    if test -n "$PKG_CONFIG" && \
380
 
+if test -n "$PKG_CONFIG"; then
381
 
+    if test -n "$POLKIT_CFLAGS"; then
382
 
+        pkg_cv_POLKIT_CFLAGS="$POLKIT_CFLAGS"
383
 
+    else
384
 
+        if test -n "$PKG_CONFIG" && \
385
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"polkit-gobject-1 >= \$POLKIT_REQUIRED_VERSION\"") >&5
386
 
   ($PKG_CONFIG --exists --print-errors "polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION") 2>&5
387
 
   ac_status=$?
388
 
@@ -15262,13 +15285,15 @@
389
 
 else
390
 
   pkg_failed=yes
391
 
 fi
392
 
- else
393
 
-    pkg_failed=untried
394
 
+    fi
395
 
+else
396
 
+       pkg_failed=untried
397
 
 fi
398
 
-if test -n "$POLKIT_LIBS"; then
399
 
-    pkg_cv_POLKIT_LIBS="$POLKIT_LIBS"
400
 
- elif test -n "$PKG_CONFIG"; then
401
 
-    if test -n "$PKG_CONFIG" && \
402
 
+if test -n "$PKG_CONFIG"; then
403
 
+    if test -n "$POLKIT_LIBS"; then
404
 
+        pkg_cv_POLKIT_LIBS="$POLKIT_LIBS"
405
 
+    else
406
 
+        if test -n "$PKG_CONFIG" && \
407
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"polkit-gobject-1 >= \$POLKIT_REQUIRED_VERSION\"") >&5
408
 
   ($PKG_CONFIG --exists --print-errors "polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION") 2>&5
409
 
   ac_status=$?
410
 
@@ -15278,8 +15303,9 @@
411
 
 else
412
 
   pkg_failed=yes
413
 
 fi
414
 
- else
415
 
-    pkg_failed=untried
416
 
+    fi
417
 
+else
418
 
+       pkg_failed=untried
419
 
 fi
420
 
 
421
 
 
422
 
@@ -15292,9 +15318,9 @@
423
 
         _pkg_short_errors_supported=no
424
 
 fi
425
 
         if test $_pkg_short_errors_supported = yes; then
426
 
-               POLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION" 2>&1`
427
 
+               POLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION"`
428
 
         else
429
 
-               POLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION" 2>&1`
430
 
+               POLKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION"`
431
 
         fi
432
 
        # Put the nasty error message in config.log where it belongs
433
 
        echo "$POLKIT_PKG_ERRORS" >&5
434
 
@@ -15333,10 +15359,11 @@
435
 
 { $as_echo "$as_me:$LINENO: checking for LIBDBUS" >&5
436
 
 $as_echo_n "checking for LIBDBUS... " >&6; }
437
 
 
438
 
-if test -n "$LIBDBUS_CFLAGS"; then
439
 
-    pkg_cv_LIBDBUS_CFLAGS="$LIBDBUS_CFLAGS"
440
 
- elif test -n "$PKG_CONFIG"; then
441
 
-    if test -n "$PKG_CONFIG" && \
442
 
+if test -n "$PKG_CONFIG"; then
443
 
+    if test -n "$LIBDBUS_CFLAGS"; then
444
 
+        pkg_cv_LIBDBUS_CFLAGS="$LIBDBUS_CFLAGS"
445
 
+    else
446
 
+        if test -n "$PKG_CONFIG" && \
447
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_REQUIRED_VERSION
448
 
 \"") >&5
449
 
   ($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION
450
 
@@ -15349,13 +15376,15 @@
451
 
 else
452
 
   pkg_failed=yes
453
 
 fi
454
 
- else
455
 
-    pkg_failed=untried
456
 
+    fi
457
 
+else
458
 
+       pkg_failed=untried
459
 
 fi
460
 
-if test -n "$LIBDBUS_LIBS"; then
461
 
-    pkg_cv_LIBDBUS_LIBS="$LIBDBUS_LIBS"
462
 
- elif test -n "$PKG_CONFIG"; then
463
 
-    if test -n "$PKG_CONFIG" && \
464
 
+if test -n "$PKG_CONFIG"; then
465
 
+    if test -n "$LIBDBUS_LIBS"; then
466
 
+        pkg_cv_LIBDBUS_LIBS="$LIBDBUS_LIBS"
467
 
+    else
468
 
+        if test -n "$PKG_CONFIG" && \
469
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_REQUIRED_VERSION
470
 
 \"") >&5
471
 
   ($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION
472
 
@@ -15368,8 +15397,9 @@
473
 
 else
474
 
   pkg_failed=yes
475
 
 fi
476
 
- else
477
 
-    pkg_failed=untried
478
 
+    fi
479
 
+else
480
 
+       pkg_failed=untried
481
 
 fi
482
 
 
483
 
 
484
 
@@ -15382,11 +15412,11 @@
485
 
         _pkg_short_errors_supported=no
486
 
 fi
487
 
         if test $_pkg_short_errors_supported = yes; then
488
 
-               LIBDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION
489
 
-" 2>&1`
490
 
+               LIBDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION
491
 
+"`
492
 
         else
493
 
-               LIBDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION
494
 
-" 2>&1`
495
 
+               LIBDBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION
496
 
+"`
497
 
         fi
498
 
        # Put the nasty error message in config.log where it belongs
499
 
        echo "$LIBDBUS_PKG_ERRORS" >&5
500
 
@@ -15452,10 +15482,11 @@
501
 
 { $as_echo "$as_me:$LINENO: checking for TOOLS" >&5
502
 
 $as_echo_n "checking for TOOLS... " >&6; }
503
 
 
504
 
-if test -n "$TOOLS_CFLAGS"; then
505
 
-    pkg_cv_TOOLS_CFLAGS="$TOOLS_CFLAGS"
506
 
- elif test -n "$PKG_CONFIG"; then
507
 
-    if test -n "$PKG_CONFIG" && \
508
 
+if test -n "$PKG_CONFIG"; then
509
 
+    if test -n "$TOOLS_CFLAGS"; then
510
 
+        pkg_cv_TOOLS_CFLAGS="$TOOLS_CFLAGS"
511
 
+    else
512
 
+        if test -n "$PKG_CONFIG" && \
513
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 >= \$X11_REQUIRED_VERSION
514
 
   glib-2.0 >= \$GLIB_REQUIRED_VERSION
515
 
 \"") >&5
516
 
@@ -15471,13 +15502,15 @@
517
 
 else
518
 
   pkg_failed=yes
519
 
 fi
520
 
- else
521
 
-    pkg_failed=untried
522
 
+    fi
523
 
+else
524
 
+       pkg_failed=untried
525
 
 fi
526
 
-if test -n "$TOOLS_LIBS"; then
527
 
-    pkg_cv_TOOLS_LIBS="$TOOLS_LIBS"
528
 
- elif test -n "$PKG_CONFIG"; then
529
 
-    if test -n "$PKG_CONFIG" && \
530
 
+if test -n "$PKG_CONFIG"; then
531
 
+    if test -n "$TOOLS_LIBS"; then
532
 
+        pkg_cv_TOOLS_LIBS="$TOOLS_LIBS"
533
 
+    else
534
 
+        if test -n "$PKG_CONFIG" && \
535
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 >= \$X11_REQUIRED_VERSION
536
 
   glib-2.0 >= \$GLIB_REQUIRED_VERSION
537
 
 \"") >&5
538
 
@@ -15493,8 +15526,9 @@
539
 
 else
540
 
   pkg_failed=yes
541
 
 fi
542
 
- else
543
 
-    pkg_failed=untried
544
 
+    fi
545
 
+else
546
 
+       pkg_failed=untried
547
 
 fi
548
 
 
549
 
 
550
 
@@ -15507,13 +15541,13 @@
551
 
         _pkg_short_errors_supported=no
552
 
 fi
553
 
         if test $_pkg_short_errors_supported = yes; then
554
 
-               TOOLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 >= $X11_REQUIRED_VERSION
555
 
+               TOOLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 >= $X11_REQUIRED_VERSION
556
 
   glib-2.0 >= $GLIB_REQUIRED_VERSION
557
 
-" 2>&1`
558
 
+"`
559
 
         else
560
 
-               TOOLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 >= $X11_REQUIRED_VERSION
561
 
+               TOOLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 >= $X11_REQUIRED_VERSION
562
 
   glib-2.0 >= $GLIB_REQUIRED_VERSION
563
 
-" 2>&1`
564
 
+"`
565
 
         fi
566
 
        # Put the nasty error message in config.log where it belongs
567
 
        echo "$TOOLS_PKG_ERRORS" >&5
568
 
@@ -15582,10 +15616,11 @@
569
 
 { $as_echo "$as_me:$LINENO: checking for HISTORY" >&5
570
 
 $as_echo_n "checking for HISTORY... " >&6; }
571
 
 
572
 
-if test -n "$HISTORY_CFLAGS"; then
573
 
-    pkg_cv_HISTORY_CFLAGS="$HISTORY_CFLAGS"
574
 
- elif test -n "$PKG_CONFIG"; then
575
 
-    if test -n "$PKG_CONFIG" && \
576
 
+if test -n "$PKG_CONFIG"; then
577
 
+    if test -n "$HISTORY_CFLAGS"; then
578
 
+        pkg_cv_HISTORY_CFLAGS="$HISTORY_CFLAGS"
579
 
+    else
580
 
+        if test -n "$PKG_CONFIG" && \
581
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION
582
 
 \"") >&5
583
 
   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
584
 
@@ -15598,13 +15633,15 @@
585
 
 else
586
 
   pkg_failed=yes
587
 
 fi
588
 
- else
589
 
-    pkg_failed=untried
590
 
+    fi
591
 
+else
592
 
+       pkg_failed=untried
593
 
 fi
594
 
-if test -n "$HISTORY_LIBS"; then
595
 
-    pkg_cv_HISTORY_LIBS="$HISTORY_LIBS"
596
 
- elif test -n "$PKG_CONFIG"; then
597
 
-    if test -n "$PKG_CONFIG" && \
598
 
+if test -n "$PKG_CONFIG"; then
599
 
+    if test -n "$HISTORY_LIBS"; then
600
 
+        pkg_cv_HISTORY_LIBS="$HISTORY_LIBS"
601
 
+    else
602
 
+        if test -n "$PKG_CONFIG" && \
603
 
     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION
604
 
 \"") >&5
605
 
   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
606
 
@@ -15617,8 +15654,9 @@
607
 
 else
608
 
   pkg_failed=yes
609
 
 fi
610
 
- else
611
 
-    pkg_failed=untried
612
 
+    fi
613
 
+else
614
 
+       pkg_failed=untried
615
 
 fi
616
 
 
617
 
 
618
 
@@ -15631,11 +15669,11 @@
619
 
         _pkg_short_errors_supported=no
620
 
 fi
621
 
         if test $_pkg_short_errors_supported = yes; then
622
 
-               HISTORY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
623
 
-" 2>&1`
624
 
+               HISTORY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
625
 
+"`
626
 
         else
627
 
-               HISTORY_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
628
 
-" 2>&1`
629
 
+               HISTORY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
630
 
+"`
631
 
         fi
632
 
        # Put the nasty error message in config.log where it belongs
633
 
        echo "$HISTORY_PKG_ERRORS" >&5
634
 
@@ -16237,7 +16275,7 @@
 
431
@@ -12760,7 +12775,6 @@
 
432
 Alternatively, you may set the environment variables CONSOLE_KIT_CFLAGS
 
433
 and CONSOLE_KIT_LIBS to avoid the need to call pkg-config.
 
434
 See the pkg-config man page for more details." "$LINENO" 5
 
435
-
 
436
 elif test $pkg_failed = untried; then
 
437
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
438
 $as_echo "no" >&6; }
 
439
@@ -12775,8 +12789,7 @@
 
440
 See the pkg-config man page for more details.
 
441
 
 
442
 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
443
-See \`config.log' for more details" "$LINENO" 5; }
 
444
-
 
445
+See \`config.log' for more details" "$LINENO" 5 ; }
 
446
 else
 
447
        CONSOLE_KIT_CFLAGS=$pkg_cv_CONSOLE_KIT_CFLAGS
 
448
        CONSOLE_KIT_LIBS=$pkg_cv_CONSOLE_KIT_LIBS
 
449
@@ -12945,7 +12958,6 @@
 
450
 Alternatively, you may set the environment variables LIBDBUS_CFLAGS
 
451
 and LIBDBUS_LIBS to avoid the need to call pkg-config.
 
452
 See the pkg-config man page for more details." "$LINENO" 5
 
453
-
 
454
 elif test $pkg_failed = untried; then
 
455
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
456
 $as_echo "no" >&6; }
 
457
@@ -12960,8 +12972,7 @@
 
458
 See the pkg-config man page for more details.
 
459
 
 
460
 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
461
-See \`config.log' for more details" "$LINENO" 5; }
 
462
-
 
463
+See \`config.log' for more details" "$LINENO" 5 ; }
 
464
 else
 
465
        LIBDBUS_CFLAGS=$pkg_cv_LIBDBUS_CFLAGS
 
466
        LIBDBUS_LIBS=$pkg_cv_LIBDBUS_LIBS
 
467
@@ -13054,7 +13065,6 @@
 
468
 Alternatively, you may set the environment variables TOOLS_CFLAGS
 
469
 and TOOLS_LIBS to avoid the need to call pkg-config.
 
470
 See the pkg-config man page for more details." "$LINENO" 5
 
471
-
 
472
 elif test $pkg_failed = untried; then
 
473
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
474
 $as_echo "no" >&6; }
 
475
@@ -13069,8 +13079,7 @@
 
476
 See the pkg-config man page for more details.
 
477
 
 
478
 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
479
-See \`config.log' for more details" "$LINENO" 5; }
 
480
-
 
481
+See \`config.log' for more details" "$LINENO" 5 ; }
 
482
 else
 
483
        TOOLS_CFLAGS=$pkg_cv_TOOLS_CFLAGS
 
484
        TOOLS_LIBS=$pkg_cv_TOOLS_LIBS
 
485
@@ -13155,7 +13164,6 @@
 
486
 Alternatively, you may set the environment variables HISTORY_CFLAGS
 
487
 and HISTORY_LIBS to avoid the need to call pkg-config.
 
488
 See the pkg-config man page for more details." "$LINENO" 5
 
489
-
 
490
 elif test $pkg_failed = untried; then
 
491
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
492
 $as_echo "no" >&6; }
 
493
@@ -13170,8 +13178,7 @@
 
494
 See the pkg-config man page for more details.
 
495
 
 
496
 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
497
-See \`config.log' for more details" "$LINENO" 5; }
 
498
-
 
499
+See \`config.log' for more details" "$LINENO" 5 ; }
 
500
 else
 
501
        HISTORY_CFLAGS=$pkg_cv_HISTORY_CFLAGS
 
502
        HISTORY_LIBS=$pkg_cv_HISTORY_LIBS
 
503
@@ -13502,7 +13509,7 @@
635
504
 CK_BACKEND=""
636
505
 KVM_LIBS=""
637
506
 case "$host" in
638
507
-        *-*-freebsd*)
639
508
+        *-*-freebsd* | *-*-kfreebsd*-gnu)
640
509
         CK_BACKEND="freebsd"
641
 
         { $as_echo "$as_me:$LINENO: checking for kvm_openfiles in -lkvm" >&5
 
510
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5
642
511
 $as_echo_n "checking for kvm_openfiles in -lkvm... " >&6; }
643
 
@@ -16322,6 +16360,9 @@
 
512
@@ -13556,6 +13563,9 @@
644
513
         *-*-solaris*)
645
514
         CK_BACKEND="solaris"
646
515
         ;;
648
517
+        CK_BACKEND="gnu"
649
518
+        ;;
650
519
        *)
651
 
        { { $as_echo "$as_me:$LINENO: error: No sysdeps back-end implemented for host $host" >&5
652
 
 $as_echo "$as_me: error: No sysdeps back-end implemented for host $host" >&2;}
653
 
@@ -16355,6 +16396,14 @@
 
520
        as_fn_error $? "No sysdeps back-end implemented for host $host" "$LINENO" 5
 
521
        ;;
 
522
@@ -13587,6 +13597,14 @@
654
523
   CK_COMPILE_SOLARIS_FALSE=
655
524
 fi
656
525
 
665
534
 
666
535
 
667
536
 
668
 
@@ -17388,6 +17437,13 @@
669
 
 Usually this means the macro was only invoked conditionally." >&2;}
670
 
    { (exit 1); exit 1; }; }
 
537
@@ -14177,6 +14195,10 @@
 
538
   as_fn_error $? "conditional \"CK_COMPILE_SOLARIS\" was never defined.
 
539
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
671
540
 fi
672
541
+if test -z "${CK_COMPILE_GNU_TRUE}" && test -z "${CK_COMPILE_GNU_FALSE}"; then
673
 
+  { { $as_echo "$as_me:$LINENO: error: conditional \"CK_COMPILE_GNU\" was never defined.
674
 
+Usually this means the macro was only invoked conditionally." >&5
675
 
+$as_echo "$as_me: error: conditional \"CK_COMPILE_GNU\" was never defined.
676
 
+Usually this means the macro was only invoked conditionally." >&2;}
677
 
+   { (exit 1); exit 1; }; }
 
542
+  as_fn_error $? "conditional \"CK_COMPILE_GNU\" was never defined.
 
543
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
678
544
+fi
679
545
 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
680
 
   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined.
681
 
 Usually this means the macro was only invoked conditionally." >&5
 
546
   as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
 
547
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
548
@@ -14606,7 +14628,7 @@
 
549
 # values after options handling.
 
550
 ac_log="
 
551
 This file was extended by ConsoleKit $as_me 0.4.2, which was
 
552
-generated by GNU Autoconf 2.66.  Invocation command line was
 
553
+generated by GNU Autoconf 2.67.  Invocation command line was
 
554
 
 
555
   CONFIG_FILES    = $CONFIG_FILES
 
556
   CONFIG_HEADERS  = $CONFIG_HEADERS
 
557
@@ -14672,7 +14694,7 @@
 
558
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
559
 ac_cs_version="\\
 
560
 ConsoleKit config.status 0.4.2
 
561
-configured by $0, generated by GNU Autoconf 2.66,
 
562
+configured by $0, generated by GNU Autoconf 2.67,
 
563
   with options \\"\$ac_cs_config\\"
 
564
 
 
565
 Copyright (C) 2010 Free Software Foundation, Inc.
 
566
@@ -14693,11 +14715,16 @@
 
567
 while test $# != 0
 
568
 do
 
569
   case $1 in
 
570
-  --*=*)
 
571
+  --*=?*)
 
572
     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
573
     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
574
     ac_shift=:
 
575
     ;;
 
576
+  --*=)
 
577
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
578
+    ac_optarg=
 
579
+    ac_shift=:
 
580
+    ;;
 
581
   *)
 
582
     ac_option=$1
 
583
     ac_optarg=$2
 
584
@@ -14719,6 +14746,7 @@
 
585
     $ac_shift
 
586
     case $ac_optarg in
 
587
     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
588
+    '') as_fn_error $? "missing file argument" ;;
 
589
     esac
 
590
     as_fn_append CONFIG_FILES " '$ac_optarg'"
 
591
     ac_need_defaults=false;;
 
592
@@ -15073,7 +15101,7 @@
 
593
     "pam-ck-connector/Makefile") CONFIG_FILES="$CONFIG_FILES pam-ck-connector/Makefile" ;;
 
594
     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
595
 
 
596
-  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
597
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
598
   esac
 
599
 done
 
600
 
 
601
@@ -15389,7 +15417,7 @@
 
602
   esac
 
603
   case $ac_mode$ac_tag in
 
604
   :[FHL]*:*);;
 
605
-  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
606
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
607
   :[FH]-) ac_tag=-:-;;
 
608
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
609
   esac
 
610
@@ -15417,7 +15445,7 @@
 
611
           [\\/$]*) false;;
 
612
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
613
           esac ||
 
614
-          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
615
+          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
616
       esac
 
617
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
618
       as_fn_append ac_file_inputs " '$ac_f'"
 
619
@@ -15444,7 +15472,7 @@
 
620
 
 
621
     case $ac_tag in
 
622
     *:-:* | *:-) cat >"$tmp/stdin" \
 
623
-      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
624
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
625
     esac
 
626
     ;;
 
627
   esac
682
628
Index: consolekit/src/Makefile.in
683
629
===================================================================
684
 
--- consolekit.orig/src/Makefile.in     2009-11-04 19:45:33.418020671 +0100
685
 
+++ consolekit/src/Makefile.in  2009-11-04 19:44:57.430016634 +0100
686
 
@@ -46,6 +46,10 @@
 
630
--- consolekit.orig/src/Makefile.in     2010-09-20 03:08:41.129094222 +0200
 
631
+++ consolekit/src/Makefile.in  2010-09-20 03:08:01.029091854 +0200
 
632
@@ -48,6 +48,10 @@
687
633
 @CK_COMPILE_FREEBSD_TRUE@      ck-sysdeps-freebsd.c    \
688
634
 @CK_COMPILE_FREEBSD_TRUE@      $(NULL)
689
635
 
694
640
 sbin_PROGRAMS = console-kit-daemon$(EXEEXT) $(am__EXEEXT_1)
695
641
 noinst_PROGRAMS = test-event-logger$(EXEEXT) \
696
642
        test-tty-idle-monitor$(EXEEXT) test-vt-monitor$(EXEEXT) \
697
 
@@ -69,15 +73,19 @@
 
643
@@ -75,15 +79,19 @@
698
644
 @CK_COMPILE_FREEBSD_TRUE@libck_la_DEPENDENCIES =  \
699
645
 @CK_COMPILE_FREEBSD_TRUE@      $(am__DEPENDENCIES_1)
700
646
 am__libck_la_SOURCES_DIST = ck-sysdeps.h ck-sysdeps-unix.c \
716
662
 libck_la_OBJECTS = $(am_libck_la_OBJECTS)
717
663
 am__EXEEXT_1 =
718
664
 am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(dbusifdir)"
719
 
@@ -92,16 +100,16 @@
 
665
@@ -97,16 +105,16 @@
720
666
        ck-manager-glue.h ck-seat-glue.h ck-session-glue.h \
721
667
        ck-marshal.c ck-marshal.h ck-file-monitor-dummy.c \
722
668
        ck-file-monitor-inotify.c
737
683
 console_kit_daemon_OBJECTS = $(am_console_kit_daemon_OBJECTS)
738
684
 console_kit_daemon_DEPENDENCIES = $(am__DEPENDENCIES_1) \
739
685
        $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) libck.la \
740
 
@@ -117,7 +125,7 @@
 
686
@@ -122,7 +130,7 @@
741
687
        ck-file-monitor-dummy.c ck-file-monitor-inotify.c \
742
688
        test-tty-idle-monitor.c
743
689
 am_test_tty_idle_monitor_OBJECTS = ck-tty-idle-monitor.$(OBJEXT) \
746
692
        $(am__objects_1)
747
693
 test_tty_idle_monitor_OBJECTS = $(am_test_tty_idle_monitor_OBJECTS)
748
694
 test_tty_idle_monitor_DEPENDENCIES = $(am__DEPENDENCIES_1) \
749
 
@@ -363,12 +371,15 @@
 
695
@@ -428,13 +436,16 @@
750
696
        $(NULL)
751
697
 
752
698
 libck_la_SOURCES = ck-sysdeps.h ck-sysdeps-unix.c $(NULL) \
755
701
+       $(am__append_4)
756
702
 @CK_COMPILE_FREEBSD_TRUE@libck_la_LIBADD = $(KVM_LIBS)
757
703
+@CK_COMPILE_GNU_TRUE@libck_la_LIBADD = -lps
 
704
 @CK_COMPILE_SOLARIS_TRUE@libck_la_LIBADD = -lscf
758
705
 EXTRA_libck_la_SOURCES = \
759
706
        ck-sysdeps-linux.c              \
760
707
        ck-sysdeps-solaris.c            \
763
710
        $(NULL)
764
711
 
765
712
 BUILT_SOURCES = \
766
 
@@ -574,6 +585,7 @@
 
713
@@ -658,6 +669,7 @@
767
714
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ck-session-leader.Po@am__quote@
768
715
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ck-session.Po@am__quote@
769
716
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ck-sysdeps-freebsd.Plo@am__quote@