Imported Upstream version 2.4.3
[platform/upstream/gpg2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.4.3.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.gnupg.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='gnupg'
582 PACKAGE_TARNAME='gnupg'
583 PACKAGE_VERSION='2.4.3'
584 PACKAGE_STRING='gnupg 2.4.3'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
586 PACKAGE_URL=''
587
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_header_list=
627 ac_subst_vars='am__EXEEXT_FALSE
628 am__EXEEXT_TRUE
629 LTLIBOBJS
630 LIBOBJS
631 BUILD_HOSTNAME
632 BUILD_TIMESTAMP
633 BUILD_FILEVERSION
634 BUILD_VERSION
635 BUILD_REVISION
636 USE_TOFU_FALSE
637 USE_TOFU_TRUE
638 NO_TRUST_MODELS_FALSE
639 NO_TRUST_MODELS_TRUE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
642 DISABLE_TESTS_FALSE
643 DISABLE_TESTS_TRUE
644 BUILD_WKS_TOOLS_FALSE
645 BUILD_WKS_TOOLS_TRUE
646 BUILD_GPGTAR_FALSE
647 BUILD_GPGTAR_TRUE
648 BUILD_DOC_FALSE
649 BUILD_DOC_TRUE
650 BUILD_TPM2D_FALSE
651 BUILD_TPM2D_TRUE
652 BUILD_KEYBOXD_FALSE
653 BUILD_KEYBOXD_TRUE
654 BUILD_DIRMNGR_FALSE
655 BUILD_DIRMNGR_TRUE
656 BUILD_G13_FALSE
657 BUILD_G13_TRUE
658 BUILD_SCDAEMON_FALSE
659 BUILD_SCDAEMON_TRUE
660 BUILD_AGENT_FALSE
661 BUILD_AGENT_TRUE
662 BUILD_GPGSM_FALSE
663 BUILD_GPGSM_TRUE
664 BUILD_GPG_FALSE
665 BUILD_GPG_TRUE
666 USE_C99_CFLAGS
667 HAVE_LIBTSS
668 TEST_LIBTSS_FALSE
669 TEST_LIBTSS_TRUE
670 HAVE_LIBTSS_FALSE
671 HAVE_LIBTSS_TRUE
672 LIBTSS_CFLAGS
673 LIBTSS_LIBS
674 TSSSTARTUP
675 SWTPM_IOCTL
676 SWTPM
677 TPMSERVER
678 TSS_INCLUDE
679 W32SOCKLIBS
680 NETLIBS
681 CROSS_COMPILING_FALSE
682 CROSS_COMPILING_TRUE
683 LIBREADLINE
684 ZLIBS
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
687 BUILD_INCLUDED_LIBINTL
688 USE_INCLUDED_LIBINTL
689 POSUB
690 LTLIBINTL
691 LIBINTL
692 INTLLIBS
693 INTL_MACOSX_LIBS
694 XGETTEXT_EXTRA_OPTIONS
695 MSGMERGE
696 XGETTEXT_015
697 XGETTEXT
698 GMSGFMT_015
699 MSGFMT_015
700 GMSGFMT
701 MSGFMT
702 GETTEXT_MACRO_VERSION
703 USE_NLS
704 LTLIBICONV
705 LIBICONV
706 SENDMAIL
707 USE_LDAP_FALSE
708 USE_LDAP_TRUE
709 LBER_LIBS
710 LDAP_CPPFLAGS
711 LDAPLIBS
712 GPGKEYS_LDAP
713 DNSLIBS
714 LIBGNUTLS_LIBS
715 LIBGNUTLS_CFLAGS
716 NTBTLS_LIBS
717 NTBTLS_CFLAGS
718 NTBTLS_CONFIG
719 NPTH_LIBS
720 NPTH_CFLAGS
721 NPTH_CONFIG
722 FUSERMOUNT
723 ENCFS
724 SQLITE3_FALSE
725 SQLITE3_TRUE
726 SQLITE3_LIBS
727 SQLITE3_CFLAGS
728 DL_LIBS
729 LIBUSB_CPPFLAGS
730 LIBUSB_LIBS
731 KSBA_LIBS
732 KSBA_CFLAGS
733 KSBA_CONFIG
734 LIBASSUAN_LIBS
735 LIBASSUAN_CFLAGS
736 LIBASSUAN_CONFIG
737 LIBGCRYPT_LIBS
738 LIBGCRYPT_CFLAGS
739 LIBGCRYPT_CONFIG
740 GPG_ERROR_MT_LIBS
741 GPG_ERROR_MT_CFLAGS
742 GPG_ERROR_LIBS
743 GPG_ERROR_CFLAGS
744 GPGRT_CONFIG
745 GPG_ERROR_CONFIG
746 HAVE_ANDROID_SYSTEM_FALSE
747 HAVE_ANDROID_SYSTEM_TRUE
748 HAVE_W32_SYSTEM_FALSE
749 HAVE_W32_SYSTEM_TRUE
750 USE_SIMPLE_GETTEXT_FALSE
751 USE_SIMPLE_GETTEXT_TRUE
752 HAVE_DOSISH_SYSTEM_FALSE
753 HAVE_DOSISH_SYSTEM_TRUE
754 PKG_CONFIG_LIBDIR
755 PKG_CONFIG_PATH
756 PKG_CONFIG
757 CC_FOR_BUILD
758 AWK_HEX_NUMBER_OPTION
759 HAVE_YAT2M_FALSE
760 HAVE_YAT2M_TRUE
761 YAT2M
762 WINDRES
763 PERL
764 AR
765 RANLIB
766 LN_S
767 SYSROOT
768 MAINT
769 MAINTAINER_MODE_FALSE
770 MAINTAINER_MODE_TRUE
771 USE_LIBDNS_FALSE
772 USE_LIBDNS_TRUE
773 USE_GPG2_HACK_FALSE
774 USE_GPG2_HACK_TRUE
775 GNUPG_DIRMNGR_LDAP_PGM_FALSE
776 GNUPG_DIRMNGR_LDAP_PGM_TRUE
777 GNUPG_DIRMNGR_LDAP_PGM
778 GNUPG_PROTECT_TOOL_PGM_FALSE
779 GNUPG_PROTECT_TOOL_PGM_TRUE
780 GNUPG_PROTECT_TOOL_PGM
781 GNUPG_KEYBOXD_PGM_FALSE
782 GNUPG_KEYBOXD_PGM_TRUE
783 GNUPG_KEYBOXD_PGM
784 GNUPG_DIRMNGR_PGM_FALSE
785 GNUPG_DIRMNGR_PGM_TRUE
786 GNUPG_DIRMNGR_PGM
787 GNUPG_TPM2DAEMON_PGM_FALSE
788 GNUPG_TPM2DAEMON_PGM_TRUE
789 GNUPG_TPM2DAEMON_PGM
790 GNUPG_SCDAEMON_PGM_FALSE
791 GNUPG_SCDAEMON_PGM_TRUE
792 GNUPG_SCDAEMON_PGM
793 GNUPG_PINENTRY_PGM_FALSE
794 GNUPG_PINENTRY_PGM_TRUE
795 GNUPG_PINENTRY_PGM
796 GNUPG_AGENT_PGM_FALSE
797 GNUPG_AGENT_PGM_TRUE
798 GNUPG_AGENT_PGM
799 PACKAGE_GT
800 EGREP
801 GREP
802 CPP
803 am__fastdepCC_FALSE
804 am__fastdepCC_TRUE
805 CCDEPMODE
806 am__nodep
807 AMDEPBACKSLASH
808 AMDEP_FALSE
809 AMDEP_TRUE
810 am__include
811 DEPDIR
812 OBJEXT
813 EXEEXT
814 ac_ct_CC
815 CPPFLAGS
816 LDFLAGS
817 CFLAGS
818 CC
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 AM_BACKSLASH
828 AM_DEFAULT_VERBOSITY
829 AM_DEFAULT_V
830 AM_V
831 am__untar
832 am__tar
833 AMTAR
834 am__leading_dot
835 SET_MAKE
836 AWK
837 mkdir_p
838 MKDIR_P
839 INSTALL_STRIP_PROGRAM
840 STRIP
841 install_sh
842 MAKEINFO
843 AUTOHEADER
844 AUTOMAKE
845 AUTOCONF
846 ACLOCAL
847 VERSION
848 PACKAGE
849 CYGPATH_W
850 am__isrc
851 INSTALL_DATA
852 INSTALL_SCRIPT
853 INSTALL_PROGRAM
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 runstatedir
874 localstatedir
875 sharedstatedir
876 sysconfdir
877 datadir
878 datarootdir
879 libexecdir
880 sbindir
881 bindir
882 program_transform_name
883 prefix
884 exec_prefix
885 PACKAGE_URL
886 PACKAGE_BUGREPORT
887 PACKAGE_STRING
888 PACKAGE_VERSION
889 PACKAGE_TARNAME
890 PACKAGE_NAME
891 PATH_SEPARATOR
892 SHELL
893 am__quote'
894 ac_subst_files=''
895 ac_user_opts='
896 enable_option_checking
897 enable_silent_rules
898 enable_dependency_tracking
899 enable_gpgsm
900 enable_scdaemon
901 enable_g13
902 enable_dirmngr
903 enable_keyboxd
904 enable_tpm2d
905 enable_doc
906 enable_gpgtar
907 enable_wks_tools
908 with_agent_pgm
909 with_pinentry_pgm
910 with_scdaemon_pgm
911 with_tpm2daemon_pgm
912 with_dirmngr_pgm
913 with_keyboxd_pgm
914 with_protect_tool_pgm
915 with_dirmngr_ldap_pgm
916 enable_gpg_is_gpg2
917 enable_selinux_support
918 enable_large_secmem
919 with_agent_s2k_calibration
920 enable_trust_models
921 enable_tofu
922 enable_libdns
923 enable_gpg_rsa
924 enable_gpg_ecdh
925 enable_gpg_ecdsa
926 enable_gpg_eddsa
927 enable_gpg_idea
928 enable_gpg_cast5
929 enable_gpg_blowfish
930 enable_gpg_aes128
931 enable_gpg_aes192
932 enable_gpg_aes256
933 enable_gpg_twofish
934 enable_gpg_camellia128
935 enable_gpg_camellia192
936 enable_gpg_camellia256
937 enable_gpg_md5
938 enable_gpg_rmd160
939 enable_gpg_sha224
940 enable_gpg_sha384
941 enable_gpg_sha512
942 enable_zip
943 enable_bzip2
944 enable_exec
945 enable_photo_viewers
946 with_photo_viewer
947 enable_key_cache
948 with_capabilities
949 enable_card_support
950 enable_ccid_driver
951 enable_dirmngr_auto_start
952 enable_maintainer_mode
953 enable_largefile
954 with_libgpg_error_prefix
955 with_gpg_error_prefix
956 with_libgcrypt_prefix
957 with_libassuan_prefix
958 with_libksba_prefix
959 with_ksba_prefix
960 enable_sqlite
961 with_npth_prefix
962 enable_npth_debug
963 enable_ntbtls
964 with_ntbtls_prefix
965 enable_gnutls
966 with_default_trust_store_file
967 enable_ldap
968 with_ldap
969 with_mailprog
970 with_gnu_ld
971 enable_rpath
972 with_libiconv_prefix
973 enable_nls
974 with_libintl_prefix
975 enable_endian_check
976 with_zlib
977 with_bzip2
978 with_readline
979 with_tss
980 enable_optimization
981 enable_log_clock
982 enable_werror
983 enable_all_tests
984 enable_tests
985 enable_gnupg_builddir_envvar
986 enable_run_gnupg_user_socket
987 enable_build_timestamp
988 '
989       ac_precious_vars='build_alias
990 host_alias
991 target_alias
992 CC
993 CFLAGS
994 LDFLAGS
995 LIBS
996 CPPFLAGS
997 CPP
998 SYSROOT
999 YAT2M
1000 CC_FOR_BUILD
1001 PKG_CONFIG
1002 PKG_CONFIG_PATH
1003 PKG_CONFIG_LIBDIR
1004 SQLITE3_CFLAGS
1005 SQLITE3_LIBS
1006 LIBGNUTLS_CFLAGS
1007 LIBGNUTLS_LIBS'
1008
1009
1010 # Initialize some variables set by options.
1011 ac_init_help=
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1018 exec_prefix=NONE
1019 no_create=
1020 no_recursion=
1021 prefix=NONE
1022 program_prefix=NONE
1023 program_suffix=NONE
1024 program_transform_name=s,x,x,
1025 silent=
1026 site=
1027 srcdir=
1028 verbose=
1029 x_includes=NONE
1030 x_libraries=NONE
1031
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 runstatedir='${localstatedir}/run'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1051 htmldir='${docdir}'
1052 dvidir='${docdir}'
1053 pdfdir='${docdir}'
1054 psdir='${docdir}'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1058
1059 ac_prev=
1060 ac_dashdash=
1061 for ac_option
1062 do
1063   # If the previous option needs an argument, assign it.
1064   if test -n "$ac_prev"; then
1065     eval $ac_prev=\$ac_option
1066     ac_prev=
1067     continue
1068   fi
1069
1070   case $ac_option in
1071   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072   *=)   ac_optarg= ;;
1073   *)    ac_optarg=yes ;;
1074   esac
1075
1076   # Accept the important Cygnus configure options, so we can diagnose typos.
1077
1078   case $ac_dashdash$ac_option in
1079   --)
1080     ac_dashdash=yes ;;
1081
1082   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1083     ac_prev=bindir ;;
1084   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085     bindir=$ac_optarg ;;
1086
1087   -build | --build | --buil | --bui | --bu)
1088     ac_prev=build_alias ;;
1089   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090     build_alias=$ac_optarg ;;
1091
1092   -cache-file | --cache-file | --cache-fil | --cache-fi \
1093   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094     ac_prev=cache_file ;;
1095   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097     cache_file=$ac_optarg ;;
1098
1099   --config-cache | -C)
1100     cache_file=config.cache ;;
1101
1102   -datadir | --datadir | --datadi | --datad)
1103     ac_prev=datadir ;;
1104   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105     datadir=$ac_optarg ;;
1106
1107   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108   | --dataroo | --dataro | --datar)
1109     ac_prev=datarootdir ;;
1110   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112     datarootdir=$ac_optarg ;;
1113
1114   -disable-* | --disable-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error $? "invalid feature name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "enable_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval enable_$ac_useropt=no ;;
1129
1130   -docdir | --docdir | --docdi | --doc | --do)
1131     ac_prev=docdir ;;
1132   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133     docdir=$ac_optarg ;;
1134
1135   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1136     ac_prev=dvidir ;;
1137   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138     dvidir=$ac_optarg ;;
1139
1140   -enable-* | --enable-*)
1141     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144       as_fn_error $? "invalid feature name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "enable_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval enable_$ac_useropt=\$ac_optarg ;;
1155
1156   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158   | --exec | --exe | --ex)
1159     ac_prev=exec_prefix ;;
1160   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162   | --exec=* | --exe=* | --ex=*)
1163     exec_prefix=$ac_optarg ;;
1164
1165   -gas | --gas | --ga | --g)
1166     # Obsolete; use --with-gas.
1167     with_gas=yes ;;
1168
1169   -help | --help | --hel | --he | -h)
1170     ac_init_help=long ;;
1171   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172     ac_init_help=recursive ;;
1173   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174     ac_init_help=short ;;
1175
1176   -host | --host | --hos | --ho)
1177     ac_prev=host_alias ;;
1178   -host=* | --host=* | --hos=* | --ho=*)
1179     host_alias=$ac_optarg ;;
1180
1181   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182     ac_prev=htmldir ;;
1183   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184   | --ht=*)
1185     htmldir=$ac_optarg ;;
1186
1187   -includedir | --includedir | --includedi | --included | --include \
1188   | --includ | --inclu | --incl | --inc)
1189     ac_prev=includedir ;;
1190   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191   | --includ=* | --inclu=* | --incl=* | --inc=*)
1192     includedir=$ac_optarg ;;
1193
1194   -infodir | --infodir | --infodi | --infod | --info | --inf)
1195     ac_prev=infodir ;;
1196   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197     infodir=$ac_optarg ;;
1198
1199   -libdir | --libdir | --libdi | --libd)
1200     ac_prev=libdir ;;
1201   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202     libdir=$ac_optarg ;;
1203
1204   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205   | --libexe | --libex | --libe)
1206     ac_prev=libexecdir ;;
1207   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208   | --libexe=* | --libex=* | --libe=*)
1209     libexecdir=$ac_optarg ;;
1210
1211   -localedir | --localedir | --localedi | --localed | --locale)
1212     ac_prev=localedir ;;
1213   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214     localedir=$ac_optarg ;;
1215
1216   -localstatedir | --localstatedir | --localstatedi | --localstated \
1217   | --localstate | --localstat | --localsta | --localst | --locals)
1218     ac_prev=localstatedir ;;
1219   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221     localstatedir=$ac_optarg ;;
1222
1223   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224     ac_prev=mandir ;;
1225   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226     mandir=$ac_optarg ;;
1227
1228   -nfp | --nfp | --nf)
1229     # Obsolete; use --without-fp.
1230     with_fp=no ;;
1231
1232   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233   | --no-cr | --no-c | -n)
1234     no_create=yes ;;
1235
1236   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238     no_recursion=yes ;;
1239
1240   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242   | --oldin | --oldi | --old | --ol | --o)
1243     ac_prev=oldincludedir ;;
1244   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247     oldincludedir=$ac_optarg ;;
1248
1249   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250     ac_prev=prefix ;;
1251   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252     prefix=$ac_optarg ;;
1253
1254   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255   | --program-pre | --program-pr | --program-p)
1256     ac_prev=program_prefix ;;
1257   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259     program_prefix=$ac_optarg ;;
1260
1261   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262   | --program-suf | --program-su | --program-s)
1263     ac_prev=program_suffix ;;
1264   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266     program_suffix=$ac_optarg ;;
1267
1268   -program-transform-name | --program-transform-name \
1269   | --program-transform-nam | --program-transform-na \
1270   | --program-transform-n | --program-transform- \
1271   | --program-transform | --program-transfor \
1272   | --program-transfo | --program-transf \
1273   | --program-trans | --program-tran \
1274   | --progr-tra | --program-tr | --program-t)
1275     ac_prev=program_transform_name ;;
1276   -program-transform-name=* | --program-transform-name=* \
1277   | --program-transform-nam=* | --program-transform-na=* \
1278   | --program-transform-n=* | --program-transform-=* \
1279   | --program-transform=* | --program-transfor=* \
1280   | --program-transfo=* | --program-transf=* \
1281   | --program-trans=* | --program-tran=* \
1282   | --progr-tra=* | --program-tr=* | --program-t=*)
1283     program_transform_name=$ac_optarg ;;
1284
1285   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286     ac_prev=pdfdir ;;
1287   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288     pdfdir=$ac_optarg ;;
1289
1290   -psdir | --psdir | --psdi | --psd | --ps)
1291     ac_prev=psdir ;;
1292   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293     psdir=$ac_optarg ;;
1294
1295   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296   | -silent | --silent | --silen | --sile | --sil)
1297     silent=yes ;;
1298
1299   -runstatedir | --runstatedir | --runstatedi | --runstated \
1300   | --runstate | --runstat | --runsta | --runst | --runs \
1301   | --run | --ru | --r)
1302     ac_prev=runstatedir ;;
1303   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1304   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1305   | --run=* | --ru=* | --r=*)
1306     runstatedir=$ac_optarg ;;
1307
1308   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1309     ac_prev=sbindir ;;
1310   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1311   | --sbi=* | --sb=*)
1312     sbindir=$ac_optarg ;;
1313
1314   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1315   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1316   | --sharedst | --shareds | --shared | --share | --shar \
1317   | --sha | --sh)
1318     ac_prev=sharedstatedir ;;
1319   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1320   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1321   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1322   | --sha=* | --sh=*)
1323     sharedstatedir=$ac_optarg ;;
1324
1325   -site | --site | --sit)
1326     ac_prev=site ;;
1327   -site=* | --site=* | --sit=*)
1328     site=$ac_optarg ;;
1329
1330   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1331     ac_prev=srcdir ;;
1332   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1333     srcdir=$ac_optarg ;;
1334
1335   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1336   | --syscon | --sysco | --sysc | --sys | --sy)
1337     ac_prev=sysconfdir ;;
1338   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1339   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1340     sysconfdir=$ac_optarg ;;
1341
1342   -target | --target | --targe | --targ | --tar | --ta | --t)
1343     ac_prev=target_alias ;;
1344   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1345     target_alias=$ac_optarg ;;
1346
1347   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1348     verbose=yes ;;
1349
1350   -version | --version | --versio | --versi | --vers | -V)
1351     ac_init_version=: ;;
1352
1353   -with-* | --with-*)
1354     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357       as_fn_error $? "invalid package name: $ac_useropt"
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "with_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval with_$ac_useropt=\$ac_optarg ;;
1368
1369   -without-* | --without-*)
1370     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371     # Reject names that are not valid shell variable names.
1372     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373       as_fn_error $? "invalid package name: $ac_useropt"
1374     ac_useropt_orig=$ac_useropt
1375     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1376     case $ac_user_opts in
1377       *"
1378 "with_$ac_useropt"
1379 "*) ;;
1380       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1381          ac_unrecognized_sep=', ';;
1382     esac
1383     eval with_$ac_useropt=no ;;
1384
1385   --x)
1386     # Obsolete; use --with-x.
1387     with_x=yes ;;
1388
1389   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1390   | --x-incl | --x-inc | --x-in | --x-i)
1391     ac_prev=x_includes ;;
1392   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1393   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1394     x_includes=$ac_optarg ;;
1395
1396   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1397   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1398     ac_prev=x_libraries ;;
1399   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1400   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1401     x_libraries=$ac_optarg ;;
1402
1403   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1404 Try \`$0 --help' for more information"
1405     ;;
1406
1407   *=*)
1408     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1409     # Reject names that are not valid shell variable names.
1410     case $ac_envvar in #(
1411       '' | [0-9]* | *[!_$as_cr_alnum]* )
1412       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1413     esac
1414     eval $ac_envvar=\$ac_optarg
1415     export $ac_envvar ;;
1416
1417   *)
1418     # FIXME: should be removed in autoconf 3.0.
1419     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1420     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1421       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1422     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1423     ;;
1424
1425   esac
1426 done
1427
1428 if test -n "$ac_prev"; then
1429   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1430   as_fn_error $? "missing argument to $ac_option"
1431 fi
1432
1433 if test -n "$ac_unrecognized_opts"; then
1434   case $enable_option_checking in
1435     no) ;;
1436     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1437     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1438   esac
1439 fi
1440
1441 # Check all directory arguments for consistency.
1442 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1443                 datadir sysconfdir sharedstatedir localstatedir includedir \
1444                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1445                 libdir localedir mandir runstatedir
1446 do
1447   eval ac_val=\$$ac_var
1448   # Remove trailing slashes.
1449   case $ac_val in
1450     */ )
1451       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1452       eval $ac_var=\$ac_val;;
1453   esac
1454   # Be sure to have absolute directory names.
1455   case $ac_val in
1456     [\\/$]* | ?:[\\/]* )  continue;;
1457     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458   esac
1459   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473   elif test "x$build_alias" != "x$host_alias"; then
1474     cross_compiling=yes
1475   fi
1476 fi
1477
1478 ac_tool_prefix=
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480
1481 test "$silent" = yes && exec 6>/dev/null
1482
1483
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487   as_fn_error $? "working directory cannot be determined"
1488 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1489   as_fn_error $? "pwd does not report name of working directory"
1490
1491
1492 # Find the source files, if location was not specified.
1493 if test -z "$srcdir"; then
1494   ac_srcdir_defaulted=yes
1495   # Try the directory containing this script, then the parent directory.
1496   ac_confdir=`$as_dirname -- "$as_myself" ||
1497 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498          X"$as_myself" : 'X\(//\)[^/]' \| \
1499          X"$as_myself" : 'X\(//\)$' \| \
1500          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501 $as_echo X"$as_myself" |
1502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503             s//\1/
1504             q
1505           }
1506           /^X\(\/\/\)[^/].*/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\).*/{
1515             s//\1/
1516             q
1517           }
1518           s/.*/./; q'`
1519   srcdir=$ac_confdir
1520   if test ! -r "$srcdir/$ac_unique_file"; then
1521     srcdir=..
1522   fi
1523 else
1524   ac_srcdir_defaulted=no
1525 fi
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1527   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1528   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1533         pwd)`
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1536   srcdir=.
1537 fi
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1541 case $srcdir in
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1543 esac
1544 for ac_var in $ac_precious_vars; do
1545   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546   eval ac_env_${ac_var}_value=\$${ac_var}
1547   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 done
1550
1551 #
1552 # Report the --help message.
1553 #
1554 if test "$ac_init_help" = "long"; then
1555   # Omit some internal or obsolete options to make the list less imposing.
1556   # This message is too long to be a string in the A/UX 3.1 sh.
1557   cat <<_ACEOF
1558 \`configure' configures gnupg 2.4.3 to adapt to many kinds of systems.
1559
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1561
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE.  See below for descriptions of some of the useful variables.
1564
1565 Defaults for the options are specified in brackets.
1566
1567 Configuration:
1568   -h, --help              display this help and exit
1569       --help=short        display options specific to this package
1570       --help=recursive    display the short help of all the included packages
1571   -V, --version           display version information and exit
1572   -q, --quiet, --silent   do not print \`checking ...' messages
1573       --cache-file=FILE   cache test results in FILE [disabled]
1574   -C, --config-cache      alias for \`--cache-file=config.cache'
1575   -n, --no-create         do not create output files
1576       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1577
1578 Installation directories:
1579   --prefix=PREFIX         install architecture-independent files in PREFIX
1580                           [$ac_default_prefix]
1581   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1582                           [PREFIX]
1583
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1588
1589 For better control, use the options below.
1590
1591 Fine tuning of the installation directories:
1592   --bindir=DIR            user executables [EPREFIX/bin]
1593   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1594   --libexecdir=DIR        program executables [EPREFIX/libexec]
1595   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1596   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1597   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1598   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1599   --libdir=DIR            object code libraries [EPREFIX/lib]
1600   --includedir=DIR        C header files [PREFIX/include]
1601   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR           info documentation [DATAROOTDIR/info]
1605   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR            man documentation [DATAROOTDIR/man]
1607   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1608   --htmldir=DIR           html documentation [DOCDIR]
1609   --dvidir=DIR            dvi documentation [DOCDIR]
1610   --pdfdir=DIR            pdf documentation [DOCDIR]
1611   --psdir=DIR             ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 Program names:
1617   --program-prefix=PREFIX            prepend PREFIX to installed program names
1618   --program-suffix=SUFFIX            append SUFFIX to installed program names
1619   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1620
1621 System types:
1622   --build=BUILD     configure for building on BUILD [guessed]
1623   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of gnupg 2.4.3:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-option-checking  ignore unrecognized --enable/--with options
1635   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1636   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1637   --enable-silent-rules   less verbose build output (undo: "make V=1")
1638   --disable-silent-rules  verbose build output (undo: "make V=0")
1639   --enable-dependency-tracking
1640                           do not reject slow dependency extractors
1641   --disable-dependency-tracking
1642                           speeds up one-time build
1643   --disable-gpgsm         do not build the gpgsm program
1644   --disable-scdaemon      do not build the scdaemon program
1645   --enable-g13            build the g13 program
1646   --disable-dirmngr       do not build the dirmngr program
1647   --disable-keyboxd       do not build the keyboxd program
1648   --disable-tpm2d         do not build the tpm2d program
1649   --disable-doc           do not build the doc program
1650   --disable-gpgtar        do not build the gpgtar program
1651   --disable-wks-tools     do not build the wks-tools program
1652   --enable-gpg-is-gpg2    Set installed name of gpg to gpg2
1653   --enable-selinux-support
1654                           enable SELinux support
1655   --enable-large-secmem   allocate extra secure memory
1656   --disable-trust-models  disable all trust models except "always"
1657   --disable-tofu          disable the TOFU trust model
1658   --disable-libdns        do not build with libdns support
1659   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1660   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1661   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1662   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1663   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1664   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1665   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1666   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1667   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1668   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1669   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1670   --disable-gpg-camellia128
1671                           disable the CAMELLIA128 cipher algorithm in gpg
1672   --disable-gpg-camellia192
1673                           disable the CAMELLIA192 cipher algorithm in gpg
1674   --disable-gpg-camellia256
1675                           disable the CAMELLIA256 cipher algorithm in gpg
1676   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1677   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1678   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1679   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1680   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1681   --disable-zip           disable the ZIP and ZLIB compression algorithm
1682   --disable-bzip2         disable the BZIP2 compression algorithm
1683   --disable-exec          disable all external program execution
1684   --disable-photo-viewers disable photo ID viewers
1685   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1686   --disable-card-support  disable smartcard support
1687   --disable-ccid-driver   disable the internal CCID driver
1688   --disable-dirmngr-auto-start
1689                           disable auto starting of the dirmngr
1690   --enable-maintainer-mode
1691                           enable make rules and dependencies not useful (and
1692                           sometimes confusing) to the casual installer
1693   --disable-largefile     omit support for large files
1694   --disable-sqlite        disable the use of SQLITE
1695   --enable-npth-debug     build with debug version of npth
1696   --disable-ntbtls        disable the use of NTBTLS as TLS library
1697   --disable-gnutls        disable GNUTLS as fallback TLS library
1698   --disable-ldap          disable LDAP support
1699   --disable-rpath         do not hardcode runtime library paths
1700   --disable-nls           do not use Native Language Support
1701   --disable-endian-check  disable the endian check and trust the OS provided
1702                           macros
1703   --disable-optimization  disable compiler optimization
1704   --enable-log-clock      enable log_clock timestamps
1705   --enable-werror         append -Werror to CFLAGS
1706   --enable-all-tests      let "make check" run all tests
1707   --disable-tests         do not run any tests
1708
1709   --enable-run-gnupg-user-socket
1710                           try /run/gnupg/user for sockets prior to /run/user
1711   --enable-build-timestamp
1712                           set an explicit build timestamp for reproducibility.
1713                           (default is the current time in ISO-8601 format)
1714
1715 Optional Packages:
1716   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1717   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1718   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1719   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1720   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1721   --with-tpm2daemon-pgm=PATH  Use PATH as the default for the tpm2daemon)
1722   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1723   --with-keyboxd-pgm=PATH  Use PATH as the default for the keyboxd)
1724   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1725   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1726   --with-agent-s2k-calibration=MSEC
1727                           calibrate passphrase stretching (s2k) to MSEC
1728                           milliseconds
1729   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1730   --with-capabilities     use linux capabilities default=no
1731   --with-libgpg-error-prefix=PFX
1732                           prefix where GPG Error is installed (optional)
1733
1734   --with-libgcrypt-prefix=PFX
1735                           prefix where LIBGCRYPT is installed (optional)
1736   --with-libassuan-prefix=PFX
1737                           prefix where LIBASSUAN is installed (optional)
1738   --with-libksba-prefix=PFX
1739                           prefix where KSBA is installed (optional)
1740   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1741   --with-ntbtls-prefix=PFX
1742                           prefix where NTBTLS is installed (optional)
1743   --with-default-trust-store-file=FILE
1744                           Use FILE as system trust store
1745   --with-ldap=DIR         look for the LDAP library in DIR
1746   --with-mailprog=NAME    use "NAME -t" for mail transport
1747   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1748   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1749   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1750   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1751   --without-libintl-prefix     don't search for libintl in includedir and libdir
1752   --with-zlib=DIR         use libz in DIR
1753   --with-bzip2=DIR        look for bzip2 in DIR
1754   --with-readline=DIR     look for the readline library in DIR
1755   --with-tss=TSS          use the specified TPM Software Stack (ibm, intel, or
1756                           autodetect)
1757
1758 Some influential environment variables:
1759   CC          C compiler command
1760   CFLAGS      C compiler flags
1761   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1762               nonstandard directory <lib dir>
1763   LIBS        libraries to pass to the linker, e.g. -l<library>
1764   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1765               you have headers in a nonstandard directory <include dir>
1766   CPP         C preprocessor
1767   SYSROOT     locate config scripts also below that directory
1768   YAT2M       tool to convert texi to man pages
1769   CC_FOR_BUILD
1770               build system C compiler
1771   PKG_CONFIG  path to pkg-config utility
1772   PKG_CONFIG_PATH
1773               directories to add to pkg-config's search path
1774   PKG_CONFIG_LIBDIR
1775               path overriding pkg-config's built-in search path
1776   SQLITE3_CFLAGS
1777               C compiler flags for SQLITE3, overriding pkg-config
1778   SQLITE3_LIBS
1779               linker flags for SQLITE3, overriding pkg-config
1780   LIBGNUTLS_CFLAGS
1781               C compiler flags for LIBGNUTLS, overriding pkg-config
1782   LIBGNUTLS_LIBS
1783               linker flags for LIBGNUTLS, overriding pkg-config
1784
1785 Use these variables to override the choices made by `configure' or to help
1786 it to find libraries and programs with nonstandard names/locations.
1787
1788 Report bugs to <https://bugs.gnupg.org>.
1789 _ACEOF
1790 ac_status=$?
1791 fi
1792
1793 if test "$ac_init_help" = "recursive"; then
1794   # If there are subdirs, report their specific --help.
1795   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1796     test -d "$ac_dir" ||
1797       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1798       continue
1799     ac_builddir=.
1800
1801 case "$ac_dir" in
1802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 *)
1804   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1805   # A ".." for each directory in $ac_dir_suffix.
1806   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1807   case $ac_top_builddir_sub in
1808   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1810   esac ;;
1811 esac
1812 ac_abs_top_builddir=$ac_pwd
1813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1814 # for backward compatibility:
1815 ac_top_builddir=$ac_top_build_prefix
1816
1817 case $srcdir in
1818   .)  # We are building in place.
1819     ac_srcdir=.
1820     ac_top_srcdir=$ac_top_builddir_sub
1821     ac_abs_top_srcdir=$ac_pwd ;;
1822   [\\/]* | ?:[\\/]* )  # Absolute name.
1823     ac_srcdir=$srcdir$ac_dir_suffix;
1824     ac_top_srcdir=$srcdir
1825     ac_abs_top_srcdir=$srcdir ;;
1826   *) # Relative name.
1827     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1828     ac_top_srcdir=$ac_top_build_prefix$srcdir
1829     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1830 esac
1831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1832
1833     cd "$ac_dir" || { ac_status=$?; continue; }
1834     # Check for guested configure.
1835     if test -f "$ac_srcdir/configure.gnu"; then
1836       echo &&
1837       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1838     elif test -f "$ac_srcdir/configure"; then
1839       echo &&
1840       $SHELL "$ac_srcdir/configure" --help=recursive
1841     else
1842       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1843     fi || ac_status=$?
1844     cd "$ac_pwd" || { ac_status=$?; break; }
1845   done
1846 fi
1847
1848 test -n "$ac_init_help" && exit $ac_status
1849 if $ac_init_version; then
1850   cat <<\_ACEOF
1851 gnupg configure 2.4.3
1852 generated by GNU Autoconf 2.69
1853
1854 Copyright (C) 2012 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1857 _ACEOF
1858   exit
1859 fi
1860
1861 ## ------------------------ ##
1862 ## Autoconf initialization. ##
1863 ## ------------------------ ##
1864
1865 # ac_fn_c_try_compile LINENO
1866 # --------------------------
1867 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_compile ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   rm -f conftest.$ac_objext
1872   if { { ac_try="$ac_compile"
1873 case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_compile") 2>conftest.err
1880   ac_status=$?
1881   if test -s conftest.err; then
1882     grep -v '^ *+' conftest.err >conftest.er1
1883     cat conftest.er1 >&5
1884     mv -f conftest.er1 conftest.err
1885   fi
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; } && {
1888          test -z "$ac_c_werror_flag" ||
1889          test ! -s conftest.err
1890        } && test -s conftest.$ac_objext; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896         ac_retval=1
1897 fi
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_compile
1902
1903 # ac_fn_c_try_cpp LINENO
1904 # ----------------------
1905 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_c_try_cpp ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   if { { ac_try="$ac_cpp conftest.$ac_ext"
1910 case "(($ac_try" in
1911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912   *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917   ac_status=$?
1918   if test -s conftest.err; then
1919     grep -v '^ *+' conftest.err >conftest.er1
1920     cat conftest.er1 >&5
1921     mv -f conftest.er1 conftest.err
1922   fi
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; } > conftest.i && {
1925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1926          test ! -s conftest.err
1927        }; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933     ac_retval=1
1934 fi
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936   as_fn_set_status $ac_retval
1937
1938 } # ac_fn_c_try_cpp
1939
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_header_mongrel ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   if eval \${$3+:} false; then :
1949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952   $as_echo_n "(cached) " >&6
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 else
1958   # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 $4
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967   ac_header_compiler=yes
1968 else
1969   ac_header_compiler=no
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1974
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983   ac_header_preproc=yes
1984 else
1985   ac_header_preproc=no
1986 fi
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1990
1991 # So?  What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993   yes:no: )
1994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998     ;;
1999   no:yes:* )
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ( $as_echo "## ------------------------------------- ##
2011 ## Report this to https://bugs.gnupg.org ##
2012 ## ------------------------------------- ##"
2013      ) | sed "s/^/$as_me: WARNING:     /" >&2
2014     ;;
2015 esac
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   eval "$3=\$ac_header_compiler"
2022 fi
2023 eval ac_res=\$$3
2024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 fi
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_header_mongrel
2030
2031 # ac_fn_c_try_run LINENO
2032 # ----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2034 # that executables *can* be run.
2035 ac_fn_c_try_run ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   if { { ac_try="$ac_link"
2039 case "(($ac_try" in
2040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041   *) ac_try_echo=$ac_try;;
2042 esac
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045   (eval "$ac_link") 2>&5
2046   ac_status=$?
2047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2049   { { case "(($ac_try" in
2050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051   *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055   (eval "$ac_try") 2>&5
2056   ac_status=$?
2057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058   test $ac_status = 0; }; }; then :
2059   ac_retval=0
2060 else
2061   $as_echo "$as_me: program exited with status $ac_status" >&5
2062        $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065        ac_retval=$ac_status
2066 fi
2067   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069   as_fn_set_status $ac_retval
2070
2071 } # ac_fn_c_try_run
2072
2073 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists and can be compiled using the include files in
2076 # INCLUDES, setting the cache variable VAR accordingly.
2077 ac_fn_c_check_header_compile ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083   $as_echo_n "(cached) " >&6
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 #include <$2>
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091   eval "$3=yes"
2092 else
2093   eval "$3=no"
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 eval ac_res=\$$3
2098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_check_header_compile
2103
2104 # ac_fn_c_try_link LINENO
2105 # -----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_c_try_link ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   rm -f conftest.$ac_objext conftest$ac_exeext
2111   if { { ac_try="$ac_link"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_link") 2>conftest.err
2119   ac_status=$?
2120   if test -s conftest.err; then
2121     grep -v '^ *+' conftest.err >conftest.er1
2122     cat conftest.er1 >&5
2123     mv -f conftest.er1 conftest.err
2124   fi
2125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126   test $ac_status = 0; } && {
2127          test -z "$ac_c_werror_flag" ||
2128          test ! -s conftest.err
2129        } && test -s conftest$ac_exeext && {
2130          test "$cross_compiling" = yes ||
2131          test -x conftest$ac_exeext
2132        }; then :
2133   ac_retval=0
2134 else
2135   $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138         ac_retval=1
2139 fi
2140   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142   # interfere with the next link command; also delete a directory that is
2143   # left behind by Apple's compiler.  We do this before executing the actions.
2144   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146   as_fn_set_status $ac_retval
2147
2148 } # ac_fn_c_try_link
2149
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159   $as_echo_n "(cached) " >&6
2160 else
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2165 #define $2 innocuous_$2
2166
2167 /* System header to define __stub macros and hopefully few prototypes,
2168     which can conflict with char $2 (); below.
2169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170     <limits.h> exists even on freestanding compilers.  */
2171
2172 #ifdef __STDC__
2173 # include <limits.h>
2174 #else
2175 # include <assert.h>
2176 #endif
2177
2178 #undef $2
2179
2180 /* Override any GCC internal prototype to avoid an error.
2181    Use char because int might match the return type of a GCC
2182    builtin and then its argument prototype would still apply.  */
2183 #ifdef __cplusplus
2184 extern "C"
2185 #endif
2186 char $2 ();
2187 /* The GNU C library defines this for functions which it implements
2188     to always fail with ENOSYS.  Some functions are actually named
2189     something starting with __ and the normal name is an alias.  */
2190 #if defined __stub_$2 || defined __stub___$2
2191 choke me
2192 #endif
2193
2194 int
2195 main ()
2196 {
2197 return $2 ();
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_link "$LINENO"; then :
2203   eval "$3=yes"
2204 else
2205   eval "$3=no"
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext \
2208     conftest$ac_exeext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$3
2211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_check_func
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=no"
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof ($2))
2237          return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250             return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258   eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2272 # ---------------------------------------------
2273 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_check_decl ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   as_decl_name=`echo $2|sed 's/ *(.*//'`
2279   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2281 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2282 if eval \${$3+:} false; then :
2283   $as_echo_n "(cached) " >&6
2284 else
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 #ifndef $as_decl_name
2292 #ifdef __cplusplus
2293   (void) $as_decl_use;
2294 #else
2295   (void) $as_decl_name;
2296 #endif
2297 #endif
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   eval "$3=yes"
2305 else
2306   eval "$3=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 eval ac_res=\$$3
2311                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314
2315 } # ac_fn_c_check_decl
2316
2317 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2318 # --------------------------------------------
2319 # Tries to find the compile-time value of EXPR in a program that includes
2320 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2321 # computed
2322 ac_fn_c_compute_int ()
2323 {
2324   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325   if test "$cross_compiling" = yes; then
2326     # Depending upon the size, compute the lo and hi bounds.
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 int
2331 main ()
2332 {
2333 static int test_array [1 - 2 * !(($2) >= 0)];
2334 test_array [0] = 0;
2335 return test_array [0];
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342   ac_lo=0 ac_mid=0
2343   while :; do
2344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h.  */
2346 $4
2347 int
2348 main ()
2349 {
2350 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2351 test_array [0] = 0;
2352 return test_array [0];
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_hi=$ac_mid; break
2360 else
2361   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2362                         if test $ac_lo -le $ac_mid; then
2363                           ac_lo= ac_hi=
2364                           break
2365                         fi
2366                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369   done
2370 else
2371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 $4
2374 int
2375 main ()
2376 {
2377 static int test_array [1 - 2 * !(($2) < 0)];
2378 test_array [0] = 0;
2379 return test_array [0];
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386   ac_hi=-1 ac_mid=-1
2387   while :; do
2388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h.  */
2390 $4
2391 int
2392 main ()
2393 {
2394 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2395 test_array [0] = 0;
2396 return test_array [0];
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403   ac_lo=$ac_mid; break
2404 else
2405   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2406                         if test $ac_mid -le $ac_hi; then
2407                           ac_lo= ac_hi=
2408                           break
2409                         fi
2410                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413   done
2414 else
2415   ac_lo= ac_hi=
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 # Binary search between lo and hi bounds.
2421 while test "x$ac_lo" != "x$ac_hi"; do
2422   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 $4
2426 int
2427 main ()
2428 {
2429 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2430 test_array [0] = 0;
2431 return test_array [0];
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438   ac_hi=$ac_mid
2439 else
2440   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2441 fi
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 done
2444 case $ac_lo in #((
2445 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2446 '') ac_retval=1 ;;
2447 esac
2448   else
2449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h.  */
2451 $4
2452 static long int longval () { return $2; }
2453 static unsigned long int ulongval () { return $2; }
2454 #include <stdio.h>
2455 #include <stdlib.h>
2456 int
2457 main ()
2458 {
2459
2460   FILE *f = fopen ("conftest.val", "w");
2461   if (! f)
2462     return 1;
2463   if (($2) < 0)
2464     {
2465       long int i = longval ();
2466       if (i != ($2))
2467         return 1;
2468       fprintf (f, "%ld", i);
2469     }
2470   else
2471     {
2472       unsigned long int i = ulongval ();
2473       if (i != ($2))
2474         return 1;
2475       fprintf (f, "%lu", i);
2476     }
2477   /* Do not output a trailing newline, as this causes \r\n confusion
2478      on some platforms.  */
2479   return ferror (f) || fclose (f) != 0;
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 if ac_fn_c_try_run "$LINENO"; then :
2486   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2487 else
2488   ac_retval=1
2489 fi
2490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2491   conftest.$ac_objext conftest.beam conftest.$ac_ext
2492 rm -f conftest.val
2493
2494   fi
2495   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496   as_fn_set_status $ac_retval
2497
2498 } # ac_fn_c_compute_int
2499
2500 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2501 # ----------------------------------------------------
2502 # Tries to find if the field MEMBER exists in type AGGR, after including
2503 # INCLUDES, setting cache variable VAR accordingly.
2504 ac_fn_c_check_member ()
2505 {
2506   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2508 $as_echo_n "checking for $2.$3... " >&6; }
2509 if eval \${$4+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $5
2515 int
2516 main ()
2517 {
2518 static $2 ac_aggr;
2519 if (ac_aggr.$3)
2520 return 0;
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   eval "$4=yes"
2527 else
2528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $5
2531 int
2532 main ()
2533 {
2534 static $2 ac_aggr;
2535 if (sizeof ac_aggr.$3)
2536 return 0;
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   eval "$4=yes"
2543 else
2544   eval "$4=no"
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 eval ac_res=\$$4
2551                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554
2555 } # ac_fn_c_check_member
2556 cat >config.log <<_ACEOF
2557 This file contains any messages produced by compilers while
2558 running configure, to aid debugging if configure makes a mistake.
2559
2560 It was created by gnupg $as_me 2.4.3, which was
2561 generated by GNU Autoconf 2.69.  Invocation command line was
2562
2563   $ $0 $@
2564
2565 _ACEOF
2566 exec 5>>config.log
2567 {
2568 cat <<_ASUNAME
2569 ## --------- ##
2570 ## Platform. ##
2571 ## --------- ##
2572
2573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2578
2579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2580 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2581
2582 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2583 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2585 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2586 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2587 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2588 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2589
2590 _ASUNAME
2591
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597     $as_echo "PATH: $as_dir"
2598   done
2599 IFS=$as_save_IFS
2600
2601 } >&5
2602
2603 cat >&5 <<_ACEOF
2604
2605
2606 ## ----------- ##
2607 ## Core tests. ##
2608 ## ----------- ##
2609
2610 _ACEOF
2611
2612
2613 # Keep a trace of the command line.
2614 # Strip out --no-create and --no-recursion so they do not pile up.
2615 # Strip out --silent because we don't want to record it for future runs.
2616 # Also quote any args containing shell meta-characters.
2617 # Make two passes to allow for proper duplicate-argument suppression.
2618 ac_configure_args=
2619 ac_configure_args0=
2620 ac_configure_args1=
2621 ac_must_keep_next=false
2622 for ac_pass in 1 2
2623 do
2624   for ac_arg
2625   do
2626     case $ac_arg in
2627     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2628     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2629     | -silent | --silent | --silen | --sile | --sil)
2630       continue ;;
2631     *\'*)
2632       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2633     esac
2634     case $ac_pass in
2635     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2636     2)
2637       as_fn_append ac_configure_args1 " '$ac_arg'"
2638       if test $ac_must_keep_next = true; then
2639         ac_must_keep_next=false # Got value, back to normal.
2640       else
2641         case $ac_arg in
2642           *=* | --config-cache | -C | -disable-* | --disable-* \
2643           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2644           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2645           | -with-* | --with-* | -without-* | --without-* | --x)
2646             case "$ac_configure_args0 " in
2647               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2648             esac
2649             ;;
2650           -* ) ac_must_keep_next=true ;;
2651         esac
2652       fi
2653       as_fn_append ac_configure_args " '$ac_arg'"
2654       ;;
2655     esac
2656   done
2657 done
2658 { ac_configure_args0=; unset ac_configure_args0;}
2659 { ac_configure_args1=; unset ac_configure_args1;}
2660
2661 # When interrupted or exit'd, cleanup temporary files, and complete
2662 # config.log.  We remove comments because anyway the quotes in there
2663 # would cause problems or look ugly.
2664 # WARNING: Use '\'' to represent an apostrophe within the trap.
2665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2666 trap 'exit_status=$?
2667   # Save into config.log some information that might help in debugging.
2668   {
2669     echo
2670
2671     $as_echo "## ---------------- ##
2672 ## Cache variables. ##
2673 ## ---------------- ##"
2674     echo
2675     # The following way of writing the cache mishandles newlines in values,
2676 (
2677   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2678     eval ac_val=\$$ac_var
2679     case $ac_val in #(
2680     *${as_nl}*)
2681       case $ac_var in #(
2682       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2684       esac
2685       case $ac_var in #(
2686       _ | IFS | as_nl) ;; #(
2687       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2688       *) { eval $ac_var=; unset $ac_var;} ;;
2689       esac ;;
2690     esac
2691   done
2692   (set) 2>&1 |
2693     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2694     *${as_nl}ac_space=\ *)
2695       sed -n \
2696         "s/'\''/'\''\\\\'\'''\''/g;
2697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2698       ;; #(
2699     *)
2700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2701       ;;
2702     esac |
2703     sort
2704 )
2705     echo
2706
2707     $as_echo "## ----------------- ##
2708 ## Output variables. ##
2709 ## ----------------- ##"
2710     echo
2711     for ac_var in $ac_subst_vars
2712     do
2713       eval ac_val=\$$ac_var
2714       case $ac_val in
2715       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2716       esac
2717       $as_echo "$ac_var='\''$ac_val'\''"
2718     done | sort
2719     echo
2720
2721     if test -n "$ac_subst_files"; then
2722       $as_echo "## ------------------- ##
2723 ## File substitutions. ##
2724 ## ------------------- ##"
2725       echo
2726       for ac_var in $ac_subst_files
2727       do
2728         eval ac_val=\$$ac_var
2729         case $ac_val in
2730         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2731         esac
2732         $as_echo "$ac_var='\''$ac_val'\''"
2733       done | sort
2734       echo
2735     fi
2736
2737     if test -s confdefs.h; then
2738       $as_echo "## ----------- ##
2739 ## confdefs.h. ##
2740 ## ----------- ##"
2741       echo
2742       cat confdefs.h
2743       echo
2744     fi
2745     test "$ac_signal" != 0 &&
2746       $as_echo "$as_me: caught signal $ac_signal"
2747     $as_echo "$as_me: exit $exit_status"
2748   } >&5
2749   rm -f core *.core core.conftest.* &&
2750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2751     exit $exit_status
2752 ' 0
2753 for ac_signal in 1 2 13 15; do
2754   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2755 done
2756 ac_signal=0
2757
2758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2759 rm -f -r conftest* confdefs.h
2760
2761 $as_echo "/* confdefs.h */" > confdefs.h
2762
2763 # Predefined preprocessor variables.
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_NAME "$PACKAGE_NAME"
2767 _ACEOF
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2771 _ACEOF
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2775 _ACEOF
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_STRING "$PACKAGE_STRING"
2779 _ACEOF
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2783 _ACEOF
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_URL "$PACKAGE_URL"
2787 _ACEOF
2788
2789
2790 # Let the site file select an alternate cache file if it wants to.
2791 # Prefer an explicitly selected file to automatically selected ones.
2792 ac_site_file1=NONE
2793 ac_site_file2=NONE
2794 if test -n "$CONFIG_SITE"; then
2795   # We do not want a PATH search for config.site.
2796   case $CONFIG_SITE in #((
2797     -*)  ac_site_file1=./$CONFIG_SITE;;
2798     */*) ac_site_file1=$CONFIG_SITE;;
2799     *)   ac_site_file1=./$CONFIG_SITE;;
2800   esac
2801 elif test "x$prefix" != xNONE; then
2802   ac_site_file1=$prefix/share/config.site
2803   ac_site_file2=$prefix/etc/config.site
2804 else
2805   ac_site_file1=$ac_default_prefix/share/config.site
2806   ac_site_file2=$ac_default_prefix/etc/config.site
2807 fi
2808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2809 do
2810   test "x$ac_site_file" = xNONE && continue
2811   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2812     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2814     sed 's/^/| /' "$ac_site_file" >&5
2815     . "$ac_site_file" \
2816       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "failed to load site script $ac_site_file
2819 See \`config.log' for more details" "$LINENO" 5; }
2820   fi
2821 done
2822
2823 if test -r "$cache_file"; then
2824   # Some versions of bash will fail to source /dev/null (special files
2825   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2826   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2827     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2828 $as_echo "$as_me: loading cache $cache_file" >&6;}
2829     case $cache_file in
2830       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2831       *)                      . "./$cache_file";;
2832     esac
2833   fi
2834 else
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2836 $as_echo "$as_me: creating cache $cache_file" >&6;}
2837   >$cache_file
2838 fi
2839
2840 gt_needs="$gt_needs need-ngettext"
2841 as_fn_append ac_header_list " sys/socket.h"
2842 # Check that the precious variables saved in the cache have kept the same
2843 # value.
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847   eval ac_new_set=\$ac_env_${ac_var}_set
2848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849   eval ac_new_val=\$ac_env_${ac_var}_value
2850   case $ac_old_set,$ac_new_set in
2851     set,)
2852       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854       ac_cache_corrupted=: ;;
2855     ,set)
2856       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858       ac_cache_corrupted=: ;;
2859     ,);;
2860     *)
2861       if test "x$ac_old_val" != "x$ac_new_val"; then
2862         # differences in whitespace do not lead to failure.
2863         ac_old_val_w=`echo x $ac_old_val`
2864         ac_new_val_w=`echo x $ac_new_val`
2865         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868           ac_cache_corrupted=:
2869         else
2870           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872           eval $ac_var=\$ac_old_val
2873         fi
2874         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2875 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2876         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2878       fi;;
2879   esac
2880   # Pass precious variables to config.status.
2881   if test "$ac_new_set" = set; then
2882     case $ac_new_val in
2883     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884     *) ac_arg=$ac_var=$ac_new_val ;;
2885     esac
2886     case " $ac_configure_args " in
2887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2888       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2889     esac
2890   fi
2891 done
2892 if $ac_cache_corrupted; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2898 fi
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911 # When changing the SWDB tag please also adjust the hard coded tags in
2912 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2913 # As well as the source info for the man pages.
2914
2915 cat >>confdefs.h <<_ACEOF
2916 #define GNUPG_SWDB_TAG "gnupg24"
2917 _ACEOF
2918
2919
2920 NEED_GPGRT_VERSION=1.46
2921
2922 NEED_LIBGCRYPT_API=1
2923 NEED_LIBGCRYPT_VERSION=1.9.1
2924
2925 NEED_LIBASSUAN_API=2
2926 NEED_LIBASSUAN_VERSION=2.5.0
2927
2928 NEED_KSBA_API=1
2929 NEED_KSBA_VERSION=1.6.3
2930
2931 NEED_NTBTLS_API=1
2932 NEED_NTBTLS_VERSION=0.1.0
2933
2934 NEED_NPTH_API=1
2935 NEED_NPTH_VERSION=1.2
2936
2937
2938 NEED_GNUTLS_VERSION=3.0
2939
2940 NEED_SQLITE_VERSION=3.27
2941
2942 development_version=no
2943 PACKAGE=$PACKAGE_NAME
2944 PACKAGE_GT=${PACKAGE_NAME}2
2945 VERSION=$PACKAGE_VERSION
2946
2947 ac_aux_dir=
2948 for ac_dir in build-aux "$srcdir"/build-aux; do
2949   if test -f "$ac_dir/install-sh"; then
2950     ac_aux_dir=$ac_dir
2951     ac_install_sh="$ac_aux_dir/install-sh -c"
2952     break
2953   elif test -f "$ac_dir/install.sh"; then
2954     ac_aux_dir=$ac_dir
2955     ac_install_sh="$ac_aux_dir/install.sh -c"
2956     break
2957   elif test -f "$ac_dir/shtool"; then
2958     ac_aux_dir=$ac_dir
2959     ac_install_sh="$ac_aux_dir/shtool install -c"
2960     break
2961   fi
2962 done
2963 if test -z "$ac_aux_dir"; then
2964   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2965 fi
2966
2967 # These three variables are undocumented and unsupported,
2968 # and are intended to be withdrawn in a future Autoconf release.
2969 # They can cause serious problems if a builder's source tree is in a directory
2970 # whose full name contains unusual characters.
2971 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2972 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2973 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2974
2975
2976
2977 ac_config_headers="$ac_config_headers config.h"
2978
2979 am__api_version='1.16'
2980
2981 # Find a good install program.  We prefer a C program (faster),
2982 # so one script is as good as another.  But avoid the broken or
2983 # incompatible versions:
2984 # SysV /etc/install, /usr/sbin/install
2985 # SunOS /usr/etc/install
2986 # IRIX /sbin/install
2987 # AIX /bin/install
2988 # AmigaOS /C/install, which installs bootblocks on floppy discs
2989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2992 # OS/2's system install, which has a completely different semantic
2993 # ./install, which can be erroneously created by make from ./install.sh.
2994 # Reject install programs that cannot install multiple files.
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2996 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2997 if test -z "$INSTALL"; then
2998 if ${ac_cv_path_install+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006     # Account for people who put trailing slashes in PATH elements.
3007 case $as_dir/ in #((
3008   ./ | .// | /[cC]/* | \
3009   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3010   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3011   /usr/ucb/* ) ;;
3012   *)
3013     # OSF1 and SCO ODT 3.0 have their own names for install.
3014     # Don't use installbsd from OSF since it installs stuff as root
3015     # by default.
3016     for ac_prog in ginstall scoinst install; do
3017       for ac_exec_ext in '' $ac_executable_extensions; do
3018         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3019           if test $ac_prog = install &&
3020             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3021             # AIX install.  It has an incompatible calling convention.
3022             :
3023           elif test $ac_prog = install &&
3024             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3025             # program-specific install script used by HP pwplus--don't use.
3026             :
3027           else
3028             rm -rf conftest.one conftest.two conftest.dir
3029             echo one > conftest.one
3030             echo two > conftest.two
3031             mkdir conftest.dir
3032             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3033               test -s conftest.one && test -s conftest.two &&
3034               test -s conftest.dir/conftest.one &&
3035               test -s conftest.dir/conftest.two
3036             then
3037               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3038               break 3
3039             fi
3040           fi
3041         fi
3042       done
3043     done
3044     ;;
3045 esac
3046
3047   done
3048 IFS=$as_save_IFS
3049
3050 rm -rf conftest.one conftest.two conftest.dir
3051
3052 fi
3053   if test "${ac_cv_path_install+set}" = set; then
3054     INSTALL=$ac_cv_path_install
3055   else
3056     # As a last resort, use the slow shell script.  Don't cache a
3057     # value for INSTALL within a source directory, because that will
3058     # break other packages using the cache if that directory is
3059     # removed, or if the value is a relative name.
3060     INSTALL=$ac_install_sh
3061   fi
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3064 $as_echo "$INSTALL" >&6; }
3065
3066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3067 # It thinks the first close brace ends the variable substitution.
3068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069
3070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071
3072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3075 $as_echo_n "checking whether build environment is sane... " >&6; }
3076 # Reject unsafe characters in $srcdir or the absolute working directory
3077 # name.  Accept space and tab only in the latter.
3078 am_lf='
3079 '
3080 case `pwd` in
3081   *[\\\"\#\$\&\'\`$am_lf]*)
3082     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3083 esac
3084 case $srcdir in
3085   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3086     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3087 esac
3088
3089 # Do 'set' in a subshell so we don't clobber the current shell's
3090 # arguments.  Must try -L first in case configure is actually a
3091 # symlink; some systems play weird games with the mod time of symlinks
3092 # (eg FreeBSD returns the mod time of the symlink's containing
3093 # directory).
3094 if (
3095    am_has_slept=no
3096    for am_try in 1 2; do
3097      echo "timestamp, slept: $am_has_slept" > conftest.file
3098      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3099      if test "$*" = "X"; then
3100         # -L didn't work.
3101         set X `ls -t "$srcdir/configure" conftest.file`
3102      fi
3103      if test "$*" != "X $srcdir/configure conftest.file" \
3104         && test "$*" != "X conftest.file $srcdir/configure"; then
3105
3106         # If neither matched, then we have a broken ls.  This can happen
3107         # if, for instance, CONFIG_SHELL is bash and it inherits a
3108         # broken ls alias from the environment.  This has actually
3109         # happened.  Such a system could not be considered "sane".
3110         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3111   alias in your environment" "$LINENO" 5
3112      fi
3113      if test "$2" = conftest.file || test $am_try -eq 2; then
3114        break
3115      fi
3116      # Just in case.
3117      sleep 1
3118      am_has_slept=yes
3119    done
3120    test "$2" = conftest.file
3121    )
3122 then
3123    # Ok.
3124    :
3125 else
3126    as_fn_error $? "newly created file is older than distributed files!
3127 Check your system clock" "$LINENO" 5
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130 $as_echo "yes" >&6; }
3131 # If we didn't sleep, we still need to ensure time stamps of config.status and
3132 # generated files are strictly newer.
3133 am_sleep_pid=
3134 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3135   ( sleep 1 ) &
3136   am_sleep_pid=$!
3137 fi
3138
3139 rm -f conftest.file
3140
3141 test "$program_prefix" != NONE &&
3142   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3143 # Use a double $ so make ignores it.
3144 test "$program_suffix" != NONE &&
3145   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3146 # Double any \ or $.
3147 # By default was `s,x,x', remove it if useless.
3148 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3149 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3150
3151 # Expand $ac_aux_dir to an absolute path.
3152 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3153
3154 if test x"${MISSING+set}" != xset; then
3155   MISSING="\${SHELL} '$am_aux_dir/missing'"
3156 fi
3157 # Use eval to expand $SHELL
3158 if eval "$MISSING --is-lightweight"; then
3159   am_missing_run="$MISSING "
3160 else
3161   am_missing_run=
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3163 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3164 fi
3165
3166 if test x"${install_sh+set}" != xset; then
3167   case $am_aux_dir in
3168   *\ * | *\     *)
3169     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3170   *)
3171     install_sh="\${SHELL} $am_aux_dir/install-sh"
3172   esac
3173 fi
3174
3175 # Installed binaries are usually stripped using 'strip' when the user
3176 # run "make install-strip".  However 'strip' might not be the right
3177 # tool to use in cross-compilation environments, therefore Automake
3178 # will honor the 'STRIP' environment variable to overrule this program.
3179 if test "$cross_compiling" != no; then
3180   if test -n "$ac_tool_prefix"; then
3181   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}strip; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_STRIP+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$STRIP"; then
3189   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196     for ac_exec_ext in '' $ac_executable_extensions; do
3197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203   done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 STRIP=$ac_cv_prog_STRIP
3209 if test -n "$STRIP"; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3211 $as_echo "$STRIP" >&6; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 fi
3219 if test -z "$ac_cv_prog_STRIP"; then
3220   ac_ct_STRIP=$STRIP
3221   # Extract the first word of "strip", so it can be a program name with args.
3222 set dummy strip; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$ac_ct_STRIP"; then
3229   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238     ac_cv_prog_ac_ct_STRIP="strip"
3239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243   done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3249 if test -n "$ac_ct_STRIP"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3251 $as_echo "$ac_ct_STRIP" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257   if test "x$ac_ct_STRIP" = x; then
3258     STRIP=":"
3259   else
3260     case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266     STRIP=$ac_ct_STRIP
3267   fi
3268 else
3269   STRIP="$ac_cv_prog_STRIP"
3270 fi
3271
3272 fi
3273 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3274
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3276 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3277 if test -z "$MKDIR_P"; then
3278   if ${ac_cv_path_mkdir+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_prog in mkdir gmkdir; do
3287          for ac_exec_ext in '' $ac_executable_extensions; do
3288            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3289            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3290              'mkdir (GNU coreutils) '* | \
3291              'mkdir (coreutils) '* | \
3292              'mkdir (fileutils) '4.1*)
3293                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3294                break 3;;
3295            esac
3296          done
3297        done
3298   done
3299 IFS=$as_save_IFS
3300
3301 fi
3302
3303   test -d ./--version && rmdir ./--version
3304   if test "${ac_cv_path_mkdir+set}" = set; then
3305     MKDIR_P="$ac_cv_path_mkdir -p"
3306   else
3307     # As a last resort, use the slow shell script.  Don't cache a
3308     # value for MKDIR_P within a source directory, because that will
3309     # break other packages using the cache if that directory is
3310     # removed, or if the value is a relative name.
3311     MKDIR_P="$ac_install_sh -d"
3312   fi
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3315 $as_echo "$MKDIR_P" >&6; }
3316
3317 for ac_prog in gawk mawk nawk awk
3318 do
3319   # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_AWK+:} false; then :
3324   $as_echo_n "(cached) " >&6
3325 else
3326   if test -n "$AWK"; then
3327   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332   IFS=$as_save_IFS
3333   test -z "$as_dir" && as_dir=.
3334     for ac_exec_ext in '' $ac_executable_extensions; do
3335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336     ac_cv_prog_AWK="$ac_prog"
3337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338     break 2
3339   fi
3340 done
3341   done
3342 IFS=$as_save_IFS
3343
3344 fi
3345 fi
3346 AWK=$ac_cv_prog_AWK
3347 if test -n "$AWK"; then
3348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3349 $as_echo "$AWK" >&6; }
3350 else
3351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 fi
3354
3355
3356   test -n "$AWK" && break
3357 done
3358
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3360 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3361 set x ${MAKE-make}
3362 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3363 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   cat >conftest.make <<\_ACEOF
3367 SHELL = /bin/sh
3368 all:
3369         @echo '@@@%%%=$(MAKE)=@@@%%%'
3370 _ACEOF
3371 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3372 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3373   *@@@%%%=?*=@@@%%%*)
3374     eval ac_cv_prog_make_${ac_make}_set=yes;;
3375   *)
3376     eval ac_cv_prog_make_${ac_make}_set=no;;
3377 esac
3378 rm -f conftest.make
3379 fi
3380 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3383   SET_MAKE=
3384 else
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387   SET_MAKE="MAKE=${MAKE-make}"
3388 fi
3389
3390 rm -rf .tst 2>/dev/null
3391 mkdir .tst 2>/dev/null
3392 if test -d .tst; then
3393   am__leading_dot=.
3394 else
3395   am__leading_dot=_
3396 fi
3397 rmdir .tst 2>/dev/null
3398
3399 # Check whether --enable-silent-rules was given.
3400 if test "${enable_silent_rules+set}" = set; then :
3401   enableval=$enable_silent_rules;
3402 fi
3403
3404 case $enable_silent_rules in # (((
3405   yes) AM_DEFAULT_VERBOSITY=0;;
3406    no) AM_DEFAULT_VERBOSITY=1;;
3407     *) AM_DEFAULT_VERBOSITY=1;;
3408 esac
3409 am_make=${MAKE-make}
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3411 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3412 if ${am_cv_make_support_nested_variables+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if $as_echo 'TRUE=$(BAR$(V))
3416 BAR0=false
3417 BAR1=true
3418 V=1
3419 am__doit:
3420         @$(TRUE)
3421 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3422   am_cv_make_support_nested_variables=yes
3423 else
3424   am_cv_make_support_nested_variables=no
3425 fi
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3428 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3429 if test $am_cv_make_support_nested_variables = yes; then
3430     AM_V='$(V)'
3431   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3432 else
3433   AM_V=$AM_DEFAULT_VERBOSITY
3434   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3435 fi
3436 AM_BACKSLASH='\'
3437
3438 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3439   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3440   # is not polluted with repeated "-I."
3441   am__isrc=' -I$(srcdir)'
3442   # test to see if srcdir already configured
3443   if test -f $srcdir/config.status; then
3444     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3445   fi
3446 fi
3447
3448 # test whether we have cygpath
3449 if test -z "$CYGPATH_W"; then
3450   if (cygpath --version) >/dev/null 2>/dev/null; then
3451     CYGPATH_W='cygpath -w'
3452   else
3453     CYGPATH_W=echo
3454   fi
3455 fi
3456
3457
3458 # Define the identity of the package.
3459  PACKAGE='gnupg'
3460  VERSION='2.4.3'
3461
3462
3463 cat >>confdefs.h <<_ACEOF
3464 #define PACKAGE "$PACKAGE"
3465 _ACEOF
3466
3467
3468 cat >>confdefs.h <<_ACEOF
3469 #define VERSION "$VERSION"
3470 _ACEOF
3471
3472 # Some tools Automake needs.
3473
3474 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3475
3476
3477 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3478
3479
3480 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3481
3482
3483 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3484
3485
3486 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3487
3488 # For better backward compatibility.  To be removed once Automake 1.9.x
3489 # dies out for good.  For more background, see:
3490 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3491 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3492 mkdir_p='$(MKDIR_P)'
3493
3494 # We need awk for the "check" target (and possibly the TAP driver).  The
3495 # system "awk" is bad on some platforms.
3496 # Always define AMTAR for backward compatibility.  Yes, it's still used
3497 # in the wild :-(  We should find a proper way to deprecate it ...
3498 AMTAR='$${TAR-tar}'
3499
3500
3501 # We'll loop over all known methods to create a tar archive until one works.
3502 _am_tools='gnutar  pax cpio none'
3503
3504 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3505
3506
3507
3508
3509
3510
3511 # POSIX will say in a future version that running "rm -f" with no argument
3512 # is OK; and we want to be able to make that assumption in our Makefile
3513 # recipes.  So use an aggressive probe to check that the usage we want is
3514 # actually supported "in the wild" to an acceptable degree.
3515 # See automake bug#10828.
3516 # To make any issue more visible, cause the running configure to be aborted
3517 # by default if the 'rm' program in use doesn't match our expectations; the
3518 # user can still override this though.
3519 if rm -f && rm -fr && rm -rf; then : OK; else
3520   cat >&2 <<'END'
3521 Oops!
3522
3523 Your 'rm' program seems unable to run without file operands specified
3524 on the command line, even when the '-f' option is present.  This is contrary
3525 to the behaviour of most rm programs out there, and not conforming with
3526 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3527
3528 Please tell bug-automake@gnu.org about your system, including the value
3529 of your $PATH and any error possibly output before this message.  This
3530 can help us improve future automake versions.
3531
3532 END
3533   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3534     echo 'Configuration will proceed anyway, since you have set the' >&2
3535     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3536     echo >&2
3537   else
3538     cat >&2 <<'END'
3539 Aborting the configuration process, to ensure you take notice of the issue.
3540
3541 You can download and install GNU coreutils to get an 'rm' implementation
3542 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3543
3544 If you want to complete the configuration process using your problematic
3545 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3546 to "yes", and re-run configure.
3547
3548 END
3549     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3550   fi
3551 fi
3552
3553 # Make sure we can run config.sub.
3554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3556
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3558 $as_echo_n "checking build system type... " >&6; }
3559 if ${ac_cv_build+:} false; then :
3560   $as_echo_n "(cached) " >&6
3561 else
3562   ac_build_alias=$build_alias
3563 test "x$ac_build_alias" = x &&
3564   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3565 test "x$ac_build_alias" = x &&
3566   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3568   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3569
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3572 $as_echo "$ac_cv_build" >&6; }
3573 case $ac_cv_build in
3574 *-*-*) ;;
3575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3576 esac
3577 build=$ac_cv_build
3578 ac_save_IFS=$IFS; IFS='-'
3579 set x $ac_cv_build
3580 shift
3581 build_cpu=$1
3582 build_vendor=$2
3583 shift; shift
3584 # Remember, the first character of IFS is used to create $*,
3585 # except with old shells:
3586 build_os=$*
3587 IFS=$ac_save_IFS
3588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3589
3590
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3592 $as_echo_n "checking host system type... " >&6; }
3593 if ${ac_cv_host+:} false; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if test "x$host_alias" = x; then
3597   ac_cv_host=$ac_cv_build
3598 else
3599   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3601 fi
3602
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3605 $as_echo "$ac_cv_host" >&6; }
3606 case $ac_cv_host in
3607 *-*-*) ;;
3608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3609 esac
3610 host=$ac_cv_host
3611 ac_save_IFS=$IFS; IFS='-'
3612 set x $ac_cv_host
3613 shift
3614 host_cpu=$1
3615 host_vendor=$2
3616 shift; shift
3617 # Remember, the first character of IFS is used to create $*,
3618 # except with old shells:
3619 host_os=$*
3620 IFS=$ac_save_IFS
3621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3622
3623
3624
3625
3626
3627
3628         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3629 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3630         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3631 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3632         hostname=`hostname`
3633         if test "$hostname"; then
3634            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3635 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3636         fi
3637
3638         date=`date +%Y%m%d-%H%M%S`
3639         if test "$?" != 0; then
3640            date=`date`
3641         fi
3642         if test "$date"; then
3643            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3644 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3645         fi
3646
3647
3648 DEPDIR="${am__leading_dot}deps"
3649
3650 ac_config_commands="$ac_config_commands depfiles"
3651
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3653 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3654 cat > confinc.mk << 'END'
3655 am__doit:
3656         @echo this is the am__doit target >confinc.out
3657 .PHONY: am__doit
3658 END
3659 am__include="#"
3660 am__quote=
3661 # BSD make does it like this.
3662 echo '.include "confinc.mk" # ignored' > confmf.BSD
3663 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3664 echo 'include confinc.mk # ignored' > confmf.GNU
3665 _am_result=no
3666 for s in GNU BSD; do
3667   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3668    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3669    ac_status=$?
3670    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671    (exit $ac_status); }
3672   case $?:`cat confinc.out 2>/dev/null` in #(
3673   '0:this is the am__doit target') :
3674     case $s in #(
3675   BSD) :
3676     am__include='.include' am__quote='"' ;; #(
3677   *) :
3678     am__include='include' am__quote='' ;;
3679 esac ;; #(
3680   *) :
3681      ;;
3682 esac
3683   if test "$am__include" != "#"; then
3684     _am_result="yes ($s style)"
3685     break
3686   fi
3687 done
3688 rm -f confinc.* confmf.*
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3690 $as_echo "${_am_result}" >&6; }
3691
3692 # Check whether --enable-dependency-tracking was given.
3693 if test "${enable_dependency_tracking+set}" = set; then :
3694   enableval=$enable_dependency_tracking;
3695 fi
3696
3697 if test "x$enable_dependency_tracking" != xno; then
3698   am_depcomp="$ac_aux_dir/depcomp"
3699   AMDEPBACKSLASH='\'
3700   am__nodep='_no'
3701 fi
3702  if test "x$enable_dependency_tracking" != xno; then
3703   AMDEP_TRUE=
3704   AMDEP_FALSE='#'
3705 else
3706   AMDEP_TRUE='#'
3707   AMDEP_FALSE=
3708 fi
3709
3710
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 if test -n "$ac_tool_prefix"; then
3717   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$CC"; then
3725   ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if test -z "$ac_cv_prog_CC"; then
3756   ac_ct_CC=$CC
3757   # Extract the first word of "gcc", so it can be a program name with args.
3758 set dummy gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   if test -n "$ac_ct_CC"; then
3765   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772     for ac_exec_ext in '' $ac_executable_extensions; do
3773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_prog_ac_ct_CC="gcc"
3775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779   done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3788 else
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791 fi
3792
3793   if test "x$ac_ct_CC" = x; then
3794     CC=""
3795   else
3796     case $cross_compiling:$ac_tool_warned in
3797 yes:)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3801 esac
3802     CC=$ac_ct_CC
3803   fi
3804 else
3805   CC="$ac_cv_prog_CC"
3806 fi
3807
3808 if test -z "$CC"; then
3809           if test -n "$ac_tool_prefix"; then
3810     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_CC="${ac_tool_prefix}cc"
3828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847   fi
3848 fi
3849 if test -z "$CC"; then
3850   # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   if test -n "$CC"; then
3858   ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860   ac_prog_rejected=no
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869        ac_prog_rejected=yes
3870        continue
3871      fi
3872     ac_cv_prog_CC="cc"
3873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877   done
3878 IFS=$as_save_IFS
3879
3880 if test $ac_prog_rejected = yes; then
3881   # We found a bogon in the path, so make sure we never use it.
3882   set dummy $ac_cv_prog_CC
3883   shift
3884   if test $# != 0; then
3885     # We chose a different compiler from the bogus one.
3886     # However, it has the same basename, so the bogon will be chosen
3887     # first if we set CC to just the basename; use the full file name.
3888     shift
3889     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890   fi
3891 fi
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if test -z "$CC"; then
3906   if test -n "$ac_tool_prefix"; then
3907   for ac_prog in cl.exe
3908   do
3909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   if test -n "$CC"; then
3917   ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924     for ac_exec_ext in '' $ac_executable_extensions; do
3925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931   done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946     test -n "$CC" && break
3947   done
3948 fi
3949 if test -z "$CC"; then
3950   ac_ct_CC=$CC
3951   for ac_prog in cl.exe
3952 do
3953   # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   if test -n "$ac_ct_CC"; then
3961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968     for ac_exec_ext in '' $ac_executable_extensions; do
3969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_ac_ct_CC="$ac_prog"
3971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975   done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3984 else
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990   test -n "$ac_ct_CC" && break
3991 done
3992
3993   if test "x$ac_ct_CC" = x; then
3994     CC=""
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002     CC=$ac_ct_CC
4003   fi
4004 fi
4005
4006 fi
4007
4008
4009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "no acceptable C compiler found in \$PATH
4012 See \`config.log' for more details" "$LINENO" 5; }
4013
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4016 set X $ac_compile
4017 ac_compiler=$2
4018 for ac_option in --version -v -V -qversion; do
4019   { { ac_try="$ac_compiler $ac_option >&5"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4027   ac_status=$?
4028   if test -s conftest.err; then
4029     sed '10a\
4030 ... rest of stderr output deleted ...
4031          10q' conftest.err >conftest.er1
4032     cat conftest.er1 >&5
4033   fi
4034   rm -f conftest.er1 conftest.err
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; }
4037 done
4038
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 ac_clean_files_save=$ac_clean_files
4051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4052 # Try to create an executable without -o first, disregard a.out.
4053 # It will help us diagnose broken compilers, and finding out an intuition
4054 # of exeext.
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4056 $as_echo_n "checking whether the C compiler works... " >&6; }
4057 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4058
4059 # The possible output files:
4060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4061
4062 ac_rmfiles=
4063 for ac_file in $ac_files
4064 do
4065   case $ac_file in
4066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4068   esac
4069 done
4070 rm -f $ac_rmfiles
4071
4072 if { { ac_try="$ac_link_default"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079   (eval "$ac_link_default") 2>&5
4080   ac_status=$?
4081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082   test $ac_status = 0; }; then :
4083   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4085 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4086 # so that the user can short-circuit this test for compilers unknown to
4087 # Autoconf.
4088 for ac_file in $ac_files ''
4089 do
4090   test -f "$ac_file" || continue
4091   case $ac_file in
4092     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4093         ;;
4094     [ab].out )
4095         # We found the default executable, but exeext='' is most
4096         # certainly right.
4097         break;;
4098     *.* )
4099         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4100         then :; else
4101            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4102         fi
4103         # We set ac_cv_exeext here because the later test for it is not
4104         # safe: cross compilers may not add the suffix if given an `-o'
4105         # argument, so we may need to know it at that point already.
4106         # Even if this section looks crufty: it has the advantage of
4107         # actually working.
4108         break;;
4109     * )
4110         break;;
4111   esac
4112 done
4113 test "$ac_cv_exeext" = no && ac_cv_exeext=
4114
4115 else
4116   ac_file=''
4117 fi
4118 if test -z "$ac_file"; then :
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error 77 "C compiler cannot create executables
4127 See \`config.log' for more details" "$LINENO" 5; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4133 $as_echo_n "checking for C compiler default output file name... " >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4135 $as_echo "$ac_file" >&6; }
4136 ac_exeext=$ac_cv_exeext
4137
4138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4141 $as_echo_n "checking for suffix of executables... " >&6; }
4142 if { { ac_try="$ac_link"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149   (eval "$ac_link") 2>&5
4150   ac_status=$?
4151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152   test $ac_status = 0; }; then :
4153   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4154 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4155 # work properly (i.e., refer to `conftest.exe'), while it won't with
4156 # `rm'.
4157 for ac_file in conftest.exe conftest conftest.*; do
4158   test -f "$ac_file" || continue
4159   case $ac_file in
4160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4161     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162           break;;
4163     * ) break;;
4164   esac
4165 done
4166 else
4167   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4170 See \`config.log' for more details" "$LINENO" 5; }
4171 fi
4172 rm -f conftest conftest$ac_cv_exeext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4174 $as_echo "$ac_cv_exeext" >&6; }
4175
4176 rm -f conftest.$ac_ext
4177 EXEEXT=$ac_cv_exeext
4178 ac_exeext=$EXEEXT
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181 #include <stdio.h>
4182 int
4183 main ()
4184 {
4185 FILE *f = fopen ("conftest.out", "w");
4186  return ferror (f) || fclose (f) != 0;
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 ac_clean_files="$ac_clean_files conftest.out"
4193 # Check that the compiler produces executables we can run.  If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 if test "$cross_compiling" != yes; then
4198   { { ac_try="$ac_link"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205   (eval "$ac_link") 2>&5
4206   ac_status=$?
4207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208   test $ac_status = 0; }
4209   if { ac_try='./conftest$ac_cv_exeext'
4210   { { case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216   (eval "$ac_try") 2>&5
4217   ac_status=$?
4218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219   test $ac_status = 0; }; }; then
4220     cross_compiling=no
4221   else
4222     if test "$cross_compiling" = maybe; then
4223         cross_compiling=yes
4224     else
4225         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error $? "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details" "$LINENO" 5; }
4230     fi
4231   fi
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234 $as_echo "$cross_compiling" >&6; }
4235
4236 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4239 $as_echo_n "checking for suffix of object files... " >&6; }
4240 if ${ac_cv_objext+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.o conftest.obj
4255 if { { ac_try="$ac_compile"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262   (eval "$ac_compile") 2>&5
4263   ac_status=$?
4264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265   test $ac_status = 0; }; then :
4266   for ac_file in conftest.o conftest.obj conftest.*; do
4267   test -f "$ac_file" || continue;
4268   case $ac_file in
4269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4270     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4271        break;;
4272   esac
4273 done
4274 else
4275   $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "cannot compute suffix of object files: cannot compile
4281 See \`config.log' for more details" "$LINENO" 5; }
4282 fi
4283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4286 $as_echo "$ac_cv_objext" >&6; }
4287 OBJEXT=$ac_cv_objext
4288 ac_objext=$OBJEXT
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4291 if ${ac_cv_c_compiler_gnu+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300 #ifndef __GNUC__
4301        choke me
4302 #endif
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309   ac_compiler_gnu=yes
4310 else
4311   ac_compiler_gnu=no
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4319 if test $ac_compiler_gnu = yes; then
4320   GCC=yes
4321 else
4322   GCC=
4323 fi
4324 ac_test_CFLAGS=${CFLAGS+set}
4325 ac_save_CFLAGS=$CFLAGS
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4328 if ${ac_cv_prog_cc_g+:} false; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   ac_save_c_werror_flag=$ac_c_werror_flag
4332    ac_c_werror_flag=yes
4333    ac_cv_prog_cc_g=no
4334    CFLAGS="-g"
4335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h.  */
4337
4338 int
4339 main ()
4340 {
4341
4342   ;
4343   return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347   ac_cv_prog_cc_g=yes
4348 else
4349   CFLAGS=""
4350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362
4363 else
4364   ac_c_werror_flag=$ac_save_c_werror_flag
4365          CFLAGS="-g"
4366          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378   ac_cv_prog_cc_g=yes
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385    ac_c_werror_flag=$ac_save_c_werror_flag
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4388 $as_echo "$ac_cv_prog_cc_g" >&6; }
4389 if test "$ac_test_CFLAGS" = set; then
4390   CFLAGS=$ac_save_CFLAGS
4391 elif test $ac_cv_prog_cc_g = yes; then
4392   if test "$GCC" = yes; then
4393     CFLAGS="-g -O2"
4394   else
4395     CFLAGS="-g"
4396   fi
4397 else
4398   if test "$GCC" = yes; then
4399     CFLAGS="-O2"
4400   else
4401     CFLAGS=
4402   fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4406 if ${ac_cv_prog_cc_c89+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   ac_cv_prog_cc_c89=no
4410 ac_save_CC=$CC
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413 #include <stdarg.h>
4414 #include <stdio.h>
4415 struct stat;
4416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4417 struct buf { int x; };
4418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419 static char *e (p, i)
4420      char **p;
4421      int i;
4422 {
4423   return p[i];
4424 }
4425 static char *f (char * (*g) (char **, int), char **p, ...)
4426 {
4427   char *s;
4428   va_list v;
4429   va_start (v,p);
4430   s = g (p, va_arg (v,int));
4431   va_end (v);
4432   return s;
4433 }
4434
4435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4436    function prototypes and stuff, but not '\xHH' hex character constants.
4437    These don't provoke an error unfortunately, instead are silently treated
4438    as 'x'.  The following induces an error, until -std is added to get
4439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4440    array size at least.  It's necessary to write '\x00'==0 to get something
4441    that's true only with -std.  */
4442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443
4444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445    inside strings and character constants.  */
4446 #define FOO(x) 'x'
4447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448
4449 int test (int i, double x);
4450 struct s1 {int (*f) (int a);};
4451 struct s2 {int (*f) (double a);};
4452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4453 int argc;
4454 char **argv;
4455 int
4456 main ()
4457 {
4458 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 do
4466   CC="$ac_save_CC $ac_arg"
4467   if ac_fn_c_try_compile "$LINENO"; then :
4468   ac_cv_prog_cc_c89=$ac_arg
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext
4471   test "x$ac_cv_prog_cc_c89" != "xno" && break
4472 done
4473 rm -f conftest.$ac_ext
4474 CC=$ac_save_CC
4475
4476 fi
4477 # AC_CACHE_VAL
4478 case "x$ac_cv_prog_cc_c89" in
4479   x)
4480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4481 $as_echo "none needed" >&6; } ;;
4482   xno)
4483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4484 $as_echo "unsupported" >&6; } ;;
4485   *)
4486     CC="$CC $ac_cv_prog_cc_c89"
4487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4489 esac
4490 if test "x$ac_cv_prog_cc_c89" != xno; then :
4491
4492 fi
4493
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4506 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4507 if ${am_cv_prog_cc_c_o+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521   # Make sure it works both with $CC and with simple cc.
4522   # Following AC_PROG_CC_C_O, we do the test twice because some
4523   # compilers refuse to overwrite an existing .o file with -o,
4524   # though they will create one.
4525   am_cv_prog_cc_c_o=yes
4526   for am_i in 1 2; do
4527     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4528    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4529    ac_status=$?
4530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531    (exit $ac_status); } \
4532          && test -f conftest2.$ac_objext; then
4533       : OK
4534     else
4535       am_cv_prog_cc_c_o=no
4536       break
4537     fi
4538   done
4539   rm -f core conftest*
4540   unset am_i
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4543 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4544 if test "$am_cv_prog_cc_c_o" != yes; then
4545    # Losing compiler, so override with the script.
4546    # FIXME: It is wrong to rewrite CC.
4547    # But if we don't then we get into trouble of one sort or another.
4548    # A longer-term fix would be to have automake use am__CC in this case,
4549    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4550    CC="$am_aux_dir/compile $CC"
4551 fi
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558
4559 depcc="$CC"   am_compiler_list=
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567   # We make a subdir and do the tests there.  Otherwise we can end up
4568   # making bogus files that we don't know about and never remove.  For
4569   # instance it was reported that on HP-UX the gcc test will end up
4570   # making a dummy file named 'D' -- because '-MD' means "put the output
4571   # in D".
4572   rm -rf conftest.dir
4573   mkdir conftest.dir
4574   # Copy depcomp to subdir because otherwise we won't find it if we're
4575   # using a relative directory.
4576   cp "$am_depcomp" conftest.dir
4577   cd conftest.dir
4578   # We will build objects and dependencies in a subdirectory because
4579   # it helps to detect inapplicable dependency modes.  For instance
4580   # both Tru64's cc and ICC support -MD to output dependencies as a
4581   # side effect of compilation, but ICC will put the dependencies in
4582   # the current directory while Tru64 will put them in the object
4583   # directory.
4584   mkdir sub
4585
4586   am_cv_CC_dependencies_compiler_type=none
4587   if test "$am_compiler_list" = ""; then
4588      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4589   fi
4590   am__universal=false
4591   case " $depcc " in #(
4592      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4593      esac
4594
4595   for depmode in $am_compiler_list; do
4596     # Setup a source with many dependencies, because some compilers
4597     # like to wrap large dependency lists on column 80 (with \), and
4598     # we should not choose a depcomp mode which is confused by this.
4599     #
4600     # We need to recreate these files for each test, as the compiler may
4601     # overwrite some of them when testing with obscure command lines.
4602     # This happens at least with the AIX C compiler.
4603     : > sub/conftest.c
4604     for i in 1 2 3 4 5 6; do
4605       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607       # Solaris 10 /bin/sh.
4608       echo '/* dummy */' > sub/conftst$i.h
4609     done
4610     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4611
4612     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613     # mode.  It turns out that the SunPro C++ compiler does not properly
4614     # handle '-M -o', and we need to detect this.  Also, some Intel
4615     # versions had trouble with output in subdirs.
4616     am__obj=sub/conftest.${OBJEXT-o}
4617     am__minus_obj="-o $am__obj"
4618     case $depmode in
4619     gcc)
4620       # This depmode causes a compiler race in universal mode.
4621       test "$am__universal" = false || continue
4622       ;;
4623     nosideeffect)
4624       # After this tag, mechanisms are not by side-effect, so they'll
4625       # only be used when explicitly requested.
4626       if test "x$enable_dependency_tracking" = xyes; then
4627         continue
4628       else
4629         break
4630       fi
4631       ;;
4632     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633       # This compiler won't grok '-c -o', but also, the minuso test has
4634       # not run yet.  These depmodes are late enough in the game, and
4635       # so weak that their functioning should not be impacted.
4636       am__obj=conftest.${OBJEXT-o}
4637       am__minus_obj=
4638       ;;
4639     none) break ;;
4640     esac
4641     if depmode=$depmode \
4642        source=sub/conftest.c object=$am__obj \
4643        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645          >/dev/null 2>conftest.err &&
4646        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650       # icc doesn't choke on unknown options, it will just issue warnings
4651       # or remarks (even with -Werror).  So we grep stderr for any message
4652       # that says an option was ignored or not supported.
4653       # When given -MP, icc 7.0 and 7.1 complain thusly:
4654       #   icc: Command line warning: ignoring option '-M'; no argument required
4655       # The diagnosis changed in icc 8.0:
4656       #   icc: Command line remark: option '-MP' not supported
4657       if (grep 'ignoring option' conftest.err ||
4658           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659         am_cv_CC_dependencies_compiler_type=$depmode
4660         break
4661       fi
4662     fi
4663   done
4664
4665   cd ..
4666   rm -rf conftest.dir
4667 else
4668   am_cv_CC_dependencies_compiler_type=none
4669 fi
4670
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4674 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4675
4676  if
4677   test "x$enable_dependency_tracking" != xno \
4678   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4679   am__fastdepCC_TRUE=
4680   am__fastdepCC_FALSE='#'
4681 else
4682   am__fastdepCC_TRUE='#'
4683   am__fastdepCC_FALSE=
4684 fi
4685
4686
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4697   CPP=
4698 fi
4699 if test -z "$CPP"; then
4700   if ${ac_cv_prog_CPP+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703       # Double quotes because CPP needs to be expanded
4704     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705     do
4706       ac_preproc_ok=false
4707 for ac_c_preproc_warn_flag in '' yes
4708 do
4709   # Use a header file that comes with gcc, so configuring glibc
4710   # with a fresh cross-compiler works.
4711   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712   # <limits.h> exists even on freestanding compilers.
4713   # On the NeXT, cc -E runs the code through the compiler's parser,
4714   # not just through cpp. "Syntax error" is here to catch this case.
4715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717 #ifdef __STDC__
4718 # include <limits.h>
4719 #else
4720 # include <assert.h>
4721 #endif
4722                      Syntax error
4723 _ACEOF
4724 if ac_fn_c_try_cpp "$LINENO"; then :
4725
4726 else
4727   # Broken: fails on valid input.
4728 continue
4729 fi
4730 rm -f conftest.err conftest.i conftest.$ac_ext
4731
4732   # OK, works on sane cases.  Now check whether nonexistent headers
4733   # can be detected and how.
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736 #include <ac_nonexistent.h>
4737 _ACEOF
4738 if ac_fn_c_try_cpp "$LINENO"; then :
4739   # Broken: success on invalid input.
4740 continue
4741 else
4742   # Passes both tests.
4743 ac_preproc_ok=:
4744 break
4745 fi
4746 rm -f conftest.err conftest.i conftest.$ac_ext
4747
4748 done
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.i conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then :
4752   break
4753 fi
4754
4755     done
4756     ac_cv_prog_CPP=$CPP
4757
4758 fi
4759   CPP=$ac_cv_prog_CPP
4760 else
4761   ac_cv_prog_CPP=$CPP
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4764 $as_echo "$CPP" >&6; }
4765 ac_preproc_ok=false
4766 for ac_c_preproc_warn_flag in '' yes
4767 do
4768   # Use a header file that comes with gcc, so configuring glibc
4769   # with a fresh cross-compiler works.
4770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771   # <limits.h> exists even on freestanding compilers.
4772   # On the NeXT, cc -E runs the code through the compiler's parser,
4773   # not just through cpp. "Syntax error" is here to catch this case.
4774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h.  */
4776 #ifdef __STDC__
4777 # include <limits.h>
4778 #else
4779 # include <assert.h>
4780 #endif
4781                      Syntax error
4782 _ACEOF
4783 if ac_fn_c_try_cpp "$LINENO"; then :
4784
4785 else
4786   # Broken: fails on valid input.
4787 continue
4788 fi
4789 rm -f conftest.err conftest.i conftest.$ac_ext
4790
4791   # OK, works on sane cases.  Now check whether nonexistent headers
4792   # can be detected and how.
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 #include <ac_nonexistent.h>
4796 _ACEOF
4797 if ac_fn_c_try_cpp "$LINENO"; then :
4798   # Broken: success on invalid input.
4799 continue
4800 else
4801   # Passes both tests.
4802 ac_preproc_ok=:
4803 break
4804 fi
4805 rm -f conftest.err conftest.i conftest.$ac_ext
4806
4807 done
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.i conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then :
4811
4812 else
4813   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4816 See \`config.log' for more details" "$LINENO" 5; }
4817 fi
4818
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828 if ${ac_cv_path_GREP+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -z "$GREP"; then
4832   ac_path_GREP_found=false
4833   # Loop through the user's path and test for each of PROGNAME-LIST
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_prog in grep ggrep; do
4840     for ac_exec_ext in '' $ac_executable_extensions; do
4841       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842       as_fn_executable_p "$ac_path_GREP" || continue
4843 # Check for GNU ac_path_GREP and select it if it is found.
4844   # Check for GNU $ac_path_GREP
4845 case `"$ac_path_GREP" --version 2>&1` in
4846 *GNU*)
4847   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4848 *)
4849   ac_count=0
4850   $as_echo_n 0123456789 >"conftest.in"
4851   while :
4852   do
4853     cat "conftest.in" "conftest.in" >"conftest.tmp"
4854     mv "conftest.tmp" "conftest.in"
4855     cp "conftest.in" "conftest.nl"
4856     $as_echo 'GREP' >> "conftest.nl"
4857     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859     as_fn_arith $ac_count + 1 && ac_count=$as_val
4860     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861       # Best one so far, save it but keep looking for a better one
4862       ac_cv_path_GREP="$ac_path_GREP"
4863       ac_path_GREP_max=$ac_count
4864     fi
4865     # 10*(2^10) chars as input seems more than enough
4866     test $ac_count -gt 10 && break
4867   done
4868   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871       $ac_path_GREP_found && break 3
4872     done
4873   done
4874   done
4875 IFS=$as_save_IFS
4876   if test -z "$ac_cv_path_GREP"; then
4877     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878   fi
4879 else
4880   ac_cv_path_GREP=$GREP
4881 fi
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885 $as_echo "$ac_cv_path_GREP" >&6; }
4886  GREP="$ac_cv_path_GREP"
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890 $as_echo_n "checking for egrep... " >&6; }
4891 if ${ac_cv_path_EGREP+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895    then ac_cv_path_EGREP="$GREP -E"
4896    else
4897      if test -z "$EGREP"; then
4898   ac_path_EGREP_found=false
4899   # Loop through the user's path and test for each of PROGNAME-LIST
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_prog in egrep; do
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908       as_fn_executable_p "$ac_path_EGREP" || continue
4909 # Check for GNU ac_path_EGREP and select it if it is found.
4910   # Check for GNU $ac_path_EGREP
4911 case `"$ac_path_EGREP" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4914 *)
4915   ac_count=0
4916   $as_echo_n 0123456789 >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     $as_echo 'EGREP' >> "conftest.nl"
4923     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     as_fn_arith $ac_count + 1 && ac_count=$as_val
4926     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_EGREP="$ac_path_EGREP"
4929       ac_path_EGREP_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937       $ac_path_EGREP_found && break 3
4938     done
4939   done
4940   done
4941 IFS=$as_save_IFS
4942   if test -z "$ac_cv_path_EGREP"; then
4943     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944   fi
4945 else
4946   ac_cv_path_EGREP=$EGREP
4947 fi
4948
4949    fi
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952 $as_echo "$ac_cv_path_EGREP" >&6; }
4953  EGREP="$ac_cv_path_EGREP"
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4957 $as_echo_n "checking for ANSI C header files... " >&6; }
4958 if ${ac_cv_header_stdc+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h.  */
4963 #include <stdlib.h>
4964 #include <stdarg.h>
4965 #include <string.h>
4966 #include <float.h>
4967
4968 int
4969 main ()
4970 {
4971
4972   ;
4973   return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977   ac_cv_header_stdc=yes
4978 else
4979   ac_cv_header_stdc=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982
4983 if test $ac_cv_header_stdc = yes; then
4984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987 #include <string.h>
4988
4989 _ACEOF
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991   $EGREP "memchr" >/dev/null 2>&1; then :
4992
4993 else
4994   ac_cv_header_stdc=no
4995 fi
4996 rm -f conftest*
4997
4998 fi
4999
5000 if test $ac_cv_header_stdc = yes; then
5001   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 #include <stdlib.h>
5005
5006 _ACEOF
5007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008   $EGREP "free" >/dev/null 2>&1; then :
5009
5010 else
5011   ac_cv_header_stdc=no
5012 fi
5013 rm -f conftest*
5014
5015 fi
5016
5017 if test $ac_cv_header_stdc = yes; then
5018   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5019   if test "$cross_compiling" = yes; then :
5020   :
5021 else
5022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h.  */
5024 #include <ctype.h>
5025 #include <stdlib.h>
5026 #if ((' ' & 0x0FF) == 0x020)
5027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5029 #else
5030 # define ISLOWER(c) \
5031                    (('a' <= (c) && (c) <= 'i') \
5032                      || ('j' <= (c) && (c) <= 'r') \
5033                      || ('s' <= (c) && (c) <= 'z'))
5034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5035 #endif
5036
5037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5038 int
5039 main ()
5040 {
5041   int i;
5042   for (i = 0; i < 256; i++)
5043     if (XOR (islower (i), ISLOWER (i))
5044         || toupper (i) != TOUPPER (i))
5045       return 2;
5046   return 0;
5047 }
5048 _ACEOF
5049 if ac_fn_c_try_run "$LINENO"; then :
5050
5051 else
5052   ac_cv_header_stdc=no
5053 fi
5054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5055   conftest.$ac_objext conftest.beam conftest.$ac_ext
5056 fi
5057
5058 fi
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5061 $as_echo "$ac_cv_header_stdc" >&6; }
5062 if test $ac_cv_header_stdc = yes; then
5063
5064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5065
5066 fi
5067
5068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5070                   inttypes.h stdint.h unistd.h
5071 do :
5072   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5074 "
5075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5076   cat >>confdefs.h <<_ACEOF
5077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5078 _ACEOF
5079
5080 fi
5081
5082 done
5083
5084
5085
5086   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5088   MINIX=yes
5089 else
5090   MINIX=
5091 fi
5092
5093
5094   if test "$MINIX" = yes; then
5095
5096 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5097
5098
5099 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5100
5101
5102 $as_echo "#define _MINIX 1" >>confdefs.h
5103
5104   fi
5105
5106
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5108 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5109 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h.  */
5114
5115 #         define __EXTENSIONS__ 1
5116           $ac_includes_default
5117 int
5118 main ()
5119 {
5120
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126   ac_cv_safe_to_define___extensions__=yes
5127 else
5128   ac_cv_safe_to_define___extensions__=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5133 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5134   test $ac_cv_safe_to_define___extensions__ = yes &&
5135     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5136
5137   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5138
5139   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5140
5141   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5142
5143   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5144
5145
5146
5147
5148 # Some status variables.
5149 have_gpg_error=no
5150 have_libgcrypt=no
5151 have_libassuan=no
5152 have_ksba=no
5153 have_ntbtls=no
5154 have_gnutls=no
5155 have_sqlite=no
5156 have_npth=no
5157 have_libusb=no
5158 have_libtss=no
5159 have_system_resolver=no
5160 gnupg_have_ldap="n/a"
5161
5162 use_zip=yes
5163 use_bzip2=yes
5164 use_exec=yes
5165 use_trust_models=yes
5166 use_tofu=yes
5167 use_libdns=yes
5168 card_support=yes
5169 use_ccid_driver=auto
5170 dirmngr_auto_start=yes
5171 use_tls_library=no
5172 large_secmem=no
5173 show_tor_support=no
5174
5175 # gpg is a required part and can't be disabled anymore.
5176 build_gpg=yes
5177
5178    build_gpgsm=yes
5179
5180       # Check whether --enable-gpgsm was given.
5181 if test "${enable_gpgsm+set}" = set; then :
5182   enableval=$enable_gpgsm; build_gpgsm=$enableval
5183 else
5184   build_gpgsm=yes
5185 fi
5186
5187
5188    case "$build_gpgsm" in
5189          no|yes)
5190            ;;
5191          *)
5192            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5193            ;;
5194    esac
5195
5196
5197 # The agent is a required part and can't be disabled anymore.
5198 build_agent=yes
5199
5200    build_scdaemon=yes
5201
5202       # Check whether --enable-scdaemon was given.
5203 if test "${enable_scdaemon+set}" = set; then :
5204   enableval=$enable_scdaemon; build_scdaemon=$enableval
5205 else
5206   build_scdaemon=yes
5207 fi
5208
5209
5210    case "$build_scdaemon" in
5211          no|yes)
5212            ;;
5213          *)
5214            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5215            ;;
5216    esac
5217
5218
5219
5220    build_g13=no
5221
5222       # Check whether --enable-g13 was given.
5223 if test "${enable_g13+set}" = set; then :
5224   enableval=$enable_g13; build_g13=$enableval
5225 else
5226   build_g13=no
5227 fi
5228
5229
5230    case "$build_g13" in
5231          no|yes)
5232            ;;
5233          *)
5234            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5235            ;;
5236    esac
5237
5238
5239
5240    build_dirmngr=yes
5241
5242       # Check whether --enable-dirmngr was given.
5243 if test "${enable_dirmngr+set}" = set; then :
5244   enableval=$enable_dirmngr; build_dirmngr=$enableval
5245 else
5246   build_dirmngr=yes
5247 fi
5248
5249
5250    case "$build_dirmngr" in
5251          no|yes)
5252            ;;
5253          *)
5254            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5255            ;;
5256    esac
5257
5258
5259
5260    build_keyboxd=yes
5261
5262       # Check whether --enable-keyboxd was given.
5263 if test "${enable_keyboxd+set}" = set; then :
5264   enableval=$enable_keyboxd; build_keyboxd=$enableval
5265 else
5266   build_keyboxd=yes
5267 fi
5268
5269
5270    case "$build_keyboxd" in
5271          no|yes)
5272            ;;
5273          *)
5274            as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5275            ;;
5276    esac
5277
5278
5279
5280    build_tpm2d=yes
5281
5282       # Check whether --enable-tpm2d was given.
5283 if test "${enable_tpm2d+set}" = set; then :
5284   enableval=$enable_tpm2d; build_tpm2d=$enableval
5285 else
5286   build_tpm2d=yes
5287 fi
5288
5289
5290    case "$build_tpm2d" in
5291          no|yes)
5292            ;;
5293          *)
5294            as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5295            ;;
5296    esac
5297
5298
5299
5300    build_doc=yes
5301
5302       # Check whether --enable-doc was given.
5303 if test "${enable_doc+set}" = set; then :
5304   enableval=$enable_doc; build_doc=$enableval
5305 else
5306   build_doc=yes
5307 fi
5308
5309
5310    case "$build_doc" in
5311          no|yes)
5312            ;;
5313          *)
5314            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5315            ;;
5316    esac
5317
5318
5319 # We use gpgtar to unpack test data, hence we always build it.  If the
5320 # user opts out, we simply don't install it.
5321
5322    build_gpgtar=yes
5323
5324       # Check whether --enable-gpgtar was given.
5325 if test "${enable_gpgtar+set}" = set; then :
5326   enableval=$enable_gpgtar; build_gpgtar=$enableval
5327 else
5328   build_gpgtar=yes
5329 fi
5330
5331
5332    case "$build_gpgtar" in
5333          no|yes)
5334            ;;
5335          *)
5336            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5337            ;;
5338    esac
5339
5340
5341 # We also install the gpg-wks-server tool by default but disable it
5342 # later for platforms where it can't be build.
5343
5344    build_wks_tools=yes
5345
5346       # Check whether --enable-wks-tools was given.
5347 if test "${enable_wks_tools+set}" = set; then :
5348   enableval=$enable_wks_tools; build_wks_tools=$enableval
5349 else
5350   build_wks_tools=yes
5351 fi
5352
5353
5354    case "$build_wks_tools" in
5355          no|yes)
5356            ;;
5357          *)
5358            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5359            ;;
5360    esac
5361
5362
5363
5364
5365
5366
5367
5368
5369 cat >>confdefs.h <<_ACEOF
5370 #define PACKAGE "$PACKAGE"
5371 _ACEOF
5372
5373
5374 cat >>confdefs.h <<_ACEOF
5375 #define PACKAGE_GT "$PACKAGE_GT"
5376 _ACEOF
5377
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define VERSION "$VERSION"
5381 _ACEOF
5382
5383
5384 cat >>confdefs.h <<_ACEOF
5385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5386 _ACEOF
5387
5388
5389 cat >>confdefs.h <<_ACEOF
5390 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5391 _ACEOF
5392
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5396 _ACEOF
5397
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5401 _ACEOF
5402
5403
5404
5405
5406 # The default is to use the modules from this package and the few
5407 # other packages in a standard place; i.e where this package gets
5408 # installed.  With these options it is possible to override these
5409 # ${prefix} depended values with fixed paths, which can't be replaced
5410 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5411
5412 # Check whether --with-agent-pgm was given.
5413 if test "${with_agent_pgm+set}" = set; then :
5414   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5415 else
5416   GNUPG_AGENT_PGM=""
5417 fi
5418
5419
5420  if test -n "$GNUPG_AGENT_PGM"; then
5421   GNUPG_AGENT_PGM_TRUE=
5422   GNUPG_AGENT_PGM_FALSE='#'
5423 else
5424   GNUPG_AGENT_PGM_TRUE='#'
5425   GNUPG_AGENT_PGM_FALSE=
5426 fi
5427
5428 show_gnupg_agent_pgm="(default)"
5429 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5430
5431
5432 # Check whether --with-pinentry-pgm was given.
5433 if test "${with_pinentry_pgm+set}" = set; then :
5434   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5435 else
5436   GNUPG_PINENTRY_PGM=""
5437 fi
5438
5439
5440  if test -n "$GNUPG_PINENTRY_PGM"; then
5441   GNUPG_PINENTRY_PGM_TRUE=
5442   GNUPG_PINENTRY_PGM_FALSE='#'
5443 else
5444   GNUPG_PINENTRY_PGM_TRUE='#'
5445   GNUPG_PINENTRY_PGM_FALSE=
5446 fi
5447
5448 show_gnupg_pinentry_pgm="(default)"
5449 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5450
5451
5452
5453 # Check whether --with-scdaemon-pgm was given.
5454 if test "${with_scdaemon_pgm+set}" = set; then :
5455   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5456 else
5457   GNUPG_SCDAEMON_PGM=""
5458 fi
5459
5460
5461  if test -n "$GNUPG_SCDAEMON_PGM"; then
5462   GNUPG_SCDAEMON_PGM_TRUE=
5463   GNUPG_SCDAEMON_PGM_FALSE='#'
5464 else
5465   GNUPG_SCDAEMON_PGM_TRUE='#'
5466   GNUPG_SCDAEMON_PGM_FALSE=
5467 fi
5468
5469 show_gnupg_scdaemon_pgm="(default)"
5470 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5471
5472
5473
5474 # Check whether --with-tpm2daemon-pgm was given.
5475 if test "${with_tpm2daemon_pgm+set}" = set; then :
5476   withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5477 else
5478   GNUPG_TPM2DAEMON_PGM=""
5479 fi
5480
5481
5482  if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5483   GNUPG_TPM2DAEMON_PGM_TRUE=
5484   GNUPG_TPM2DAEMON_PGM_FALSE='#'
5485 else
5486   GNUPG_TPM2DAEMON_PGM_TRUE='#'
5487   GNUPG_TPM2DAEMON_PGM_FALSE=
5488 fi
5489
5490 show_gnupg_tpm2daemon_pgm="(default)"
5491 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5492
5493
5494
5495 # Check whether --with-dirmngr-pgm was given.
5496 if test "${with_dirmngr_pgm+set}" = set; then :
5497   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5498 else
5499   GNUPG_DIRMNGR_PGM=""
5500 fi
5501
5502
5503  if test -n "$GNUPG_DIRMNGR_PGM"; then
5504   GNUPG_DIRMNGR_PGM_TRUE=
5505   GNUPG_DIRMNGR_PGM_FALSE='#'
5506 else
5507   GNUPG_DIRMNGR_PGM_TRUE='#'
5508   GNUPG_DIRMNGR_PGM_FALSE=
5509 fi
5510
5511 show_gnupg_dirmngr_pgm="(default)"
5512 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5513
5514
5515 # Check whether --with-keyboxd-pgm was given.
5516 if test "${with_keyboxd_pgm+set}" = set; then :
5517   withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5518 else
5519   GNUPG_KEYBOXD_PGM=""
5520 fi
5521
5522
5523  if test -n "$GNUPG_KEYBOXD_PGM"; then
5524   GNUPG_KEYBOXD_PGM_TRUE=
5525   GNUPG_KEYBOXD_PGM_FALSE='#'
5526 else
5527   GNUPG_KEYBOXD_PGM_TRUE='#'
5528   GNUPG_KEYBOXD_PGM_FALSE=
5529 fi
5530
5531 show_gnupg_keyboxd_pgm="(default)"
5532 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5533
5534
5535 # Check whether --with-protect-tool-pgm was given.
5536 if test "${with_protect_tool_pgm+set}" = set; then :
5537   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5538 else
5539   GNUPG_PROTECT_TOOL_PGM=""
5540 fi
5541
5542
5543  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5544   GNUPG_PROTECT_TOOL_PGM_TRUE=
5545   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5546 else
5547   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5548   GNUPG_PROTECT_TOOL_PGM_FALSE=
5549 fi
5550
5551 show_gnupg_protect_tool_pgm="(default)"
5552 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5553       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5554
5555
5556 # Check whether --with-dirmngr-ldap-pgm was given.
5557 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5558   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5559 else
5560   GNUPG_DIRMNGR_LDAP_PGM=""
5561 fi
5562
5563
5564  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5565   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5566   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5567 else
5568   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5569   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5570 fi
5571
5572 show_gnupg_dirmngr_ldap_pgm="(default)"
5573 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5574       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5575
5576
5577 #
5578 # For a long time gpg 2.x was installed as gpg2.  This changed with
5579 # 2.2.  This option can be used to install gpg under the name gpg2.
5580 #
5581 # Check whether --enable-gpg-is-gpg2 was given.
5582 if test "${enable_gpg_is_gpg2+set}" = set; then :
5583   enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5584 fi
5585
5586 if test "$gpg_is_gpg2" = "yes"; then
5587
5588 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5589
5590 fi
5591  if test "$gpg_is_gpg2" = "yes"; then
5592   USE_GPG2_HACK_TRUE=
5593   USE_GPG2_HACK_FALSE='#'
5594 else
5595   USE_GPG2_HACK_TRUE='#'
5596   USE_GPG2_HACK_FALSE=
5597 fi
5598
5599
5600
5601 # SELinux support includes tracking of sensitive files to avoid
5602 # leaking their contents through processing these files by gpg itself
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5604 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5605 # Check whether --enable-selinux-support was given.
5606 if test "${enable_selinux_support+set}" = set; then :
5607   enableval=$enable_selinux_support; selinux_support=$enableval
5608 else
5609   selinux_support=no
5610 fi
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5613 $as_echo "$selinux_support" >&6; }
5614
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5617 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5618 # Check whether --enable-large-secmem was given.
5619 if test "${enable_large_secmem+set}" = set; then :
5620   enableval=$enable_large_secmem; large_secmem=$enableval
5621 else
5622   large_secmem=no
5623 fi
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5626 $as_echo "$large_secmem" >&6; }
5627 if test "$large_secmem" = yes ; then
5628    SECMEM_BUFFER_SIZE=65536
5629 else
5630    SECMEM_BUFFER_SIZE=32768
5631 fi
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5635 _ACEOF
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5639 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5640
5641 # Check whether --with-agent-s2k-calibration was given.
5642 if test "${with_agent_s2k_calibration+set}" = set; then :
5643   withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5644 else
5645   agent_s2k_calibration=100
5646 fi
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5649 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5653 _ACEOF
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5657 $as_echo_n "checking whether to enable trust models... " >&6; }
5658 # Check whether --enable-trust-models was given.
5659 if test "${enable_trust_models+set}" = set; then :
5660   enableval=$enable_trust_models; use_trust_models=$enableval
5661 fi
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5664 $as_echo "$use_trust_models" >&6; }
5665 if test "$use_trust_models" = no ; then
5666
5667 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5668
5669 fi
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5672 $as_echo_n "checking whether to enable TOFU... " >&6; }
5673 # Check whether --enable-tofu was given.
5674 if test "${enable_tofu+set}" = set; then :
5675   enableval=$enable_tofu; use_tofu=$enableval
5676 else
5677   use_tofu=$use_trust_models
5678 fi
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5681 $as_echo "$use_tofu" >&6; }
5682 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5683     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5684 fi
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5687 $as_echo_n "checking whether to enable libdns... " >&6; }
5688 # Check whether --enable-libdns was given.
5689 if test "${enable_libdns+set}" = set; then :
5690   enableval=$enable_libdns; use_libdns=$enableval
5691 else
5692   use_libdns=yes
5693 fi
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5696 $as_echo "$use_libdns" >&6; }
5697 if test x"$use_libdns" = xyes ; then
5698
5699 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5700
5701 fi
5702  if test "$use_libdns" = yes; then
5703   USE_LIBDNS_TRUE=
5704   USE_LIBDNS_FALSE='#'
5705 else
5706   USE_LIBDNS_TRUE='#'
5707   USE_LIBDNS_FALSE=
5708 fi
5709
5710
5711
5712 #
5713 # Options to disable algorithm
5714 #
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5717 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5718    # Check whether --enable-gpg-rsa was given.
5719 if test "${enable_gpg_rsa+set}" = set; then :
5720   enableval=$enable_gpg_rsa;
5721 else
5722   enableval=yes
5723 fi
5724
5725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5726 $as_echo "$enableval" >&6; }
5727    if test x"$enableval" = xyes ; then
5728
5729 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5730
5731    fi
5732
5733 # Elgamal is a MUST algorithm
5734 # DSA is a MUST algorithm
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5736 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5737    # Check whether --enable-gpg-ecdh was given.
5738 if test "${enable_gpg_ecdh+set}" = set; then :
5739   enableval=$enable_gpg_ecdh;
5740 else
5741   enableval=yes
5742 fi
5743
5744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5745 $as_echo "$enableval" >&6; }
5746    if test x"$enableval" = xyes ; then
5747
5748 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5749
5750    fi
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5753 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5754    # Check whether --enable-gpg-ecdsa was given.
5755 if test "${enable_gpg_ecdsa+set}" = set; then :
5756   enableval=$enable_gpg_ecdsa;
5757 else
5758   enableval=yes
5759 fi
5760
5761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5762 $as_echo "$enableval" >&6; }
5763    if test x"$enableval" = xyes ; then
5764
5765 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5766
5767    fi
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5770 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5771    # Check whether --enable-gpg-eddsa was given.
5772 if test "${enable_gpg_eddsa+set}" = set; then :
5773   enableval=$enable_gpg_eddsa;
5774 else
5775   enableval=yes
5776 fi
5777
5778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5779 $as_echo "$enableval" >&6; }
5780    if test x"$enableval" = xyes ; then
5781
5782 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5783
5784    fi
5785
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5788 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5789    # Check whether --enable-gpg-idea was given.
5790 if test "${enable_gpg_idea+set}" = set; then :
5791   enableval=$enable_gpg_idea;
5792 else
5793   enableval=yes
5794 fi
5795
5796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5797 $as_echo "$enableval" >&6; }
5798    if test x"$enableval" = xyes ; then
5799
5800 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5801
5802    fi
5803
5804 # 3DES is a MUST algorithm
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5806 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5807    # Check whether --enable-gpg-cast5 was given.
5808 if test "${enable_gpg_cast5+set}" = set; then :
5809   enableval=$enable_gpg_cast5;
5810 else
5811   enableval=yes
5812 fi
5813
5814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5815 $as_echo "$enableval" >&6; }
5816    if test x"$enableval" = xyes ; then
5817
5818 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5819
5820    fi
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5823 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5824    # Check whether --enable-gpg-blowfish was given.
5825 if test "${enable_gpg_blowfish+set}" = set; then :
5826   enableval=$enable_gpg_blowfish;
5827 else
5828   enableval=yes
5829 fi
5830
5831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5832 $as_echo "$enableval" >&6; }
5833    if test x"$enableval" = xyes ; then
5834
5835 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5836
5837    fi
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5840 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5841    # Check whether --enable-gpg-aes128 was given.
5842 if test "${enable_gpg_aes128+set}" = set; then :
5843   enableval=$enable_gpg_aes128;
5844 else
5845   enableval=yes
5846 fi
5847
5848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5849 $as_echo "$enableval" >&6; }
5850    if test x"$enableval" = xyes ; then
5851
5852 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5853
5854    fi
5855
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5857 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5858    # Check whether --enable-gpg-aes192 was given.
5859 if test "${enable_gpg_aes192+set}" = set; then :
5860   enableval=$enable_gpg_aes192;
5861 else
5862   enableval=yes
5863 fi
5864
5865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5866 $as_echo "$enableval" >&6; }
5867    if test x"$enableval" = xyes ; then
5868
5869 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5870
5871    fi
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5874 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5875    # Check whether --enable-gpg-aes256 was given.
5876 if test "${enable_gpg_aes256+set}" = set; then :
5877   enableval=$enable_gpg_aes256;
5878 else
5879   enableval=yes
5880 fi
5881
5882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5883 $as_echo "$enableval" >&6; }
5884    if test x"$enableval" = xyes ; then
5885
5886 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5887
5888    fi
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5891 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5892    # Check whether --enable-gpg-twofish was given.
5893 if test "${enable_gpg_twofish+set}" = set; then :
5894   enableval=$enable_gpg_twofish;
5895 else
5896   enableval=yes
5897 fi
5898
5899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5900 $as_echo "$enableval" >&6; }
5901    if test x"$enableval" = xyes ; then
5902
5903 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5904
5905    fi
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5908 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5909    # Check whether --enable-gpg-camellia128 was given.
5910 if test "${enable_gpg_camellia128+set}" = set; then :
5911   enableval=$enable_gpg_camellia128;
5912 else
5913   enableval=yes
5914 fi
5915
5916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5917 $as_echo "$enableval" >&6; }
5918    if test x"$enableval" = xyes ; then
5919
5920 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5921
5922    fi
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5925 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5926    # Check whether --enable-gpg-camellia192 was given.
5927 if test "${enable_gpg_camellia192+set}" = set; then :
5928   enableval=$enable_gpg_camellia192;
5929 else
5930   enableval=yes
5931 fi
5932
5933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5934 $as_echo "$enableval" >&6; }
5935    if test x"$enableval" = xyes ; then
5936
5937 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5938
5939    fi
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5942 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5943    # Check whether --enable-gpg-camellia256 was given.
5944 if test "${enable_gpg_camellia256+set}" = set; then :
5945   enableval=$enable_gpg_camellia256;
5946 else
5947   enableval=yes
5948 fi
5949
5950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5951 $as_echo "$enableval" >&6; }
5952    if test x"$enableval" = xyes ; then
5953
5954 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5955
5956    fi
5957
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5960 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5961    # Check whether --enable-gpg-md5 was given.
5962 if test "${enable_gpg_md5+set}" = set; then :
5963   enableval=$enable_gpg_md5;
5964 else
5965   enableval=yes
5966 fi
5967
5968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5969 $as_echo "$enableval" >&6; }
5970    if test x"$enableval" = xyes ; then
5971
5972 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5973
5974    fi
5975
5976 # SHA1 is a MUST algorithm
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5978 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5979    # Check whether --enable-gpg-rmd160 was given.
5980 if test "${enable_gpg_rmd160+set}" = set; then :
5981   enableval=$enable_gpg_rmd160;
5982 else
5983   enableval=yes
5984 fi
5985
5986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5987 $as_echo "$enableval" >&6; }
5988    if test x"$enableval" = xyes ; then
5989
5990 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5991
5992    fi
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5995 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5996    # Check whether --enable-gpg-sha224 was given.
5997 if test "${enable_gpg_sha224+set}" = set; then :
5998   enableval=$enable_gpg_sha224;
5999 else
6000   enableval=yes
6001 fi
6002
6003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6004 $as_echo "$enableval" >&6; }
6005    if test x"$enableval" = xyes ; then
6006
6007 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6008
6009    fi
6010
6011 # SHA256 is a MUST algorithm for GnuPG.
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6013 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6014    # Check whether --enable-gpg-sha384 was given.
6015 if test "${enable_gpg_sha384+set}" = set; then :
6016   enableval=$enable_gpg_sha384;
6017 else
6018   enableval=yes
6019 fi
6020
6021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6022 $as_echo "$enableval" >&6; }
6023    if test x"$enableval" = xyes ; then
6024
6025 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6026
6027    fi
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6030 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6031    # Check whether --enable-gpg-sha512 was given.
6032 if test "${enable_gpg_sha512+set}" = set; then :
6033   enableval=$enable_gpg_sha512;
6034 else
6035   enableval=yes
6036 fi
6037
6038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6039 $as_echo "$enableval" >&6; }
6040    if test x"$enableval" = xyes ; then
6041
6042 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6043
6044    fi
6045
6046
6047
6048 # Allow disabling of zip support.
6049 # This is in general not a good idea because according to rfc4880 OpenPGP
6050 # implementations SHOULD support ZLIB.
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6052 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6053 # Check whether --enable-zip was given.
6054 if test "${enable_zip+set}" = set; then :
6055   enableval=$enable_zip; use_zip=$enableval
6056 fi
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6059 $as_echo "$use_zip" >&6; }
6060
6061 # Allow disabling of bzib2 support.
6062 # It is defined only after we confirm the library is available later
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6064 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6065 # Check whether --enable-bzip2 was given.
6066 if test "${enable_bzip2+set}" = set; then :
6067   enableval=$enable_bzip2; use_bzip2=$enableval
6068 fi
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6071 $as_echo "$use_bzip2" >&6; }
6072
6073 # Configure option to allow or disallow execution of external
6074 # programs, like a photo viewer.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6076 $as_echo_n "checking whether to enable external program execution... " >&6; }
6077 # Check whether --enable-exec was given.
6078 if test "${enable_exec+set}" = set; then :
6079   enableval=$enable_exec; use_exec=$enableval
6080 fi
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6083 $as_echo "$use_exec" >&6; }
6084 if test "$use_exec" = no ; then
6085
6086 $as_echo "#define NO_EXEC 1" >>confdefs.h
6087
6088 fi
6089
6090 if test "$use_exec" = yes ; then
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6092 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6093   # Check whether --enable-photo-viewers was given.
6094 if test "${enable_photo_viewers+set}" = set; then :
6095   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6096
6097 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6098
6099       fi
6100 else
6101   enableval=yes
6102 fi
6103
6104   gnupg_cv_enable_photo_viewers=$enableval
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6106 $as_echo "$enableval" >&6; }
6107
6108   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6110 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6111
6112 # Check whether --with-photo-viewer was given.
6113 if test "${with_photo_viewer+set}" = set; then :
6114   withval=$with_photo_viewer; if test "$withval" = yes ; then
6115            withval=no
6116         elif test "$withval" != no ; then
6117
6118 cat >>confdefs.h <<_ACEOF
6119 #define FIXED_PHOTO_VIEWER "$withval"
6120 _ACEOF
6121
6122         fi
6123 else
6124   withval=no
6125 fi
6126
6127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6128 $as_echo "$withval" >&6; }
6129   fi
6130 fi
6131
6132
6133 #
6134 # Check for the key/uid cache size.  This can't be zero, but can be
6135 # pretty small on embedded systems.  This is used for the gpg part.
6136 #
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6138 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6139 # Check whether --enable-key-cache was given.
6140 if test "${enable_key_cache+set}" = set; then :
6141   enableval=$enable_key_cache;
6142 else
6143   enableval=4096
6144 fi
6145
6146 if test "$enableval" = "no"; then
6147    enableval=5
6148 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6149    enableval=4096
6150 fi
6151 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6152 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6153    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6156 $as_echo "$key_cache_size" >&6; }
6157
6158 cat >>confdefs.h <<_ACEOF
6159 #define PK_UID_CACHE_SIZE $key_cache_size
6160 _ACEOF
6161
6162
6163
6164
6165 #
6166 # Check whether we want to use Linux capabilities
6167 #
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6169 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6170
6171 # Check whether --with-capabilities was given.
6172 if test "${with_capabilities+set}" = set; then :
6173   withval=$with_capabilities; use_capabilities="$withval"
6174 else
6175   use_capabilities=no
6176 fi
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6179 $as_echo "$use_capabilities" >&6; }
6180
6181 #
6182 # Check whether to disable the card support
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6184 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6185 # Check whether --enable-card-support was given.
6186 if test "${enable_card_support+set}" = set; then :
6187   enableval=$enable_card_support; card_support=$enableval
6188 fi
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6191 $as_echo "$card_support" >&6; }
6192 if test "$card_support" = yes ; then
6193
6194 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6195
6196 else
6197   build_scdaemon=no
6198 fi
6199
6200 #
6201 # Allow disabling of internal CCID support.
6202 # It is defined only after we confirm the library is available later
6203 #
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6205 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6206 # Check whether --enable-ccid-driver was given.
6207 if test "${enable_ccid_driver+set}" = set; then :
6208   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6209 fi
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6212 $as_echo "$use_ccid_driver" >&6; }
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6215 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6216 # Check whether --enable-dirmngr-auto-start was given.
6217 if test "${enable_dirmngr_auto_start+set}" = set; then :
6218   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6219 fi
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6222 $as_echo "$dirmngr_auto_start" >&6; }
6223 if test "$dirmngr_auto_start" = yes ; then
6224
6225 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6226
6227 fi
6228
6229
6230 #
6231 # To avoid double inclusion of config.h which might happen at some
6232 # places, we add the usual double inclusion protection at the top of
6233 # config.h.
6234 #
6235
6236
6237 #
6238 # Stuff which goes at the bottom of config.h.
6239 #
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6245 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6246     # Check whether --enable-maintainer-mode was given.
6247 if test "${enable_maintainer_mode+set}" = set; then :
6248   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6249 else
6250   USE_MAINTAINER_MODE=no
6251 fi
6252
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6254 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6255    if test $USE_MAINTAINER_MODE = yes; then
6256   MAINTAINER_MODE_TRUE=
6257   MAINTAINER_MODE_FALSE='#'
6258 else
6259   MAINTAINER_MODE_TRUE='#'
6260   MAINTAINER_MODE_FALSE=
6261 fi
6262
6263   MAINT=$MAINTAINER_MODE_TRUE
6264
6265
6266
6267
6268 # Checks for programs.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6270 $as_echo "$as_me: checking for programs" >&6;}
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6272 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6273 set x ${MAKE-make}
6274 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6275 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278   cat >conftest.make <<\_ACEOF
6279 SHELL = /bin/sh
6280 all:
6281         @echo '@@@%%%=$(MAKE)=@@@%%%'
6282 _ACEOF
6283 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6284 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6285   *@@@%%%=?*=@@@%%%*)
6286     eval ac_cv_prog_make_${ac_make}_set=yes;;
6287   *)
6288     eval ac_cv_prog_make_${ac_make}_set=no;;
6289 esac
6290 rm -f conftest.make
6291 fi
6292 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6294 $as_echo "yes" >&6; }
6295   SET_MAKE=
6296 else
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299   SET_MAKE="MAKE=${MAKE-make}"
6300 fi
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6303 $as_echo_n "checking whether build environment is sane... " >&6; }
6304 # Reject unsafe characters in $srcdir or the absolute working directory
6305 # name.  Accept space and tab only in the latter.
6306 am_lf='
6307 '
6308 case `pwd` in
6309   *[\\\"\#\$\&\'\`$am_lf]*)
6310     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6311 esac
6312 case $srcdir in
6313   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6314     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6315 esac
6316
6317 # Do 'set' in a subshell so we don't clobber the current shell's
6318 # arguments.  Must try -L first in case configure is actually a
6319 # symlink; some systems play weird games with the mod time of symlinks
6320 # (eg FreeBSD returns the mod time of the symlink's containing
6321 # directory).
6322 if (
6323    am_has_slept=no
6324    for am_try in 1 2; do
6325      echo "timestamp, slept: $am_has_slept" > conftest.file
6326      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6327      if test "$*" = "X"; then
6328         # -L didn't work.
6329         set X `ls -t "$srcdir/configure" conftest.file`
6330      fi
6331      if test "$*" != "X $srcdir/configure conftest.file" \
6332         && test "$*" != "X conftest.file $srcdir/configure"; then
6333
6334         # If neither matched, then we have a broken ls.  This can happen
6335         # if, for instance, CONFIG_SHELL is bash and it inherits a
6336         # broken ls alias from the environment.  This has actually
6337         # happened.  Such a system could not be considered "sane".
6338         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6339   alias in your environment" "$LINENO" 5
6340      fi
6341      if test "$2" = conftest.file || test $am_try -eq 2; then
6342        break
6343      fi
6344      # Just in case.
6345      sleep 1
6346      am_has_slept=yes
6347    done
6348    test "$2" = conftest.file
6349    )
6350 then
6351    # Ok.
6352    :
6353 else
6354    as_fn_error $? "newly created file is older than distributed files!
6355 Check your system clock" "$LINENO" 5
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358 $as_echo "yes" >&6; }
6359 # If we didn't sleep, we still need to ensure time stamps of config.status and
6360 # generated files are strictly newer.
6361 am_sleep_pid=
6362 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6363   ( sleep 1 ) &
6364   am_sleep_pid=$!
6365 fi
6366
6367 rm -f conftest.file
6368
6369 missing_dir=`cd $ac_aux_dir && pwd`
6370
6371 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6372
6373
6374 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6375
6376
6377 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6378
6379
6380 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6381
6382
6383 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6384
6385 # Check whether --enable-silent-rules was given.
6386 if test "${enable_silent_rules+set}" = set; then :
6387   enableval=$enable_silent_rules;
6388 fi
6389
6390 case $enable_silent_rules in # (((
6391   yes) AM_DEFAULT_VERBOSITY=0;;
6392    no) AM_DEFAULT_VERBOSITY=1;;
6393     *) AM_DEFAULT_VERBOSITY=1;;
6394 esac
6395 am_make=${MAKE-make}
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6397 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6398 if ${am_cv_make_support_nested_variables+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if $as_echo 'TRUE=$(BAR$(V))
6402 BAR0=false
6403 BAR1=true
6404 V=1
6405 am__doit:
6406         @$(TRUE)
6407 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6408   am_cv_make_support_nested_variables=yes
6409 else
6410   am_cv_make_support_nested_variables=no
6411 fi
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6414 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6415 if test $am_cv_make_support_nested_variables = yes; then
6416     AM_V='$(V)'
6417   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6418 else
6419   AM_V=$AM_DEFAULT_VERBOSITY
6420   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6421 fi
6422 AM_BACKSLASH='\'
6423
6424 for ac_prog in gawk mawk nawk awk
6425 do
6426   # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_AWK+:} false; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   if test -n "$AWK"; then
6434   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441     for ac_exec_ext in '' $ac_executable_extensions; do
6442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443     ac_cv_prog_AWK="$ac_prog"
6444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448   done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 AWK=$ac_cv_prog_AWK
6454 if test -n "$AWK"; then
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6456 $as_echo "$AWK" >&6; }
6457 else
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462
6463   test -n "$AWK" && break
6464 done
6465
6466 ac_ext=c
6467 ac_cpp='$CPP $CPPFLAGS'
6468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471 if test -n "$ac_tool_prefix"; then
6472   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_CC+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$CC"; then
6480   ac_cv_prog_CC="$CC" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 CC=$ac_cv_prog_CC
6500 if test -n "$CC"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6502 $as_echo "$CC" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 fi
6510 if test -z "$ac_cv_prog_CC"; then
6511   ac_ct_CC=$CC
6512   # Extract the first word of "gcc", so it can be a program name with args.
6513 set dummy gcc; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$ac_ct_CC"; then
6520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527     for ac_exec_ext in '' $ac_executable_extensions; do
6528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529     ac_cv_prog_ac_ct_CC="gcc"
6530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534   done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6540 if test -n "$ac_ct_CC"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6542 $as_echo "$ac_ct_CC" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$ac_ct_CC" = x; then
6549     CC=""
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     CC=$ac_ct_CC
6558   fi
6559 else
6560   CC="$ac_cv_prog_CC"
6561 fi
6562
6563 if test -z "$CC"; then
6564           if test -n "$ac_tool_prefix"; then
6565     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}cc; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_CC+:} false; then :
6570   $as_echo_n "(cached) " >&6
6571 else
6572   if test -n "$CC"; then
6573   ac_cv_prog_CC="$CC" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580     for ac_exec_ext in '' $ac_executable_extensions; do
6581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582     ac_cv_prog_CC="${ac_tool_prefix}cc"
6583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587   done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 CC=$ac_cv_prog_CC
6593 if test -n "$CC"; then
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6595 $as_echo "$CC" >&6; }
6596 else
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601
6602   fi
6603 fi
6604 if test -z "$CC"; then
6605   # Extract the first word of "cc", so it can be a program name with args.
6606 set dummy cc; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_CC+:} false; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   if test -n "$CC"; then
6613   ac_cv_prog_CC="$CC" # Let the user override the test.
6614 else
6615   ac_prog_rejected=no
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621     for ac_exec_ext in '' $ac_executable_extensions; do
6622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6624        ac_prog_rejected=yes
6625        continue
6626      fi
6627     ac_cv_prog_CC="cc"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 if test $ac_prog_rejected = yes; then
6636   # We found a bogon in the path, so make sure we never use it.
6637   set dummy $ac_cv_prog_CC
6638   shift
6639   if test $# != 0; then
6640     # We chose a different compiler from the bogus one.
6641     # However, it has the same basename, so the bogon will be chosen
6642     # first if we set CC to just the basename; use the full file name.
6643     shift
6644     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6645   fi
6646 fi
6647 fi
6648 fi
6649 CC=$ac_cv_prog_CC
6650 if test -n "$CC"; then
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6652 $as_echo "$CC" >&6; }
6653 else
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$CC"; then
6661   if test -n "$ac_tool_prefix"; then
6662   for ac_prog in cl.exe
6663   do
6664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_CC+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$CC"; then
6672   ac_cv_prog_CC="$CC" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 CC=$ac_cv_prog_CC
6692 if test -n "$CC"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6694 $as_echo "$CC" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701     test -n "$CC" && break
6702   done
6703 fi
6704 if test -z "$CC"; then
6705   ac_ct_CC=$CC
6706   for ac_prog in cl.exe
6707 do
6708   # Extract the first word of "$ac_prog", so it can be a program name with args.
6709 set dummy $ac_prog; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   if test -n "$ac_ct_CC"; then
6716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723     for ac_exec_ext in '' $ac_executable_extensions; do
6724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725     ac_cv_prog_ac_ct_CC="$ac_prog"
6726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730   done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6736 if test -n "$ac_ct_CC"; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6738 $as_echo "$ac_ct_CC" >&6; }
6739 else
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745   test -n "$ac_ct_CC" && break
6746 done
6747
6748   if test "x$ac_ct_CC" = x; then
6749     CC=""
6750   else
6751     case $cross_compiling:$ac_tool_warned in
6752 yes:)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757     CC=$ac_ct_CC
6758   fi
6759 fi
6760
6761 fi
6762
6763
6764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6766 as_fn_error $? "no acceptable C compiler found in \$PATH
6767 See \`config.log' for more details" "$LINENO" 5; }
6768
6769 # Provide some information about the compiler.
6770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6771 set X $ac_compile
6772 ac_compiler=$2
6773 for ac_option in --version -v -V -qversion; do
6774   { { ac_try="$ac_compiler $ac_option >&5"
6775 case "(($ac_try" in
6776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777   *) ac_try_echo=$ac_try;;
6778 esac
6779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6780 $as_echo "$ac_try_echo"; } >&5
6781   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6782   ac_status=$?
6783   if test -s conftest.err; then
6784     sed '10a\
6785 ... rest of stderr output deleted ...
6786          10q' conftest.err >conftest.er1
6787     cat conftest.er1 >&5
6788   fi
6789   rm -f conftest.er1 conftest.err
6790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791   test $ac_status = 0; }
6792 done
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6796 if ${ac_cv_c_compiler_gnu+:} false; then :
6797   $as_echo_n "(cached) " >&6
6798 else
6799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801
6802 int
6803 main ()
6804 {
6805 #ifndef __GNUC__
6806        choke me
6807 #endif
6808
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"; then :
6814   ac_compiler_gnu=yes
6815 else
6816   ac_compiler_gnu=no
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6820
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6823 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6824 if test $ac_compiler_gnu = yes; then
6825   GCC=yes
6826 else
6827   GCC=
6828 fi
6829 ac_test_CFLAGS=${CFLAGS+set}
6830 ac_save_CFLAGS=$CFLAGS
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6832 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6833 if ${ac_cv_prog_cc_g+:} false; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   ac_save_c_werror_flag=$ac_c_werror_flag
6837    ac_c_werror_flag=yes
6838    ac_cv_prog_cc_g=no
6839    CFLAGS="-g"
6840    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842
6843 int
6844 main ()
6845 {
6846
6847   ;
6848   return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852   ac_cv_prog_cc_g=yes
6853 else
6854   CFLAGS=""
6855       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h.  */
6857
6858 int
6859 main ()
6860 {
6861
6862   ;
6863   return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867
6868 else
6869   ac_c_werror_flag=$ac_save_c_werror_flag
6870          CFLAGS="-g"
6871          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h.  */
6873
6874 int
6875 main ()
6876 {
6877
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883   ac_cv_prog_cc_g=yes
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890    ac_c_werror_flag=$ac_save_c_werror_flag
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6893 $as_echo "$ac_cv_prog_cc_g" >&6; }
6894 if test "$ac_test_CFLAGS" = set; then
6895   CFLAGS=$ac_save_CFLAGS
6896 elif test $ac_cv_prog_cc_g = yes; then
6897   if test "$GCC" = yes; then
6898     CFLAGS="-g -O2"
6899   else
6900     CFLAGS="-g"
6901   fi
6902 else
6903   if test "$GCC" = yes; then
6904     CFLAGS="-O2"
6905   else
6906     CFLAGS=
6907   fi
6908 fi
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6911 if ${ac_cv_prog_cc_c89+:} false; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   ac_cv_prog_cc_c89=no
6915 ac_save_CC=$CC
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h.  */
6918 #include <stdarg.h>
6919 #include <stdio.h>
6920 struct stat;
6921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6922 struct buf { int x; };
6923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6924 static char *e (p, i)
6925      char **p;
6926      int i;
6927 {
6928   return p[i];
6929 }
6930 static char *f (char * (*g) (char **, int), char **p, ...)
6931 {
6932   char *s;
6933   va_list v;
6934   va_start (v,p);
6935   s = g (p, va_arg (v,int));
6936   va_end (v);
6937   return s;
6938 }
6939
6940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6941    function prototypes and stuff, but not '\xHH' hex character constants.
6942    These don't provoke an error unfortunately, instead are silently treated
6943    as 'x'.  The following induces an error, until -std is added to get
6944    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6945    array size at least.  It's necessary to write '\x00'==0 to get something
6946    that's true only with -std.  */
6947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6948
6949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6950    inside strings and character constants.  */
6951 #define FOO(x) 'x'
6952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6953
6954 int test (int i, double x);
6955 struct s1 {int (*f) (int a);};
6956 struct s2 {int (*f) (double a);};
6957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6958 int argc;
6959 char **argv;
6960 int
6961 main ()
6962 {
6963 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6969         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6970 do
6971   CC="$ac_save_CC $ac_arg"
6972   if ac_fn_c_try_compile "$LINENO"; then :
6973   ac_cv_prog_cc_c89=$ac_arg
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext
6976   test "x$ac_cv_prog_cc_c89" != "xno" && break
6977 done
6978 rm -f conftest.$ac_ext
6979 CC=$ac_save_CC
6980
6981 fi
6982 # AC_CACHE_VAL
6983 case "x$ac_cv_prog_cc_c89" in
6984   x)
6985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6986 $as_echo "none needed" >&6; } ;;
6987   xno)
6988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6989 $as_echo "unsupported" >&6; } ;;
6990   *)
6991     CC="$CC $ac_cv_prog_cc_c89"
6992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6993 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6994 esac
6995 if test "x$ac_cv_prog_cc_c89" != xno; then :
6996
6997 fi
6998
6999 ac_ext=c
7000 ac_cpp='$CPP $CPPFLAGS'
7001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
7005 ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7011 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7012 if ${am_cv_prog_cc_c_o+:} false; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h.  */
7017
7018 int
7019 main ()
7020 {
7021
7022   ;
7023   return 0;
7024 }
7025 _ACEOF
7026   # Make sure it works both with $CC and with simple cc.
7027   # Following AC_PROG_CC_C_O, we do the test twice because some
7028   # compilers refuse to overwrite an existing .o file with -o,
7029   # though they will create one.
7030   am_cv_prog_cc_c_o=yes
7031   for am_i in 1 2; do
7032     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7033    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7034    ac_status=$?
7035    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036    (exit $ac_status); } \
7037          && test -f conftest2.$ac_objext; then
7038       : OK
7039     else
7040       am_cv_prog_cc_c_o=no
7041       break
7042     fi
7043   done
7044   rm -f core conftest*
7045   unset am_i
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7048 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7049 if test "$am_cv_prog_cc_c_o" != yes; then
7050    # Losing compiler, so override with the script.
7051    # FIXME: It is wrong to rewrite CC.
7052    # But if we don't then we get into trouble of one sort or another.
7053    # A longer-term fix would be to have automake use am__CC in this case,
7054    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7055    CC="$am_aux_dir/compile $CC"
7056 fi
7057 ac_ext=c
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063
7064 depcc="$CC"   am_compiler_list=
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7067 $as_echo_n "checking dependency style of $depcc... " >&6; }
7068 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7072   # We make a subdir and do the tests there.  Otherwise we can end up
7073   # making bogus files that we don't know about and never remove.  For
7074   # instance it was reported that on HP-UX the gcc test will end up
7075   # making a dummy file named 'D' -- because '-MD' means "put the output
7076   # in D".
7077   rm -rf conftest.dir
7078   mkdir conftest.dir
7079   # Copy depcomp to subdir because otherwise we won't find it if we're
7080   # using a relative directory.
7081   cp "$am_depcomp" conftest.dir
7082   cd conftest.dir
7083   # We will build objects and dependencies in a subdirectory because
7084   # it helps to detect inapplicable dependency modes.  For instance
7085   # both Tru64's cc and ICC support -MD to output dependencies as a
7086   # side effect of compilation, but ICC will put the dependencies in
7087   # the current directory while Tru64 will put them in the object
7088   # directory.
7089   mkdir sub
7090
7091   am_cv_CC_dependencies_compiler_type=none
7092   if test "$am_compiler_list" = ""; then
7093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7094   fi
7095   am__universal=false
7096   case " $depcc " in #(
7097      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7098      esac
7099
7100   for depmode in $am_compiler_list; do
7101     # Setup a source with many dependencies, because some compilers
7102     # like to wrap large dependency lists on column 80 (with \), and
7103     # we should not choose a depcomp mode which is confused by this.
7104     #
7105     # We need to recreate these files for each test, as the compiler may
7106     # overwrite some of them when testing with obscure command lines.
7107     # This happens at least with the AIX C compiler.
7108     : > sub/conftest.c
7109     for i in 1 2 3 4 5 6; do
7110       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7111       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7112       # Solaris 10 /bin/sh.
7113       echo '/* dummy */' > sub/conftst$i.h
7114     done
7115     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7116
7117     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7118     # mode.  It turns out that the SunPro C++ compiler does not properly
7119     # handle '-M -o', and we need to detect this.  Also, some Intel
7120     # versions had trouble with output in subdirs.
7121     am__obj=sub/conftest.${OBJEXT-o}
7122     am__minus_obj="-o $am__obj"
7123     case $depmode in
7124     gcc)
7125       # This depmode causes a compiler race in universal mode.
7126       test "$am__universal" = false || continue
7127       ;;
7128     nosideeffect)
7129       # After this tag, mechanisms are not by side-effect, so they'll
7130       # only be used when explicitly requested.
7131       if test "x$enable_dependency_tracking" = xyes; then
7132         continue
7133       else
7134         break
7135       fi
7136       ;;
7137     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7138       # This compiler won't grok '-c -o', but also, the minuso test has
7139       # not run yet.  These depmodes are late enough in the game, and
7140       # so weak that their functioning should not be impacted.
7141       am__obj=conftest.${OBJEXT-o}
7142       am__minus_obj=
7143       ;;
7144     none) break ;;
7145     esac
7146     if depmode=$depmode \
7147        source=sub/conftest.c object=$am__obj \
7148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7149        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7150          >/dev/null 2>conftest.err &&
7151        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7152        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7153        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7154        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7155       # icc doesn't choke on unknown options, it will just issue warnings
7156       # or remarks (even with -Werror).  So we grep stderr for any message
7157       # that says an option was ignored or not supported.
7158       # When given -MP, icc 7.0 and 7.1 complain thusly:
7159       #   icc: Command line warning: ignoring option '-M'; no argument required
7160       # The diagnosis changed in icc 8.0:
7161       #   icc: Command line remark: option '-MP' not supported
7162       if (grep 'ignoring option' conftest.err ||
7163           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7164         am_cv_CC_dependencies_compiler_type=$depmode
7165         break
7166       fi
7167     fi
7168   done
7169
7170   cd ..
7171   rm -rf conftest.dir
7172 else
7173   am_cv_CC_dependencies_compiler_type=none
7174 fi
7175
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7180
7181  if
7182   test "x$enable_dependency_tracking" != xno \
7183   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7184   am__fastdepCC_TRUE=
7185   am__fastdepCC_FALSE='#'
7186 else
7187   am__fastdepCC_TRUE='#'
7188   am__fastdepCC_FALSE=
7189 fi
7190
7191
7192 ac_ext=c
7193 ac_cpp='$CPP $CPPFLAGS'
7194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7198 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7199 # On Suns, sometimes $CPP names a directory.
7200 if test -n "$CPP" && test -d "$CPP"; then
7201   CPP=
7202 fi
7203 if test -z "$CPP"; then
7204   if ${ac_cv_prog_CPP+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207       # Double quotes because CPP needs to be expanded
7208     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7209     do
7210       ac_preproc_ok=false
7211 for ac_c_preproc_warn_flag in '' yes
7212 do
7213   # Use a header file that comes with gcc, so configuring glibc
7214   # with a fresh cross-compiler works.
7215   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216   # <limits.h> exists even on freestanding compilers.
7217   # On the NeXT, cc -E runs the code through the compiler's parser,
7218   # not just through cpp. "Syntax error" is here to catch this case.
7219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h.  */
7221 #ifdef __STDC__
7222 # include <limits.h>
7223 #else
7224 # include <assert.h>
7225 #endif
7226                      Syntax error
7227 _ACEOF
7228 if ac_fn_c_try_cpp "$LINENO"; then :
7229
7230 else
7231   # Broken: fails on valid input.
7232 continue
7233 fi
7234 rm -f conftest.err conftest.i conftest.$ac_ext
7235
7236   # OK, works on sane cases.  Now check whether nonexistent headers
7237   # can be detected and how.
7238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h.  */
7240 #include <ac_nonexistent.h>
7241 _ACEOF
7242 if ac_fn_c_try_cpp "$LINENO"; then :
7243   # Broken: success on invalid input.
7244 continue
7245 else
7246   # Passes both tests.
7247 ac_preproc_ok=:
7248 break
7249 fi
7250 rm -f conftest.err conftest.i conftest.$ac_ext
7251
7252 done
7253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7254 rm -f conftest.i conftest.err conftest.$ac_ext
7255 if $ac_preproc_ok; then :
7256   break
7257 fi
7258
7259     done
7260     ac_cv_prog_CPP=$CPP
7261
7262 fi
7263   CPP=$ac_cv_prog_CPP
7264 else
7265   ac_cv_prog_CPP=$CPP
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7268 $as_echo "$CPP" >&6; }
7269 ac_preproc_ok=false
7270 for ac_c_preproc_warn_flag in '' yes
7271 do
7272   # Use a header file that comes with gcc, so configuring glibc
7273   # with a fresh cross-compiler works.
7274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275   # <limits.h> exists even on freestanding compilers.
7276   # On the NeXT, cc -E runs the code through the compiler's parser,
7277   # not just through cpp. "Syntax error" is here to catch this case.
7278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h.  */
7280 #ifdef __STDC__
7281 # include <limits.h>
7282 #else
7283 # include <assert.h>
7284 #endif
7285                      Syntax error
7286 _ACEOF
7287 if ac_fn_c_try_cpp "$LINENO"; then :
7288
7289 else
7290   # Broken: fails on valid input.
7291 continue
7292 fi
7293 rm -f conftest.err conftest.i conftest.$ac_ext
7294
7295   # OK, works on sane cases.  Now check whether nonexistent headers
7296   # can be detected and how.
7297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h.  */
7299 #include <ac_nonexistent.h>
7300 _ACEOF
7301 if ac_fn_c_try_cpp "$LINENO"; then :
7302   # Broken: success on invalid input.
7303 continue
7304 else
7305   # Passes both tests.
7306 ac_preproc_ok=:
7307 break
7308 fi
7309 rm -f conftest.err conftest.i conftest.$ac_ext
7310
7311 done
7312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7313 rm -f conftest.i conftest.err conftest.$ac_ext
7314 if $ac_preproc_ok; then :
7315
7316 else
7317   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7319 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7320 See \`config.log' for more details" "$LINENO" 5; }
7321 fi
7322
7323 ac_ext=c
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328
7329
7330 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7331   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7332 fi
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7335 $as_echo_n "checking whether ln -s works... " >&6; }
7336 LN_S=$as_ln_s
7337 if test "$LN_S" = "ln -s"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7339 $as_echo "yes" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7342 $as_echo "no, using $LN_S" >&6; }
7343 fi
7344
7345 if test -n "$ac_tool_prefix"; then
7346   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_RANLIB+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   if test -n "$RANLIB"; then
7354   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 RANLIB=$ac_cv_prog_RANLIB
7374 if test -n "$RANLIB"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7376 $as_echo "$RANLIB" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_RANLIB"; then
7385   ac_ct_RANLIB=$RANLIB
7386   # Extract the first word of "ranlib", so it can be a program name with args.
7387 set dummy ranlib; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$ac_ct_RANLIB"; then
7394   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403     ac_cv_prog_ac_ct_RANLIB="ranlib"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7414 if test -n "$ac_ct_RANLIB"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7416 $as_echo "$ac_ct_RANLIB" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422   if test "x$ac_ct_RANLIB" = x; then
7423     RANLIB=":"
7424   else
7425     case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431     RANLIB=$ac_ct_RANLIB
7432   fi
7433 else
7434   RANLIB="$ac_cv_prog_RANLIB"
7435 fi
7436
7437 if test -n "$ac_tool_prefix"; then
7438   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}ar; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_AR+:} false; then :
7443   $as_echo_n "(cached) " >&6
7444 else
7445   if test -n "$AR"; then
7446   ac_cv_prog_AR="$AR" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453     for ac_exec_ext in '' $ac_executable_extensions; do
7454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_prog_AR="${ac_tool_prefix}ar"
7456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460   done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 AR=$ac_cv_prog_AR
7466 if test -n "$AR"; then
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7468 $as_echo "$AR" >&6; }
7469 else
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474
7475 fi
7476 if test -z "$ac_cv_prog_AR"; then
7477   ac_ct_AR=$AR
7478   # Extract the first word of "ar", so it can be a program name with args.
7479 set dummy ar; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485   if test -n "$ac_ct_AR"; then
7486   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493     for ac_exec_ext in '' $ac_executable_extensions; do
7494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495     ac_cv_prog_ac_ct_AR="ar"
7496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500   done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7506 if test -n "$ac_ct_AR"; then
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7508 $as_echo "$ac_ct_AR" >&6; }
7509 else
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514   if test "x$ac_ct_AR" = x; then
7515     AR=":"
7516   else
7517     case $cross_compiling:$ac_tool_warned in
7518 yes:)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned=yes ;;
7522 esac
7523     AR=$ac_ct_AR
7524   fi
7525 else
7526   AR="$ac_cv_prog_AR"
7527 fi
7528
7529 # Extract the first word of ""perl"", so it can be a program name with args.
7530 set dummy "perl"; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_path_PERL+:} false; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   case $PERL in
7537   [\\/]* | ?:[\\/]*)
7538   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7539   ;;
7540   *)
7541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546     for ac_exec_ext in '' $ac_executable_extensions; do
7547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553   done
7554 IFS=$as_save_IFS
7555
7556   ;;
7557 esac
7558 fi
7559 PERL=$ac_cv_path_PERL
7560 if test -n "$PERL"; then
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7562 $as_echo "$PERL" >&6; }
7563 else
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568
7569 if test -n "$ac_tool_prefix"; then
7570   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}windres; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_WINDRES+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$WINDRES"; then
7578   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585     for ac_exec_ext in '' $ac_executable_extensions; do
7586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592   done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 WINDRES=$ac_cv_prog_WINDRES
7598 if test -n "$WINDRES"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7600 $as_echo "$WINDRES" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 fi
7608 if test -z "$ac_cv_prog_WINDRES"; then
7609   ac_ct_WINDRES=$WINDRES
7610   # Extract the first word of "windres", so it can be a program name with args.
7611 set dummy windres; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$ac_ct_WINDRES"; then
7618   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627     ac_cv_prog_ac_ct_WINDRES="windres"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7638 if test -n "$ac_ct_WINDRES"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7640 $as_echo "$ac_ct_WINDRES" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646   if test "x$ac_ct_WINDRES" = x; then
7647     WINDRES=":"
7648   else
7649     case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655     WINDRES=$ac_ct_WINDRES
7656   fi
7657 else
7658   WINDRES="$ac_cv_prog_WINDRES"
7659 fi
7660
7661 # Extract the first word of ""yat2m"", so it can be a program name with args.
7662 set dummy "yat2m"; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_path_YAT2M+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   case $YAT2M in
7669   [\\/]* | ?:[\\/]*)
7670   ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7671   ;;
7672   *)
7673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678     for ac_exec_ext in '' $ac_executable_extensions; do
7679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680     ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685   done
7686 IFS=$as_save_IFS
7687
7688   test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7689   ;;
7690 esac
7691 fi
7692 YAT2M=$ac_cv_path_YAT2M
7693 if test -n "$YAT2M"; then
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7695 $as_echo "$YAT2M" >&6; }
7696 else
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702
7703  if test -n "$ac_cv_path_YAT2M"; then
7704   HAVE_YAT2M_TRUE=
7705   HAVE_YAT2M_FALSE='#'
7706 else
7707   HAVE_YAT2M_TRUE='#'
7708   HAVE_YAT2M_FALSE=
7709 fi
7710
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7712 $as_echo_n "checking for library containing strerror... " >&6; }
7713 if ${ac_cv_search_strerror+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   ac_func_search_save_LIBS=$LIBS
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719
7720 /* Override any GCC internal prototype to avoid an error.
7721    Use char because int might match the return type of a GCC
7722    builtin and then its argument prototype would still apply.  */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 char strerror ();
7727 int
7728 main ()
7729 {
7730 return strerror ();
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 for ac_lib in '' cposix; do
7736   if test -z "$ac_lib"; then
7737     ac_res="none required"
7738   else
7739     ac_res=-l$ac_lib
7740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7741   fi
7742   if ac_fn_c_try_link "$LINENO"; then :
7743   ac_cv_search_strerror=$ac_res
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext \
7746     conftest$ac_exeext
7747   if ${ac_cv_search_strerror+:} false; then :
7748   break
7749 fi
7750 done
7751 if ${ac_cv_search_strerror+:} false; then :
7752
7753 else
7754   ac_cv_search_strerror=no
7755 fi
7756 rm conftest.$ac_ext
7757 LIBS=$ac_func_search_save_LIBS
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7760 $as_echo "$ac_cv_search_strerror" >&6; }
7761 ac_res=$ac_cv_search_strerror
7762 if test "$ac_res" != no; then :
7763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7764
7765 fi
7766
7767 # Check whether --enable-largefile was given.
7768 if test "${enable_largefile+set}" = set; then :
7769   enableval=$enable_largefile;
7770 fi
7771
7772 if test "$enable_largefile" != no; then
7773
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7776 if ${ac_cv_sys_largefile_CC+:} false; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   ac_cv_sys_largefile_CC=no
7780      if test "$GCC" != yes; then
7781        ac_save_CC=$CC
7782        while :; do
7783          # IRIX 6.2 and later do not support large files by default,
7784          # so use the C compiler's -n32 option if that helps.
7785          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h.  */
7787 #include <sys/types.h>
7788  /* Check that off_t can represent 2**63 - 1 correctly.
7789     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7790     since some C++ compilers masquerading as C compilers
7791     incorrectly reject 9223372036854775807.  */
7792 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7793   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7794                        && LARGE_OFF_T % 2147483647 == 1)
7795                       ? 1 : -1];
7796 int
7797 main ()
7798 {
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804          if ac_fn_c_try_compile "$LINENO"; then :
7805   break
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext
7808          CC="$CC -n32"
7809          if ac_fn_c_try_compile "$LINENO"; then :
7810   ac_cv_sys_largefile_CC=' -n32'; break
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext
7813          break
7814        done
7815        CC=$ac_save_CC
7816        rm -f conftest.$ac_ext
7817     fi
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7820 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7821   if test "$ac_cv_sys_largefile_CC" != no; then
7822     CC=$CC$ac_cv_sys_largefile_CC
7823   fi
7824
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7826 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7827 if ${ac_cv_sys_file_offset_bits+:} false; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   while :; do
7831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h.  */
7833 #include <sys/types.h>
7834  /* Check that off_t can represent 2**63 - 1 correctly.
7835     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7836     since some C++ compilers masquerading as C compilers
7837     incorrectly reject 9223372036854775807.  */
7838 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7839   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7840                        && LARGE_OFF_T % 2147483647 == 1)
7841                       ? 1 : -1];
7842 int
7843 main ()
7844 {
7845
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851   ac_cv_sys_file_offset_bits=no; break
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h.  */
7856 #define _FILE_OFFSET_BITS 64
7857 #include <sys/types.h>
7858  /* Check that off_t can represent 2**63 - 1 correctly.
7859     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7860     since some C++ compilers masquerading as C compilers
7861     incorrectly reject 9223372036854775807.  */
7862 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7863   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7864                        && LARGE_OFF_T % 2147483647 == 1)
7865                       ? 1 : -1];
7866 int
7867 main ()
7868 {
7869
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875   ac_cv_sys_file_offset_bits=64; break
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878   ac_cv_sys_file_offset_bits=unknown
7879   break
7880 done
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7883 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7884 case $ac_cv_sys_file_offset_bits in #(
7885   no | unknown) ;;
7886   *)
7887 cat >>confdefs.h <<_ACEOF
7888 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7889 _ACEOF
7890 ;;
7891 esac
7892 rm -rf conftest*
7893   if test $ac_cv_sys_file_offset_bits = unknown; then
7894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7895 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7896 if ${ac_cv_sys_large_files+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   while :; do
7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h.  */
7902 #include <sys/types.h>
7903  /* Check that off_t can represent 2**63 - 1 correctly.
7904     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7905     since some C++ compilers masquerading as C compilers
7906     incorrectly reject 9223372036854775807.  */
7907 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7908   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7909                        && LARGE_OFF_T % 2147483647 == 1)
7910                       ? 1 : -1];
7911 int
7912 main ()
7913 {
7914
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_compile "$LINENO"; then :
7920   ac_cv_sys_large_files=no; break
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925 #define _LARGE_FILES 1
7926 #include <sys/types.h>
7927  /* Check that off_t can represent 2**63 - 1 correctly.
7928     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7929     since some C++ compilers masquerading as C compilers
7930     incorrectly reject 9223372036854775807.  */
7931 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7932   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7933                        && LARGE_OFF_T % 2147483647 == 1)
7934                       ? 1 : -1];
7935 int
7936 main ()
7937 {
7938
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944   ac_cv_sys_large_files=1; break
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947   ac_cv_sys_large_files=unknown
7948   break
7949 done
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7952 $as_echo "$ac_cv_sys_large_files" >&6; }
7953 case $ac_cv_sys_large_files in #(
7954   no | unknown) ;;
7955   *)
7956 cat >>confdefs.h <<_ACEOF
7957 #define _LARGE_FILES $ac_cv_sys_large_files
7958 _ACEOF
7959 ;;
7960 esac
7961 rm -rf conftest*
7962   fi
7963
7964
7965 fi
7966
7967
7968
7969 # GNU AWK requires -n option to interpret "0xHH" as a number
7970 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7971   AWK_HEX_NUMBER_OPTION=''
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7973 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7974 else
7975   AWK_HEX_NUMBER_OPTION='-n'
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7977 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7978 fi
7979
7980
7981 # We need to compile and run a program on the build machine.  A
7982 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7983 # the AC archive is broken for autoconf 2.57.  Given that there is no
7984 # newer version of that macro, we assume that it is also broken for
7985 # autoconf 2.61 and thus we use a simple but usually sufficient
7986 # approach.
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7988 $as_echo_n "checking for cc for build... " >&6; }
7989 if test "$cross_compiling" = "yes"; then
7990   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7991 else
7992   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7995 $as_echo "$CC_FOR_BUILD" >&6; }
7996
7997
7998 # We need to call this macro because other pkg-config macros are
7999 # not always used.
8000
8001
8002
8003
8004
8005
8006
8007 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8008         if test -n "$ac_tool_prefix"; then
8009   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   case $PKG_CONFIG in
8017   [\\/]* | ?:[\\/]*)
8018   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8019   ;;
8020   *)
8021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024   IFS=$as_save_IFS
8025   test -z "$as_dir" && as_dir=.
8026     for ac_exec_ext in '' $ac_executable_extensions; do
8027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030     break 2
8031   fi
8032 done
8033   done
8034 IFS=$as_save_IFS
8035
8036   ;;
8037 esac
8038 fi
8039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8040 if test -n "$PKG_CONFIG"; then
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8042 $as_echo "$PKG_CONFIG" >&6; }
8043 else
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047
8048
8049 fi
8050 if test -z "$ac_cv_path_PKG_CONFIG"; then
8051   ac_pt_PKG_CONFIG=$PKG_CONFIG
8052   # Extract the first word of "pkg-config", so it can be a program name with args.
8053 set dummy pkg-config; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8057   $as_echo_n "(cached) " >&6
8058 else
8059   case $ac_pt_PKG_CONFIG in
8060   [\\/]* | ?:[\\/]*)
8061   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8062   ;;
8063   *)
8064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   test -z "$as_dir" && as_dir=.
8069     for ac_exec_ext in '' $ac_executable_extensions; do
8070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073     break 2
8074   fi
8075 done
8076   done
8077 IFS=$as_save_IFS
8078
8079   ;;
8080 esac
8081 fi
8082 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8083 if test -n "$ac_pt_PKG_CONFIG"; then
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8085 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8086 else
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091   if test "x$ac_pt_PKG_CONFIG" = x; then
8092     PKG_CONFIG=""
8093   else
8094     case $cross_compiling:$ac_tool_warned in
8095 yes:)
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8099 esac
8100     PKG_CONFIG=$ac_pt_PKG_CONFIG
8101   fi
8102 else
8103   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8104 fi
8105
8106 fi
8107 if test -n "$PKG_CONFIG"; then
8108         _pkg_min_version=0.9.0
8109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8110 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8111         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8112                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8113 $as_echo "yes" >&6; }
8114         else
8115                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117                 PKG_CONFIG=""
8118         fi
8119 fi
8120
8121
8122 try_gettext=yes
8123 require_iconv=yes
8124 have_dosish_system=no
8125 have_w32_system=no
8126 have_android_system=no
8127 use_simple_gettext=no
8128 mmap_needed=yes
8129 require_pipe_to_unblock_pselect=yes
8130 case "${host}" in
8131     *-mingw32*)
8132         # special stuff for Windoze NT
8133         ac_cv_have_dev_random=no
8134
8135 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8136
8137
8138 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8139
8140         have_dosish_system=yes
8141         have_w32_system=yes
8142         require_iconv=no
8143         require_pipe_to_unblock_pselect=no
8144
8145 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8146
8147         try_gettext="no"
8148         use_simple_gettext=yes
8149         mmap_needed=no
8150         build_wks_tools=no
8151         ;;
8152     i?86-emx-os2 | i?86-*-os2*emx )
8153         # OS/2 with the EMX environment
8154         ac_cv_have_dev_random=no
8155         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8156
8157         have_dosish_system=yes
8158         try_gettext="no"
8159         build_wks_tools=no
8160         ;;
8161
8162     i?86-*-msdosdjgpp*)
8163         # DOS with the DJGPP environment
8164         ac_cv_have_dev_random=no
8165         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8166
8167         have_dosish_system=yes
8168         try_gettext="no"
8169         build_wks_tools=no
8170         ;;
8171
8172     *-*-hpux*)
8173         if test -z "$GCC" ; then
8174             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8175         fi
8176         ;;
8177     *-dec-osf4*)
8178         if test -z "$GCC" ; then
8179             # Suppress all warnings
8180             # to get rid of the unsigned/signed char mismatch warnings.
8181             CFLAGS="-w $CFLAGS"
8182         fi
8183         ;;
8184     *-dec-osf5*)
8185         if test -z "$GCC" ; then
8186             # Use the newer compiler `-msg_disable ptrmismatch1' to
8187             # get rid of the unsigned/signed char mismatch warnings.
8188             # Using this may hide other pointer mismatch warnings, but
8189             # it at least lets other warning classes through
8190             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8191         fi
8192         ;;
8193     m68k-atari-mint)
8194         ;;
8195     *-linux-android*)
8196         have_android_system=yes
8197         # Android is fully utf-8 and we do not want to use iconv to
8198         # keeps things simple
8199         require_iconv=no
8200         build_wks_tools=no
8201         ;;
8202     *-apple-darwin*)
8203
8204 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8205
8206         ;;
8207     *-*-netbsd*)
8208         require_pipe_to_unblock_pselect=yes
8209         ;;
8210     *)
8211         ;;
8212 esac
8213
8214 if test "$require_pipe_to_unblock_pselect" = yes; then
8215
8216 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8217
8218 fi
8219
8220 if test "$have_dosish_system" = yes; then
8221
8222 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8223
8224 fi
8225  if test "$have_dosish_system" = yes; then
8226   HAVE_DOSISH_SYSTEM_TRUE=
8227   HAVE_DOSISH_SYSTEM_FALSE='#'
8228 else
8229   HAVE_DOSISH_SYSTEM_TRUE='#'
8230   HAVE_DOSISH_SYSTEM_FALSE=
8231 fi
8232
8233
8234  if test x"$use_simple_gettext" = xyes; then
8235   USE_SIMPLE_GETTEXT_TRUE=
8236   USE_SIMPLE_GETTEXT_FALSE='#'
8237 else
8238   USE_SIMPLE_GETTEXT_TRUE='#'
8239   USE_SIMPLE_GETTEXT_FALSE=
8240 fi
8241
8242
8243 if test "$have_w32_system" = yes; then
8244
8245 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8246
8247    for ac_header in winsock2.h
8248 do :
8249   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8250 if test "x$ac_cv_header_winsock2_h" = xyes; then :
8251   cat >>confdefs.h <<_ACEOF
8252 #define HAVE_WINSOCK2_H 1
8253 _ACEOF
8254
8255 fi
8256
8257 done
8258
8259 fi
8260  if test "$have_w32_system" = yes; then
8261   HAVE_W32_SYSTEM_TRUE=
8262   HAVE_W32_SYSTEM_FALSE='#'
8263 else
8264   HAVE_W32_SYSTEM_TRUE='#'
8265   HAVE_W32_SYSTEM_FALSE=
8266 fi
8267
8268
8269 if test "$have_android_system" = yes; then
8270
8271 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8272
8273 fi
8274  if test "$have_android_system" = yes; then
8275   HAVE_ANDROID_SYSTEM_TRUE=
8276   HAVE_ANDROID_SYSTEM_FALSE='#'
8277 else
8278   HAVE_ANDROID_SYSTEM_TRUE='#'
8279   HAVE_ANDROID_SYSTEM_FALSE=
8280 fi
8281
8282
8283
8284 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8285
8286 cat >>confdefs.h <<_ACEOF
8287 #define EXEEXT "$EXEEXT"
8288 _ACEOF
8289
8290
8291
8292 #
8293 # Checks for libraries.
8294 #
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8296 $as_echo "$as_me: checking for libraries" >&6;}
8297
8298
8299 #
8300 # gpgrt (aka libgpg-error) is a library with error codes shared
8301 # between GnuPG related projects.
8302 #
8303   gpg_error_config_prefix=""
8304
8305 # Check whether --with-libgpg-error-prefix was given.
8306 if test "${with_libgpg_error_prefix+set}" = set; then :
8307   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8308 fi
8309
8310
8311
8312 # Check whether --with-gpg-error-prefix was given.
8313 if test "${with_gpg_error_prefix+set}" = set; then :
8314   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8315 fi
8316
8317
8318   if test x"${GPG_ERROR_CONFIG}" = x ; then
8319      if test x"${gpg_error_config_prefix}" != x ; then
8320         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8321      else
8322        case "${SYSROOT}" in
8323          /*)
8324            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8325              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8326            fi
8327            ;;
8328          '')
8329            ;;
8330           *)
8331            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8332 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8333            ;;
8334        esac
8335      fi
8336   fi
8337
8338   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8339 set dummy gpg-error-config; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   case $GPG_ERROR_CONFIG in
8346   [\\/]* | ?:[\\/]*)
8347   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8348   ;;
8349   *)
8350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353   IFS=$as_save_IFS
8354   test -z "$as_dir" && as_dir=.
8355     for ac_exec_ext in '' $ac_executable_extensions; do
8356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359     break 2
8360   fi
8361 done
8362   done
8363 IFS=$as_save_IFS
8364
8365   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8366   ;;
8367 esac
8368 fi
8369 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8370 if test -n "$GPG_ERROR_CONFIG"; then
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8372 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8373 else
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378
8379
8380   # Extract the first word of "gpgrt-config", so it can be a program name with args.
8381 set dummy gpgrt-config; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   case $GPGRT_CONFIG in
8388   [\\/]* | ?:[\\/]*)
8389   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8390   ;;
8391   *)
8392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 as_dummy="$prefix/bin:$PATH"
8394 for as_dir in $as_dummy
8395 do
8396   IFS=$as_save_IFS
8397   test -z "$as_dir" && as_dir=.
8398     for ac_exec_ext in '' $ac_executable_extensions; do
8399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402     break 2
8403   fi
8404 done
8405   done
8406 IFS=$as_save_IFS
8407
8408   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8409   ;;
8410 esac
8411 fi
8412 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8413 if test -n "$GPGRT_CONFIG"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8415 $as_echo "$GPGRT_CONFIG" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422   if test "$GPGRT_CONFIG" != "no"; then
8423     # Determine gpgrt_libdir
8424     #
8425     # Get the prefix of gpgrt-config assuming it's something like:
8426     #   <PREFIX>/bin/gpgrt-config
8427     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8428     possible_libdir1=${gpgrt_prefix}/lib
8429     # Determine by using system libdir-format with CC, it's like:
8430     #   Normal style: /usr/lib
8431     #   GNU cross style: /usr/<triplet>/lib
8432     #   Debian style: /usr/lib/<multiarch-name>
8433     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8434     # It is assumed that CC is specified to the one of host on cross build.
8435     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8436           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8437 /g;p;}"); then
8438       # From the output of -print-search-dirs, select valid pkgconfig dirs.
8439       libdir_candidates=$(for dir in $libdir_candidates; do
8440         if p=$(cd $dir 2>/dev/null && pwd); then
8441           test -d "$p/pkgconfig" && echo $p;
8442         fi
8443       done)
8444
8445       for possible_libdir0 in $libdir_candidates; do
8446         # possible_libdir0:
8447         #   Fallback candidate, the one of system-installed (by $CC)
8448         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8449         # possible_libdir1:
8450         #   Another candidate, user-locally-installed
8451         #   (<gpgrt_prefix>/lib)
8452         # possible_libdir2
8453         #   Most preferred
8454         #   (<gpgrt_prefix>/<triplet>/lib,
8455         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8456         if test "${possible_libdir0##*/}" = "lib"; then
8457           possible_prefix0=${possible_libdir0%/lib}
8458           possible_prefix0_triplet=${possible_prefix0##*/}
8459           if test -z "$possible_prefix0_triplet"; then
8460             continue
8461           fi
8462           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8463         else
8464           possible_prefix0=${possible_libdir0%%/lib*}
8465           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8466         fi
8467         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8468           gpgrt_libdir=${possible_libdir2}
8469         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8470           gpgrt_libdir=${possible_libdir1}
8471         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8472           gpgrt_libdir=${possible_libdir0}
8473         fi
8474         if test -n "$gpgrt_libdir"; then break; fi
8475       done
8476     fi
8477     if test -z "$gpgrt_libdir"; then
8478       # No valid pkgconfig dir in any of the system directories, fallback
8479       gpgrt_libdir=${possible_libdir1}
8480     fi
8481   else
8482     unset GPGRT_CONFIG
8483   fi
8484
8485   if test -n "$gpgrt_libdir"; then
8486     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8487     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8488       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8489       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8490 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8491       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8492     else
8493       gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8494       unset GPGRT_CONFIG
8495     fi
8496   elif test "$GPG_ERROR_CONFIG" != "no"; then
8497     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8498     unset GPGRT_CONFIG
8499   fi
8500
8501   min_gpg_error_version="$NEED_GPGRT_VERSION"
8502   ok=no
8503   if test "$GPG_ERROR_CONFIG" != "no"; then
8504     req_major=`echo $min_gpg_error_version | \
8505                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8506     req_minor=`echo $min_gpg_error_version | \
8507                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8508     major=`echo $gpg_error_config_version | \
8509                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8510     minor=`echo $gpg_error_config_version | \
8511                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8512     if test "$major" -gt "$req_major"; then
8513         ok=yes
8514     else
8515         if test "$major" -eq "$req_major"; then
8516             if test "$minor" -ge "$req_minor"; then
8517                ok=yes
8518             fi
8519         fi
8520     fi
8521   fi
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8523 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8524   if test $ok = yes; then
8525     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8526     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8527     if test -z "$GPGRT_CONFIG"; then
8528       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8529       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8530     else
8531       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8532       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8533       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8534       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8535     fi
8536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8537 $as_echo "yes ($gpg_error_config_version)" >&6; }
8538     have_gpg_error=yes
8539     if test -z "$GPGRT_CONFIG"; then
8540       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8541     else
8542       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8543     fi
8544     if test x"$gpg_error_config_host" != xnone ; then
8545       if test x"$gpg_error_config_host" != x"$host" ; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8547 ***
8548 *** The config script \"$GPG_ERROR_CONFIG\" was
8549 *** built for $gpg_error_config_host and thus may not match the
8550 *** used host $host.
8551 *** You may want to use the configure option --with-libgpg-error-prefix
8552 *** to specify a matching config script or use \$SYSROOT.
8553 ***" >&5
8554 $as_echo "$as_me: WARNING:
8555 ***
8556 *** The config script \"$GPG_ERROR_CONFIG\" was
8557 *** built for $gpg_error_config_host and thus may not match the
8558 *** used host $host.
8559 *** You may want to use the configure option --with-libgpg-error-prefix
8560 *** to specify a matching config script or use \$SYSROOT.
8561 ***" >&2;}
8562         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8563       fi
8564     fi
8565   else
8566     GPG_ERROR_CFLAGS=""
8567     GPG_ERROR_LIBS=""
8568     GPG_ERROR_MT_CFLAGS=""
8569     GPG_ERROR_MT_LIBS=""
8570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572     have_gpg_error=no
8573   fi
8574
8575
8576
8577
8578
8579
8580
8581 #
8582 # Libgcrypt is our generic crypto library
8583 #
8584
8585
8586 # Check whether --with-libgcrypt-prefix was given.
8587 if test "${with_libgcrypt_prefix+set}" = set; then :
8588   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8589 else
8590   libgcrypt_config_prefix=""
8591 fi
8592
8593   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8594      if test x"${libgcrypt_config_prefix}" != x ; then
8595         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8596      fi
8597   fi
8598
8599   use_gpgrt_config=""
8600   if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8601     if $GPGRT_CONFIG libgcrypt --exists; then
8602       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8603       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8604 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8605       use_gpgrt_config=yes
8606     fi
8607   fi
8608   if test -z "$use_gpgrt_config"; then
8609     if test x"${LIBGCRYPT_CONFIG}" = x ; then
8610       case "${SYSROOT}" in
8611          /*)
8612            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8613              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8614            fi
8615            ;;
8616          '')
8617            ;;
8618           *)
8619            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8620 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8621            ;;
8622       esac
8623     fi
8624     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8625 set dummy libgcrypt-config; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   case $LIBGCRYPT_CONFIG in
8632   [\\/]* | ?:[\\/]*)
8633   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8634   ;;
8635   *)
8636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   test -z "$as_dir" && as_dir=.
8641     for ac_exec_ext in '' $ac_executable_extensions; do
8642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645     break 2
8646   fi
8647 done
8648   done
8649 IFS=$as_save_IFS
8650
8651   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8652   ;;
8653 esac
8654 fi
8655 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8656 if test -n "$LIBGCRYPT_CONFIG"; then
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8658 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8659 else
8660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 fi
8663
8664
8665   fi
8666
8667   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8668   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8669      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8670      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8671   else
8672      req_libgcrypt_api=0
8673      min_libgcrypt_version="$tmp"
8674   fi
8675
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8677 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8678   ok=no
8679   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8680     req_major=`echo $min_libgcrypt_version | \
8681                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8682     req_minor=`echo $min_libgcrypt_version | \
8683                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8684     req_micro=`echo $min_libgcrypt_version | \
8685                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8686     if test -z "$use_gpgrt_config"; then
8687       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8688     else
8689       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8690     fi
8691     major=`echo $libgcrypt_config_version | \
8692                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8693     minor=`echo $libgcrypt_config_version | \
8694                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8695     micro=`echo $libgcrypt_config_version | \
8696                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8697     if test "$major" -gt "$req_major"; then
8698         ok=yes
8699     else
8700         if test "$major" -eq "$req_major"; then
8701             if test "$minor" -gt "$req_minor"; then
8702                ok=yes
8703             else
8704                if test "$minor" -eq "$req_minor"; then
8705                    if test "$micro" -ge "$req_micro"; then
8706                      ok=yes
8707                    fi
8708                fi
8709             fi
8710         fi
8711     fi
8712   fi
8713   if test $ok = yes; then
8714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8715 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8716   else
8717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8719   fi
8720   if test $ok = yes; then
8721      # If we have a recent libgcrypt, we should also check that the
8722      # API is compatible
8723      if test "$req_libgcrypt_api" -gt 0 ; then
8724         if test -z "$use_gpgrt_config"; then
8725            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8726         else
8727            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8728         fi
8729         if test "$tmp" -gt 0 ; then
8730            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8731 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8732            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8733              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8734 $as_echo "okay" >&6; }
8735            else
8736              ok=no
8737              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8738 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8739            fi
8740         fi
8741      fi
8742   fi
8743   if test $ok = yes; then
8744     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8745     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8746     have_libgcrypt=yes
8747     if test -z "$use_gpgrt_config"; then
8748       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8749     else
8750       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8751     fi
8752     if test x"$libgcrypt_config_host" != xnone ; then
8753       if test x"$libgcrypt_config_host" != x"$host" ; then
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8755 ***
8756 *** The config script \"$LIBGCRYPT_CONFIG\" was
8757 *** built for $libgcrypt_config_host and thus may not match the
8758 *** used host $host.
8759 *** You may want to use the configure option --with-libgcrypt-prefix
8760 *** to specify a matching config script or use \$SYSROOT.
8761 ***" >&5
8762 $as_echo "$as_me: WARNING:
8763 ***
8764 *** The config script \"$LIBGCRYPT_CONFIG\" was
8765 *** built for $libgcrypt_config_host and thus may not match the
8766 *** used host $host.
8767 *** You may want to use the configure option --with-libgcrypt-prefix
8768 *** to specify a matching config script or use \$SYSROOT.
8769 ***" >&2;}
8770         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8771       fi
8772     fi
8773   else
8774     LIBGCRYPT_CFLAGS=""
8775     LIBGCRYPT_LIBS=""
8776     have_libgcrypt=no
8777   fi
8778
8779
8780
8781 # And, then, check if it's newer than 1.9.0 so that we can
8782 # conditionally build some programs.
8783 # Note: This is not anymore needed but keep the code commented in case
8784 # we need it again with some future libgcrypt.
8785 #have_libgcrypt_newer=no
8786 #if test $ok = yes; then
8787 #    if test "$major" -gt 1; then
8788 #        have_libgcrypt_newer=yes
8789 #    else
8790 #        if test "$major" -eq 1; then
8791 #            if test "$minor" -gt 9; then
8792 #               have_libgcrypt_newer=yes
8793 #            else
8794 #               if test "$minor" -eq 9; then
8795 #                   if test "$micro" -ge 0; then
8796 #                     have_libgcrypt_newer=yes
8797 #                   fi
8798 #               fi
8799 #            fi
8800 #        fi
8801 #    fiy
8802 #fi
8803 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8804
8805 #
8806 # libassuan is used for IPC
8807 #
8808
8809
8810 # Check whether --with-libassuan-prefix was given.
8811 if test "${with_libassuan_prefix+set}" = set; then :
8812   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8813 else
8814   libassuan_config_prefix=""
8815 fi
8816
8817   if test x$libassuan_config_prefix != x ; then
8818     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8819       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8820     fi
8821   fi
8822
8823   use_gpgrt_config=""
8824   if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8825     if $GPGRT_CONFIG libassuan --exists; then
8826       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8827       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8828 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8829       use_gpgrt_config=yes
8830     fi
8831   fi
8832   if test -z "$use_gpgrt_config"; then
8833     # Extract the first word of "libassuan-config", so it can be a program name with args.
8834 set dummy libassuan-config; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8838   $as_echo_n "(cached) " >&6
8839 else
8840   case $LIBASSUAN_CONFIG in
8841   [\\/]* | ?:[\\/]*)
8842   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8843   ;;
8844   *)
8845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848   IFS=$as_save_IFS
8849   test -z "$as_dir" && as_dir=.
8850     for ac_exec_ext in '' $ac_executable_extensions; do
8851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854     break 2
8855   fi
8856 done
8857   done
8858 IFS=$as_save_IFS
8859
8860   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8861   ;;
8862 esac
8863 fi
8864 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8865 if test -n "$LIBASSUAN_CONFIG"; then
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8867 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8868 else
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 fi
8872
8873
8874   fi
8875
8876   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8877   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8878     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8879     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8880   else
8881     req_libassuan_api=0
8882     min_libassuan_version="$tmp"
8883   fi
8884
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8886 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8887   ok=no
8888   if test "$LIBASSUAN_CONFIG" != "no"; then
8889     req_major=`echo $min_libassuan_version | \
8890                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8891     req_minor=`echo $min_libassuan_version | \
8892                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8893     req_micro=`echo $min_libassuan_version | \
8894                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8895
8896     if test -z "$use_gpgrt_config"; then
8897       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8898     else
8899       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8900     fi
8901     major=`echo $libassuan_config_version | \
8902                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8903     minor=`echo $libassuan_config_version | \
8904                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8905     micro=`echo $libassuan_config_version | \
8906                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8907
8908     if test "$major" -gt "$req_major"; then
8909         ok=yes
8910     else
8911         if test "$major" -eq "$req_major"; then
8912             if test "$minor" -gt "$req_minor"; then
8913                ok=yes
8914             else
8915                if test "$minor" -eq "$req_minor"; then
8916                    if test "$micro" -ge "$req_micro"; then
8917                      ok=yes
8918                    fi
8919                fi
8920             fi
8921         fi
8922     fi
8923   fi
8924
8925   if test $ok = yes; then
8926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8927 $as_echo "yes ($libassuan_config_version)" >&6; }
8928   else
8929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8931   fi
8932
8933   if test $ok = yes; then
8934     if test "$req_libassuan_api" -gt 0 ; then
8935       if test -z "$use_gpgrt_config"; then
8936         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8937       else
8938         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8939       fi
8940       if test "$tmp" -gt 0 ; then
8941         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8942 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8943         if test "$req_libassuan_api" -eq "$tmp" ; then
8944           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8945 $as_echo "okay" >&6; }
8946         else
8947           ok=no
8948           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8949 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8950         fi
8951       fi
8952     fi
8953   fi
8954
8955   if test $ok = yes; then
8956     if test x"$host" != x ; then
8957       if test -z "$use_gpgrt_config"; then
8958         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8959       else
8960         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8961       fi
8962       if test x"$libassuan_config_host" != xnone ; then
8963         if test x"$libassuan_config_host" != x"$host" ; then
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8965 ***
8966 *** The config script \"$LIBASSUAN_CONFIG\" was
8967 *** built for $libassuan_config_host and thus may not match the
8968 *** used host $host.
8969 *** You may want to use the configure option --with-libassuan-prefix
8970 *** to specify a matching config script.
8971 ***" >&5
8972 $as_echo "$as_me: WARNING:
8973 ***
8974 *** The config script \"$LIBASSUAN_CONFIG\" was
8975 *** built for $libassuan_config_host and thus may not match the
8976 *** used host $host.
8977 *** You may want to use the configure option --with-libassuan-prefix
8978 *** to specify a matching config script.
8979 ***" >&2;}
8980         fi
8981       fi
8982     fi
8983   fi
8984
8985   if test $ok = yes; then
8986     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8987     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
8988     have_libassuan=yes
8989   else
8990     LIBASSUAN_CFLAGS=""
8991     LIBASSUAN_LIBS=""
8992     have_libassuan=no
8993   fi
8994
8995
8996
8997 if test "$have_libassuan" = "yes"; then
8998
8999 cat >>confdefs.h <<_ACEOF
9000 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9001 _ACEOF
9002
9003   show_tor_support="only .onion"
9004 fi
9005
9006
9007 #
9008 # libksba is our X.509 support library
9009 #
9010
9011
9012 # Check whether --with-libksba-prefix was given.
9013 if test "${with_libksba_prefix+set}" = set; then :
9014   withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9015 else
9016   ksba_config_prefix=""
9017 fi
9018
9019
9020
9021 # Check whether --with-ksba-prefix was given.
9022 if test "${with_ksba_prefix+set}" = set; then :
9023   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9024 else
9025   ksba_config_prefix=""
9026 fi
9027
9028
9029   if test x$ksba_config_prefix != x ; then
9030     if test x${KSBA_CONFIG+set} != xset ; then
9031       KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9032     fi
9033   fi
9034
9035   use_gpgrt_config=""
9036   if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9037     if $GPGRT_CONFIG ksba --exists; then
9038       KSBA_CONFIG="$GPGRT_CONFIG ksba"
9039       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9040 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9041       use_gpgrt_config=yes
9042     fi
9043   fi
9044   if test -z "$use_gpgrt_config"; then
9045     # Extract the first word of "ksba-config", so it can be a program name with args.
9046 set dummy ksba-config; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   case $KSBA_CONFIG in
9053   [\\/]* | ?:[\\/]*)
9054   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9055   ;;
9056   *)
9057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 for as_dir in $PATH
9059 do
9060   IFS=$as_save_IFS
9061   test -z "$as_dir" && as_dir=.
9062     for ac_exec_ext in '' $ac_executable_extensions; do
9063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9066     break 2
9067   fi
9068 done
9069   done
9070 IFS=$as_save_IFS
9071
9072   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9073   ;;
9074 esac
9075 fi
9076 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9077 if test -n "$KSBA_CONFIG"; then
9078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9079 $as_echo "$KSBA_CONFIG" >&6; }
9080 else
9081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9083 fi
9084
9085
9086   fi
9087
9088   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9089   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9090      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9091      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9092   else
9093      req_ksba_api=0
9094      min_ksba_version="$tmp"
9095   fi
9096
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9098 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9099   ok=no
9100   if test "$KSBA_CONFIG" != "no" ; then
9101     req_major=`echo $min_ksba_version | \
9102                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9103     req_minor=`echo $min_ksba_version | \
9104                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9105     req_micro=`echo $min_ksba_version | \
9106                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9107     if test -z "$use_gpgrt_config"; then
9108       ksba_config_version=`$KSBA_CONFIG --version`
9109     else
9110       ksba_config_version=`$KSBA_CONFIG --modversion`
9111     fi
9112     major=`echo $ksba_config_version | \
9113                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9114     minor=`echo $ksba_config_version | \
9115                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9116     micro=`echo $ksba_config_version | \
9117                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9118     if test "$major" -gt "$req_major"; then
9119         ok=yes
9120     else
9121         if test "$major" -eq "$req_major"; then
9122             if test "$minor" -gt "$req_minor"; then
9123                ok=yes
9124             else
9125                if test "$minor" -eq "$req_minor"; then
9126                    if test "$micro" -ge "$req_micro"; then
9127                      ok=yes
9128                    fi
9129                fi
9130             fi
9131         fi
9132     fi
9133   fi
9134   if test $ok = yes; then
9135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9136 $as_echo "yes ($ksba_config_version)" >&6; }
9137   else
9138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9140   fi
9141   if test $ok = yes; then
9142      # Even if we have a recent libksba, we should check that the
9143      # API is compatible.
9144      if test "$req_ksba_api" -gt 0 ; then
9145         if test -z "$use_gpgrt_config"; then
9146           tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9147         else
9148           tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9149         fi
9150         if test "$tmp" -gt 0 ; then
9151            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9152 $as_echo_n "checking KSBA API version... " >&6; }
9153            if test "$req_ksba_api" -eq "$tmp" ; then
9154              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9155 $as_echo "okay" >&6; }
9156            else
9157              ok=no
9158              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
9159 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
9160            fi
9161         fi
9162      fi
9163   fi
9164   if test $ok = yes; then
9165     KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9166     KSBA_LIBS=`$KSBA_CONFIG --libs`
9167     have_ksba=yes
9168     if test -z "$use_gpgrt_config"; then
9169       libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9170     else
9171       libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9172     fi
9173     if test x"$libksba_config_host" != xnone ; then
9174       if test x"$libksba_config_host" != x"$host" ; then
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9176 ***
9177 *** The config script \"$KSBA_CONFIG\" was
9178 *** built for $libksba_config_host and thus may not match the
9179 *** used host $host.
9180 *** You may want to use the configure option --with-libksba-prefix
9181 *** to specify a matching config script.
9182 ***" >&5
9183 $as_echo "$as_me: WARNING:
9184 ***
9185 *** The config script \"$KSBA_CONFIG\" was
9186 *** built for $libksba_config_host and thus may not match the
9187 *** used host $host.
9188 *** You may want to use the configure option --with-libksba-prefix
9189 *** to specify a matching config script.
9190 ***" >&2;}
9191       fi
9192     fi
9193   else
9194     KSBA_CFLAGS=""
9195     KSBA_LIBS=""
9196     have_ksba=no
9197   fi
9198
9199
9200
9201
9202
9203 #
9204 # libusb allows us to use the integrated CCID smartcard reader driver.
9205 #
9206 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9207 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9208    case "${host}" in
9209      *-mingw32*)
9210        LIBUSB_NAME=
9211        LIBUSB_LIBS=
9212        LIBUSB_CPPFLAGS=
9213        ;;
9214      *-*-darwin*)
9215        LIBUSB_NAME=usb-1.0
9216        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9217        ;;
9218      *-*-freebsd*)
9219        # FreeBSD has a native 1.0 compatible library by -lusb.
9220        LIBUSB_NAME=usb
9221        LIBUSB_LIBS=
9222        ;;
9223      *)
9224        LIBUSB_NAME=usb-1.0
9225        LIBUSB_LIBS=
9226        ;;
9227    esac
9228 fi
9229 if test x"$LIBUSB_NAME" != x ; then
9230    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9232 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9233 if eval \${$as_ac_Lib+:} false; then :
9234   $as_echo_n "(cached) " >&6
9235 else
9236   ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-l$LIBUSB_NAME  $LIBS"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h.  */
9240
9241 /* Override any GCC internal prototype to avoid an error.
9242    Use char because int might match the return type of a GCC
9243    builtin and then its argument prototype would still apply.  */
9244 #ifdef __cplusplus
9245 extern "C"
9246 #endif
9247 char libusb_init ();
9248 int
9249 main ()
9250 {
9251 return libusb_init ();
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257   eval "$as_ac_Lib=yes"
9258 else
9259   eval "$as_ac_Lib=no"
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext \
9262     conftest$ac_exeext conftest.$ac_ext
9263 LIBS=$ac_check_lib_save_LIBS
9264 fi
9265 eval ac_res=\$$as_ac_Lib
9266                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9267 $as_echo "$ac_res" >&6; }
9268 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9269    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9270                   have_libusb=yes
9271 fi
9272
9273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9274 $as_echo_n "checking libusb include dir... " >&6; }
9275    usb_incdir_found="no"
9276    for _incdir in "" "/usr/include/libusb-1.0" \
9277        "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9278      _libusb_save_cppflags=$CPPFLAGS
9279      if test -n "${_incdir}"; then
9280        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9281      fi
9282      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h.  */
9284 #include <libusb.h>
9285 _ACEOF
9286 if ac_fn_c_try_cpp "$LINENO"; then :
9287   usb_incdir=${_incdir}; usb_incdir_found="yes"
9288 fi
9289 rm -f conftest.err conftest.i conftest.$ac_ext
9290      CPPFLAGS=${_libusb_save_cppflags}
9291      if test "$usb_incdir_found" = "yes"; then
9292        break
9293      fi
9294    done
9295    if test "$usb_incdir_found" = "yes"; then
9296      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9297 $as_echo "${usb_incdir}" >&6; }
9298    else
9299      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9300 $as_echo "not found" >&6; }
9301      usb_incdir=""
9302      have_libusb=no
9303      if test "$use_ccid_driver" != yes; then
9304        use_ccid_driver=no
9305      fi
9306      LIBUSB_LIBS=""
9307    fi
9308
9309    if test "$have_libusb" = yes; then
9310
9311 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9312
9313    fi
9314    if test x"$usb_incdir" = x; then
9315      LIBUSB_CPPFLAGS=""
9316    else
9317      LIBUSB_CPPFLAGS="-I${usb_incdir}"
9318    fi
9319 fi
9320
9321
9322
9323 #
9324 # Check whether it is necessary to link against libdl.
9325 # (For example to load libpcsclite)
9326 #
9327 gnupg_dlopen_save_libs="$LIBS"
9328 LIBS=""
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9330 $as_echo_n "checking for library containing dlopen... " >&6; }
9331 if ${ac_cv_search_dlopen+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   ac_func_search_save_LIBS=$LIBS
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h.  */
9337
9338 /* Override any GCC internal prototype to avoid an error.
9339    Use char because int might match the return type of a GCC
9340    builtin and then its argument prototype would still apply.  */
9341 #ifdef __cplusplus
9342 extern "C"
9343 #endif
9344 char dlopen ();
9345 int
9346 main ()
9347 {
9348 return dlopen ();
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 for ac_lib in '' c dl; do
9354   if test -z "$ac_lib"; then
9355     ac_res="none required"
9356   else
9357     ac_res=-l$ac_lib
9358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9359   fi
9360   if ac_fn_c_try_link "$LINENO"; then :
9361   ac_cv_search_dlopen=$ac_res
9362 fi
9363 rm -f core conftest.err conftest.$ac_objext \
9364     conftest$ac_exeext
9365   if ${ac_cv_search_dlopen+:} false; then :
9366   break
9367 fi
9368 done
9369 if ${ac_cv_search_dlopen+:} false; then :
9370
9371 else
9372   ac_cv_search_dlopen=no
9373 fi
9374 rm conftest.$ac_ext
9375 LIBS=$ac_func_search_save_LIBS
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9378 $as_echo "$ac_cv_search_dlopen" >&6; }
9379 ac_res=$ac_cv_search_dlopen
9380 if test "$ac_res" != no; then :
9381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9382
9383 fi
9384
9385 DL_LIBS=$LIBS
9386
9387 LIBS="$gnupg_dlopen_save_libs"
9388
9389
9390 # Checks for g10
9391
9392 # Check whether --enable-sqlite was given.
9393 if test "${enable_sqlite+set}" = set; then :
9394   enableval=$enable_sqlite; try_sqlite=$enableval
9395 else
9396   try_sqlite=yes
9397 fi
9398
9399
9400 if test x"$use_tofu" = xyes ; then
9401   if test x"$try_sqlite" = xyes ; then
9402
9403 pkg_failed=no
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9405 $as_echo_n "checking for SQLITE3... " >&6; }
9406
9407 if test -n "$SQLITE3_CFLAGS"; then
9408     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9409  elif test -n "$PKG_CONFIG"; then
9410     if test -n "$PKG_CONFIG" && \
9411     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9412   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9413   ac_status=$?
9414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415   test $ac_status = 0; }; then
9416   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9417                       test "x$?" != "x0" && pkg_failed=yes
9418 else
9419   pkg_failed=yes
9420 fi
9421  else
9422     pkg_failed=untried
9423 fi
9424 if test -n "$SQLITE3_LIBS"; then
9425     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9426  elif test -n "$PKG_CONFIG"; then
9427     if test -n "$PKG_CONFIG" && \
9428     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9429   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9430   ac_status=$?
9431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9432   test $ac_status = 0; }; then
9433   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9434                       test "x$?" != "x0" && pkg_failed=yes
9435 else
9436   pkg_failed=yes
9437 fi
9438  else
9439     pkg_failed=untried
9440 fi
9441
9442
9443
9444 if test $pkg_failed = yes; then
9445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9447
9448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9449         _pkg_short_errors_supported=yes
9450 else
9451         _pkg_short_errors_supported=no
9452 fi
9453         if test $_pkg_short_errors_supported = yes; then
9454                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9455         else
9456                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9457         fi
9458         # Put the nasty error message in config.log where it belongs
9459         echo "$SQLITE3_PKG_ERRORS" >&5
9460
9461         have_sqlite=no
9462 elif test $pkg_failed = untried; then
9463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9465         have_sqlite=no
9466 else
9467         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9468         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9471         have_sqlite=yes
9472 fi
9473   fi
9474   if test "$have_sqlite" = "yes"; then
9475     :
9476
9477
9478   else
9479     use_tofu=no
9480     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9481     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9482 ***
9483 *** Building without SQLite support - TOFU and Keyboxd disabled
9484 ***
9485 *** $tmp" >&5
9486 $as_echo "$as_me: WARNING:
9487 ***
9488 *** Building without SQLite support - TOFU and Keyboxd disabled
9489 ***
9490 *** $tmp" >&2;}
9491   fi
9492 fi
9493 if test "$have_sqlite" != "yes"; then
9494     build_keyboxd=no
9495 fi
9496
9497
9498  if test "$have_sqlite" = "yes"; then
9499   SQLITE3_TRUE=
9500   SQLITE3_FALSE='#'
9501 else
9502   SQLITE3_TRUE='#'
9503   SQLITE3_FALSE=
9504 fi
9505
9506
9507 if test x"$use_tofu" = xyes ; then
9508
9509 $as_echo "#define USE_TOFU 1" >>confdefs.h
9510
9511 fi
9512
9513
9514 # Checks for g13
9515
9516 # Extract the first word of "encfs", so it can be a program name with args.
9517 set dummy encfs; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_path_ENCFS+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   case $ENCFS in
9524   [\\/]* | ?:[\\/]*)
9525   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9526   ;;
9527   *)
9528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9530 do
9531   IFS=$as_save_IFS
9532   test -z "$as_dir" && as_dir=.
9533     for ac_exec_ext in '' $ac_executable_extensions; do
9534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537     break 2
9538   fi
9539 done
9540   done
9541 IFS=$as_save_IFS
9542
9543   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9544   ;;
9545 esac
9546 fi
9547 ENCFS=$ac_cv_path_ENCFS
9548 if test -n "$ENCFS"; then
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9550 $as_echo "$ENCFS" >&6; }
9551 else
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557
9558 cat >>confdefs.h <<_ACEOF
9559 #define ENCFS "${ENCFS}"
9560 _ACEOF
9561
9562
9563 # Extract the first word of "fusermount", so it can be a program name with args.
9564 set dummy fusermount; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9568   $as_echo_n "(cached) " >&6
9569 else
9570   case $FUSERMOUNT in
9571   [\\/]* | ?:[\\/]*)
9572   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9573   ;;
9574   *)
9575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9577 do
9578   IFS=$as_save_IFS
9579   test -z "$as_dir" && as_dir=.
9580     for ac_exec_ext in '' $ac_executable_extensions; do
9581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584     break 2
9585   fi
9586 done
9587   done
9588 IFS=$as_save_IFS
9589
9590   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9591   ;;
9592 esac
9593 fi
9594 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9595 if test -n "$FUSERMOUNT"; then
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9597 $as_echo "$FUSERMOUNT" >&6; }
9598 else
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603
9604
9605 cat >>confdefs.h <<_ACEOF
9606 #define FUSERMOUNT "${FUSERMOUNT}"
9607 _ACEOF
9608
9609
9610
9611
9612 #
9613 # Check whether the nPth library is available
9614 #
9615
9616 # Check whether --with-npth-prefix was given.
9617 if test "${with_npth_prefix+set}" = set; then :
9618   withval=$with_npth_prefix; npth_config_prefix="$withval"
9619 else
9620   npth_config_prefix=""
9621 fi
9622
9623   if test "x$npth_config_prefix" != x ; then
9624       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9625   fi
9626
9627   use_gpgrt_config=""
9628   if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9629     if $GPGRT_CONFIG npth --exists; then
9630       NPTH_CONFIG="$GPGRT_CONFIG npth"
9631       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9632 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9633       use_gpgrt_config=yes
9634     fi
9635   fi
9636   if test -z "$use_gpgrt_config"; then
9637     # Extract the first word of "npth-config", so it can be a program name with args.
9638 set dummy npth-config; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9642   $as_echo_n "(cached) " >&6
9643 else
9644   case $NPTH_CONFIG in
9645   [\\/]* | ?:[\\/]*)
9646   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9647   ;;
9648   *)
9649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9651 do
9652   IFS=$as_save_IFS
9653   test -z "$as_dir" && as_dir=.
9654     for ac_exec_ext in '' $ac_executable_extensions; do
9655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658     break 2
9659   fi
9660 done
9661   done
9662 IFS=$as_save_IFS
9663
9664   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9665   ;;
9666 esac
9667 fi
9668 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9669 if test -n "$NPTH_CONFIG"; then
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9671 $as_echo "$NPTH_CONFIG" >&6; }
9672 else
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676
9677
9678   fi
9679
9680   if test "$NPTH_CONFIG" != "no" ; then
9681     if test -z "$use_gpgrt_config"; then
9682       npth_version=`$NPTH_CONFIG --version`
9683     else
9684       npth_version=`$NPTH_CONFIG --modversion`
9685     fi
9686   fi
9687   npth_version_major=`echo $npth_version | \
9688                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9689   npth_version_minor=`echo $npth_version | \
9690                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9691
9692    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9693   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9694      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9695      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9696   else
9697      req_npth_api=1
9698      min_npth_version="$tmp"
9699   fi
9700
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9702 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9703   ok=no
9704   if test "$NPTH_CONFIG" != "no" ; then
9705     req_major=`echo $min_npth_version | \
9706                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9707     req_minor=`echo $min_npth_version | \
9708                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9709     if test "$npth_version_major" -gt "$req_major"; then
9710         ok=yes
9711     else
9712         if test "$npth_version_major" -eq "$req_major"; then
9713             if test "$npth_version_minor" -gt "$req_minor"; then
9714                ok=yes
9715             else
9716                if test "$npth_version_minor" -eq "$req_minor"; then
9717                   ok=yes
9718                fi
9719             fi
9720         fi
9721     fi
9722   fi
9723   if test $ok = yes; then
9724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9725 $as_echo "yes ($npth_version)" >&6; }
9726   else
9727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729   fi
9730   if test $ok = yes; then
9731     # If we have a recent NPTH, we should also check that the
9732     # API is compatible.
9733     if test "$req_npth_api" -gt 0 ; then
9734       if test -z "$use_gpgrt_config"; then
9735         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9736       else
9737         tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9738       fi
9739       if test "$tmp" -gt 0 ; then
9740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9741 $as_echo_n "checking NPTH API version... " >&6; }
9742         if test "$req_npth_api" -eq "$tmp" ; then
9743           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9744 $as_echo "okay" >&6; }
9745         else
9746           ok=no
9747           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9748 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9749         fi
9750       fi
9751     fi
9752   fi
9753   if test $ok = yes; then
9754     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9755     NPTH_LIBS=`$NPTH_CONFIG --libs`
9756     have_npth=yes
9757     if test -z "$use_gpgrt_config"; then
9758       npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9759     else
9760       npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9761     fi
9762     if test x"$npth_config_host" != xnone ; then
9763       if test x"$npth_config_host" != x"$host" ; then
9764         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9765 ***
9766 *** The config script \"$NPTH_CONFIG\" was
9767 *** built for $npth_config_host and thus may not match the
9768 *** used host $host.
9769 *** You may want to use the configure option --with-npth-prefix
9770 *** to specify a matching config script.
9771 ***" >&5
9772 $as_echo "$as_me: WARNING:
9773 ***
9774 *** The config script \"$NPTH_CONFIG\" was
9775 *** built for $npth_config_host and thus may not match the
9776 *** used host $host.
9777 *** You may want to use the configure option --with-npth-prefix
9778 *** to specify a matching config script.
9779 ***" >&2;}
9780       fi
9781     fi
9782   else
9783     NPTH_CFLAGS=""
9784     NPTH_LIBS=""
9785     have_npth=no
9786   fi
9787
9788
9789
9790 if test "$have_npth" = "yes"; then
9791
9792 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9793
9794
9795 $as_echo "#define USE_NPTH 1" >>confdefs.h
9796
9797 else
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9799 ***
9800 *** To support concurrent access for example in gpg-agent and the SCdaemon
9801 *** we need the support of the New Portable Threads Library.
9802 ***" >&5
9803 $as_echo "$as_me: WARNING:
9804 ***
9805 *** To support concurrent access for example in gpg-agent and the SCdaemon
9806 *** we need the support of the New Portable Threads Library.
9807 ***" >&2;}
9808 fi
9809 #
9810 # Enable debugging of nPth
9811 #
9812 # Check whether --enable-npth-debug was given.
9813 if test "${enable_npth_debug+set}" = set; then :
9814   enableval=$enable_npth_debug; if test $enableval = yes ; then
9815
9816 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9817
9818                   fi
9819 fi
9820
9821
9822
9823
9824 #
9825 # NTBTLS is our TLS library.  If it is not available we fall back to
9826 # GNUTLS.
9827 #
9828 # Check whether --enable-ntbtls was given.
9829 if test "${enable_ntbtls+set}" = set; then :
9830   enableval=$enable_ntbtls; try_ntbtls=$enableval
9831 else
9832   try_ntbtls=yes
9833 fi
9834
9835 if test x"$try_ntbtls" = xyes ; then
9836
9837
9838 # Check whether --with-ntbtls-prefix was given.
9839 if test "${with_ntbtls_prefix+set}" = set; then :
9840   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9841 else
9842   ntbtls_config_prefix=""
9843 fi
9844
9845   if test x"${NTBTLS_CONFIG}" = x ; then
9846      if test x"${ntbtls_config_prefix}" != x ; then
9847         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9848      fi
9849   fi
9850
9851   use_gpgrt_config=""
9852   if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9853     if $GPGRT_CONFIG ntbtls --exists; then
9854       NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9855       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9856 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9857       use_gpgrt_config=yes
9858     fi
9859   fi
9860   if test -z "$use_gpgrt_config"; then
9861     if test x"${NTBTLS_CONFIG}" = x ; then
9862       case "${SYSROOT}" in
9863         /*)
9864           if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9865             NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9866           fi
9867           ;;
9868         '')
9869           ;;
9870          *)
9871           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9872 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9873           ;;
9874       esac
9875     fi
9876     # Extract the first word of "ntbtls-config", so it can be a program name with args.
9877 set dummy ntbtls-config; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9881   $as_echo_n "(cached) " >&6
9882 else
9883   case $NTBTLS_CONFIG in
9884   [\\/]* | ?:[\\/]*)
9885   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9886   ;;
9887   *)
9888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9890 do
9891   IFS=$as_save_IFS
9892   test -z "$as_dir" && as_dir=.
9893     for ac_exec_ext in '' $ac_executable_extensions; do
9894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9895     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897     break 2
9898   fi
9899 done
9900   done
9901 IFS=$as_save_IFS
9902
9903   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9904   ;;
9905 esac
9906 fi
9907 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9908 if test -n "$NTBTLS_CONFIG"; then
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9910 $as_echo "$NTBTLS_CONFIG" >&6; }
9911 else
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9914 fi
9915
9916
9917   fi
9918
9919   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9920   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9921      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9922      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9923   else
9924      req_ntbtls_api=0
9925      min_ntbtls_version="$tmp"
9926   fi
9927
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9929 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9930   ok=no
9931   if test "$NTBTLS_CONFIG" != "no" ; then
9932     req_major=`echo $min_ntbtls_version | \
9933                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9934     req_minor=`echo $min_ntbtls_version | \
9935                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9936     req_micro=`echo $min_ntbtls_version | \
9937                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9938     if test -z "$use_gpgrt_config"; then
9939       ntbtls_config_version=`$NTBTLS_CONFIG --version`
9940     else
9941       ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9942     fi
9943     major=`echo $ntbtls_config_version | \
9944                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9945     minor=`echo $ntbtls_config_version | \
9946                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9947     micro=`echo $ntbtls_config_version | \
9948                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9949     if test "$major" -gt "$req_major"; then
9950         ok=yes
9951     else
9952         if test "$major" -eq "$req_major"; then
9953             if test "$minor" -gt "$req_minor"; then
9954                ok=yes
9955             else
9956                if test "$minor" -eq "$req_minor"; then
9957                    if test "$micro" -ge "$req_micro"; then
9958                      ok=yes
9959                    fi
9960                fi
9961             fi
9962         fi
9963     fi
9964   fi
9965   if test $ok = yes; then
9966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9967 $as_echo "yes ($ntbtls_config_version)" >&6; }
9968   else
9969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9971   fi
9972   if test $ok = yes; then
9973      # If we have a recent ntbtls, we should also check that the
9974      # API is compatible
9975      if test "$req_ntbtls_api" -gt 0 ; then
9976         if test -z "$use_gpgrt_config"; then
9977           tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9978         else
9979           tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9980         fi
9981         if test "$tmp" -gt 0 ; then
9982            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9983 $as_echo_n "checking NTBTLS API version... " >&6; }
9984            if test "$req_ntbtls_api" -eq "$tmp" ; then
9985              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9986 $as_echo "okay" >&6; }
9987            else
9988              ok=no
9989              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9990 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9991            fi
9992         fi
9993      fi
9994   fi
9995   if test $ok = yes; then
9996     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9997     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9998     have_ntbtls=yes
9999     if test -z "$use_gpgrt_config"; then
10000       ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10001     else
10002       ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10003     fi
10004     if test x"$ntbtls_config_host" != xnone ; then
10005       if test x"$ntbtls_config_host" != x"$host" ; then
10006   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10007 ***
10008 *** The config script \"$NTBTLS_CONFIG\" was
10009 *** built for $ntbtls_config_host and thus may not match the
10010 *** used host $host.
10011 *** You may want to use the configure option --with-ntbtls-prefix
10012 *** to specify a matching config script or use \$SYSROOT.
10013 ***" >&5
10014 $as_echo "$as_me: WARNING:
10015 ***
10016 *** The config script \"$NTBTLS_CONFIG\" was
10017 *** built for $ntbtls_config_host and thus may not match the
10018 *** used host $host.
10019 *** You may want to use the configure option --with-ntbtls-prefix
10020 *** to specify a matching config script or use \$SYSROOT.
10021 ***" >&2;}
10022         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10023       fi
10024     fi
10025   else
10026     NTBTLS_CFLAGS=""
10027     NTBTLS_LIBS=""
10028     have_ntbtls=no
10029   fi
10030
10031
10032
10033 fi
10034 if test "$have_ntbtls" = yes ; then
10035    use_tls_library=ntbtls
10036
10037 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10038
10039 else
10040   # Check whether --enable-gnutls was given.
10041 if test "${enable_gnutls+set}" = set; then :
10042   enableval=$enable_gnutls; try_gnutls=$enableval
10043 else
10044   try_gnutls=yes
10045 fi
10046
10047   if test x"$try_gnutls" = xyes ; then
10048
10049 pkg_failed=no
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10051 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10052
10053 if test -n "$LIBGNUTLS_CFLAGS"; then
10054     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10055  elif test -n "$PKG_CONFIG"; then
10056     if test -n "$PKG_CONFIG" && \
10057     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10058   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10059   ac_status=$?
10060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061   test $ac_status = 0; }; then
10062   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10063                       test "x$?" != "x0" && pkg_failed=yes
10064 else
10065   pkg_failed=yes
10066 fi
10067  else
10068     pkg_failed=untried
10069 fi
10070 if test -n "$LIBGNUTLS_LIBS"; then
10071     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10072  elif test -n "$PKG_CONFIG"; then
10073     if test -n "$PKG_CONFIG" && \
10074     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10075   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10076   ac_status=$?
10077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10078   test $ac_status = 0; }; then
10079   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10080                       test "x$?" != "x0" && pkg_failed=yes
10081 else
10082   pkg_failed=yes
10083 fi
10084  else
10085     pkg_failed=untried
10086 fi
10087
10088
10089
10090 if test $pkg_failed = yes; then
10091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10093
10094 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10095         _pkg_short_errors_supported=yes
10096 else
10097         _pkg_short_errors_supported=no
10098 fi
10099         if test $_pkg_short_errors_supported = yes; then
10100                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10101         else
10102                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10103         fi
10104         # Put the nasty error message in config.log where it belongs
10105         echo "$LIBGNUTLS_PKG_ERRORS" >&5
10106
10107         have_gnutls=no
10108 elif test $pkg_failed = untried; then
10109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10111         have_gnutls=no
10112 else
10113         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10114         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116 $as_echo "yes" >&6; }
10117         have_gnutls=yes
10118 fi
10119   fi
10120   if test "$have_gnutls" = "yes"; then
10121
10122
10123     use_tls_library=gnutls
10124
10125 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10126
10127   else
10128     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10129     build_dirmngr=no
10130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10131 ***
10132 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10133 ***
10134 *** $tmp" >&5
10135 $as_echo "$as_me: WARNING:
10136 ***
10137 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10138 ***
10139 *** $tmp" >&2;}
10140   fi
10141 fi
10142
10143 #
10144 # Allow to set a fixed trust store file for system provided certificates.
10145 #
10146
10147 # Check whether --with-default-trust-store-file was given.
10148 if test "${with_default_trust_store_file+set}" = set; then :
10149   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10150 else
10151   default_trust_store_file=""
10152 fi
10153
10154 if test x"$default_trust_store_file" = xno;then
10155   default_trust_store_file=""
10156 fi
10157 if test x"$default_trust_store_file" != x ; then
10158
10159 cat >>confdefs.h <<_ACEOF
10160 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10161 _ACEOF
10162
10163 fi
10164
10165
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10167 $as_echo "$as_me: checking for networking options" >&6;}
10168
10169 #
10170 # Must check for network library requirements before doing link tests
10171 # for ldap, for example. If ldap libs are static (or dynamic and without
10172 # ELF runtime link paths), then link will fail and LDAP support won't
10173 # be detected.
10174 #
10175 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10176 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10177
10178 else
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10180 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10181 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184   ac_check_lib_save_LIBS=$LIBS
10185 LIBS="-lnsl  $LIBS"
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h.  */
10188
10189 /* Override any GCC internal prototype to avoid an error.
10190    Use char because int might match the return type of a GCC
10191    builtin and then its argument prototype would still apply.  */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char gethostbyname ();
10196 int
10197 main ()
10198 {
10199 return gethostbyname ();
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205   ac_cv_lib_nsl_gethostbyname=yes
10206 else
10207   ac_cv_lib_nsl_gethostbyname=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext \
10210     conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10214 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10215 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10216   NETLIBS="-lnsl $NETLIBS"
10217 fi
10218
10219 fi
10220
10221 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10222 if test "x$ac_cv_func_setsockopt" = xyes; then :
10223
10224 else
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10226 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10227 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lsocket  $LIBS"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h.  */
10234
10235 /* Override any GCC internal prototype to avoid an error.
10236    Use char because int might match the return type of a GCC
10237    builtin and then its argument prototype would still apply.  */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char setsockopt ();
10242 int
10243 main ()
10244 {
10245 return setsockopt ();
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251   ac_cv_lib_socket_setsockopt=yes
10252 else
10253   ac_cv_lib_socket_setsockopt=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256     conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10260 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10261 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10262   NETLIBS="-lsocket $NETLIBS"
10263 fi
10264
10265 fi
10266
10267
10268
10269 #
10270 # Check standard resolver functions.
10271 #
10272 if test "$build_dirmngr" = "yes"; then
10273   _dns_save_libs=$LIBS
10274   LIBS=""
10275
10276   # Find the system resolver which can always be enabled with
10277   # the dirmngr option --standard-resolver.
10278
10279   # the double underscore thing is a glibc-ism?
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10281 $as_echo_n "checking for library containing res_query... " >&6; }
10282 if ${ac_cv_search_res_query+:} false; then :
10283   $as_echo_n "(cached) " >&6
10284 else
10285   ac_func_search_save_LIBS=$LIBS
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h.  */
10288
10289 /* Override any GCC internal prototype to avoid an error.
10290    Use char because int might match the return type of a GCC
10291    builtin and then its argument prototype would still apply.  */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char res_query ();
10296 int
10297 main ()
10298 {
10299 return res_query ();
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 for ac_lib in '' resolv bind; do
10305   if test -z "$ac_lib"; then
10306     ac_res="none required"
10307   else
10308     ac_res=-l$ac_lib
10309     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10310   fi
10311   if ac_fn_c_try_link "$LINENO"; then :
10312   ac_cv_search_res_query=$ac_res
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext \
10315     conftest$ac_exeext
10316   if ${ac_cv_search_res_query+:} false; then :
10317   break
10318 fi
10319 done
10320 if ${ac_cv_search_res_query+:} false; then :
10321
10322 else
10323   ac_cv_search_res_query=no
10324 fi
10325 rm conftest.$ac_ext
10326 LIBS=$ac_func_search_save_LIBS
10327 fi
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10329 $as_echo "$ac_cv_search_res_query" >&6; }
10330 ac_res=$ac_cv_search_res_query
10331 if test "$ac_res" != no; then :
10332   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10333
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10336 $as_echo_n "checking for library containing __res_query... " >&6; }
10337 if ${ac_cv_search___res_query+:} false; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   ac_func_search_save_LIBS=$LIBS
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h.  */
10343
10344 /* Override any GCC internal prototype to avoid an error.
10345    Use char because int might match the return type of a GCC
10346    builtin and then its argument prototype would still apply.  */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 char __res_query ();
10351 int
10352 main ()
10353 {
10354 return __res_query ();
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 for ac_lib in '' resolv bind; do
10360   if test -z "$ac_lib"; then
10361     ac_res="none required"
10362   else
10363     ac_res=-l$ac_lib
10364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10365   fi
10366   if ac_fn_c_try_link "$LINENO"; then :
10367   ac_cv_search___res_query=$ac_res
10368 fi
10369 rm -f core conftest.err conftest.$ac_objext \
10370     conftest$ac_exeext
10371   if ${ac_cv_search___res_query+:} false; then :
10372   break
10373 fi
10374 done
10375 if ${ac_cv_search___res_query+:} false; then :
10376
10377 else
10378   ac_cv_search___res_query=no
10379 fi
10380 rm conftest.$ac_ext
10381 LIBS=$ac_func_search_save_LIBS
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10384 $as_echo "$ac_cv_search___res_query" >&6; }
10385 ac_res=$ac_cv_search___res_query
10386 if test "$ac_res" != no; then :
10387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10388
10389 else
10390   have_resolver=no
10391 fi
10392
10393 fi
10394
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10396 $as_echo_n "checking for library containing dn_expand... " >&6; }
10397 if ${ac_cv_search_dn_expand+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400   ac_func_search_save_LIBS=$LIBS
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h.  */
10403
10404 /* Override any GCC internal prototype to avoid an error.
10405    Use char because int might match the return type of a GCC
10406    builtin and then its argument prototype would still apply.  */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char dn_expand ();
10411 int
10412 main ()
10413 {
10414 return dn_expand ();
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 for ac_lib in '' resolv bind; do
10420   if test -z "$ac_lib"; then
10421     ac_res="none required"
10422   else
10423     ac_res=-l$ac_lib
10424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10425   fi
10426   if ac_fn_c_try_link "$LINENO"; then :
10427   ac_cv_search_dn_expand=$ac_res
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext \
10430     conftest$ac_exeext
10431   if ${ac_cv_search_dn_expand+:} false; then :
10432   break
10433 fi
10434 done
10435 if ${ac_cv_search_dn_expand+:} false; then :
10436
10437 else
10438   ac_cv_search_dn_expand=no
10439 fi
10440 rm conftest.$ac_ext
10441 LIBS=$ac_func_search_save_LIBS
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10444 $as_echo "$ac_cv_search_dn_expand" >&6; }
10445 ac_res=$ac_cv_search_dn_expand
10446 if test "$ac_res" != no; then :
10447   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10448
10449 else
10450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10451 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10452 if ${ac_cv_search___dn_expand+:} false; then :
10453   $as_echo_n "(cached) " >&6
10454 else
10455   ac_func_search_save_LIBS=$LIBS
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458
10459 /* Override any GCC internal prototype to avoid an error.
10460    Use char because int might match the return type of a GCC
10461    builtin and then its argument prototype would still apply.  */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char __dn_expand ();
10466 int
10467 main ()
10468 {
10469 return __dn_expand ();
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 for ac_lib in '' resolv bind; do
10475   if test -z "$ac_lib"; then
10476     ac_res="none required"
10477   else
10478     ac_res=-l$ac_lib
10479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10480   fi
10481   if ac_fn_c_try_link "$LINENO"; then :
10482   ac_cv_search___dn_expand=$ac_res
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485     conftest$ac_exeext
10486   if ${ac_cv_search___dn_expand+:} false; then :
10487   break
10488 fi
10489 done
10490 if ${ac_cv_search___dn_expand+:} false; then :
10491
10492 else
10493   ac_cv_search___dn_expand=no
10494 fi
10495 rm conftest.$ac_ext
10496 LIBS=$ac_func_search_save_LIBS
10497 fi
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10499 $as_echo "$ac_cv_search___dn_expand" >&6; }
10500 ac_res=$ac_cv_search___dn_expand
10501 if test "$ac_res" != no; then :
10502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10503
10504 else
10505   have_resolver=no
10506 fi
10507
10508 fi
10509
10510
10511   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10512   # and for some reason fools us into believing we don't need
10513   # -lresolv even if we do.  Since the test program checking for the
10514   # symbol does not include <resolv.h>, we need to check for the
10515   # renamed symbol explicitly.
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10517 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10518 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10519   $as_echo_n "(cached) " >&6
10520 else
10521   ac_func_search_save_LIBS=$LIBS
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h.  */
10524
10525 /* Override any GCC internal prototype to avoid an error.
10526    Use char because int might match the return type of a GCC
10527    builtin and then its argument prototype would still apply.  */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 char res_9_dn_skipname ();
10532 int
10533 main ()
10534 {
10535 return res_9_dn_skipname ();
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 for ac_lib in '' resolv bind; do
10541   if test -z "$ac_lib"; then
10542     ac_res="none required"
10543   else
10544     ac_res=-l$ac_lib
10545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10546   fi
10547   if ac_fn_c_try_link "$LINENO"; then :
10548   ac_cv_search_res_9_dn_skipname=$ac_res
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext \
10551     conftest$ac_exeext
10552   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10553   break
10554 fi
10555 done
10556 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10557
10558 else
10559   ac_cv_search_res_9_dn_skipname=no
10560 fi
10561 rm conftest.$ac_ext
10562 LIBS=$ac_func_search_save_LIBS
10563 fi
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10565 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10566 ac_res=$ac_cv_search_res_9_dn_skipname
10567 if test "$ac_res" != no; then :
10568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10569
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10572 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10573 if ${ac_cv_search_dn_skipname+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   ac_func_search_save_LIBS=$LIBS
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h.  */
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581    Use char because int might match the return type of a GCC
10582    builtin and then its argument prototype would still apply.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char dn_skipname ();
10587 int
10588 main ()
10589 {
10590 return dn_skipname ();
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 for ac_lib in '' resolv bind; do
10596   if test -z "$ac_lib"; then
10597     ac_res="none required"
10598   else
10599     ac_res=-l$ac_lib
10600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10601   fi
10602   if ac_fn_c_try_link "$LINENO"; then :
10603   ac_cv_search_dn_skipname=$ac_res
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext \
10606     conftest$ac_exeext
10607   if ${ac_cv_search_dn_skipname+:} false; then :
10608   break
10609 fi
10610 done
10611 if ${ac_cv_search_dn_skipname+:} false; then :
10612
10613 else
10614   ac_cv_search_dn_skipname=no
10615 fi
10616 rm conftest.$ac_ext
10617 LIBS=$ac_func_search_save_LIBS
10618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10620 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10621 ac_res=$ac_cv_search_dn_skipname
10622 if test "$ac_res" != no; then :
10623   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10624
10625 else
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10627 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10628 if ${ac_cv_search___dn_skipname+:} false; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   ac_func_search_save_LIBS=$LIBS
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h.  */
10634
10635 /* Override any GCC internal prototype to avoid an error.
10636    Use char because int might match the return type of a GCC
10637    builtin and then its argument prototype would still apply.  */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 char __dn_skipname ();
10642 int
10643 main ()
10644 {
10645 return __dn_skipname ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 for ac_lib in '' resolv bind; do
10651   if test -z "$ac_lib"; then
10652     ac_res="none required"
10653   else
10654     ac_res=-l$ac_lib
10655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10656   fi
10657   if ac_fn_c_try_link "$LINENO"; then :
10658   ac_cv_search___dn_skipname=$ac_res
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext \
10661     conftest$ac_exeext
10662   if ${ac_cv_search___dn_skipname+:} false; then :
10663   break
10664 fi
10665 done
10666 if ${ac_cv_search___dn_skipname+:} false; then :
10667
10668 else
10669   ac_cv_search___dn_skipname=no
10670 fi
10671 rm conftest.$ac_ext
10672 LIBS=$ac_func_search_save_LIBS
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10675 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10676 ac_res=$ac_cv_search___dn_skipname
10677 if test "$ac_res" != no; then :
10678   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10679
10680 else
10681   have_resolver=no
10682 fi
10683
10684 fi
10685
10686 fi
10687
10688
10689   if test x"$have_resolver" != xno ; then
10690
10691       # Make sure that the BIND 4 resolver interface is workable before
10692       # enabling any code that calls it.  At some point I'll rewrite the
10693       # code to use the BIND 8 resolver API.
10694       # We might also want to use libdns instead.
10695
10696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10697 $as_echo_n "checking whether the resolver is usable... " >&6; }
10698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h.  */
10700 #include <sys/types.h>
10701 #include <netinet/in.h>
10702 #include <arpa/nameser.h>
10703 #include <resolv.h>
10704 int
10705 main ()
10706 {
10707 unsigned char answer[PACKETSZ];
10708   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10709   dn_skipname(0,0);
10710   dn_expand(0,0,0,0,0);
10711
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717   have_resolver=yes
10718 else
10719   have_resolver=no
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722     conftest$ac_exeext conftest.$ac_ext
10723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10724 $as_echo "$have_resolver" >&6; }
10725
10726     # This is Apple-specific and somewhat bizarre as they changed the
10727     # define in bind 8 for some reason.
10728
10729     if test x"$have_resolver" != xyes ; then
10730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10731 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h.  */
10734 #define BIND_8_COMPAT
10735 #include <sys/types.h>
10736 #include <netinet/in.h>
10737 #include <arpa/nameser.h>
10738 #include <resolv.h>
10739 int
10740 main ()
10741 {
10742 unsigned char answer[PACKETSZ];
10743   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10744   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10745
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751   have_resolver=yes ; need_compat=yes
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754     conftest$ac_exeext conftest.$ac_ext
10755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10756 $as_echo "$have_resolver" >&6; }
10757     fi
10758   fi
10759
10760   if test x"$have_resolver" = xyes ; then
10761
10762 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10763
10764     DNSLIBS="$DNSLIBS $LIBS"
10765     if test x"$need_compat" = xyes ; then
10766
10767 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10768
10769     fi
10770     if test "$use_libdns" = yes; then
10771      show_tor_support=yes
10772     fi
10773   elif test "$use_libdns" = yes; then
10774     show_tor_support=yes
10775   else
10776     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10777 ***
10778 *** The system's DNS resolver is not usable.
10779 *** Dirmngr functionality is limited.
10780 ***" >&5
10781 $as_echo "$as_me: WARNING:
10782 ***
10783 *** The system's DNS resolver is not usable.
10784 *** Dirmngr functionality is limited.
10785 ***" >&2;}
10786     show_tor_support="${show_tor_support} (no system resolver)"
10787   fi
10788
10789   if test "$have_w32_system" = yes; then
10790     if test "$use_libdns" = yes; then
10791       DNSLIBS="$DNSLIBS -liphlpapi"
10792     fi
10793   fi
10794
10795   LIBS=$_dns_save_libs
10796 fi
10797
10798
10799
10800
10801 #
10802 # Check for LDAP
10803 #
10804 # Note that running the check changes the variable
10805 # gnupg_have_ldap from "n/a" to "no" or "yes".
10806
10807 # Check whether --enable-ldap was given.
10808 if test "${enable_ldap+set}" = set; then :
10809   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10810 fi
10811
10812
10813 if test "$gnupg_have_ldap" != "no" ; then
10814   if test "$build_dirmngr" = "yes" ; then
10815
10816 # Try and link a LDAP test program to weed out unusable LDAP
10817 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10818 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10819 # If all else fails, the user can play guess-the-dependency by using
10820 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10821 gnupg_have_ldap=no
10822
10823 # Check whether --with-ldap was given.
10824 if test "${with_ldap+set}" = set; then :
10825   withval=$with_ldap; _ldap_with=$withval
10826 fi
10827
10828
10829 if test x$_ldap_with != xno ; then
10830
10831   if test -d "$withval" ; then
10832      LDAP_CPPFLAGS="-I$withval/include"
10833      LDAP_LDFLAGS="-L$withval/lib"
10834   fi
10835
10836   _ldap_save_cppflags=$CPPFLAGS
10837   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10838   _ldap_save_ldflags=$LDFLAGS
10839   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10840
10841   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10842     _ldap_save_libs=$LIBS
10843     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10844
10845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10846 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h.  */
10849
10850 #ifdef _WIN32
10851 #include <winsock2.h>
10852 #include <winldap.h>
10853 #else
10854 #define LDAP_DEPRECATED 1
10855 #include <ldap.h>
10856 #endif
10857
10858 int
10859 main ()
10860 {
10861 ldap_open("foobar",1234);
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 if ac_fn_c_try_link "$LINENO"; then :
10867   gnupg_cv_func_ldap_init=yes
10868 else
10869   gnupg_cv_func_ldap_init=no
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext \
10872     conftest$ac_exeext conftest.$ac_ext
10873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10874 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10875
10876     if test $gnupg_cv_func_ldap_init = no; then
10877       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10878 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h.  */
10881 #include <lber.h>
10882 #define LDAP_DEPRECATED 1
10883 #include <ldap.h>
10884 int
10885 main ()
10886 {
10887 ldap_open("foobar",1234);
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   gnupg_cv_func_ldaplber_init=yes
10894 else
10895   gnupg_cv_func_ldaplber_init=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10900 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10901     fi
10902
10903     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10904
10905 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10906
10907     fi
10908
10909     if test "$gnupg_cv_func_ldap_init" = yes || \
10910         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10911        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10912        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10913        gnupg_have_ldap=yes
10914
10915        for ac_func in ldap_get_option ldap_set_option
10916 do :
10917   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10920   cat >>confdefs.h <<_ACEOF
10921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10922 _ACEOF
10923
10924 fi
10925 done
10926
10927        # The extra test for ldap_start_tls_sA is for W32 because
10928        # that is the actual function in the library.
10929        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10930 do :
10931   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10933 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10934   cat >>confdefs.h <<_ACEOF
10935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 _ACEOF
10937
10938 fi
10939 done
10940
10941
10942        if test "$ac_cv_func_ldap_get_option" != yes ; then
10943           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10944 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10945           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h.  */
10947 #include <ldap.h>
10948 int
10949 main ()
10950 {
10951 LDAP *ldap; ldap->ld_errno;
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957   gnupg_cv_func_ldap_ld_errno=yes
10958 else
10959   gnupg_cv_func_ldap_ld_errno=no
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10964 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10965
10966           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10967
10968 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10969
10970           fi
10971        fi
10972     fi
10973
10974     LIBS=$_ldap_save_libs
10975
10976     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10977   done
10978
10979
10980
10981
10982
10983   CPPFLAGS=$_ldap_save_cppflags
10984   LDFLAGS=$_ldap_save_ldflags
10985 fi
10986
10987      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10988 $as_echo_n "checking for ber_free in -llber... " >&6; }
10989 if ${ac_cv_lib_lber_ber_free+:} false; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-llber  $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h.  */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998    Use char because int might match the return type of a GCC
10999    builtin and then its argument prototype would still apply.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char ber_free ();
11004 int
11005 main ()
11006 {
11007 return ber_free ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013   ac_cv_lib_lber_ber_free=yes
11014 else
11015   ac_cv_lib_lber_ber_free=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018     conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11022 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11023 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11024    LBER_LIBS="$LBER_LIBS -llber"
11025
11026 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11027
11028                     have_lber=yes
11029
11030 fi
11031
11032   fi
11033 fi
11034
11035 if test "$gnupg_have_ldap" = "no"; then
11036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11037 ***
11038 *** Building without LDAP support.
11039 *** No CRL access or X.509 certificate search available.
11040 ***" >&5
11041 $as_echo "$as_me: WARNING:
11042 ***
11043 *** Building without LDAP support.
11044 *** No CRL access or X.509 certificate search available.
11045 ***" >&2;}
11046 fi
11047
11048  if test "$gnupg_have_ldap" = yes; then
11049   USE_LDAP_TRUE=
11050   USE_LDAP_FALSE='#'
11051 else
11052   USE_LDAP_TRUE='#'
11053   USE_LDAP_FALSE=
11054 fi
11055
11056 if test "$gnupg_have_ldap" = yes ; then
11057
11058 $as_echo "#define USE_LDAP 1" >>confdefs.h
11059
11060 fi
11061
11062
11063
11064 #
11065 # Check for sendmail
11066 #
11067 # This isn't necessarily sendmail itself, but anything that gives a
11068 # sendmail-ish interface to the outside world.  That includes Exim,
11069 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
11070
11071 # Check whether --with-mailprog was given.
11072 if test "${with_mailprog+set}" = set; then :
11073   withval=$with_mailprog;
11074 else
11075   with_mailprog=yes
11076 fi
11077
11078 if test x"$with_mailprog" = xyes ; then
11079     # Extract the first word of "sendmail", so it can be a program name with args.
11080 set dummy sendmail; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_SENDMAIL+:} false; then :
11084   $as_echo_n "(cached) " >&6
11085 else
11086   case $SENDMAIL in
11087   [\\/]* | ?:[\\/]*)
11088   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11089   ;;
11090   *)
11091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11093 for as_dir in $as_dummy
11094 do
11095   IFS=$as_save_IFS
11096   test -z "$as_dir" && as_dir=.
11097     for ac_exec_ext in '' $ac_executable_extensions; do
11098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101     break 2
11102   fi
11103 done
11104   done
11105 IFS=$as_save_IFS
11106
11107   ;;
11108 esac
11109 fi
11110 SENDMAIL=$ac_cv_path_SENDMAIL
11111 if test -n "$SENDMAIL"; then
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11113 $as_echo "$SENDMAIL" >&6; }
11114 else
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 elif test x"$with_mailprog" != xno ; then
11121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11122 $as_echo_n "checking for a mail transport program... " >&6; }
11123     SENDMAIL=$with_mailprog
11124
11125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11126 $as_echo "$with_mailprog" >&6; }
11127 fi
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define NAME_OF_SENDMAIL "$SENDMAIL"
11131 _ACEOF
11132
11133
11134
11135 #
11136 # Construct a printable name of the OS
11137 #
11138 case "${host}" in
11139     *-mingw32*)
11140         PRINTABLE_OS_NAME="MingW32"
11141         ;;
11142     *-*-cygwin*)
11143         PRINTABLE_OS_NAME="Cygwin"
11144         ;;
11145     i?86-emx-os2 | i?86-*-os2*emx )
11146         PRINTABLE_OS_NAME="OS/2"
11147         ;;
11148     i?86-*-msdosdjgpp*)
11149         PRINTABLE_OS_NAME="MSDOS/DJGPP"
11150         try_dynload=no
11151         ;;
11152     *-linux*)
11153         PRINTABLE_OS_NAME="GNU/Linux"
11154         ;;
11155     *)
11156         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11157         ;;
11158 esac
11159
11160 cat >>confdefs.h <<_ACEOF
11161 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11162 _ACEOF
11163
11164
11165
11166 #
11167 # Checking for iconv
11168 #
11169 if test "$require_iconv" = yes; then
11170
11171       if test "X$prefix" = "XNONE"; then
11172     acl_final_prefix="$ac_default_prefix"
11173   else
11174     acl_final_prefix="$prefix"
11175   fi
11176   if test "X$exec_prefix" = "XNONE"; then
11177     acl_final_exec_prefix='${prefix}'
11178   else
11179     acl_final_exec_prefix="$exec_prefix"
11180   fi
11181   acl_save_prefix="$prefix"
11182   prefix="$acl_final_prefix"
11183   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11184   prefix="$acl_save_prefix"
11185
11186
11187 # Check whether --with-gnu-ld was given.
11188 if test "${with_gnu_ld+set}" = set; then :
11189   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11190 else
11191   with_gnu_ld=no
11192 fi
11193
11194 # Prepare PATH_SEPARATOR.
11195 # The user is always right.
11196 if test "${PATH_SEPARATOR+set}" != set; then
11197   echo "#! /bin/sh" >conf$$.sh
11198   echo  "exit 0"   >>conf$$.sh
11199   chmod +x conf$$.sh
11200   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11201     PATH_SEPARATOR=';'
11202   else
11203     PATH_SEPARATOR=:
11204   fi
11205   rm -f conf$$.sh
11206 fi
11207 ac_prog=ld
11208 if test "$GCC" = yes; then
11209   # Check if gcc -print-prog-name=ld gives a path.
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11211 $as_echo_n "checking for ld used by GCC... " >&6; }
11212   case $host in
11213   *-*-mingw*)
11214     # gcc leaves a trailing carriage return which upsets mingw
11215     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11216   *)
11217     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11218   esac
11219   case $ac_prog in
11220     # Accept absolute paths.
11221     [\\/]* | [A-Za-z]:[\\/]*)
11222       re_direlt='/[^/][^/]*/\.\./'
11223       # Canonicalize the path of ld
11224       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11225       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11226         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11227       done
11228       test -z "$LD" && LD="$ac_prog"
11229       ;;
11230   "")
11231     # If it fails, then pretend we aren't using GCC.
11232     ac_prog=ld
11233     ;;
11234   *)
11235     # If it is relative, then search for the first ld in PATH.
11236     with_gnu_ld=unknown
11237     ;;
11238   esac
11239 elif test "$with_gnu_ld" = yes; then
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11241 $as_echo_n "checking for GNU ld... " >&6; }
11242 else
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11244 $as_echo_n "checking for non-GNU ld... " >&6; }
11245 fi
11246 if ${acl_cv_path_LD+:} false; then :
11247   $as_echo_n "(cached) " >&6
11248 else
11249   if test -z "$LD"; then
11250   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11251   for ac_dir in $PATH; do
11252     test -z "$ac_dir" && ac_dir=.
11253     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11254       acl_cv_path_LD="$ac_dir/$ac_prog"
11255       # Check to see if the program is GNU ld.  I'd rather use --version,
11256       # but apparently some GNU ld's only accept -v.
11257       # Break only if it was the GNU/non-GNU ld that we prefer.
11258       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11259       *GNU* | *'with BFD'*)
11260         test "$with_gnu_ld" != no && break ;;
11261       *)
11262         test "$with_gnu_ld" != yes && break ;;
11263       esac
11264     fi
11265   done
11266   IFS="$ac_save_ifs"
11267 else
11268   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11269 fi
11270 fi
11271
11272 LD="$acl_cv_path_LD"
11273 if test -n "$LD"; then
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11275 $as_echo "$LD" >&6; }
11276 else
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11282 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11283 if ${acl_cv_prog_gnu_ld+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11287 case `$LD -v 2>&1 </dev/null` in
11288 *GNU* | *'with BFD'*)
11289   acl_cv_prog_gnu_ld=yes ;;
11290 *)
11291   acl_cv_prog_gnu_ld=no ;;
11292 esac
11293 fi
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11295 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11296 with_gnu_ld=$acl_cv_prog_gnu_ld
11297
11298
11299
11300
11301                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11302 $as_echo_n "checking for shared library run path origin... " >&6; }
11303 if ${acl_cv_rpath+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306
11307     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11308     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11309     . ./conftest.sh
11310     rm -f ./conftest.sh
11311     acl_cv_rpath=done
11312
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11315 $as_echo "$acl_cv_rpath" >&6; }
11316   wl="$acl_cv_wl"
11317   acl_libext="$acl_cv_libext"
11318   acl_shlibext="$acl_cv_shlibext"
11319   acl_libname_spec="$acl_cv_libname_spec"
11320   acl_library_names_spec="$acl_cv_library_names_spec"
11321   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11322   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11323   acl_hardcode_direct="$acl_cv_hardcode_direct"
11324   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11325     # Check whether --enable-rpath was given.
11326 if test "${enable_rpath+set}" = set; then :
11327   enableval=$enable_rpath; :
11328 else
11329   enable_rpath=yes
11330 fi
11331
11332
11333
11334                   acl_libdirstem=lib
11335   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11336   if test -n "$searchpath"; then
11337     acl_save_IFS="${IFS=        }"; IFS=":"
11338     for searchdir in $searchpath; do
11339       if test -d "$searchdir"; then
11340         case "$searchdir" in
11341           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11342           *) searchdir=`cd "$searchdir" && pwd`
11343              case "$searchdir" in
11344                */lib64 ) acl_libdirstem=lib64 ;;
11345              esac ;;
11346         esac
11347       fi
11348     done
11349     IFS="$acl_save_IFS"
11350   fi
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360     use_additional=yes
11361
11362   acl_save_prefix="$prefix"
11363   prefix="$acl_final_prefix"
11364   acl_save_exec_prefix="$exec_prefix"
11365   exec_prefix="$acl_final_exec_prefix"
11366
11367     eval additional_includedir=\"$includedir\"
11368     eval additional_libdir=\"$libdir\"
11369
11370   exec_prefix="$acl_save_exec_prefix"
11371   prefix="$acl_save_prefix"
11372
11373
11374 # Check whether --with-libiconv-prefix was given.
11375 if test "${with_libiconv_prefix+set}" = set; then :
11376   withval=$with_libiconv_prefix;
11377     if test "X$withval" = "Xno"; then
11378       use_additional=no
11379     else
11380       if test "X$withval" = "X"; then
11381
11382   acl_save_prefix="$prefix"
11383   prefix="$acl_final_prefix"
11384   acl_save_exec_prefix="$exec_prefix"
11385   exec_prefix="$acl_final_exec_prefix"
11386
11387           eval additional_includedir=\"$includedir\"
11388           eval additional_libdir=\"$libdir\"
11389
11390   exec_prefix="$acl_save_exec_prefix"
11391   prefix="$acl_save_prefix"
11392
11393       else
11394         additional_includedir="$withval/include"
11395         additional_libdir="$withval/$acl_libdirstem"
11396       fi
11397     fi
11398
11399 fi
11400
11401       LIBICONV=
11402   LTLIBICONV=
11403   INCICONV=
11404   LIBICONV_PREFIX=
11405   rpathdirs=
11406   ltrpathdirs=
11407   names_already_handled=
11408   names_next_round='iconv '
11409   while test -n "$names_next_round"; do
11410     names_this_round="$names_next_round"
11411     names_next_round=
11412     for name in $names_this_round; do
11413       already_handled=
11414       for n in $names_already_handled; do
11415         if test "$n" = "$name"; then
11416           already_handled=yes
11417           break
11418         fi
11419       done
11420       if test -z "$already_handled"; then
11421         names_already_handled="$names_already_handled $name"
11422                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11423         eval value=\"\$HAVE_LIB$uppername\"
11424         if test -n "$value"; then
11425           if test "$value" = yes; then
11426             eval value=\"\$LIB$uppername\"
11427             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11428             eval value=\"\$LTLIB$uppername\"
11429             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11430           else
11431                                     :
11432           fi
11433         else
11434                               found_dir=
11435           found_la=
11436           found_so=
11437           found_a=
11438           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11439           if test -n "$acl_shlibext"; then
11440             shrext=".$acl_shlibext"             # typically: shrext=.so
11441           else
11442             shrext=
11443           fi
11444           if test $use_additional = yes; then
11445             dir="$additional_libdir"
11446                                     if test -n "$acl_shlibext"; then
11447               if test -f "$dir/$libname$shrext"; then
11448                 found_dir="$dir"
11449                 found_so="$dir/$libname$shrext"
11450               else
11451                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11452                   ver=`(cd "$dir" && \
11453                         for f in "$libname$shrext".*; do echo "$f"; done \
11454                         | sed -e "s,^$libname$shrext\\\\.,," \
11455                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11456                         | sed 1q ) 2>/dev/null`
11457                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11458                     found_dir="$dir"
11459                     found_so="$dir/$libname$shrext.$ver"
11460                   fi
11461                 else
11462                   eval library_names=\"$acl_library_names_spec\"
11463                   for f in $library_names; do
11464                     if test -f "$dir/$f"; then
11465                       found_dir="$dir"
11466                       found_so="$dir/$f"
11467                       break
11468                     fi
11469                   done
11470                 fi
11471               fi
11472             fi
11473                         if test "X$found_dir" = "X"; then
11474               if test -f "$dir/$libname.$acl_libext"; then
11475                 found_dir="$dir"
11476                 found_a="$dir/$libname.$acl_libext"
11477               fi
11478             fi
11479             if test "X$found_dir" != "X"; then
11480               if test -f "$dir/$libname.la"; then
11481                 found_la="$dir/$libname.la"
11482               fi
11483             fi
11484           fi
11485           if test "X$found_dir" = "X"; then
11486             for x in $LDFLAGS $LTLIBICONV; do
11487
11488   acl_save_prefix="$prefix"
11489   prefix="$acl_final_prefix"
11490   acl_save_exec_prefix="$exec_prefix"
11491   exec_prefix="$acl_final_exec_prefix"
11492   eval x=\"$x\"
11493   exec_prefix="$acl_save_exec_prefix"
11494   prefix="$acl_save_prefix"
11495
11496               case "$x" in
11497                 -L*)
11498                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11499                                     if test -n "$acl_shlibext"; then
11500                     if test -f "$dir/$libname$shrext"; then
11501                       found_dir="$dir"
11502                       found_so="$dir/$libname$shrext"
11503                     else
11504                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11505                         ver=`(cd "$dir" && \
11506                               for f in "$libname$shrext".*; do echo "$f"; done \
11507                               | sed -e "s,^$libname$shrext\\\\.,," \
11508                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11509                               | sed 1q ) 2>/dev/null`
11510                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11511                           found_dir="$dir"
11512                           found_so="$dir/$libname$shrext.$ver"
11513                         fi
11514                       else
11515                         eval library_names=\"$acl_library_names_spec\"
11516                         for f in $library_names; do
11517                           if test -f "$dir/$f"; then
11518                             found_dir="$dir"
11519                             found_so="$dir/$f"
11520                             break
11521                           fi
11522                         done
11523                       fi
11524                     fi
11525                   fi
11526                                     if test "X$found_dir" = "X"; then
11527                     if test -f "$dir/$libname.$acl_libext"; then
11528                       found_dir="$dir"
11529                       found_a="$dir/$libname.$acl_libext"
11530                     fi
11531                   fi
11532                   if test "X$found_dir" != "X"; then
11533                     if test -f "$dir/$libname.la"; then
11534                       found_la="$dir/$libname.la"
11535                     fi
11536                   fi
11537                   ;;
11538               esac
11539               if test "X$found_dir" != "X"; then
11540                 break
11541               fi
11542             done
11543           fi
11544           if test "X$found_dir" != "X"; then
11545                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11546             if test "X$found_so" != "X"; then
11547                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11548                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11549               else
11550                                                                                 haveit=
11551                 for x in $ltrpathdirs; do
11552                   if test "X$x" = "X$found_dir"; then
11553                     haveit=yes
11554                     break
11555                   fi
11556                 done
11557                 if test -z "$haveit"; then
11558                   ltrpathdirs="$ltrpathdirs $found_dir"
11559                 fi
11560                                 if test "$acl_hardcode_direct" = yes; then
11561                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11562                 else
11563                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11564                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11565                                                             haveit=
11566                     for x in $rpathdirs; do
11567                       if test "X$x" = "X$found_dir"; then
11568                         haveit=yes
11569                         break
11570                       fi
11571                     done
11572                     if test -z "$haveit"; then
11573                       rpathdirs="$rpathdirs $found_dir"
11574                     fi
11575                   else
11576                                                                                 haveit=
11577                     for x in $LDFLAGS $LIBICONV; do
11578
11579   acl_save_prefix="$prefix"
11580   prefix="$acl_final_prefix"
11581   acl_save_exec_prefix="$exec_prefix"
11582   exec_prefix="$acl_final_exec_prefix"
11583   eval x=\"$x\"
11584   exec_prefix="$acl_save_exec_prefix"
11585   prefix="$acl_save_prefix"
11586
11587                       if test "X$x" = "X-L$found_dir"; then
11588                         haveit=yes
11589                         break
11590                       fi
11591                     done
11592                     if test -z "$haveit"; then
11593                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11594                     fi
11595                     if test "$acl_hardcode_minus_L" != no; then
11596                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11597                     else
11598                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11599                     fi
11600                   fi
11601                 fi
11602               fi
11603             else
11604               if test "X$found_a" != "X"; then
11605                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11606               else
11607                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11608               fi
11609             fi
11610                         additional_includedir=
11611             case "$found_dir" in
11612               */$acl_libdirstem | */$acl_libdirstem/)
11613                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11614                 LIBICONV_PREFIX="$basedir"
11615                 additional_includedir="$basedir/include"
11616                 ;;
11617             esac
11618             if test "X$additional_includedir" != "X"; then
11619                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11620                 haveit=
11621                 if test "X$additional_includedir" = "X/usr/local/include"; then
11622                   if test -n "$GCC"; then
11623                     case $host_os in
11624                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11625                     esac
11626                   fi
11627                 fi
11628                 if test -z "$haveit"; then
11629                   for x in $CPPFLAGS $INCICONV; do
11630
11631   acl_save_prefix="$prefix"
11632   prefix="$acl_final_prefix"
11633   acl_save_exec_prefix="$exec_prefix"
11634   exec_prefix="$acl_final_exec_prefix"
11635   eval x=\"$x\"
11636   exec_prefix="$acl_save_exec_prefix"
11637   prefix="$acl_save_prefix"
11638
11639                     if test "X$x" = "X-I$additional_includedir"; then
11640                       haveit=yes
11641                       break
11642                     fi
11643                   done
11644                   if test -z "$haveit"; then
11645                     if test -d "$additional_includedir"; then
11646                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11647                     fi
11648                   fi
11649                 fi
11650               fi
11651             fi
11652                         if test -n "$found_la"; then
11653                                                         save_libdir="$libdir"
11654               case "$found_la" in
11655                 */* | *\\*) . "$found_la" ;;
11656                 *) . "./$found_la" ;;
11657               esac
11658               libdir="$save_libdir"
11659                             for dep in $dependency_libs; do
11660                 case "$dep" in
11661                   -L*)
11662                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11663                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11664                       haveit=
11665                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11666                         if test -n "$GCC"; then
11667                           case $host_os in
11668                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11669                           esac
11670                         fi
11671                       fi
11672                       if test -z "$haveit"; then
11673                         haveit=
11674                         for x in $LDFLAGS $LIBICONV; do
11675
11676   acl_save_prefix="$prefix"
11677   prefix="$acl_final_prefix"
11678   acl_save_exec_prefix="$exec_prefix"
11679   exec_prefix="$acl_final_exec_prefix"
11680   eval x=\"$x\"
11681   exec_prefix="$acl_save_exec_prefix"
11682   prefix="$acl_save_prefix"
11683
11684                           if test "X$x" = "X-L$additional_libdir"; then
11685                             haveit=yes
11686                             break
11687                           fi
11688                         done
11689                         if test -z "$haveit"; then
11690                           if test -d "$additional_libdir"; then
11691                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11692                           fi
11693                         fi
11694                         haveit=
11695                         for x in $LDFLAGS $LTLIBICONV; do
11696
11697   acl_save_prefix="$prefix"
11698   prefix="$acl_final_prefix"
11699   acl_save_exec_prefix="$exec_prefix"
11700   exec_prefix="$acl_final_exec_prefix"
11701   eval x=\"$x\"
11702   exec_prefix="$acl_save_exec_prefix"
11703   prefix="$acl_save_prefix"
11704
11705                           if test "X$x" = "X-L$additional_libdir"; then
11706                             haveit=yes
11707                             break
11708                           fi
11709                         done
11710                         if test -z "$haveit"; then
11711                           if test -d "$additional_libdir"; then
11712                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11713                           fi
11714                         fi
11715                       fi
11716                     fi
11717                     ;;
11718                   -R*)
11719                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11720                     if test "$enable_rpath" != no; then
11721                                                                   haveit=
11722                       for x in $rpathdirs; do
11723                         if test "X$x" = "X$dir"; then
11724                           haveit=yes
11725                           break
11726                         fi
11727                       done
11728                       if test -z "$haveit"; then
11729                         rpathdirs="$rpathdirs $dir"
11730                       fi
11731                                                                   haveit=
11732                       for x in $ltrpathdirs; do
11733                         if test "X$x" = "X$dir"; then
11734                           haveit=yes
11735                           break
11736                         fi
11737                       done
11738                       if test -z "$haveit"; then
11739                         ltrpathdirs="$ltrpathdirs $dir"
11740                       fi
11741                     fi
11742                     ;;
11743                   -l*)
11744                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11745                     ;;
11746                   *.la)
11747                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11748                     ;;
11749                   *)
11750                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11751                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11752                     ;;
11753                 esac
11754               done
11755             fi
11756           else
11757                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11758             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11759           fi
11760         fi
11761       fi
11762     done
11763   done
11764   if test "X$rpathdirs" != "X"; then
11765     if test -n "$acl_hardcode_libdir_separator"; then
11766                         alldirs=
11767       for found_dir in $rpathdirs; do
11768         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11769       done
11770             acl_save_libdir="$libdir"
11771       libdir="$alldirs"
11772       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11773       libdir="$acl_save_libdir"
11774       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11775     else
11776             for found_dir in $rpathdirs; do
11777         acl_save_libdir="$libdir"
11778         libdir="$found_dir"
11779         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11780         libdir="$acl_save_libdir"
11781         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11782       done
11783     fi
11784   fi
11785   if test "X$ltrpathdirs" != "X"; then
11786             for found_dir in $ltrpathdirs; do
11787       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11788     done
11789   fi
11790
11791
11792
11793
11794
11795
11796
11797           am_save_CPPFLAGS="$CPPFLAGS"
11798
11799   for element in $INCICONV; do
11800     haveit=
11801     for x in $CPPFLAGS; do
11802
11803   acl_save_prefix="$prefix"
11804   prefix="$acl_final_prefix"
11805   acl_save_exec_prefix="$exec_prefix"
11806   exec_prefix="$acl_final_exec_prefix"
11807   eval x=\"$x\"
11808   exec_prefix="$acl_save_exec_prefix"
11809   prefix="$acl_save_prefix"
11810
11811       if test "X$x" = "X$element"; then
11812         haveit=yes
11813         break
11814       fi
11815     done
11816     if test -z "$haveit"; then
11817       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11818     fi
11819   done
11820
11821
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11823 $as_echo_n "checking for iconv... " >&6; }
11824 if ${am_cv_func_iconv+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827
11828     am_cv_func_iconv="no, consider installing GNU libiconv"
11829     am_cv_lib_iconv=no
11830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h.  */
11832
11833 #include <stdlib.h>
11834 #include <iconv.h>
11835
11836 int
11837 main ()
11838 {
11839 iconv_t cd = iconv_open("","");
11840            iconv(cd,NULL,NULL,NULL,NULL);
11841            iconv_close(cd);
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847   am_cv_func_iconv=yes
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext \
11850     conftest$ac_exeext conftest.$ac_ext
11851     if test "$am_cv_func_iconv" != yes; then
11852       am_save_LIBS="$LIBS"
11853       LIBS="$LIBS $LIBICONV"
11854       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h.  */
11856
11857 #include <stdlib.h>
11858 #include <iconv.h>
11859
11860 int
11861 main ()
11862 {
11863 iconv_t cd = iconv_open("","");
11864              iconv(cd,NULL,NULL,NULL,NULL);
11865              iconv_close(cd);
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 if ac_fn_c_try_link "$LINENO"; then :
11871   am_cv_lib_iconv=yes
11872         am_cv_func_iconv=yes
11873 fi
11874 rm -f core conftest.err conftest.$ac_objext \
11875     conftest$ac_exeext conftest.$ac_ext
11876       LIBS="$am_save_LIBS"
11877     fi
11878
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11881 $as_echo "$am_cv_func_iconv" >&6; }
11882   if test "$am_cv_func_iconv" = yes; then
11883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11884 $as_echo_n "checking for working iconv... " >&6; }
11885 if ${am_cv_func_iconv_works+:} false; then :
11886   $as_echo_n "(cached) " >&6
11887 else
11888
11889                   am_save_LIBS="$LIBS"
11890       if test $am_cv_lib_iconv = yes; then
11891         LIBS="$LIBS $LIBICONV"
11892       fi
11893       am_cv_func_iconv_works=no
11894       for ac_iconv_const in '' 'const'; do
11895         if test "$cross_compiling" = yes; then :
11896   case "$host_os" in
11897              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11898              *)            am_cv_func_iconv_works="guessing yes" ;;
11899            esac
11900 else
11901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 #include <iconv.h>
11905 #include <string.h>
11906
11907 #ifndef ICONV_CONST
11908 # define ICONV_CONST $ac_iconv_const
11909 #endif
11910
11911 int
11912 main ()
11913 {
11914 int result = 0;
11915   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11916      returns.  */
11917   {
11918     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11919     if (cd_utf8_to_88591 != (iconv_t)(-1))
11920       {
11921         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11922         char buf[10];
11923         ICONV_CONST char *inptr = input;
11924         size_t inbytesleft = strlen (input);
11925         char *outptr = buf;
11926         size_t outbytesleft = sizeof (buf);
11927         size_t res = iconv (cd_utf8_to_88591,
11928                             &inptr, &inbytesleft,
11929                             &outptr, &outbytesleft);
11930         if (res == 0)
11931           result |= 1;
11932         iconv_close (cd_utf8_to_88591);
11933       }
11934   }
11935   /* Test against Solaris 10 bug: Failures are not distinguishable from
11936      successful returns.  */
11937   {
11938     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11939     if (cd_ascii_to_88591 != (iconv_t)(-1))
11940       {
11941         static ICONV_CONST char input[] = "\263";
11942         char buf[10];
11943         ICONV_CONST char *inptr = input;
11944         size_t inbytesleft = strlen (input);
11945         char *outptr = buf;
11946         size_t outbytesleft = sizeof (buf);
11947         size_t res = iconv (cd_ascii_to_88591,
11948                             &inptr, &inbytesleft,
11949                             &outptr, &outbytesleft);
11950         if (res == 0)
11951           result |= 2;
11952         iconv_close (cd_ascii_to_88591);
11953       }
11954   }
11955   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11956   {
11957     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11958     if (cd_88591_to_utf8 != (iconv_t)(-1))
11959       {
11960         static ICONV_CONST char input[] = "\304";
11961         static char buf[2] = { (char)0xDE, (char)0xAD };
11962         ICONV_CONST char *inptr = input;
11963         size_t inbytesleft = 1;
11964         char *outptr = buf;
11965         size_t outbytesleft = 1;
11966         size_t res = iconv (cd_88591_to_utf8,
11967                             &inptr, &inbytesleft,
11968                             &outptr, &outbytesleft);
11969         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11970           result |= 4;
11971         iconv_close (cd_88591_to_utf8);
11972       }
11973   }
11974 #if 0 /* This bug could be worked around by the caller.  */
11975   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11976   {
11977     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11978     if (cd_88591_to_utf8 != (iconv_t)(-1))
11979       {
11980         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11981         char buf[50];
11982         ICONV_CONST char *inptr = input;
11983         size_t inbytesleft = strlen (input);
11984         char *outptr = buf;
11985         size_t outbytesleft = sizeof (buf);
11986         size_t res = iconv (cd_88591_to_utf8,
11987                             &inptr, &inbytesleft,
11988                             &outptr, &outbytesleft);
11989         if ((int)res > 0)
11990           result |= 8;
11991         iconv_close (cd_88591_to_utf8);
11992       }
11993   }
11994 #endif
11995   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11996      provided.  */
11997   {
11998     /* Try standardized names.  */
11999     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12000     /* Try IRIX, OSF/1 names.  */
12001     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12002     /* Try AIX names.  */
12003     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12004     /* Try HP-UX names.  */
12005     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12006     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12007         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12008       result |= 16;
12009     if (cd1 != (iconv_t)(-1))
12010       iconv_close (cd1);
12011     if (cd2 != (iconv_t)(-1))
12012       iconv_close (cd2);
12013     if (cd3 != (iconv_t)(-1))
12014       iconv_close (cd3);
12015     if (cd4 != (iconv_t)(-1))
12016       iconv_close (cd4);
12017   }
12018   return result;
12019
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_run "$LINENO"; then :
12025   am_cv_func_iconv_works=yes
12026 fi
12027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12028   conftest.$ac_objext conftest.beam conftest.$ac_ext
12029 fi
12030
12031         test "$am_cv_func_iconv_works" = no || break
12032       done
12033       LIBS="$am_save_LIBS"
12034
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12037 $as_echo "$am_cv_func_iconv_works" >&6; }
12038     case "$am_cv_func_iconv_works" in
12039       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12040       *)   am_func_iconv=yes ;;
12041     esac
12042   else
12043     am_func_iconv=no am_cv_lib_iconv=no
12044   fi
12045   if test "$am_func_iconv" = yes; then
12046
12047 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12048
12049   fi
12050   if test "$am_cv_lib_iconv" = yes; then
12051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12052 $as_echo_n "checking how to link with libiconv... " >&6; }
12053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12054 $as_echo "$LIBICONV" >&6; }
12055   else
12056             CPPFLAGS="$am_save_CPPFLAGS"
12057     LIBICONV=
12058     LTLIBICONV=
12059   fi
12060
12061
12062
12063   if test "$am_cv_func_iconv" = yes; then
12064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12065 $as_echo_n "checking for iconv declaration... " >&6; }
12066     if ${am_cv_proto_iconv+:} false; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069
12070       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072
12073 #include <stdlib.h>
12074 #include <iconv.h>
12075 extern
12076 #ifdef __cplusplus
12077 "C"
12078 #endif
12079 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12080 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12081 #else
12082 size_t iconv();
12083 #endif
12084
12085 int
12086 main ()
12087 {
12088
12089   ;
12090   return 0;
12091 }
12092 _ACEOF
12093 if ac_fn_c_try_compile "$LINENO"; then :
12094   am_cv_proto_iconv_arg1=""
12095 else
12096   am_cv_proto_iconv_arg1="const"
12097 fi
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12100 fi
12101
12102     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12103     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12104          $am_cv_proto_iconv" >&5
12105 $as_echo "
12106          $am_cv_proto_iconv" >&6; }
12107   else
12108             am_cv_proto_iconv_arg1=""
12109   fi
12110
12111 cat >>confdefs.h <<_ACEOF
12112 #define ICONV_CONST $am_cv_proto_iconv_arg1
12113 _ACEOF
12114
12115
12116
12117 else
12118   LIBICONV=
12119   LTLIBICONV=
12120
12121
12122 fi
12123
12124
12125 #
12126 # Check for gettext
12127 #
12128 # This is "GNU gnupg" - The project-id script from gettext
12129 #                       needs this string
12130 #
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12132 $as_echo "$as_me: checking for gettext" >&6;}
12133
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12135 $as_echo_n "checking whether NLS is requested... " >&6; }
12136     # Check whether --enable-nls was given.
12137 if test "${enable_nls+set}" = set; then :
12138   enableval=$enable_nls; USE_NLS=$enableval
12139 else
12140   USE_NLS=yes
12141 fi
12142
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12144 $as_echo "$USE_NLS" >&6; }
12145
12146
12147
12148
12149       GETTEXT_MACRO_VERSION=0.17
12150
12151
12152
12153
12154 # Prepare PATH_SEPARATOR.
12155 # The user is always right.
12156 if test "${PATH_SEPARATOR+set}" != set; then
12157   echo "#! /bin/sh" >conf$$.sh
12158   echo  "exit 0"   >>conf$$.sh
12159   chmod +x conf$$.sh
12160   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12161     PATH_SEPARATOR=';'
12162   else
12163     PATH_SEPARATOR=:
12164   fi
12165   rm -f conf$$.sh
12166 fi
12167
12168 # Find out how to test for executable files. Don't use a zero-byte file,
12169 # as systems may use methods other than mode bits to determine executability.
12170 cat >conf$$.file <<_ASEOF
12171 #! /bin/sh
12172 exit 0
12173 _ASEOF
12174 chmod +x conf$$.file
12175 if test -x conf$$.file >/dev/null 2>&1; then
12176   ac_executable_p="test -x"
12177 else
12178   ac_executable_p="test -f"
12179 fi
12180 rm -f conf$$.file
12181
12182 # Extract the first word of "msgfmt", so it can be a program name with args.
12183 set dummy msgfmt; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_path_MSGFMT+:} false; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189   case "$MSGFMT" in
12190   [\\/]* | ?:[\\/]*)
12191     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12192     ;;
12193   *)
12194     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12195     for ac_dir in $PATH; do
12196       IFS="$ac_save_IFS"
12197       test -z "$ac_dir" && ac_dir=.
12198       for ac_exec_ext in '' $ac_executable_extensions; do
12199         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12200           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12201           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12202      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12203             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12204             break 2
12205           fi
12206         fi
12207       done
12208     done
12209     IFS="$ac_save_IFS"
12210   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12211     ;;
12212 esac
12213 fi
12214 MSGFMT="$ac_cv_path_MSGFMT"
12215 if test "$MSGFMT" != ":"; then
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12217 $as_echo "$MSGFMT" >&6; }
12218 else
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222
12223   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12224 set dummy gmsgfmt; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_path_GMSGFMT+:} false; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   case $GMSGFMT in
12231   [\\/]* | ?:[\\/]*)
12232   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12233   ;;
12234   *)
12235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240     for ac_exec_ext in '' $ac_executable_extensions; do
12241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247   done
12248 IFS=$as_save_IFS
12249
12250   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12251   ;;
12252 esac
12253 fi
12254 GMSGFMT=$ac_cv_path_GMSGFMT
12255 if test -n "$GMSGFMT"; then
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12257 $as_echo "$GMSGFMT" >&6; }
12258 else
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 fi
12262
12263
12264
12265     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12266     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12267     *) MSGFMT_015=$MSGFMT ;;
12268   esac
12269
12270   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12271     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12272     *) GMSGFMT_015=$GMSGFMT ;;
12273   esac
12274
12275
12276
12277 # Prepare PATH_SEPARATOR.
12278 # The user is always right.
12279 if test "${PATH_SEPARATOR+set}" != set; then
12280   echo "#! /bin/sh" >conf$$.sh
12281   echo  "exit 0"   >>conf$$.sh
12282   chmod +x conf$$.sh
12283   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12284     PATH_SEPARATOR=';'
12285   else
12286     PATH_SEPARATOR=:
12287   fi
12288   rm -f conf$$.sh
12289 fi
12290
12291 # Find out how to test for executable files. Don't use a zero-byte file,
12292 # as systems may use methods other than mode bits to determine executability.
12293 cat >conf$$.file <<_ASEOF
12294 #! /bin/sh
12295 exit 0
12296 _ASEOF
12297 chmod +x conf$$.file
12298 if test -x conf$$.file >/dev/null 2>&1; then
12299   ac_executable_p="test -x"
12300 else
12301   ac_executable_p="test -f"
12302 fi
12303 rm -f conf$$.file
12304
12305 # Extract the first word of "xgettext", so it can be a program name with args.
12306 set dummy xgettext; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_path_XGETTEXT+:} false; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   case "$XGETTEXT" in
12313   [\\/]* | ?:[\\/]*)
12314     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12315     ;;
12316   *)
12317     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12318     for ac_dir in $PATH; do
12319       IFS="$ac_save_IFS"
12320       test -z "$ac_dir" && ac_dir=.
12321       for ac_exec_ext in '' $ac_executable_extensions; do
12322         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12323           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12324           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12325      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12326             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12327             break 2
12328           fi
12329         fi
12330       done
12331     done
12332     IFS="$ac_save_IFS"
12333   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12334     ;;
12335 esac
12336 fi
12337 XGETTEXT="$ac_cv_path_XGETTEXT"
12338 if test "$XGETTEXT" != ":"; then
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12340 $as_echo "$XGETTEXT" >&6; }
12341 else
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346     rm -f messages.po
12347
12348     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12349     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12350     *) XGETTEXT_015=$XGETTEXT ;;
12351   esac
12352
12353
12354
12355 # Prepare PATH_SEPARATOR.
12356 # The user is always right.
12357 if test "${PATH_SEPARATOR+set}" != set; then
12358   echo "#! /bin/sh" >conf$$.sh
12359   echo  "exit 0"   >>conf$$.sh
12360   chmod +x conf$$.sh
12361   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12362     PATH_SEPARATOR=';'
12363   else
12364     PATH_SEPARATOR=:
12365   fi
12366   rm -f conf$$.sh
12367 fi
12368
12369 # Find out how to test for executable files. Don't use a zero-byte file,
12370 # as systems may use methods other than mode bits to determine executability.
12371 cat >conf$$.file <<_ASEOF
12372 #! /bin/sh
12373 exit 0
12374 _ASEOF
12375 chmod +x conf$$.file
12376 if test -x conf$$.file >/dev/null 2>&1; then
12377   ac_executable_p="test -x"
12378 else
12379   ac_executable_p="test -f"
12380 fi
12381 rm -f conf$$.file
12382
12383 # Extract the first word of "msgmerge", so it can be a program name with args.
12384 set dummy msgmerge; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if ${ac_cv_path_MSGMERGE+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390   case "$MSGMERGE" in
12391   [\\/]* | ?:[\\/]*)
12392     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12393     ;;
12394   *)
12395     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12396     for ac_dir in $PATH; do
12397       IFS="$ac_save_IFS"
12398       test -z "$ac_dir" && ac_dir=.
12399       for ac_exec_ext in '' $ac_executable_extensions; do
12400         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12401           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12402           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12403             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12404             break 2
12405           fi
12406         fi
12407       done
12408     done
12409     IFS="$ac_save_IFS"
12410   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12411     ;;
12412 esac
12413 fi
12414 MSGMERGE="$ac_cv_path_MSGMERGE"
12415 if test "$MSGMERGE" != ":"; then
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12417 $as_echo "$MSGMERGE" >&6; }
12418 else
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422
12423
12424         test -n "$localedir" || localedir='${datadir}/locale'
12425
12426
12427     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12428
12429
12430   ac_config_commands="$ac_config_commands po-directories"
12431
12432
12433
12434 if test "$try_gettext" = yes; then
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12459 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12460 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   gt_save_LIBS="$LIBS"
12464      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467 #include <CoreFoundation/CFPreferences.h>
12468 int
12469 main ()
12470 {
12471 CFPreferencesCopyAppValue(NULL, NULL)
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_link "$LINENO"; then :
12477   gt_cv_func_CFPreferencesCopyAppValue=yes
12478 else
12479   gt_cv_func_CFPreferencesCopyAppValue=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext \
12482     conftest$ac_exeext conftest.$ac_ext
12483      LIBS="$gt_save_LIBS"
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12486 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12487   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12488
12489 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12490
12491   fi
12492                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12493 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12494 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
12495   $as_echo_n "(cached) " >&6
12496 else
12497   gt_save_LIBS="$LIBS"
12498      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h.  */
12501 #include <CoreFoundation/CFLocale.h>
12502 int
12503 main ()
12504 {
12505 CFLocaleCopyPreferredLanguages();
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 if ac_fn_c_try_link "$LINENO"; then :
12511   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12512 else
12513   gt_cv_func_CFLocaleCopyPreferredLanguages=no
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext \
12516     conftest$ac_exeext conftest.$ac_ext
12517      LIBS="$gt_save_LIBS"
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12520 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12521   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12522
12523 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12524
12525   fi
12526   INTL_MACOSX_LIBS=
12527   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12528      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12529     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12530   fi
12531
12532
12533
12534
12535
12536
12537   LIBINTL=
12538   LTLIBINTL=
12539   POSUB=
12540
12541     case " $gt_needs " in
12542     *" need-formatstring-macros "*) gt_api_version=3 ;;
12543     *" need-ngettext "*) gt_api_version=2 ;;
12544     *) gt_api_version=1 ;;
12545   esac
12546   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12547   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12548
12549     if test "$USE_NLS" = "yes"; then
12550     gt_use_preinstalled_gnugettext=no
12551
12552
12553         if test $gt_api_version -ge 3; then
12554           gt_revision_test_code='
12555 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12556 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12557 #endif
12558 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12559 '
12560         else
12561           gt_revision_test_code=
12562         fi
12563         if test $gt_api_version -ge 2; then
12564           gt_expression_test_code=' + * ngettext ("", "", 0)'
12565         else
12566           gt_expression_test_code=
12567         fi
12568
12569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12570 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12571 if eval \${$gt_func_gnugettext_libc+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h.  */
12576
12577 #include <libintl.h>
12578 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12579 extern int _nl_msg_cat_cntr;
12580 extern int *_nl_domain_bindings;
12581 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12582 #else
12583 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12584 #endif
12585 $gt_revision_test_code
12586
12587 int
12588 main ()
12589 {
12590
12591 bindtextdomain ("", "");
12592 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599   eval "$gt_func_gnugettext_libc=yes"
12600 else
12601   eval "$gt_func_gnugettext_libc=no"
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604     conftest$ac_exeext conftest.$ac_ext
12605 fi
12606 eval ac_res=\$$gt_func_gnugettext_libc
12607                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12608 $as_echo "$ac_res" >&6; }
12609
12610         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12611
12612
12613
12614
12615
12616           am_save_CPPFLAGS="$CPPFLAGS"
12617
12618   for element in $INCICONV; do
12619     haveit=
12620     for x in $CPPFLAGS; do
12621
12622   acl_save_prefix="$prefix"
12623   prefix="$acl_final_prefix"
12624   acl_save_exec_prefix="$exec_prefix"
12625   exec_prefix="$acl_final_exec_prefix"
12626   eval x=\"$x\"
12627   exec_prefix="$acl_save_exec_prefix"
12628   prefix="$acl_save_prefix"
12629
12630       if test "X$x" = "X$element"; then
12631         haveit=yes
12632         break
12633       fi
12634     done
12635     if test -z "$haveit"; then
12636       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12637     fi
12638   done
12639
12640
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12642 $as_echo_n "checking for iconv... " >&6; }
12643 if ${am_cv_func_iconv+:} false; then :
12644   $as_echo_n "(cached) " >&6
12645 else
12646
12647     am_cv_func_iconv="no, consider installing GNU libiconv"
12648     am_cv_lib_iconv=no
12649     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h.  */
12651
12652 #include <stdlib.h>
12653 #include <iconv.h>
12654
12655 int
12656 main ()
12657 {
12658 iconv_t cd = iconv_open("","");
12659            iconv(cd,NULL,NULL,NULL,NULL);
12660            iconv_close(cd);
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"; then :
12666   am_cv_func_iconv=yes
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext \
12669     conftest$ac_exeext conftest.$ac_ext
12670     if test "$am_cv_func_iconv" != yes; then
12671       am_save_LIBS="$LIBS"
12672       LIBS="$LIBS $LIBICONV"
12673       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h.  */
12675
12676 #include <stdlib.h>
12677 #include <iconv.h>
12678
12679 int
12680 main ()
12681 {
12682 iconv_t cd = iconv_open("","");
12683              iconv(cd,NULL,NULL,NULL,NULL);
12684              iconv_close(cd);
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690   am_cv_lib_iconv=yes
12691         am_cv_func_iconv=yes
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext \
12694     conftest$ac_exeext conftest.$ac_ext
12695       LIBS="$am_save_LIBS"
12696     fi
12697
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12700 $as_echo "$am_cv_func_iconv" >&6; }
12701   if test "$am_cv_func_iconv" = yes; then
12702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12703 $as_echo_n "checking for working iconv... " >&6; }
12704 if ${am_cv_func_iconv_works+:} false; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707
12708                   am_save_LIBS="$LIBS"
12709       if test $am_cv_lib_iconv = yes; then
12710         LIBS="$LIBS $LIBICONV"
12711       fi
12712       am_cv_func_iconv_works=no
12713       for ac_iconv_const in '' 'const'; do
12714         if test "$cross_compiling" = yes; then :
12715   case "$host_os" in
12716              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12717              *)            am_cv_func_iconv_works="guessing yes" ;;
12718            esac
12719 else
12720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h.  */
12722
12723 #include <iconv.h>
12724 #include <string.h>
12725
12726 #ifndef ICONV_CONST
12727 # define ICONV_CONST $ac_iconv_const
12728 #endif
12729
12730 int
12731 main ()
12732 {
12733 int result = 0;
12734   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12735      returns.  */
12736   {
12737     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12738     if (cd_utf8_to_88591 != (iconv_t)(-1))
12739       {
12740         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12741         char buf[10];
12742         ICONV_CONST char *inptr = input;
12743         size_t inbytesleft = strlen (input);
12744         char *outptr = buf;
12745         size_t outbytesleft = sizeof (buf);
12746         size_t res = iconv (cd_utf8_to_88591,
12747                             &inptr, &inbytesleft,
12748                             &outptr, &outbytesleft);
12749         if (res == 0)
12750           result |= 1;
12751         iconv_close (cd_utf8_to_88591);
12752       }
12753   }
12754   /* Test against Solaris 10 bug: Failures are not distinguishable from
12755      successful returns.  */
12756   {
12757     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12758     if (cd_ascii_to_88591 != (iconv_t)(-1))
12759       {
12760         static ICONV_CONST char input[] = "\263";
12761         char buf[10];
12762         ICONV_CONST char *inptr = input;
12763         size_t inbytesleft = strlen (input);
12764         char *outptr = buf;
12765         size_t outbytesleft = sizeof (buf);
12766         size_t res = iconv (cd_ascii_to_88591,
12767                             &inptr, &inbytesleft,
12768                             &outptr, &outbytesleft);
12769         if (res == 0)
12770           result |= 2;
12771         iconv_close (cd_ascii_to_88591);
12772       }
12773   }
12774   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12775   {
12776     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12777     if (cd_88591_to_utf8 != (iconv_t)(-1))
12778       {
12779         static ICONV_CONST char input[] = "\304";
12780         static char buf[2] = { (char)0xDE, (char)0xAD };
12781         ICONV_CONST char *inptr = input;
12782         size_t inbytesleft = 1;
12783         char *outptr = buf;
12784         size_t outbytesleft = 1;
12785         size_t res = iconv (cd_88591_to_utf8,
12786                             &inptr, &inbytesleft,
12787                             &outptr, &outbytesleft);
12788         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12789           result |= 4;
12790         iconv_close (cd_88591_to_utf8);
12791       }
12792   }
12793 #if 0 /* This bug could be worked around by the caller.  */
12794   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12795   {
12796     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12797     if (cd_88591_to_utf8 != (iconv_t)(-1))
12798       {
12799         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12800         char buf[50];
12801         ICONV_CONST char *inptr = input;
12802         size_t inbytesleft = strlen (input);
12803         char *outptr = buf;
12804         size_t outbytesleft = sizeof (buf);
12805         size_t res = iconv (cd_88591_to_utf8,
12806                             &inptr, &inbytesleft,
12807                             &outptr, &outbytesleft);
12808         if ((int)res > 0)
12809           result |= 8;
12810         iconv_close (cd_88591_to_utf8);
12811       }
12812   }
12813 #endif
12814   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12815      provided.  */
12816   {
12817     /* Try standardized names.  */
12818     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12819     /* Try IRIX, OSF/1 names.  */
12820     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12821     /* Try AIX names.  */
12822     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12823     /* Try HP-UX names.  */
12824     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12825     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12826         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12827       result |= 16;
12828     if (cd1 != (iconv_t)(-1))
12829       iconv_close (cd1);
12830     if (cd2 != (iconv_t)(-1))
12831       iconv_close (cd2);
12832     if (cd3 != (iconv_t)(-1))
12833       iconv_close (cd3);
12834     if (cd4 != (iconv_t)(-1))
12835       iconv_close (cd4);
12836   }
12837   return result;
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_run "$LINENO"; then :
12844   am_cv_func_iconv_works=yes
12845 fi
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12847   conftest.$ac_objext conftest.beam conftest.$ac_ext
12848 fi
12849
12850         test "$am_cv_func_iconv_works" = no || break
12851       done
12852       LIBS="$am_save_LIBS"
12853
12854 fi
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12856 $as_echo "$am_cv_func_iconv_works" >&6; }
12857     case "$am_cv_func_iconv_works" in
12858       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12859       *)   am_func_iconv=yes ;;
12860     esac
12861   else
12862     am_func_iconv=no am_cv_lib_iconv=no
12863   fi
12864   if test "$am_func_iconv" = yes; then
12865
12866 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12867
12868   fi
12869   if test "$am_cv_lib_iconv" = yes; then
12870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12871 $as_echo_n "checking how to link with libiconv... " >&6; }
12872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12873 $as_echo "$LIBICONV" >&6; }
12874   else
12875             CPPFLAGS="$am_save_CPPFLAGS"
12876     LIBICONV=
12877     LTLIBICONV=
12878   fi
12879
12880
12881
12882
12883
12884
12885
12886
12887     use_additional=yes
12888
12889   acl_save_prefix="$prefix"
12890   prefix="$acl_final_prefix"
12891   acl_save_exec_prefix="$exec_prefix"
12892   exec_prefix="$acl_final_exec_prefix"
12893
12894     eval additional_includedir=\"$includedir\"
12895     eval additional_libdir=\"$libdir\"
12896
12897   exec_prefix="$acl_save_exec_prefix"
12898   prefix="$acl_save_prefix"
12899
12900
12901 # Check whether --with-libintl-prefix was given.
12902 if test "${with_libintl_prefix+set}" = set; then :
12903   withval=$with_libintl_prefix;
12904     if test "X$withval" = "Xno"; then
12905       use_additional=no
12906     else
12907       if test "X$withval" = "X"; then
12908
12909   acl_save_prefix="$prefix"
12910   prefix="$acl_final_prefix"
12911   acl_save_exec_prefix="$exec_prefix"
12912   exec_prefix="$acl_final_exec_prefix"
12913
12914           eval additional_includedir=\"$includedir\"
12915           eval additional_libdir=\"$libdir\"
12916
12917   exec_prefix="$acl_save_exec_prefix"
12918   prefix="$acl_save_prefix"
12919
12920       else
12921         additional_includedir="$withval/include"
12922         additional_libdir="$withval/$acl_libdirstem"
12923       fi
12924     fi
12925
12926 fi
12927
12928       LIBINTL=
12929   LTLIBINTL=
12930   INCINTL=
12931   LIBINTL_PREFIX=
12932   rpathdirs=
12933   ltrpathdirs=
12934   names_already_handled=
12935   names_next_round='intl '
12936   while test -n "$names_next_round"; do
12937     names_this_round="$names_next_round"
12938     names_next_round=
12939     for name in $names_this_round; do
12940       already_handled=
12941       for n in $names_already_handled; do
12942         if test "$n" = "$name"; then
12943           already_handled=yes
12944           break
12945         fi
12946       done
12947       if test -z "$already_handled"; then
12948         names_already_handled="$names_already_handled $name"
12949                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12950         eval value=\"\$HAVE_LIB$uppername\"
12951         if test -n "$value"; then
12952           if test "$value" = yes; then
12953             eval value=\"\$LIB$uppername\"
12954             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12955             eval value=\"\$LTLIB$uppername\"
12956             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12957           else
12958                                     :
12959           fi
12960         else
12961                               found_dir=
12962           found_la=
12963           found_so=
12964           found_a=
12965           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12966           if test -n "$acl_shlibext"; then
12967             shrext=".$acl_shlibext"             # typically: shrext=.so
12968           else
12969             shrext=
12970           fi
12971           if test $use_additional = yes; then
12972             dir="$additional_libdir"
12973                                     if test -n "$acl_shlibext"; then
12974               if test -f "$dir/$libname$shrext"; then
12975                 found_dir="$dir"
12976                 found_so="$dir/$libname$shrext"
12977               else
12978                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12979                   ver=`(cd "$dir" && \
12980                         for f in "$libname$shrext".*; do echo "$f"; done \
12981                         | sed -e "s,^$libname$shrext\\\\.,," \
12982                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12983                         | sed 1q ) 2>/dev/null`
12984                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12985                     found_dir="$dir"
12986                     found_so="$dir/$libname$shrext.$ver"
12987                   fi
12988                 else
12989                   eval library_names=\"$acl_library_names_spec\"
12990                   for f in $library_names; do
12991                     if test -f "$dir/$f"; then
12992                       found_dir="$dir"
12993                       found_so="$dir/$f"
12994                       break
12995                     fi
12996                   done
12997                 fi
12998               fi
12999             fi
13000                         if test "X$found_dir" = "X"; then
13001               if test -f "$dir/$libname.$acl_libext"; then
13002                 found_dir="$dir"
13003                 found_a="$dir/$libname.$acl_libext"
13004               fi
13005             fi
13006             if test "X$found_dir" != "X"; then
13007               if test -f "$dir/$libname.la"; then
13008                 found_la="$dir/$libname.la"
13009               fi
13010             fi
13011           fi
13012           if test "X$found_dir" = "X"; then
13013             for x in $LDFLAGS $LTLIBINTL; do
13014
13015   acl_save_prefix="$prefix"
13016   prefix="$acl_final_prefix"
13017   acl_save_exec_prefix="$exec_prefix"
13018   exec_prefix="$acl_final_exec_prefix"
13019   eval x=\"$x\"
13020   exec_prefix="$acl_save_exec_prefix"
13021   prefix="$acl_save_prefix"
13022
13023               case "$x" in
13024                 -L*)
13025                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13026                                     if test -n "$acl_shlibext"; then
13027                     if test -f "$dir/$libname$shrext"; then
13028                       found_dir="$dir"
13029                       found_so="$dir/$libname$shrext"
13030                     else
13031                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13032                         ver=`(cd "$dir" && \
13033                               for f in "$libname$shrext".*; do echo "$f"; done \
13034                               | sed -e "s,^$libname$shrext\\\\.,," \
13035                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13036                               | sed 1q ) 2>/dev/null`
13037                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13038                           found_dir="$dir"
13039                           found_so="$dir/$libname$shrext.$ver"
13040                         fi
13041                       else
13042                         eval library_names=\"$acl_library_names_spec\"
13043                         for f in $library_names; do
13044                           if test -f "$dir/$f"; then
13045                             found_dir="$dir"
13046                             found_so="$dir/$f"
13047                             break
13048                           fi
13049                         done
13050                       fi
13051                     fi
13052                   fi
13053                                     if test "X$found_dir" = "X"; then
13054                     if test -f "$dir/$libname.$acl_libext"; then
13055                       found_dir="$dir"
13056                       found_a="$dir/$libname.$acl_libext"
13057                     fi
13058                   fi
13059                   if test "X$found_dir" != "X"; then
13060                     if test -f "$dir/$libname.la"; then
13061                       found_la="$dir/$libname.la"
13062                     fi
13063                   fi
13064                   ;;
13065               esac
13066               if test "X$found_dir" != "X"; then
13067                 break
13068               fi
13069             done
13070           fi
13071           if test "X$found_dir" != "X"; then
13072                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13073             if test "X$found_so" != "X"; then
13074                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13075                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13076               else
13077                                                                                 haveit=
13078                 for x in $ltrpathdirs; do
13079                   if test "X$x" = "X$found_dir"; then
13080                     haveit=yes
13081                     break
13082                   fi
13083                 done
13084                 if test -z "$haveit"; then
13085                   ltrpathdirs="$ltrpathdirs $found_dir"
13086                 fi
13087                                 if test "$acl_hardcode_direct" = yes; then
13088                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13089                 else
13090                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13091                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13092                                                             haveit=
13093                     for x in $rpathdirs; do
13094                       if test "X$x" = "X$found_dir"; then
13095                         haveit=yes
13096                         break
13097                       fi
13098                     done
13099                     if test -z "$haveit"; then
13100                       rpathdirs="$rpathdirs $found_dir"
13101                     fi
13102                   else
13103                                                                                 haveit=
13104                     for x in $LDFLAGS $LIBINTL; do
13105
13106   acl_save_prefix="$prefix"
13107   prefix="$acl_final_prefix"
13108   acl_save_exec_prefix="$exec_prefix"
13109   exec_prefix="$acl_final_exec_prefix"
13110   eval x=\"$x\"
13111   exec_prefix="$acl_save_exec_prefix"
13112   prefix="$acl_save_prefix"
13113
13114                       if test "X$x" = "X-L$found_dir"; then
13115                         haveit=yes
13116                         break
13117                       fi
13118                     done
13119                     if test -z "$haveit"; then
13120                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13121                     fi
13122                     if test "$acl_hardcode_minus_L" != no; then
13123                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13124                     else
13125                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13126                     fi
13127                   fi
13128                 fi
13129               fi
13130             else
13131               if test "X$found_a" != "X"; then
13132                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13133               else
13134                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13135               fi
13136             fi
13137                         additional_includedir=
13138             case "$found_dir" in
13139               */$acl_libdirstem | */$acl_libdirstem/)
13140                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13141                 LIBINTL_PREFIX="$basedir"
13142                 additional_includedir="$basedir/include"
13143                 ;;
13144             esac
13145             if test "X$additional_includedir" != "X"; then
13146                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13147                 haveit=
13148                 if test "X$additional_includedir" = "X/usr/local/include"; then
13149                   if test -n "$GCC"; then
13150                     case $host_os in
13151                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13152                     esac
13153                   fi
13154                 fi
13155                 if test -z "$haveit"; then
13156                   for x in $CPPFLAGS $INCINTL; do
13157
13158   acl_save_prefix="$prefix"
13159   prefix="$acl_final_prefix"
13160   acl_save_exec_prefix="$exec_prefix"
13161   exec_prefix="$acl_final_exec_prefix"
13162   eval x=\"$x\"
13163   exec_prefix="$acl_save_exec_prefix"
13164   prefix="$acl_save_prefix"
13165
13166                     if test "X$x" = "X-I$additional_includedir"; then
13167                       haveit=yes
13168                       break
13169                     fi
13170                   done
13171                   if test -z "$haveit"; then
13172                     if test -d "$additional_includedir"; then
13173                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13174                     fi
13175                   fi
13176                 fi
13177               fi
13178             fi
13179                         if test -n "$found_la"; then
13180                                                         save_libdir="$libdir"
13181               case "$found_la" in
13182                 */* | *\\*) . "$found_la" ;;
13183                 *) . "./$found_la" ;;
13184               esac
13185               libdir="$save_libdir"
13186                             for dep in $dependency_libs; do
13187                 case "$dep" in
13188                   -L*)
13189                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13190                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13191                       haveit=
13192                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13193                         if test -n "$GCC"; then
13194                           case $host_os in
13195                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13196                           esac
13197                         fi
13198                       fi
13199                       if test -z "$haveit"; then
13200                         haveit=
13201                         for x in $LDFLAGS $LIBINTL; do
13202
13203   acl_save_prefix="$prefix"
13204   prefix="$acl_final_prefix"
13205   acl_save_exec_prefix="$exec_prefix"
13206   exec_prefix="$acl_final_exec_prefix"
13207   eval x=\"$x\"
13208   exec_prefix="$acl_save_exec_prefix"
13209   prefix="$acl_save_prefix"
13210
13211                           if test "X$x" = "X-L$additional_libdir"; then
13212                             haveit=yes
13213                             break
13214                           fi
13215                         done
13216                         if test -z "$haveit"; then
13217                           if test -d "$additional_libdir"; then
13218                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13219                           fi
13220                         fi
13221                         haveit=
13222                         for x in $LDFLAGS $LTLIBINTL; do
13223
13224   acl_save_prefix="$prefix"
13225   prefix="$acl_final_prefix"
13226   acl_save_exec_prefix="$exec_prefix"
13227   exec_prefix="$acl_final_exec_prefix"
13228   eval x=\"$x\"
13229   exec_prefix="$acl_save_exec_prefix"
13230   prefix="$acl_save_prefix"
13231
13232                           if test "X$x" = "X-L$additional_libdir"; then
13233                             haveit=yes
13234                             break
13235                           fi
13236                         done
13237                         if test -z "$haveit"; then
13238                           if test -d "$additional_libdir"; then
13239                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13240                           fi
13241                         fi
13242                       fi
13243                     fi
13244                     ;;
13245                   -R*)
13246                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13247                     if test "$enable_rpath" != no; then
13248                                                                   haveit=
13249                       for x in $rpathdirs; do
13250                         if test "X$x" = "X$dir"; then
13251                           haveit=yes
13252                           break
13253                         fi
13254                       done
13255                       if test -z "$haveit"; then
13256                         rpathdirs="$rpathdirs $dir"
13257                       fi
13258                                                                   haveit=
13259                       for x in $ltrpathdirs; do
13260                         if test "X$x" = "X$dir"; then
13261                           haveit=yes
13262                           break
13263                         fi
13264                       done
13265                       if test -z "$haveit"; then
13266                         ltrpathdirs="$ltrpathdirs $dir"
13267                       fi
13268                     fi
13269                     ;;
13270                   -l*)
13271                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13272                     ;;
13273                   *.la)
13274                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13275                     ;;
13276                   *)
13277                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13278                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13279                     ;;
13280                 esac
13281               done
13282             fi
13283           else
13284                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13285             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13286           fi
13287         fi
13288       fi
13289     done
13290   done
13291   if test "X$rpathdirs" != "X"; then
13292     if test -n "$acl_hardcode_libdir_separator"; then
13293                         alldirs=
13294       for found_dir in $rpathdirs; do
13295         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13296       done
13297             acl_save_libdir="$libdir"
13298       libdir="$alldirs"
13299       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13300       libdir="$acl_save_libdir"
13301       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13302     else
13303             for found_dir in $rpathdirs; do
13304         acl_save_libdir="$libdir"
13305         libdir="$found_dir"
13306         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13307         libdir="$acl_save_libdir"
13308         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13309       done
13310     fi
13311   fi
13312   if test "X$ltrpathdirs" != "X"; then
13313             for found_dir in $ltrpathdirs; do
13314       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13315     done
13316   fi
13317
13318           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13319 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13320 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13321   $as_echo_n "(cached) " >&6
13322 else
13323   gt_save_CPPFLAGS="$CPPFLAGS"
13324             CPPFLAGS="$CPPFLAGS $INCINTL"
13325             gt_save_LIBS="$LIBS"
13326             LIBS="$LIBS $LIBINTL"
13327                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h.  */
13329
13330 #include <libintl.h>
13331 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13332 extern int _nl_msg_cat_cntr;
13333 extern
13334 #ifdef __cplusplus
13335 "C"
13336 #endif
13337 const char *_nl_expand_alias (const char *);
13338 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13339 #else
13340 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13341 #endif
13342 $gt_revision_test_code
13343
13344 int
13345 main ()
13346 {
13347
13348 bindtextdomain ("", "");
13349 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13350
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 if ac_fn_c_try_link "$LINENO"; then :
13356   eval "$gt_func_gnugettext_libintl=yes"
13357 else
13358   eval "$gt_func_gnugettext_libintl=no"
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext \
13361     conftest$ac_exeext conftest.$ac_ext
13362                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13363               LIBS="$LIBS $LIBICONV"
13364               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h.  */
13366
13367 #include <libintl.h>
13368 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13369 extern int _nl_msg_cat_cntr;
13370 extern
13371 #ifdef __cplusplus
13372 "C"
13373 #endif
13374 const char *_nl_expand_alias (const char *);
13375 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13376 #else
13377 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13378 #endif
13379 $gt_revision_test_code
13380
13381 int
13382 main ()
13383 {
13384
13385 bindtextdomain ("", "");
13386 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393   LIBINTL="$LIBINTL $LIBICONV"
13394                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13395                  eval "$gt_func_gnugettext_libintl=yes"
13396
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext \
13399     conftest$ac_exeext conftest.$ac_ext
13400             fi
13401             CPPFLAGS="$gt_save_CPPFLAGS"
13402             LIBS="$gt_save_LIBS"
13403 fi
13404 eval ac_res=\$$gt_func_gnugettext_libintl
13405                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13406 $as_echo "$ac_res" >&6; }
13407         fi
13408
13409                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13410            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13411                 && test "$PACKAGE" != gettext-runtime \
13412                 && test "$PACKAGE" != gettext-tools; }; then
13413           gt_use_preinstalled_gnugettext=yes
13414         else
13415                     LIBINTL=
13416           LTLIBINTL=
13417           INCINTL=
13418         fi
13419
13420
13421
13422     if test -n "$INTL_MACOSX_LIBS"; then
13423       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13424          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13425                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13426         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13427       fi
13428     fi
13429
13430     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13431        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13432
13433 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13434
13435     else
13436       USE_NLS=no
13437     fi
13438   fi
13439
13440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13441 $as_echo_n "checking whether to use NLS... " >&6; }
13442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13443 $as_echo "$USE_NLS" >&6; }
13444   if test "$USE_NLS" = "yes"; then
13445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13446 $as_echo_n "checking where the gettext function comes from... " >&6; }
13447     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13448       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13449         gt_source="external libintl"
13450       else
13451         gt_source="libc"
13452       fi
13453     else
13454       gt_source="included intl directory"
13455     fi
13456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13457 $as_echo "$gt_source" >&6; }
13458   fi
13459
13460   if test "$USE_NLS" = "yes"; then
13461
13462     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13463       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13465 $as_echo_n "checking how to link with libintl... " >&6; }
13466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13467 $as_echo "$LIBINTL" >&6; }
13468
13469   for element in $INCINTL; do
13470     haveit=
13471     for x in $CPPFLAGS; do
13472
13473   acl_save_prefix="$prefix"
13474   prefix="$acl_final_prefix"
13475   acl_save_exec_prefix="$exec_prefix"
13476   exec_prefix="$acl_final_exec_prefix"
13477   eval x=\"$x\"
13478   exec_prefix="$acl_save_exec_prefix"
13479   prefix="$acl_save_prefix"
13480
13481       if test "X$x" = "X$element"; then
13482         haveit=yes
13483         break
13484       fi
13485     done
13486     if test -z "$haveit"; then
13487       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13488     fi
13489   done
13490
13491       fi
13492
13493
13494 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13495
13496
13497 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13498
13499     fi
13500
13501         POSUB=po
13502   fi
13503
13504
13505
13506     INTLLIBS="$LIBINTL"
13507
13508
13509
13510
13511
13512
13513
13514   # gettext requires some extra checks.  These really should be part of
13515   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13516   # function checks to here.
13517
13518   for ac_func in strchr
13519 do :
13520   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13521 if test "x$ac_cv_func_strchr" = xyes; then :
13522   cat >>confdefs.h <<_ACEOF
13523 #define HAVE_STRCHR 1
13524 _ACEOF
13525
13526 fi
13527 done
13528
13529 else
13530   USE_NLS=no
13531   USE_INCLUDED_LIBINTL=no
13532   BUILD_INCLUDED_LIBINTL=no
13533   POSUB=po
13534
13535
13536
13537
13538 fi
13539
13540 # We use HAVE_LANGINFO_CODESET in a couple of places.
13541
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13543 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13544 if ${am_cv_langinfo_codeset+:} false; then :
13545   $as_echo_n "(cached) " >&6
13546 else
13547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h.  */
13549 #include <langinfo.h>
13550 int
13551 main ()
13552 {
13553 char* cs = nl_langinfo(CODESET); return !cs;
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559   am_cv_langinfo_codeset=yes
13560 else
13561   am_cv_langinfo_codeset=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564     conftest$ac_exeext conftest.$ac_ext
13565
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13568 $as_echo "$am_cv_langinfo_codeset" >&6; }
13569   if test $am_cv_langinfo_codeset = yes; then
13570
13571 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13572
13573   fi
13574
13575
13576 # Checks required for our use of locales
13577
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13579 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13580 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h.  */
13585 #include <locale.h>
13586 int
13587 main ()
13588 {
13589 return LC_MESSAGES
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 if ac_fn_c_try_link "$LINENO"; then :
13595   gt_cv_val_LC_MESSAGES=yes
13596 else
13597   gt_cv_val_LC_MESSAGES=no
13598 fi
13599 rm -f core conftest.err conftest.$ac_objext \
13600     conftest$ac_exeext conftest.$ac_ext
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13603 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13604   if test $gt_cv_val_LC_MESSAGES = yes; then
13605
13606 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13607
13608   fi
13609
13610
13611
13612 #
13613 # SELinux support
13614 #
13615 if test "$selinux_support" = yes ; then
13616
13617 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13618
13619 fi
13620
13621
13622 #
13623 # Checks for header files.
13624 #
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13626 $as_echo "$as_me: checking for header files" >&6;}
13627 for ac_header in unistd.h langinfo.h termio.h locale.h \
13628                   pwd.h inttypes.h signal.h sys/select.h sys/time.h \
13629                   stdint.h signal.h termios.h \
13630                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13631 do :
13632   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13633 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13635   cat >>confdefs.h <<_ACEOF
13636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13637 _ACEOF
13638
13639 fi
13640
13641 done
13642
13643
13644
13645 #
13646 # Checks for typedefs, structures, and compiler characteristics.
13647 #
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13649 $as_echo "$as_me: checking for system characteristics" >&6;}
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13651 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13652 if ${ac_cv_c_const+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h.  */
13657
13658 int
13659 main ()
13660 {
13661
13662 #ifndef __cplusplus
13663   /* Ultrix mips cc rejects this sort of thing.  */
13664   typedef int charset[2];
13665   const charset cs = { 0, 0 };
13666   /* SunOS 4.1.1 cc rejects this.  */
13667   char const *const *pcpcc;
13668   char **ppc;
13669   /* NEC SVR4.0.2 mips cc rejects this.  */
13670   struct point {int x, y;};
13671   static struct point const zero = {0,0};
13672   /* AIX XL C 1.02.0.0 rejects this.
13673      It does not let you subtract one const X* pointer from another in
13674      an arm of an if-expression whose if-part is not a constant
13675      expression */
13676   const char *g = "string";
13677   pcpcc = &g + (g ? g-g : 0);
13678   /* HPUX 7.0 cc rejects these. */
13679   ++pcpcc;
13680   ppc = (char**) pcpcc;
13681   pcpcc = (char const *const *) ppc;
13682   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13683     char tx;
13684     char *t = &tx;
13685     char const *s = 0 ? (char *) 0 : (char const *) 0;
13686
13687     *t++ = 0;
13688     if (s) return 0;
13689   }
13690   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13691     int x[] = {25, 17};
13692     const int *foo = &x[0];
13693     ++foo;
13694   }
13695   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13696     typedef const int *iptr;
13697     iptr p = 0;
13698     ++p;
13699   }
13700   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13701        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13702     struct s { int j; const int *ap[3]; } bx;
13703     struct s *b = &bx; b->j = 5;
13704   }
13705   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13706     const int foo = 10;
13707     if (!foo) return 0;
13708   }
13709   return !cs[0] && !zero.x;
13710 #endif
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 if ac_fn_c_try_compile "$LINENO"; then :
13717   ac_cv_c_const=yes
13718 else
13719   ac_cv_c_const=no
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 fi
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13724 $as_echo "$ac_cv_c_const" >&6; }
13725 if test $ac_cv_c_const = no; then
13726
13727 $as_echo "#define const /**/" >>confdefs.h
13728
13729 fi
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13732 $as_echo_n "checking for inline... " >&6; }
13733 if ${ac_cv_c_inline+:} false; then :
13734   $as_echo_n "(cached) " >&6
13735 else
13736   ac_cv_c_inline=no
13737 for ac_kw in inline __inline__ __inline; do
13738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h.  */
13740 #ifndef __cplusplus
13741 typedef int foo_t;
13742 static $ac_kw foo_t static_foo () {return 0; }
13743 $ac_kw foo_t foo () {return 0; }
13744 #endif
13745
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748   ac_cv_c_inline=$ac_kw
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751   test "$ac_cv_c_inline" != no && break
13752 done
13753
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13756 $as_echo "$ac_cv_c_inline" >&6; }
13757
13758 case $ac_cv_c_inline in
13759   inline | yes) ;;
13760   *)
13761     case $ac_cv_c_inline in
13762       no) ac_val=;;
13763       *) ac_val=$ac_cv_c_inline;;
13764     esac
13765     cat >>confdefs.h <<_ACEOF
13766 #ifndef __cplusplus
13767 #define inline $ac_val
13768 #endif
13769 _ACEOF
13770     ;;
13771 esac
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13774 $as_echo_n "checking for working volatile... " >&6; }
13775 if ${ac_cv_c_volatile+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h.  */
13780
13781 int
13782 main ()
13783 {
13784
13785 volatile int x;
13786 int * volatile y = (int *) 0;
13787 return !x && !y;
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_compile "$LINENO"; then :
13793   ac_cv_c_volatile=yes
13794 else
13795   ac_cv_c_volatile=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13800 $as_echo "$ac_cv_c_volatile" >&6; }
13801 if test $ac_cv_c_volatile = no; then
13802
13803 $as_echo "#define volatile /**/" >>confdefs.h
13804
13805 fi
13806
13807 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13808 if test "x$ac_cv_type_size_t" = xyes; then :
13809
13810 else
13811
13812 cat >>confdefs.h <<_ACEOF
13813 #define size_t unsigned int
13814 _ACEOF
13815
13816 fi
13817
13818 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13819 if test "x$ac_cv_type_mode_t" = xyes; then :
13820
13821 else
13822
13823 cat >>confdefs.h <<_ACEOF
13824 #define mode_t int
13825 _ACEOF
13826
13827 fi
13828
13829 for ac_func in sigdescr_np
13830 do :
13831   ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13832 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13833   cat >>confdefs.h <<_ACEOF
13834 #define HAVE_SIGDESCR_NP 1
13835 _ACEOF
13836
13837 fi
13838 done
13839
13840 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13841 /* NetBSD declares sys_siglist in unistd.h.  */
13842 #ifdef HAVE_UNISTD_H
13843 # include <unistd.h>
13844 #endif
13845
13846 "
13847 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13848   ac_have_decl=1
13849 else
13850   ac_have_decl=0
13851 fi
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13855 _ACEOF
13856
13857
13858
13859
13860
13861
13862   for ac_header in $ac_header_list
13863 do :
13864   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13866 "
13867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13868   cat >>confdefs.h <<_ACEOF
13869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13870 _ACEOF
13871
13872 fi
13873
13874 done
13875
13876
13877
13878
13879    if test $ac_cv_header_sys_socket_h = no; then
13880                          for ac_header in ws2tcpip.h
13881 do :
13882   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
13883 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
13884   cat >>confdefs.h <<_ACEOF
13885 #define HAVE_WS2TCPIP_H 1
13886 _ACEOF
13887
13888 fi
13889
13890 done
13891
13892    fi
13893
13894    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13895 /* <sys/types.h> is not needed according to POSIX, but the
13896    <sys/socket.h> in i386-unknown-freebsd4.10 and
13897    powerpc-apple-darwin5.5 required it. */
13898 #include <sys/types.h>
13899 #if HAVE_SYS_SOCKET_H
13900 # include <sys/socket.h>
13901 #elif HAVE_WS2TCPIP_H
13902 # include <ws2tcpip.h>
13903 #endif
13904
13905 "
13906 if test "x$ac_cv_type_socklen_t" = xyes; then :
13907
13908 else
13909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13910 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13911 if ${gl_cv_socklen_t_equiv+:} false; then :
13912   $as_echo_n "(cached) " >&6
13913 else
13914   # Systems have either "struct sockaddr *" or
13915          # "void *" as the second argument to getpeername
13916          gl_cv_socklen_t_equiv=
13917          for arg2 in "struct sockaddr" void; do
13918            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13919              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h.  */
13921 #include <sys/types.h>
13922                    #include <sys/socket.h>
13923
13924                    int getpeername (int, $arg2 *, $t *);
13925 int
13926 main ()
13927 {
13928 $t len;
13929                   getpeername (0, 0, &len);
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 if ac_fn_c_try_compile "$LINENO"; then :
13935   gl_cv_socklen_t_equiv="$t"
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938              test "$gl_cv_socklen_t_equiv" != "" && break
13939            done
13940            test "$gl_cv_socklen_t_equiv" != "" && break
13941          done
13942          if test "$gl_cv_socklen_t_equiv" = ""; then
13943            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13944          fi
13945
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13948 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13949
13950 cat >>confdefs.h <<_ACEOF
13951 #define socklen_t $gl_cv_socklen_t_equiv
13952 _ACEOF
13953
13954 fi
13955
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13958 $as_echo_n "checking for library containing inet_addr... " >&6; }
13959 if ${ac_cv_search_inet_addr+:} false; then :
13960   $as_echo_n "(cached) " >&6
13961 else
13962   ac_func_search_save_LIBS=$LIBS
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h.  */
13965
13966 /* Override any GCC internal prototype to avoid an error.
13967    Use char because int might match the return type of a GCC
13968    builtin and then its argument prototype would still apply.  */
13969 #ifdef __cplusplus
13970 extern "C"
13971 #endif
13972 char inet_addr ();
13973 int
13974 main ()
13975 {
13976 return inet_addr ();
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 for ac_lib in '' nsl; do
13982   if test -z "$ac_lib"; then
13983     ac_res="none required"
13984   else
13985     ac_res=-l$ac_lib
13986     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13987   fi
13988   if ac_fn_c_try_link "$LINENO"; then :
13989   ac_cv_search_inet_addr=$ac_res
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext \
13992     conftest$ac_exeext
13993   if ${ac_cv_search_inet_addr+:} false; then :
13994   break
13995 fi
13996 done
13997 if ${ac_cv_search_inet_addr+:} false; then :
13998
13999 else
14000   ac_cv_search_inet_addr=no
14001 fi
14002 rm conftest.$ac_ext
14003 LIBS=$ac_func_search_save_LIBS
14004 fi
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14006 $as_echo "$ac_cv_search_inet_addr" >&6; }
14007 ac_res=$ac_cv_search_inet_addr
14008 if test "$ac_res" != no; then :
14009   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14010
14011 fi
14012
14013
14014 # Check whether --enable-endian-check was given.
14015 if test "${enable_endian_check+set}" = set; then :
14016   enableval=$enable_endian_check; endiancheck=$enableval
14017 else
14018   endiancheck=yes
14019 fi
14020
14021
14022 if test x"$endiancheck" = xyes ; then
14023
14024     tmp_assumed_endian=big
14025     tmp_assume_warn=""
14026     if test "$cross_compiling" = yes; then
14027       case "$host_cpu" in
14028          i[345678]* )
14029             tmp_assumed_endian=little
14030             ;;
14031          *)
14032             ;;
14033       esac
14034     fi
14035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14036 $as_echo_n "checking endianness... " >&6; }
14037     if ${gnupg_cv_c_endian+:} false; then :
14038   $as_echo_n "(cached) " >&6
14039 else
14040    gnupg_cv_c_endian=unknown
14041         # See if sys/param.h defines the BYTE_ORDER macro.
14042         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h.  */
14044 #include <sys/types.h>
14045         #include <sys/param.h>
14046 int
14047 main ()
14048 {
14049
14050         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14051          bogus endian macros
14052         #endif
14053   ;
14054   return 0;
14055 }
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"; then :
14058   # It does; now see whether it defined to BIG_ENDIAN or not.
14059         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h.  */
14061 #include <sys/types.h>
14062         #include <sys/param.h>
14063 int
14064 main ()
14065 {
14066
14067         #if BYTE_ORDER != BIG_ENDIAN
14068          not big endian
14069         #endif
14070   ;
14071   return 0;
14072 }
14073 _ACEOF
14074 if ac_fn_c_try_compile "$LINENO"; then :
14075   gnupg_cv_c_endian=big
14076 else
14077   gnupg_cv_c_endian=little
14078 fi
14079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082         if test "$gnupg_cv_c_endian" = unknown; then
14083             if test "$cross_compiling" = yes; then :
14084   gnupg_cv_c_endian=$tmp_assumed_endian
14085               tmp_assumed_warn=" (assumed)"
14086
14087 else
14088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h.  */
14090 main () {
14091               /* Are we little or big endian?  From Harbison&Steele.  */
14092               union
14093               {
14094                 long l;
14095                 char c[sizeof (long)];
14096               } u;
14097               u.l = 1;
14098               exit (u.c[sizeof (long) - 1] == 1);
14099               }
14100 _ACEOF
14101 if ac_fn_c_try_run "$LINENO"; then :
14102   gnupg_cv_c_endian=little
14103 else
14104   gnupg_cv_c_endian=big
14105 fi
14106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14107   conftest.$ac_objext conftest.beam conftest.$ac_ext
14108 fi
14109
14110         fi
14111
14112 fi
14113
14114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14115 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14116     if test "$gnupg_cv_c_endian" = little; then
14117
14118 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14119
14120     else
14121
14122 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14123
14124     fi
14125
14126 fi
14127
14128 # fixme: we should get rid of the byte type
14129 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14130 if test "x$ac_cv_type_byte" = xyes; then :
14131
14132 cat >>confdefs.h <<_ACEOF
14133 #define HAVE_BYTE 1
14134 _ACEOF
14135
14136
14137 fi
14138 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14139 if test "x$ac_cv_type_ushort" = xyes; then :
14140
14141 cat >>confdefs.h <<_ACEOF
14142 #define HAVE_USHORT 1
14143 _ACEOF
14144
14145
14146 fi
14147 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14148 if test "x$ac_cv_type_ulong" = xyes; then :
14149
14150 cat >>confdefs.h <<_ACEOF
14151 #define HAVE_ULONG 1
14152 _ACEOF
14153
14154
14155 fi
14156 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14157 if test "x$ac_cv_type_u16" = xyes; then :
14158
14159 cat >>confdefs.h <<_ACEOF
14160 #define HAVE_U16 1
14161 _ACEOF
14162
14163
14164 fi
14165 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14166 if test "x$ac_cv_type_u32" = xyes; then :
14167
14168 cat >>confdefs.h <<_ACEOF
14169 #define HAVE_U32 1
14170 _ACEOF
14171
14172
14173 fi
14174
14175 # The cast to long int works around a bug in the HP C Compiler
14176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14178 # This bug is HP SR number 8606223364.
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14180 $as_echo_n "checking size of unsigned short... " >&6; }
14181 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14182   $as_echo_n "(cached) " >&6
14183 else
14184   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14185
14186 else
14187   if test "$ac_cv_type_unsigned_short" = yes; then
14188      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14190 as_fn_error 77 "cannot compute sizeof (unsigned short)
14191 See \`config.log' for more details" "$LINENO" 5; }
14192    else
14193      ac_cv_sizeof_unsigned_short=0
14194    fi
14195 fi
14196
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14199 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14200
14201
14202
14203 cat >>confdefs.h <<_ACEOF
14204 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14205 _ACEOF
14206
14207
14208 # The cast to long int works around a bug in the HP C Compiler
14209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14211 # This bug is HP SR number 8606223364.
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14213 $as_echo_n "checking size of unsigned int... " >&6; }
14214 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14215   $as_echo_n "(cached) " >&6
14216 else
14217   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14218
14219 else
14220   if test "$ac_cv_type_unsigned_int" = yes; then
14221      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14223 as_fn_error 77 "cannot compute sizeof (unsigned int)
14224 See \`config.log' for more details" "$LINENO" 5; }
14225    else
14226      ac_cv_sizeof_unsigned_int=0
14227    fi
14228 fi
14229
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14232 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14233
14234
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14238 _ACEOF
14239
14240
14241 # The cast to long int works around a bug in the HP C Compiler
14242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14244 # This bug is HP SR number 8606223364.
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14246 $as_echo_n "checking size of unsigned long... " >&6; }
14247 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14248   $as_echo_n "(cached) " >&6
14249 else
14250   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14251
14252 else
14253   if test "$ac_cv_type_unsigned_long" = yes; then
14254      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14256 as_fn_error 77 "cannot compute sizeof (unsigned long)
14257 See \`config.log' for more details" "$LINENO" 5; }
14258    else
14259      ac_cv_sizeof_unsigned_long=0
14260    fi
14261 fi
14262
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14265 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14266
14267
14268
14269 cat >>confdefs.h <<_ACEOF
14270 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14271 _ACEOF
14272
14273
14274 # The cast to long int works around a bug in the HP C Compiler
14275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14277 # This bug is HP SR number 8606223364.
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14279 $as_echo_n "checking size of unsigned long long... " >&6; }
14280 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14281   $as_echo_n "(cached) " >&6
14282 else
14283   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14284
14285 else
14286   if test "$ac_cv_type_unsigned_long_long" = yes; then
14287      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14289 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14290 See \`config.log' for more details" "$LINENO" 5; }
14291    else
14292      ac_cv_sizeof_unsigned_long_long=0
14293    fi
14294 fi
14295
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14298 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14299
14300
14301
14302 cat >>confdefs.h <<_ACEOF
14303 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14304 _ACEOF
14305
14306
14307 # The cast to long int works around a bug in the HP C Compiler
14308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14310 # This bug is HP SR number 8606223364.
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14312 $as_echo_n "checking size of size_t... " >&6; }
14313 if ${ac_cv_sizeof_size_t+:} false; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14317
14318 else
14319   if test "$ac_cv_type_size_t" = yes; then
14320      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14322 as_fn_error 77 "cannot compute sizeof (size_t)
14323 See \`config.log' for more details" "$LINENO" 5; }
14324    else
14325      ac_cv_sizeof_size_t=0
14326    fi
14327 fi
14328
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14331 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14332
14333
14334
14335 cat >>confdefs.h <<_ACEOF
14336 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14337 _ACEOF
14338
14339
14340 # The cast to long int works around a bug in the HP C Compiler
14341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14343 # This bug is HP SR number 8606223364.
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14345 $as_echo_n "checking size of time_t... " >&6; }
14346 if ${ac_cv_sizeof_time_t+:} false; then :
14347   $as_echo_n "(cached) " >&6
14348 else
14349   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14350 #include <stdio.h>
14351 #ifdef HAVE_SYS_TIME_H
14352 # include <sys/time.h>
14353 #else
14354 # include <time.h>
14355 #endif
14356
14357 "; then :
14358
14359 else
14360   if test "$ac_cv_type_time_t" = yes; then
14361      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14363 as_fn_error 77 "cannot compute sizeof (time_t)
14364 See \`config.log' for more details" "$LINENO" 5; }
14365    else
14366      ac_cv_sizeof_time_t=0
14367    fi
14368 fi
14369
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14372 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14373
14374
14375
14376 cat >>confdefs.h <<_ACEOF
14377 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14378 _ACEOF
14379
14380
14381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14382 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14383 if ${gnupg_cv_time_t_unsigned+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h.  */
14388 $ac_includes_default
14389 #if HAVE_SYS_TIME_H
14390 # include <sys/time.h>
14391 #else
14392 # include <time.h>
14393 #endif
14394
14395 int
14396 main ()
14397 {
14398 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14399 test_array [0] = 0;
14400 return test_array [0];
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_compile "$LINENO"; then :
14407   gnupg_cv_time_t_unsigned=no
14408 else
14409   gnupg_cv_time_t_unsigned=yes
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14414 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14415     if test $gnupg_cv_time_t_unsigned = yes; then
14416
14417 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14418
14419     fi
14420
14421
14422
14423 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14424    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14425    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14427 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14428 fi
14429
14430
14431 #
14432 # Checks for library functions.
14433 #
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14435 $as_echo "$as_me: checking for library functions" >&6;}
14436 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14437 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14438   ac_have_decl=1
14439 else
14440   ac_have_decl=0
14441 fi
14442
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14445 _ACEOF
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14448 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14449 if ${ac_cv_sys_largefile_source+:} false; then :
14450   $as_echo_n "(cached) " >&6
14451 else
14452   while :; do
14453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455 #include <sys/types.h> /* for off_t */
14456      #include <stdio.h>
14457 int
14458 main ()
14459 {
14460 int (*fp) (FILE *, off_t, int) = fseeko;
14461      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"; then :
14467   ac_cv_sys_largefile_source=no; break
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext \
14470     conftest$ac_exeext conftest.$ac_ext
14471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h.  */
14473 #define _LARGEFILE_SOURCE 1
14474 #include <sys/types.h> /* for off_t */
14475      #include <stdio.h>
14476 int
14477 main ()
14478 {
14479 int (*fp) (FILE *, off_t, int) = fseeko;
14480      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_link "$LINENO"; then :
14486   ac_cv_sys_largefile_source=1; break
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext \
14489     conftest$ac_exeext conftest.$ac_ext
14490   ac_cv_sys_largefile_source=unknown
14491   break
14492 done
14493 fi
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14495 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14496 case $ac_cv_sys_largefile_source in #(
14497   no | unknown) ;;
14498   *)
14499 cat >>confdefs.h <<_ACEOF
14500 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14501 _ACEOF
14502 ;;
14503 esac
14504 rm -rf conftest*
14505
14506 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14507 # in glibc 2.1.3, but that breaks too many other things.
14508 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14509 if test $ac_cv_sys_largefile_source != unknown; then
14510
14511 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14512
14513 fi
14514
14515 for ac_func in vprintf
14516 do :
14517   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14518 if test "x$ac_cv_func_vprintf" = xyes; then :
14519   cat >>confdefs.h <<_ACEOF
14520 #define HAVE_VPRINTF 1
14521 _ACEOF
14522
14523 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14524 if test "x$ac_cv_func__doprnt" = xyes; then :
14525
14526 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14527
14528 fi
14529
14530 fi
14531 done
14532
14533
14534 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14535 if test "x$ac_cv_type_pid_t" = xyes; then :
14536
14537 else
14538
14539 cat >>confdefs.h <<_ACEOF
14540 #define pid_t int
14541 _ACEOF
14542
14543 fi
14544
14545 for ac_header in vfork.h
14546 do :
14547   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14548 if test "x$ac_cv_header_vfork_h" = xyes; then :
14549   cat >>confdefs.h <<_ACEOF
14550 #define HAVE_VFORK_H 1
14551 _ACEOF
14552
14553 fi
14554
14555 done
14556
14557 for ac_func in fork vfork
14558 do :
14559   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14561 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14562   cat >>confdefs.h <<_ACEOF
14563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14564 _ACEOF
14565
14566 fi
14567 done
14568
14569 if test "x$ac_cv_func_fork" = xyes; then
14570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14571 $as_echo_n "checking for working fork... " >&6; }
14572 if ${ac_cv_func_fork_works+:} false; then :
14573   $as_echo_n "(cached) " >&6
14574 else
14575   if test "$cross_compiling" = yes; then :
14576   ac_cv_func_fork_works=cross
14577 else
14578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h.  */
14580 $ac_includes_default
14581 int
14582 main ()
14583 {
14584
14585           /* By Ruediger Kuhlmann. */
14586           return fork () < 0;
14587
14588   ;
14589   return 0;
14590 }
14591 _ACEOF
14592 if ac_fn_c_try_run "$LINENO"; then :
14593   ac_cv_func_fork_works=yes
14594 else
14595   ac_cv_func_fork_works=no
14596 fi
14597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14598   conftest.$ac_objext conftest.beam conftest.$ac_ext
14599 fi
14600
14601 fi
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14603 $as_echo "$ac_cv_func_fork_works" >&6; }
14604
14605 else
14606   ac_cv_func_fork_works=$ac_cv_func_fork
14607 fi
14608 if test "x$ac_cv_func_fork_works" = xcross; then
14609   case $host in
14610     *-*-amigaos* | *-*-msdosdjgpp*)
14611       # Override, as these systems have only a dummy fork() stub
14612       ac_cv_func_fork_works=no
14613       ;;
14614     *)
14615       ac_cv_func_fork_works=yes
14616       ;;
14617   esac
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14619 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14620 fi
14621 ac_cv_func_vfork_works=$ac_cv_func_vfork
14622 if test "x$ac_cv_func_vfork" = xyes; then
14623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14624 $as_echo_n "checking for working vfork... " >&6; }
14625 if ${ac_cv_func_vfork_works+:} false; then :
14626   $as_echo_n "(cached) " >&6
14627 else
14628   if test "$cross_compiling" = yes; then :
14629   ac_cv_func_vfork_works=cross
14630 else
14631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h.  */
14633 /* Thanks to Paul Eggert for this test.  */
14634 $ac_includes_default
14635 #include <sys/wait.h>
14636 #ifdef HAVE_VFORK_H
14637 # include <vfork.h>
14638 #endif
14639 /* On some sparc systems, changes by the child to local and incoming
14640    argument registers are propagated back to the parent.  The compiler
14641    is told about this with #include <vfork.h>, but some compilers
14642    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14643    static variable whose address is put into a register that is
14644    clobbered by the vfork.  */
14645 static void
14646 #ifdef __cplusplus
14647 sparc_address_test (int arg)
14648 # else
14649 sparc_address_test (arg) int arg;
14650 #endif
14651 {
14652   static pid_t child;
14653   if (!child) {
14654     child = vfork ();
14655     if (child < 0) {
14656       perror ("vfork");
14657       _exit(2);
14658     }
14659     if (!child) {
14660       arg = getpid();
14661       write(-1, "", 0);
14662       _exit (arg);
14663     }
14664   }
14665 }
14666
14667 int
14668 main ()
14669 {
14670   pid_t parent = getpid ();
14671   pid_t child;
14672
14673   sparc_address_test (0);
14674
14675   child = vfork ();
14676
14677   if (child == 0) {
14678     /* Here is another test for sparc vfork register problems.  This
14679        test uses lots of local variables, at least as many local
14680        variables as main has allocated so far including compiler
14681        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14682        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14683        reuse the register of parent for one of the local variables,
14684        since it will think that parent can't possibly be used any more
14685        in this routine.  Assigning to the local variable will thus
14686        munge parent in the parent process.  */
14687     pid_t
14688       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14689       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14690     /* Convince the compiler that p..p7 are live; otherwise, it might
14691        use the same hardware register for all 8 local variables.  */
14692     if (p != p1 || p != p2 || p != p3 || p != p4
14693         || p != p5 || p != p6 || p != p7)
14694       _exit(1);
14695
14696     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14697        from child file descriptors.  If the child closes a descriptor
14698        before it execs or exits, this munges the parent's descriptor
14699        as well.  Test for this by closing stdout in the child.  */
14700     _exit(close(fileno(stdout)) != 0);
14701   } else {
14702     int status;
14703     struct stat st;
14704
14705     while (wait(&status) != child)
14706       ;
14707     return (
14708          /* Was there some problem with vforking?  */
14709          child < 0
14710
14711          /* Did the child fail?  (This shouldn't happen.)  */
14712          || status
14713
14714          /* Did the vfork/compiler bug occur?  */
14715          || parent != getpid()
14716
14717          /* Did the file descriptor bug occur?  */
14718          || fstat(fileno(stdout), &st) != 0
14719          );
14720   }
14721 }
14722 _ACEOF
14723 if ac_fn_c_try_run "$LINENO"; then :
14724   ac_cv_func_vfork_works=yes
14725 else
14726   ac_cv_func_vfork_works=no
14727 fi
14728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14729   conftest.$ac_objext conftest.beam conftest.$ac_ext
14730 fi
14731
14732 fi
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14734 $as_echo "$ac_cv_func_vfork_works" >&6; }
14735
14736 fi;
14737 if test "x$ac_cv_func_fork_works" = xcross; then
14738   ac_cv_func_vfork_works=$ac_cv_func_vfork
14739   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14740 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14741 fi
14742
14743 if test "x$ac_cv_func_vfork_works" = xyes; then
14744
14745 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14746
14747 else
14748
14749 $as_echo "#define vfork fork" >>confdefs.h
14750
14751 fi
14752 if test "x$ac_cv_func_fork_works" = xyes; then
14753
14754 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14755
14756 fi
14757
14758 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14759                 explicit_bzero fcntl flockfile fsync ftello          \
14760                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14761                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14762                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14763                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14764                 setenv setlocale setrlimit sigaction sigprocmask     \
14765                 stat stpcpy strcasecmp strerror strftime stricmp     \
14766                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14767                 strtoull tcgetattr timegm times ttyname unsetenv     \
14768                 wait4 waitpid
14769 do :
14770   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14773   cat >>confdefs.h <<_ACEOF
14774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14775 _ACEOF
14776
14777 fi
14778 done
14779
14780
14781 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14782 # Given that we use nanosleep only as an optimization over a select
14783 # based wait function we want it only if it is available in libc.
14784 _save_libs="$LIBS"
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14786 $as_echo_n "checking for library containing nanosleep... " >&6; }
14787 if ${ac_cv_search_nanosleep+:} false; then :
14788   $as_echo_n "(cached) " >&6
14789 else
14790   ac_func_search_save_LIBS=$LIBS
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h.  */
14793
14794 /* Override any GCC internal prototype to avoid an error.
14795    Use char because int might match the return type of a GCC
14796    builtin and then its argument prototype would still apply.  */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 char nanosleep ();
14801 int
14802 main ()
14803 {
14804 return nanosleep ();
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 for ac_lib in '' ; do
14810   if test -z "$ac_lib"; then
14811     ac_res="none required"
14812   else
14813     ac_res=-l$ac_lib
14814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14815   fi
14816   if ac_fn_c_try_link "$LINENO"; then :
14817   ac_cv_search_nanosleep=$ac_res
14818 fi
14819 rm -f core conftest.err conftest.$ac_objext \
14820     conftest$ac_exeext
14821   if ${ac_cv_search_nanosleep+:} false; then :
14822   break
14823 fi
14824 done
14825 if ${ac_cv_search_nanosleep+:} false; then :
14826
14827 else
14828   ac_cv_search_nanosleep=no
14829 fi
14830 rm conftest.$ac_ext
14831 LIBS=$ac_func_search_save_LIBS
14832 fi
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14834 $as_echo "$ac_cv_search_nanosleep" >&6; }
14835 ac_res=$ac_cv_search_nanosleep
14836 if test "$ac_res" != no; then :
14837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14838
14839 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14840
14841 fi
14842
14843 LIBS="$_save_libs"
14844
14845
14846 # See whether libc supports the Linux inotify interface
14847 case "${host}" in
14848     *-*-linux*)
14849         for ac_func in inotify_init
14850 do :
14851   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14852 if test "x$ac_cv_func_inotify_init" = xyes; then :
14853   cat >>confdefs.h <<_ACEOF
14854 #define HAVE_INOTIFY_INIT 1
14855 _ACEOF
14856
14857 fi
14858 done
14859
14860         ;;
14861 esac
14862
14863
14864 if test "$have_android_system" = yes; then
14865    # On Android ttyname is a stub but prints an error message.
14866
14867 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14868
14869 fi
14870
14871 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14872 "
14873 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14874
14875 cat >>confdefs.h <<_ACEOF
14876 #define HAVE_STRUCT_SIGACTION 1
14877 _ACEOF
14878
14879
14880 fi
14881 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14882 "
14883 if test "x$ac_cv_type_sigset_t" = xyes; then :
14884
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_SIGSET_T 1
14887 _ACEOF
14888
14889
14890 fi
14891
14892
14893 # Dirmngr requires mmap on Unix systems.
14894 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14895   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
14896 fi
14897
14898
14899 #
14900 # Check for the getsockopt SO_PEERCRED, etc.
14901 #
14902 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
14903 #include <sys/socket.h>
14904 "
14905 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_STRUCT_UCRED_PID 1
14909 _ACEOF
14910
14911
14912 fi
14913 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
14914 #include <sys/socket.h>
14915 "
14916 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
14917
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_STRUCT_UCRED_CR_PID 1
14920 _ACEOF
14921
14922
14923 fi
14924 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
14925 #include <sys/socket.h>
14926 "
14927 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
14931 _ACEOF
14932
14933
14934 fi
14935
14936
14937 # (Open)Solaris
14938 for ac_func in getpeerucred
14939 do :
14940   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
14941 if test "x$ac_cv_func_getpeerucred" = xyes; then :
14942   cat >>confdefs.h <<_ACEOF
14943 #define HAVE_GETPEERUCRED 1
14944 _ACEOF
14945
14946 fi
14947 done
14948
14949
14950
14951 #
14952 # W32 specific test
14953 #
14954
14955
14956 #
14957 # Do we have zlib? Must do it here because Solaris failed
14958 # when compiling a conftest (due to the "-lz" from LIBS).
14959 # Note that we combine zlib and bzlib2 in ZLIBS.
14960 #
14961 if test "$use_zip" = yes ; then
14962   _cppflags="${CPPFLAGS}"
14963   _ldflags="${LDFLAGS}"
14964
14965 # Check whether --with-zlib was given.
14966 if test "${with_zlib+set}" = set; then :
14967   withval=$with_zlib;
14968       if test -d "$withval"; then
14969         CPPFLAGS="${CPPFLAGS} -I$withval/include"
14970         LDFLAGS="${LDFLAGS} -L$withval/lib"
14971       fi
14972
14973 fi
14974
14975
14976   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14977 if test "x$ac_cv_header_zlib_h" = xyes; then :
14978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
14979 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
14980 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
14981   $as_echo_n "(cached) " >&6
14982 else
14983   ac_check_lib_save_LIBS=$LIBS
14984 LIBS="-lz  $LIBS"
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h.  */
14987
14988 /* Override any GCC internal prototype to avoid an error.
14989    Use char because int might match the return type of a GCC
14990    builtin and then its argument prototype would still apply.  */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 char deflateInit2_ ();
14995 int
14996 main ()
14997 {
14998 return deflateInit2_ ();
14999   ;
15000   return 0;
15001 }
15002 _ACEOF
15003 if ac_fn_c_try_link "$LINENO"; then :
15004   ac_cv_lib_z_deflateInit2_=yes
15005 else
15006   ac_cv_lib_z_deflateInit2_=no
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext \
15009     conftest$ac_exeext conftest.$ac_ext
15010 LIBS=$ac_check_lib_save_LIBS
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15013 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15014 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15015
15016        ZLIBS="-lz"
15017
15018 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15019
15020
15021 else
15022   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15023 fi
15024
15025 else
15026   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15027 fi
15028
15029
15030 fi
15031
15032
15033 #
15034 # Check whether we can support bzip2
15035 #
15036 if test "$use_bzip2" = yes ; then
15037   _cppflags="${CPPFLAGS}"
15038   _ldflags="${LDFLAGS}"
15039
15040 # Check whether --with-bzip2 was given.
15041 if test "${with_bzip2+set}" = set; then :
15042   withval=$with_bzip2;
15043       if test -d "$withval" ; then
15044         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15045         LDFLAGS="${LDFLAGS} -L$withval/lib"
15046       fi
15047
15048 else
15049   withval=""
15050 fi
15051
15052
15053   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15054   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15055   # woefully out of date.
15056   if test "$withval" != no ; then
15057      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15058 "
15059 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15061 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15062 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15063   $as_echo_n "(cached) " >&6
15064 else
15065   ac_check_lib_save_LIBS=$LIBS
15066 LIBS="-lbz2  $LIBS"
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h.  */
15069
15070 /* Override any GCC internal prototype to avoid an error.
15071    Use char because int might match the return type of a GCC
15072    builtin and then its argument prototype would still apply.  */
15073 #ifdef __cplusplus
15074 extern "C"
15075 #endif
15076 char BZ2_bzCompressInit ();
15077 int
15078 main ()
15079 {
15080 return BZ2_bzCompressInit ();
15081   ;
15082   return 0;
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_link "$LINENO"; then :
15086   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15087 else
15088   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext \
15091     conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_check_lib_save_LIBS
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15095 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15096 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15097
15098           have_bz2=yes
15099           ZLIBS="$ZLIBS -lbz2"
15100
15101 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15102
15103
15104 else
15105   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15106 fi
15107
15108 else
15109   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15110 fi
15111
15112
15113   fi
15114 fi
15115  if test x"$have_bz2" = "xyes"; then
15116   ENABLE_BZIP2_SUPPORT_TRUE=
15117   ENABLE_BZIP2_SUPPORT_FALSE='#'
15118 else
15119   ENABLE_BZIP2_SUPPORT_TRUE='#'
15120   ENABLE_BZIP2_SUPPORT_FALSE=
15121 fi
15122
15123
15124
15125
15126 # Check for readline support
15127
15128
15129 # Check whether --with-readline was given.
15130 if test "${with_readline+set}" = set; then :
15131   withval=$with_readline; _do_readline=$withval
15132 else
15133   _do_readline=yes
15134 fi
15135
15136
15137   gnupg_cv_have_readline=no
15138   if test "$_do_readline" != "no" ; then
15139      if test -d "$withval" ; then
15140         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15141         LDFLAGS="${LDFLAGS} -L$withval/lib"
15142      fi
15143
15144      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15145         _readline_save_libs=$LIBS
15146         _combo="-lreadline${_termcap:+ $_termcap}"
15147         LIBS="$LIBS $_combo"
15148
15149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15150 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15151
15152         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h.  */
15154
15155 #include <stdio.h>
15156 #include <readline/readline.h>
15157 #include <readline/history.h>
15158
15159 int
15160 main ()
15161 {
15162
15163 rl_completion_func_t *completer;
15164 add_history("foobar");
15165 rl_catch_signals=0;
15166 rl_inhibit_completion=0;
15167 rl_attempted_completion_function=NULL;
15168 rl_completion_matches(NULL,NULL);
15169
15170   ;
15171   return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_link "$LINENO"; then :
15175   _found_readline=yes
15176 else
15177   _found_readline=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext \
15180     conftest$ac_exeext conftest.$ac_ext
15181
15182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15183 $as_echo "$_found_readline" >&6; }
15184
15185         LIBS=$_readline_save_libs
15186
15187         if test $_found_readline = yes ; then
15188
15189 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15190
15191            LIBREADLINE=$_combo
15192
15193            gnupg_cv_have_readline=yes
15194            break
15195         fi
15196      done
15197
15198      unset _termcap
15199      unset _readline_save_libs
15200      unset _combo
15201      unset _found_readline
15202   fi
15203
15204
15205
15206 if test "$development_version" = yes; then
15207
15208 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15209
15210 fi
15211
15212 if test "$USE_MAINTAINER_MODE" = "yes"; then
15213
15214 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15215
15216 fi
15217
15218  if test x$cross_compiling = xyes; then
15219   CROSS_COMPILING_TRUE=
15220   CROSS_COMPILING_FALSE='#'
15221 else
15222   CROSS_COMPILING_TRUE='#'
15223   CROSS_COMPILING_FALSE=
15224 fi
15225
15226
15227
15228     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15229         :
15230     else
15231         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15232 ***
15233 *** It seems that you are not using GNU make.  Some make tools have serious
15234 *** flaws and you may not be able to build this software at all. Before you
15235 *** complain, please try GNU make:  GNU make is easy to build and available
15236 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15237 ***" >&5
15238 $as_echo "$as_me: WARNING:
15239 ***
15240 *** It seems that you are not using GNU make.  Some make tools have serious
15241 *** flaws and you may not be able to build this software at all. Before you
15242 *** complain, please try GNU make:  GNU make is easy to build and available
15243 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15244 ***" >&2;}
15245     fi
15246
15247
15248 # Add some extra libs here so that previous tests don't fail for
15249 # mysterious reasons - the final link step should bail out.
15250 # W32SOCKLIBS is also defined so that if can be used for tools not
15251 # requiring any network stuff but linking to code in libcommon which
15252 # tracks in winsock stuff (e.g. init_common_subsystems).
15253 if test "$have_w32_system" = yes; then
15254    W32SOCKLIBS="-lws2_32"
15255    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15256 fi
15257
15258
15259
15260
15261 #
15262 # TPM libtss library .. don't compile TPM support if we don't have it
15263 #
15264
15265 # Check whether --with-tss was given.
15266 if test "${with_tss+set}" = set; then :
15267   withval=$with_tss; with_tss=$withval
15268 else
15269   with_tss=autodetect
15270 fi
15271
15272 LIBTSS_LIBS=
15273 LIBTSS_CFLAGS=
15274 if test "$build_tpm2d" = "yes"; then
15275   _save_libs="$LIBS"
15276   _save_cflags="$CFLAGS"
15277   LIBS=""
15278   if test "$with_tss" = autodetect; then
15279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15280 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15281 if ${ac_cv_search_TSS_Create+:} false; then :
15282   $as_echo_n "(cached) " >&6
15283 else
15284   ac_func_search_save_LIBS=$LIBS
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h.  */
15287
15288 /* Override any GCC internal prototype to avoid an error.
15289    Use char because int might match the return type of a GCC
15290    builtin and then its argument prototype would still apply.  */
15291 #ifdef __cplusplus
15292 extern "C"
15293 #endif
15294 char TSS_Create ();
15295 int
15296 main ()
15297 {
15298 return TSS_Create ();
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 for ac_lib in '' tss ibmtss; do
15304   if test -z "$ac_lib"; then
15305     ac_res="none required"
15306   else
15307     ac_res=-l$ac_lib
15308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15309   fi
15310   if ac_fn_c_try_link "$LINENO"; then :
15311   ac_cv_search_TSS_Create=$ac_res
15312 fi
15313 rm -f core conftest.err conftest.$ac_objext \
15314     conftest$ac_exeext
15315   if ${ac_cv_search_TSS_Create+:} false; then :
15316   break
15317 fi
15318 done
15319 if ${ac_cv_search_TSS_Create+:} false; then :
15320
15321 else
15322   ac_cv_search_TSS_Create=no
15323 fi
15324 rm conftest.$ac_ext
15325 LIBS=$ac_func_search_save_LIBS
15326 fi
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15328 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15329 ac_res=$ac_cv_search_TSS_Create
15330 if test "$ac_res" != no; then :
15331   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15332   have_libtss=IBM
15333 else
15334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15335 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15336 if ${ac_cv_search_Esys_Initialize+:} false; then :
15337   $as_echo_n "(cached) " >&6
15338 else
15339   ac_func_search_save_LIBS=$LIBS
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h.  */
15342
15343 /* Override any GCC internal prototype to avoid an error.
15344    Use char because int might match the return type of a GCC
15345    builtin and then its argument prototype would still apply.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 #endif
15349 char Esys_Initialize ();
15350 int
15351 main ()
15352 {
15353 return Esys_Initialize ();
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 for ac_lib in '' tss2-esys; do
15359   if test -z "$ac_lib"; then
15360     ac_res="none required"
15361   else
15362     ac_res=-l$ac_lib
15363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15364   fi
15365   if ac_fn_c_try_link "$LINENO"; then :
15366   ac_cv_search_Esys_Initialize=$ac_res
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext \
15369     conftest$ac_exeext
15370   if ${ac_cv_search_Esys_Initialize+:} false; then :
15371   break
15372 fi
15373 done
15374 if ${ac_cv_search_Esys_Initialize+:} false; then :
15375
15376 else
15377   ac_cv_search_Esys_Initialize=no
15378 fi
15379 rm conftest.$ac_ext
15380 LIBS=$ac_func_search_save_LIBS
15381 fi
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15383 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15384 ac_res=$ac_cv_search_Esys_Initialize
15385 if test "$ac_res" != no; then :
15386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15387   have_libtss=Intel
15388 else
15389   have_libtss=no
15390 fi
15391
15392 fi
15393
15394   elif test "$with_tss" = ibm; then
15395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15396 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15397 if ${ac_cv_search_TSS_Create+:} false; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   ac_func_search_save_LIBS=$LIBS
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h.  */
15403
15404 /* Override any GCC internal prototype to avoid an error.
15405    Use char because int might match the return type of a GCC
15406    builtin and then its argument prototype would still apply.  */
15407 #ifdef __cplusplus
15408 extern "C"
15409 #endif
15410 char TSS_Create ();
15411 int
15412 main ()
15413 {
15414 return TSS_Create ();
15415   ;
15416   return 0;
15417 }
15418 _ACEOF
15419 for ac_lib in '' tss ibmtss; do
15420   if test -z "$ac_lib"; then
15421     ac_res="none required"
15422   else
15423     ac_res=-l$ac_lib
15424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15425   fi
15426   if ac_fn_c_try_link "$LINENO"; then :
15427   ac_cv_search_TSS_Create=$ac_res
15428 fi
15429 rm -f core conftest.err conftest.$ac_objext \
15430     conftest$ac_exeext
15431   if ${ac_cv_search_TSS_Create+:} false; then :
15432   break
15433 fi
15434 done
15435 if ${ac_cv_search_TSS_Create+:} false; then :
15436
15437 else
15438   ac_cv_search_TSS_Create=no
15439 fi
15440 rm conftest.$ac_ext
15441 LIBS=$ac_func_search_save_LIBS
15442 fi
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15444 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15445 ac_res=$ac_cv_search_TSS_Create
15446 if test "$ac_res" != no; then :
15447   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15448   have_libtss=IBM
15449 else
15450   as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15451 fi
15452
15453   elif test "$with_tss" = intel; then
15454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15455 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15456 if ${ac_cv_search_Esys_Initialize+:} false; then :
15457   $as_echo_n "(cached) " >&6
15458 else
15459   ac_func_search_save_LIBS=$LIBS
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h.  */
15462
15463 /* Override any GCC internal prototype to avoid an error.
15464    Use char because int might match the return type of a GCC
15465    builtin and then its argument prototype would still apply.  */
15466 #ifdef __cplusplus
15467 extern "C"
15468 #endif
15469 char Esys_Initialize ();
15470 int
15471 main ()
15472 {
15473 return Esys_Initialize ();
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 for ac_lib in '' tss2-esys; do
15479   if test -z "$ac_lib"; then
15480     ac_res="none required"
15481   else
15482     ac_res=-l$ac_lib
15483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15484   fi
15485   if ac_fn_c_try_link "$LINENO"; then :
15486   ac_cv_search_Esys_Initialize=$ac_res
15487 fi
15488 rm -f core conftest.err conftest.$ac_objext \
15489     conftest$ac_exeext
15490   if ${ac_cv_search_Esys_Initialize+:} false; then :
15491   break
15492 fi
15493 done
15494 if ${ac_cv_search_Esys_Initialize+:} false; then :
15495
15496 else
15497   ac_cv_search_Esys_Initialize=no
15498 fi
15499 rm conftest.$ac_ext
15500 LIBS=$ac_func_search_save_LIBS
15501 fi
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15503 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15504 ac_res=$ac_cv_search_Esys_Initialize
15505 if test "$ac_res" != no; then :
15506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15507   have_libtss=Intel
15508 else
15509   as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15510 fi
15511
15512   else
15513     as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15514   fi
15515
15516   if test "$have_libtss" = IBM; then
15517     LIBTSS_CFLAGS="-DTPM_POSIX"
15518     CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15519     ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15520 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15521
15522 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15523
15524 else
15525
15526       ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15527 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15528
15529 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15530
15531 else
15532
15533         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15534 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15535         have_libtss=no
15536
15537 fi
15538
15539
15540
15541 fi
15542
15543
15544     LIBTSS_LIBS=$LIBS
15545
15546   elif test "$have_libtss" = Intel; then
15547     ##
15548     # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15549     # until version 2.4.0.
15550     #
15551     # Note: the missing API is fairly serious and is also easily backportable
15552     # so keep the check below as is intead of going by library version number.
15553     ##
15554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15555 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15556 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15557   $as_echo_n "(cached) " >&6
15558 else
15559   ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-ltss2-esys  $LIBS"
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h.  */
15563
15564 /* Override any GCC internal prototype to avoid an error.
15565    Use char because int might match the return type of a GCC
15566    builtin and then its argument prototype would still apply.  */
15567 #ifdef __cplusplus
15568 extern "C"
15569 #endif
15570 char Esys_TR_GetTpmHandle ();
15571 int
15572 main ()
15573 {
15574 return Esys_TR_GetTpmHandle ();
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 if ac_fn_c_try_link "$LINENO"; then :
15580   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15581 else
15582   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15583 fi
15584 rm -f core conftest.err conftest.$ac_objext \
15585     conftest$ac_exeext conftest.$ac_ext
15586 LIBS=$ac_check_lib_save_LIBS
15587 fi
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15589 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15590 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15591   cat >>confdefs.h <<_ACEOF
15592 #define HAVE_LIBTSS2_ESYS 1
15593 _ACEOF
15594
15595   LIBS="-ltss2-esys $LIBS"
15596
15597 else
15598
15599         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
15600 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15601         have_libtss=no
15602
15603 fi
15604
15605     LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15606
15607 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15608
15609   fi
15610   LIBS="$_save_libs"
15611   CFLAGS="$_save_cflags"
15612   if test "$have_libtss" != no; then
15613
15614 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15615
15616     # look for a TPM emulator for testing
15617     # Extract the first word of "tpm_server", so it can be a program name with args.
15618 set dummy tpm_server; ac_word=$2
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620 $as_echo_n "checking for $ac_word... " >&6; }
15621 if ${ac_cv_path_TPMSERVER+:} false; then :
15622   $as_echo_n "(cached) " >&6
15623 else
15624   case $TPMSERVER in
15625   [\\/]* | ?:[\\/]*)
15626   ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15627   ;;
15628   *)
15629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15631 for as_dir in $as_dummy
15632 do
15633   IFS=$as_save_IFS
15634   test -z "$as_dir" && as_dir=.
15635     for ac_exec_ext in '' $ac_executable_extensions; do
15636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637     ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15639     break 2
15640   fi
15641 done
15642   done
15643 IFS=$as_save_IFS
15644
15645   ;;
15646 esac
15647 fi
15648 TPMSERVER=$ac_cv_path_TPMSERVER
15649 if test -n "$TPMSERVER"; then
15650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15651 $as_echo "$TPMSERVER" >&6; }
15652 else
15653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15654 $as_echo "no" >&6; }
15655 fi
15656
15657
15658     # Extract the first word of "swtpm", so it can be a program name with args.
15659 set dummy swtpm; ac_word=$2
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15661 $as_echo_n "checking for $ac_word... " >&6; }
15662 if ${ac_cv_path_SWTPM+:} false; then :
15663   $as_echo_n "(cached) " >&6
15664 else
15665   case $SWTPM in
15666   [\\/]* | ?:[\\/]*)
15667   ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15668   ;;
15669   *)
15670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15672 for as_dir in $as_dummy
15673 do
15674   IFS=$as_save_IFS
15675   test -z "$as_dir" && as_dir=.
15676     for ac_exec_ext in '' $ac_executable_extensions; do
15677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678     ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15680     break 2
15681   fi
15682 done
15683   done
15684 IFS=$as_save_IFS
15685
15686   ;;
15687 esac
15688 fi
15689 SWTPM=$ac_cv_path_SWTPM
15690 if test -n "$SWTPM"; then
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15692 $as_echo "$SWTPM" >&6; }
15693 else
15694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 $as_echo "no" >&6; }
15696 fi
15697
15698
15699     # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15700 set dummy swtpm_ioctl; ac_word=$2
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15702 $as_echo_n "checking for $ac_word... " >&6; }
15703 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15704   $as_echo_n "(cached) " >&6
15705 else
15706   case $SWTPM_IOCTL in
15707   [\\/]* | ?:[\\/]*)
15708   ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15709   ;;
15710   *)
15711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15712 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15713 for as_dir in $as_dummy
15714 do
15715   IFS=$as_save_IFS
15716   test -z "$as_dir" && as_dir=.
15717     for ac_exec_ext in '' $ac_executable_extensions; do
15718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15719     ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15721     break 2
15722   fi
15723 done
15724   done
15725 IFS=$as_save_IFS
15726
15727   ;;
15728 esac
15729 fi
15730 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15731 if test -n "$SWTPM_IOCTL"; then
15732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15733 $as_echo "$SWTPM_IOCTL" >&6; }
15734 else
15735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15737 fi
15738
15739
15740     # Extract the first word of "tssstartup", so it can be a program name with args.
15741 set dummy tssstartup; ac_word=$2
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15743 $as_echo_n "checking for $ac_word... " >&6; }
15744 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15745   $as_echo_n "(cached) " >&6
15746 else
15747   case $TSSSTARTUP in
15748   [\\/]* | ?:[\\/]*)
15749   ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15750   ;;
15751   *)
15752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15754 for as_dir in $as_dummy
15755 do
15756   IFS=$as_save_IFS
15757   test -z "$as_dir" && as_dir=.
15758     for ac_exec_ext in '' $ac_executable_extensions; do
15759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760     ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15762     break 2
15763   fi
15764 done
15765   done
15766 IFS=$as_save_IFS
15767
15768   ;;
15769 esac
15770 fi
15771 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15772 if test -n "$TSSSTARTUP"; then
15773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15774 $as_echo "$TSSSTARTUP" >&6; }
15775 else
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15778 fi
15779
15780
15781   fi
15782 fi
15783 if test "$have_libtss" = no; then
15784   build_tpm2d=no
15785 fi
15786
15787
15788  if test "$have_libtss" != no; then
15789   HAVE_LIBTSS_TRUE=
15790   HAVE_LIBTSS_FALSE='#'
15791 else
15792   HAVE_LIBTSS_TRUE='#'
15793   HAVE_LIBTSS_FALSE=
15794 fi
15795
15796  if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15797   TEST_LIBTSS_TRUE=
15798   TEST_LIBTSS_FALSE='#'
15799 else
15800   TEST_LIBTSS_TRUE='#'
15801   TEST_LIBTSS_FALSE=
15802 fi
15803
15804
15805
15806 #
15807 # Setup gcc specific options
15808 #
15809 USE_C99_CFLAGS=
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15811 $as_echo "$as_me: checking for cc features" >&6;}
15812 if test "$GCC" = yes; then
15813     mycflags=
15814     mycflags_save=$CFLAGS
15815
15816     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15817     # options.  This is the case for gcc >= 4.6
15818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15819 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h.  */
15822
15823 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15824 #kickerror
15825 #endif
15826 int
15827 main ()
15828 {
15829
15830   ;
15831   return 0;
15832 }
15833 _ACEOF
15834 if ac_fn_c_try_compile "$LINENO"; then :
15835   _gcc_silent_wno=yes
15836 else
15837   _gcc_silent_wno=no
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15841 $as_echo "$_gcc_silent_wno" >&6; }
15842
15843     # Note that it is okay to use CFLAGS here because these are just
15844     # warning options and the user should have a chance of overriding
15845     # them.
15846     if test "$USE_MAINTAINER_MODE" = "yes"; then
15847         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15848         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15849         if test x"$_gcc_silent_wno" = xyes ; then
15850           _gcc_wopt=yes
15851         else
15852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15853 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15854           CFLAGS="-Wno-missing-field-initializers"
15855           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h.  */
15857
15858 int
15859 main ()
15860 {
15861
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 if ac_fn_c_try_compile "$LINENO"; then :
15867   _gcc_wopt=yes
15868 else
15869   _gcc_wopt=no
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15873 $as_echo "$_gcc_wopt" >&6; }
15874         fi
15875         if test x"$_gcc_wopt" = xyes ; then
15876           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15877           mycflags="$mycflags -Wno-missing-field-initializers"
15878         fi
15879
15880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15881 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15882         CFLAGS="-Wdeclaration-after-statement"
15883         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h.  */
15885
15886 int
15887 main ()
15888 {
15889
15890   ;
15891   return 0;
15892 }
15893 _ACEOF
15894 if ac_fn_c_try_compile "$LINENO"; then :
15895   _gcc_wopt=yes
15896 else
15897   _gcc_wopt=no
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15901 $as_echo "$_gcc_wopt" >&6; }
15902         if test x"$_gcc_wopt" = xyes ; then
15903           mycflags="$mycflags -Wdeclaration-after-statement"
15904         fi
15905
15906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15907 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15908         CFLAGS="-Wlogical-op -Werror"
15909         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h.  */
15911
15912 int
15913 main ()
15914 {
15915
15916   ;
15917   return 0;
15918 }
15919 _ACEOF
15920 if ac_fn_c_try_compile "$LINENO"; then :
15921   _gcc_wopt=yes
15922 else
15923   _gcc_wopt=no
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15927 $as_echo "$_gcc_wopt" >&6; }
15928         if test x"$_gcc_wopt" = xyes ; then
15929           mycflags="$mycflags -Wlogical-op"
15930         fi
15931
15932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15933 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15934         CFLAGS="-Wvla"
15935         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h.  */
15937
15938 int
15939 main ()
15940 {
15941
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 if ac_fn_c_try_compile "$LINENO"; then :
15947   _gcc_wopt=yes
15948 else
15949   _gcc_wopt=no
15950 fi
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15953 $as_echo "$_gcc_wopt" >&6; }
15954         if test x"$_gcc_wopt" = xyes ; then
15955           mycflags="$mycflags -Wvla"
15956         fi
15957
15958     else
15959         mycflags="$mycflags -Wall"
15960         if test x"$_gcc_silent_wno" = xyes ; then
15961           mycflags="$mycflags -Wno-format-zero-length"
15962         fi
15963     fi
15964
15965     if test x"$_gcc_silent_wno" = xyes ; then
15966       _gcc_psign=yes
15967     else
15968       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15969 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15970       CFLAGS="-Wno-pointer-sign"
15971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h.  */
15973
15974 int
15975 main ()
15976 {
15977
15978   ;
15979   return 0;
15980 }
15981 _ACEOF
15982 if ac_fn_c_try_compile "$LINENO"; then :
15983   _gcc_psign=yes
15984 else
15985   _gcc_psign=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15989 $as_echo "$_gcc_psign" >&6; }
15990     fi
15991     if test x"$_gcc_psign" = xyes ; then
15992        mycflags="$mycflags -Wno-pointer-sign"
15993     fi
15994
15995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15996 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15997     CFLAGS="-Wpointer-arith"
15998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h.  */
16000
16001 int
16002 main ()
16003 {
16004
16005   ;
16006   return 0;
16007 }
16008 _ACEOF
16009 if ac_fn_c_try_compile "$LINENO"; then :
16010   _gcc_psign=yes
16011 else
16012   _gcc_psign=no
16013 fi
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16016 $as_echo "$_gcc_psign" >&6; }
16017     if test x"$_gcc_psign" = xyes ; then
16018        mycflags="$mycflags -Wpointer-arith"
16019     fi
16020
16021     CFLAGS="$mycflags $mycflags_save"
16022     if test "$use_libdns" = yes; then
16023        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
16024        USE_C99_CFLAGS="-std=gnu99"
16025     fi
16026 fi
16027
16028
16029
16030
16031 #
16032 # This is handy for debugging so the compiler doesn't rearrange
16033 # things and eliminate variables.
16034 #
16035 # Check whether --enable-optimization was given.
16036 if test "${enable_optimization+set}" = set; then :
16037   enableval=$enable_optimization; if test $enableval = no ; then
16038                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16039                    fi
16040 fi
16041
16042
16043 #
16044 # log_debug has certain requirements which might hamper portability.
16045 # Thus we use an option to enable it.
16046 #
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16048 $as_echo_n "checking whether to enable log_clock... " >&6; }
16049 # Check whether --enable-log_clock was given.
16050 if test "${enable_log_clock+set}" = set; then :
16051   enableval=$enable_log_clock; enable_log_clock=$enableval
16052 else
16053   enable_log_clock=no
16054 fi
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16057 $as_echo "$enable_log_clock" >&6; }
16058 if test "$enable_log_clock" = yes ; then
16059
16060 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16061
16062 fi
16063
16064 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
16065 # misbehaving autoconf tests in case the user supplied -Werror.
16066 #
16067 # Check whether --enable-werror was given.
16068 if test "${enable_werror+set}" = set; then :
16069   enableval=$enable_werror; if test $enableval = yes ; then
16070                       CFLAGS="$CFLAGS -Werror"
16071                    fi
16072 fi
16073
16074
16075 #
16076 # Configure option --enable-all-tests
16077 #
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16079 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16080 # Check whether --enable-all-tests was given.
16081 if test "${enable_all_tests+set}" = set; then :
16082   enableval=$enable_all_tests; run_all_tests=$enableval
16083 else
16084   run_all_tests=no
16085 fi
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16088 $as_echo "$run_all_tests" >&6; }
16089 if test "$run_all_tests" = "yes"; then
16090
16091 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16092
16093 fi
16094
16095 #
16096 # Configure option --disable-tests
16097 #
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16099 $as_echo_n "checking whether tests should be run... " >&6; }
16100 # Check whether --enable-tests was given.
16101 if test "${enable_tests+set}" = set; then :
16102   enableval=$enable_tests; run_tests=$enableval
16103 else
16104   run_tests=yes
16105 fi
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16108 $as_echo "$run_tests" >&6; }
16109
16110 #
16111 # We do not want support for the GNUPG_BUILDDIR environment variable
16112 # in a released version.  However, our regression tests suite requires
16113 # this and thus we build with support for it during "make distcheck".
16114 # This configure option implements this along with the top Makefile's
16115 # AM_DISTCHECK_CONFIGURE_FLAGS.
16116 #
16117 gnupg_builddir_envvar=no
16118 # Check whether --enable-gnupg-builddir-envvar was given.
16119 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16120   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16121 fi
16122
16123 if test x"$gnupg_builddir_envvar" = x"yes"; then
16124
16125 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16126
16127 fi
16128
16129
16130 #
16131 # To avoid problems with systemd cleaning up the /run/user directory,
16132 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16133 # before /run/user
16134 #
16135 # Check whether --enable-run-gnupg-user-socket was given.
16136 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16137   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16138 fi
16139
16140 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16141
16142 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16143
16144 fi
16145
16146
16147 #
16148 # Decide what to build
16149 #
16150
16151 build_scdaemon_extra=""
16152 if test "$build_scdaemon" = "yes"; then
16153   if test $have_libusb = no; then
16154      build_scdaemon_extra="without internal CCID driver"
16155   fi
16156   if test -n "$build_scdaemon_extra"; then
16157      build_scdaemon_extra="(${build_scdaemon_extra})"
16158   fi
16159 fi
16160
16161
16162 #
16163 # Set variables for use by automake makefiles.
16164 #
16165  if test "$build_gpg" = "yes"; then
16166   BUILD_GPG_TRUE=
16167   BUILD_GPG_FALSE='#'
16168 else
16169   BUILD_GPG_TRUE='#'
16170   BUILD_GPG_FALSE=
16171 fi
16172
16173  if test "$build_gpgsm" = "yes"; then
16174   BUILD_GPGSM_TRUE=
16175   BUILD_GPGSM_FALSE='#'
16176 else
16177   BUILD_GPGSM_TRUE='#'
16178   BUILD_GPGSM_FALSE=
16179 fi
16180
16181  if test "$build_agent" = "yes"; then
16182   BUILD_AGENT_TRUE=
16183   BUILD_AGENT_FALSE='#'
16184 else
16185   BUILD_AGENT_TRUE='#'
16186   BUILD_AGENT_FALSE=
16187 fi
16188
16189  if test "$build_scdaemon" = "yes"; then
16190   BUILD_SCDAEMON_TRUE=
16191   BUILD_SCDAEMON_FALSE='#'
16192 else
16193   BUILD_SCDAEMON_TRUE='#'
16194   BUILD_SCDAEMON_FALSE=
16195 fi
16196
16197  if test "$build_g13" = "yes"; then
16198   BUILD_G13_TRUE=
16199   BUILD_G13_FALSE='#'
16200 else
16201   BUILD_G13_TRUE='#'
16202   BUILD_G13_FALSE=
16203 fi
16204
16205  if test "$build_dirmngr" = "yes"; then
16206   BUILD_DIRMNGR_TRUE=
16207   BUILD_DIRMNGR_FALSE='#'
16208 else
16209   BUILD_DIRMNGR_TRUE='#'
16210   BUILD_DIRMNGR_FALSE=
16211 fi
16212
16213  if test "$build_keyboxd" = "yes"; then
16214   BUILD_KEYBOXD_TRUE=
16215   BUILD_KEYBOXD_FALSE='#'
16216 else
16217   BUILD_KEYBOXD_TRUE='#'
16218   BUILD_KEYBOXD_FALSE=
16219 fi
16220
16221  if test "$build_tpm2d" = "yes"; then
16222   BUILD_TPM2D_TRUE=
16223   BUILD_TPM2D_FALSE='#'
16224 else
16225   BUILD_TPM2D_TRUE='#'
16226   BUILD_TPM2D_FALSE=
16227 fi
16228
16229  if test "$build_doc" = "yes"; then
16230   BUILD_DOC_TRUE=
16231   BUILD_DOC_FALSE='#'
16232 else
16233   BUILD_DOC_TRUE='#'
16234   BUILD_DOC_FALSE=
16235 fi
16236
16237  if test "$build_gpgtar" = "yes"; then
16238   BUILD_GPGTAR_TRUE=
16239   BUILD_GPGTAR_FALSE='#'
16240 else
16241   BUILD_GPGTAR_TRUE='#'
16242   BUILD_GPGTAR_FALSE=
16243 fi
16244
16245  if test "$build_wks_tools" = "yes"; then
16246   BUILD_WKS_TOOLS_TRUE=
16247   BUILD_WKS_TOOLS_FALSE='#'
16248 else
16249   BUILD_WKS_TOOLS_TRUE='#'
16250   BUILD_WKS_TOOLS_FALSE=
16251 fi
16252
16253
16254  if test "$run_tests" != yes; then
16255   DISABLE_TESTS_TRUE=
16256   DISABLE_TESTS_FALSE='#'
16257 else
16258   DISABLE_TESTS_TRUE='#'
16259   DISABLE_TESTS_FALSE=
16260 fi
16261
16262  if test "$card_support" = yes; then
16263   ENABLE_CARD_SUPPORT_TRUE=
16264   ENABLE_CARD_SUPPORT_FALSE='#'
16265 else
16266   ENABLE_CARD_SUPPORT_TRUE='#'
16267   ENABLE_CARD_SUPPORT_FALSE=
16268 fi
16269
16270  if test "$use_trust_models" = no; then
16271   NO_TRUST_MODELS_TRUE=
16272   NO_TRUST_MODELS_FALSE='#'
16273 else
16274   NO_TRUST_MODELS_TRUE='#'
16275   NO_TRUST_MODELS_FALSE=
16276 fi
16277
16278  if test "$use_tofu" = yes; then
16279   USE_TOFU_TRUE=
16280   USE_TOFU_FALSE='#'
16281 else
16282   USE_TOFU_TRUE='#'
16283   USE_TOFU_FALSE=
16284 fi
16285
16286
16287 #
16288 # Set some defines for use gpgconf.
16289 #
16290 if test "$build_gpg" = yes ; then
16291
16292 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16293
16294 fi
16295 if test "$build_gpgsm" = yes ; then
16296
16297 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16298
16299 fi
16300 if test "$build_agent" = yes ; then
16301
16302 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16303
16304 fi
16305 if test "$build_scdaemon" = yes ; then
16306
16307 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16308
16309 fi
16310 if test "$build_dirmngr" = yes ; then
16311
16312 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16313
16314 fi
16315 if test "$build_keyboxd" = yes ; then
16316
16317 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16318
16319 fi
16320 if test "$build_tpm2d" = yes ; then
16321
16322 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16323
16324 fi
16325 if test "$build_g13" = yes ; then
16326
16327 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16328
16329 fi
16330
16331
16332 #
16333 # Define Name strings
16334 #
16335
16336 cat >>confdefs.h <<_ACEOF
16337 #define GNUPG_NAME "GnuPG"
16338 _ACEOF
16339
16340
16341
16342 cat >>confdefs.h <<_ACEOF
16343 #define GPG_NAME "gpg"
16344 _ACEOF
16345
16346
16347 cat >>confdefs.h <<_ACEOF
16348 #define GPG_DISP_NAME "GnuPG"
16349 _ACEOF
16350
16351
16352
16353 cat >>confdefs.h <<_ACEOF
16354 #define GPGSM_NAME "gpgsm"
16355 _ACEOF
16356
16357
16358 cat >>confdefs.h <<_ACEOF
16359 #define GPGSM_DISP_NAME "GPGSM"
16360 _ACEOF
16361
16362
16363
16364 cat >>confdefs.h <<_ACEOF
16365 #define GPG_AGENT_NAME "gpg-agent"
16366 _ACEOF
16367
16368
16369 cat >>confdefs.h <<_ACEOF
16370 #define GPG_AGENT_DISP_NAME "GPG Agent"
16371 _ACEOF
16372
16373
16374
16375 cat >>confdefs.h <<_ACEOF
16376 #define TPM2DAEMON_NAME "tpm2daemon"
16377 _ACEOF
16378
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16382 _ACEOF
16383
16384
16385
16386 cat >>confdefs.h <<_ACEOF
16387 #define SCDAEMON_NAME "scdaemon"
16388 _ACEOF
16389
16390
16391 cat >>confdefs.h <<_ACEOF
16392 #define SCDAEMON_DISP_NAME "SCDaemon"
16393 _ACEOF
16394
16395
16396
16397 cat >>confdefs.h <<_ACEOF
16398 #define DIRMNGR_NAME "dirmngr"
16399 _ACEOF
16400
16401
16402 cat >>confdefs.h <<_ACEOF
16403 #define DIRMNGR_DISP_NAME "DirMngr"
16404 _ACEOF
16405
16406
16407
16408 cat >>confdefs.h <<_ACEOF
16409 #define KEYBOXD_NAME "keyboxd"
16410 _ACEOF
16411
16412
16413 cat >>confdefs.h <<_ACEOF
16414 #define KEYBOXD_DISP_NAME "Keyboxd"
16415 _ACEOF
16416
16417
16418
16419 cat >>confdefs.h <<_ACEOF
16420 #define G13_NAME "g13"
16421 _ACEOF
16422
16423
16424 cat >>confdefs.h <<_ACEOF
16425 #define G13_DISP_NAME "G13"
16426 _ACEOF
16427
16428
16429
16430 cat >>confdefs.h <<_ACEOF
16431 #define GPGCONF_NAME "gpgconf"
16432 _ACEOF
16433
16434
16435 cat >>confdefs.h <<_ACEOF
16436 #define GPGCONF_DISP_NAME "GPGConf"
16437 _ACEOF
16438
16439
16440
16441 cat >>confdefs.h <<_ACEOF
16442 #define GPGTAR_NAME "gpgtar"
16443 _ACEOF
16444
16445
16446
16447 cat >>confdefs.h <<_ACEOF
16448 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16449 _ACEOF
16450
16451
16452 cat >>confdefs.h <<_ACEOF
16453 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16454 _ACEOF
16455
16456
16457 cat >>confdefs.h <<_ACEOF
16458 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16459 _ACEOF
16460
16461
16462 cat >>confdefs.h <<_ACEOF
16463 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16464 _ACEOF
16465
16466
16467 cat >>confdefs.h <<_ACEOF
16468 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16469 _ACEOF
16470
16471
16472 cat >>confdefs.h <<_ACEOF
16473 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16474 _ACEOF
16475
16476
16477 cat >>confdefs.h <<_ACEOF
16478 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16479 _ACEOF
16480
16481
16482 cat >>confdefs.h <<_ACEOF
16483 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16484 _ACEOF
16485
16486
16487 cat >>confdefs.h <<_ACEOF
16488 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16489 _ACEOF
16490
16491
16492 cat >>confdefs.h <<_ACEOF
16493 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16494 _ACEOF
16495
16496
16497
16498 cat >>confdefs.h <<_ACEOF
16499 #define GPGEXT_GPG "gpg"
16500 _ACEOF
16501
16502
16503 if test "$have_w32_system" = yes; then
16504
16505 cat >>confdefs.h <<_ACEOF
16506 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16507 _ACEOF
16508
16509 fi
16510
16511
16512 #
16513 # Provide information about the build.
16514 #
16515 BUILD_REVISION="d073f26d8"
16516
16517
16518 cat >>confdefs.h <<_ACEOF
16519 #define BUILD_REVISION "$BUILD_REVISION"
16520 _ACEOF
16521
16522
16523 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16524 BUILD_VERSION="${BUILD_VERSION}53363"
16525 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16526
16527
16528
16529 # Check whether --enable-build-timestamp was given.
16530 if test "${enable_build_timestamp+set}" = set; then :
16531   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16532         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16533       else
16534         BUILD_TIMESTAMP="$enableval"
16535       fi
16536       BUILD_HOSTNAME="$ac_hostname"
16537 else
16538   BUILD_TIMESTAMP="<none>"
16539       BUILD_HOSTNAME="<anon>"
16540 fi
16541
16542
16543
16544 cat >>confdefs.h <<_ACEOF
16545 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16546 _ACEOF
16547
16548
16549
16550
16551 #
16552 # Print errors here so that they are visible all
16553 # together and the user can acquire them all together.
16554 #
16555 die=no
16556 if test "$have_gpg_error" = "no"; then
16557    die=yes
16558    { $as_echo "$as_me:${as_lineno-$LINENO}:
16559 ***
16560 *** You need libgpg-error to build this program.
16561 **  This library is for example available at
16562 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16563 *** (at least version $NEED_GPGRT_VERSION is required.)
16564 ***" >&5
16565 $as_echo "$as_me:
16566 ***
16567 *** You need libgpg-error to build this program.
16568 **  This library is for example available at
16569 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16570 *** (at least version $NEED_GPGRT_VERSION is required.)
16571 ***" >&6;}
16572 fi
16573 if test "$have_libgcrypt" = "no"; then
16574    die=yes
16575    { $as_echo "$as_me:${as_lineno-$LINENO}:
16576 ***
16577 *** You need libgcrypt to build this program.
16578 **  This library is for example available at
16579 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16580 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16581 ***" >&5
16582 $as_echo "$as_me:
16583 ***
16584 *** You need libgcrypt to build this program.
16585 **  This library is for example available at
16586 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16587 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16588 ***" >&6;}
16589 fi
16590 if test "$have_libassuan" = "no"; then
16591    die=yes
16592    { $as_echo "$as_me:${as_lineno-$LINENO}:
16593 ***
16594 *** You need libassuan to build this program.
16595 *** This library is for example available at
16596 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16597 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16598 ***" >&5
16599 $as_echo "$as_me:
16600 ***
16601 *** You need libassuan to build this program.
16602 *** This library is for example available at
16603 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16604 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16605 ***" >&6;}
16606 fi
16607 if test "$have_ksba" = "no"; then
16608     die=yes
16609     { $as_echo "$as_me:${as_lineno-$LINENO}:
16610 ***
16611 *** You need libksba to build this program.
16612 *** This library is for example available at
16613 ***   https://gnupg.org/ftp/gcrypt/libksba/
16614 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16615 ***" >&5
16616 $as_echo "$as_me:
16617 ***
16618 *** You need libksba to build this program.
16619 *** This library is for example available at
16620 ***   https://gnupg.org/ftp/gcrypt/libksba/
16621 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16622 ***" >&6;}
16623 fi
16624 if test "$have_npth" = "no"; then
16625     die=yes
16626     { $as_echo "$as_me:${as_lineno-$LINENO}:
16627 ***
16628 *** It is now required to build with support for the
16629 *** New Portable Threads Library (nPth). Please install this
16630 *** library first.  The library is for example available at
16631 ***   https://gnupg.org/ftp/gcrypt/npth/
16632 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16633 ***" >&5
16634 $as_echo "$as_me:
16635 ***
16636 *** It is now required to build with support for the
16637 *** New Portable Threads Library (nPth). Please install this
16638 *** library first.  The library is for example available at
16639 ***   https://gnupg.org/ftp/gcrypt/npth/
16640 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16641 ***" >&6;}
16642 fi
16643
16644 if test "$require_iconv" = yes; then
16645   if test "$am_func_iconv" != yes; then
16646     die=yes
16647     { $as_echo "$as_me:${as_lineno-$LINENO}:
16648 ***
16649 *** The system does not provide a working iconv function.  Please
16650 *** install a suitable library; for example GNU Libiconv which is
16651 *** available at:
16652 ***   https://ftp.gnu.org/gnu/libiconv/
16653 ***" >&5
16654 $as_echo "$as_me:
16655 ***
16656 *** The system does not provide a working iconv function.  Please
16657 *** install a suitable library; for example GNU Libiconv which is
16658 *** available at:
16659 ***   https://ftp.gnu.org/gnu/libiconv/
16660 ***" >&6;}
16661   fi
16662 fi
16663
16664 if test "$use_ccid_driver" = yes; then
16665   if test "$have_libusb" != yes; then
16666     die=yes
16667     { $as_echo "$as_me:${as_lineno-$LINENO}:
16668 ***
16669 *** You need libusb to build the internal ccid driver.  Please
16670 *** install a libusb suitable for your system.
16671 ***" >&5
16672 $as_echo "$as_me:
16673 ***
16674 *** You need libusb to build the internal ccid driver.  Please
16675 *** install a libusb suitable for your system.
16676 ***" >&6;}
16677   fi
16678 fi
16679
16680 if test "$die" = "yes"; then
16681     as_fn_error $? "
16682 ***
16683 *** Required libraries not found. Please consult the above messages
16684 *** and install them before running configure again.
16685 ***" "$LINENO" 5
16686 fi
16687
16688
16689
16690 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/cms/Makefile tests/migrations/Makefile tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest g10/gpgv.w32-manifest sm/gpgsm.w32-manifest kbx/keyboxd.w32-manifest agent/gpg-agent.w32-manifest scd/scdaemon.w32-manifest dirmngr/dirmngr.w32-manifest dirmngr/dirmngr_ldap.w32-manifest dirmngr/dirmngr-client.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16691
16692
16693
16694 cat >confcache <<\_ACEOF
16695 # This file is a shell script that caches the results of configure
16696 # tests run on this system so they can be shared between configure
16697 # scripts and configure runs, see configure's option --config-cache.
16698 # It is not useful on other systems.  If it contains results you don't
16699 # want to keep, you may remove or edit it.
16700 #
16701 # config.status only pays attention to the cache file if you give it
16702 # the --recheck option to rerun configure.
16703 #
16704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16706 # following values.
16707
16708 _ACEOF
16709
16710 # The following way of writing the cache mishandles newlines in values,
16711 # but we know of no workaround that is simple, portable, and efficient.
16712 # So, we kill variables containing newlines.
16713 # Ultrix sh set writes to stderr and can't be redirected directly,
16714 # and sets the high bit in the cache file unless we assign to the vars.
16715 (
16716   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16717     eval ac_val=\$$ac_var
16718     case $ac_val in #(
16719     *${as_nl}*)
16720       case $ac_var in #(
16721       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16723       esac
16724       case $ac_var in #(
16725       _ | IFS | as_nl) ;; #(
16726       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16727       *) { eval $ac_var=; unset $ac_var;} ;;
16728       esac ;;
16729     esac
16730   done
16731
16732   (set) 2>&1 |
16733     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16734     *${as_nl}ac_space=\ *)
16735       # `set' does not quote correctly, so add quotes: double-quote
16736       # substitution turns \\\\ into \\, and sed turns \\ into \.
16737       sed -n \
16738         "s/'/'\\\\''/g;
16739           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16740       ;; #(
16741     *)
16742       # `set' quotes correctly as required by POSIX, so do not add quotes.
16743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16744       ;;
16745     esac |
16746     sort
16747 ) |
16748   sed '
16749      /^ac_cv_env_/b end
16750      t clear
16751      :clear
16752      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16753      t end
16754      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16755      :end' >>confcache
16756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16757   if test -w "$cache_file"; then
16758     if test "x$cache_file" != "x/dev/null"; then
16759       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16760 $as_echo "$as_me: updating cache $cache_file" >&6;}
16761       if test ! -f "$cache_file" || test -h "$cache_file"; then
16762         cat confcache >"$cache_file"
16763       else
16764         case $cache_file in #(
16765         */* | ?:*)
16766           mv -f confcache "$cache_file"$$ &&
16767           mv -f "$cache_file"$$ "$cache_file" ;; #(
16768         *)
16769           mv -f confcache "$cache_file" ;;
16770         esac
16771       fi
16772     fi
16773   else
16774     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16776   fi
16777 fi
16778 rm -f confcache
16779
16780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16781 # Let make expand exec_prefix.
16782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16783
16784 DEFS=-DHAVE_CONFIG_H
16785
16786 ac_libobjs=
16787 ac_ltlibobjs=
16788 U=
16789 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16790   # 1. Remove the extension, and $U if already installed.
16791   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16792   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16793   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16794   #    will be set to the directory where LIBOBJS objects are built.
16795   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16796   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16797 done
16798 LIBOBJS=$ac_libobjs
16799
16800 LTLIBOBJS=$ac_ltlibobjs
16801
16802
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16804 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16805    if test -n "$am_sleep_pid"; then
16806      # Hide warnings about reused PIDs.
16807      wait $am_sleep_pid 2>/dev/null
16808    fi
16809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16810 $as_echo "done" >&6; }
16811  if test -n "$EXEEXT"; then
16812   am__EXEEXT_TRUE=
16813   am__EXEEXT_FALSE='#'
16814 else
16815   am__EXEEXT_TRUE='#'
16816   am__EXEEXT_FALSE=
16817 fi
16818
16819 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16820   as_fn_error $? "conditional \"AMDEP\" was never defined.
16821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16822 fi
16823 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16824   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16826 fi
16827 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16828   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16830 fi
16831 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16832   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16834 fi
16835 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16836   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16838 fi
16839 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
16840   as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16842 fi
16843 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16844   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16846 fi
16847 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
16848   as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
16849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16850 fi
16851 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16852   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16854 fi
16855 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16856   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16858 fi
16859 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16860   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16862 fi
16863 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16864   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16866 fi
16867 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16868   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16872 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16873    if test -n "$am_sleep_pid"; then
16874      # Hide warnings about reused PIDs.
16875      wait $am_sleep_pid 2>/dev/null
16876    fi
16877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16878 $as_echo "done" >&6; }
16879 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16880   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16882 fi
16883 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16884   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16886 fi
16887 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16888   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16890 fi
16891 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16892   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16894 fi
16895 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16896   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16898 fi
16899 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16900   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16902 fi
16903 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16904   as_fn_error $? "conditional \"SQLITE3\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 fi
16907 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16908   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 fi
16911 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16912   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16914 fi
16915 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16916   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 fi
16919 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
16920   as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 fi
16923 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
16924   as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 fi
16927 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16928   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 fi
16931 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16932   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 fi
16935 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16936   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 fi
16939 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16940   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 fi
16943 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16944   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 fi
16947 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16948   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 fi
16951 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
16952   as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
16953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954 fi
16955 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
16956   as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
16957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16958 fi
16959 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16960   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16962 fi
16963 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16964   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 fi
16967 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16968   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 fi
16971 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
16972   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 fi
16975 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16976   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 fi
16979 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16980   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 fi
16983 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16984   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 fi
16987
16988 : "${CONFIG_STATUS=./config.status}"
16989 ac_write_fail=0
16990 ac_clean_files_save=$ac_clean_files
16991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16994 as_write_fail=0
16995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16996 #! $SHELL
16997 # Generated by $as_me.
16998 # Run this file to recreate the current configuration.
16999 # Compiler output produced by configure, useful for debugging
17000 # configure, is in config.log if it exists.
17001
17002 debug=false
17003 ac_cs_recheck=false
17004 ac_cs_silent=false
17005
17006 SHELL=\${CONFIG_SHELL-$SHELL}
17007 export SHELL
17008 _ASEOF
17009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17010 ## -------------------- ##
17011 ## M4sh Initialization. ##
17012 ## -------------------- ##
17013
17014 # Be more Bourne compatible
17015 DUALCASE=1; export DUALCASE # for MKS sh
17016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17017   emulate sh
17018   NULLCMD=:
17019   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17020   # is contrary to our usage.  Disable this feature.
17021   alias -g '${1+"$@"}'='"$@"'
17022   setopt NO_GLOB_SUBST
17023 else
17024   case `(set -o) 2>/dev/null` in #(
17025   *posix*) :
17026     set -o posix ;; #(
17027   *) :
17028      ;;
17029 esac
17030 fi
17031
17032
17033 as_nl='
17034 '
17035 export as_nl
17036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17037 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17040 # Prefer a ksh shell builtin over an external printf program on Solaris,
17041 # but without wasting forks for bash or zsh.
17042 if test -z "$BASH_VERSION$ZSH_VERSION" \
17043     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17044   as_echo='print -r --'
17045   as_echo_n='print -rn --'
17046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17047   as_echo='printf %s\n'
17048   as_echo_n='printf %s'
17049 else
17050   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17051     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17052     as_echo_n='/usr/ucb/echo -n'
17053   else
17054     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17055     as_echo_n_body='eval
17056       arg=$1;
17057       case $arg in #(
17058       *"$as_nl"*)
17059         expr "X$arg" : "X\\(.*\\)$as_nl";
17060         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17061       esac;
17062       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17063     '
17064     export as_echo_n_body
17065     as_echo_n='sh -c $as_echo_n_body as_echo'
17066   fi
17067   export as_echo_body
17068   as_echo='sh -c $as_echo_body as_echo'
17069 fi
17070
17071 # The user is always right.
17072 if test "${PATH_SEPARATOR+set}" != set; then
17073   PATH_SEPARATOR=:
17074   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17075     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17076       PATH_SEPARATOR=';'
17077   }
17078 fi
17079
17080
17081 # IFS
17082 # We need space, tab and new line, in precisely that order.  Quoting is
17083 # there to prevent editors from complaining about space-tab.
17084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17085 # splitting by setting IFS to empty value.)
17086 IFS=" ""        $as_nl"
17087
17088 # Find who we are.  Look in the path if we contain no directory separator.
17089 as_myself=
17090 case $0 in #((
17091   *[\\/]* ) as_myself=$0 ;;
17092   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $PATH
17094 do
17095   IFS=$as_save_IFS
17096   test -z "$as_dir" && as_dir=.
17097     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17098   done
17099 IFS=$as_save_IFS
17100
17101      ;;
17102 esac
17103 # We did not find ourselves, most probably we were run as `sh COMMAND'
17104 # in which case we are not to be found in the path.
17105 if test "x$as_myself" = x; then
17106   as_myself=$0
17107 fi
17108 if test ! -f "$as_myself"; then
17109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17110   exit 1
17111 fi
17112
17113 # Unset variables that we do not need and which cause bugs (e.g. in
17114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17115 # suppresses any "Segmentation fault" message there.  '((' could
17116 # trigger a bug in pdksh 5.2.14.
17117 for as_var in BASH_ENV ENV MAIL MAILPATH
17118 do eval test x\${$as_var+set} = xset \
17119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17120 done
17121 PS1='$ '
17122 PS2='> '
17123 PS4='+ '
17124
17125 # NLS nuisances.
17126 LC_ALL=C
17127 export LC_ALL
17128 LANGUAGE=C
17129 export LANGUAGE
17130
17131 # CDPATH.
17132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17133
17134
17135 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17136 # ----------------------------------------
17137 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17138 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17139 # script with STATUS, using 1 if that was 0.
17140 as_fn_error ()
17141 {
17142   as_status=$1; test $as_status -eq 0 && as_status=1
17143   if test "$4"; then
17144     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17145     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17146   fi
17147   $as_echo "$as_me: error: $2" >&2
17148   as_fn_exit $as_status
17149 } # as_fn_error
17150
17151
17152 # as_fn_set_status STATUS
17153 # -----------------------
17154 # Set $? to STATUS, without forking.
17155 as_fn_set_status ()
17156 {
17157   return $1
17158 } # as_fn_set_status
17159
17160 # as_fn_exit STATUS
17161 # -----------------
17162 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17163 as_fn_exit ()
17164 {
17165   set +e
17166   as_fn_set_status $1
17167   exit $1
17168 } # as_fn_exit
17169
17170 # as_fn_unset VAR
17171 # ---------------
17172 # Portably unset VAR.
17173 as_fn_unset ()
17174 {
17175   { eval $1=; unset $1;}
17176 }
17177 as_unset=as_fn_unset
17178 # as_fn_append VAR VALUE
17179 # ----------------------
17180 # Append the text in VALUE to the end of the definition contained in VAR. Take
17181 # advantage of any shell optimizations that allow amortized linear growth over
17182 # repeated appends, instead of the typical quadratic growth present in naive
17183 # implementations.
17184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17185   eval 'as_fn_append ()
17186   {
17187     eval $1+=\$2
17188   }'
17189 else
17190   as_fn_append ()
17191   {
17192     eval $1=\$$1\$2
17193   }
17194 fi # as_fn_append
17195
17196 # as_fn_arith ARG...
17197 # ------------------
17198 # Perform arithmetic evaluation on the ARGs, and store the result in the
17199 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17200 # must be portable across $(()) and expr.
17201 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17202   eval 'as_fn_arith ()
17203   {
17204     as_val=$(( $* ))
17205   }'
17206 else
17207   as_fn_arith ()
17208   {
17209     as_val=`expr "$@" || test $? -eq 1`
17210   }
17211 fi # as_fn_arith
17212
17213
17214 if expr a : '\(a\)' >/dev/null 2>&1 &&
17215    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17216   as_expr=expr
17217 else
17218   as_expr=false
17219 fi
17220
17221 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17222   as_basename=basename
17223 else
17224   as_basename=false
17225 fi
17226
17227 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17228   as_dirname=dirname
17229 else
17230   as_dirname=false
17231 fi
17232
17233 as_me=`$as_basename -- "$0" ||
17234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17235          X"$0" : 'X\(//\)$' \| \
17236          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17237 $as_echo X/"$0" |
17238     sed '/^.*\/\([^/][^/]*\)\/*$/{
17239             s//\1/
17240             q
17241           }
17242           /^X\/\(\/\/\)$/{
17243             s//\1/
17244             q
17245           }
17246           /^X\/\(\/\).*/{
17247             s//\1/
17248             q
17249           }
17250           s/.*/./; q'`
17251
17252 # Avoid depending upon Character Ranges.
17253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17256 as_cr_digits='0123456789'
17257 as_cr_alnum=$as_cr_Letters$as_cr_digits
17258
17259 ECHO_C= ECHO_N= ECHO_T=
17260 case `echo -n x` in #(((((
17261 -n*)
17262   case `echo 'xy\c'` in
17263   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17264   xy)  ECHO_C='\c';;
17265   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17266        ECHO_T=' ';;
17267   esac;;
17268 *)
17269   ECHO_N='-n';;
17270 esac
17271
17272 rm -f conf$$ conf$$.exe conf$$.file
17273 if test -d conf$$.dir; then
17274   rm -f conf$$.dir/conf$$.file
17275 else
17276   rm -f conf$$.dir
17277   mkdir conf$$.dir 2>/dev/null
17278 fi
17279 if (echo >conf$$.file) 2>/dev/null; then
17280   if ln -s conf$$.file conf$$ 2>/dev/null; then
17281     as_ln_s='ln -s'
17282     # ... but there are two gotchas:
17283     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17284     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17285     # In both cases, we have to default to `cp -pR'.
17286     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17287       as_ln_s='cp -pR'
17288   elif ln conf$$.file conf$$ 2>/dev/null; then
17289     as_ln_s=ln
17290   else
17291     as_ln_s='cp -pR'
17292   fi
17293 else
17294   as_ln_s='cp -pR'
17295 fi
17296 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17297 rmdir conf$$.dir 2>/dev/null
17298
17299
17300 # as_fn_mkdir_p
17301 # -------------
17302 # Create "$as_dir" as a directory, including parents if necessary.
17303 as_fn_mkdir_p ()
17304 {
17305
17306   case $as_dir in #(
17307   -*) as_dir=./$as_dir;;
17308   esac
17309   test -d "$as_dir" || eval $as_mkdir_p || {
17310     as_dirs=
17311     while :; do
17312       case $as_dir in #(
17313       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17314       *) as_qdir=$as_dir;;
17315       esac
17316       as_dirs="'$as_qdir' $as_dirs"
17317       as_dir=`$as_dirname -- "$as_dir" ||
17318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319          X"$as_dir" : 'X\(//\)[^/]' \| \
17320          X"$as_dir" : 'X\(//\)$' \| \
17321          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17322 $as_echo X"$as_dir" |
17323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324             s//\1/
17325             q
17326           }
17327           /^X\(\/\/\)[^/].*/{
17328             s//\1/
17329             q
17330           }
17331           /^X\(\/\/\)$/{
17332             s//\1/
17333             q
17334           }
17335           /^X\(\/\).*/{
17336             s//\1/
17337             q
17338           }
17339           s/.*/./; q'`
17340       test -d "$as_dir" && break
17341     done
17342     test -z "$as_dirs" || eval "mkdir $as_dirs"
17343   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17344
17345
17346 } # as_fn_mkdir_p
17347 if mkdir -p . 2>/dev/null; then
17348   as_mkdir_p='mkdir -p "$as_dir"'
17349 else
17350   test -d ./-p && rmdir ./-p
17351   as_mkdir_p=false
17352 fi
17353
17354
17355 # as_fn_executable_p FILE
17356 # -----------------------
17357 # Test if FILE is an executable regular file.
17358 as_fn_executable_p ()
17359 {
17360   test -f "$1" && test -x "$1"
17361 } # as_fn_executable_p
17362 as_test_x='test -x'
17363 as_executable_p=as_fn_executable_p
17364
17365 # Sed expression to map a string onto a valid CPP name.
17366 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17367
17368 # Sed expression to map a string onto a valid variable name.
17369 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17370
17371
17372 exec 6>&1
17373 ## ----------------------------------- ##
17374 ## Main body of $CONFIG_STATUS script. ##
17375 ## ----------------------------------- ##
17376 _ASEOF
17377 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17378
17379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17380 # Save the log message, to keep $0 and so on meaningful, and to
17381 # report actual input values of CONFIG_FILES etc. instead of their
17382 # values after options handling.
17383 ac_log="
17384 This file was extended by gnupg $as_me 2.4.3, which was
17385 generated by GNU Autoconf 2.69.  Invocation command line was
17386
17387   CONFIG_FILES    = $CONFIG_FILES
17388   CONFIG_HEADERS  = $CONFIG_HEADERS
17389   CONFIG_LINKS    = $CONFIG_LINKS
17390   CONFIG_COMMANDS = $CONFIG_COMMANDS
17391   $ $0 $@
17392
17393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17394 "
17395
17396 _ACEOF
17397
17398 case $ac_config_files in *"
17399 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17400 esac
17401
17402 case $ac_config_headers in *"
17403 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17404 esac
17405
17406
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17408 # Files that config.status was made for.
17409 config_files="$ac_config_files"
17410 config_headers="$ac_config_headers"
17411 config_commands="$ac_config_commands"
17412
17413 _ACEOF
17414
17415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17416 ac_cs_usage="\
17417 \`$as_me' instantiates files and other configuration actions
17418 from templates according to the current configuration.  Unless the files
17419 and actions are specified as TAGs, all are instantiated by default.
17420
17421 Usage: $0 [OPTION]... [TAG]...
17422
17423   -h, --help       print this help, then exit
17424   -V, --version    print version number and configuration settings, then exit
17425       --config     print configuration, then exit
17426   -q, --quiet, --silent
17427                    do not print progress messages
17428   -d, --debug      don't remove temporary files
17429       --recheck    update $as_me by reconfiguring in the same conditions
17430       --file=FILE[:TEMPLATE]
17431                    instantiate the configuration file FILE
17432       --header=FILE[:TEMPLATE]
17433                    instantiate the configuration header FILE
17434
17435 Configuration files:
17436 $config_files
17437
17438 Configuration headers:
17439 $config_headers
17440
17441 Configuration commands:
17442 $config_commands
17443
17444 Report bugs to <https://bugs.gnupg.org>."
17445
17446 _ACEOF
17447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17449 ac_cs_version="\\
17450 gnupg config.status 2.4.3
17451 configured by $0, generated by GNU Autoconf 2.69,
17452   with options \\"\$ac_cs_config\\"
17453
17454 Copyright (C) 2012 Free Software Foundation, Inc.
17455 This config.status script is free software; the Free Software Foundation
17456 gives unlimited permission to copy, distribute and modify it."
17457
17458 ac_pwd='$ac_pwd'
17459 srcdir='$srcdir'
17460 INSTALL='$INSTALL'
17461 MKDIR_P='$MKDIR_P'
17462 AWK='$AWK'
17463 test -n "\$AWK" || AWK=awk
17464 _ACEOF
17465
17466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17467 # The default lists apply if the user does not specify any file.
17468 ac_need_defaults=:
17469 while test $# != 0
17470 do
17471   case $1 in
17472   --*=?*)
17473     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17474     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17475     ac_shift=:
17476     ;;
17477   --*=)
17478     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17479     ac_optarg=
17480     ac_shift=:
17481     ;;
17482   *)
17483     ac_option=$1
17484     ac_optarg=$2
17485     ac_shift=shift
17486     ;;
17487   esac
17488
17489   case $ac_option in
17490   # Handling of the options.
17491   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17492     ac_cs_recheck=: ;;
17493   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17494     $as_echo "$ac_cs_version"; exit ;;
17495   --config | --confi | --conf | --con | --co | --c )
17496     $as_echo "$ac_cs_config"; exit ;;
17497   --debug | --debu | --deb | --de | --d | -d )
17498     debug=: ;;
17499   --file | --fil | --fi | --f )
17500     $ac_shift
17501     case $ac_optarg in
17502     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17503     '') as_fn_error $? "missing file argument" ;;
17504     esac
17505     as_fn_append CONFIG_FILES " '$ac_optarg'"
17506     ac_need_defaults=false;;
17507   --header | --heade | --head | --hea )
17508     $ac_shift
17509     case $ac_optarg in
17510     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17511     esac
17512     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17513     ac_need_defaults=false;;
17514   --he | --h)
17515     # Conflict between --help and --header
17516     as_fn_error $? "ambiguous option: \`$1'
17517 Try \`$0 --help' for more information.";;
17518   --help | --hel | -h )
17519     $as_echo "$ac_cs_usage"; exit ;;
17520   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17521   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17522     ac_cs_silent=: ;;
17523
17524   # This is an error.
17525   -*) as_fn_error $? "unrecognized option: \`$1'
17526 Try \`$0 --help' for more information." ;;
17527
17528   *) as_fn_append ac_config_targets " $1"
17529      ac_need_defaults=false ;;
17530
17531   esac
17532   shift
17533 done
17534
17535 ac_configure_extra_args=
17536
17537 if $ac_cs_silent; then
17538   exec 6>/dev/null
17539   ac_configure_extra_args="$ac_configure_extra_args --silent"
17540 fi
17541
17542 _ACEOF
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 if \$ac_cs_recheck; then
17545   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17546   shift
17547   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17548   CONFIG_SHELL='$SHELL'
17549   export CONFIG_SHELL
17550   exec "\$@"
17551 fi
17552
17553 _ACEOF
17554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17555 exec 5>>config.log
17556 {
17557   echo
17558   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17559 ## Running $as_me. ##
17560 _ASBOX
17561   $as_echo "$ac_log"
17562 } >&5
17563
17564 _ACEOF
17565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17566 #
17567 # INIT-COMMANDS
17568 #
17569 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17570 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17571     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17572     # from automake < 1.5.
17573     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17574     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17575     LINGUAS="${LINGUAS-%UNSET%}"
17576
17577
17578 _ACEOF
17579
17580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17581
17582 # Handling of arguments.
17583 for ac_config_target in $ac_config_targets
17584 do
17585   case $ac_config_target in
17586     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17587     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17588     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17589     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17590     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17591     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17592     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17593     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17594     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17595     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17596     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17597     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17598     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17599     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17600     "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17601     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17602     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17603     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17604     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17605     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17606     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17607     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17608     "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17609     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17610     "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17611     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17612     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17613     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17614     "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
17615     "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
17616     "kbx/keyboxd.w32-manifest") CONFIG_FILES="$CONFIG_FILES kbx/keyboxd.w32-manifest" ;;
17617     "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
17618     "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
17619     "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
17620     "dirmngr/dirmngr_ldap.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr_ldap.w32-manifest" ;;
17621     "dirmngr/dirmngr-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr-client.w32-manifest" ;;
17622     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17623     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17624     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17625     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17626     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17627     "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17628
17629   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17630   esac
17631 done
17632
17633
17634 # If the user did not use the arguments to specify the items to instantiate,
17635 # then the envvar interface is used.  Set only those that are not.
17636 # We use the long form for the default assignment because of an extremely
17637 # bizarre bug on SunOS 4.1.3.
17638 if $ac_need_defaults; then
17639   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17640   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17641   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17642 fi
17643
17644 # Have a temporary directory for convenience.  Make it in the build tree
17645 # simply because there is no reason against having it here, and in addition,
17646 # creating and moving files from /tmp can sometimes cause problems.
17647 # Hook for its removal unless debugging.
17648 # Note that there is a small window in which the directory will not be cleaned:
17649 # after its creation but before its name has been assigned to `$tmp'.
17650 $debug ||
17651 {
17652   tmp= ac_tmp=
17653   trap 'exit_status=$?
17654   : "${ac_tmp:=$tmp}"
17655   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17656 ' 0
17657   trap 'as_fn_exit 1' 1 2 13 15
17658 }
17659 # Create a (secure) tmp directory for tmp files.
17660
17661 {
17662   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17663   test -d "$tmp"
17664 }  ||
17665 {
17666   tmp=./conf$$-$RANDOM
17667   (umask 077 && mkdir "$tmp")
17668 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17669 ac_tmp=$tmp
17670
17671 # Set up the scripts for CONFIG_FILES section.
17672 # No need to generate them if there are no CONFIG_FILES.
17673 # This happens for instance with `./config.status config.h'.
17674 if test -n "$CONFIG_FILES"; then
17675
17676
17677 ac_cr=`echo X | tr X '\015'`
17678 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17679 # But we know of no other shell where ac_cr would be empty at this
17680 # point, so we can use a bashism as a fallback.
17681 if test "x$ac_cr" = x; then
17682   eval ac_cr=\$\'\\r\'
17683 fi
17684 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17685 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17686   ac_cs_awk_cr='\\r'
17687 else
17688   ac_cs_awk_cr=$ac_cr
17689 fi
17690
17691 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17692 _ACEOF
17693
17694
17695 {
17696   echo "cat >conf$$subs.awk <<_ACEOF" &&
17697   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17698   echo "_ACEOF"
17699 } >conf$$subs.sh ||
17700   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17701 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17702 ac_delim='%!_!# '
17703 for ac_last_try in false false false false false :; do
17704   . ./conf$$subs.sh ||
17705     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17706
17707   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17708   if test $ac_delim_n = $ac_delim_num; then
17709     break
17710   elif $ac_last_try; then
17711     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17712   else
17713     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17714   fi
17715 done
17716 rm -f conf$$subs.sh
17717
17718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17720 _ACEOF
17721 sed -n '
17722 h
17723 s/^/S["/; s/!.*/"]=/
17724 p
17725 g
17726 s/^[^!]*!//
17727 :repl
17728 t repl
17729 s/'"$ac_delim"'$//
17730 t delim
17731 :nl
17732 h
17733 s/\(.\{148\}\)..*/\1/
17734 t more1
17735 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17736 p
17737 n
17738 b repl
17739 :more1
17740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17741 p
17742 g
17743 s/.\{148\}//
17744 t nl
17745 :delim
17746 h
17747 s/\(.\{148\}\)..*/\1/
17748 t more2
17749 s/["\\]/\\&/g; s/^/"/; s/$/"/
17750 p
17751 b
17752 :more2
17753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17754 p
17755 g
17756 s/.\{148\}//
17757 t delim
17758 ' <conf$$subs.awk | sed '
17759 /^[^""]/{
17760   N
17761   s/\n//
17762 }
17763 ' >>$CONFIG_STATUS || ac_write_fail=1
17764 rm -f conf$$subs.awk
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766 _ACAWK
17767 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17768   for (key in S) S_is_set[key] = 1
17769   FS = "\a"
17770
17771 }
17772 {
17773   line = $ 0
17774   nfields = split(line, field, "@")
17775   substed = 0
17776   len = length(field[1])
17777   for (i = 2; i < nfields; i++) {
17778     key = field[i]
17779     keylen = length(key)
17780     if (S_is_set[key]) {
17781       value = S[key]
17782       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17783       len += length(value) + length(field[++i])
17784       substed = 1
17785     } else
17786       len += 1 + keylen
17787   }
17788
17789   print line
17790 }
17791
17792 _ACAWK
17793 _ACEOF
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17796   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17797 else
17798   cat
17799 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17800   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17801 _ACEOF
17802
17803 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17804 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17805 # trailing colons and then remove the whole line if VPATH becomes empty
17806 # (actually we leave an empty line to preserve line numbers).
17807 if test "x$srcdir" = x.; then
17808   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17809 h
17810 s///
17811 s/^/:/
17812 s/[      ]*$/:/
17813 s/:\$(srcdir):/:/g
17814 s/:\${srcdir}:/:/g
17815 s/:@srcdir@:/:/g
17816 s/^:*//
17817 s/:*$//
17818 x
17819 s/\(=[   ]*\).*/\1/
17820 G
17821 s/\n//
17822 s/^[^=]*=[       ]*$//
17823 }'
17824 fi
17825
17826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17827 fi # test -n "$CONFIG_FILES"
17828
17829 # Set up the scripts for CONFIG_HEADERS section.
17830 # No need to generate them if there are no CONFIG_HEADERS.
17831 # This happens for instance with `./config.status Makefile'.
17832 if test -n "$CONFIG_HEADERS"; then
17833 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17834 BEGIN {
17835 _ACEOF
17836
17837 # Transform confdefs.h into an awk script `defines.awk', embedded as
17838 # here-document in config.status, that substitutes the proper values into
17839 # config.h.in to produce config.h.
17840
17841 # Create a delimiter string that does not exist in confdefs.h, to ease
17842 # handling of long lines.
17843 ac_delim='%!_!# '
17844 for ac_last_try in false false :; do
17845   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17846   if test -z "$ac_tt"; then
17847     break
17848   elif $ac_last_try; then
17849     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17850   else
17851     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17852   fi
17853 done
17854
17855 # For the awk script, D is an array of macro values keyed by name,
17856 # likewise P contains macro parameters if any.  Preserve backslash
17857 # newline sequences.
17858
17859 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17860 sed -n '
17861 s/.\{148\}/&'"$ac_delim"'/g
17862 t rset
17863 :rset
17864 s/^[     ]*#[    ]*define[       ][      ]*/ /
17865 t def
17866 d
17867 :def
17868 s/\\$//
17869 t bsnl
17870 s/["\\]/\\&/g
17871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17872 D["\1"]=" \3"/p
17873 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17874 d
17875 :bsnl
17876 s/["\\]/\\&/g
17877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17878 D["\1"]=" \3\\\\\\n"\\/p
17879 t cont
17880 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17881 t cont
17882 d
17883 :cont
17884 n
17885 s/.\{148\}/&'"$ac_delim"'/g
17886 t clear
17887 :clear
17888 s/\\$//
17889 t bsnlc
17890 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17891 d
17892 :bsnlc
17893 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17894 b cont
17895 ' <confdefs.h | sed '
17896 s/'"$ac_delim"'/"\\\
17897 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17898
17899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17900   for (key in D) D_is_set[key] = 1
17901   FS = "\a"
17902 }
17903 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17904   line = \$ 0
17905   split(line, arg, " ")
17906   if (arg[1] == "#") {
17907     defundef = arg[2]
17908     mac1 = arg[3]
17909   } else {
17910     defundef = substr(arg[1], 2)
17911     mac1 = arg[2]
17912   }
17913   split(mac1, mac2, "(") #)
17914   macro = mac2[1]
17915   prefix = substr(line, 1, index(line, defundef) - 1)
17916   if (D_is_set[macro]) {
17917     # Preserve the white space surrounding the "#".
17918     print prefix "define", macro P[macro] D[macro]
17919     next
17920   } else {
17921     # Replace #undef with comments.  This is necessary, for example,
17922     # in the case of _POSIX_SOURCE, which is predefined and required
17923     # on some systems where configure will not decide to define it.
17924     if (defundef == "undef") {
17925       print "/*", prefix defundef, macro, "*/"
17926       next
17927     }
17928   }
17929 }
17930 { print }
17931 _ACAWK
17932 _ACEOF
17933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17934   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17935 fi # test -n "$CONFIG_HEADERS"
17936
17937
17938 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17939 shift
17940 for ac_tag
17941 do
17942   case $ac_tag in
17943   :[FHLC]) ac_mode=$ac_tag; continue;;
17944   esac
17945   case $ac_mode$ac_tag in
17946   :[FHL]*:*);;
17947   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17948   :[FH]-) ac_tag=-:-;;
17949   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17950   esac
17951   ac_save_IFS=$IFS
17952   IFS=:
17953   set x $ac_tag
17954   IFS=$ac_save_IFS
17955   shift
17956   ac_file=$1
17957   shift
17958
17959   case $ac_mode in
17960   :L) ac_source=$1;;
17961   :[FH])
17962     ac_file_inputs=
17963     for ac_f
17964     do
17965       case $ac_f in
17966       -) ac_f="$ac_tmp/stdin";;
17967       *) # Look for the file first in the build tree, then in the source tree
17968          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17969          # because $ac_f cannot contain `:'.
17970          test -f "$ac_f" ||
17971            case $ac_f in
17972            [\\/$]*) false;;
17973            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17974            esac ||
17975            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17976       esac
17977       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17978       as_fn_append ac_file_inputs " '$ac_f'"
17979     done
17980
17981     # Let's still pretend it is `configure' which instantiates (i.e., don't
17982     # use $as_me), people would be surprised to read:
17983     #    /* config.h.  Generated by config.status.  */
17984     configure_input='Generated from '`
17985           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17986         `' by configure.'
17987     if test x"$ac_file" != x-; then
17988       configure_input="$ac_file.  $configure_input"
17989       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17990 $as_echo "$as_me: creating $ac_file" >&6;}
17991     fi
17992     # Neutralize special characters interpreted by sed in replacement strings.
17993     case $configure_input in #(
17994     *\&* | *\|* | *\\* )
17995        ac_sed_conf_input=`$as_echo "$configure_input" |
17996        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17997     *) ac_sed_conf_input=$configure_input;;
17998     esac
17999
18000     case $ac_tag in
18001     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18002       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18003     esac
18004     ;;
18005   esac
18006
18007   ac_dir=`$as_dirname -- "$ac_file" ||
18008 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18009          X"$ac_file" : 'X\(//\)[^/]' \| \
18010          X"$ac_file" : 'X\(//\)$' \| \
18011          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18012 $as_echo X"$ac_file" |
18013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18014             s//\1/
18015             q
18016           }
18017           /^X\(\/\/\)[^/].*/{
18018             s//\1/
18019             q
18020           }
18021           /^X\(\/\/\)$/{
18022             s//\1/
18023             q
18024           }
18025           /^X\(\/\).*/{
18026             s//\1/
18027             q
18028           }
18029           s/.*/./; q'`
18030   as_dir="$ac_dir"; as_fn_mkdir_p
18031   ac_builddir=.
18032
18033 case "$ac_dir" in
18034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18035 *)
18036   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18037   # A ".." for each directory in $ac_dir_suffix.
18038   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18039   case $ac_top_builddir_sub in
18040   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18041   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18042   esac ;;
18043 esac
18044 ac_abs_top_builddir=$ac_pwd
18045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18046 # for backward compatibility:
18047 ac_top_builddir=$ac_top_build_prefix
18048
18049 case $srcdir in
18050   .)  # We are building in place.
18051     ac_srcdir=.
18052     ac_top_srcdir=$ac_top_builddir_sub
18053     ac_abs_top_srcdir=$ac_pwd ;;
18054   [\\/]* | ?:[\\/]* )  # Absolute name.
18055     ac_srcdir=$srcdir$ac_dir_suffix;
18056     ac_top_srcdir=$srcdir
18057     ac_abs_top_srcdir=$srcdir ;;
18058   *) # Relative name.
18059     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18060     ac_top_srcdir=$ac_top_build_prefix$srcdir
18061     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18062 esac
18063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18064
18065
18066   case $ac_mode in
18067   :F)
18068   #
18069   # CONFIG_FILE
18070   #
18071
18072   case $INSTALL in
18073   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18074   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18075   esac
18076   ac_MKDIR_P=$MKDIR_P
18077   case $MKDIR_P in
18078   [\\/$]* | ?:[\\/]* ) ;;
18079   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18080   esac
18081 _ACEOF
18082
18083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18084 # If the template does not know about datarootdir, expand it.
18085 # FIXME: This hack should be removed a few years after 2.60.
18086 ac_datarootdir_hack=; ac_datarootdir_seen=
18087 ac_sed_dataroot='
18088 /datarootdir/ {
18089   p
18090   q
18091 }
18092 /@datadir@/p
18093 /@docdir@/p
18094 /@infodir@/p
18095 /@localedir@/p
18096 /@mandir@/p'
18097 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18098 *datarootdir*) ac_datarootdir_seen=yes;;
18099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18100   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18101 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18102 _ACEOF
18103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104   ac_datarootdir_hack='
18105   s&@datadir@&$datadir&g
18106   s&@docdir@&$docdir&g
18107   s&@infodir@&$infodir&g
18108   s&@localedir@&$localedir&g
18109   s&@mandir@&$mandir&g
18110   s&\\\${datarootdir}&$datarootdir&g' ;;
18111 esac
18112 _ACEOF
18113
18114 # Neutralize VPATH when `$srcdir' = `.'.
18115 # Shell code in configure.ac might set extrasub.
18116 # FIXME: do we really want to maintain this feature?
18117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18118 ac_sed_extra="$ac_vpsub
18119 $extrasub
18120 _ACEOF
18121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18122 :t
18123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18124 s|@configure_input@|$ac_sed_conf_input|;t t
18125 s&@top_builddir@&$ac_top_builddir_sub&;t t
18126 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18127 s&@srcdir@&$ac_srcdir&;t t
18128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18129 s&@top_srcdir@&$ac_top_srcdir&;t t
18130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18131 s&@builddir@&$ac_builddir&;t t
18132 s&@abs_builddir@&$ac_abs_builddir&;t t
18133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18134 s&@INSTALL@&$ac_INSTALL&;t t
18135 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18136 $ac_datarootdir_hack
18137 "
18138 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18139   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18140
18141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18142   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18143   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18144       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18146 which seems to be undefined.  Please make sure it is defined" >&5
18147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18148 which seems to be undefined.  Please make sure it is defined" >&2;}
18149
18150   rm -f "$ac_tmp/stdin"
18151   case $ac_file in
18152   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18153   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18154   esac \
18155   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18156  ;;
18157   :H)
18158   #
18159   # CONFIG_HEADER
18160   #
18161   if test x"$ac_file" != x-; then
18162     {
18163       $as_echo "/* $configure_input  */" \
18164       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18165     } >"$ac_tmp/config.h" \
18166       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18167     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18168       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18170     else
18171       rm -f "$ac_file"
18172       mv "$ac_tmp/config.h" "$ac_file" \
18173         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18174     fi
18175   else
18176     $as_echo "/* $configure_input  */" \
18177       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18178       || as_fn_error $? "could not create -" "$LINENO" 5
18179   fi
18180 # Compute "$ac_file"'s index in $config_headers.
18181 _am_arg="$ac_file"
18182 _am_stamp_count=1
18183 for _am_header in $config_headers :; do
18184   case $_am_header in
18185     $_am_arg | $_am_arg:* )
18186       break ;;
18187     * )
18188       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18189   esac
18190 done
18191 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18192 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18193          X"$_am_arg" : 'X\(//\)[^/]' \| \
18194          X"$_am_arg" : 'X\(//\)$' \| \
18195          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18196 $as_echo X"$_am_arg" |
18197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18198             s//\1/
18199             q
18200           }
18201           /^X\(\/\/\)[^/].*/{
18202             s//\1/
18203             q
18204           }
18205           /^X\(\/\/\)$/{
18206             s//\1/
18207             q
18208           }
18209           /^X\(\/\).*/{
18210             s//\1/
18211             q
18212           }
18213           s/.*/./; q'`/stamp-h$_am_stamp_count
18214  ;;
18215
18216   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18217 $as_echo "$as_me: executing $ac_file commands" >&6;}
18218  ;;
18219   esac
18220
18221
18222   case $ac_file$ac_mode in
18223     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18224   # Older Autoconf quotes --file arguments for eval, but not when files
18225   # are listed without --file.  Let's play safe and only enable the eval
18226   # if we detect the quoting.
18227   # TODO: see whether this extra hack can be removed once we start
18228   # requiring Autoconf 2.70 or later.
18229   case $CONFIG_FILES in #(
18230   *\'*) :
18231     eval set x "$CONFIG_FILES" ;; #(
18232   *) :
18233     set x $CONFIG_FILES ;; #(
18234   *) :
18235      ;;
18236 esac
18237   shift
18238   # Used to flag and report bootstrapping failures.
18239   am_rc=0
18240   for am_mf
18241   do
18242     # Strip MF so we end up with the name of the file.
18243     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18244     # Check whether this is an Automake generated Makefile which includes
18245     # dependency-tracking related rules and includes.
18246     # Grep'ing the whole file directly is not great: AIX grep has a line
18247     # limit of 2048, but all sed's we know have understand at least 4000.
18248     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18249       || continue
18250     am_dirpart=`$as_dirname -- "$am_mf" ||
18251 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18252          X"$am_mf" : 'X\(//\)[^/]' \| \
18253          X"$am_mf" : 'X\(//\)$' \| \
18254          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18255 $as_echo X"$am_mf" |
18256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18257             s//\1/
18258             q
18259           }
18260           /^X\(\/\/\)[^/].*/{
18261             s//\1/
18262             q
18263           }
18264           /^X\(\/\/\)$/{
18265             s//\1/
18266             q
18267           }
18268           /^X\(\/\).*/{
18269             s//\1/
18270             q
18271           }
18272           s/.*/./; q'`
18273     am_filepart=`$as_basename -- "$am_mf" ||
18274 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18275          X"$am_mf" : 'X\(//\)$' \| \
18276          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18277 $as_echo X/"$am_mf" |
18278     sed '/^.*\/\([^/][^/]*\)\/*$/{
18279             s//\1/
18280             q
18281           }
18282           /^X\/\(\/\/\)$/{
18283             s//\1/
18284             q
18285           }
18286           /^X\/\(\/\).*/{
18287             s//\1/
18288             q
18289           }
18290           s/.*/./; q'`
18291     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18292       && sed -e '/# am--include-marker/d' "$am_filepart" \
18293         | $MAKE -f - am--depfiles" >&5
18294    (cd "$am_dirpart" \
18295       && sed -e '/# am--include-marker/d' "$am_filepart" \
18296         | $MAKE -f - am--depfiles) >&5 2>&5
18297    ac_status=$?
18298    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299    (exit $ac_status); } || am_rc=$?
18300   done
18301   if test $am_rc -ne 0; then
18302     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18304 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18305     for automatic dependency tracking.  If GNU make was not used, consider
18306     re-running the configure script with MAKE=\"gmake\" (or whatever is
18307     necessary).  You can also try re-running configure with the
18308     '--disable-dependency-tracking' option to at least be able to build
18309     the package (albeit without support for automatic dependency tracking).
18310 See \`config.log' for more details" "$LINENO" 5; }
18311   fi
18312   { am_dirpart=; unset am_dirpart;}
18313   { am_filepart=; unset am_filepart;}
18314   { am_mf=; unset am_mf;}
18315   { am_rc=; unset am_rc;}
18316   rm -f conftest-deps.mk
18317 }
18318  ;;
18319     "po-directories":C)
18320     for ac_file in $CONFIG_FILES; do
18321       # Support "outfile[:infile[:infile...]]"
18322       case "$ac_file" in
18323         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18324       esac
18325       # PO directories have a Makefile.in generated from Makefile.in.in.
18326       case "$ac_file" in */Makefile.in)
18327         # Adjust a relative srcdir.
18328         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18329         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18330         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18331         # In autoconf-2.13 it is called $ac_given_srcdir.
18332         # In autoconf-2.50 it is called $srcdir.
18333         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18334         case "$ac_given_srcdir" in
18335           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18336           /*) top_srcdir="$ac_given_srcdir" ;;
18337           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18338         esac
18339         # Treat a directory as a PO directory if and only if it has a
18340         # POTFILES.in file. This allows packages to have multiple PO
18341         # directories under different names or in different locations.
18342         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18343           rm -f "$ac_dir/POTFILES"
18344           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18345           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18346           POMAKEFILEDEPS="POTFILES.in"
18347           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18348           # on $ac_dir but don't depend on user-specified configuration
18349           # parameters.
18350           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18351             # The LINGUAS file contains the set of available languages.
18352             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18353               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18354             fi
18355             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18356             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18357             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18358             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18359           else
18360             # The set of available languages was given in configure.in.
18361             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18362             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18363           fi
18364           # Compute POFILES
18365           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18366           # Compute UPDATEPOFILES
18367           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18368           # Compute DUMMYPOFILES
18369           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18370           # Compute GMOFILES
18371           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18372           case "$ac_given_srcdir" in
18373             .) srcdirpre= ;;
18374             *) srcdirpre='$(srcdir)/' ;;
18375           esac
18376           POFILES=
18377           UPDATEPOFILES=
18378           DUMMYPOFILES=
18379           GMOFILES=
18380           for lang in $ALL_LINGUAS; do
18381             POFILES="$POFILES $srcdirpre$lang.po"
18382             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18383             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18384             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18385           done
18386           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18387           # environment variable.
18388           INST_LINGUAS=
18389           if test -n "$ALL_LINGUAS"; then
18390             for presentlang in $ALL_LINGUAS; do
18391               useit=no
18392               if test "%UNSET%" != "$LINGUAS"; then
18393                 desiredlanguages="$LINGUAS"
18394               else
18395                 desiredlanguages="$ALL_LINGUAS"
18396               fi
18397               for desiredlang in $desiredlanguages; do
18398                 # Use the presentlang catalog if desiredlang is
18399                 #   a. equal to presentlang, or
18400                 #   b. a variant of presentlang (because in this case,
18401                 #      presentlang can be used as a fallback for messages
18402                 #      which are not translated in the desiredlang catalog).
18403                 case "$desiredlang" in
18404                   "$presentlang"*) useit=yes;;
18405                 esac
18406               done
18407               if test $useit = yes; then
18408                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18409               fi
18410             done
18411           fi
18412           CATALOGS=
18413           if test -n "$INST_LINGUAS"; then
18414             for lang in $INST_LINGUAS; do
18415               CATALOGS="$CATALOGS $lang.gmo"
18416             done
18417           fi
18418           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18419           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18420           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18421             if test -f "$f"; then
18422               case "$f" in
18423                 *.orig | *.bak | *~) ;;
18424                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18425               esac
18426             fi
18427           done
18428         fi
18429         ;;
18430       esac
18431     done ;;
18432
18433   esac
18434 done # for ac_tag
18435
18436
18437 as_fn_exit 0
18438 _ACEOF
18439 ac_clean_files=$ac_clean_files_save
18440
18441 test $ac_write_fail = 0 ||
18442   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18443
18444
18445 # configure is writing to config.log, and then calls config.status.
18446 # config.status does its own redirection, appending to config.log.
18447 # Unfortunately, on DOS this fails, as config.log is still kept open
18448 # by configure, so config.status won't be able to write to it; its
18449 # output is simply discarded.  So we exec the FD to /dev/null,
18450 # effectively closing config.log, so it can be properly (re)opened and
18451 # appended to by config.status.  When coming back to configure, we
18452 # need to make the FD available again.
18453 if test "$no_create" != yes; then
18454   ac_cs_success=:
18455   ac_config_status_args=
18456   test "$silent" = yes &&
18457     ac_config_status_args="$ac_config_status_args --quiet"
18458   exec 5>/dev/null
18459   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18460   exec 5>>config.log
18461   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18462   # would make configure fail if this is the last instruction.
18463   $ac_cs_success || as_fn_exit 1
18464 fi
18465 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18467 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18468 fi
18469
18470
18471 show_tss_type=
18472 if test "$build_tpm2d" = "yes"; then
18473   show_tss_type="($have_libtss)"
18474 fi
18475
18476 echo "
18477         GnuPG v${VERSION} has been configured as follows:
18478
18479         Revision:  d073f26d8  (53363)
18480         Platform:  $PRINTABLE_OS_NAME ($host)
18481
18482         OpenPGP:   $build_gpg
18483         S/MIME:    $build_gpgsm
18484         Agent:     $build_agent
18485         Smartcard: $build_scdaemon $build_scdaemon_extra
18486         TPM:       $build_tpm2d $show_tss_type
18487         G13:       $build_g13
18488         Dirmngr:   $build_dirmngr
18489         Keyboxd:   $build_keyboxd
18490         Gpgtar:    $build_gpgtar
18491         WKS tools: $build_wks_tools
18492
18493         Protect tool:       $show_gnupg_protect_tool_pgm
18494         LDAP wrapper:       $show_gnupg_dirmngr_ldap_pgm
18495         Default agent:      $show_gnupg_agent_pgm
18496         Default pinentry:   $show_gnupg_pinentry_pgm
18497         Default scdaemon:   $show_gnupg_scdaemon_pgm
18498         Default keyboxd:    $show_gnupg_keyboxd_pgm
18499         Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18500         Default dirmngr:    $show_gnupg_dirmngr_pgm
18501
18502         Dirmngr auto start:  $dirmngr_auto_start
18503         Readline support:    $gnupg_cv_have_readline
18504         LDAP support:        $gnupg_have_ldap
18505         TLS support:         $use_tls_library
18506         TOFU support:        $use_tofu
18507         Tor support:         $show_tor_support
18508 "
18509 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18510 cat <<G10EOF
18511         Warning: TPM support is compiled in but no software TPM
18512                  for testing was discovered. TPM tests are disabled
18513
18514 G10EOF
18515 fi
18516 if test "x${gpg_config_script_warn}" != x; then
18517 cat <<G10EOF
18518         Warning: Mismatches between the target platform and the
18519                  to be used libraries have been detected for:
18520                   ${gpg_config_script_warn}
18521                  Please check above for more warning messages.
18522
18523 G10EOF
18524 fi
18525 if test "${build_gpg}" != "yes"; then
18526 cat <<G10EOF
18527         Warning: The component "gpg" is used by other components as
18528                  well as for the test suite.  You have disabled
18529                  this component and thus other things won't work.
18530
18531 G10EOF
18532 fi
18533 if test "${run_tests}" != "yes"; then
18534 cat <<G10EOF
18535         Warning: The use of the test suite has been disabled!
18536                  This is in almost all cases a bad idea.  Take care.
18537
18538 G10EOF
18539 fi