Imported Upstream version 2.2.26
[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.2.26.
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.2.26'
584 PACKAGE_STRING='gnupg 2.2.26'
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_DIRMNGR_FALSE
651 BUILD_DIRMNGR_TRUE
652 BUILD_G13_FALSE
653 BUILD_G13_TRUE
654 BUILD_SCDAEMON_FALSE
655 BUILD_SCDAEMON_TRUE
656 BUILD_AGENT_FALSE
657 BUILD_AGENT_TRUE
658 BUILD_GPGSM_FALSE
659 BUILD_GPGSM_TRUE
660 BUILD_GPG_FALSE
661 BUILD_GPG_TRUE
662 USE_C99_CFLAGS
663 W32SOCKLIBS
664 NETLIBS
665 CROSS_COMPILING_FALSE
666 CROSS_COMPILING_TRUE
667 LIBREADLINE
668 ZLIBS
669 ENABLE_BZIP2_SUPPORT_FALSE
670 ENABLE_BZIP2_SUPPORT_TRUE
671 SYS_SOCKET_H
672 BUILD_INCLUDED_LIBINTL
673 USE_INCLUDED_LIBINTL
674 POSUB
675 LTLIBINTL
676 LIBINTL
677 INTLLIBS
678 INTL_MACOSX_LIBS
679 XGETTEXT_EXTRA_OPTIONS
680 MSGMERGE
681 XGETTEXT_015
682 XGETTEXT
683 GMSGFMT_015
684 MSGFMT_015
685 GMSGFMT
686 MSGFMT
687 GETTEXT_MACRO_VERSION
688 USE_NLS
689 LTLIBICONV
690 LIBICONV
691 SENDMAIL
692 USE_LDAPWRAPPER_FALSE
693 USE_LDAPWRAPPER_TRUE
694 USE_LDAP_FALSE
695 USE_LDAP_TRUE
696 LBER_LIBS
697 LDAP_CPPFLAGS
698 LDAPLIBS
699 GPGKEYS_LDAP
700 DNSLIBS
701 LIBGNUTLS_LIBS
702 LIBGNUTLS_CFLAGS
703 NTBTLS_LIBS
704 NTBTLS_CFLAGS
705 NTBTLS_CONFIG
706 NPTH_LIBS
707 NPTH_CFLAGS
708 NPTH_CONFIG
709 SHRED
710 LIBUTIL_LIBS
711 FUSERMOUNT
712 ENCFS
713 SQLITE3_FALSE
714 SQLITE3_TRUE
715 SQLITE3_LIBS
716 SQLITE3_CFLAGS
717 DL_LIBS
718 LIBUSB_CPPFLAGS
719 LIBUSB_LIBS
720 KSBA_LIBS
721 KSBA_CFLAGS
722 KSBA_CONFIG
723 LIBASSUAN_LIBS
724 LIBASSUAN_CFLAGS
725 LIBASSUAN_CONFIG
726 LIBGCRYPT_LIBS
727 LIBGCRYPT_CFLAGS
728 LIBGCRYPT_CONFIG
729 GPG_ERROR_MT_LIBS
730 GPG_ERROR_MT_CFLAGS
731 GPG_ERROR_LIBS
732 GPG_ERROR_CFLAGS
733 GPG_ERROR_CONFIG
734 HAVE_ANDROID_SYSTEM_FALSE
735 HAVE_ANDROID_SYSTEM_TRUE
736 HAVE_W32CE_SYSTEM_FALSE
737 HAVE_W32CE_SYSTEM_TRUE
738 HAVE_W32_SYSTEM_FALSE
739 HAVE_W32_SYSTEM_TRUE
740 USE_SIMPLE_GETTEXT_FALSE
741 USE_SIMPLE_GETTEXT_TRUE
742 HAVE_DOSISH_SYSTEM_FALSE
743 HAVE_DOSISH_SYSTEM_TRUE
744 PKG_CONFIG_LIBDIR
745 PKG_CONFIG_PATH
746 PKG_CONFIG
747 CC_FOR_BUILD
748 AWK_HEX_NUMBER_OPTION
749 HAVE_USTAR_FALSE
750 HAVE_USTAR_TRUE
751 TAR
752 HAVE_YAT2M_FALSE
753 HAVE_YAT2M_TRUE
754 YAT2M
755 WINDRES
756 PERL
757 AR
758 RANLIB
759 LN_S
760 SYSROOT
761 MAINT
762 MAINTAINER_MODE_FALSE
763 MAINTAINER_MODE_TRUE
764 USE_LIBDNS_FALSE
765 USE_LIBDNS_TRUE
766 USE_GPG2_HACK_FALSE
767 USE_GPG2_HACK_TRUE
768 GNUPG_DIRMNGR_LDAP_PGM_FALSE
769 GNUPG_DIRMNGR_LDAP_PGM_TRUE
770 GNUPG_DIRMNGR_LDAP_PGM
771 GNUPG_PROTECT_TOOL_PGM_FALSE
772 GNUPG_PROTECT_TOOL_PGM_TRUE
773 GNUPG_PROTECT_TOOL_PGM
774 GNUPG_DIRMNGR_PGM_FALSE
775 GNUPG_DIRMNGR_PGM_TRUE
776 GNUPG_DIRMNGR_PGM
777 GNUPG_SCDAEMON_PGM_FALSE
778 GNUPG_SCDAEMON_PGM_TRUE
779 GNUPG_SCDAEMON_PGM
780 GNUPG_PINENTRY_PGM_FALSE
781 GNUPG_PINENTRY_PGM_TRUE
782 GNUPG_PINENTRY_PGM
783 GNUPG_AGENT_PGM_FALSE
784 GNUPG_AGENT_PGM_TRUE
785 GNUPG_AGENT_PGM
786 PACKAGE_GT
787 EGREP
788 GREP
789 CPP
790 am__fastdepCC_FALSE
791 am__fastdepCC_TRUE
792 CCDEPMODE
793 am__nodep
794 AMDEPBACKSLASH
795 AMDEP_FALSE
796 AMDEP_TRUE
797 am__include
798 DEPDIR
799 OBJEXT
800 EXEEXT
801 ac_ct_CC
802 CPPFLAGS
803 LDFLAGS
804 CFLAGS
805 CC
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 AM_BACKSLASH
815 AM_DEFAULT_VERBOSITY
816 AM_DEFAULT_V
817 AM_V
818 am__untar
819 am__tar
820 AMTAR
821 am__leading_dot
822 SET_MAKE
823 AWK
824 mkdir_p
825 MKDIR_P
826 INSTALL_STRIP_PROGRAM
827 STRIP
828 install_sh
829 MAKEINFO
830 AUTOHEADER
831 AUTOMAKE
832 AUTOCONF
833 ACLOCAL
834 VERSION
835 PACKAGE
836 CYGPATH_W
837 am__isrc
838 INSTALL_DATA
839 INSTALL_SCRIPT
840 INSTALL_PROGRAM
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 runstatedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL
880 am__quote'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_silent_rules
885 enable_dependency_tracking
886 enable_gpg
887 enable_gpgsm
888 enable_scdaemon
889 enable_g13
890 enable_dirmngr
891 enable_doc
892 enable_gpgtar
893 enable_wks_tools
894 with_agent_pgm
895 with_pinentry_pgm
896 with_scdaemon_pgm
897 with_dirmngr_pgm
898 with_protect_tool_pgm
899 with_dirmngr_ldap_pgm
900 enable_gpg_is_gpg2
901 enable_selinux_support
902 enable_large_secmem
903 with_agent_s2k_calibration
904 enable_trust_models
905 enable_tofu
906 enable_libdns
907 enable_gpg_rsa
908 enable_gpg_ecdh
909 enable_gpg_ecdsa
910 enable_gpg_eddsa
911 enable_gpg_idea
912 enable_gpg_cast5
913 enable_gpg_blowfish
914 enable_gpg_aes128
915 enable_gpg_aes192
916 enable_gpg_aes256
917 enable_gpg_twofish
918 enable_gpg_camellia128
919 enable_gpg_camellia192
920 enable_gpg_camellia256
921 enable_gpg_md5
922 enable_gpg_rmd160
923 enable_gpg_sha224
924 enable_gpg_sha384
925 enable_gpg_sha512
926 enable_zip
927 enable_bzip2
928 enable_exec
929 enable_photo_viewers
930 with_photo_viewer
931 enable_key_cache
932 with_capabilities
933 enable_card_support
934 enable_ccid_driver
935 enable_dirmngr_auto_start
936 enable_maintainer_mode
937 enable_largefile
938 with_tar
939 with_libgpg_error_prefix
940 with_gpg_error_prefix
941 with_libgcrypt_prefix
942 with_libassuan_prefix
943 with_ksba_prefix
944 enable_sqlite
945 with_npth_prefix
946 enable_npth_debug
947 enable_ntbtls
948 with_ntbtls_prefix
949 enable_gnutls
950 with_default_trust_store_file
951 enable_ldap
952 with_ldap
953 with_mailprog
954 with_gnu_ld
955 enable_rpath
956 with_libiconv_prefix
957 enable_nls
958 with_libintl_prefix
959 enable_endian_check
960 with_zlib
961 with_bzip2
962 with_readline
963 enable_optimization
964 enable_werror
965 enable_all_tests
966 enable_tests
967 enable_gnupg_builddir_envvar
968 enable_run_gnupg_user_socket
969 enable_build_timestamp
970 '
971       ac_precious_vars='build_alias
972 host_alias
973 target_alias
974 CC
975 CFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
979 CPP
980 SYSROOT
981 YAT2M
982 CC_FOR_BUILD
983 PKG_CONFIG
984 PKG_CONFIG_PATH
985 PKG_CONFIG_LIBDIR
986 SQLITE3_CFLAGS
987 SQLITE3_LIBS
988 LIBGNUTLS_CFLAGS
989 LIBGNUTLS_LIBS'
990
991
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1013
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 runstatedir='${localstatedir}/run'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1040
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1044 do
1045   # If the previous option needs an argument, assign it.
1046   if test -n "$ac_prev"; then
1047     eval $ac_prev=\$ac_option
1048     ac_prev=
1049     continue
1050   fi
1051
1052   case $ac_option in
1053   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054   *=)   ac_optarg= ;;
1055   *)    ac_optarg=yes ;;
1056   esac
1057
1058   # Accept the important Cygnus configure options, so we can diagnose typos.
1059
1060   case $ac_dashdash$ac_option in
1061   --)
1062     ac_dashdash=yes ;;
1063
1064   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065     ac_prev=bindir ;;
1066   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067     bindir=$ac_optarg ;;
1068
1069   -build | --build | --buil | --bui | --bu)
1070     ac_prev=build_alias ;;
1071   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072     build_alias=$ac_optarg ;;
1073
1074   -cache-file | --cache-file | --cache-fil | --cache-fi \
1075   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076     ac_prev=cache_file ;;
1077   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079     cache_file=$ac_optarg ;;
1080
1081   --config-cache | -C)
1082     cache_file=config.cache ;;
1083
1084   -datadir | --datadir | --datadi | --datad)
1085     ac_prev=datadir ;;
1086   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087     datadir=$ac_optarg ;;
1088
1089   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090   | --dataroo | --dataro | --datar)
1091     ac_prev=datarootdir ;;
1092   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094     datarootdir=$ac_optarg ;;
1095
1096   -disable-* | --disable-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       as_fn_error $? "invalid feature name: $ac_useropt"
1101     ac_useropt_orig=$ac_useropt
1102     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103     case $ac_user_opts in
1104       *"
1105 "enable_$ac_useropt"
1106 "*) ;;
1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108          ac_unrecognized_sep=', ';;
1109     esac
1110     eval enable_$ac_useropt=no ;;
1111
1112   -docdir | --docdir | --docdi | --doc | --do)
1113     ac_prev=docdir ;;
1114   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115     docdir=$ac_optarg ;;
1116
1117   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118     ac_prev=dvidir ;;
1119   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120     dvidir=$ac_optarg ;;
1121
1122   -enable-* | --enable-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error $? "invalid feature name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "enable_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval enable_$ac_useropt=\$ac_optarg ;;
1137
1138   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140   | --exec | --exe | --ex)
1141     ac_prev=exec_prefix ;;
1142   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144   | --exec=* | --exe=* | --ex=*)
1145     exec_prefix=$ac_optarg ;;
1146
1147   -gas | --gas | --ga | --g)
1148     # Obsolete; use --with-gas.
1149     with_gas=yes ;;
1150
1151   -help | --help | --hel | --he | -h)
1152     ac_init_help=long ;;
1153   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154     ac_init_help=recursive ;;
1155   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156     ac_init_help=short ;;
1157
1158   -host | --host | --hos | --ho)
1159     ac_prev=host_alias ;;
1160   -host=* | --host=* | --hos=* | --ho=*)
1161     host_alias=$ac_optarg ;;
1162
1163   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164     ac_prev=htmldir ;;
1165   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166   | --ht=*)
1167     htmldir=$ac_optarg ;;
1168
1169   -includedir | --includedir | --includedi | --included | --include \
1170   | --includ | --inclu | --incl | --inc)
1171     ac_prev=includedir ;;
1172   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173   | --includ=* | --inclu=* | --incl=* | --inc=*)
1174     includedir=$ac_optarg ;;
1175
1176   -infodir | --infodir | --infodi | --infod | --info | --inf)
1177     ac_prev=infodir ;;
1178   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179     infodir=$ac_optarg ;;
1180
1181   -libdir | --libdir | --libdi | --libd)
1182     ac_prev=libdir ;;
1183   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184     libdir=$ac_optarg ;;
1185
1186   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187   | --libexe | --libex | --libe)
1188     ac_prev=libexecdir ;;
1189   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190   | --libexe=* | --libex=* | --libe=*)
1191     libexecdir=$ac_optarg ;;
1192
1193   -localedir | --localedir | --localedi | --localed | --locale)
1194     ac_prev=localedir ;;
1195   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196     localedir=$ac_optarg ;;
1197
1198   -localstatedir | --localstatedir | --localstatedi | --localstated \
1199   | --localstate | --localstat | --localsta | --localst | --locals)
1200     ac_prev=localstatedir ;;
1201   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203     localstatedir=$ac_optarg ;;
1204
1205   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206     ac_prev=mandir ;;
1207   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208     mandir=$ac_optarg ;;
1209
1210   -nfp | --nfp | --nf)
1211     # Obsolete; use --without-fp.
1212     with_fp=no ;;
1213
1214   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215   | --no-cr | --no-c | -n)
1216     no_create=yes ;;
1217
1218   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220     no_recursion=yes ;;
1221
1222   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224   | --oldin | --oldi | --old | --ol | --o)
1225     ac_prev=oldincludedir ;;
1226   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229     oldincludedir=$ac_optarg ;;
1230
1231   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232     ac_prev=prefix ;;
1233   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234     prefix=$ac_optarg ;;
1235
1236   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237   | --program-pre | --program-pr | --program-p)
1238     ac_prev=program_prefix ;;
1239   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241     program_prefix=$ac_optarg ;;
1242
1243   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244   | --program-suf | --program-su | --program-s)
1245     ac_prev=program_suffix ;;
1246   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248     program_suffix=$ac_optarg ;;
1249
1250   -program-transform-name | --program-transform-name \
1251   | --program-transform-nam | --program-transform-na \
1252   | --program-transform-n | --program-transform- \
1253   | --program-transform | --program-transfor \
1254   | --program-transfo | --program-transf \
1255   | --program-trans | --program-tran \
1256   | --progr-tra | --program-tr | --program-t)
1257     ac_prev=program_transform_name ;;
1258   -program-transform-name=* | --program-transform-name=* \
1259   | --program-transform-nam=* | --program-transform-na=* \
1260   | --program-transform-n=* | --program-transform-=* \
1261   | --program-transform=* | --program-transfor=* \
1262   | --program-transfo=* | --program-transf=* \
1263   | --program-trans=* | --program-tran=* \
1264   | --progr-tra=* | --program-tr=* | --program-t=*)
1265     program_transform_name=$ac_optarg ;;
1266
1267   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268     ac_prev=pdfdir ;;
1269   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270     pdfdir=$ac_optarg ;;
1271
1272   -psdir | --psdir | --psdi | --psd | --ps)
1273     ac_prev=psdir ;;
1274   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275     psdir=$ac_optarg ;;
1276
1277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278   | -silent | --silent | --silen | --sile | --sil)
1279     silent=yes ;;
1280
1281   -runstatedir | --runstatedir | --runstatedi | --runstated \
1282   | --runstate | --runstat | --runsta | --runst | --runs \
1283   | --run | --ru | --r)
1284     ac_prev=runstatedir ;;
1285   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1286   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1287   | --run=* | --ru=* | --r=*)
1288     runstatedir=$ac_optarg ;;
1289
1290   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291     ac_prev=sbindir ;;
1292   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293   | --sbi=* | --sb=*)
1294     sbindir=$ac_optarg ;;
1295
1296   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298   | --sharedst | --shareds | --shared | --share | --shar \
1299   | --sha | --sh)
1300     ac_prev=sharedstatedir ;;
1301   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304   | --sha=* | --sh=*)
1305     sharedstatedir=$ac_optarg ;;
1306
1307   -site | --site | --sit)
1308     ac_prev=site ;;
1309   -site=* | --site=* | --sit=*)
1310     site=$ac_optarg ;;
1311
1312   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313     ac_prev=srcdir ;;
1314   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315     srcdir=$ac_optarg ;;
1316
1317   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318   | --syscon | --sysco | --sysc | --sys | --sy)
1319     ac_prev=sysconfdir ;;
1320   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322     sysconfdir=$ac_optarg ;;
1323
1324   -target | --target | --targe | --targ | --tar | --ta | --t)
1325     ac_prev=target_alias ;;
1326   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327     target_alias=$ac_optarg ;;
1328
1329   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330     verbose=yes ;;
1331
1332   -version | --version | --versio | --versi | --vers | -V)
1333     ac_init_version=: ;;
1334
1335   -with-* | --with-*)
1336     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339       as_fn_error $? "invalid package name: $ac_useropt"
1340     ac_useropt_orig=$ac_useropt
1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342     case $ac_user_opts in
1343       *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347          ac_unrecognized_sep=', ';;
1348     esac
1349     eval with_$ac_useropt=\$ac_optarg ;;
1350
1351   -without-* | --without-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid package name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1387     ;;
1388
1389   *=*)
1390     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391     # Reject names that are not valid shell variable names.
1392     case $ac_envvar in #(
1393       '' | [0-9]* | *[!_$as_cr_alnum]* )
1394       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395     esac
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   as_fn_error $? "missing argument to $ac_option"
1413 fi
1414
1415 if test -n "$ac_unrecognized_opts"; then
1416   case $enable_option_checking in
1417     no) ;;
1418     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420   esac
1421 fi
1422
1423 # Check all directory arguments for consistency.
1424 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425                 datadir sysconfdir sharedstatedir localstatedir includedir \
1426                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427                 libdir localedir mandir runstatedir
1428 do
1429   eval ac_val=\$$ac_var
1430   # Remove trailing slashes.
1431   case $ac_val in
1432     */ )
1433       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434       eval $ac_var=\$ac_val;;
1435   esac
1436   # Be sure to have absolute directory names.
1437   case $ac_val in
1438     [\\/$]* | ?:[\\/]* )  continue;;
1439     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440   esac
1441   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1443
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1450
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453   if test "x$build_alias" = x; then
1454     cross_compiling=maybe
1455   elif test "x$build_alias" != "x$host_alias"; then
1456     cross_compiling=yes
1457   fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469   as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471   as_fn_error $? "pwd does not report name of working directory"
1472
1473
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476   ac_srcdir_defaulted=yes
1477   # Try the directory containing this script, then the parent directory.
1478   ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480          X"$as_myself" : 'X\(//\)[^/]' \| \
1481          X"$as_myself" : 'X\(//\)$' \| \
1482          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485             s//\1/
1486             q
1487           }
1488           /^X\(\/\/\)[^/].*/{
1489             s//\1/
1490             q
1491           }
1492           /^X\(\/\/\)$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\).*/{
1497             s//\1/
1498             q
1499           }
1500           s/.*/./; q'`
1501   srcdir=$ac_confdir
1502   if test ! -r "$srcdir/$ac_unique_file"; then
1503     srcdir=..
1504   fi
1505 else
1506   ac_srcdir_defaulted=no
1507 fi
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511 fi
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515         pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518   srcdir=.
1519 fi
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528   eval ac_env_${ac_var}_value=\$${ac_var}
1529   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1532
1533 #
1534 # Report the --help message.
1535 #
1536 if test "$ac_init_help" = "long"; then
1537   # Omit some internal or obsolete options to make the list less imposing.
1538   # This message is too long to be a string in the A/UX 3.1 sh.
1539   cat <<_ACEOF
1540 \`configure' configures gnupg 2.2.26 to adapt to many kinds of systems.
1541
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1543
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE.  See below for descriptions of some of the useful variables.
1546
1547 Defaults for the options are specified in brackets.
1548
1549 Configuration:
1550   -h, --help              display this help and exit
1551       --help=short        display options specific to this package
1552       --help=recursive    display the short help of all the included packages
1553   -V, --version           display version information and exit
1554   -q, --quiet, --silent   do not print \`checking ...' messages
1555       --cache-file=FILE   cache test results in FILE [disabled]
1556   -C, --config-cache      alias for \`--cache-file=config.cache'
1557   -n, --no-create         do not create output files
1558       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1559
1560 Installation directories:
1561   --prefix=PREFIX         install architecture-independent files in PREFIX
1562                           [$ac_default_prefix]
1563   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1564                           [PREFIX]
1565
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1570
1571 For better control, use the options below.
1572
1573 Fine tuning of the installation directories:
1574   --bindir=DIR            user executables [EPREFIX/bin]
1575   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1576   --libexecdir=DIR        program executables [EPREFIX/libexec]
1577   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1578   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1579   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1580   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1581   --libdir=DIR            object code libraries [EPREFIX/lib]
1582   --includedir=DIR        C header files [PREFIX/include]
1583   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1584   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1585   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1586   --infodir=DIR           info documentation [DATAROOTDIR/info]
1587   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1588   --mandir=DIR            man documentation [DATAROOTDIR/man]
1589   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1590   --htmldir=DIR           html documentation [DOCDIR]
1591   --dvidir=DIR            dvi documentation [DOCDIR]
1592   --pdfdir=DIR            pdf documentation [DOCDIR]
1593   --psdir=DIR             ps documentation [DOCDIR]
1594 _ACEOF
1595
1596   cat <<\_ACEOF
1597
1598 Program names:
1599   --program-prefix=PREFIX            prepend PREFIX to installed program names
1600   --program-suffix=SUFFIX            append SUFFIX to installed program names
1601   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1602
1603 System types:
1604   --build=BUILD     configure for building on BUILD [guessed]
1605   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1606 _ACEOF
1607 fi
1608
1609 if test -n "$ac_init_help"; then
1610   case $ac_init_help in
1611      short | recursive ) echo "Configuration of gnupg 2.2.26:";;
1612    esac
1613   cat <<\_ACEOF
1614
1615 Optional Features:
1616   --disable-option-checking  ignore unrecognized --enable/--with options
1617   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1618   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1619   --enable-silent-rules   less verbose build output (undo: "make V=1")
1620   --disable-silent-rules  verbose build output (undo: "make V=0")
1621   --enable-dependency-tracking
1622                           do not reject slow dependency extractors
1623   --disable-dependency-tracking
1624                           speeds up one-time build
1625   --disable-gpg           do not build the gpg program
1626   --disable-gpgsm         do not build the gpgsm program
1627   --disable-scdaemon      do not build the scdaemon program
1628   --enable-g13            build the g13 program
1629   --disable-dirmngr       do not build the dirmngr program
1630   --disable-doc           do not build the doc program
1631   --disable-gpgtar        do not build the gpgtar program
1632   --disable-wks-tools     do not build the wks-tools program
1633   --enable-gpg-is-gpg2    Set installed name of gpg to gpg2
1634   --enable-selinux-support
1635                           enable SELinux support
1636   --enable-large-secmem   allocate extra secure memory
1637   --disable-trust-models  disable all trust models except "always"
1638   --disable-tofu          disable the TOFU trust model
1639   --disable-libdns        do not build with libdns support
1640   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1641   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1642   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1643   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1644   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1645   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1646   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1647   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1648   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1649   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1650   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1651   --disable-gpg-camellia128
1652                           disable the CAMELLIA128 cipher algorithm in gpg
1653   --disable-gpg-camellia192
1654                           disable the CAMELLIA192 cipher algorithm in gpg
1655   --disable-gpg-camellia256
1656                           disable the CAMELLIA256 cipher algorithm in gpg
1657   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1658   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1659   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1660   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1661   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1662   --disable-zip           disable the ZIP and ZLIB compression algorithm
1663   --disable-bzip2         disable the BZIP2 compression algorithm
1664   --disable-exec          disable all external program execution
1665   --disable-photo-viewers disable photo ID viewers
1666   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1667   --disable-card-support  disable smartcard support
1668   --disable-ccid-driver   disable the internal CCID driver
1669   --disable-dirmngr-auto-start
1670                           disable auto starting of the dirmngr
1671   --enable-maintainer-mode
1672                           enable make rules and dependencies not useful (and
1673                           sometimes confusing) to the casual installer
1674   --disable-largefile     omit support for large files
1675   --disable-sqlite        disable the use of SQLITE
1676   --enable-npth-debug     build with debug version of npth
1677   --disable-ntbtls        disable the use of NTBTLS as TLS library
1678   --disable-gnutls        disable GNUTLS as fallback TLS library
1679   --disable-ldap          disable LDAP support
1680   --disable-rpath         do not hardcode runtime library paths
1681   --disable-nls           do not use Native Language Support
1682   --disable-endian-check  disable the endian check and trust the OS provided
1683                           macros
1684   --disable-optimization  disable compiler optimization
1685   --enable-werror         append -Werror to CFLAGS
1686   --enable-all-tests      let "make check" run all tests
1687   --disable-tests         do not run any tests
1688
1689   --enable-run-gnupg-user-socket
1690                           try /run/gnupg/user for sockets prior to /run/user
1691   --enable-build-timestamp
1692                           set an explicit build timestamp for reproducibility.
1693                           (default is the current time in ISO-8601 format)
1694
1695 Optional Packages:
1696   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1697   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1698   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1699   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1700   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1701   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1702   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1703   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1704   --with-agent-s2k-calibration=MSEC
1705                           calibrate passphrase stretching (s2k) to MSEC
1706                           milliseconds
1707   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1708   --with-capabilities     use linux capabilities default=no
1709   --with-tar=PATH         look for a tar program in PATH
1710   --with-libgpg-error-prefix=PFX
1711                           prefix where GPG Error is installed (optional)
1712
1713   --with-libgcrypt-prefix=PFX
1714                           prefix where LIBGCRYPT is installed (optional)
1715   --with-libassuan-prefix=PFX
1716                           prefix where LIBASSUAN is installed (optional)
1717   --with-ksba-prefix=PFX  prefix where KSBA is installed (optional)
1718   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1719   --with-ntbtls-prefix=PFX
1720                           prefix where NTBTLS is installed (optional)
1721   --with-default-trust-store-file=FILE
1722                           Use FILE as system trust store
1723   --with-ldap=DIR         look for the LDAP library in DIR
1724   --with-mailprog=NAME    use "NAME -t" for mail transport
1725   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1726   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1727   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1728   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1729   --without-libintl-prefix     don't search for libintl in includedir and libdir
1730   --with-zlib=DIR         use libz in DIR
1731   --with-bzip2=DIR        look for bzip2 in DIR
1732   --with-readline=DIR     look for the readline library in DIR
1733
1734 Some influential environment variables:
1735   CC          C compiler command
1736   CFLAGS      C compiler flags
1737   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1738               nonstandard directory <lib dir>
1739   LIBS        libraries to pass to the linker, e.g. -l<library>
1740   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1741               you have headers in a nonstandard directory <include dir>
1742   CPP         C preprocessor
1743   SYSROOT     locate config scripts also below that directory
1744   YAT2M       tool to convert texi to man pages
1745   CC_FOR_BUILD
1746               build system C compiler
1747   PKG_CONFIG  path to pkg-config utility
1748   PKG_CONFIG_PATH
1749               directories to add to pkg-config's search path
1750   PKG_CONFIG_LIBDIR
1751               path overriding pkg-config's built-in search path
1752   SQLITE3_CFLAGS
1753               C compiler flags for SQLITE3, overriding pkg-config
1754   SQLITE3_LIBS
1755               linker flags for SQLITE3, overriding pkg-config
1756   LIBGNUTLS_CFLAGS
1757               C compiler flags for LIBGNUTLS, overriding pkg-config
1758   LIBGNUTLS_LIBS
1759               linker flags for LIBGNUTLS, overriding pkg-config
1760
1761 Use these variables to override the choices made by `configure' or to help
1762 it to find libraries and programs with nonstandard names/locations.
1763
1764 Report bugs to <https://bugs.gnupg.org>.
1765 _ACEOF
1766 ac_status=$?
1767 fi
1768
1769 if test "$ac_init_help" = "recursive"; then
1770   # If there are subdirs, report their specific --help.
1771   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1772     test -d "$ac_dir" ||
1773       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1774       continue
1775     ac_builddir=.
1776
1777 case "$ac_dir" in
1778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 *)
1780   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1781   # A ".." for each directory in $ac_dir_suffix.
1782   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1783   case $ac_top_builddir_sub in
1784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1786   esac ;;
1787 esac
1788 ac_abs_top_builddir=$ac_pwd
1789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1790 # for backward compatibility:
1791 ac_top_builddir=$ac_top_build_prefix
1792
1793 case $srcdir in
1794   .)  # We are building in place.
1795     ac_srcdir=.
1796     ac_top_srcdir=$ac_top_builddir_sub
1797     ac_abs_top_srcdir=$ac_pwd ;;
1798   [\\/]* | ?:[\\/]* )  # Absolute name.
1799     ac_srcdir=$srcdir$ac_dir_suffix;
1800     ac_top_srcdir=$srcdir
1801     ac_abs_top_srcdir=$srcdir ;;
1802   *) # Relative name.
1803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1804     ac_top_srcdir=$ac_top_build_prefix$srcdir
1805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1806 esac
1807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808
1809     cd "$ac_dir" || { ac_status=$?; continue; }
1810     # Check for guested configure.
1811     if test -f "$ac_srcdir/configure.gnu"; then
1812       echo &&
1813       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1814     elif test -f "$ac_srcdir/configure"; then
1815       echo &&
1816       $SHELL "$ac_srcdir/configure" --help=recursive
1817     else
1818       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819     fi || ac_status=$?
1820     cd "$ac_pwd" || { ac_status=$?; break; }
1821   done
1822 fi
1823
1824 test -n "$ac_init_help" && exit $ac_status
1825 if $ac_init_version; then
1826   cat <<\_ACEOF
1827 gnupg configure 2.2.26
1828 generated by GNU Autoconf 2.69
1829
1830 Copyright (C) 2012 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1833 _ACEOF
1834   exit
1835 fi
1836
1837 ## ------------------------ ##
1838 ## Autoconf initialization. ##
1839 ## ------------------------ ##
1840
1841 # ac_fn_c_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext
1848   if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_compile") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest.$ac_objext; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_compile
1878
1879 # ac_fn_c_try_cpp LINENO
1880 # ----------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_cpp ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   if { { ac_try="$ac_cpp conftest.$ac_ext"
1886 case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893   ac_status=$?
1894   if test -s conftest.err; then
1895     grep -v '^ *+' conftest.err >conftest.er1
1896     cat conftest.er1 >&5
1897     mv -f conftest.er1 conftest.err
1898   fi
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } > conftest.i && {
1901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902          test ! -s conftest.err
1903        }; then :
1904   ac_retval=0
1905 else
1906   $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909     ac_retval=1
1910 fi
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912   as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_try_cpp
1915
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1920 # accordingly.
1921 ac_fn_c_check_header_mongrel ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if eval \${$3+:} false; then :
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 else
1934   # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_header_compiler=yes
1944 else
1945   ac_header_compiler=no
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1950
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959   ac_header_preproc=yes
1960 else
1961   ac_header_preproc=no
1962 fi
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1966
1967 # So?  What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969   yes:no: )
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974     ;;
1975   no:yes:* )
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 ( $as_echo "## ------------------------------------- ##
1987 ## Report this to https://bugs.gnupg.org ##
1988 ## ------------------------------------- ##"
1989      ) | sed "s/^/$as_me: WARNING:     /" >&2
1990     ;;
1991 esac
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995   $as_echo_n "(cached) " >&6
1996 else
1997   eval "$3=\$ac_header_compiler"
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 fi
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_header_mongrel
2006
2007 # ac_fn_c_try_run LINENO
2008 # ----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2010 # that executables *can* be run.
2011 ac_fn_c_try_run ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   if { { ac_try="$ac_link"
2015 case "(($ac_try" in
2016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017   *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021   (eval "$ac_link") 2>&5
2022   ac_status=$?
2023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2025   { { case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_try") 2>&5
2032   ac_status=$?
2033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034   test $ac_status = 0; }; }; then :
2035   ac_retval=0
2036 else
2037   $as_echo "$as_me: program exited with status $ac_status" >&5
2038        $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041        ac_retval=$ac_status
2042 fi
2043   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045   as_fn_set_status $ac_retval
2046
2047 } # ac_fn_c_try_run
2048
2049 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2050 # -------------------------------------------------------
2051 # Tests whether HEADER exists and can be compiled using the include files in
2052 # INCLUDES, setting the cache variable VAR accordingly.
2053 ac_fn_c_check_header_compile ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059   $as_echo_n "(cached) " >&6
2060 else
2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   eval "$3=yes"
2068 else
2069   eval "$3=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_header_compile
2079
2080 # ac_fn_c_try_link LINENO
2081 # -----------------------
2082 # Try to link conftest.$ac_ext, and return whether this succeeded.
2083 ac_fn_c_try_link ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   rm -f conftest.$ac_objext conftest$ac_exeext
2087   if { { ac_try="$ac_link"
2088 case "(($ac_try" in
2089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090   *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094   (eval "$ac_link") 2>conftest.err
2095   ac_status=$?
2096   if test -s conftest.err; then
2097     grep -v '^ *+' conftest.err >conftest.er1
2098     cat conftest.er1 >&5
2099     mv -f conftest.er1 conftest.err
2100   fi
2101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102   test $ac_status = 0; } && {
2103          test -z "$ac_c_werror_flag" ||
2104          test ! -s conftest.err
2105        } && test -s conftest$ac_exeext && {
2106          test "$cross_compiling" = yes ||
2107          test -x conftest$ac_exeext
2108        }; then :
2109   ac_retval=0
2110 else
2111   $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2113
2114         ac_retval=1
2115 fi
2116   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2117   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2118   # interfere with the next link command; also delete a directory that is
2119   # left behind by Apple's compiler.  We do this before executing the actions.
2120   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122   as_fn_set_status $ac_retval
2123
2124 } # ac_fn_c_try_link
2125
2126 # ac_fn_c_check_func LINENO FUNC VAR
2127 # ----------------------------------
2128 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2129 ac_fn_c_check_func ()
2130 {
2131   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval \${$3+:} false; then :
2135   $as_echo_n "(cached) " >&6
2136 else
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2141 #define $2 innocuous_$2
2142
2143 /* System header to define __stub macros and hopefully few prototypes,
2144     which can conflict with char $2 (); below.
2145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2146     <limits.h> exists even on freestanding compilers.  */
2147
2148 #ifdef __STDC__
2149 # include <limits.h>
2150 #else
2151 # include <assert.h>
2152 #endif
2153
2154 #undef $2
2155
2156 /* Override any GCC internal prototype to avoid an error.
2157    Use char because int might match the return type of a GCC
2158    builtin and then its argument prototype would still apply.  */
2159 #ifdef __cplusplus
2160 extern "C"
2161 #endif
2162 char $2 ();
2163 /* The GNU C library defines this for functions which it implements
2164     to always fail with ENOSYS.  Some functions are actually named
2165     something starting with __ and the normal name is an alias.  */
2166 #if defined __stub_$2 || defined __stub___$2
2167 choke me
2168 #endif
2169
2170 int
2171 main ()
2172 {
2173 return $2 ();
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_link "$LINENO"; then :
2179   eval "$3=yes"
2180 else
2181   eval "$3=no"
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext \
2184     conftest$ac_exeext conftest.$ac_ext
2185 fi
2186 eval ac_res=\$$3
2187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190
2191 } # ac_fn_c_check_func
2192
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   eval "$3=no"
2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 $4
2209 int
2210 main ()
2211 {
2212 if (sizeof ($2))
2213          return 0;
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h.  */
2221 $4
2222 int
2223 main ()
2224 {
2225 if (sizeof (($2)))
2226             return 0;
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232
2233 else
2234   eval "$3=yes"
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 eval ac_res=\$$3
2241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245 } # ac_fn_c_check_type
2246
2247 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2248 # ---------------------------------------------
2249 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2250 # accordingly.
2251 ac_fn_c_check_decl ()
2252 {
2253   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254   as_decl_name=`echo $2|sed 's/ *(.*//'`
2255   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2257 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2258 if eval \${$3+:} false; then :
2259   $as_echo_n "(cached) " >&6
2260 else
2261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main ()
2266 {
2267 #ifndef $as_decl_name
2268 #ifdef __cplusplus
2269   (void) $as_decl_use;
2270 #else
2271   (void) $as_decl_name;
2272 #endif
2273 #endif
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   eval "$3=yes"
2281 else
2282   eval "$3=no"
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 eval ac_res=\$$3
2287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291 } # ac_fn_c_check_decl
2292
2293 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2294 # --------------------------------------------
2295 # Tries to find the compile-time value of EXPR in a program that includes
2296 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2297 # computed
2298 ac_fn_c_compute_int ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   if test "$cross_compiling" = yes; then
2302     # Depending upon the size, compute the lo and hi bounds.
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $4
2306 int
2307 main ()
2308 {
2309 static int test_array [1 - 2 * !(($2) >= 0)];
2310 test_array [0] = 0;
2311 return test_array [0];
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   ac_lo=0 ac_mid=0
2319   while :; do
2320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 $4
2323 int
2324 main ()
2325 {
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2327 test_array [0] = 0;
2328 return test_array [0];
2329
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   ac_hi=$ac_mid; break
2336 else
2337   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2338                         if test $ac_lo -le $ac_mid; then
2339                           ac_lo= ac_hi=
2340                           break
2341                         fi
2342                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345   done
2346 else
2347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 int
2351 main ()
2352 {
2353 static int test_array [1 - 2 * !(($2) < 0)];
2354 test_array [0] = 0;
2355 return test_array [0];
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362   ac_hi=-1 ac_mid=-1
2363   while :; do
2364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h.  */
2366 $4
2367 int
2368 main ()
2369 {
2370 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2371 test_array [0] = 0;
2372 return test_array [0];
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   ac_lo=$ac_mid; break
2380 else
2381   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2382                         if test $ac_mid -le $ac_hi; then
2383                           ac_lo= ac_hi=
2384                           break
2385                         fi
2386                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389   done
2390 else
2391   ac_lo= ac_hi=
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 # Binary search between lo and hi bounds.
2397 while test "x$ac_lo" != "x$ac_hi"; do
2398   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h.  */
2401 $4
2402 int
2403 main ()
2404 {
2405 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2406 test_array [0] = 0;
2407 return test_array [0];
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 if ac_fn_c_try_compile "$LINENO"; then :
2414   ac_hi=$ac_mid
2415 else
2416   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 done
2420 case $ac_lo in #((
2421 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2422 '') ac_retval=1 ;;
2423 esac
2424   else
2425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h.  */
2427 $4
2428 static long int longval () { return $2; }
2429 static unsigned long int ulongval () { return $2; }
2430 #include <stdio.h>
2431 #include <stdlib.h>
2432 int
2433 main ()
2434 {
2435
2436   FILE *f = fopen ("conftest.val", "w");
2437   if (! f)
2438     return 1;
2439   if (($2) < 0)
2440     {
2441       long int i = longval ();
2442       if (i != ($2))
2443         return 1;
2444       fprintf (f, "%ld", i);
2445     }
2446   else
2447     {
2448       unsigned long int i = ulongval ();
2449       if (i != ($2))
2450         return 1;
2451       fprintf (f, "%lu", i);
2452     }
2453   /* Do not output a trailing newline, as this causes \r\n confusion
2454      on some platforms.  */
2455   return ferror (f) || fclose (f) != 0;
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 if ac_fn_c_try_run "$LINENO"; then :
2462   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2463 else
2464   ac_retval=1
2465 fi
2466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2467   conftest.$ac_objext conftest.beam conftest.$ac_ext
2468 rm -f conftest.val
2469
2470   fi
2471   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472   as_fn_set_status $ac_retval
2473
2474 } # ac_fn_c_compute_int
2475
2476 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2477 # ----------------------------------------------------
2478 # Tries to find if the field MEMBER exists in type AGGR, after including
2479 # INCLUDES, setting cache variable VAR accordingly.
2480 ac_fn_c_check_member ()
2481 {
2482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2484 $as_echo_n "checking for $2.$3... " >&6; }
2485 if eval \${$4+:} false; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h.  */
2490 $5
2491 int
2492 main ()
2493 {
2494 static $2 ac_aggr;
2495 if (ac_aggr.$3)
2496 return 0;
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 if ac_fn_c_try_compile "$LINENO"; then :
2502   eval "$4=yes"
2503 else
2504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $5
2507 int
2508 main ()
2509 {
2510 static $2 ac_aggr;
2511 if (sizeof ac_aggr.$3)
2512 return 0;
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518   eval "$4=yes"
2519 else
2520   eval "$4=no"
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 fi
2526 eval ac_res=\$$4
2527                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530
2531 } # ac_fn_c_check_member
2532 cat >config.log <<_ACEOF
2533 This file contains any messages produced by compilers while
2534 running configure, to aid debugging if configure makes a mistake.
2535
2536 It was created by gnupg $as_me 2.2.26, which was
2537 generated by GNU Autoconf 2.69.  Invocation command line was
2538
2539   $ $0 $@
2540
2541 _ACEOF
2542 exec 5>>config.log
2543 {
2544 cat <<_ASUNAME
2545 ## --------- ##
2546 ## Platform. ##
2547 ## --------- ##
2548
2549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2554
2555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2556 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2557
2558 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2559 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2561 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2562 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2563 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2564 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2565
2566 _ASUNAME
2567
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573     $as_echo "PATH: $as_dir"
2574   done
2575 IFS=$as_save_IFS
2576
2577 } >&5
2578
2579 cat >&5 <<_ACEOF
2580
2581
2582 ## ----------- ##
2583 ## Core tests. ##
2584 ## ----------- ##
2585
2586 _ACEOF
2587
2588
2589 # Keep a trace of the command line.
2590 # Strip out --no-create and --no-recursion so they do not pile up.
2591 # Strip out --silent because we don't want to record it for future runs.
2592 # Also quote any args containing shell meta-characters.
2593 # Make two passes to allow for proper duplicate-argument suppression.
2594 ac_configure_args=
2595 ac_configure_args0=
2596 ac_configure_args1=
2597 ac_must_keep_next=false
2598 for ac_pass in 1 2
2599 do
2600   for ac_arg
2601   do
2602     case $ac_arg in
2603     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2604     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2605     | -silent | --silent | --silen | --sile | --sil)
2606       continue ;;
2607     *\'*)
2608       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2609     esac
2610     case $ac_pass in
2611     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2612     2)
2613       as_fn_append ac_configure_args1 " '$ac_arg'"
2614       if test $ac_must_keep_next = true; then
2615         ac_must_keep_next=false # Got value, back to normal.
2616       else
2617         case $ac_arg in
2618           *=* | --config-cache | -C | -disable-* | --disable-* \
2619           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2620           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2621           | -with-* | --with-* | -without-* | --without-* | --x)
2622             case "$ac_configure_args0 " in
2623               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2624             esac
2625             ;;
2626           -* ) ac_must_keep_next=true ;;
2627         esac
2628       fi
2629       as_fn_append ac_configure_args " '$ac_arg'"
2630       ;;
2631     esac
2632   done
2633 done
2634 { ac_configure_args0=; unset ac_configure_args0;}
2635 { ac_configure_args1=; unset ac_configure_args1;}
2636
2637 # When interrupted or exit'd, cleanup temporary files, and complete
2638 # config.log.  We remove comments because anyway the quotes in there
2639 # would cause problems or look ugly.
2640 # WARNING: Use '\'' to represent an apostrophe within the trap.
2641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2642 trap 'exit_status=$?
2643   # Save into config.log some information that might help in debugging.
2644   {
2645     echo
2646
2647     $as_echo "## ---------------- ##
2648 ## Cache variables. ##
2649 ## ---------------- ##"
2650     echo
2651     # The following way of writing the cache mishandles newlines in values,
2652 (
2653   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2654     eval ac_val=\$$ac_var
2655     case $ac_val in #(
2656     *${as_nl}*)
2657       case $ac_var in #(
2658       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2660       esac
2661       case $ac_var in #(
2662       _ | IFS | as_nl) ;; #(
2663       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2664       *) { eval $ac_var=; unset $ac_var;} ;;
2665       esac ;;
2666     esac
2667   done
2668   (set) 2>&1 |
2669     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2670     *${as_nl}ac_space=\ *)
2671       sed -n \
2672         "s/'\''/'\''\\\\'\'''\''/g;
2673           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2674       ;; #(
2675     *)
2676       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2677       ;;
2678     esac |
2679     sort
2680 )
2681     echo
2682
2683     $as_echo "## ----------------- ##
2684 ## Output variables. ##
2685 ## ----------------- ##"
2686     echo
2687     for ac_var in $ac_subst_vars
2688     do
2689       eval ac_val=\$$ac_var
2690       case $ac_val in
2691       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2692       esac
2693       $as_echo "$ac_var='\''$ac_val'\''"
2694     done | sort
2695     echo
2696
2697     if test -n "$ac_subst_files"; then
2698       $as_echo "## ------------------- ##
2699 ## File substitutions. ##
2700 ## ------------------- ##"
2701       echo
2702       for ac_var in $ac_subst_files
2703       do
2704         eval ac_val=\$$ac_var
2705         case $ac_val in
2706         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2707         esac
2708         $as_echo "$ac_var='\''$ac_val'\''"
2709       done | sort
2710       echo
2711     fi
2712
2713     if test -s confdefs.h; then
2714       $as_echo "## ----------- ##
2715 ## confdefs.h. ##
2716 ## ----------- ##"
2717       echo
2718       cat confdefs.h
2719       echo
2720     fi
2721     test "$ac_signal" != 0 &&
2722       $as_echo "$as_me: caught signal $ac_signal"
2723     $as_echo "$as_me: exit $exit_status"
2724   } >&5
2725   rm -f core *.core core.conftest.* &&
2726     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2727     exit $exit_status
2728 ' 0
2729 for ac_signal in 1 2 13 15; do
2730   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2731 done
2732 ac_signal=0
2733
2734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2735 rm -f -r conftest* confdefs.h
2736
2737 $as_echo "/* confdefs.h */" > confdefs.h
2738
2739 # Predefined preprocessor variables.
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_NAME "$PACKAGE_NAME"
2743 _ACEOF
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2747 _ACEOF
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2751 _ACEOF
2752
2753 cat >>confdefs.h <<_ACEOF
2754 #define PACKAGE_STRING "$PACKAGE_STRING"
2755 _ACEOF
2756
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2759 _ACEOF
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_URL "$PACKAGE_URL"
2763 _ACEOF
2764
2765
2766 # Let the site file select an alternate cache file if it wants to.
2767 # Prefer an explicitly selected file to automatically selected ones.
2768 ac_site_file1=NONE
2769 ac_site_file2=NONE
2770 if test -n "$CONFIG_SITE"; then
2771   # We do not want a PATH search for config.site.
2772   case $CONFIG_SITE in #((
2773     -*)  ac_site_file1=./$CONFIG_SITE;;
2774     */*) ac_site_file1=$CONFIG_SITE;;
2775     *)   ac_site_file1=./$CONFIG_SITE;;
2776   esac
2777 elif test "x$prefix" != xNONE; then
2778   ac_site_file1=$prefix/share/config.site
2779   ac_site_file2=$prefix/etc/config.site
2780 else
2781   ac_site_file1=$ac_default_prefix/share/config.site
2782   ac_site_file2=$ac_default_prefix/etc/config.site
2783 fi
2784 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2785 do
2786   test "x$ac_site_file" = xNONE && continue
2787   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2788     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2789 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2790     sed 's/^/| /' "$ac_site_file" >&5
2791     . "$ac_site_file" \
2792       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 as_fn_error $? "failed to load site script $ac_site_file
2795 See \`config.log' for more details" "$LINENO" 5; }
2796   fi
2797 done
2798
2799 if test -r "$cache_file"; then
2800   # Some versions of bash will fail to source /dev/null (special files
2801   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2802   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2803     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2804 $as_echo "$as_me: loading cache $cache_file" >&6;}
2805     case $cache_file in
2806       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2807       *)                      . "./$cache_file";;
2808     esac
2809   fi
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2812 $as_echo "$as_me: creating cache $cache_file" >&6;}
2813   >$cache_file
2814 fi
2815
2816 gt_needs="$gt_needs need-ngettext"
2817 as_fn_append ac_header_list " sys/socket.h"
2818 # Check that the precious variables saved in the cache have kept the same
2819 # value.
2820 ac_cache_corrupted=false
2821 for ac_var in $ac_precious_vars; do
2822   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2823   eval ac_new_set=\$ac_env_${ac_var}_set
2824   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2825   eval ac_new_val=\$ac_env_${ac_var}_value
2826   case $ac_old_set,$ac_new_set in
2827     set,)
2828       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2829 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2830       ac_cache_corrupted=: ;;
2831     ,set)
2832       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2833 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2834       ac_cache_corrupted=: ;;
2835     ,);;
2836     *)
2837       if test "x$ac_old_val" != "x$ac_new_val"; then
2838         # differences in whitespace do not lead to failure.
2839         ac_old_val_w=`echo x $ac_old_val`
2840         ac_new_val_w=`echo x $ac_new_val`
2841         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2842           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2843 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2844           ac_cache_corrupted=:
2845         else
2846           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2847 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2848           eval $ac_var=\$ac_old_val
2849         fi
2850         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2851 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2852         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2853 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2854       fi;;
2855   esac
2856   # Pass precious variables to config.status.
2857   if test "$ac_new_set" = set; then
2858     case $ac_new_val in
2859     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2860     *) ac_arg=$ac_var=$ac_new_val ;;
2861     esac
2862     case " $ac_configure_args " in
2863       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2864       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2865     esac
2866   fi
2867 done
2868 if $ac_cache_corrupted; then
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2872 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2873   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2874 fi
2875 ## -------------------- ##
2876 ## Main body of script. ##
2877 ## -------------------- ##
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884
2885
2886
2887 # When changing the SWDB tag please also adjust the hard coded tags in
2888 # build-aux/speedo.mk and Makefile.am
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define GNUPG_SWDB_TAG "gnupg22"
2892 _ACEOF
2893
2894
2895 NEED_GPG_ERROR_VERSION=1.27
2896
2897 NEED_LIBGCRYPT_API=1
2898 NEED_LIBGCRYPT_VERSION=1.8.0
2899
2900 NEED_LIBASSUAN_API=2
2901 NEED_LIBASSUAN_VERSION=2.5.0
2902
2903 NEED_KSBA_API=1
2904 NEED_KSBA_VERSION=1.3.5
2905
2906 NEED_NTBTLS_API=1
2907 NEED_NTBTLS_VERSION=0.1.0
2908
2909 NEED_NPTH_API=1
2910 NEED_NPTH_VERSION=1.2
2911
2912
2913 NEED_GNUTLS_VERSION=3.0
2914
2915 NEED_SQLITE_VERSION=3.7
2916
2917 development_version=no
2918 PACKAGE=$PACKAGE_NAME
2919 PACKAGE_GT=${PACKAGE_NAME}2
2920 VERSION=$PACKAGE_VERSION
2921
2922 ac_aux_dir=
2923 for ac_dir in build-aux "$srcdir"/build-aux; do
2924   if test -f "$ac_dir/install-sh"; then
2925     ac_aux_dir=$ac_dir
2926     ac_install_sh="$ac_aux_dir/install-sh -c"
2927     break
2928   elif test -f "$ac_dir/install.sh"; then
2929     ac_aux_dir=$ac_dir
2930     ac_install_sh="$ac_aux_dir/install.sh -c"
2931     break
2932   elif test -f "$ac_dir/shtool"; then
2933     ac_aux_dir=$ac_dir
2934     ac_install_sh="$ac_aux_dir/shtool install -c"
2935     break
2936   fi
2937 done
2938 if test -z "$ac_aux_dir"; then
2939   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2940 fi
2941
2942 # These three variables are undocumented and unsupported,
2943 # and are intended to be withdrawn in a future Autoconf release.
2944 # They can cause serious problems if a builder's source tree is in a directory
2945 # whose full name contains unusual characters.
2946 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2947 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2948 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2949
2950
2951
2952 ac_config_headers="$ac_config_headers config.h"
2953
2954 am__api_version='1.16'
2955
2956 # Find a good install program.  We prefer a C program (faster),
2957 # so one script is as good as another.  But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2962 # AIX /bin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 # Reject install programs that cannot install multiple files.
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2971 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2972 if test -z "$INSTALL"; then
2973 if ${ac_cv_path_install+:} false; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     # Account for people who put trailing slashes in PATH elements.
2982 case $as_dir/ in #((
2983   ./ | .// | /[cC]/* | \
2984   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2985   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2986   /usr/ucb/* ) ;;
2987   *)
2988     # OSF1 and SCO ODT 3.0 have their own names for install.
2989     # Don't use installbsd from OSF since it installs stuff as root
2990     # by default.
2991     for ac_prog in ginstall scoinst install; do
2992       for ac_exec_ext in '' $ac_executable_extensions; do
2993         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2994           if test $ac_prog = install &&
2995             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996             # AIX install.  It has an incompatible calling convention.
2997             :
2998           elif test $ac_prog = install &&
2999             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000             # program-specific install script used by HP pwplus--don't use.
3001             :
3002           else
3003             rm -rf conftest.one conftest.two conftest.dir
3004             echo one > conftest.one
3005             echo two > conftest.two
3006             mkdir conftest.dir
3007             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3008               test -s conftest.one && test -s conftest.two &&
3009               test -s conftest.dir/conftest.one &&
3010               test -s conftest.dir/conftest.two
3011             then
3012               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3013               break 3
3014             fi
3015           fi
3016         fi
3017       done
3018     done
3019     ;;
3020 esac
3021
3022   done
3023 IFS=$as_save_IFS
3024
3025 rm -rf conftest.one conftest.two conftest.dir
3026
3027 fi
3028   if test "${ac_cv_path_install+set}" = set; then
3029     INSTALL=$ac_cv_path_install
3030   else
3031     # As a last resort, use the slow shell script.  Don't cache a
3032     # value for INSTALL within a source directory, because that will
3033     # break other packages using the cache if that directory is
3034     # removed, or if the value is a relative name.
3035     INSTALL=$ac_install_sh
3036   fi
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3039 $as_echo "$INSTALL" >&6; }
3040
3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3042 # It thinks the first close brace ends the variable substitution.
3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3044
3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3046
3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3050 $as_echo_n "checking whether build environment is sane... " >&6; }
3051 # Reject unsafe characters in $srcdir or the absolute working directory
3052 # name.  Accept space and tab only in the latter.
3053 am_lf='
3054 '
3055 case `pwd` in
3056   *[\\\"\#\$\&\'\`$am_lf]*)
3057     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3058 esac
3059 case $srcdir in
3060   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3061     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3062 esac
3063
3064 # Do 'set' in a subshell so we don't clobber the current shell's
3065 # arguments.  Must try -L first in case configure is actually a
3066 # symlink; some systems play weird games with the mod time of symlinks
3067 # (eg FreeBSD returns the mod time of the symlink's containing
3068 # directory).
3069 if (
3070    am_has_slept=no
3071    for am_try in 1 2; do
3072      echo "timestamp, slept: $am_has_slept" > conftest.file
3073      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3074      if test "$*" = "X"; then
3075         # -L didn't work.
3076         set X `ls -t "$srcdir/configure" conftest.file`
3077      fi
3078      if test "$*" != "X $srcdir/configure conftest.file" \
3079         && test "$*" != "X conftest.file $srcdir/configure"; then
3080
3081         # If neither matched, then we have a broken ls.  This can happen
3082         # if, for instance, CONFIG_SHELL is bash and it inherits a
3083         # broken ls alias from the environment.  This has actually
3084         # happened.  Such a system could not be considered "sane".
3085         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3086   alias in your environment" "$LINENO" 5
3087      fi
3088      if test "$2" = conftest.file || test $am_try -eq 2; then
3089        break
3090      fi
3091      # Just in case.
3092      sleep 1
3093      am_has_slept=yes
3094    done
3095    test "$2" = conftest.file
3096    )
3097 then
3098    # Ok.
3099    :
3100 else
3101    as_fn_error $? "newly created file is older than distributed files!
3102 Check your system clock" "$LINENO" 5
3103 fi
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3105 $as_echo "yes" >&6; }
3106 # If we didn't sleep, we still need to ensure time stamps of config.status and
3107 # generated files are strictly newer.
3108 am_sleep_pid=
3109 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3110   ( sleep 1 ) &
3111   am_sleep_pid=$!
3112 fi
3113
3114 rm -f conftest.file
3115
3116 test "$program_prefix" != NONE &&
3117   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3118 # Use a double $ so make ignores it.
3119 test "$program_suffix" != NONE &&
3120   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3121 # Double any \ or $.
3122 # By default was `s,x,x', remove it if useless.
3123 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3124 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3125
3126 # Expand $ac_aux_dir to an absolute path.
3127 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3128
3129 if test x"${MISSING+set}" != xset; then
3130   case $am_aux_dir in
3131   *\ * | *\     *)
3132     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3133   *)
3134     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3135   esac
3136 fi
3137 # Use eval to expand $SHELL
3138 if eval "$MISSING --is-lightweight"; then
3139   am_missing_run="$MISSING "
3140 else
3141   am_missing_run=
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3143 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3144 fi
3145
3146 if test x"${install_sh+set}" != xset; then
3147   case $am_aux_dir in
3148   *\ * | *\     *)
3149     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3150   *)
3151     install_sh="\${SHELL} $am_aux_dir/install-sh"
3152   esac
3153 fi
3154
3155 # Installed binaries are usually stripped using 'strip' when the user
3156 # run "make install-strip".  However 'strip' might not be the right
3157 # tool to use in cross-compilation environments, therefore Automake
3158 # will honor the 'STRIP' environment variable to overrule this program.
3159 if test "$cross_compiling" != no; then
3160   if test -n "$ac_tool_prefix"; then
3161   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}strip; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_STRIP+:} false; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$STRIP"; then
3169   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 STRIP=$ac_cv_prog_STRIP
3189 if test -n "$STRIP"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3191 $as_echo "$STRIP" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 if test -z "$ac_cv_prog_STRIP"; then
3200   ac_ct_STRIP=$STRIP
3201   # Extract the first word of "strip", so it can be a program name with args.
3202 set dummy strip; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$ac_ct_STRIP"; then
3209   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218     ac_cv_prog_ac_ct_STRIP="strip"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3229 if test -n "$ac_ct_STRIP"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3231 $as_echo "$ac_ct_STRIP" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237   if test "x$ac_ct_STRIP" = x; then
3238     STRIP=":"
3239   else
3240     case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246     STRIP=$ac_ct_STRIP
3247   fi
3248 else
3249   STRIP="$ac_cv_prog_STRIP"
3250 fi
3251
3252 fi
3253 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3256 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3257 if test -z "$MKDIR_P"; then
3258   if ${ac_cv_path_mkdir+:} false; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266     for ac_prog in mkdir gmkdir; do
3267          for ac_exec_ext in '' $ac_executable_extensions; do
3268            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3269            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3270              'mkdir (GNU coreutils) '* | \
3271              'mkdir (coreutils) '* | \
3272              'mkdir (fileutils) '4.1*)
3273                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3274                break 3;;
3275            esac
3276          done
3277        done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282
3283   test -d ./--version && rmdir ./--version
3284   if test "${ac_cv_path_mkdir+set}" = set; then
3285     MKDIR_P="$ac_cv_path_mkdir -p"
3286   else
3287     # As a last resort, use the slow shell script.  Don't cache a
3288     # value for MKDIR_P within a source directory, because that will
3289     # break other packages using the cache if that directory is
3290     # removed, or if the value is a relative name.
3291     MKDIR_P="$ac_install_sh -d"
3292   fi
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3295 $as_echo "$MKDIR_P" >&6; }
3296
3297 for ac_prog in gawk mawk nawk awk
3298 do
3299   # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_AWK+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$AWK"; then
3307   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316     ac_cv_prog_AWK="$ac_prog"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 AWK=$ac_cv_prog_AWK
3327 if test -n "$AWK"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3329 $as_echo "$AWK" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336   test -n "$AWK" && break
3337 done
3338
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3341 set x ${MAKE-make}
3342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3343 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   cat >conftest.make <<\_ACEOF
3347 SHELL = /bin/sh
3348 all:
3349         @echo '@@@%%%=$(MAKE)=@@@%%%'
3350 _ACEOF
3351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3353   *@@@%%%=?*=@@@%%%*)
3354     eval ac_cv_prog_make_${ac_make}_set=yes;;
3355   *)
3356     eval ac_cv_prog_make_${ac_make}_set=no;;
3357 esac
3358 rm -f conftest.make
3359 fi
3360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3363   SET_MAKE=
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367   SET_MAKE="MAKE=${MAKE-make}"
3368 fi
3369
3370 rm -rf .tst 2>/dev/null
3371 mkdir .tst 2>/dev/null
3372 if test -d .tst; then
3373   am__leading_dot=.
3374 else
3375   am__leading_dot=_
3376 fi
3377 rmdir .tst 2>/dev/null
3378
3379 # Check whether --enable-silent-rules was given.
3380 if test "${enable_silent_rules+set}" = set; then :
3381   enableval=$enable_silent_rules;
3382 fi
3383
3384 case $enable_silent_rules in # (((
3385   yes) AM_DEFAULT_VERBOSITY=0;;
3386    no) AM_DEFAULT_VERBOSITY=1;;
3387     *) AM_DEFAULT_VERBOSITY=1;;
3388 esac
3389 am_make=${MAKE-make}
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3391 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3392 if ${am_cv_make_support_nested_variables+:} false; then :
3393   $as_echo_n "(cached) " >&6
3394 else
3395   if $as_echo 'TRUE=$(BAR$(V))
3396 BAR0=false
3397 BAR1=true
3398 V=1
3399 am__doit:
3400         @$(TRUE)
3401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3402   am_cv_make_support_nested_variables=yes
3403 else
3404   am_cv_make_support_nested_variables=no
3405 fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3408 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3409 if test $am_cv_make_support_nested_variables = yes; then
3410     AM_V='$(V)'
3411   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3412 else
3413   AM_V=$AM_DEFAULT_VERBOSITY
3414   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3415 fi
3416 AM_BACKSLASH='\'
3417
3418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3419   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3420   # is not polluted with repeated "-I."
3421   am__isrc=' -I$(srcdir)'
3422   # test to see if srcdir already configured
3423   if test -f $srcdir/config.status; then
3424     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3425   fi
3426 fi
3427
3428 # test whether we have cygpath
3429 if test -z "$CYGPATH_W"; then
3430   if (cygpath --version) >/dev/null 2>/dev/null; then
3431     CYGPATH_W='cygpath -w'
3432   else
3433     CYGPATH_W=echo
3434   fi
3435 fi
3436
3437
3438 # Define the identity of the package.
3439  PACKAGE='gnupg'
3440  VERSION='2.2.26'
3441
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define PACKAGE "$PACKAGE"
3445 _ACEOF
3446
3447
3448 cat >>confdefs.h <<_ACEOF
3449 #define VERSION "$VERSION"
3450 _ACEOF
3451
3452 # Some tools Automake needs.
3453
3454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3455
3456
3457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3458
3459
3460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3461
3462
3463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3464
3465
3466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3467
3468 # For better backward compatibility.  To be removed once Automake 1.9.x
3469 # dies out for good.  For more background, see:
3470 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3471 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3472 mkdir_p='$(MKDIR_P)'
3473
3474 # We need awk for the "check" target (and possibly the TAP driver).  The
3475 # system "awk" is bad on some platforms.
3476 # Always define AMTAR for backward compatibility.  Yes, it's still used
3477 # in the wild :-(  We should find a proper way to deprecate it ...
3478 AMTAR='$${TAR-tar}'
3479
3480
3481 # We'll loop over all known methods to create a tar archive until one works.
3482 _am_tools='gnutar  pax cpio none'
3483
3484 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3485
3486
3487
3488
3489
3490
3491 # POSIX will say in a future version that running "rm -f" with no argument
3492 # is OK; and we want to be able to make that assumption in our Makefile
3493 # recipes.  So use an aggressive probe to check that the usage we want is
3494 # actually supported "in the wild" to an acceptable degree.
3495 # See automake bug#10828.
3496 # To make any issue more visible, cause the running configure to be aborted
3497 # by default if the 'rm' program in use doesn't match our expectations; the
3498 # user can still override this though.
3499 if rm -f && rm -fr && rm -rf; then : OK; else
3500   cat >&2 <<'END'
3501 Oops!
3502
3503 Your 'rm' program seems unable to run without file operands specified
3504 on the command line, even when the '-f' option is present.  This is contrary
3505 to the behaviour of most rm programs out there, and not conforming with
3506 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3507
3508 Please tell bug-automake@gnu.org about your system, including the value
3509 of your $PATH and any error possibly output before this message.  This
3510 can help us improve future automake versions.
3511
3512 END
3513   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3514     echo 'Configuration will proceed anyway, since you have set the' >&2
3515     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3516     echo >&2
3517   else
3518     cat >&2 <<'END'
3519 Aborting the configuration process, to ensure you take notice of the issue.
3520
3521 You can download and install GNU coreutils to get an 'rm' implementation
3522 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3523
3524 If you want to complete the configuration process using your problematic
3525 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3526 to "yes", and re-run configure.
3527
3528 END
3529     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3530   fi
3531 fi
3532
3533 # Make sure we can run config.sub.
3534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3538 $as_echo_n "checking build system type... " >&6; }
3539 if ${ac_cv_build+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   ac_build_alias=$build_alias
3543 test "x$ac_build_alias" = x &&
3544   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3545 test "x$ac_build_alias" = x &&
3546   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3547 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3548   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3549
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3552 $as_echo "$ac_cv_build" >&6; }
3553 case $ac_cv_build in
3554 *-*-*) ;;
3555 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3556 esac
3557 build=$ac_cv_build
3558 ac_save_IFS=$IFS; IFS='-'
3559 set x $ac_cv_build
3560 shift
3561 build_cpu=$1
3562 build_vendor=$2
3563 shift; shift
3564 # Remember, the first character of IFS is used to create $*,
3565 # except with old shells:
3566 build_os=$*
3567 IFS=$ac_save_IFS
3568 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3569
3570
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3572 $as_echo_n "checking host system type... " >&6; }
3573 if ${ac_cv_host+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   if test "x$host_alias" = x; then
3577   ac_cv_host=$ac_cv_build
3578 else
3579   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3580     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3581 fi
3582
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3585 $as_echo "$ac_cv_host" >&6; }
3586 case $ac_cv_host in
3587 *-*-*) ;;
3588 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3589 esac
3590 host=$ac_cv_host
3591 ac_save_IFS=$IFS; IFS='-'
3592 set x $ac_cv_host
3593 shift
3594 host_cpu=$1
3595 host_vendor=$2
3596 shift; shift
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3599 host_os=$*
3600 IFS=$ac_save_IFS
3601 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3602
3603
3604
3605
3606
3607
3608         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3609 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3610         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3611 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3612         hostname=`hostname`
3613         if test "$hostname"; then
3614            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3615 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3616         fi
3617
3618         date=`date +%Y%m%d-%H%M%S`
3619         if test "$?" != 0; then
3620            date=`date`
3621         fi
3622         if test "$date"; then
3623            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3624 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3625         fi
3626
3627
3628 DEPDIR="${am__leading_dot}deps"
3629
3630 ac_config_commands="$ac_config_commands depfiles"
3631
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3633 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3634 cat > confinc.mk << 'END'
3635 am__doit:
3636         @echo this is the am__doit target >confinc.out
3637 .PHONY: am__doit
3638 END
3639 am__include="#"
3640 am__quote=
3641 # BSD make does it like this.
3642 echo '.include "confinc.mk" # ignored' > confmf.BSD
3643 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3644 echo 'include confinc.mk # ignored' > confmf.GNU
3645 _am_result=no
3646 for s in GNU BSD; do
3647   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3648    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3649    ac_status=$?
3650    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651    (exit $ac_status); }
3652   case $?:`cat confinc.out 2>/dev/null` in #(
3653   '0:this is the am__doit target') :
3654     case $s in #(
3655   BSD) :
3656     am__include='.include' am__quote='"' ;; #(
3657   *) :
3658     am__include='include' am__quote='' ;;
3659 esac ;; #(
3660   *) :
3661      ;;
3662 esac
3663   if test "$am__include" != "#"; then
3664     _am_result="yes ($s style)"
3665     break
3666   fi
3667 done
3668 rm -f confinc.* confmf.*
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3670 $as_echo "${_am_result}" >&6; }
3671
3672 # Check whether --enable-dependency-tracking was given.
3673 if test "${enable_dependency_tracking+set}" = set; then :
3674   enableval=$enable_dependency_tracking;
3675 fi
3676
3677 if test "x$enable_dependency_tracking" != xno; then
3678   am_depcomp="$ac_aux_dir/depcomp"
3679   AMDEPBACKSLASH='\'
3680   am__nodep='_no'
3681 fi
3682  if test "x$enable_dependency_tracking" != xno; then
3683   AMDEP_TRUE=
3684   AMDEP_FALSE='#'
3685 else
3686   AMDEP_TRUE='#'
3687   AMDEP_FALSE=
3688 fi
3689
3690
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 if test -n "$ac_tool_prefix"; then
3697   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -n "$CC"; then
3705   ac_cv_prog_CC="$CC" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712     for ac_exec_ext in '' $ac_executable_extensions; do
3713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719   done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3728 else
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$ac_cv_prog_CC"; then
3736   ac_ct_CC=$CC
3737   # Extract the first word of "gcc", so it can be a program name with args.
3738 set dummy gcc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$ac_ct_CC"; then
3745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754     ac_cv_prog_ac_ct_CC="gcc"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773   if test "x$ac_ct_CC" = x; then
3774     CC=""
3775   else
3776     case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782     CC=$ac_ct_CC
3783   fi
3784 else
3785   CC="$ac_cv_prog_CC"
3786 fi
3787
3788 if test -z "$CC"; then
3789           if test -n "$ac_tool_prefix"; then
3790     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_CC+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   if test -n "$CC"; then
3798   ac_cv_prog_CC="$CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_prog_CC="${ac_tool_prefix}cc"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 CC=$ac_cv_prog_CC
3818 if test -n "$CC"; then
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3821 else
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 fi
3825
3826
3827   fi
3828 fi
3829 if test -z "$CC"; then
3830   # Extract the first word of "cc", so it can be a program name with args.
3831 set dummy cc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -n "$CC"; then
3838   ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840   ac_prog_rejected=no
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3849        ac_prog_rejected=yes
3850        continue
3851      fi
3852     ac_cv_prog_CC="cc"
3853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857   done
3858 IFS=$as_save_IFS
3859
3860 if test $ac_prog_rejected = yes; then
3861   # We found a bogon in the path, so make sure we never use it.
3862   set dummy $ac_cv_prog_CC
3863   shift
3864   if test $# != 0; then
3865     # We chose a different compiler from the bogus one.
3866     # However, it has the same basename, so the bogon will be chosen
3867     # first if we set CC to just the basename; use the full file name.
3868     shift
3869     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3870   fi
3871 fi
3872 fi
3873 fi
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 fi
3885 if test -z "$CC"; then
3886   if test -n "$ac_tool_prefix"; then
3887   for ac_prog in cl.exe
3888   do
3889     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$CC"; then
3897   ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911   done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926     test -n "$CC" && break
3927   done
3928 fi
3929 if test -z "$CC"; then
3930   ac_ct_CC=$CC
3931   for ac_prog in cl.exe
3932 do
3933   # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -n "$ac_ct_CC"; then
3941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950     ac_cv_prog_ac_ct_CC="$ac_prog"
3951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955   done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970   test -n "$ac_ct_CC" && break
3971 done
3972
3973   if test "x$ac_ct_CC" = x; then
3974     CC=""
3975   else
3976     case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3981 esac
3982     CC=$ac_ct_CC
3983   fi
3984 fi
3985
3986 fi
3987
3988
3989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "no acceptable C compiler found in \$PATH
3992 See \`config.log' for more details" "$LINENO" 5; }
3993
3994 # Provide some information about the compiler.
3995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3996 set X $ac_compile
3997 ac_compiler=$2
3998 for ac_option in --version -v -V -qversion; do
3999   { { ac_try="$ac_compiler $ac_option >&5"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4007   ac_status=$?
4008   if test -s conftest.err; then
4009     sed '10a\
4010 ... rest of stderr output deleted ...
4011          10q' conftest.err >conftest.er1
4012     cat conftest.er1 >&5
4013   fi
4014   rm -f conftest.er1 conftest.err
4015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016   test $ac_status = 0; }
4017 done
4018
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 ac_clean_files_save=$ac_clean_files
4031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4032 # Try to create an executable without -o first, disregard a.out.
4033 # It will help us diagnose broken compilers, and finding out an intuition
4034 # of exeext.
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4036 $as_echo_n "checking whether the C compiler works... " >&6; }
4037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4038
4039 # The possible output files:
4040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4041
4042 ac_rmfiles=
4043 for ac_file in $ac_files
4044 do
4045   case $ac_file in
4046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4048   esac
4049 done
4050 rm -f $ac_rmfiles
4051
4052 if { { ac_try="$ac_link_default"
4053 case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059   (eval "$ac_link_default") 2>&5
4060   ac_status=$?
4061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062   test $ac_status = 0; }; then :
4063   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4065 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4066 # so that the user can short-circuit this test for compilers unknown to
4067 # Autoconf.
4068 for ac_file in $ac_files ''
4069 do
4070   test -f "$ac_file" || continue
4071   case $ac_file in
4072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4073         ;;
4074     [ab].out )
4075         # We found the default executable, but exeext='' is most
4076         # certainly right.
4077         break;;
4078     *.* )
4079         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4080         then :; else
4081            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4082         fi
4083         # We set ac_cv_exeext here because the later test for it is not
4084         # safe: cross compilers may not add the suffix if given an `-o'
4085         # argument, so we may need to know it at that point already.
4086         # Even if this section looks crufty: it has the advantage of
4087         # actually working.
4088         break;;
4089     * )
4090         break;;
4091   esac
4092 done
4093 test "$ac_cv_exeext" = no && ac_cv_exeext=
4094
4095 else
4096   ac_file=''
4097 fi
4098 if test -z "$ac_file"; then :
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error 77 "C compiler cannot create executables
4107 See \`config.log' for more details" "$LINENO" 5; }
4108 else
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4113 $as_echo_n "checking for C compiler default output file name... " >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4115 $as_echo "$ac_file" >&6; }
4116 ac_exeext=$ac_cv_exeext
4117
4118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4119 ac_clean_files=$ac_clean_files_save
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4121 $as_echo_n "checking for suffix of executables... " >&6; }
4122 if { { ac_try="$ac_link"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129   (eval "$ac_link") 2>&5
4130   ac_status=$?
4131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132   test $ac_status = 0; }; then :
4133   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4134 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4135 # work properly (i.e., refer to `conftest.exe'), while it won't with
4136 # `rm'.
4137 for ac_file in conftest.exe conftest conftest.*; do
4138   test -f "$ac_file" || continue
4139   case $ac_file in
4140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4142           break;;
4143     * ) break;;
4144   esac
4145 done
4146 else
4147   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4150 See \`config.log' for more details" "$LINENO" 5; }
4151 fi
4152 rm -f conftest conftest$ac_cv_exeext
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4154 $as_echo "$ac_cv_exeext" >&6; }
4155
4156 rm -f conftest.$ac_ext
4157 EXEEXT=$ac_cv_exeext
4158 ac_exeext=$EXEEXT
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161 #include <stdio.h>
4162 int
4163 main ()
4164 {
4165 FILE *f = fopen ("conftest.out", "w");
4166  return ferror (f) || fclose (f) != 0;
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 ac_clean_files="$ac_clean_files conftest.out"
4173 # Check that the compiler produces executables we can run.  If not, either
4174 # the compiler is broken, or we cross compile.
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4176 $as_echo_n "checking whether we are cross compiling... " >&6; }
4177 if test "$cross_compiling" != yes; then
4178   { { ac_try="$ac_link"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185   (eval "$ac_link") 2>&5
4186   ac_status=$?
4187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188   test $ac_status = 0; }
4189   if { ac_try='./conftest$ac_cv_exeext'
4190   { { case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199   test $ac_status = 0; }; }; then
4200     cross_compiling=no
4201   else
4202     if test "$cross_compiling" = maybe; then
4203         cross_compiling=yes
4204     else
4205         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "cannot run C compiled programs.
4208 If you meant to cross compile, use \`--host'.
4209 See \`config.log' for more details" "$LINENO" 5; }
4210     fi
4211   fi
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4214 $as_echo "$cross_compiling" >&6; }
4215
4216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4217 ac_clean_files=$ac_clean_files_save
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219 $as_echo_n "checking for suffix of object files... " >&6; }
4220 if ${ac_cv_objext+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest.o conftest.obj
4235 if { { ac_try="$ac_compile"
4236 case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242   (eval "$ac_compile") 2>&5
4243   ac_status=$?
4244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245   test $ac_status = 0; }; then :
4246   for ac_file in conftest.o conftest.obj conftest.*; do
4247   test -f "$ac_file" || continue;
4248   case $ac_file in
4249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4250     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4251        break;;
4252   esac
4253 done
4254 else
4255   $as_echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260 as_fn_error $? "cannot compute suffix of object files: cannot compile
4261 See \`config.log' for more details" "$LINENO" 5; }
4262 fi
4263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266 $as_echo "$ac_cv_objext" >&6; }
4267 OBJEXT=$ac_cv_objext
4268 ac_objext=$OBJEXT
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271 if ${ac_cv_c_compiler_gnu+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276
4277 int
4278 main ()
4279 {
4280 #ifndef __GNUC__
4281        choke me
4282 #endif
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289   ac_compiler_gnu=yes
4290 else
4291   ac_compiler_gnu=no
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4300   GCC=yes
4301 else
4302   GCC=
4303 fi
4304 ac_test_CFLAGS=${CFLAGS+set}
4305 ac_save_CFLAGS=$CFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4308 if ${ac_cv_prog_cc_g+:} false; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   ac_save_c_werror_flag=$ac_c_werror_flag
4312    ac_c_werror_flag=yes
4313    ac_cv_prog_cc_g=no
4314    CFLAGS="-g"
4315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_c_try_compile "$LINENO"; then :
4327   ac_cv_prog_cc_g=yes
4328 else
4329   CFLAGS=""
4330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342
4343 else
4344   ac_c_werror_flag=$ac_save_c_werror_flag
4345          CFLAGS="-g"
4346          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348
4349 int
4350 main ()
4351 {
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_c_try_compile "$LINENO"; then :
4358   ac_cv_prog_cc_g=yes
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365    ac_c_werror_flag=$ac_save_c_werror_flag
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368 $as_echo "$ac_cv_prog_cc_g" >&6; }
4369 if test "$ac_test_CFLAGS" = set; then
4370   CFLAGS=$ac_save_CFLAGS
4371 elif test $ac_cv_prog_cc_g = yes; then
4372   if test "$GCC" = yes; then
4373     CFLAGS="-g -O2"
4374   else
4375     CFLAGS="-g"
4376   fi
4377 else
4378   if test "$GCC" = yes; then
4379     CFLAGS="-O2"
4380   else
4381     CFLAGS=
4382   fi
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386 if ${ac_cv_prog_cc_c89+:} false; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   ac_cv_prog_cc_c89=no
4390 ac_save_CC=$CC
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #include <stdarg.h>
4394 #include <stdio.h>
4395 struct stat;
4396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4397 struct buf { int x; };
4398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4399 static char *e (p, i)
4400      char **p;
4401      int i;
4402 {
4403   return p[i];
4404 }
4405 static char *f (char * (*g) (char **, int), char **p, ...)
4406 {
4407   char *s;
4408   va_list v;
4409   va_start (v,p);
4410   s = g (p, va_arg (v,int));
4411   va_end (v);
4412   return s;
4413 }
4414
4415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4416    function prototypes and stuff, but not '\xHH' hex character constants.
4417    These don't provoke an error unfortunately, instead are silently treated
4418    as 'x'.  The following induces an error, until -std is added to get
4419    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4420    array size at least.  It's necessary to write '\x00'==0 to get something
4421    that's true only with -std.  */
4422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4423
4424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4425    inside strings and character constants.  */
4426 #define FOO(x) 'x'
4427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4428
4429 int test (int i, double x);
4430 struct s1 {int (*f) (int a);};
4431 struct s2 {int (*f) (double a);};
4432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4433 int argc;
4434 char **argv;
4435 int
4436 main ()
4437 {
4438 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4444         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4445 do
4446   CC="$ac_save_CC $ac_arg"
4447   if ac_fn_c_try_compile "$LINENO"; then :
4448   ac_cv_prog_cc_c89=$ac_arg
4449 fi
4450 rm -f core conftest.err conftest.$ac_objext
4451   test "x$ac_cv_prog_cc_c89" != "xno" && break
4452 done
4453 rm -f conftest.$ac_ext
4454 CC=$ac_save_CC
4455
4456 fi
4457 # AC_CACHE_VAL
4458 case "x$ac_cv_prog_cc_c89" in
4459   x)
4460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4461 $as_echo "none needed" >&6; } ;;
4462   xno)
4463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4464 $as_echo "unsupported" >&6; } ;;
4465   *)
4466     CC="$CC $ac_cv_prog_cc_c89"
4467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4469 esac
4470 if test "x$ac_cv_prog_cc_c89" != xno; then :
4471
4472 fi
4473
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4486 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4487 if ${am_cv_prog_cc_c_o+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501   # Make sure it works both with $CC and with simple cc.
4502   # Following AC_PROG_CC_C_O, we do the test twice because some
4503   # compilers refuse to overwrite an existing .o file with -o,
4504   # though they will create one.
4505   am_cv_prog_cc_c_o=yes
4506   for am_i in 1 2; do
4507     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4508    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4509    ac_status=$?
4510    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511    (exit $ac_status); } \
4512          && test -f conftest2.$ac_objext; then
4513       : OK
4514     else
4515       am_cv_prog_cc_c_o=no
4516       break
4517     fi
4518   done
4519   rm -f core conftest*
4520   unset am_i
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4523 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4524 if test "$am_cv_prog_cc_c_o" != yes; then
4525    # Losing compiler, so override with the script.
4526    # FIXME: It is wrong to rewrite CC.
4527    # But if we don't then we get into trouble of one sort or another.
4528    # A longer-term fix would be to have automake use am__CC in this case,
4529    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4530    CC="$am_aux_dir/compile $CC"
4531 fi
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538
4539 depcc="$CC"   am_compiler_list=
4540
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4542 $as_echo_n "checking dependency style of $depcc... " >&6; }
4543 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4547   # We make a subdir and do the tests there.  Otherwise we can end up
4548   # making bogus files that we don't know about and never remove.  For
4549   # instance it was reported that on HP-UX the gcc test will end up
4550   # making a dummy file named 'D' -- because '-MD' means "put the output
4551   # in D".
4552   rm -rf conftest.dir
4553   mkdir conftest.dir
4554   # Copy depcomp to subdir because otherwise we won't find it if we're
4555   # using a relative directory.
4556   cp "$am_depcomp" conftest.dir
4557   cd conftest.dir
4558   # We will build objects and dependencies in a subdirectory because
4559   # it helps to detect inapplicable dependency modes.  For instance
4560   # both Tru64's cc and ICC support -MD to output dependencies as a
4561   # side effect of compilation, but ICC will put the dependencies in
4562   # the current directory while Tru64 will put them in the object
4563   # directory.
4564   mkdir sub
4565
4566   am_cv_CC_dependencies_compiler_type=none
4567   if test "$am_compiler_list" = ""; then
4568      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4569   fi
4570   am__universal=false
4571   case " $depcc " in #(
4572      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4573      esac
4574
4575   for depmode in $am_compiler_list; do
4576     # Setup a source with many dependencies, because some compilers
4577     # like to wrap large dependency lists on column 80 (with \), and
4578     # we should not choose a depcomp mode which is confused by this.
4579     #
4580     # We need to recreate these files for each test, as the compiler may
4581     # overwrite some of them when testing with obscure command lines.
4582     # This happens at least with the AIX C compiler.
4583     : > sub/conftest.c
4584     for i in 1 2 3 4 5 6; do
4585       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4586       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4587       # Solaris 10 /bin/sh.
4588       echo '/* dummy */' > sub/conftst$i.h
4589     done
4590     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4591
4592     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4593     # mode.  It turns out that the SunPro C++ compiler does not properly
4594     # handle '-M -o', and we need to detect this.  Also, some Intel
4595     # versions had trouble with output in subdirs.
4596     am__obj=sub/conftest.${OBJEXT-o}
4597     am__minus_obj="-o $am__obj"
4598     case $depmode in
4599     gcc)
4600       # This depmode causes a compiler race in universal mode.
4601       test "$am__universal" = false || continue
4602       ;;
4603     nosideeffect)
4604       # After this tag, mechanisms are not by side-effect, so they'll
4605       # only be used when explicitly requested.
4606       if test "x$enable_dependency_tracking" = xyes; then
4607         continue
4608       else
4609         break
4610       fi
4611       ;;
4612     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4613       # This compiler won't grok '-c -o', but also, the minuso test has
4614       # not run yet.  These depmodes are late enough in the game, and
4615       # so weak that their functioning should not be impacted.
4616       am__obj=conftest.${OBJEXT-o}
4617       am__minus_obj=
4618       ;;
4619     none) break ;;
4620     esac
4621     if depmode=$depmode \
4622        source=sub/conftest.c object=$am__obj \
4623        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4624        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4625          >/dev/null 2>conftest.err &&
4626        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4627        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4628        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4629        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4630       # icc doesn't choke on unknown options, it will just issue warnings
4631       # or remarks (even with -Werror).  So we grep stderr for any message
4632       # that says an option was ignored or not supported.
4633       # When given -MP, icc 7.0 and 7.1 complain thusly:
4634       #   icc: Command line warning: ignoring option '-M'; no argument required
4635       # The diagnosis changed in icc 8.0:
4636       #   icc: Command line remark: option '-MP' not supported
4637       if (grep 'ignoring option' conftest.err ||
4638           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4639         am_cv_CC_dependencies_compiler_type=$depmode
4640         break
4641       fi
4642     fi
4643   done
4644
4645   cd ..
4646   rm -rf conftest.dir
4647 else
4648   am_cv_CC_dependencies_compiler_type=none
4649 fi
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4653 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4655
4656  if
4657   test "x$enable_dependency_tracking" != xno \
4658   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4659   am__fastdepCC_TRUE=
4660   am__fastdepCC_FALSE='#'
4661 else
4662   am__fastdepCC_TRUE='#'
4663   am__fastdepCC_FALSE=
4664 fi
4665
4666
4667
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4674 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4675 # On Suns, sometimes $CPP names a directory.
4676 if test -n "$CPP" && test -d "$CPP"; then
4677   CPP=
4678 fi
4679 if test -z "$CPP"; then
4680   if ${ac_cv_prog_CPP+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683       # Double quotes because CPP needs to be expanded
4684     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4685     do
4686       ac_preproc_ok=false
4687 for ac_c_preproc_warn_flag in '' yes
4688 do
4689   # Use a header file that comes with gcc, so configuring glibc
4690   # with a fresh cross-compiler works.
4691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692   # <limits.h> exists even on freestanding compilers.
4693   # On the NeXT, cc -E runs the code through the compiler's parser,
4694   # not just through cpp. "Syntax error" is here to catch this case.
4695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697 #ifdef __STDC__
4698 # include <limits.h>
4699 #else
4700 # include <assert.h>
4701 #endif
4702                      Syntax error
4703 _ACEOF
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705
4706 else
4707   # Broken: fails on valid input.
4708 continue
4709 fi
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4711
4712   # OK, works on sane cases.  Now check whether nonexistent headers
4713   # can be detected and how.
4714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719   # Broken: success on invalid input.
4720 continue
4721 else
4722   # Passes both tests.
4723 ac_preproc_ok=:
4724 break
4725 fi
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4727
4728 done
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4732   break
4733 fi
4734
4735     done
4736     ac_cv_prog_CPP=$CPP
4737
4738 fi
4739   CPP=$ac_cv_prog_CPP
4740 else
4741   ac_cv_prog_CPP=$CPP
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4744 $as_echo "$CPP" >&6; }
4745 ac_preproc_ok=false
4746 for ac_c_preproc_warn_flag in '' yes
4747 do
4748   # Use a header file that comes with gcc, so configuring glibc
4749   # with a fresh cross-compiler works.
4750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751   # <limits.h> exists even on freestanding compilers.
4752   # On the NeXT, cc -E runs the code through the compiler's parser,
4753   # not just through cpp. "Syntax error" is here to catch this case.
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756 #ifdef __STDC__
4757 # include <limits.h>
4758 #else
4759 # include <assert.h>
4760 #endif
4761                      Syntax error
4762 _ACEOF
4763 if ac_fn_c_try_cpp "$LINENO"; then :
4764
4765 else
4766   # Broken: fails on valid input.
4767 continue
4768 fi
4769 rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771   # OK, works on sane cases.  Now check whether nonexistent headers
4772   # can be detected and how.
4773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 #include <ac_nonexistent.h>
4776 _ACEOF
4777 if ac_fn_c_try_cpp "$LINENO"; then :
4778   # Broken: success on invalid input.
4779 continue
4780 else
4781   # Passes both tests.
4782 ac_preproc_ok=:
4783 break
4784 fi
4785 rm -f conftest.err conftest.i conftest.$ac_ext
4786
4787 done
4788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789 rm -f conftest.i conftest.err conftest.$ac_ext
4790 if $ac_preproc_ok; then :
4791
4792 else
4793   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4796 See \`config.log' for more details" "$LINENO" 5; }
4797 fi
4798
4799 ac_ext=c
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4807 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4808 if ${ac_cv_path_GREP+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   if test -z "$GREP"; then
4812   ac_path_GREP_found=false
4813   # Loop through the user's path and test for each of PROGNAME-LIST
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819     for ac_prog in grep ggrep; do
4820     for ac_exec_ext in '' $ac_executable_extensions; do
4821       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4822       as_fn_executable_p "$ac_path_GREP" || continue
4823 # Check for GNU ac_path_GREP and select it if it is found.
4824   # Check for GNU $ac_path_GREP
4825 case `"$ac_path_GREP" --version 2>&1` in
4826 *GNU*)
4827   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4828 *)
4829   ac_count=0
4830   $as_echo_n 0123456789 >"conftest.in"
4831   while :
4832   do
4833     cat "conftest.in" "conftest.in" >"conftest.tmp"
4834     mv "conftest.tmp" "conftest.in"
4835     cp "conftest.in" "conftest.nl"
4836     $as_echo 'GREP' >> "conftest.nl"
4837     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839     as_fn_arith $ac_count + 1 && ac_count=$as_val
4840     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841       # Best one so far, save it but keep looking for a better one
4842       ac_cv_path_GREP="$ac_path_GREP"
4843       ac_path_GREP_max=$ac_count
4844     fi
4845     # 10*(2^10) chars as input seems more than enough
4846     test $ac_count -gt 10 && break
4847   done
4848   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4850
4851       $ac_path_GREP_found && break 3
4852     done
4853   done
4854   done
4855 IFS=$as_save_IFS
4856   if test -z "$ac_cv_path_GREP"; then
4857     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858   fi
4859 else
4860   ac_cv_path_GREP=$GREP
4861 fi
4862
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865 $as_echo "$ac_cv_path_GREP" >&6; }
4866  GREP="$ac_cv_path_GREP"
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870 $as_echo_n "checking for egrep... " >&6; }
4871 if ${ac_cv_path_EGREP+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4875    then ac_cv_path_EGREP="$GREP -E"
4876    else
4877      if test -z "$EGREP"; then
4878   ac_path_EGREP_found=false
4879   # Loop through the user's path and test for each of PROGNAME-LIST
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_prog in egrep; do
4886     for ac_exec_ext in '' $ac_executable_extensions; do
4887       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4888       as_fn_executable_p "$ac_path_EGREP" || continue
4889 # Check for GNU ac_path_EGREP and select it if it is found.
4890   # Check for GNU $ac_path_EGREP
4891 case `"$ac_path_EGREP" --version 2>&1` in
4892 *GNU*)
4893   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4894 *)
4895   ac_count=0
4896   $as_echo_n 0123456789 >"conftest.in"
4897   while :
4898   do
4899     cat "conftest.in" "conftest.in" >"conftest.tmp"
4900     mv "conftest.tmp" "conftest.in"
4901     cp "conftest.in" "conftest.nl"
4902     $as_echo 'EGREP' >> "conftest.nl"
4903     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905     as_fn_arith $ac_count + 1 && ac_count=$as_val
4906     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4907       # Best one so far, save it but keep looking for a better one
4908       ac_cv_path_EGREP="$ac_path_EGREP"
4909       ac_path_EGREP_max=$ac_count
4910     fi
4911     # 10*(2^10) chars as input seems more than enough
4912     test $ac_count -gt 10 && break
4913   done
4914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915 esac
4916
4917       $ac_path_EGREP_found && break 3
4918     done
4919   done
4920   done
4921 IFS=$as_save_IFS
4922   if test -z "$ac_cv_path_EGREP"; then
4923     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924   fi
4925 else
4926   ac_cv_path_EGREP=$EGREP
4927 fi
4928
4929    fi
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4932 $as_echo "$ac_cv_path_EGREP" >&6; }
4933  EGREP="$ac_cv_path_EGREP"
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4937 $as_echo_n "checking for ANSI C header files... " >&6; }
4938 if ${ac_cv_header_stdc+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h.  */
4943 #include <stdlib.h>
4944 #include <stdarg.h>
4945 #include <string.h>
4946 #include <float.h>
4947
4948 int
4949 main ()
4950 {
4951
4952   ;
4953   return 0;
4954 }
4955 _ACEOF
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957   ac_cv_header_stdc=yes
4958 else
4959   ac_cv_header_stdc=no
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962
4963 if test $ac_cv_header_stdc = yes; then
4964   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h.  */
4967 #include <string.h>
4968
4969 _ACEOF
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971   $EGREP "memchr" >/dev/null 2>&1; then :
4972
4973 else
4974   ac_cv_header_stdc=no
4975 fi
4976 rm -f conftest*
4977
4978 fi
4979
4980 if test $ac_cv_header_stdc = yes; then
4981   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h.  */
4984 #include <stdlib.h>
4985
4986 _ACEOF
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988   $EGREP "free" >/dev/null 2>&1; then :
4989
4990 else
4991   ac_cv_header_stdc=no
4992 fi
4993 rm -f conftest*
4994
4995 fi
4996
4997 if test $ac_cv_header_stdc = yes; then
4998   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999   if test "$cross_compiling" = yes; then :
5000   :
5001 else
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 #include <ctype.h>
5005 #include <stdlib.h>
5006 #if ((' ' & 0x0FF) == 0x020)
5007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5009 #else
5010 # define ISLOWER(c) \
5011                    (('a' <= (c) && (c) <= 'i') \
5012                      || ('j' <= (c) && (c) <= 'r') \
5013                      || ('s' <= (c) && (c) <= 'z'))
5014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5015 #endif
5016
5017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5018 int
5019 main ()
5020 {
5021   int i;
5022   for (i = 0; i < 256; i++)
5023     if (XOR (islower (i), ISLOWER (i))
5024         || toupper (i) != TOUPPER (i))
5025       return 2;
5026   return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_c_try_run "$LINENO"; then :
5030
5031 else
5032   ac_cv_header_stdc=no
5033 fi
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5035   conftest.$ac_objext conftest.beam conftest.$ac_ext
5036 fi
5037
5038 fi
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5041 $as_echo "$ac_cv_header_stdc" >&6; }
5042 if test $ac_cv_header_stdc = yes; then
5043
5044 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5045
5046 fi
5047
5048 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5050                   inttypes.h stdint.h unistd.h
5051 do :
5052   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5054 "
5055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5056   cat >>confdefs.h <<_ACEOF
5057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058 _ACEOF
5059
5060 fi
5061
5062 done
5063
5064
5065
5066   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5067 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5068   MINIX=yes
5069 else
5070   MINIX=
5071 fi
5072
5073
5074   if test "$MINIX" = yes; then
5075
5076 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5077
5078
5079 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5080
5081
5082 $as_echo "#define _MINIX 1" >>confdefs.h
5083
5084   fi
5085
5086
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5088 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5089 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094
5095 #         define __EXTENSIONS__ 1
5096           $ac_includes_default
5097 int
5098 main ()
5099 {
5100
5101   ;
5102   return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106   ac_cv_safe_to_define___extensions__=yes
5107 else
5108   ac_cv_safe_to_define___extensions__=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5113 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5114   test $ac_cv_safe_to_define___extensions__ = yes &&
5115     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5116
5117   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5118
5119   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5120
5121   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5122
5123   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5124
5125
5126
5127
5128
5129 # Some status variables.
5130 have_gpg_error=no
5131 have_libgcrypt=no
5132 have_libassuan=no
5133 have_ksba=no
5134 have_ntbtls=no
5135 have_gnutls=no
5136 have_sqlite=no
5137 have_npth=no
5138 have_libusb=no
5139 have_system_resolver=no
5140 gnupg_have_ldap="n/a"
5141
5142 use_zip=yes
5143 use_bzip2=yes
5144 use_exec=yes
5145 use_trust_models=yes
5146 use_tofu=yes
5147 use_libdns=yes
5148 card_support=yes
5149 use_ccid_driver=auto
5150 dirmngr_auto_start=yes
5151 use_tls_library=no
5152 large_secmem=no
5153 show_tor_support=no
5154
5155
5156    build_gpg=yes
5157
5158       # Check whether --enable-gpg was given.
5159 if test "${enable_gpg+set}" = set; then :
5160   enableval=$enable_gpg; build_gpg=$enableval
5161 else
5162   build_gpg=yes
5163 fi
5164
5165
5166    case "$build_gpg" in
5167          no|yes)
5168            ;;
5169          *)
5170            as_fn_error $? "only yes or no allowed for feature --enable-gpg" "$LINENO" 5
5171            ;;
5172    esac
5173
5174
5175
5176    build_gpgsm=yes
5177
5178       # Check whether --enable-gpgsm was given.
5179 if test "${enable_gpgsm+set}" = set; then :
5180   enableval=$enable_gpgsm; build_gpgsm=$enableval
5181 else
5182   build_gpgsm=yes
5183 fi
5184
5185
5186    case "$build_gpgsm" in
5187          no|yes)
5188            ;;
5189          *)
5190            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5191            ;;
5192    esac
5193
5194
5195 # The agent is a required part and can't be disabled anymore.
5196 build_agent=yes
5197
5198    build_scdaemon=yes
5199
5200       # Check whether --enable-scdaemon was given.
5201 if test "${enable_scdaemon+set}" = set; then :
5202   enableval=$enable_scdaemon; build_scdaemon=$enableval
5203 else
5204   build_scdaemon=yes
5205 fi
5206
5207
5208    case "$build_scdaemon" in
5209          no|yes)
5210            ;;
5211          *)
5212            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5213            ;;
5214    esac
5215
5216
5217
5218    build_g13=no
5219
5220       # Check whether --enable-g13 was given.
5221 if test "${enable_g13+set}" = set; then :
5222   enableval=$enable_g13; build_g13=$enableval
5223 else
5224   build_g13=no
5225 fi
5226
5227
5228    case "$build_g13" in
5229          no|yes)
5230            ;;
5231          *)
5232            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5233            ;;
5234    esac
5235
5236
5237
5238    build_dirmngr=yes
5239
5240       # Check whether --enable-dirmngr was given.
5241 if test "${enable_dirmngr+set}" = set; then :
5242   enableval=$enable_dirmngr; build_dirmngr=$enableval
5243 else
5244   build_dirmngr=yes
5245 fi
5246
5247
5248    case "$build_dirmngr" in
5249          no|yes)
5250            ;;
5251          *)
5252            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5253            ;;
5254    esac
5255
5256
5257
5258    build_doc=yes
5259
5260       # Check whether --enable-doc was given.
5261 if test "${enable_doc+set}" = set; then :
5262   enableval=$enable_doc; build_doc=$enableval
5263 else
5264   build_doc=yes
5265 fi
5266
5267
5268    case "$build_doc" in
5269          no|yes)
5270            ;;
5271          *)
5272            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5273            ;;
5274    esac
5275
5276
5277 # We use gpgtar to unpack test data, hence we always build it.  If the
5278 # user opts out, we simply don't install it.
5279
5280    build_gpgtar=yes
5281
5282       # Check whether --enable-gpgtar was given.
5283 if test "${enable_gpgtar+set}" = set; then :
5284   enableval=$enable_gpgtar; build_gpgtar=$enableval
5285 else
5286   build_gpgtar=yes
5287 fi
5288
5289
5290    case "$build_gpgtar" in
5291          no|yes)
5292            ;;
5293          *)
5294            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5295            ;;
5296    esac
5297
5298
5299 # We also install the gpg-wks-server tool by default but disable it
5300 # later for platforms where it can't be build.
5301
5302    build_wks_tools=yes
5303
5304       # Check whether --enable-wks-tools was given.
5305 if test "${enable_wks_tools+set}" = set; then :
5306   enableval=$enable_wks_tools; build_wks_tools=$enableval
5307 else
5308   build_wks_tools=yes
5309 fi
5310
5311
5312    case "$build_wks_tools" in
5313          no|yes)
5314            ;;
5315          *)
5316            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5317            ;;
5318    esac
5319
5320
5321
5322
5323
5324
5325
5326
5327 cat >>confdefs.h <<_ACEOF
5328 #define PACKAGE "$PACKAGE"
5329 _ACEOF
5330
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define PACKAGE_GT "$PACKAGE_GT"
5334 _ACEOF
5335
5336
5337 cat >>confdefs.h <<_ACEOF
5338 #define VERSION "$VERSION"
5339 _ACEOF
5340
5341
5342 cat >>confdefs.h <<_ACEOF
5343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5344 _ACEOF
5345
5346
5347 cat >>confdefs.h <<_ACEOF
5348 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5349 _ACEOF
5350
5351
5352 cat >>confdefs.h <<_ACEOF
5353 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5354 _ACEOF
5355
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5359 _ACEOF
5360
5361
5362
5363
5364 # The default is to use the modules from this package and the few
5365 # other packages in a standard place; i.e where this package gets
5366 # installed.  With these options it is possible to override these
5367 # ${prefix} depended values with fixed paths, which can't be replaced
5368 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5369
5370 # Check whether --with-agent-pgm was given.
5371 if test "${with_agent_pgm+set}" = set; then :
5372   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5373 else
5374   GNUPG_AGENT_PGM=""
5375 fi
5376
5377
5378  if test -n "$GNUPG_AGENT_PGM"; then
5379   GNUPG_AGENT_PGM_TRUE=
5380   GNUPG_AGENT_PGM_FALSE='#'
5381 else
5382   GNUPG_AGENT_PGM_TRUE='#'
5383   GNUPG_AGENT_PGM_FALSE=
5384 fi
5385
5386 show_gnupg_agent_pgm="(default)"
5387 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5388
5389
5390 # Check whether --with-pinentry-pgm was given.
5391 if test "${with_pinentry_pgm+set}" = set; then :
5392   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5393 else
5394   GNUPG_PINENTRY_PGM=""
5395 fi
5396
5397
5398  if test -n "$GNUPG_PINENTRY_PGM"; then
5399   GNUPG_PINENTRY_PGM_TRUE=
5400   GNUPG_PINENTRY_PGM_FALSE='#'
5401 else
5402   GNUPG_PINENTRY_PGM_TRUE='#'
5403   GNUPG_PINENTRY_PGM_FALSE=
5404 fi
5405
5406 show_gnupg_pinentry_pgm="(default)"
5407 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5408
5409
5410
5411 # Check whether --with-scdaemon-pgm was given.
5412 if test "${with_scdaemon_pgm+set}" = set; then :
5413   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5414 else
5415   GNUPG_SCDAEMON_PGM=""
5416 fi
5417
5418
5419  if test -n "$GNUPG_SCDAEMON_PGM"; then
5420   GNUPG_SCDAEMON_PGM_TRUE=
5421   GNUPG_SCDAEMON_PGM_FALSE='#'
5422 else
5423   GNUPG_SCDAEMON_PGM_TRUE='#'
5424   GNUPG_SCDAEMON_PGM_FALSE=
5425 fi
5426
5427 show_gnupg_scdaemon_pgm="(default)"
5428 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5429
5430
5431
5432 # Check whether --with-dirmngr-pgm was given.
5433 if test "${with_dirmngr_pgm+set}" = set; then :
5434   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5435 else
5436   GNUPG_DIRMNGR_PGM=""
5437 fi
5438
5439
5440  if test -n "$GNUPG_DIRMNGR_PGM"; then
5441   GNUPG_DIRMNGR_PGM_TRUE=
5442   GNUPG_DIRMNGR_PGM_FALSE='#'
5443 else
5444   GNUPG_DIRMNGR_PGM_TRUE='#'
5445   GNUPG_DIRMNGR_PGM_FALSE=
5446 fi
5447
5448 show_gnupg_dirmngr_pgm="(default)"
5449 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5450
5451
5452 # Check whether --with-protect-tool-pgm was given.
5453 if test "${with_protect_tool_pgm+set}" = set; then :
5454   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5455 else
5456   GNUPG_PROTECT_TOOL_PGM=""
5457 fi
5458
5459
5460  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5461   GNUPG_PROTECT_TOOL_PGM_TRUE=
5462   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5463 else
5464   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5465   GNUPG_PROTECT_TOOL_PGM_FALSE=
5466 fi
5467
5468 show_gnupg_protect_tool_pgm="(default)"
5469 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5470       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5471
5472
5473 # Check whether --with-dirmngr-ldap-pgm was given.
5474 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5475   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5476 else
5477   GNUPG_DIRMNGR_LDAP_PGM=""
5478 fi
5479
5480
5481  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5482   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5483   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5484 else
5485   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5486   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5487 fi
5488
5489 show_gnupg_dirmngr_ldap_pgm="(default)"
5490 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5491       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5492
5493
5494 #
5495 # For a long time gpg 2.x was installed as gpg2.  This changed with
5496 # 2.2.  This option can be used to install gpg under the name gpg2.
5497 #
5498 # Check whether --enable-gpg-is-gpg2 was given.
5499 if test "${enable_gpg_is_gpg2+set}" = set; then :
5500   enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5501 fi
5502
5503 if test "$gpg_is_gpg2" = "yes"; then
5504
5505 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5506
5507 fi
5508  if test "$gpg_is_gpg2" = "yes"; then
5509   USE_GPG2_HACK_TRUE=
5510   USE_GPG2_HACK_FALSE='#'
5511 else
5512   USE_GPG2_HACK_TRUE='#'
5513   USE_GPG2_HACK_FALSE=
5514 fi
5515
5516
5517
5518 # SELinux support includes tracking of sensitive files to avoid
5519 # leaking their contents through processing these files by gpg itself
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5521 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5522 # Check whether --enable-selinux-support was given.
5523 if test "${enable_selinux_support+set}" = set; then :
5524   enableval=$enable_selinux_support; selinux_support=$enableval
5525 else
5526   selinux_support=no
5527 fi
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5530 $as_echo "$selinux_support" >&6; }
5531
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5534 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5535 # Check whether --enable-large-secmem was given.
5536 if test "${enable_large_secmem+set}" = set; then :
5537   enableval=$enable_large_secmem; large_secmem=$enableval
5538 else
5539   large_secmem=no
5540 fi
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5543 $as_echo "$large_secmem" >&6; }
5544 if test "$large_secmem" = yes ; then
5545    SECMEM_BUFFER_SIZE=65536
5546 else
5547    SECMEM_BUFFER_SIZE=32768
5548 fi
5549
5550 cat >>confdefs.h <<_ACEOF
5551 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5552 _ACEOF
5553
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5556 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5557
5558 # Check whether --with-agent-s2k-calibration was given.
5559 if test "${with_agent_s2k_calibration+set}" = set; then :
5560   withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5561 else
5562   agent_s2k_calibration=100
5563 fi
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5566 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5567
5568 cat >>confdefs.h <<_ACEOF
5569 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5570 _ACEOF
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5574 $as_echo_n "checking whether to enable trust models... " >&6; }
5575 # Check whether --enable-trust-models was given.
5576 if test "${enable_trust_models+set}" = set; then :
5577   enableval=$enable_trust_models; use_trust_models=$enableval
5578 fi
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5581 $as_echo "$use_trust_models" >&6; }
5582 if test "$use_trust_models" = no ; then
5583
5584 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5585
5586 fi
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5589 $as_echo_n "checking whether to enable TOFU... " >&6; }
5590 # Check whether --enable-tofu was given.
5591 if test "${enable_tofu+set}" = set; then :
5592   enableval=$enable_tofu; use_tofu=$enableval
5593 else
5594   use_tofu=$use_trust_models
5595 fi
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5598 $as_echo "$use_tofu" >&6; }
5599 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5600     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5601 fi
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5604 $as_echo_n "checking whether to enable libdns... " >&6; }
5605 # Check whether --enable-libdns was given.
5606 if test "${enable_libdns+set}" = set; then :
5607   enableval=$enable_libdns; use_libdns=$enableval
5608 else
5609   use_libdns=yes
5610 fi
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5613 $as_echo "$use_libdns" >&6; }
5614 if test x"$use_libdns" = xyes ; then
5615
5616 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5617
5618 fi
5619  if test "$use_libdns" = yes; then
5620   USE_LIBDNS_TRUE=
5621   USE_LIBDNS_FALSE='#'
5622 else
5623   USE_LIBDNS_TRUE='#'
5624   USE_LIBDNS_FALSE=
5625 fi
5626
5627
5628
5629 #
5630 # Options to disable algorithm
5631 #
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5634 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5635    # Check whether --enable-gpg-rsa was given.
5636 if test "${enable_gpg_rsa+set}" = set; then :
5637   enableval=$enable_gpg_rsa;
5638 else
5639   enableval=yes
5640 fi
5641
5642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5643 $as_echo "$enableval" >&6; }
5644    if test x"$enableval" = xyes ; then
5645
5646 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5647
5648    fi
5649
5650 # Elgamal is a MUST algorithm
5651 # DSA is a MUST algorithm
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5653 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5654    # Check whether --enable-gpg-ecdh was given.
5655 if test "${enable_gpg_ecdh+set}" = set; then :
5656   enableval=$enable_gpg_ecdh;
5657 else
5658   enableval=yes
5659 fi
5660
5661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5662 $as_echo "$enableval" >&6; }
5663    if test x"$enableval" = xyes ; then
5664
5665 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5666
5667    fi
5668
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5670 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5671    # Check whether --enable-gpg-ecdsa was given.
5672 if test "${enable_gpg_ecdsa+set}" = set; then :
5673   enableval=$enable_gpg_ecdsa;
5674 else
5675   enableval=yes
5676 fi
5677
5678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5679 $as_echo "$enableval" >&6; }
5680    if test x"$enableval" = xyes ; then
5681
5682 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5683
5684    fi
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5687 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5688    # Check whether --enable-gpg-eddsa was given.
5689 if test "${enable_gpg_eddsa+set}" = set; then :
5690   enableval=$enable_gpg_eddsa;
5691 else
5692   enableval=yes
5693 fi
5694
5695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5696 $as_echo "$enableval" >&6; }
5697    if test x"$enableval" = xyes ; then
5698
5699 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5700
5701    fi
5702
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5705 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5706    # Check whether --enable-gpg-idea was given.
5707 if test "${enable_gpg_idea+set}" = set; then :
5708   enableval=$enable_gpg_idea;
5709 else
5710   enableval=yes
5711 fi
5712
5713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5714 $as_echo "$enableval" >&6; }
5715    if test x"$enableval" = xyes ; then
5716
5717 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5718
5719    fi
5720
5721 # 3DES is a MUST algorithm
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5723 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5724    # Check whether --enable-gpg-cast5 was given.
5725 if test "${enable_gpg_cast5+set}" = set; then :
5726   enableval=$enable_gpg_cast5;
5727 else
5728   enableval=yes
5729 fi
5730
5731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5732 $as_echo "$enableval" >&6; }
5733    if test x"$enableval" = xyes ; then
5734
5735 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5736
5737    fi
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5740 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5741    # Check whether --enable-gpg-blowfish was given.
5742 if test "${enable_gpg_blowfish+set}" = set; then :
5743   enableval=$enable_gpg_blowfish;
5744 else
5745   enableval=yes
5746 fi
5747
5748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5749 $as_echo "$enableval" >&6; }
5750    if test x"$enableval" = xyes ; then
5751
5752 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5753
5754    fi
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5757 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5758    # Check whether --enable-gpg-aes128 was given.
5759 if test "${enable_gpg_aes128+set}" = set; then :
5760   enableval=$enable_gpg_aes128;
5761 else
5762   enableval=yes
5763 fi
5764
5765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5766 $as_echo "$enableval" >&6; }
5767    if test x"$enableval" = xyes ; then
5768
5769 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5770
5771    fi
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5774 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5775    # Check whether --enable-gpg-aes192 was given.
5776 if test "${enable_gpg_aes192+set}" = set; then :
5777   enableval=$enable_gpg_aes192;
5778 else
5779   enableval=yes
5780 fi
5781
5782    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5783 $as_echo "$enableval" >&6; }
5784    if test x"$enableval" = xyes ; then
5785
5786 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5787
5788    fi
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5791 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5792    # Check whether --enable-gpg-aes256 was given.
5793 if test "${enable_gpg_aes256+set}" = set; then :
5794   enableval=$enable_gpg_aes256;
5795 else
5796   enableval=yes
5797 fi
5798
5799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5800 $as_echo "$enableval" >&6; }
5801    if test x"$enableval" = xyes ; then
5802
5803 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5804
5805    fi
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5808 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5809    # Check whether --enable-gpg-twofish was given.
5810 if test "${enable_gpg_twofish+set}" = set; then :
5811   enableval=$enable_gpg_twofish;
5812 else
5813   enableval=yes
5814 fi
5815
5816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5817 $as_echo "$enableval" >&6; }
5818    if test x"$enableval" = xyes ; then
5819
5820 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5821
5822    fi
5823
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5825 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5826    # Check whether --enable-gpg-camellia128 was given.
5827 if test "${enable_gpg_camellia128+set}" = set; then :
5828   enableval=$enable_gpg_camellia128;
5829 else
5830   enableval=yes
5831 fi
5832
5833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5834 $as_echo "$enableval" >&6; }
5835    if test x"$enableval" = xyes ; then
5836
5837 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5838
5839    fi
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5842 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5843    # Check whether --enable-gpg-camellia192 was given.
5844 if test "${enable_gpg_camellia192+set}" = set; then :
5845   enableval=$enable_gpg_camellia192;
5846 else
5847   enableval=yes
5848 fi
5849
5850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5851 $as_echo "$enableval" >&6; }
5852    if test x"$enableval" = xyes ; then
5853
5854 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5855
5856    fi
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5859 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5860    # Check whether --enable-gpg-camellia256 was given.
5861 if test "${enable_gpg_camellia256+set}" = set; then :
5862   enableval=$enable_gpg_camellia256;
5863 else
5864   enableval=yes
5865 fi
5866
5867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5868 $as_echo "$enableval" >&6; }
5869    if test x"$enableval" = xyes ; then
5870
5871 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5872
5873    fi
5874
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5877 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5878    # Check whether --enable-gpg-md5 was given.
5879 if test "${enable_gpg_md5+set}" = set; then :
5880   enableval=$enable_gpg_md5;
5881 else
5882   enableval=yes
5883 fi
5884
5885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5886 $as_echo "$enableval" >&6; }
5887    if test x"$enableval" = xyes ; then
5888
5889 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5890
5891    fi
5892
5893 # SHA1 is a MUST algorithm
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5895 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5896    # Check whether --enable-gpg-rmd160 was given.
5897 if test "${enable_gpg_rmd160+set}" = set; then :
5898   enableval=$enable_gpg_rmd160;
5899 else
5900   enableval=yes
5901 fi
5902
5903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5904 $as_echo "$enableval" >&6; }
5905    if test x"$enableval" = xyes ; then
5906
5907 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5908
5909    fi
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5912 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5913    # Check whether --enable-gpg-sha224 was given.
5914 if test "${enable_gpg_sha224+set}" = set; then :
5915   enableval=$enable_gpg_sha224;
5916 else
5917   enableval=yes
5918 fi
5919
5920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5921 $as_echo "$enableval" >&6; }
5922    if test x"$enableval" = xyes ; then
5923
5924 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
5925
5926    fi
5927
5928 # SHA256 is a MUST algorithm for GnuPG.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
5930 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
5931    # Check whether --enable-gpg-sha384 was given.
5932 if test "${enable_gpg_sha384+set}" = set; then :
5933   enableval=$enable_gpg_sha384;
5934 else
5935   enableval=yes
5936 fi
5937
5938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5939 $as_echo "$enableval" >&6; }
5940    if test x"$enableval" = xyes ; then
5941
5942 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
5943
5944    fi
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
5947 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
5948    # Check whether --enable-gpg-sha512 was given.
5949 if test "${enable_gpg_sha512+set}" = set; then :
5950   enableval=$enable_gpg_sha512;
5951 else
5952   enableval=yes
5953 fi
5954
5955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5956 $as_echo "$enableval" >&6; }
5957    if test x"$enableval" = xyes ; then
5958
5959 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
5960
5961    fi
5962
5963
5964
5965 # Allow disabling of zip support.
5966 # This is in general not a good idea because according to rfc4880 OpenPGP
5967 # implementations SHOULD support ZLIB.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
5969 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
5970 # Check whether --enable-zip was given.
5971 if test "${enable_zip+set}" = set; then :
5972   enableval=$enable_zip; use_zip=$enableval
5973 fi
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
5976 $as_echo "$use_zip" >&6; }
5977
5978 # Allow disabling of bzib2 support.
5979 # It is defined only after we confirm the library is available later
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
5981 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
5982 # Check whether --enable-bzip2 was given.
5983 if test "${enable_bzip2+set}" = set; then :
5984   enableval=$enable_bzip2; use_bzip2=$enableval
5985 fi
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
5988 $as_echo "$use_bzip2" >&6; }
5989
5990 # Configure option to allow or disallow execution of external
5991 # programs, like a photo viewer.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
5993 $as_echo_n "checking whether to enable external program execution... " >&6; }
5994 # Check whether --enable-exec was given.
5995 if test "${enable_exec+set}" = set; then :
5996   enableval=$enable_exec; use_exec=$enableval
5997 fi
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6000 $as_echo "$use_exec" >&6; }
6001 if test "$use_exec" = no ; then
6002
6003 $as_echo "#define NO_EXEC 1" >>confdefs.h
6004
6005 fi
6006
6007 if test "$use_exec" = yes ; then
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6009 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6010   # Check whether --enable-photo-viewers was given.
6011 if test "${enable_photo_viewers+set}" = set; then :
6012   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6013
6014 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6015
6016       fi
6017 else
6018   enableval=yes
6019 fi
6020
6021   gnupg_cv_enable_photo_viewers=$enableval
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6023 $as_echo "$enableval" >&6; }
6024
6025   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6027 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6028
6029 # Check whether --with-photo-viewer was given.
6030 if test "${with_photo_viewer+set}" = set; then :
6031   withval=$with_photo_viewer; if test "$withval" = yes ; then
6032            withval=no
6033         elif test "$withval" != no ; then
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define FIXED_PHOTO_VIEWER "$withval"
6037 _ACEOF
6038
6039         fi
6040 else
6041   withval=no
6042 fi
6043
6044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6045 $as_echo "$withval" >&6; }
6046   fi
6047 fi
6048
6049
6050 #
6051 # Check for the key/uid cache size.  This can't be zero, but can be
6052 # pretty small on embedded systems.  This is used for the gpg part.
6053 #
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6055 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6056 # Check whether --enable-key-cache was given.
6057 if test "${enable_key_cache+set}" = set; then :
6058   enableval=$enable_key_cache;
6059 else
6060   enableval=4096
6061 fi
6062
6063 if test "$enableval" = "no"; then
6064    enableval=5
6065 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6066    enableval=4096
6067 fi
6068 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6069 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6070    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6071 fi
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6073 $as_echo "$key_cache_size" >&6; }
6074
6075 cat >>confdefs.h <<_ACEOF
6076 #define PK_UID_CACHE_SIZE $key_cache_size
6077 _ACEOF
6078
6079
6080
6081
6082 #
6083 # Check whether we want to use Linux capabilities
6084 #
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6086 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6087
6088 # Check whether --with-capabilities was given.
6089 if test "${with_capabilities+set}" = set; then :
6090   withval=$with_capabilities; use_capabilities="$withval"
6091 else
6092   use_capabilities=no
6093 fi
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6096 $as_echo "$use_capabilities" >&6; }
6097
6098 #
6099 # Check whether to disable the card support
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6101 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6102 # Check whether --enable-card-support was given.
6103 if test "${enable_card_support+set}" = set; then :
6104   enableval=$enable_card_support; card_support=$enableval
6105 fi
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6108 $as_echo "$card_support" >&6; }
6109 if test "$card_support" = yes ; then
6110
6111 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6112
6113 else
6114   build_scdaemon=no
6115 fi
6116
6117 #
6118 # Allow disabling of internal CCID support.
6119 # It is defined only after we confirm the library is available later
6120 #
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6122 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6123 # Check whether --enable-ccid-driver was given.
6124 if test "${enable_ccid_driver+set}" = set; then :
6125   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6126 fi
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6129 $as_echo "$use_ccid_driver" >&6; }
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6132 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6133 # Check whether --enable-dirmngr-auto-start was given.
6134 if test "${enable_dirmngr_auto_start+set}" = set; then :
6135   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6136 fi
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6139 $as_echo "$dirmngr_auto_start" >&6; }
6140 if test "$dirmngr_auto_start" = yes ; then
6141
6142 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6143
6144 fi
6145
6146
6147 #
6148 # To avoid double inclusion of config.h which might happen at some
6149 # places, we add the usual double inclusion protection at the top of
6150 # config.h.
6151 #
6152
6153
6154 #
6155 # Stuff which goes at the bottom of config.h.
6156 #
6157
6158
6159
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6162 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6163     # Check whether --enable-maintainer-mode was given.
6164 if test "${enable_maintainer_mode+set}" = set; then :
6165   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6166 else
6167   USE_MAINTAINER_MODE=no
6168 fi
6169
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6171 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6172    if test $USE_MAINTAINER_MODE = yes; then
6173   MAINTAINER_MODE_TRUE=
6174   MAINTAINER_MODE_FALSE='#'
6175 else
6176   MAINTAINER_MODE_TRUE='#'
6177   MAINTAINER_MODE_FALSE=
6178 fi
6179
6180   MAINT=$MAINTAINER_MODE_TRUE
6181
6182
6183
6184
6185 # Checks for programs.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6187 $as_echo "$as_me: checking for programs" >&6;}
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6190 set x ${MAKE-make}
6191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6192 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6193   $as_echo_n "(cached) " >&6
6194 else
6195   cat >conftest.make <<\_ACEOF
6196 SHELL = /bin/sh
6197 all:
6198         @echo '@@@%%%=$(MAKE)=@@@%%%'
6199 _ACEOF
6200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6202   *@@@%%%=?*=@@@%%%*)
6203     eval ac_cv_prog_make_${ac_make}_set=yes;;
6204   *)
6205     eval ac_cv_prog_make_${ac_make}_set=no;;
6206 esac
6207 rm -f conftest.make
6208 fi
6209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6211 $as_echo "yes" >&6; }
6212   SET_MAKE=
6213 else
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216   SET_MAKE="MAKE=${MAKE-make}"
6217 fi
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6220 $as_echo_n "checking whether build environment is sane... " >&6; }
6221 # Reject unsafe characters in $srcdir or the absolute working directory
6222 # name.  Accept space and tab only in the latter.
6223 am_lf='
6224 '
6225 case `pwd` in
6226   *[\\\"\#\$\&\'\`$am_lf]*)
6227     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6228 esac
6229 case $srcdir in
6230   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6231     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6232 esac
6233
6234 # Do 'set' in a subshell so we don't clobber the current shell's
6235 # arguments.  Must try -L first in case configure is actually a
6236 # symlink; some systems play weird games with the mod time of symlinks
6237 # (eg FreeBSD returns the mod time of the symlink's containing
6238 # directory).
6239 if (
6240    am_has_slept=no
6241    for am_try in 1 2; do
6242      echo "timestamp, slept: $am_has_slept" > conftest.file
6243      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6244      if test "$*" = "X"; then
6245         # -L didn't work.
6246         set X `ls -t "$srcdir/configure" conftest.file`
6247      fi
6248      if test "$*" != "X $srcdir/configure conftest.file" \
6249         && test "$*" != "X conftest.file $srcdir/configure"; then
6250
6251         # If neither matched, then we have a broken ls.  This can happen
6252         # if, for instance, CONFIG_SHELL is bash and it inherits a
6253         # broken ls alias from the environment.  This has actually
6254         # happened.  Such a system could not be considered "sane".
6255         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6256   alias in your environment" "$LINENO" 5
6257      fi
6258      if test "$2" = conftest.file || test $am_try -eq 2; then
6259        break
6260      fi
6261      # Just in case.
6262      sleep 1
6263      am_has_slept=yes
6264    done
6265    test "$2" = conftest.file
6266    )
6267 then
6268    # Ok.
6269    :
6270 else
6271    as_fn_error $? "newly created file is older than distributed files!
6272 Check your system clock" "$LINENO" 5
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6275 $as_echo "yes" >&6; }
6276 # If we didn't sleep, we still need to ensure time stamps of config.status and
6277 # generated files are strictly newer.
6278 am_sleep_pid=
6279 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6280   ( sleep 1 ) &
6281   am_sleep_pid=$!
6282 fi
6283
6284 rm -f conftest.file
6285
6286 missing_dir=`cd $ac_aux_dir && pwd`
6287
6288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6289
6290
6291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6292
6293
6294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6295
6296
6297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6298
6299
6300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6301
6302 # Check whether --enable-silent-rules was given.
6303 if test "${enable_silent_rules+set}" = set; then :
6304   enableval=$enable_silent_rules;
6305 fi
6306
6307 case $enable_silent_rules in # (((
6308   yes) AM_DEFAULT_VERBOSITY=0;;
6309    no) AM_DEFAULT_VERBOSITY=1;;
6310     *) AM_DEFAULT_VERBOSITY=1;;
6311 esac
6312 am_make=${MAKE-make}
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6314 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6315 if ${am_cv_make_support_nested_variables+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   if $as_echo 'TRUE=$(BAR$(V))
6319 BAR0=false
6320 BAR1=true
6321 V=1
6322 am__doit:
6323         @$(TRUE)
6324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6325   am_cv_make_support_nested_variables=yes
6326 else
6327   am_cv_make_support_nested_variables=no
6328 fi
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6331 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6332 if test $am_cv_make_support_nested_variables = yes; then
6333     AM_V='$(V)'
6334   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6335 else
6336   AM_V=$AM_DEFAULT_VERBOSITY
6337   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6338 fi
6339 AM_BACKSLASH='\'
6340
6341 for ac_prog in gawk mawk nawk awk
6342 do
6343   # Extract the first word of "$ac_prog", so it can be a program name with args.
6344 set dummy $ac_prog; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_AWK+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   if test -n "$AWK"; then
6351   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358     for ac_exec_ext in '' $ac_executable_extensions; do
6359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360     ac_cv_prog_AWK="$ac_prog"
6361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365   done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 AWK=$ac_cv_prog_AWK
6371 if test -n "$AWK"; then
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6373 $as_echo "$AWK" >&6; }
6374 else
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6377 fi
6378
6379
6380   test -n "$AWK" && break
6381 done
6382
6383 ac_ext=c
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388 if test -n "$ac_tool_prefix"; then
6389   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_CC+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   if test -n "$CC"; then
6397   ac_cv_prog_CC="$CC" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404     for ac_exec_ext in '' $ac_executable_extensions; do
6405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411   done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 CC=$ac_cv_prog_CC
6417 if test -n "$CC"; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6419 $as_echo "$CC" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425
6426 fi
6427 if test -z "$ac_cv_prog_CC"; then
6428   ac_ct_CC=$CC
6429   # Extract the first word of "gcc", so it can be a program name with args.
6430 set dummy gcc; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$ac_ct_CC"; then
6437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444     for ac_exec_ext in '' $ac_executable_extensions; do
6445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446     ac_cv_prog_ac_ct_CC="gcc"
6447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451   done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6457 if test -n "$ac_ct_CC"; then
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6459 $as_echo "$ac_ct_CC" >&6; }
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465   if test "x$ac_ct_CC" = x; then
6466     CC=""
6467   else
6468     case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474     CC=$ac_ct_CC
6475   fi
6476 else
6477   CC="$ac_cv_prog_CC"
6478 fi
6479
6480 if test -z "$CC"; then
6481           if test -n "$ac_tool_prefix"; then
6482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}cc; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_CC+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   if test -n "$CC"; then
6490   ac_cv_prog_CC="$CC" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497     for ac_exec_ext in '' $ac_executable_extensions; do
6498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499     ac_cv_prog_CC="${ac_tool_prefix}cc"
6500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504   done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 CC=$ac_cv_prog_CC
6510 if test -n "$CC"; then
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6512 $as_echo "$CC" >&6; }
6513 else
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519   fi
6520 fi
6521 if test -z "$CC"; then
6522   # Extract the first word of "cc", so it can be a program name with args.
6523 set dummy cc; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_CC+:} false; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -n "$CC"; then
6530   ac_cv_prog_CC="$CC" # Let the user override the test.
6531 else
6532   ac_prog_rejected=no
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538     for ac_exec_ext in '' $ac_executable_extensions; do
6539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6541        ac_prog_rejected=yes
6542        continue
6543      fi
6544     ac_cv_prog_CC="cc"
6545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549   done
6550 IFS=$as_save_IFS
6551
6552 if test $ac_prog_rejected = yes; then
6553   # We found a bogon in the path, so make sure we never use it.
6554   set dummy $ac_cv_prog_CC
6555   shift
6556   if test $# != 0; then
6557     # We chose a different compiler from the bogus one.
6558     # However, it has the same basename, so the bogon will be chosen
6559     # first if we set CC to just the basename; use the full file name.
6560     shift
6561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6562   fi
6563 fi
6564 fi
6565 fi
6566 CC=$ac_cv_prog_CC
6567 if test -n "$CC"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6569 $as_echo "$CC" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 fi
6577 if test -z "$CC"; then
6578   if test -n "$ac_tool_prefix"; then
6579   for ac_prog in cl.exe
6580   do
6581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_CC+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$CC"; then
6589   ac_cv_prog_CC="$CC" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 CC=$ac_cv_prog_CC
6609 if test -n "$CC"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6611 $as_echo "$CC" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618     test -n "$CC" && break
6619   done
6620 fi
6621 if test -z "$CC"; then
6622   ac_ct_CC=$CC
6623   for ac_prog in cl.exe
6624 do
6625   # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   if test -n "$ac_ct_CC"; then
6633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640     for ac_exec_ext in '' $ac_executable_extensions; do
6641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642     ac_cv_prog_ac_ct_CC="$ac_prog"
6643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647   done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6653 if test -n "$ac_ct_CC"; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6655 $as_echo "$ac_ct_CC" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662   test -n "$ac_ct_CC" && break
6663 done
6664
6665   if test "x$ac_ct_CC" = x; then
6666     CC=""
6667   else
6668     case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674     CC=$ac_ct_CC
6675   fi
6676 fi
6677
6678 fi
6679
6680
6681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6683 as_fn_error $? "no acceptable C compiler found in \$PATH
6684 See \`config.log' for more details" "$LINENO" 5; }
6685
6686 # Provide some information about the compiler.
6687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6688 set X $ac_compile
6689 ac_compiler=$2
6690 for ac_option in --version -v -V -qversion; do
6691   { { ac_try="$ac_compiler $ac_option >&5"
6692 case "(($ac_try" in
6693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694   *) ac_try_echo=$ac_try;;
6695 esac
6696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6697 $as_echo "$ac_try_echo"; } >&5
6698   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6699   ac_status=$?
6700   if test -s conftest.err; then
6701     sed '10a\
6702 ... rest of stderr output deleted ...
6703          10q' conftest.err >conftest.er1
6704     cat conftest.er1 >&5
6705   fi
6706   rm -f conftest.er1 conftest.err
6707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708   test $ac_status = 0; }
6709 done
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6713 if ${ac_cv_c_compiler_gnu+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h.  */
6718
6719 int
6720 main ()
6721 {
6722 #ifndef __GNUC__
6723        choke me
6724 #endif
6725
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731   ac_compiler_gnu=yes
6732 else
6733   ac_compiler_gnu=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6737
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6741 if test $ac_compiler_gnu = yes; then
6742   GCC=yes
6743 else
6744   GCC=
6745 fi
6746 ac_test_CFLAGS=${CFLAGS+set}
6747 ac_save_CFLAGS=$CFLAGS
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6750 if ${ac_cv_prog_cc_g+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   ac_save_c_werror_flag=$ac_c_werror_flag
6754    ac_c_werror_flag=yes
6755    ac_cv_prog_cc_g=no
6756    CFLAGS="-g"
6757    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759
6760 int
6761 main ()
6762 {
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769   ac_cv_prog_cc_g=yes
6770 else
6771   CFLAGS=""
6772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h.  */
6774
6775 int
6776 main ()
6777 {
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 if ac_fn_c_try_compile "$LINENO"; then :
6784
6785 else
6786   ac_c_werror_flag=$ac_save_c_werror_flag
6787          CFLAGS="-g"
6788          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h.  */
6790
6791 int
6792 main ()
6793 {
6794
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800   ac_cv_prog_cc_g=yes
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807    ac_c_werror_flag=$ac_save_c_werror_flag
6808 fi
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6810 $as_echo "$ac_cv_prog_cc_g" >&6; }
6811 if test "$ac_test_CFLAGS" = set; then
6812   CFLAGS=$ac_save_CFLAGS
6813 elif test $ac_cv_prog_cc_g = yes; then
6814   if test "$GCC" = yes; then
6815     CFLAGS="-g -O2"
6816   else
6817     CFLAGS="-g"
6818   fi
6819 else
6820   if test "$GCC" = yes; then
6821     CFLAGS="-O2"
6822   else
6823     CFLAGS=
6824   fi
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6828 if ${ac_cv_prog_cc_c89+:} false; then :
6829   $as_echo_n "(cached) " >&6
6830 else
6831   ac_cv_prog_cc_c89=no
6832 ac_save_CC=$CC
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h.  */
6835 #include <stdarg.h>
6836 #include <stdio.h>
6837 struct stat;
6838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6839 struct buf { int x; };
6840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841 static char *e (p, i)
6842      char **p;
6843      int i;
6844 {
6845   return p[i];
6846 }
6847 static char *f (char * (*g) (char **, int), char **p, ...)
6848 {
6849   char *s;
6850   va_list v;
6851   va_start (v,p);
6852   s = g (p, va_arg (v,int));
6853   va_end (v);
6854   return s;
6855 }
6856
6857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6858    function prototypes and stuff, but not '\xHH' hex character constants.
6859    These don't provoke an error unfortunately, instead are silently treated
6860    as 'x'.  The following induces an error, until -std is added to get
6861    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6862    array size at least.  It's necessary to write '\x00'==0 to get something
6863    that's true only with -std.  */
6864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6865
6866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867    inside strings and character constants.  */
6868 #define FOO(x) 'x'
6869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6870
6871 int test (int i, double x);
6872 struct s1 {int (*f) (int a);};
6873 struct s2 {int (*f) (double a);};
6874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6875 int argc;
6876 char **argv;
6877 int
6878 main ()
6879 {
6880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6887 do
6888   CC="$ac_save_CC $ac_arg"
6889   if ac_fn_c_try_compile "$LINENO"; then :
6890   ac_cv_prog_cc_c89=$ac_arg
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext
6893   test "x$ac_cv_prog_cc_c89" != "xno" && break
6894 done
6895 rm -f conftest.$ac_ext
6896 CC=$ac_save_CC
6897
6898 fi
6899 # AC_CACHE_VAL
6900 case "x$ac_cv_prog_cc_c89" in
6901   x)
6902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6903 $as_echo "none needed" >&6; } ;;
6904   xno)
6905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6906 $as_echo "unsupported" >&6; } ;;
6907   *)
6908     CC="$CC $ac_cv_prog_cc_c89"
6909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6911 esac
6912 if test "x$ac_cv_prog_cc_c89" != xno; then :
6913
6914 fi
6915
6916 ac_ext=c
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921
6922 ac_ext=c
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6929 if ${am_cv_prog_cc_c_o+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 int
6936 main ()
6937 {
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943   # Make sure it works both with $CC and with simple cc.
6944   # Following AC_PROG_CC_C_O, we do the test twice because some
6945   # compilers refuse to overwrite an existing .o file with -o,
6946   # though they will create one.
6947   am_cv_prog_cc_c_o=yes
6948   for am_i in 1 2; do
6949     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6950    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6951    ac_status=$?
6952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953    (exit $ac_status); } \
6954          && test -f conftest2.$ac_objext; then
6955       : OK
6956     else
6957       am_cv_prog_cc_c_o=no
6958       break
6959     fi
6960   done
6961   rm -f core conftest*
6962   unset am_i
6963 fi
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6966 if test "$am_cv_prog_cc_c_o" != yes; then
6967    # Losing compiler, so override with the script.
6968    # FIXME: It is wrong to rewrite CC.
6969    # But if we don't then we get into trouble of one sort or another.
6970    # A longer-term fix would be to have automake use am__CC in this case,
6971    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6972    CC="$am_aux_dir/compile $CC"
6973 fi
6974 ac_ext=c
6975 ac_cpp='$CPP $CPPFLAGS'
6976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979
6980
6981 depcc="$CC"   am_compiler_list=
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6984 $as_echo_n "checking dependency style of $depcc... " >&6; }
6985 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6986   $as_echo_n "(cached) " >&6
6987 else
6988   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6989   # We make a subdir and do the tests there.  Otherwise we can end up
6990   # making bogus files that we don't know about and never remove.  For
6991   # instance it was reported that on HP-UX the gcc test will end up
6992   # making a dummy file named 'D' -- because '-MD' means "put the output
6993   # in D".
6994   rm -rf conftest.dir
6995   mkdir conftest.dir
6996   # Copy depcomp to subdir because otherwise we won't find it if we're
6997   # using a relative directory.
6998   cp "$am_depcomp" conftest.dir
6999   cd conftest.dir
7000   # We will build objects and dependencies in a subdirectory because
7001   # it helps to detect inapplicable dependency modes.  For instance
7002   # both Tru64's cc and ICC support -MD to output dependencies as a
7003   # side effect of compilation, but ICC will put the dependencies in
7004   # the current directory while Tru64 will put them in the object
7005   # directory.
7006   mkdir sub
7007
7008   am_cv_CC_dependencies_compiler_type=none
7009   if test "$am_compiler_list" = ""; then
7010      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7011   fi
7012   am__universal=false
7013   case " $depcc " in #(
7014      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7015      esac
7016
7017   for depmode in $am_compiler_list; do
7018     # Setup a source with many dependencies, because some compilers
7019     # like to wrap large dependency lists on column 80 (with \), and
7020     # we should not choose a depcomp mode which is confused by this.
7021     #
7022     # We need to recreate these files for each test, as the compiler may
7023     # overwrite some of them when testing with obscure command lines.
7024     # This happens at least with the AIX C compiler.
7025     : > sub/conftest.c
7026     for i in 1 2 3 4 5 6; do
7027       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7028       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7029       # Solaris 10 /bin/sh.
7030       echo '/* dummy */' > sub/conftst$i.h
7031     done
7032     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7033
7034     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7035     # mode.  It turns out that the SunPro C++ compiler does not properly
7036     # handle '-M -o', and we need to detect this.  Also, some Intel
7037     # versions had trouble with output in subdirs.
7038     am__obj=sub/conftest.${OBJEXT-o}
7039     am__minus_obj="-o $am__obj"
7040     case $depmode in
7041     gcc)
7042       # This depmode causes a compiler race in universal mode.
7043       test "$am__universal" = false || continue
7044       ;;
7045     nosideeffect)
7046       # After this tag, mechanisms are not by side-effect, so they'll
7047       # only be used when explicitly requested.
7048       if test "x$enable_dependency_tracking" = xyes; then
7049         continue
7050       else
7051         break
7052       fi
7053       ;;
7054     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7055       # This compiler won't grok '-c -o', but also, the minuso test has
7056       # not run yet.  These depmodes are late enough in the game, and
7057       # so weak that their functioning should not be impacted.
7058       am__obj=conftest.${OBJEXT-o}
7059       am__minus_obj=
7060       ;;
7061     none) break ;;
7062     esac
7063     if depmode=$depmode \
7064        source=sub/conftest.c object=$am__obj \
7065        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7066        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7067          >/dev/null 2>conftest.err &&
7068        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7069        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7070        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7071        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7072       # icc doesn't choke on unknown options, it will just issue warnings
7073       # or remarks (even with -Werror).  So we grep stderr for any message
7074       # that says an option was ignored or not supported.
7075       # When given -MP, icc 7.0 and 7.1 complain thusly:
7076       #   icc: Command line warning: ignoring option '-M'; no argument required
7077       # The diagnosis changed in icc 8.0:
7078       #   icc: Command line remark: option '-MP' not supported
7079       if (grep 'ignoring option' conftest.err ||
7080           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7081         am_cv_CC_dependencies_compiler_type=$depmode
7082         break
7083       fi
7084     fi
7085   done
7086
7087   cd ..
7088   rm -rf conftest.dir
7089 else
7090   am_cv_CC_dependencies_compiler_type=none
7091 fi
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7097
7098  if
7099   test "x$enable_dependency_tracking" != xno \
7100   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7101   am__fastdepCC_TRUE=
7102   am__fastdepCC_FALSE='#'
7103 else
7104   am__fastdepCC_TRUE='#'
7105   am__fastdepCC_FALSE=
7106 fi
7107
7108
7109 ac_ext=c
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7116 # On Suns, sometimes $CPP names a directory.
7117 if test -n "$CPP" && test -d "$CPP"; then
7118   CPP=
7119 fi
7120 if test -z "$CPP"; then
7121   if ${ac_cv_prog_CPP+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124       # Double quotes because CPP needs to be expanded
7125     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7126     do
7127       ac_preproc_ok=false
7128 for ac_c_preproc_warn_flag in '' yes
7129 do
7130   # Use a header file that comes with gcc, so configuring glibc
7131   # with a fresh cross-compiler works.
7132   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133   # <limits.h> exists even on freestanding compilers.
7134   # On the NeXT, cc -E runs the code through the compiler's parser,
7135   # not just through cpp. "Syntax error" is here to catch this case.
7136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h.  */
7138 #ifdef __STDC__
7139 # include <limits.h>
7140 #else
7141 # include <assert.h>
7142 #endif
7143                      Syntax error
7144 _ACEOF
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7146
7147 else
7148   # Broken: fails on valid input.
7149 continue
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153   # OK, works on sane cases.  Now check whether nonexistent headers
7154   # can be detected and how.
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 #include <ac_nonexistent.h>
7158 _ACEOF
7159 if ac_fn_c_try_cpp "$LINENO"; then :
7160   # Broken: success on invalid input.
7161 continue
7162 else
7163   # Passes both tests.
7164 ac_preproc_ok=:
7165 break
7166 fi
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7168
7169 done
7170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171 rm -f conftest.i conftest.err conftest.$ac_ext
7172 if $ac_preproc_ok; then :
7173   break
7174 fi
7175
7176     done
7177     ac_cv_prog_CPP=$CPP
7178
7179 fi
7180   CPP=$ac_cv_prog_CPP
7181 else
7182   ac_cv_prog_CPP=$CPP
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7185 $as_echo "$CPP" >&6; }
7186 ac_preproc_ok=false
7187 for ac_c_preproc_warn_flag in '' yes
7188 do
7189   # Use a header file that comes with gcc, so configuring glibc
7190   # with a fresh cross-compiler works.
7191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192   # <limits.h> exists even on freestanding compilers.
7193   # On the NeXT, cc -E runs the code through the compiler's parser,
7194   # not just through cpp. "Syntax error" is here to catch this case.
7195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h.  */
7197 #ifdef __STDC__
7198 # include <limits.h>
7199 #else
7200 # include <assert.h>
7201 #endif
7202                      Syntax error
7203 _ACEOF
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7205
7206 else
7207   # Broken: fails on valid input.
7208 continue
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212   # OK, works on sane cases.  Now check whether nonexistent headers
7213   # can be detected and how.
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <ac_nonexistent.h>
7217 _ACEOF
7218 if ac_fn_c_try_cpp "$LINENO"; then :
7219   # Broken: success on invalid input.
7220 continue
7221 else
7222   # Passes both tests.
7223 ac_preproc_ok=:
7224 break
7225 fi
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7227
7228 done
7229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230 rm -f conftest.i conftest.err conftest.$ac_ext
7231 if $ac_preproc_ok; then :
7232
7233 else
7234   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7237 See \`config.log' for more details" "$LINENO" 5; }
7238 fi
7239
7240 ac_ext=c
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246
7247 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7248   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7249 fi
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7252 $as_echo_n "checking whether ln -s works... " >&6; }
7253 LN_S=$as_ln_s
7254 if test "$LN_S" = "ln -s"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256 $as_echo "yes" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7259 $as_echo "no, using $LN_S" >&6; }
7260 fi
7261
7262 if test -n "$ac_tool_prefix"; then
7263   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_RANLIB+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$RANLIB"; then
7271   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 RANLIB=$ac_cv_prog_RANLIB
7291 if test -n "$RANLIB"; then
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7293 $as_echo "$RANLIB" >&6; }
7294 else
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299
7300 fi
7301 if test -z "$ac_cv_prog_RANLIB"; then
7302   ac_ct_RANLIB=$RANLIB
7303   # Extract the first word of "ranlib", so it can be a program name with args.
7304 set dummy ranlib; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -n "$ac_ct_RANLIB"; then
7311   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_prog_ac_ct_RANLIB="ranlib"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7331 if test -n "$ac_ct_RANLIB"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7333 $as_echo "$ac_ct_RANLIB" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339   if test "x$ac_ct_RANLIB" = x; then
7340     RANLIB=":"
7341   else
7342     case $cross_compiling:$ac_tool_warned in
7343 yes:)
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348     RANLIB=$ac_ct_RANLIB
7349   fi
7350 else
7351   RANLIB="$ac_cv_prog_RANLIB"
7352 fi
7353
7354 if test -n "$ac_tool_prefix"; then
7355   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}ar; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_AR+:} false; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if test -n "$AR"; then
7363   ac_cv_prog_AR="$AR" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372     ac_cv_prog_AR="${ac_tool_prefix}ar"
7373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 AR=$ac_cv_prog_AR
7383 if test -n "$AR"; then
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7385 $as_echo "$AR" >&6; }
7386 else
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391
7392 fi
7393 if test -z "$ac_cv_prog_AR"; then
7394   ac_ct_AR=$AR
7395   # Extract the first word of "ar", so it can be a program name with args.
7396 set dummy ar; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7400   $as_echo_n "(cached) " >&6
7401 else
7402   if test -n "$ac_ct_AR"; then
7403   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410     for ac_exec_ext in '' $ac_executable_extensions; do
7411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412     ac_cv_prog_ac_ct_AR="ar"
7413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417   done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7423 if test -n "$ac_ct_AR"; then
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7425 $as_echo "$ac_ct_AR" >&6; }
7426 else
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431   if test "x$ac_ct_AR" = x; then
7432     AR=":"
7433   else
7434     case $cross_compiling:$ac_tool_warned in
7435 yes:)
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7439 esac
7440     AR=$ac_ct_AR
7441   fi
7442 else
7443   AR="$ac_cv_prog_AR"
7444 fi
7445
7446 # Extract the first word of ""perl"", so it can be a program name with args.
7447 set dummy "perl"; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_path_PERL+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   case $PERL in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463     for ac_exec_ext in '' $ac_executable_extensions; do
7464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470   done
7471 IFS=$as_save_IFS
7472
7473   ;;
7474 esac
7475 fi
7476 PERL=$ac_cv_path_PERL
7477 if test -n "$PERL"; then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7479 $as_echo "$PERL" >&6; }
7480 else
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485
7486 if test -n "$ac_tool_prefix"; then
7487   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7488 set dummy ${ac_tool_prefix}windres; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_WINDRES+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   if test -n "$WINDRES"; then
7495   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 WINDRES=$ac_cv_prog_WINDRES
7515 if test -n "$WINDRES"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7517 $as_echo "$WINDRES" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523
7524 fi
7525 if test -z "$ac_cv_prog_WINDRES"; then
7526   ac_ct_WINDRES=$WINDRES
7527   # Extract the first word of "windres", so it can be a program name with args.
7528 set dummy windres; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   if test -n "$ac_ct_WINDRES"; then
7535   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_ac_ct_WINDRES="windres"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7555 if test -n "$ac_ct_WINDRES"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7557 $as_echo "$ac_ct_WINDRES" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563   if test "x$ac_ct_WINDRES" = x; then
7564     WINDRES=":"
7565   else
7566     case $cross_compiling:$ac_tool_warned in
7567 yes:)
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570 ac_tool_warned=yes ;;
7571 esac
7572     WINDRES=$ac_ct_WINDRES
7573   fi
7574 else
7575   WINDRES="$ac_cv_prog_WINDRES"
7576 fi
7577
7578 # Extract the first word of ""yat2m"", so it can be a program name with args.
7579 set dummy "yat2m"; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_path_YAT2M+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   case $YAT2M in
7586   [\\/]* | ?:[\\/]*)
7587   ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7588   ;;
7589   *)
7590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595     for ac_exec_ext in '' $ac_executable_extensions; do
7596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597     ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602   done
7603 IFS=$as_save_IFS
7604
7605   ;;
7606 esac
7607 fi
7608 YAT2M=$ac_cv_path_YAT2M
7609 if test -n "$YAT2M"; then
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7611 $as_echo "$YAT2M" >&6; }
7612 else
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617
7618
7619  if test -n "$ac_cv_path_YAT2M"; then
7620   HAVE_YAT2M_TRUE=
7621   HAVE_YAT2M_FALSE='#'
7622 else
7623   HAVE_YAT2M_TRUE='#'
7624   HAVE_YAT2M_FALSE=
7625 fi
7626
7627
7628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7629 $as_echo_n "checking for strerror in -lcposix... " >&6; }
7630 if ${ac_cv_lib_cposix_strerror+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lcposix  $LIBS"
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637
7638 /* Override any GCC internal prototype to avoid an error.
7639    Use char because int might match the return type of a GCC
7640    builtin and then its argument prototype would still apply.  */
7641 #ifdef __cplusplus
7642 extern "C"
7643 #endif
7644 char strerror ();
7645 int
7646 main ()
7647 {
7648 return strerror ();
7649   ;
7650   return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654   ac_cv_lib_cposix_strerror=yes
7655 else
7656   ac_cv_lib_cposix_strerror=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext \
7659     conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7663 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7664 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
7665   LIBS="$LIBS -lcposix"
7666 fi
7667
7668
7669
7670 # Check whether --enable-largefile was given.
7671 if test "${enable_largefile+set}" = set; then :
7672   enableval=$enable_largefile;
7673 fi
7674
7675 if test "$enable_largefile" != no; then
7676
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7678 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7679 if ${ac_cv_sys_largefile_CC+:} false; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   ac_cv_sys_largefile_CC=no
7683      if test "$GCC" != yes; then
7684        ac_save_CC=$CC
7685        while :; do
7686          # IRIX 6.2 and later do not support large files by default,
7687          # so use the C compiler's -n32 option if that helps.
7688          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 #include <sys/types.h>
7691  /* Check that off_t can represent 2**63 - 1 correctly.
7692     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7693     since some C++ compilers masquerading as C compilers
7694     incorrectly reject 9223372036854775807.  */
7695 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7696   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7697                        && LARGE_OFF_T % 2147483647 == 1)
7698                       ? 1 : -1];
7699 int
7700 main ()
7701 {
7702
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707          if ac_fn_c_try_compile "$LINENO"; then :
7708   break
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext
7711          CC="$CC -n32"
7712          if ac_fn_c_try_compile "$LINENO"; then :
7713   ac_cv_sys_largefile_CC=' -n32'; break
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext
7716          break
7717        done
7718        CC=$ac_save_CC
7719        rm -f conftest.$ac_ext
7720     fi
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7723 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7724   if test "$ac_cv_sys_largefile_CC" != no; then
7725     CC=$CC$ac_cv_sys_largefile_CC
7726   fi
7727
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7729 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7730 if ${ac_cv_sys_file_offset_bits+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   while :; do
7734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h.  */
7736 #include <sys/types.h>
7737  /* Check that off_t can represent 2**63 - 1 correctly.
7738     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7739     since some C++ compilers masquerading as C compilers
7740     incorrectly reject 9223372036854775807.  */
7741 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7742   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7743                        && LARGE_OFF_T % 2147483647 == 1)
7744                       ? 1 : -1];
7745 int
7746 main ()
7747 {
7748
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754   ac_cv_sys_file_offset_bits=no; break
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h.  */
7759 #define _FILE_OFFSET_BITS 64
7760 #include <sys/types.h>
7761  /* Check that off_t can represent 2**63 - 1 correctly.
7762     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7763     since some C++ compilers masquerading as C compilers
7764     incorrectly reject 9223372036854775807.  */
7765 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7766   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7767                        && LARGE_OFF_T % 2147483647 == 1)
7768                       ? 1 : -1];
7769 int
7770 main ()
7771 {
7772
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778   ac_cv_sys_file_offset_bits=64; break
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781   ac_cv_sys_file_offset_bits=unknown
7782   break
7783 done
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7786 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7787 case $ac_cv_sys_file_offset_bits in #(
7788   no | unknown) ;;
7789   *)
7790 cat >>confdefs.h <<_ACEOF
7791 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7792 _ACEOF
7793 ;;
7794 esac
7795 rm -rf conftest*
7796   if test $ac_cv_sys_file_offset_bits = unknown; then
7797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7798 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7799 if ${ac_cv_sys_large_files+:} false; then :
7800   $as_echo_n "(cached) " >&6
7801 else
7802   while :; do
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #include <sys/types.h>
7806  /* Check that off_t can represent 2**63 - 1 correctly.
7807     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7808     since some C++ compilers masquerading as C compilers
7809     incorrectly reject 9223372036854775807.  */
7810 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7811   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7812                        && LARGE_OFF_T % 2147483647 == 1)
7813                       ? 1 : -1];
7814 int
7815 main ()
7816 {
7817
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823   ac_cv_sys_large_files=no; break
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h.  */
7828 #define _LARGE_FILES 1
7829 #include <sys/types.h>
7830  /* Check that off_t can represent 2**63 - 1 correctly.
7831     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7832     since some C++ compilers masquerading as C compilers
7833     incorrectly reject 9223372036854775807.  */
7834 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7835   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7836                        && LARGE_OFF_T % 2147483647 == 1)
7837                       ? 1 : -1];
7838 int
7839 main ()
7840 {
7841
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847   ac_cv_sys_large_files=1; break
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850   ac_cv_sys_large_files=unknown
7851   break
7852 done
7853 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7855 $as_echo "$ac_cv_sys_large_files" >&6; }
7856 case $ac_cv_sys_large_files in #(
7857   no | unknown) ;;
7858   *)
7859 cat >>confdefs.h <<_ACEOF
7860 #define _LARGE_FILES $ac_cv_sys_large_files
7861 _ACEOF
7862 ;;
7863 esac
7864 rm -rf conftest*
7865   fi
7866
7867
7868 fi
7869
7870
7871
7872 # Check whether --with-tar was given.
7873 if test "${with_tar+set}" = set; then :
7874   withval=$with_tar; _do_tar=$withval
7875 fi
7876
7877
7878   if test x$_do_tar != xno ; then
7879
7880      if test x$_do_tar = x ; then
7881         # Extract the first word of ""tar"", so it can be a program name with args.
7882 set dummy "tar"; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_path_TAR+:} false; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   case $TAR in
7889   [\\/]* | ?:[\\/]*)
7890   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7891   ;;
7892   *)
7893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896   IFS=$as_save_IFS
7897   test -z "$as_dir" && as_dir=.
7898     for ac_exec_ext in '' $ac_executable_extensions; do
7899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902     break 2
7903   fi
7904 done
7905   done
7906 IFS=$as_save_IFS
7907
7908   ;;
7909 esac
7910 fi
7911 TAR=$ac_cv_path_TAR
7912 if test -n "$TAR"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7914 $as_echo "$TAR" >&6; }
7915 else
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920
7921         _mytar=$ac_cv_path_TAR
7922      fi
7923
7924      # Check if our tar is ustar format.  If so, it's good.  TODO: Add some
7925      # code to check various options, etc, to try and create ustar
7926      # format.
7927
7928      if test x$_mytar != x ; then
7929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5
7930 $as_echo_n "checking whether $_mytar speaks USTAR... " >&6; }
7931         echo hithere > conftest.txt
7932         $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
7933         _tar_bad=$?
7934         rm conftest.txt
7935
7936         if test x$_tar_bad = x0 ; then
7937            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7939         else
7940            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942         fi
7943      fi
7944   fi
7945
7946    if test x$_tar_bad = x0; then
7947   HAVE_USTAR_TRUE=
7948   HAVE_USTAR_FALSE='#'
7949 else
7950   HAVE_USTAR_TRUE='#'
7951   HAVE_USTAR_FALSE=
7952 fi
7953
7954
7955
7956
7957 # GNU AWK requires -n option to interpret "0xHH" as a number
7958 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7959   AWK_HEX_NUMBER_OPTION=''
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7961 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7962 else
7963   AWK_HEX_NUMBER_OPTION='-n'
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7965 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7966 fi
7967
7968
7969 # We need to compile and run a program on the build machine.  A
7970 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7971 # the AC archive is broken for autoconf 2.57.  Given that there is no
7972 # newer version of that macro, we assume that it is also broken for
7973 # autoconf 2.61 and thus we use a simple but usually sufficient
7974 # approach.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7976 $as_echo_n "checking for cc for build... " >&6; }
7977 if test "$cross_compiling" = "yes"; then
7978   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7979 else
7980   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7983 $as_echo "$CC_FOR_BUILD" >&6; }
7984
7985
7986 # We need to call this macro because other pkg-config macros are
7987 # not always used.
7988
7989
7990
7991
7992
7993
7994
7995 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7996         if test -n "$ac_tool_prefix"; then
7997   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8002   $as_echo_n "(cached) " >&6
8003 else
8004   case $PKG_CONFIG in
8005   [\\/]* | ?:[\\/]*)
8006   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8007   ;;
8008   *)
8009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012   IFS=$as_save_IFS
8013   test -z "$as_dir" && as_dir=.
8014     for ac_exec_ext in '' $ac_executable_extensions; do
8015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018     break 2
8019   fi
8020 done
8021   done
8022 IFS=$as_save_IFS
8023
8024   ;;
8025 esac
8026 fi
8027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8028 if test -n "$PKG_CONFIG"; then
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8030 $as_echo "$PKG_CONFIG" >&6; }
8031 else
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8034 fi
8035
8036
8037 fi
8038 if test -z "$ac_cv_path_PKG_CONFIG"; then
8039   ac_pt_PKG_CONFIG=$PKG_CONFIG
8040   # Extract the first word of "pkg-config", so it can be a program name with args.
8041 set dummy pkg-config; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   case $ac_pt_PKG_CONFIG in
8048   [\\/]* | ?:[\\/]*)
8049   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8050   ;;
8051   *)
8052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8054 do
8055   IFS=$as_save_IFS
8056   test -z "$as_dir" && as_dir=.
8057     for ac_exec_ext in '' $ac_executable_extensions; do
8058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061     break 2
8062   fi
8063 done
8064   done
8065 IFS=$as_save_IFS
8066
8067   ;;
8068 esac
8069 fi
8070 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8071 if test -n "$ac_pt_PKG_CONFIG"; then
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8073 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8074 else
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079   if test "x$ac_pt_PKG_CONFIG" = x; then
8080     PKG_CONFIG=""
8081   else
8082     case $cross_compiling:$ac_tool_warned in
8083 yes:)
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086 ac_tool_warned=yes ;;
8087 esac
8088     PKG_CONFIG=$ac_pt_PKG_CONFIG
8089   fi
8090 else
8091   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8092 fi
8093
8094 fi
8095 if test -n "$PKG_CONFIG"; then
8096         _pkg_min_version=0.9.0
8097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8098 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8099         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8100                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8102         else
8103                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105                 PKG_CONFIG=""
8106         fi
8107 fi
8108
8109
8110 try_gettext=yes
8111 require_iconv=yes
8112 have_dosish_system=no
8113 have_w32_system=no
8114 have_w32ce_system=no
8115 have_android_system=no
8116 use_simple_gettext=no
8117 use_ldapwrapper=yes
8118 mmap_needed=yes
8119 require_pipe_to_unblock_pselect=yes
8120 case "${host}" in
8121     *-mingw32*)
8122         # special stuff for Windoze NT
8123         ac_cv_have_dev_random=no
8124
8125 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8126
8127
8128 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8129
8130         have_dosish_system=yes
8131         have_w32_system=yes
8132         require_iconv=no
8133         require_pipe_to_unblock_pselect=no
8134         case "${host}" in
8135           *-mingw32ce*)
8136             have_w32ce_system=yes
8137             ;;
8138           *)
8139
8140 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8141
8142             ;;
8143         esac
8144         try_gettext="no"
8145         use_simple_gettext=yes
8146         mmap_needed=no
8147         build_wks_tools=no
8148         ;;
8149     i?86-emx-os2 | i?86-*-os2*emx )
8150         # OS/2 with the EMX environment
8151         ac_cv_have_dev_random=no
8152         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8153
8154         have_dosish_system=yes
8155         try_gettext="no"
8156         build_wks_tools=no
8157         ;;
8158
8159     i?86-*-msdosdjgpp*)
8160         # DOS with the DJGPP environment
8161         ac_cv_have_dev_random=no
8162         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8163
8164         have_dosish_system=yes
8165         try_gettext="no"
8166         build_wks_tools=no
8167         ;;
8168
8169     *-*-hpux*)
8170         if test -z "$GCC" ; then
8171             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8172         fi
8173         ;;
8174     *-dec-osf4*)
8175         if test -z "$GCC" ; then
8176             # Suppress all warnings
8177             # to get rid of the unsigned/signed char mismatch warnings.
8178             CFLAGS="-w $CFLAGS"
8179         fi
8180         ;;
8181     *-dec-osf5*)
8182         if test -z "$GCC" ; then
8183             # Use the newer compiler `-msg_disable ptrmismatch1' to
8184             # get rid of the unsigned/signed char mismatch warnings.
8185             # Using this may hide other pointer mismatch warnings, but
8186             # it at least lets other warning classes through
8187             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8188         fi
8189         ;;
8190     m68k-atari-mint)
8191         ;;
8192     *-linux-android*)
8193         have_android_system=yes
8194         # Android is fully utf-8 and we do not want to use iconv to
8195         # keeps things simple
8196         require_iconv=no
8197         build_wks_tools=no
8198         ;;
8199     *-apple-darwin*)
8200
8201 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
8202
8203         ;;
8204     *-*-netbsd*)
8205         require_pipe_to_unblock_pselect=yes
8206         ;;
8207     *)
8208         ;;
8209 esac
8210
8211 if test "$require_pipe_to_unblock_pselect" = yes; then
8212
8213 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8214
8215 fi
8216
8217 if test "$have_dosish_system" = yes; then
8218
8219 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8220
8221 fi
8222  if test "$have_dosish_system" = yes; then
8223   HAVE_DOSISH_SYSTEM_TRUE=
8224   HAVE_DOSISH_SYSTEM_FALSE='#'
8225 else
8226   HAVE_DOSISH_SYSTEM_TRUE='#'
8227   HAVE_DOSISH_SYSTEM_FALSE=
8228 fi
8229
8230
8231  if test x"$use_simple_gettext" = xyes; then
8232   USE_SIMPLE_GETTEXT_TRUE=
8233   USE_SIMPLE_GETTEXT_FALSE='#'
8234 else
8235   USE_SIMPLE_GETTEXT_TRUE='#'
8236   USE_SIMPLE_GETTEXT_FALSE=
8237 fi
8238
8239
8240 if test "$have_w32_system" = yes; then
8241
8242 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8243
8244    if test "$have_w32ce_system" = yes; then
8245
8246 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8247
8248    fi
8249 fi
8250  if test "$have_w32_system" = yes; then
8251   HAVE_W32_SYSTEM_TRUE=
8252   HAVE_W32_SYSTEM_FALSE='#'
8253 else
8254   HAVE_W32_SYSTEM_TRUE='#'
8255   HAVE_W32_SYSTEM_FALSE=
8256 fi
8257
8258  if test "$have_w32ce_system" = yes; then
8259   HAVE_W32CE_SYSTEM_TRUE=
8260   HAVE_W32CE_SYSTEM_FALSE='#'
8261 else
8262   HAVE_W32CE_SYSTEM_TRUE='#'
8263   HAVE_W32CE_SYSTEM_FALSE=
8264 fi
8265
8266
8267 if test "$have_android_system" = yes; then
8268
8269 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8270
8271 fi
8272  if test "$have_android_system" = yes; then
8273   HAVE_ANDROID_SYSTEM_TRUE=
8274   HAVE_ANDROID_SYSTEM_FALSE='#'
8275 else
8276   HAVE_ANDROID_SYSTEM_TRUE='#'
8277   HAVE_ANDROID_SYSTEM_FALSE=
8278 fi
8279
8280
8281
8282 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8283
8284 cat >>confdefs.h <<_ACEOF
8285 #define EXEEXT "$EXEEXT"
8286 _ACEOF
8287
8288
8289
8290 #
8291 # Checks for libraries.
8292 #
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8294 $as_echo "$as_me: checking for libraries" >&6;}
8295
8296
8297 #
8298 # libgpg-error is a library with error codes shared between GnuPG
8299 # related projects.
8300 #
8301
8302   gpg_error_config_prefix=""
8303
8304 # Check whether --with-libgpg-error-prefix was given.
8305 if test "${with_libgpg_error_prefix+set}" = set; then :
8306   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8307 fi
8308
8309
8310
8311 # Check whether --with-gpg-error-prefix was given.
8312 if test "${with_gpg_error_prefix+set}" = set; then :
8313   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8314 fi
8315
8316
8317   if test x"${GPG_ERROR_CONFIG}" = x ; then
8318      if test x"${gpg_error_config_prefix}" != x ; then
8319         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8320      else
8321        case "${SYSROOT}" in
8322          /*)
8323            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8324              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8325            fi
8326            ;;
8327          '')
8328            ;;
8329           *)
8330            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8331 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8332            ;;
8333        esac
8334      fi
8335   fi
8336
8337   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8338 set dummy gpg-error-config; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   case $GPG_ERROR_CONFIG in
8345   [\\/]* | ?:[\\/]*)
8346   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8347   ;;
8348   *)
8349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354     for ac_exec_ext in '' $ac_executable_extensions; do
8355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361   done
8362 IFS=$as_save_IFS
8363
8364   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8365   ;;
8366 esac
8367 fi
8368 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8369 if test -n "$GPG_ERROR_CONFIG"; then
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8371 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8372 else
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376
8377
8378   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8380 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8381   ok=no
8382   if test "$GPG_ERROR_CONFIG" != "no" \
8383      && test -f "$GPG_ERROR_CONFIG" ; then
8384     req_major=`echo $min_gpg_error_version | \
8385                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8386     req_minor=`echo $min_gpg_error_version | \
8387                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8388     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
8389     major=`echo $gpg_error_config_version | \
8390                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8391     minor=`echo $gpg_error_config_version | \
8392                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8393     if test "$major" -gt "$req_major"; then
8394         ok=yes
8395     else
8396         if test "$major" -eq "$req_major"; then
8397             if test "$minor" -ge "$req_minor"; then
8398                ok=yes
8399             fi
8400         fi
8401     fi
8402   fi
8403   if test $ok = yes; then
8404     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
8405     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
8406     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
8407     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
8408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8409 $as_echo "yes ($gpg_error_config_version)" >&6; }
8410     have_gpg_error=yes
8411     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
8412     if test x"$gpg_error_config_host" != xnone ; then
8413       if test x"$gpg_error_config_host" != x"$host" ; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8415 ***
8416 *** The config script $GPG_ERROR_CONFIG was
8417 *** built for $gpg_error_config_host and thus may not match the
8418 *** used host $host.
8419 *** You may want to use the configure option --with-gpg-error-prefix
8420 *** to specify a matching config script or use \$SYSROOT.
8421 ***" >&5
8422 $as_echo "$as_me: WARNING:
8423 ***
8424 *** The config script $GPG_ERROR_CONFIG was
8425 *** built for $gpg_error_config_host and thus may not match the
8426 *** used host $host.
8427 *** You may want to use the configure option --with-gpg-error-prefix
8428 *** to specify a matching config script or use \$SYSROOT.
8429 ***" >&2;}
8430         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8431       fi
8432     fi
8433   else
8434     GPG_ERROR_CFLAGS=""
8435     GPG_ERROR_LIBS=""
8436     GPG_ERROR_MT_CFLAGS=""
8437     GPG_ERROR_MT_LIBS=""
8438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440     have_gpg_error=no
8441   fi
8442
8443
8444
8445
8446
8447
8448
8449 #
8450 # Libgcrypt is our generic crypto library
8451 #
8452
8453
8454 # Check whether --with-libgcrypt-prefix was given.
8455 if test "${with_libgcrypt_prefix+set}" = set; then :
8456   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8457 else
8458   libgcrypt_config_prefix=""
8459 fi
8460
8461   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8462      if test x"${libgcrypt_config_prefix}" != x ; then
8463         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8464      else
8465        case "${SYSROOT}" in
8466          /*)
8467            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8468              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8469            fi
8470            ;;
8471          '')
8472            ;;
8473           *)
8474            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8475 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8476            ;;
8477        esac
8478      fi
8479   fi
8480
8481   # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8482 set dummy libgcrypt-config; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   case $LIBGCRYPT_CONFIG in
8489   [\\/]* | ?:[\\/]*)
8490   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8491   ;;
8492   *)
8493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8509   ;;
8510 esac
8511 fi
8512 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8513 if test -n "$LIBGCRYPT_CONFIG"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8515 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521
8522   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8523   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8524      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8525      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8526   else
8527      req_libgcrypt_api=0
8528      min_libgcrypt_version="$tmp"
8529   fi
8530
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8532 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8533   ok=no
8534   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8535     req_major=`echo $min_libgcrypt_version | \
8536                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8537     req_minor=`echo $min_libgcrypt_version | \
8538                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8539     req_micro=`echo $min_libgcrypt_version | \
8540                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8541     libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8542     major=`echo $libgcrypt_config_version | \
8543                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8544     minor=`echo $libgcrypt_config_version | \
8545                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8546     micro=`echo $libgcrypt_config_version | \
8547                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8548     if test "$major" -gt "$req_major"; then
8549         ok=yes
8550     else
8551         if test "$major" -eq "$req_major"; then
8552             if test "$minor" -gt "$req_minor"; then
8553                ok=yes
8554             else
8555                if test "$minor" -eq "$req_minor"; then
8556                    if test "$micro" -ge "$req_micro"; then
8557                      ok=yes
8558                    fi
8559                fi
8560             fi
8561         fi
8562     fi
8563   fi
8564   if test $ok = yes; then
8565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8566 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8567   else
8568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570   fi
8571   if test $ok = yes; then
8572      # If we have a recent libgcrypt, we should also check that the
8573      # API is compatible
8574      if test "$req_libgcrypt_api" -gt 0 ; then
8575         tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8576         if test "$tmp" -gt 0 ; then
8577            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8578 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8579            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8580              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8581 $as_echo "okay" >&6; }
8582            else
8583              ok=no
8584              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8585 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8586            fi
8587         fi
8588      fi
8589   fi
8590   if test $ok = yes; then
8591     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8592     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8593     have_libgcrypt=yes
8594     libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8595     if test x"$libgcrypt_config_host" != xnone ; then
8596       if test x"$libgcrypt_config_host" != x"$host" ; then
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8598 ***
8599 *** The config script $LIBGCRYPT_CONFIG was
8600 *** built for $libgcrypt_config_host and thus may not match the
8601 *** used host $host.
8602 *** You may want to use the configure option --with-libgcrypt-prefix
8603 *** to specify a matching config script or use \$SYSROOT.
8604 ***" >&5
8605 $as_echo "$as_me: WARNING:
8606 ***
8607 *** The config script $LIBGCRYPT_CONFIG was
8608 *** built for $libgcrypt_config_host and thus may not match the
8609 *** used host $host.
8610 *** You may want to use the configure option --with-libgcrypt-prefix
8611 *** to specify a matching config script or use \$SYSROOT.
8612 ***" >&2;}
8613         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8614       fi
8615     fi
8616   else
8617     LIBGCRYPT_CFLAGS=""
8618     LIBGCRYPT_LIBS=""
8619     have_libgcrypt=no
8620   fi
8621
8622
8623
8624
8625
8626 #
8627 # libassuan is used for IPC
8628 #
8629
8630 # Check whether --with-libassuan-prefix was given.
8631 if test "${with_libassuan_prefix+set}" = set; then :
8632   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8633 else
8634   libassuan_config_prefix=""
8635 fi
8636
8637   if test x$libassuan_config_prefix != x ; then
8638     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8639     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8640       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8641     fi
8642   fi
8643   # Extract the first word of "libassuan-config", so it can be a program name with args.
8644 set dummy libassuan-config; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   case $LIBASSUAN_CONFIG in
8651   [\\/]* | ?:[\\/]*)
8652   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8653   ;;
8654   *)
8655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658   IFS=$as_save_IFS
8659   test -z "$as_dir" && as_dir=.
8660     for ac_exec_ext in '' $ac_executable_extensions; do
8661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664     break 2
8665   fi
8666 done
8667   done
8668 IFS=$as_save_IFS
8669
8670   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8671   ;;
8672 esac
8673 fi
8674 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8675 if test -n "$LIBASSUAN_CONFIG"; then
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8677 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8678 else
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684
8685   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8686   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8687     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8688     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8689   else
8690     req_libassuan_api=0
8691     min_libassuan_version="$tmp"
8692   fi
8693
8694   if test "$LIBASSUAN_CONFIG" != "no" ; then
8695     libassuan_version=`$LIBASSUAN_CONFIG --version`
8696   fi
8697   libassuan_version_major=`echo $libassuan_version | \
8698                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8699   libassuan_version_minor=`echo $libassuan_version | \
8700                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8701   libassuan_version_micro=`echo $libassuan_version | \
8702                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8703
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8705 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8706   ok=no
8707   if test "$LIBASSUAN_CONFIG" != "no" ; then
8708
8709     req_major=`echo $min_libassuan_version | \
8710                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8711     req_minor=`echo $min_libassuan_version | \
8712                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8713     req_micro=`echo $min_libassuan_version | \
8714                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8715     if test "$libassuan_version_major" -gt "$req_major"; then
8716         ok=yes
8717     else
8718         if test "$libassuan_version_major" -eq "$req_major"; then
8719             if test "$libassuan_version_minor" -gt "$req_minor"; then
8720                ok=yes
8721             else
8722                if test "$libassuan_version_minor" -eq "$req_minor"; then
8723                    if test "$libassuan_version_micro" -ge "$req_micro"; then
8724                      ok=yes
8725                    fi
8726                fi
8727             fi
8728         fi
8729     fi
8730
8731   fi
8732
8733   if test $ok = yes; then
8734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_version)" >&5
8735 $as_echo "yes ($libassuan_version)" >&6; }
8736   else
8737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8739   fi
8740
8741   if test $ok = yes; then
8742     if test "$req_libassuan_api" -gt 0 ; then
8743       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8744       if test "$tmp" -gt 0 ; then
8745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8746 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8747         if test "$req_libassuan_api" -eq "$tmp" ; then
8748           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8749 $as_echo "okay" >&6; }
8750         else
8751           ok=no
8752           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8753 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8754         fi
8755       fi
8756     fi
8757   fi
8758
8759
8760   if test $ok = yes; then
8761     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8762     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8763     have_libassuan=yes
8764   else
8765     LIBASSUAN_CFLAGS=""
8766     LIBASSUAN_LIBS=""
8767     have_libassuan=no
8768   fi
8769
8770
8771
8772 if test "$have_libassuan" = "yes"; then
8773
8774 cat >>confdefs.h <<_ACEOF
8775 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
8776 _ACEOF
8777
8778   show_tor_support="only .onion"
8779 fi
8780
8781
8782 #
8783 # libksba is our X.509 support library
8784 #
8785
8786
8787 # Check whether --with-ksba-prefix was given.
8788 if test "${with_ksba_prefix+set}" = set; then :
8789   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8790 else
8791   ksba_config_prefix=""
8792 fi
8793
8794   if test x$ksba_config_prefix != x ; then
8795      ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8796      if test x${KSBA_CONFIG+set} != xset ; then
8797         KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8798      fi
8799   fi
8800
8801   # Extract the first word of "ksba-config", so it can be a program name with args.
8802 set dummy ksba-config; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   case $KSBA_CONFIG in
8809   [\\/]* | ?:[\\/]*)
8810   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8811   ;;
8812   *)
8813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816   IFS=$as_save_IFS
8817   test -z "$as_dir" && as_dir=.
8818     for ac_exec_ext in '' $ac_executable_extensions; do
8819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822     break 2
8823   fi
8824 done
8825   done
8826 IFS=$as_save_IFS
8827
8828   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8829   ;;
8830 esac
8831 fi
8832 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8833 if test -n "$KSBA_CONFIG"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8835 $as_echo "$KSBA_CONFIG" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8843   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8844      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8845      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8846   else
8847      req_ksba_api=0
8848      min_ksba_version="$tmp"
8849   fi
8850
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8852 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8853   ok=no
8854   if test "$KSBA_CONFIG" != "no" ; then
8855     req_major=`echo $min_ksba_version | \
8856                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8857     req_minor=`echo $min_ksba_version | \
8858                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8859     req_micro=`echo $min_ksba_version | \
8860                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8861     ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8862     major=`echo $ksba_config_version | \
8863                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8864     minor=`echo $ksba_config_version | \
8865                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8866     micro=`echo $ksba_config_version | \
8867                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8868     if test "$major" -gt "$req_major"; then
8869         ok=yes
8870     else
8871         if test "$major" -eq "$req_major"; then
8872             if test "$minor" -gt "$req_minor"; then
8873                ok=yes
8874             else
8875                if test "$minor" -eq "$req_minor"; then
8876                    if test "$micro" -ge "$req_micro"; then
8877                      ok=yes
8878                    fi
8879                fi
8880             fi
8881         fi
8882     fi
8883   fi
8884   if test $ok = yes; then
8885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
8886 $as_echo "yes ($ksba_config_version)" >&6; }
8887   else
8888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890   fi
8891   if test $ok = yes; then
8892      # Even if we have a recent libksba, we should check that the
8893      # API is compatible.
8894      if test "$req_ksba_api" -gt 0 ; then
8895         tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8896         if test "$tmp" -gt 0 ; then
8897            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8898 $as_echo_n "checking KSBA API version... " >&6; }
8899            if test "$req_ksba_api" -eq "$tmp" ; then
8900              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8901 $as_echo "okay" >&6; }
8902            else
8903              ok=no
8904              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
8905 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
8906            fi
8907         fi
8908      fi
8909   fi
8910   if test $ok = yes; then
8911     KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8912     KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8913     have_ksba=yes
8914     libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
8915     if test x"$libksba_config_host" != xnone ; then
8916       if test x"$libksba_config_host" != x"$host" ; then
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8918 ***
8919 *** The config script $LIBKSBA_CONFIG was
8920 *** built for $libksba_config_host and thus may not match the
8921 *** used host $host.
8922 *** You may want to use the configure option --with-libksba-prefix
8923 *** to specify a matching config script.
8924 ***" >&5
8925 $as_echo "$as_me: WARNING:
8926 ***
8927 *** The config script $LIBKSBA_CONFIG was
8928 *** built for $libksba_config_host and thus may not match the
8929 *** used host $host.
8930 *** You may want to use the configure option --with-libksba-prefix
8931 *** to specify a matching config script.
8932 ***" >&2;}
8933       fi
8934     fi
8935   else
8936     KSBA_CFLAGS=""
8937     KSBA_LIBS=""
8938     have_ksba=no
8939   fi
8940
8941
8942
8943
8944
8945 #
8946 # libusb allows us to use the integrated CCID smartcard reader driver.
8947 #
8948 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
8949 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
8950    case "${host}" in
8951      *-mingw32*)
8952        LIBUSB_NAME=
8953        LIBUSB_LIBS=
8954        LIBUSB_CPPFLAGS=
8955        ;;
8956      *-*-darwin*)
8957        LIBUSB_NAME=usb-1.0
8958        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
8959        ;;
8960      *-*-freebsd*)
8961        # FreeBSD has a native 1.0 compatible library by -lusb.
8962        LIBUSB_NAME=usb
8963        LIBUSB_LIBS=
8964        ;;
8965      *)
8966        LIBUSB_NAME=usb-1.0
8967        LIBUSB_LIBS=
8968        ;;
8969    esac
8970 fi
8971 if test x"$LIBUSB_NAME" != x ; then
8972    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
8974 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
8975 if eval \${$as_ac_Lib+:} false; then :
8976   $as_echo_n "(cached) " >&6
8977 else
8978   ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-l$LIBUSB_NAME  $LIBS"
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h.  */
8982
8983 /* Override any GCC internal prototype to avoid an error.
8984    Use char because int might match the return type of a GCC
8985    builtin and then its argument prototype would still apply.  */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 char libusb_init ();
8990 int
8991 main ()
8992 {
8993 return libusb_init ();
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 if ac_fn_c_try_link "$LINENO"; then :
8999   eval "$as_ac_Lib=yes"
9000 else
9001   eval "$as_ac_Lib=no"
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext \
9004     conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9006 fi
9007 eval ac_res=\$$as_ac_Lib
9008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9009 $as_echo "$ac_res" >&6; }
9010 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9011    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9012                   have_libusb=yes
9013 fi
9014
9015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9016 $as_echo_n "checking libusb include dir... " >&6; }
9017    usb_incdir_found="no"
9018    for _incdir in "" "/usr/include/libusb-1.0" \
9019        "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9020      _libusb_save_cppflags=$CPPFLAGS
9021      if test -n "${_incdir}"; then
9022        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9023      fi
9024      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h.  */
9026 #include <libusb.h>
9027 _ACEOF
9028 if ac_fn_c_try_cpp "$LINENO"; then :
9029   usb_incdir=${_incdir}; usb_incdir_found="yes"
9030 fi
9031 rm -f conftest.err conftest.i conftest.$ac_ext
9032      CPPFLAGS=${_libusb_save_cppflags}
9033      if test "$usb_incdir_found" = "yes"; then
9034        break
9035      fi
9036    done
9037    if test "$usb_incdir_found" = "yes"; then
9038      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9039 $as_echo "${usb_incdir}" >&6; }
9040    else
9041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9042 $as_echo "not found" >&6; }
9043      usb_incdir=""
9044      have_libusb=no
9045      if test "$use_ccid_driver" != yes; then
9046        use_ccid_driver=no
9047      fi
9048      LIBUSB_LIBS=""
9049    fi
9050
9051    if test "$have_libusb" = yes; then
9052
9053 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9054
9055    fi
9056    if test x"$usb_incdir" = x; then
9057      LIBUSB_CPPFLAGS=""
9058    else
9059      LIBUSB_CPPFLAGS="-I${usb_incdir}"
9060    fi
9061 fi
9062
9063
9064
9065 #
9066 # Check whether it is necessary to link against libdl.
9067 # (For example to load libpcsclite)
9068 #
9069 gnupg_dlopen_save_libs="$LIBS"
9070 LIBS=""
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9072 $as_echo_n "checking for library containing dlopen... " >&6; }
9073 if ${ac_cv_search_dlopen+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   ac_func_search_save_LIBS=$LIBS
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h.  */
9079
9080 /* Override any GCC internal prototype to avoid an error.
9081    Use char because int might match the return type of a GCC
9082    builtin and then its argument prototype would still apply.  */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 char dlopen ();
9087 int
9088 main ()
9089 {
9090 return dlopen ();
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 for ac_lib in '' c dl; do
9096   if test -z "$ac_lib"; then
9097     ac_res="none required"
9098   else
9099     ac_res=-l$ac_lib
9100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9101   fi
9102   if ac_fn_c_try_link "$LINENO"; then :
9103   ac_cv_search_dlopen=$ac_res
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext \
9106     conftest$ac_exeext
9107   if ${ac_cv_search_dlopen+:} false; then :
9108   break
9109 fi
9110 done
9111 if ${ac_cv_search_dlopen+:} false; then :
9112
9113 else
9114   ac_cv_search_dlopen=no
9115 fi
9116 rm conftest.$ac_ext
9117 LIBS=$ac_func_search_save_LIBS
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9120 $as_echo "$ac_cv_search_dlopen" >&6; }
9121 ac_res=$ac_cv_search_dlopen
9122 if test "$ac_res" != no; then :
9123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9124
9125 fi
9126
9127 DL_LIBS=$LIBS
9128
9129 LIBS="$gnupg_dlopen_save_libs"
9130
9131
9132 # Checks for g10
9133
9134 # Check whether --enable-sqlite was given.
9135 if test "${enable_sqlite+set}" = set; then :
9136   enableval=$enable_sqlite; try_sqlite=$enableval
9137 else
9138   try_sqlite=yes
9139 fi
9140
9141
9142 if test x"$use_tofu" = xyes ; then
9143   if test x"$try_sqlite" = xyes ; then
9144
9145 pkg_failed=no
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9147 $as_echo_n "checking for SQLITE3... " >&6; }
9148
9149 if test -n "$SQLITE3_CFLAGS"; then
9150     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9151  elif test -n "$PKG_CONFIG"; then
9152     if test -n "$PKG_CONFIG" && \
9153     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9154   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9155   ac_status=$?
9156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9157   test $ac_status = 0; }; then
9158   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9159                       test "x$?" != "x0" && pkg_failed=yes
9160 else
9161   pkg_failed=yes
9162 fi
9163  else
9164     pkg_failed=untried
9165 fi
9166 if test -n "$SQLITE3_LIBS"; then
9167     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9168  elif test -n "$PKG_CONFIG"; then
9169     if test -n "$PKG_CONFIG" && \
9170     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9171   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9172   ac_status=$?
9173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174   test $ac_status = 0; }; then
9175   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9176                       test "x$?" != "x0" && pkg_failed=yes
9177 else
9178   pkg_failed=yes
9179 fi
9180  else
9181     pkg_failed=untried
9182 fi
9183
9184
9185
9186 if test $pkg_failed = yes; then
9187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189
9190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9191         _pkg_short_errors_supported=yes
9192 else
9193         _pkg_short_errors_supported=no
9194 fi
9195         if test $_pkg_short_errors_supported = yes; then
9196                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9197         else
9198                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9199         fi
9200         # Put the nasty error message in config.log where it belongs
9201         echo "$SQLITE3_PKG_ERRORS" >&5
9202
9203         have_sqlite=no
9204 elif test $pkg_failed = untried; then
9205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9207         have_sqlite=no
9208 else
9209         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9210         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9212 $as_echo "yes" >&6; }
9213         have_sqlite=yes
9214 fi
9215   fi
9216   if test "$have_sqlite" = "yes"; then
9217     :
9218
9219
9220   else
9221     use_tofu=no
9222     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9223     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9224 ***
9225 *** Building without SQLite support - TOFU disabled
9226 ***
9227 *** $tmp" >&5
9228 $as_echo "$as_me: WARNING:
9229 ***
9230 *** Building without SQLite support - TOFU disabled
9231 ***
9232 *** $tmp" >&2;}
9233   fi
9234 fi
9235
9236  if test "$have_sqlite" = "yes"; then
9237   SQLITE3_TRUE=
9238   SQLITE3_FALSE='#'
9239 else
9240   SQLITE3_TRUE='#'
9241   SQLITE3_FALSE=
9242 fi
9243
9244
9245 if test x"$use_tofu" = xyes ; then
9246
9247 $as_echo "#define USE_TOFU 1" >>confdefs.h
9248
9249 fi
9250
9251
9252 # Checks for g13
9253
9254 # Extract the first word of "encfs", so it can be a program name with args.
9255 set dummy encfs; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if ${ac_cv_path_ENCFS+:} false; then :
9259   $as_echo_n "(cached) " >&6
9260 else
9261   case $ENCFS in
9262   [\\/]* | ?:[\\/]*)
9263   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9264   ;;
9265   *)
9266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 for as_dir in $PATH
9268 do
9269   IFS=$as_save_IFS
9270   test -z "$as_dir" && as_dir=.
9271     for ac_exec_ext in '' $ac_executable_extensions; do
9272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9273     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275     break 2
9276   fi
9277 done
9278   done
9279 IFS=$as_save_IFS
9280
9281   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9282   ;;
9283 esac
9284 fi
9285 ENCFS=$ac_cv_path_ENCFS
9286 if test -n "$ENCFS"; then
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9288 $as_echo "$ENCFS" >&6; }
9289 else
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9292 fi
9293
9294
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define ENCFS "${ENCFS}"
9298 _ACEOF
9299
9300
9301 # Extract the first word of "fusermount", so it can be a program name with args.
9302 set dummy fusermount; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   case $FUSERMOUNT in
9309   [\\/]* | ?:[\\/]*)
9310   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9311   ;;
9312   *)
9313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9315 do
9316   IFS=$as_save_IFS
9317   test -z "$as_dir" && as_dir=.
9318     for ac_exec_ext in '' $ac_executable_extensions; do
9319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322     break 2
9323   fi
9324 done
9325   done
9326 IFS=$as_save_IFS
9327
9328   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9329   ;;
9330 esac
9331 fi
9332 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9333 if test -n "$FUSERMOUNT"; then
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9335 $as_echo "$FUSERMOUNT" >&6; }
9336 else
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9339 fi
9340
9341
9342
9343 cat >>confdefs.h <<_ACEOF
9344 #define FUSERMOUNT "${FUSERMOUNT}"
9345 _ACEOF
9346
9347
9348
9349 # Checks for dirmngr
9350
9351
9352 #
9353 # Checks formerly used for symcryptrun.
9354 #
9355
9356 # libutil has openpty() and login_tty().
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9358 $as_echo_n "checking for openpty in -lutil... " >&6; }
9359 if ${ac_cv_lib_util_openpty+:} false; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362   ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-lutil  $LIBS"
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h.  */
9366
9367 /* Override any GCC internal prototype to avoid an error.
9368    Use char because int might match the return type of a GCC
9369    builtin and then its argument prototype would still apply.  */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char openpty ();
9374 int
9375 main ()
9376 {
9377 return openpty ();
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383   ac_cv_lib_util_openpty=yes
9384 else
9385   ac_cv_lib_util_openpty=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext \
9388     conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9390 fi
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
9392 $as_echo "$ac_cv_lib_util_openpty" >&6; }
9393 if test "x$ac_cv_lib_util_openpty" = xyes; then :
9394    LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
9395
9396 $as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
9397
9398
9399 fi
9400
9401
9402
9403 # shred is used to clean temporary plain text files.
9404 # Extract the first word of "shred", so it can be a program name with args.
9405 set dummy shred; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_path_SHRED+:} false; then :
9409   $as_echo_n "(cached) " >&6
9410 else
9411   case $SHRED in
9412   [\\/]* | ?:[\\/]*)
9413   ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
9414   ;;
9415   *)
9416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in $PATH
9418 do
9419   IFS=$as_save_IFS
9420   test -z "$as_dir" && as_dir=.
9421     for ac_exec_ext in '' $ac_executable_extensions; do
9422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9423     ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
9424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9425     break 2
9426   fi
9427 done
9428   done
9429 IFS=$as_save_IFS
9430
9431   test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
9432   ;;
9433 esac
9434 fi
9435 SHRED=$ac_cv_path_SHRED
9436 if test -n "$SHRED"; then
9437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHRED" >&5
9438 $as_echo "$SHRED" >&6; }
9439 else
9440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9442 fi
9443
9444
9445
9446 cat >>confdefs.h <<_ACEOF
9447 #define SHRED "${SHRED}"
9448 _ACEOF
9449
9450
9451
9452 #
9453 # Check whether the nPth library is available
9454 #
9455
9456 # Check whether --with-npth-prefix was given.
9457 if test "${with_npth_prefix+set}" = set; then :
9458   withval=$with_npth_prefix; npth_config_prefix="$withval"
9459 else
9460   npth_config_prefix=""
9461 fi
9462
9463   if test "x$npth_config_prefix" != x ; then
9464       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9465   fi
9466   # Extract the first word of "npth-config", so it can be a program name with args.
9467 set dummy npth-config; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   case $NPTH_CONFIG in
9474   [\\/]* | ?:[\\/]*)
9475   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9476   ;;
9477   *)
9478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in $PATH
9480 do
9481   IFS=$as_save_IFS
9482   test -z "$as_dir" && as_dir=.
9483     for ac_exec_ext in '' $ac_executable_extensions; do
9484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487     break 2
9488   fi
9489 done
9490   done
9491 IFS=$as_save_IFS
9492
9493   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9494   ;;
9495 esac
9496 fi
9497 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9498 if test -n "$NPTH_CONFIG"; then
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9500 $as_echo "$NPTH_CONFIG" >&6; }
9501 else
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9504 fi
9505
9506
9507
9508   if test "$NPTH_CONFIG" != "no" ; then
9509     npth_version=`$NPTH_CONFIG --version`
9510   fi
9511   npth_version_major=`echo $npth_version | \
9512                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9513   npth_version_minor=`echo $npth_version | \
9514                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9515
9516    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9517   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9518      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9519      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9520   else
9521      req_npth_api=1
9522      min_npth_version="$tmp"
9523   fi
9524
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9526 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9527   ok=no
9528   if test "$NPTH_CONFIG" != "no" ; then
9529     req_major=`echo $min_npth_version | \
9530                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9531     req_minor=`echo $min_npth_version | \
9532                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9533     if test "$npth_version_major" -gt "$req_major"; then
9534         ok=yes
9535     else
9536         if test "$npth_version_major" -eq "$req_major"; then
9537             if test "$npth_version_minor" -gt "$req_minor"; then
9538                ok=yes
9539             else
9540                if test "$npth_version_minor" -eq "$req_minor"; then
9541                   ok=yes
9542                fi
9543             fi
9544         fi
9545     fi
9546   fi
9547   if test $ok = yes; then
9548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9549 $as_echo "yes ($npth_version)" >&6; }
9550   else
9551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553   fi
9554   if test $ok = yes; then
9555      # If we have a recent NPTH, we should also check that the
9556      # API is compatible.
9557      if test "$req_npth_api" -gt 0 ; then
9558         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9559         if test "$tmp" -gt 0 ; then
9560            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9561 $as_echo_n "checking NPTH API version... " >&6; }
9562            if test "$req_npth_api" -eq "$tmp" ; then
9563              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9564 $as_echo "okay" >&6; }
9565            else
9566              ok=no
9567              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9568 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9569            fi
9570         fi
9571      fi
9572   fi
9573   if test $ok = yes; then
9574     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9575     NPTH_LIBS=`$NPTH_CONFIG --libs`
9576     have_npth=yes
9577     npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9578     if test x"$npth_config_host" != xnone ; then
9579       if test x"$npth_config_host" != x"$host" ; then
9580         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9581 ***
9582 *** The config script $NPTH_CONFIG was
9583 *** built for $npth_config_host and thus may not match the
9584 *** used host $host.
9585 *** You may want to use the configure option --with-npth-prefix
9586 *** to specify a matching config script.
9587 ***" >&5
9588 $as_echo "$as_me: WARNING:
9589 ***
9590 *** The config script $NPTH_CONFIG was
9591 *** built for $npth_config_host and thus may not match the
9592 *** used host $host.
9593 *** You may want to use the configure option --with-npth-prefix
9594 *** to specify a matching config script.
9595 ***" >&2;}
9596       fi
9597     fi
9598   else
9599     NPTH_CFLAGS=""
9600     NPTH_LIBS=""
9601     have_npth=no
9602   fi
9603
9604
9605
9606 if test "$have_npth" = "yes"; then
9607
9608 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9609
9610
9611 $as_echo "#define USE_NPTH 1" >>confdefs.h
9612
9613 else
9614   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9615 ***
9616 *** To support concurrent access for example in gpg-agent and the SCdaemon
9617 *** we need the support of the New Portable Threads Library.
9618 ***" >&5
9619 $as_echo "$as_me: WARNING:
9620 ***
9621 *** To support concurrent access for example in gpg-agent and the SCdaemon
9622 *** we need the support of the New Portable Threads Library.
9623 ***" >&2;}
9624 fi
9625 #
9626 # Enable debugging of nPth
9627 #
9628 # Check whether --enable-npth-debug was given.
9629 if test "${enable_npth_debug+set}" = set; then :
9630   enableval=$enable_npth_debug; if test $enableval = yes ; then
9631
9632 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9633
9634                   fi
9635 fi
9636
9637
9638
9639
9640 #
9641 # NTBTLS is our TLS library.  If it is not available fallback to
9642 # GNUTLS.
9643 #
9644 # Check whether --enable-ntbtls was given.
9645 if test "${enable_ntbtls+set}" = set; then :
9646   enableval=$enable_ntbtls; try_ntbtls=$enableval
9647 else
9648   try_ntbtls=yes
9649 fi
9650
9651 if test x"$try_ntbtls" = xyes ; then
9652
9653
9654 # Check whether --with-ntbtls-prefix was given.
9655 if test "${with_ntbtls_prefix+set}" = set; then :
9656   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9657 else
9658   ntbtls_config_prefix=""
9659 fi
9660
9661   if test x"${NTBTLS_CONFIG}" = x ; then
9662      if test x"${ntbtls_config_prefix}" != x ; then
9663         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9664      else
9665        case "${SYSROOT}" in
9666          /*)
9667            if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9668              NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9669            fi
9670            ;;
9671          '')
9672            ;;
9673           *)
9674            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9675 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9676            ;;
9677        esac
9678      fi
9679   fi
9680
9681   # Extract the first word of "ntbtls-config", so it can be a program name with args.
9682 set dummy ntbtls-config; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9686   $as_echo_n "(cached) " >&6
9687 else
9688   case $NTBTLS_CONFIG in
9689   [\\/]* | ?:[\\/]*)
9690   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9691   ;;
9692   *)
9693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9695 do
9696   IFS=$as_save_IFS
9697   test -z "$as_dir" && as_dir=.
9698     for ac_exec_ext in '' $ac_executable_extensions; do
9699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702     break 2
9703   fi
9704 done
9705   done
9706 IFS=$as_save_IFS
9707
9708   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9709   ;;
9710 esac
9711 fi
9712 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9713 if test -n "$NTBTLS_CONFIG"; then
9714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9715 $as_echo "$NTBTLS_CONFIG" >&6; }
9716 else
9717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9719 fi
9720
9721
9722   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9723   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9724      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9725      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9726   else
9727      req_ntbtls_api=0
9728      min_ntbtls_version="$tmp"
9729   fi
9730
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9732 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9733   ok=no
9734   if test "$NTBTLS_CONFIG" != "no" ; then
9735     req_major=`echo $min_ntbtls_version | \
9736                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9737     req_minor=`echo $min_ntbtls_version | \
9738                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9739     req_micro=`echo $min_ntbtls_version | \
9740                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9741     ntbtls_config_version=`$NTBTLS_CONFIG --version`
9742     major=`echo $ntbtls_config_version | \
9743                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9744     minor=`echo $ntbtls_config_version | \
9745                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9746     micro=`echo $ntbtls_config_version | \
9747                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9748     if test "$major" -gt "$req_major"; then
9749         ok=yes
9750     else
9751         if test "$major" -eq "$req_major"; then
9752             if test "$minor" -gt "$req_minor"; then
9753                ok=yes
9754             else
9755                if test "$minor" -eq "$req_minor"; then
9756                    if test "$micro" -ge "$req_micro"; then
9757                      ok=yes
9758                    fi
9759                fi
9760             fi
9761         fi
9762     fi
9763   fi
9764   if test $ok = yes; then
9765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9766 $as_echo "yes ($ntbtls_config_version)" >&6; }
9767   else
9768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9770   fi
9771   if test $ok = yes; then
9772      # If we have a recent ntbtls, we should also check that the
9773      # API is compatible
9774      if test "$req_ntbtls_api" -gt 0 ; then
9775         tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9776         if test "$tmp" -gt 0 ; then
9777            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9778 $as_echo_n "checking NTBTLS API version... " >&6; }
9779            if test "$req_ntbtls_api" -eq "$tmp" ; then
9780              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9781 $as_echo "okay" >&6; }
9782            else
9783              ok=no
9784              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9785 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9786            fi
9787         fi
9788      fi
9789   fi
9790   if test $ok = yes; then
9791     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9792     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9793     have_ntbtls=yes
9794     ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
9795     if test x"$ntbtls_config_host" != xnone ; then
9796       if test x"$ntbtls_config_host" != x"$host" ; then
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9798 ***
9799 *** The config script $NTBTLS_CONFIG was
9800 *** built for $ntbtls_config_host and thus may not match the
9801 *** used host $host.
9802 *** You may want to use the configure option --with-ntbtls-prefix
9803 *** to specify a matching config script or use \$SYSROOT.
9804 ***" >&5
9805 $as_echo "$as_me: WARNING:
9806 ***
9807 *** The config script $NTBTLS_CONFIG was
9808 *** built for $ntbtls_config_host and thus may not match the
9809 *** used host $host.
9810 *** You may want to use the configure option --with-ntbtls-prefix
9811 *** to specify a matching config script or use \$SYSROOT.
9812 ***" >&2;}
9813         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
9814       fi
9815     fi
9816   else
9817     NTBTLS_CFLAGS=""
9818     NTBTLS_LIBS=""
9819     have_ntbtls=no
9820   fi
9821
9822
9823
9824 fi
9825 if test "$have_ntbtls" = yes ; then
9826    use_tls_library=ntbtls
9827
9828 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
9829
9830 else
9831   # Check whether --enable-gnutls was given.
9832 if test "${enable_gnutls+set}" = set; then :
9833   enableval=$enable_gnutls; try_gnutls=$enableval
9834 else
9835   try_gnutls=yes
9836 fi
9837
9838   if test x"$try_gnutls" = xyes ; then
9839
9840 pkg_failed=no
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
9842 $as_echo_n "checking for LIBGNUTLS... " >&6; }
9843
9844 if test -n "$LIBGNUTLS_CFLAGS"; then
9845     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
9846  elif test -n "$PKG_CONFIG"; then
9847     if test -n "$PKG_CONFIG" && \
9848     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9849   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9850   ac_status=$?
9851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9852   test $ac_status = 0; }; then
9853   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9854                       test "x$?" != "x0" && pkg_failed=yes
9855 else
9856   pkg_failed=yes
9857 fi
9858  else
9859     pkg_failed=untried
9860 fi
9861 if test -n "$LIBGNUTLS_LIBS"; then
9862     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
9863  elif test -n "$PKG_CONFIG"; then
9864     if test -n "$PKG_CONFIG" && \
9865     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9866   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9867   ac_status=$?
9868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9869   test $ac_status = 0; }; then
9870   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9871                       test "x$?" != "x0" && pkg_failed=yes
9872 else
9873   pkg_failed=yes
9874 fi
9875  else
9876     pkg_failed=untried
9877 fi
9878
9879
9880
9881 if test $pkg_failed = yes; then
9882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9884
9885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9886         _pkg_short_errors_supported=yes
9887 else
9888         _pkg_short_errors_supported=no
9889 fi
9890         if test $_pkg_short_errors_supported = yes; then
9891                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9892         else
9893                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9894         fi
9895         # Put the nasty error message in config.log where it belongs
9896         echo "$LIBGNUTLS_PKG_ERRORS" >&5
9897
9898         have_gnutls=no
9899 elif test $pkg_failed = untried; then
9900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9902         have_gnutls=no
9903 else
9904         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
9905         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
9906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9907 $as_echo "yes" >&6; }
9908         have_gnutls=yes
9909 fi
9910   fi
9911   if test "$have_gnutls" = "yes"; then
9912
9913
9914     use_tls_library=gnutls
9915
9916 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
9917
9918   else
9919     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9921 ***
9922 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9923 ***
9924 *** $tmp" >&5
9925 $as_echo "$as_me: WARNING:
9926 ***
9927 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9928 ***
9929 *** $tmp" >&2;}
9930   fi
9931 fi
9932
9933 #
9934 # Allow to set a fixed trust store file for system provided certificates.
9935 #
9936
9937 # Check whether --with-default-trust-store-file was given.
9938 if test "${with_default_trust_store_file+set}" = set; then :
9939   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
9940 else
9941   default_trust_store_file=""
9942 fi
9943
9944 if test x"$default_trust_store_file" = xno;then
9945   default_trust_store_file=""
9946 fi
9947 if test x"$default_trust_store_file" != x ; then
9948
9949 cat >>confdefs.h <<_ACEOF
9950 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
9951 _ACEOF
9952
9953 fi
9954
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
9957 $as_echo "$as_me: checking for networking options" >&6;}
9958
9959 #
9960 # Must check for network library requirements before doing link tests
9961 # for ldap, for example. If ldap libs are static (or dynamic and without
9962 # ELF runtime link paths), then link will fail and LDAP support won't
9963 # be detected.
9964 #
9965 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9966 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9967
9968 else
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9970 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9971 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974   ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-lnsl  $LIBS"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h.  */
9978
9979 /* Override any GCC internal prototype to avoid an error.
9980    Use char because int might match the return type of a GCC
9981    builtin and then its argument prototype would still apply.  */
9982 #ifdef __cplusplus
9983 extern "C"
9984 #endif
9985 char gethostbyname ();
9986 int
9987 main ()
9988 {
9989 return gethostbyname ();
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995   ac_cv_lib_nsl_gethostbyname=yes
9996 else
9997   ac_cv_lib_nsl_gethostbyname=no
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext \
10000     conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10004 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10005 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10006   NETLIBS="-lnsl $NETLIBS"
10007 fi
10008
10009 fi
10010
10011 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10012 if test "x$ac_cv_func_setsockopt" = xyes; then :
10013
10014 else
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10016 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10017 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10018   $as_echo_n "(cached) " >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsocket  $LIBS"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h.  */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char setsockopt ();
10032 int
10033 main ()
10034 {
10035 return setsockopt ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041   ac_cv_lib_socket_setsockopt=yes
10042 else
10043   ac_cv_lib_socket_setsockopt=no
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext \
10046     conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10050 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10051 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10052   NETLIBS="-lsocket $NETLIBS"
10053 fi
10054
10055 fi
10056
10057
10058
10059 #
10060 # Check standard resolver functions.
10061 #
10062 if test "$build_dirmngr" = "yes"; then
10063   _dns_save_libs=$LIBS
10064   LIBS=""
10065
10066   # Find the system resolver which can always be enabled with
10067   # the dirmngr option --standard-resolver.
10068
10069   # the double underscore thing is a glibc-ism?
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10071 $as_echo_n "checking for library containing res_query... " >&6; }
10072 if ${ac_cv_search_res_query+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   ac_func_search_save_LIBS=$LIBS
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char res_query ();
10086 int
10087 main ()
10088 {
10089 return res_query ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 for ac_lib in '' resolv bind; do
10095   if test -z "$ac_lib"; then
10096     ac_res="none required"
10097   else
10098     ac_res=-l$ac_lib
10099     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10100   fi
10101   if ac_fn_c_try_link "$LINENO"; then :
10102   ac_cv_search_res_query=$ac_res
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext \
10105     conftest$ac_exeext
10106   if ${ac_cv_search_res_query+:} false; then :
10107   break
10108 fi
10109 done
10110 if ${ac_cv_search_res_query+:} false; then :
10111
10112 else
10113   ac_cv_search_res_query=no
10114 fi
10115 rm conftest.$ac_ext
10116 LIBS=$ac_func_search_save_LIBS
10117 fi
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10119 $as_echo "$ac_cv_search_res_query" >&6; }
10120 ac_res=$ac_cv_search_res_query
10121 if test "$ac_res" != no; then :
10122   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10123
10124 else
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10126 $as_echo_n "checking for library containing __res_query... " >&6; }
10127 if ${ac_cv_search___res_query+:} false; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   ac_func_search_save_LIBS=$LIBS
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h.  */
10133
10134 /* Override any GCC internal prototype to avoid an error.
10135    Use char because int might match the return type of a GCC
10136    builtin and then its argument prototype would still apply.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char __res_query ();
10141 int
10142 main ()
10143 {
10144 return __res_query ();
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 for ac_lib in '' resolv bind; do
10150   if test -z "$ac_lib"; then
10151     ac_res="none required"
10152   else
10153     ac_res=-l$ac_lib
10154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10155   fi
10156   if ac_fn_c_try_link "$LINENO"; then :
10157   ac_cv_search___res_query=$ac_res
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext \
10160     conftest$ac_exeext
10161   if ${ac_cv_search___res_query+:} false; then :
10162   break
10163 fi
10164 done
10165 if ${ac_cv_search___res_query+:} false; then :
10166
10167 else
10168   ac_cv_search___res_query=no
10169 fi
10170 rm conftest.$ac_ext
10171 LIBS=$ac_func_search_save_LIBS
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10174 $as_echo "$ac_cv_search___res_query" >&6; }
10175 ac_res=$ac_cv_search___res_query
10176 if test "$ac_res" != no; then :
10177   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10178
10179 else
10180   have_resolver=no
10181 fi
10182
10183 fi
10184
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10186 $as_echo_n "checking for library containing dn_expand... " >&6; }
10187 if ${ac_cv_search_dn_expand+:} false; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   ac_func_search_save_LIBS=$LIBS
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195    Use char because int might match the return type of a GCC
10196    builtin and then its argument prototype would still apply.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char dn_expand ();
10201 int
10202 main ()
10203 {
10204 return dn_expand ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 for ac_lib in '' resolv bind; do
10210   if test -z "$ac_lib"; then
10211     ac_res="none required"
10212   else
10213     ac_res=-l$ac_lib
10214     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10215   fi
10216   if ac_fn_c_try_link "$LINENO"; then :
10217   ac_cv_search_dn_expand=$ac_res
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext \
10220     conftest$ac_exeext
10221   if ${ac_cv_search_dn_expand+:} false; then :
10222   break
10223 fi
10224 done
10225 if ${ac_cv_search_dn_expand+:} false; then :
10226
10227 else
10228   ac_cv_search_dn_expand=no
10229 fi
10230 rm conftest.$ac_ext
10231 LIBS=$ac_func_search_save_LIBS
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10234 $as_echo "$ac_cv_search_dn_expand" >&6; }
10235 ac_res=$ac_cv_search_dn_expand
10236 if test "$ac_res" != no; then :
10237   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10238
10239 else
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10241 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10242 if ${ac_cv_search___dn_expand+:} false; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245   ac_func_search_save_LIBS=$LIBS
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char __dn_expand ();
10256 int
10257 main ()
10258 {
10259 return __dn_expand ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 for ac_lib in '' resolv bind; do
10265   if test -z "$ac_lib"; then
10266     ac_res="none required"
10267   else
10268     ac_res=-l$ac_lib
10269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10270   fi
10271   if ac_fn_c_try_link "$LINENO"; then :
10272   ac_cv_search___dn_expand=$ac_res
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275     conftest$ac_exeext
10276   if ${ac_cv_search___dn_expand+:} false; then :
10277   break
10278 fi
10279 done
10280 if ${ac_cv_search___dn_expand+:} false; then :
10281
10282 else
10283   ac_cv_search___dn_expand=no
10284 fi
10285 rm conftest.$ac_ext
10286 LIBS=$ac_func_search_save_LIBS
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10289 $as_echo "$ac_cv_search___dn_expand" >&6; }
10290 ac_res=$ac_cv_search___dn_expand
10291 if test "$ac_res" != no; then :
10292   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10293
10294 else
10295   have_resolver=no
10296 fi
10297
10298 fi
10299
10300
10301   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10302   # and for some reason fools us into believing we don't need
10303   # -lresolv even if we do.  Since the test program checking for the
10304   # symbol does not include <resolv.h>, we need to check for the
10305   # renamed symbol explicitly.
10306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10307 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10308 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   ac_func_search_save_LIBS=$LIBS
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h.  */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316    Use char because int might match the return type of a GCC
10317    builtin and then its argument prototype would still apply.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char res_9_dn_skipname ();
10322 int
10323 main ()
10324 {
10325 return res_9_dn_skipname ();
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 for ac_lib in '' resolv bind; do
10331   if test -z "$ac_lib"; then
10332     ac_res="none required"
10333   else
10334     ac_res=-l$ac_lib
10335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10336   fi
10337   if ac_fn_c_try_link "$LINENO"; then :
10338   ac_cv_search_res_9_dn_skipname=$ac_res
10339 fi
10340 rm -f core conftest.err conftest.$ac_objext \
10341     conftest$ac_exeext
10342   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10343   break
10344 fi
10345 done
10346 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10347
10348 else
10349   ac_cv_search_res_9_dn_skipname=no
10350 fi
10351 rm conftest.$ac_ext
10352 LIBS=$ac_func_search_save_LIBS
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10355 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10356 ac_res=$ac_cv_search_res_9_dn_skipname
10357 if test "$ac_res" != no; then :
10358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10359
10360 else
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10362 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10363 if ${ac_cv_search_dn_skipname+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   ac_func_search_save_LIBS=$LIBS
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h.  */
10369
10370 /* Override any GCC internal prototype to avoid an error.
10371    Use char because int might match the return type of a GCC
10372    builtin and then its argument prototype would still apply.  */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char dn_skipname ();
10377 int
10378 main ()
10379 {
10380 return dn_skipname ();
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 for ac_lib in '' resolv bind; do
10386   if test -z "$ac_lib"; then
10387     ac_res="none required"
10388   else
10389     ac_res=-l$ac_lib
10390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10391   fi
10392   if ac_fn_c_try_link "$LINENO"; then :
10393   ac_cv_search_dn_skipname=$ac_res
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396     conftest$ac_exeext
10397   if ${ac_cv_search_dn_skipname+:} false; then :
10398   break
10399 fi
10400 done
10401 if ${ac_cv_search_dn_skipname+:} false; then :
10402
10403 else
10404   ac_cv_search_dn_skipname=no
10405 fi
10406 rm conftest.$ac_ext
10407 LIBS=$ac_func_search_save_LIBS
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10410 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10411 ac_res=$ac_cv_search_dn_skipname
10412 if test "$ac_res" != no; then :
10413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10414
10415 else
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10417 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10418 if ${ac_cv_search___dn_skipname+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   ac_func_search_save_LIBS=$LIBS
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h.  */
10424
10425 /* Override any GCC internal prototype to avoid an error.
10426    Use char because int might match the return type of a GCC
10427    builtin and then its argument prototype would still apply.  */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 char __dn_skipname ();
10432 int
10433 main ()
10434 {
10435 return __dn_skipname ();
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 for ac_lib in '' resolv bind; do
10441   if test -z "$ac_lib"; then
10442     ac_res="none required"
10443   else
10444     ac_res=-l$ac_lib
10445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10446   fi
10447   if ac_fn_c_try_link "$LINENO"; then :
10448   ac_cv_search___dn_skipname=$ac_res
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext \
10451     conftest$ac_exeext
10452   if ${ac_cv_search___dn_skipname+:} false; then :
10453   break
10454 fi
10455 done
10456 if ${ac_cv_search___dn_skipname+:} false; then :
10457
10458 else
10459   ac_cv_search___dn_skipname=no
10460 fi
10461 rm conftest.$ac_ext
10462 LIBS=$ac_func_search_save_LIBS
10463 fi
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10465 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10466 ac_res=$ac_cv_search___dn_skipname
10467 if test "$ac_res" != no; then :
10468   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10469
10470 else
10471   have_resolver=no
10472 fi
10473
10474 fi
10475
10476 fi
10477
10478
10479   if test x"$have_resolver" != xno ; then
10480
10481       # Make sure that the BIND 4 resolver interface is workable before
10482       # enabling any code that calls it.  At some point I'll rewrite the
10483       # code to use the BIND 8 resolver API.
10484       # We might also want to use libdns instead.
10485
10486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10487 $as_echo_n "checking whether the resolver is usable... " >&6; }
10488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h.  */
10490 #include <sys/types.h>
10491 #include <netinet/in.h>
10492 #include <arpa/nameser.h>
10493 #include <resolv.h>
10494 int
10495 main ()
10496 {
10497 unsigned char answer[PACKETSZ];
10498   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10499   dn_skipname(0,0);
10500   dn_expand(0,0,0,0,0);
10501
10502   ;
10503   return 0;
10504 }
10505 _ACEOF
10506 if ac_fn_c_try_link "$LINENO"; then :
10507   have_resolver=yes
10508 else
10509   have_resolver=no
10510 fi
10511 rm -f core conftest.err conftest.$ac_objext \
10512     conftest$ac_exeext conftest.$ac_ext
10513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10514 $as_echo "$have_resolver" >&6; }
10515
10516     # This is Apple-specific and somewhat bizarre as they changed the
10517     # define in bind 8 for some reason.
10518
10519     if test x"$have_resolver" != xyes ; then
10520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10521 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h.  */
10524 #define BIND_8_COMPAT
10525 #include <sys/types.h>
10526 #include <netinet/in.h>
10527 #include <arpa/nameser.h>
10528 #include <resolv.h>
10529 int
10530 main ()
10531 {
10532 unsigned char answer[PACKETSZ];
10533   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10534   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10535
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 if ac_fn_c_try_link "$LINENO"; then :
10541   have_resolver=yes ; need_compat=yes
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext \
10544     conftest$ac_exeext conftest.$ac_ext
10545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10546 $as_echo "$have_resolver" >&6; }
10547     fi
10548   fi
10549
10550   if test x"$have_resolver" = xyes ; then
10551
10552 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10553
10554     DNSLIBS="$DNSLIBS $LIBS"
10555     if test x"$need_compat" = xyes ; then
10556
10557 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10558
10559     fi
10560     if test "$use_libdns" = yes; then
10561      show_tor_support=yes
10562     fi
10563   elif test "$use_libdns" = yes; then
10564     show_tor_support=yes
10565   else
10566     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10567 ***
10568 *** The system's DNS resolver is not usable.
10569 *** Dirmngr functionality is limited.
10570 ***" >&5
10571 $as_echo "$as_me: WARNING:
10572 ***
10573 *** The system's DNS resolver is not usable.
10574 *** Dirmngr functionality is limited.
10575 ***" >&2;}
10576     show_tor_support="${show_tor_support} (no system resolver)"
10577   fi
10578
10579   if test "$have_w32_system" = yes; then
10580     if test "$use_libdns" = yes; then
10581       DNSLIBS="$DNSLIBS -liphlpapi"
10582     fi
10583   fi
10584
10585   LIBS=$_dns_save_libs
10586 fi
10587
10588
10589
10590
10591 #
10592 # Check for LDAP
10593 #
10594 # Note that running the check changes the variable
10595 # gnupg_have_ldap from "n/a" to "no" or "yes".
10596
10597 # Check whether --enable-ldap was given.
10598 if test "${enable_ldap+set}" = set; then :
10599   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10600 fi
10601
10602
10603 if test "$gnupg_have_ldap" != "no" ; then
10604   if test "$build_dirmngr" = "yes" ; then
10605
10606 # Try and link a LDAP test program to weed out unusable LDAP
10607 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10608 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10609 # If all else fails, the user can play guess-the-dependency by using
10610 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10611 gnupg_have_ldap=no
10612
10613 # Check whether --with-ldap was given.
10614 if test "${with_ldap+set}" = set; then :
10615   withval=$with_ldap; _ldap_with=$withval
10616 fi
10617
10618
10619 if test x$_ldap_with != xno ; then
10620
10621   if test -d "$withval" ; then
10622      LDAP_CPPFLAGS="-I$withval/include"
10623      LDAP_LDFLAGS="-L$withval/lib"
10624   fi
10625
10626   _ldap_save_cppflags=$CPPFLAGS
10627   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10628   _ldap_save_ldflags=$LDFLAGS
10629   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10630
10631   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10632     _ldap_save_libs=$LIBS
10633     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10634
10635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10636 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h.  */
10639
10640 #ifdef _WIN32
10641 #include <winsock2.h>
10642 #include <winldap.h>
10643 #else
10644 #include <ldap.h>
10645 #endif
10646
10647 int
10648 main ()
10649 {
10650 ldap_open("foobar",1234);
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 if ac_fn_c_try_link "$LINENO"; then :
10656   gnupg_cv_func_ldap_init=yes
10657 else
10658   gnupg_cv_func_ldap_init=no
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext \
10661     conftest$ac_exeext conftest.$ac_ext
10662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10663 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10664
10665     if test $gnupg_cv_func_ldap_init = no; then
10666       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10667 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h.  */
10670 #include <lber.h>
10671 #include <ldap.h>
10672 int
10673 main ()
10674 {
10675 ldap_open("foobar",1234);
10676   ;
10677   return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681   gnupg_cv_func_ldaplber_init=yes
10682 else
10683   gnupg_cv_func_ldaplber_init=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686     conftest$ac_exeext conftest.$ac_ext
10687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10688 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10689     fi
10690
10691     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10692
10693 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10694
10695     fi
10696
10697     if test "$gnupg_cv_func_ldap_init" = yes || \
10698         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10699        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10700        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10701        gnupg_have_ldap=yes
10702
10703        for ac_func in ldap_get_option ldap_set_option
10704 do :
10705   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10707 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10708   cat >>confdefs.h <<_ACEOF
10709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710 _ACEOF
10711
10712 fi
10713 done
10714
10715        # The extra test for ldap_start_tls_sA is for W32 because
10716        # that is the actual function in the library.
10717        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10718 do :
10719   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10722   cat >>confdefs.h <<_ACEOF
10723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10724 _ACEOF
10725
10726 fi
10727 done
10728
10729
10730        if test "$ac_cv_func_ldap_get_option" != yes ; then
10731           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10732 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10733           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h.  */
10735 #include <ldap.h>
10736 int
10737 main ()
10738 {
10739 LDAP *ldap; ldap->ld_errno;
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745   gnupg_cv_func_ldap_ld_errno=yes
10746 else
10747   gnupg_cv_func_ldap_ld_errno=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750     conftest$ac_exeext conftest.$ac_ext
10751           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10752 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10753
10754           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10755
10756 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10757
10758           fi
10759        fi
10760     fi
10761
10762     LIBS=$_ldap_save_libs
10763
10764     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10765   done
10766
10767
10768
10769
10770
10771   CPPFLAGS=$_ldap_save_cppflags
10772   LDFLAGS=$_ldap_save_ldflags
10773 fi
10774
10775      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10776 $as_echo_n "checking for ber_free in -llber... " >&6; }
10777 if ${ac_cv_lib_lber_ber_free+:} false; then :
10778   $as_echo_n "(cached) " >&6
10779 else
10780   ac_check_lib_save_LIBS=$LIBS
10781 LIBS="-llber  $LIBS"
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h.  */
10784
10785 /* Override any GCC internal prototype to avoid an error.
10786    Use char because int might match the return type of a GCC
10787    builtin and then its argument prototype would still apply.  */
10788 #ifdef __cplusplus
10789 extern "C"
10790 #endif
10791 char ber_free ();
10792 int
10793 main ()
10794 {
10795 return ber_free ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801   ac_cv_lib_lber_ber_free=yes
10802 else
10803   ac_cv_lib_lber_ber_free=no
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext \
10806     conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
10810 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
10811 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
10812    LBER_LIBS="$LBER_LIBS -llber"
10813
10814 $as_echo "#define HAVE_LBER 1" >>confdefs.h
10815
10816                     have_lber=yes
10817
10818 fi
10819
10820   fi
10821 fi
10822
10823 if test "$gnupg_have_ldap" = "no"; then
10824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10825 ***
10826 *** Building without LDAP support.
10827 *** No CRL access or X.509 certificate search available.
10828 ***" >&5
10829 $as_echo "$as_me: WARNING:
10830 ***
10831 *** Building without LDAP support.
10832 *** No CRL access or X.509 certificate search available.
10833 ***" >&2;}
10834 fi
10835
10836  if test "$gnupg_have_ldap" = yes; then
10837   USE_LDAP_TRUE=
10838   USE_LDAP_FALSE='#'
10839 else
10840   USE_LDAP_TRUE='#'
10841   USE_LDAP_FALSE=
10842 fi
10843
10844 if test "$gnupg_have_ldap" = yes ; then
10845
10846 $as_echo "#define USE_LDAP 1" >>confdefs.h
10847
10848 else
10849  use_ldapwrapper=no
10850 fi
10851
10852 if test "$use_ldapwrapper" = yes; then
10853
10854 $as_echo "#define USE_LDAPWRAPPER 1" >>confdefs.h
10855
10856 fi
10857  if test "$use_ldapwrapper" = yes; then
10858   USE_LDAPWRAPPER_TRUE=
10859   USE_LDAPWRAPPER_FALSE='#'
10860 else
10861   USE_LDAPWRAPPER_TRUE='#'
10862   USE_LDAPWRAPPER_FALSE=
10863 fi
10864
10865
10866
10867
10868
10869 #
10870 # Check for sendmail
10871 #
10872 # This isn't necessarily sendmail itself, but anything that gives a
10873 # sendmail-ish interface to the outside world.  That includes Exim,
10874 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
10875
10876 # Check whether --with-mailprog was given.
10877 if test "${with_mailprog+set}" = set; then :
10878   withval=$with_mailprog;
10879 else
10880   with_mailprog=yes
10881 fi
10882
10883 if test x"$with_mailprog" = xyes ; then
10884     # Extract the first word of "sendmail", so it can be a program name with args.
10885 set dummy sendmail; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_path_SENDMAIL+:} false; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891   case $SENDMAIL in
10892   [\\/]* | ?:[\\/]*)
10893   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
10894   ;;
10895   *)
10896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
10898 for as_dir in $as_dummy
10899 do
10900   IFS=$as_save_IFS
10901   test -z "$as_dir" && as_dir=.
10902     for ac_exec_ext in '' $ac_executable_extensions; do
10903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10904     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
10905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10906     break 2
10907   fi
10908 done
10909   done
10910 IFS=$as_save_IFS
10911
10912   ;;
10913 esac
10914 fi
10915 SENDMAIL=$ac_cv_path_SENDMAIL
10916 if test -n "$SENDMAIL"; then
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
10918 $as_echo "$SENDMAIL" >&6; }
10919 else
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10922 fi
10923
10924
10925 elif test x"$with_mailprog" != xno ; then
10926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
10927 $as_echo_n "checking for a mail transport program... " >&6; }
10928     SENDMAIL=$with_mailprog
10929
10930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
10931 $as_echo "$with_mailprog" >&6; }
10932 fi
10933
10934 cat >>confdefs.h <<_ACEOF
10935 #define NAME_OF_SENDMAIL "$SENDMAIL"
10936 _ACEOF
10937
10938
10939
10940 #
10941 # Construct a printable name of the OS
10942 #
10943 case "${host}" in
10944     *-mingw32ce*)
10945         PRINTABLE_OS_NAME="W32CE"
10946         ;;
10947     *-mingw32*)
10948         PRINTABLE_OS_NAME="MingW32"
10949         ;;
10950     *-*-cygwin*)
10951         PRINTABLE_OS_NAME="Cygwin"
10952         ;;
10953     i?86-emx-os2 | i?86-*-os2*emx )
10954         PRINTABLE_OS_NAME="OS/2"
10955         ;;
10956     i?86-*-msdosdjgpp*)
10957         PRINTABLE_OS_NAME="MSDOS/DJGPP"
10958         try_dynload=no
10959         ;;
10960     *-linux*)
10961         PRINTABLE_OS_NAME="GNU/Linux"
10962         ;;
10963     *)
10964         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
10965         ;;
10966 esac
10967
10968 cat >>confdefs.h <<_ACEOF
10969 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
10970 _ACEOF
10971
10972
10973
10974 #
10975 # Checking for iconv
10976 #
10977 if test "$require_iconv" = yes; then
10978
10979       if test "X$prefix" = "XNONE"; then
10980     acl_final_prefix="$ac_default_prefix"
10981   else
10982     acl_final_prefix="$prefix"
10983   fi
10984   if test "X$exec_prefix" = "XNONE"; then
10985     acl_final_exec_prefix='${prefix}'
10986   else
10987     acl_final_exec_prefix="$exec_prefix"
10988   fi
10989   acl_save_prefix="$prefix"
10990   prefix="$acl_final_prefix"
10991   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10992   prefix="$acl_save_prefix"
10993
10994
10995 # Check whether --with-gnu-ld was given.
10996 if test "${with_gnu_ld+set}" = set; then :
10997   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10998 else
10999   with_gnu_ld=no
11000 fi
11001
11002 # Prepare PATH_SEPARATOR.
11003 # The user is always right.
11004 if test "${PATH_SEPARATOR+set}" != set; then
11005   echo "#! /bin/sh" >conf$$.sh
11006   echo  "exit 0"   >>conf$$.sh
11007   chmod +x conf$$.sh
11008   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11009     PATH_SEPARATOR=';'
11010   else
11011     PATH_SEPARATOR=:
11012   fi
11013   rm -f conf$$.sh
11014 fi
11015 ac_prog=ld
11016 if test "$GCC" = yes; then
11017   # Check if gcc -print-prog-name=ld gives a path.
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11019 $as_echo_n "checking for ld used by GCC... " >&6; }
11020   case $host in
11021   *-*-mingw*)
11022     # gcc leaves a trailing carriage return which upsets mingw
11023     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11024   *)
11025     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11026   esac
11027   case $ac_prog in
11028     # Accept absolute paths.
11029     [\\/]* | [A-Za-z]:[\\/]*)
11030       re_direlt='/[^/][^/]*/\.\./'
11031       # Canonicalize the path of ld
11032       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11033       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11034         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11035       done
11036       test -z "$LD" && LD="$ac_prog"
11037       ;;
11038   "")
11039     # If it fails, then pretend we aren't using GCC.
11040     ac_prog=ld
11041     ;;
11042   *)
11043     # If it is relative, then search for the first ld in PATH.
11044     with_gnu_ld=unknown
11045     ;;
11046   esac
11047 elif test "$with_gnu_ld" = yes; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11049 $as_echo_n "checking for GNU ld... " >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11052 $as_echo_n "checking for non-GNU ld... " >&6; }
11053 fi
11054 if ${acl_cv_path_LD+:} false; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   if test -z "$LD"; then
11058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11059   for ac_dir in $PATH; do
11060     test -z "$ac_dir" && ac_dir=.
11061     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11062       acl_cv_path_LD="$ac_dir/$ac_prog"
11063       # Check to see if the program is GNU ld.  I'd rather use --version,
11064       # but apparently some GNU ld's only accept -v.
11065       # Break only if it was the GNU/non-GNU ld that we prefer.
11066       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11067       *GNU* | *'with BFD'*)
11068         test "$with_gnu_ld" != no && break ;;
11069       *)
11070         test "$with_gnu_ld" != yes && break ;;
11071       esac
11072     fi
11073   done
11074   IFS="$ac_save_ifs"
11075 else
11076   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11077 fi
11078 fi
11079
11080 LD="$acl_cv_path_LD"
11081 if test -n "$LD"; then
11082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11083 $as_echo "$LD" >&6; }
11084 else
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087 fi
11088 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11090 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11091 if ${acl_cv_prog_gnu_ld+:} false; then :
11092   $as_echo_n "(cached) " >&6
11093 else
11094   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11095 case `$LD -v 2>&1 </dev/null` in
11096 *GNU* | *'with BFD'*)
11097   acl_cv_prog_gnu_ld=yes ;;
11098 *)
11099   acl_cv_prog_gnu_ld=no ;;
11100 esac
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11103 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11104 with_gnu_ld=$acl_cv_prog_gnu_ld
11105
11106
11107
11108
11109                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11110 $as_echo_n "checking for shared library run path origin... " >&6; }
11111 if ${acl_cv_rpath+:} false; then :
11112   $as_echo_n "(cached) " >&6
11113 else
11114
11115     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11116     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11117     . ./conftest.sh
11118     rm -f ./conftest.sh
11119     acl_cv_rpath=done
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11123 $as_echo "$acl_cv_rpath" >&6; }
11124   wl="$acl_cv_wl"
11125   acl_libext="$acl_cv_libext"
11126   acl_shlibext="$acl_cv_shlibext"
11127   acl_libname_spec="$acl_cv_libname_spec"
11128   acl_library_names_spec="$acl_cv_library_names_spec"
11129   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11130   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11131   acl_hardcode_direct="$acl_cv_hardcode_direct"
11132   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11133     # Check whether --enable-rpath was given.
11134 if test "${enable_rpath+set}" = set; then :
11135   enableval=$enable_rpath; :
11136 else
11137   enable_rpath=yes
11138 fi
11139
11140
11141
11142                   acl_libdirstem=lib
11143   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11144   if test -n "$searchpath"; then
11145     acl_save_IFS="${IFS=        }"; IFS=":"
11146     for searchdir in $searchpath; do
11147       if test -d "$searchdir"; then
11148         case "$searchdir" in
11149           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11150           *) searchdir=`cd "$searchdir" && pwd`
11151              case "$searchdir" in
11152                */lib64 ) acl_libdirstem=lib64 ;;
11153              esac ;;
11154         esac
11155       fi
11156     done
11157     IFS="$acl_save_IFS"
11158   fi
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168     use_additional=yes
11169
11170   acl_save_prefix="$prefix"
11171   prefix="$acl_final_prefix"
11172   acl_save_exec_prefix="$exec_prefix"
11173   exec_prefix="$acl_final_exec_prefix"
11174
11175     eval additional_includedir=\"$includedir\"
11176     eval additional_libdir=\"$libdir\"
11177
11178   exec_prefix="$acl_save_exec_prefix"
11179   prefix="$acl_save_prefix"
11180
11181
11182 # Check whether --with-libiconv-prefix was given.
11183 if test "${with_libiconv_prefix+set}" = set; then :
11184   withval=$with_libiconv_prefix;
11185     if test "X$withval" = "Xno"; then
11186       use_additional=no
11187     else
11188       if test "X$withval" = "X"; then
11189
11190   acl_save_prefix="$prefix"
11191   prefix="$acl_final_prefix"
11192   acl_save_exec_prefix="$exec_prefix"
11193   exec_prefix="$acl_final_exec_prefix"
11194
11195           eval additional_includedir=\"$includedir\"
11196           eval additional_libdir=\"$libdir\"
11197
11198   exec_prefix="$acl_save_exec_prefix"
11199   prefix="$acl_save_prefix"
11200
11201       else
11202         additional_includedir="$withval/include"
11203         additional_libdir="$withval/$acl_libdirstem"
11204       fi
11205     fi
11206
11207 fi
11208
11209       LIBICONV=
11210   LTLIBICONV=
11211   INCICONV=
11212   LIBICONV_PREFIX=
11213   rpathdirs=
11214   ltrpathdirs=
11215   names_already_handled=
11216   names_next_round='iconv '
11217   while test -n "$names_next_round"; do
11218     names_this_round="$names_next_round"
11219     names_next_round=
11220     for name in $names_this_round; do
11221       already_handled=
11222       for n in $names_already_handled; do
11223         if test "$n" = "$name"; then
11224           already_handled=yes
11225           break
11226         fi
11227       done
11228       if test -z "$already_handled"; then
11229         names_already_handled="$names_already_handled $name"
11230                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11231         eval value=\"\$HAVE_LIB$uppername\"
11232         if test -n "$value"; then
11233           if test "$value" = yes; then
11234             eval value=\"\$LIB$uppername\"
11235             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11236             eval value=\"\$LTLIB$uppername\"
11237             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11238           else
11239                                     :
11240           fi
11241         else
11242                               found_dir=
11243           found_la=
11244           found_so=
11245           found_a=
11246           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11247           if test -n "$acl_shlibext"; then
11248             shrext=".$acl_shlibext"             # typically: shrext=.so
11249           else
11250             shrext=
11251           fi
11252           if test $use_additional = yes; then
11253             dir="$additional_libdir"
11254                                     if test -n "$acl_shlibext"; then
11255               if test -f "$dir/$libname$shrext"; then
11256                 found_dir="$dir"
11257                 found_so="$dir/$libname$shrext"
11258               else
11259                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11260                   ver=`(cd "$dir" && \
11261                         for f in "$libname$shrext".*; do echo "$f"; done \
11262                         | sed -e "s,^$libname$shrext\\\\.,," \
11263                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11264                         | sed 1q ) 2>/dev/null`
11265                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11266                     found_dir="$dir"
11267                     found_so="$dir/$libname$shrext.$ver"
11268                   fi
11269                 else
11270                   eval library_names=\"$acl_library_names_spec\"
11271                   for f in $library_names; do
11272                     if test -f "$dir/$f"; then
11273                       found_dir="$dir"
11274                       found_so="$dir/$f"
11275                       break
11276                     fi
11277                   done
11278                 fi
11279               fi
11280             fi
11281                         if test "X$found_dir" = "X"; then
11282               if test -f "$dir/$libname.$acl_libext"; then
11283                 found_dir="$dir"
11284                 found_a="$dir/$libname.$acl_libext"
11285               fi
11286             fi
11287             if test "X$found_dir" != "X"; then
11288               if test -f "$dir/$libname.la"; then
11289                 found_la="$dir/$libname.la"
11290               fi
11291             fi
11292           fi
11293           if test "X$found_dir" = "X"; then
11294             for x in $LDFLAGS $LTLIBICONV; do
11295
11296   acl_save_prefix="$prefix"
11297   prefix="$acl_final_prefix"
11298   acl_save_exec_prefix="$exec_prefix"
11299   exec_prefix="$acl_final_exec_prefix"
11300   eval x=\"$x\"
11301   exec_prefix="$acl_save_exec_prefix"
11302   prefix="$acl_save_prefix"
11303
11304               case "$x" in
11305                 -L*)
11306                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11307                                     if test -n "$acl_shlibext"; then
11308                     if test -f "$dir/$libname$shrext"; then
11309                       found_dir="$dir"
11310                       found_so="$dir/$libname$shrext"
11311                     else
11312                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11313                         ver=`(cd "$dir" && \
11314                               for f in "$libname$shrext".*; do echo "$f"; done \
11315                               | sed -e "s,^$libname$shrext\\\\.,," \
11316                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11317                               | sed 1q ) 2>/dev/null`
11318                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11319                           found_dir="$dir"
11320                           found_so="$dir/$libname$shrext.$ver"
11321                         fi
11322                       else
11323                         eval library_names=\"$acl_library_names_spec\"
11324                         for f in $library_names; do
11325                           if test -f "$dir/$f"; then
11326                             found_dir="$dir"
11327                             found_so="$dir/$f"
11328                             break
11329                           fi
11330                         done
11331                       fi
11332                     fi
11333                   fi
11334                                     if test "X$found_dir" = "X"; then
11335                     if test -f "$dir/$libname.$acl_libext"; then
11336                       found_dir="$dir"
11337                       found_a="$dir/$libname.$acl_libext"
11338                     fi
11339                   fi
11340                   if test "X$found_dir" != "X"; then
11341                     if test -f "$dir/$libname.la"; then
11342                       found_la="$dir/$libname.la"
11343                     fi
11344                   fi
11345                   ;;
11346               esac
11347               if test "X$found_dir" != "X"; then
11348                 break
11349               fi
11350             done
11351           fi
11352           if test "X$found_dir" != "X"; then
11353                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11354             if test "X$found_so" != "X"; then
11355                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11356                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11357               else
11358                                                                                 haveit=
11359                 for x in $ltrpathdirs; do
11360                   if test "X$x" = "X$found_dir"; then
11361                     haveit=yes
11362                     break
11363                   fi
11364                 done
11365                 if test -z "$haveit"; then
11366                   ltrpathdirs="$ltrpathdirs $found_dir"
11367                 fi
11368                                 if test "$acl_hardcode_direct" = yes; then
11369                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11370                 else
11371                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11372                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11373                                                             haveit=
11374                     for x in $rpathdirs; do
11375                       if test "X$x" = "X$found_dir"; then
11376                         haveit=yes
11377                         break
11378                       fi
11379                     done
11380                     if test -z "$haveit"; then
11381                       rpathdirs="$rpathdirs $found_dir"
11382                     fi
11383                   else
11384                                                                                 haveit=
11385                     for x in $LDFLAGS $LIBICONV; do
11386
11387   acl_save_prefix="$prefix"
11388   prefix="$acl_final_prefix"
11389   acl_save_exec_prefix="$exec_prefix"
11390   exec_prefix="$acl_final_exec_prefix"
11391   eval x=\"$x\"
11392   exec_prefix="$acl_save_exec_prefix"
11393   prefix="$acl_save_prefix"
11394
11395                       if test "X$x" = "X-L$found_dir"; then
11396                         haveit=yes
11397                         break
11398                       fi
11399                     done
11400                     if test -z "$haveit"; then
11401                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11402                     fi
11403                     if test "$acl_hardcode_minus_L" != no; then
11404                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11405                     else
11406                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11407                     fi
11408                   fi
11409                 fi
11410               fi
11411             else
11412               if test "X$found_a" != "X"; then
11413                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11414               else
11415                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11416               fi
11417             fi
11418                         additional_includedir=
11419             case "$found_dir" in
11420               */$acl_libdirstem | */$acl_libdirstem/)
11421                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11422                 LIBICONV_PREFIX="$basedir"
11423                 additional_includedir="$basedir/include"
11424                 ;;
11425             esac
11426             if test "X$additional_includedir" != "X"; then
11427                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11428                 haveit=
11429                 if test "X$additional_includedir" = "X/usr/local/include"; then
11430                   if test -n "$GCC"; then
11431                     case $host_os in
11432                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11433                     esac
11434                   fi
11435                 fi
11436                 if test -z "$haveit"; then
11437                   for x in $CPPFLAGS $INCICONV; do
11438
11439   acl_save_prefix="$prefix"
11440   prefix="$acl_final_prefix"
11441   acl_save_exec_prefix="$exec_prefix"
11442   exec_prefix="$acl_final_exec_prefix"
11443   eval x=\"$x\"
11444   exec_prefix="$acl_save_exec_prefix"
11445   prefix="$acl_save_prefix"
11446
11447                     if test "X$x" = "X-I$additional_includedir"; then
11448                       haveit=yes
11449                       break
11450                     fi
11451                   done
11452                   if test -z "$haveit"; then
11453                     if test -d "$additional_includedir"; then
11454                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11455                     fi
11456                   fi
11457                 fi
11458               fi
11459             fi
11460                         if test -n "$found_la"; then
11461                                                         save_libdir="$libdir"
11462               case "$found_la" in
11463                 */* | *\\*) . "$found_la" ;;
11464                 *) . "./$found_la" ;;
11465               esac
11466               libdir="$save_libdir"
11467                             for dep in $dependency_libs; do
11468                 case "$dep" in
11469                   -L*)
11470                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11471                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11472                       haveit=
11473                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11474                         if test -n "$GCC"; then
11475                           case $host_os in
11476                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11477                           esac
11478                         fi
11479                       fi
11480                       if test -z "$haveit"; then
11481                         haveit=
11482                         for x in $LDFLAGS $LIBICONV; do
11483
11484   acl_save_prefix="$prefix"
11485   prefix="$acl_final_prefix"
11486   acl_save_exec_prefix="$exec_prefix"
11487   exec_prefix="$acl_final_exec_prefix"
11488   eval x=\"$x\"
11489   exec_prefix="$acl_save_exec_prefix"
11490   prefix="$acl_save_prefix"
11491
11492                           if test "X$x" = "X-L$additional_libdir"; then
11493                             haveit=yes
11494                             break
11495                           fi
11496                         done
11497                         if test -z "$haveit"; then
11498                           if test -d "$additional_libdir"; then
11499                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11500                           fi
11501                         fi
11502                         haveit=
11503                         for x in $LDFLAGS $LTLIBICONV; do
11504
11505   acl_save_prefix="$prefix"
11506   prefix="$acl_final_prefix"
11507   acl_save_exec_prefix="$exec_prefix"
11508   exec_prefix="$acl_final_exec_prefix"
11509   eval x=\"$x\"
11510   exec_prefix="$acl_save_exec_prefix"
11511   prefix="$acl_save_prefix"
11512
11513                           if test "X$x" = "X-L$additional_libdir"; then
11514                             haveit=yes
11515                             break
11516                           fi
11517                         done
11518                         if test -z "$haveit"; then
11519                           if test -d "$additional_libdir"; then
11520                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11521                           fi
11522                         fi
11523                       fi
11524                     fi
11525                     ;;
11526                   -R*)
11527                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11528                     if test "$enable_rpath" != no; then
11529                                                                   haveit=
11530                       for x in $rpathdirs; do
11531                         if test "X$x" = "X$dir"; then
11532                           haveit=yes
11533                           break
11534                         fi
11535                       done
11536                       if test -z "$haveit"; then
11537                         rpathdirs="$rpathdirs $dir"
11538                       fi
11539                                                                   haveit=
11540                       for x in $ltrpathdirs; do
11541                         if test "X$x" = "X$dir"; then
11542                           haveit=yes
11543                           break
11544                         fi
11545                       done
11546                       if test -z "$haveit"; then
11547                         ltrpathdirs="$ltrpathdirs $dir"
11548                       fi
11549                     fi
11550                     ;;
11551                   -l*)
11552                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11553                     ;;
11554                   *.la)
11555                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11556                     ;;
11557                   *)
11558                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11559                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11560                     ;;
11561                 esac
11562               done
11563             fi
11564           else
11565                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11566             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11567           fi
11568         fi
11569       fi
11570     done
11571   done
11572   if test "X$rpathdirs" != "X"; then
11573     if test -n "$acl_hardcode_libdir_separator"; then
11574                         alldirs=
11575       for found_dir in $rpathdirs; do
11576         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11577       done
11578             acl_save_libdir="$libdir"
11579       libdir="$alldirs"
11580       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11581       libdir="$acl_save_libdir"
11582       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11583     else
11584             for found_dir in $rpathdirs; do
11585         acl_save_libdir="$libdir"
11586         libdir="$found_dir"
11587         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11588         libdir="$acl_save_libdir"
11589         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11590       done
11591     fi
11592   fi
11593   if test "X$ltrpathdirs" != "X"; then
11594             for found_dir in $ltrpathdirs; do
11595       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11596     done
11597   fi
11598
11599
11600
11601
11602
11603
11604
11605           am_save_CPPFLAGS="$CPPFLAGS"
11606
11607   for element in $INCICONV; do
11608     haveit=
11609     for x in $CPPFLAGS; do
11610
11611   acl_save_prefix="$prefix"
11612   prefix="$acl_final_prefix"
11613   acl_save_exec_prefix="$exec_prefix"
11614   exec_prefix="$acl_final_exec_prefix"
11615   eval x=\"$x\"
11616   exec_prefix="$acl_save_exec_prefix"
11617   prefix="$acl_save_prefix"
11618
11619       if test "X$x" = "X$element"; then
11620         haveit=yes
11621         break
11622       fi
11623     done
11624     if test -z "$haveit"; then
11625       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11626     fi
11627   done
11628
11629
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11631 $as_echo_n "checking for iconv... " >&6; }
11632 if ${am_cv_func_iconv+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635
11636     am_cv_func_iconv="no, consider installing GNU libiconv"
11637     am_cv_lib_iconv=no
11638     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640
11641 #include <stdlib.h>
11642 #include <iconv.h>
11643
11644 int
11645 main ()
11646 {
11647 iconv_t cd = iconv_open("","");
11648            iconv(cd,NULL,NULL,NULL,NULL);
11649            iconv_close(cd);
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655   am_cv_func_iconv=yes
11656 fi
11657 rm -f core conftest.err conftest.$ac_objext \
11658     conftest$ac_exeext conftest.$ac_ext
11659     if test "$am_cv_func_iconv" != yes; then
11660       am_save_LIBS="$LIBS"
11661       LIBS="$LIBS $LIBICONV"
11662       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h.  */
11664
11665 #include <stdlib.h>
11666 #include <iconv.h>
11667
11668 int
11669 main ()
11670 {
11671 iconv_t cd = iconv_open("","");
11672              iconv(cd,NULL,NULL,NULL,NULL);
11673              iconv_close(cd);
11674   ;
11675   return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679   am_cv_lib_iconv=yes
11680         am_cv_func_iconv=yes
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext \
11683     conftest$ac_exeext conftest.$ac_ext
11684       LIBS="$am_save_LIBS"
11685     fi
11686
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11689 $as_echo "$am_cv_func_iconv" >&6; }
11690   if test "$am_cv_func_iconv" = yes; then
11691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11692 $as_echo_n "checking for working iconv... " >&6; }
11693 if ${am_cv_func_iconv_works+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696
11697                   am_save_LIBS="$LIBS"
11698       if test $am_cv_lib_iconv = yes; then
11699         LIBS="$LIBS $LIBICONV"
11700       fi
11701       am_cv_func_iconv_works=no
11702       for ac_iconv_const in '' 'const'; do
11703         if test "$cross_compiling" = yes; then :
11704   case "$host_os" in
11705              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11706              *)            am_cv_func_iconv_works="guessing yes" ;;
11707            esac
11708 else
11709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h.  */
11711
11712 #include <iconv.h>
11713 #include <string.h>
11714
11715 #ifndef ICONV_CONST
11716 # define ICONV_CONST $ac_iconv_const
11717 #endif
11718
11719 int
11720 main ()
11721 {
11722 int result = 0;
11723   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11724      returns.  */
11725   {
11726     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11727     if (cd_utf8_to_88591 != (iconv_t)(-1))
11728       {
11729         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11730         char buf[10];
11731         ICONV_CONST char *inptr = input;
11732         size_t inbytesleft = strlen (input);
11733         char *outptr = buf;
11734         size_t outbytesleft = sizeof (buf);
11735         size_t res = iconv (cd_utf8_to_88591,
11736                             &inptr, &inbytesleft,
11737                             &outptr, &outbytesleft);
11738         if (res == 0)
11739           result |= 1;
11740         iconv_close (cd_utf8_to_88591);
11741       }
11742   }
11743   /* Test against Solaris 10 bug: Failures are not distinguishable from
11744      successful returns.  */
11745   {
11746     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11747     if (cd_ascii_to_88591 != (iconv_t)(-1))
11748       {
11749         static ICONV_CONST char input[] = "\263";
11750         char buf[10];
11751         ICONV_CONST char *inptr = input;
11752         size_t inbytesleft = strlen (input);
11753         char *outptr = buf;
11754         size_t outbytesleft = sizeof (buf);
11755         size_t res = iconv (cd_ascii_to_88591,
11756                             &inptr, &inbytesleft,
11757                             &outptr, &outbytesleft);
11758         if (res == 0)
11759           result |= 2;
11760         iconv_close (cd_ascii_to_88591);
11761       }
11762   }
11763   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11764   {
11765     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11766     if (cd_88591_to_utf8 != (iconv_t)(-1))
11767       {
11768         static ICONV_CONST char input[] = "\304";
11769         static char buf[2] = { (char)0xDE, (char)0xAD };
11770         ICONV_CONST char *inptr = input;
11771         size_t inbytesleft = 1;
11772         char *outptr = buf;
11773         size_t outbytesleft = 1;
11774         size_t res = iconv (cd_88591_to_utf8,
11775                             &inptr, &inbytesleft,
11776                             &outptr, &outbytesleft);
11777         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11778           result |= 4;
11779         iconv_close (cd_88591_to_utf8);
11780       }
11781   }
11782 #if 0 /* This bug could be worked around by the caller.  */
11783   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11784   {
11785     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11786     if (cd_88591_to_utf8 != (iconv_t)(-1))
11787       {
11788         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11789         char buf[50];
11790         ICONV_CONST char *inptr = input;
11791         size_t inbytesleft = strlen (input);
11792         char *outptr = buf;
11793         size_t outbytesleft = sizeof (buf);
11794         size_t res = iconv (cd_88591_to_utf8,
11795                             &inptr, &inbytesleft,
11796                             &outptr, &outbytesleft);
11797         if ((int)res > 0)
11798           result |= 8;
11799         iconv_close (cd_88591_to_utf8);
11800       }
11801   }
11802 #endif
11803   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11804      provided.  */
11805   {
11806     /* Try standardized names.  */
11807     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11808     /* Try IRIX, OSF/1 names.  */
11809     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11810     /* Try AIX names.  */
11811     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11812     /* Try HP-UX names.  */
11813     iconv_t cd4 = iconv_open ("utf8", "eucJP");
11814     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11815         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11816       result |= 16;
11817     if (cd1 != (iconv_t)(-1))
11818       iconv_close (cd1);
11819     if (cd2 != (iconv_t)(-1))
11820       iconv_close (cd2);
11821     if (cd3 != (iconv_t)(-1))
11822       iconv_close (cd3);
11823     if (cd4 != (iconv_t)(-1))
11824       iconv_close (cd4);
11825   }
11826   return result;
11827
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 if ac_fn_c_try_run "$LINENO"; then :
11833   am_cv_func_iconv_works=yes
11834 fi
11835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11836   conftest.$ac_objext conftest.beam conftest.$ac_ext
11837 fi
11838
11839         test "$am_cv_func_iconv_works" = no || break
11840       done
11841       LIBS="$am_save_LIBS"
11842
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11845 $as_echo "$am_cv_func_iconv_works" >&6; }
11846     case "$am_cv_func_iconv_works" in
11847       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11848       *)   am_func_iconv=yes ;;
11849     esac
11850   else
11851     am_func_iconv=no am_cv_lib_iconv=no
11852   fi
11853   if test "$am_func_iconv" = yes; then
11854
11855 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11856
11857   fi
11858   if test "$am_cv_lib_iconv" = yes; then
11859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11860 $as_echo_n "checking how to link with libiconv... " >&6; }
11861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11862 $as_echo "$LIBICONV" >&6; }
11863   else
11864             CPPFLAGS="$am_save_CPPFLAGS"
11865     LIBICONV=
11866     LTLIBICONV=
11867   fi
11868
11869
11870
11871   if test "$am_cv_func_iconv" = yes; then
11872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11873 $as_echo_n "checking for iconv declaration... " >&6; }
11874     if ${am_cv_proto_iconv+:} false; then :
11875   $as_echo_n "(cached) " >&6
11876 else
11877
11878       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h.  */
11880
11881 #include <stdlib.h>
11882 #include <iconv.h>
11883 extern
11884 #ifdef __cplusplus
11885 "C"
11886 #endif
11887 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11888 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11889 #else
11890 size_t iconv();
11891 #endif
11892
11893 int
11894 main ()
11895 {
11896
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_compile "$LINENO"; then :
11902   am_cv_proto_iconv_arg1=""
11903 else
11904   am_cv_proto_iconv_arg1="const"
11905 fi
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907       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);"
11908 fi
11909
11910     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11911     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
11912          $am_cv_proto_iconv" >&5
11913 $as_echo "
11914          $am_cv_proto_iconv" >&6; }
11915   else
11916             am_cv_proto_iconv_arg1=""
11917   fi
11918
11919 cat >>confdefs.h <<_ACEOF
11920 #define ICONV_CONST $am_cv_proto_iconv_arg1
11921 _ACEOF
11922
11923
11924
11925 else
11926   LIBICONV=
11927   LTLIBICONV=
11928
11929
11930 fi
11931
11932
11933 #
11934 # Check for gettext
11935 #
11936 # This is "GNU gnupg" - The project-id script from gettext
11937 #                       needs this string
11938 #
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
11940 $as_echo "$as_me: checking for gettext" >&6;}
11941
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11943 $as_echo_n "checking whether NLS is requested... " >&6; }
11944     # Check whether --enable-nls was given.
11945 if test "${enable_nls+set}" = set; then :
11946   enableval=$enable_nls; USE_NLS=$enableval
11947 else
11948   USE_NLS=yes
11949 fi
11950
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11952 $as_echo "$USE_NLS" >&6; }
11953
11954
11955
11956
11957       GETTEXT_MACRO_VERSION=0.17
11958
11959
11960
11961
11962 # Prepare PATH_SEPARATOR.
11963 # The user is always right.
11964 if test "${PATH_SEPARATOR+set}" != set; then
11965   echo "#! /bin/sh" >conf$$.sh
11966   echo  "exit 0"   >>conf$$.sh
11967   chmod +x conf$$.sh
11968   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11969     PATH_SEPARATOR=';'
11970   else
11971     PATH_SEPARATOR=:
11972   fi
11973   rm -f conf$$.sh
11974 fi
11975
11976 # Find out how to test for executable files. Don't use a zero-byte file,
11977 # as systems may use methods other than mode bits to determine executability.
11978 cat >conf$$.file <<_ASEOF
11979 #! /bin/sh
11980 exit 0
11981 _ASEOF
11982 chmod +x conf$$.file
11983 if test -x conf$$.file >/dev/null 2>&1; then
11984   ac_executable_p="test -x"
11985 else
11986   ac_executable_p="test -f"
11987 fi
11988 rm -f conf$$.file
11989
11990 # Extract the first word of "msgfmt", so it can be a program name with args.
11991 set dummy msgfmt; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_MSGFMT+:} false; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   case "$MSGFMT" in
11998   [\\/]* | ?:[\\/]*)
11999     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12000     ;;
12001   *)
12002     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12003     for ac_dir in $PATH; do
12004       IFS="$ac_save_IFS"
12005       test -z "$ac_dir" && ac_dir=.
12006       for ac_exec_ext in '' $ac_executable_extensions; do
12007         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12008           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12009           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12010      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12011             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12012             break 2
12013           fi
12014         fi
12015       done
12016     done
12017     IFS="$ac_save_IFS"
12018   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12019     ;;
12020 esac
12021 fi
12022 MSGFMT="$ac_cv_path_MSGFMT"
12023 if test "$MSGFMT" != ":"; then
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12025 $as_echo "$MSGFMT" >&6; }
12026 else
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 fi
12030
12031   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12032 set dummy gmsgfmt; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_path_GMSGFMT+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   case $GMSGFMT in
12039   [\\/]* | ?:[\\/]*)
12040   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12041   ;;
12042   *)
12043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046   IFS=$as_save_IFS
12047   test -z "$as_dir" && as_dir=.
12048     for ac_exec_ext in '' $ac_executable_extensions; do
12049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052     break 2
12053   fi
12054 done
12055   done
12056 IFS=$as_save_IFS
12057
12058   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12059   ;;
12060 esac
12061 fi
12062 GMSGFMT=$ac_cv_path_GMSGFMT
12063 if test -n "$GMSGFMT"; then
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12065 $as_echo "$GMSGFMT" >&6; }
12066 else
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069 fi
12070
12071
12072
12073     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12074     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12075     *) MSGFMT_015=$MSGFMT ;;
12076   esac
12077
12078   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12079     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12080     *) GMSGFMT_015=$GMSGFMT ;;
12081   esac
12082
12083
12084
12085 # Prepare PATH_SEPARATOR.
12086 # The user is always right.
12087 if test "${PATH_SEPARATOR+set}" != set; then
12088   echo "#! /bin/sh" >conf$$.sh
12089   echo  "exit 0"   >>conf$$.sh
12090   chmod +x conf$$.sh
12091   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12092     PATH_SEPARATOR=';'
12093   else
12094     PATH_SEPARATOR=:
12095   fi
12096   rm -f conf$$.sh
12097 fi
12098
12099 # Find out how to test for executable files. Don't use a zero-byte file,
12100 # as systems may use methods other than mode bits to determine executability.
12101 cat >conf$$.file <<_ASEOF
12102 #! /bin/sh
12103 exit 0
12104 _ASEOF
12105 chmod +x conf$$.file
12106 if test -x conf$$.file >/dev/null 2>&1; then
12107   ac_executable_p="test -x"
12108 else
12109   ac_executable_p="test -f"
12110 fi
12111 rm -f conf$$.file
12112
12113 # Extract the first word of "xgettext", so it can be a program name with args.
12114 set dummy xgettext; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_path_XGETTEXT+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   case "$XGETTEXT" in
12121   [\\/]* | ?:[\\/]*)
12122     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12123     ;;
12124   *)
12125     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12126     for ac_dir in $PATH; do
12127       IFS="$ac_save_IFS"
12128       test -z "$ac_dir" && ac_dir=.
12129       for ac_exec_ext in '' $ac_executable_extensions; do
12130         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12131           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12132           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12133      (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
12134             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12135             break 2
12136           fi
12137         fi
12138       done
12139     done
12140     IFS="$ac_save_IFS"
12141   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12142     ;;
12143 esac
12144 fi
12145 XGETTEXT="$ac_cv_path_XGETTEXT"
12146 if test "$XGETTEXT" != ":"; then
12147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12148 $as_echo "$XGETTEXT" >&6; }
12149 else
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12152 fi
12153
12154     rm -f messages.po
12155
12156     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12157     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12158     *) XGETTEXT_015=$XGETTEXT ;;
12159   esac
12160
12161
12162
12163 # Prepare PATH_SEPARATOR.
12164 # The user is always right.
12165 if test "${PATH_SEPARATOR+set}" != set; then
12166   echo "#! /bin/sh" >conf$$.sh
12167   echo  "exit 0"   >>conf$$.sh
12168   chmod +x conf$$.sh
12169   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12170     PATH_SEPARATOR=';'
12171   else
12172     PATH_SEPARATOR=:
12173   fi
12174   rm -f conf$$.sh
12175 fi
12176
12177 # Find out how to test for executable files. Don't use a zero-byte file,
12178 # as systems may use methods other than mode bits to determine executability.
12179 cat >conf$$.file <<_ASEOF
12180 #! /bin/sh
12181 exit 0
12182 _ASEOF
12183 chmod +x conf$$.file
12184 if test -x conf$$.file >/dev/null 2>&1; then
12185   ac_executable_p="test -x"
12186 else
12187   ac_executable_p="test -f"
12188 fi
12189 rm -f conf$$.file
12190
12191 # Extract the first word of "msgmerge", so it can be a program name with args.
12192 set dummy msgmerge; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_path_MSGMERGE+:} false; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   case "$MSGMERGE" in
12199   [\\/]* | ?:[\\/]*)
12200     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12201     ;;
12202   *)
12203     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12204     for ac_dir in $PATH; do
12205       IFS="$ac_save_IFS"
12206       test -z "$ac_dir" && ac_dir=.
12207       for ac_exec_ext in '' $ac_executable_extensions; do
12208         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12209           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12210           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12211             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12212             break 2
12213           fi
12214         fi
12215       done
12216     done
12217     IFS="$ac_save_IFS"
12218   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12219     ;;
12220 esac
12221 fi
12222 MSGMERGE="$ac_cv_path_MSGMERGE"
12223 if test "$MSGMERGE" != ":"; then
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12225 $as_echo "$MSGMERGE" >&6; }
12226 else
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230
12231
12232         test -n "$localedir" || localedir='${datadir}/locale'
12233
12234
12235     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12236
12237
12238   ac_config_commands="$ac_config_commands po-directories"
12239
12240
12241
12242 if test "$try_gettext" = yes; then
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12267 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12268 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   gt_save_LIBS="$LIBS"
12272      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12273      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h.  */
12275 #include <CoreFoundation/CFPreferences.h>
12276 int
12277 main ()
12278 {
12279 CFPreferencesCopyAppValue(NULL, NULL)
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"; then :
12285   gt_cv_func_CFPreferencesCopyAppValue=yes
12286 else
12287   gt_cv_func_CFPreferencesCopyAppValue=no
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext \
12290     conftest$ac_exeext conftest.$ac_ext
12291      LIBS="$gt_save_LIBS"
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12294 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12295   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12296
12297 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12298
12299   fi
12300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12301 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12302 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   gt_save_LIBS="$LIBS"
12306      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12307      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h.  */
12309 #include <CoreFoundation/CFLocale.h>
12310 int
12311 main ()
12312 {
12313 CFLocaleCopyCurrent();
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"; then :
12319   gt_cv_func_CFLocaleCopyCurrent=yes
12320 else
12321   gt_cv_func_CFLocaleCopyCurrent=no
12322 fi
12323 rm -f core conftest.err conftest.$ac_objext \
12324     conftest$ac_exeext conftest.$ac_ext
12325      LIBS="$gt_save_LIBS"
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12328 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12329   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12330
12331 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12332
12333   fi
12334   INTL_MACOSX_LIBS=
12335   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12336     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12337   fi
12338
12339
12340
12341
12342
12343
12344   LIBINTL=
12345   LTLIBINTL=
12346   POSUB=
12347
12348     case " $gt_needs " in
12349     *" need-formatstring-macros "*) gt_api_version=3 ;;
12350     *" need-ngettext "*) gt_api_version=2 ;;
12351     *) gt_api_version=1 ;;
12352   esac
12353   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12354   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12355
12356     if test "$USE_NLS" = "yes"; then
12357     gt_use_preinstalled_gnugettext=no
12358
12359
12360         if test $gt_api_version -ge 3; then
12361           gt_revision_test_code='
12362 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12363 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12364 #endif
12365 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12366 '
12367         else
12368           gt_revision_test_code=
12369         fi
12370         if test $gt_api_version -ge 2; then
12371           gt_expression_test_code=' + * ngettext ("", "", 0)'
12372         else
12373           gt_expression_test_code=
12374         fi
12375
12376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12377 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12378 if eval \${$gt_func_gnugettext_libc+:} false; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h.  */
12383 #include <libintl.h>
12384 $gt_revision_test_code
12385 extern int _nl_msg_cat_cntr;
12386 extern int *_nl_domain_bindings;
12387 int
12388 main ()
12389 {
12390 bindtextdomain ("", "");
12391 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12397   eval "$gt_func_gnugettext_libc=yes"
12398 else
12399   eval "$gt_func_gnugettext_libc=no"
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext \
12402     conftest$ac_exeext conftest.$ac_ext
12403 fi
12404 eval ac_res=\$$gt_func_gnugettext_libc
12405                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12406 $as_echo "$ac_res" >&6; }
12407
12408         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12409
12410
12411
12412
12413
12414           am_save_CPPFLAGS="$CPPFLAGS"
12415
12416   for element in $INCICONV; do
12417     haveit=
12418     for x in $CPPFLAGS; do
12419
12420   acl_save_prefix="$prefix"
12421   prefix="$acl_final_prefix"
12422   acl_save_exec_prefix="$exec_prefix"
12423   exec_prefix="$acl_final_exec_prefix"
12424   eval x=\"$x\"
12425   exec_prefix="$acl_save_exec_prefix"
12426   prefix="$acl_save_prefix"
12427
12428       if test "X$x" = "X$element"; then
12429         haveit=yes
12430         break
12431       fi
12432     done
12433     if test -z "$haveit"; then
12434       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12435     fi
12436   done
12437
12438
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12440 $as_echo_n "checking for iconv... " >&6; }
12441 if ${am_cv_func_iconv+:} false; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444
12445     am_cv_func_iconv="no, consider installing GNU libiconv"
12446     am_cv_lib_iconv=no
12447     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h.  */
12449
12450 #include <stdlib.h>
12451 #include <iconv.h>
12452
12453 int
12454 main ()
12455 {
12456 iconv_t cd = iconv_open("","");
12457            iconv(cd,NULL,NULL,NULL,NULL);
12458            iconv_close(cd);
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464   am_cv_func_iconv=yes
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext \
12467     conftest$ac_exeext conftest.$ac_ext
12468     if test "$am_cv_func_iconv" != yes; then
12469       am_save_LIBS="$LIBS"
12470       LIBS="$LIBS $LIBICONV"
12471       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473
12474 #include <stdlib.h>
12475 #include <iconv.h>
12476
12477 int
12478 main ()
12479 {
12480 iconv_t cd = iconv_open("","");
12481              iconv(cd,NULL,NULL,NULL,NULL);
12482              iconv_close(cd);
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488   am_cv_lib_iconv=yes
12489         am_cv_func_iconv=yes
12490 fi
12491 rm -f core conftest.err conftest.$ac_objext \
12492     conftest$ac_exeext conftest.$ac_ext
12493       LIBS="$am_save_LIBS"
12494     fi
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12498 $as_echo "$am_cv_func_iconv" >&6; }
12499   if test "$am_cv_func_iconv" = yes; then
12500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12501 $as_echo_n "checking for working iconv... " >&6; }
12502 if ${am_cv_func_iconv_works+:} false; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505
12506                   am_save_LIBS="$LIBS"
12507       if test $am_cv_lib_iconv = yes; then
12508         LIBS="$LIBS $LIBICONV"
12509       fi
12510       am_cv_func_iconv_works=no
12511       for ac_iconv_const in '' 'const'; do
12512         if test "$cross_compiling" = yes; then :
12513   case "$host_os" in
12514              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12515              *)            am_cv_func_iconv_works="guessing yes" ;;
12516            esac
12517 else
12518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h.  */
12520
12521 #include <iconv.h>
12522 #include <string.h>
12523
12524 #ifndef ICONV_CONST
12525 # define ICONV_CONST $ac_iconv_const
12526 #endif
12527
12528 int
12529 main ()
12530 {
12531 int result = 0;
12532   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12533      returns.  */
12534   {
12535     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12536     if (cd_utf8_to_88591 != (iconv_t)(-1))
12537       {
12538         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12539         char buf[10];
12540         ICONV_CONST char *inptr = input;
12541         size_t inbytesleft = strlen (input);
12542         char *outptr = buf;
12543         size_t outbytesleft = sizeof (buf);
12544         size_t res = iconv (cd_utf8_to_88591,
12545                             &inptr, &inbytesleft,
12546                             &outptr, &outbytesleft);
12547         if (res == 0)
12548           result |= 1;
12549         iconv_close (cd_utf8_to_88591);
12550       }
12551   }
12552   /* Test against Solaris 10 bug: Failures are not distinguishable from
12553      successful returns.  */
12554   {
12555     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12556     if (cd_ascii_to_88591 != (iconv_t)(-1))
12557       {
12558         static ICONV_CONST char input[] = "\263";
12559         char buf[10];
12560         ICONV_CONST char *inptr = input;
12561         size_t inbytesleft = strlen (input);
12562         char *outptr = buf;
12563         size_t outbytesleft = sizeof (buf);
12564         size_t res = iconv (cd_ascii_to_88591,
12565                             &inptr, &inbytesleft,
12566                             &outptr, &outbytesleft);
12567         if (res == 0)
12568           result |= 2;
12569         iconv_close (cd_ascii_to_88591);
12570       }
12571   }
12572   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12573   {
12574     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12575     if (cd_88591_to_utf8 != (iconv_t)(-1))
12576       {
12577         static ICONV_CONST char input[] = "\304";
12578         static char buf[2] = { (char)0xDE, (char)0xAD };
12579         ICONV_CONST char *inptr = input;
12580         size_t inbytesleft = 1;
12581         char *outptr = buf;
12582         size_t outbytesleft = 1;
12583         size_t res = iconv (cd_88591_to_utf8,
12584                             &inptr, &inbytesleft,
12585                             &outptr, &outbytesleft);
12586         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12587           result |= 4;
12588         iconv_close (cd_88591_to_utf8);
12589       }
12590   }
12591 #if 0 /* This bug could be worked around by the caller.  */
12592   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12593   {
12594     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12595     if (cd_88591_to_utf8 != (iconv_t)(-1))
12596       {
12597         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12598         char buf[50];
12599         ICONV_CONST char *inptr = input;
12600         size_t inbytesleft = strlen (input);
12601         char *outptr = buf;
12602         size_t outbytesleft = sizeof (buf);
12603         size_t res = iconv (cd_88591_to_utf8,
12604                             &inptr, &inbytesleft,
12605                             &outptr, &outbytesleft);
12606         if ((int)res > 0)
12607           result |= 8;
12608         iconv_close (cd_88591_to_utf8);
12609       }
12610   }
12611 #endif
12612   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12613      provided.  */
12614   {
12615     /* Try standardized names.  */
12616     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12617     /* Try IRIX, OSF/1 names.  */
12618     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12619     /* Try AIX names.  */
12620     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12621     /* Try HP-UX names.  */
12622     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12623     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12624         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12625       result |= 16;
12626     if (cd1 != (iconv_t)(-1))
12627       iconv_close (cd1);
12628     if (cd2 != (iconv_t)(-1))
12629       iconv_close (cd2);
12630     if (cd3 != (iconv_t)(-1))
12631       iconv_close (cd3);
12632     if (cd4 != (iconv_t)(-1))
12633       iconv_close (cd4);
12634   }
12635   return result;
12636
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 if ac_fn_c_try_run "$LINENO"; then :
12642   am_cv_func_iconv_works=yes
12643 fi
12644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12645   conftest.$ac_objext conftest.beam conftest.$ac_ext
12646 fi
12647
12648         test "$am_cv_func_iconv_works" = no || break
12649       done
12650       LIBS="$am_save_LIBS"
12651
12652 fi
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12654 $as_echo "$am_cv_func_iconv_works" >&6; }
12655     case "$am_cv_func_iconv_works" in
12656       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12657       *)   am_func_iconv=yes ;;
12658     esac
12659   else
12660     am_func_iconv=no am_cv_lib_iconv=no
12661   fi
12662   if test "$am_func_iconv" = yes; then
12663
12664 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12665
12666   fi
12667   if test "$am_cv_lib_iconv" = yes; then
12668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12669 $as_echo_n "checking how to link with libiconv... " >&6; }
12670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12671 $as_echo "$LIBICONV" >&6; }
12672   else
12673             CPPFLAGS="$am_save_CPPFLAGS"
12674     LIBICONV=
12675     LTLIBICONV=
12676   fi
12677
12678
12679
12680
12681
12682
12683
12684
12685     use_additional=yes
12686
12687   acl_save_prefix="$prefix"
12688   prefix="$acl_final_prefix"
12689   acl_save_exec_prefix="$exec_prefix"
12690   exec_prefix="$acl_final_exec_prefix"
12691
12692     eval additional_includedir=\"$includedir\"
12693     eval additional_libdir=\"$libdir\"
12694
12695   exec_prefix="$acl_save_exec_prefix"
12696   prefix="$acl_save_prefix"
12697
12698
12699 # Check whether --with-libintl-prefix was given.
12700 if test "${with_libintl_prefix+set}" = set; then :
12701   withval=$with_libintl_prefix;
12702     if test "X$withval" = "Xno"; then
12703       use_additional=no
12704     else
12705       if test "X$withval" = "X"; then
12706
12707   acl_save_prefix="$prefix"
12708   prefix="$acl_final_prefix"
12709   acl_save_exec_prefix="$exec_prefix"
12710   exec_prefix="$acl_final_exec_prefix"
12711
12712           eval additional_includedir=\"$includedir\"
12713           eval additional_libdir=\"$libdir\"
12714
12715   exec_prefix="$acl_save_exec_prefix"
12716   prefix="$acl_save_prefix"
12717
12718       else
12719         additional_includedir="$withval/include"
12720         additional_libdir="$withval/$acl_libdirstem"
12721       fi
12722     fi
12723
12724 fi
12725
12726       LIBINTL=
12727   LTLIBINTL=
12728   INCINTL=
12729   LIBINTL_PREFIX=
12730   rpathdirs=
12731   ltrpathdirs=
12732   names_already_handled=
12733   names_next_round='intl '
12734   while test -n "$names_next_round"; do
12735     names_this_round="$names_next_round"
12736     names_next_round=
12737     for name in $names_this_round; do
12738       already_handled=
12739       for n in $names_already_handled; do
12740         if test "$n" = "$name"; then
12741           already_handled=yes
12742           break
12743         fi
12744       done
12745       if test -z "$already_handled"; then
12746         names_already_handled="$names_already_handled $name"
12747                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12748         eval value=\"\$HAVE_LIB$uppername\"
12749         if test -n "$value"; then
12750           if test "$value" = yes; then
12751             eval value=\"\$LIB$uppername\"
12752             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12753             eval value=\"\$LTLIB$uppername\"
12754             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12755           else
12756                                     :
12757           fi
12758         else
12759                               found_dir=
12760           found_la=
12761           found_so=
12762           found_a=
12763           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12764           if test -n "$acl_shlibext"; then
12765             shrext=".$acl_shlibext"             # typically: shrext=.so
12766           else
12767             shrext=
12768           fi
12769           if test $use_additional = yes; then
12770             dir="$additional_libdir"
12771                                     if test -n "$acl_shlibext"; then
12772               if test -f "$dir/$libname$shrext"; then
12773                 found_dir="$dir"
12774                 found_so="$dir/$libname$shrext"
12775               else
12776                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12777                   ver=`(cd "$dir" && \
12778                         for f in "$libname$shrext".*; do echo "$f"; done \
12779                         | sed -e "s,^$libname$shrext\\\\.,," \
12780                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12781                         | sed 1q ) 2>/dev/null`
12782                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12783                     found_dir="$dir"
12784                     found_so="$dir/$libname$shrext.$ver"
12785                   fi
12786                 else
12787                   eval library_names=\"$acl_library_names_spec\"
12788                   for f in $library_names; do
12789                     if test -f "$dir/$f"; then
12790                       found_dir="$dir"
12791                       found_so="$dir/$f"
12792                       break
12793                     fi
12794                   done
12795                 fi
12796               fi
12797             fi
12798                         if test "X$found_dir" = "X"; then
12799               if test -f "$dir/$libname.$acl_libext"; then
12800                 found_dir="$dir"
12801                 found_a="$dir/$libname.$acl_libext"
12802               fi
12803             fi
12804             if test "X$found_dir" != "X"; then
12805               if test -f "$dir/$libname.la"; then
12806                 found_la="$dir/$libname.la"
12807               fi
12808             fi
12809           fi
12810           if test "X$found_dir" = "X"; then
12811             for x in $LDFLAGS $LTLIBINTL; do
12812
12813   acl_save_prefix="$prefix"
12814   prefix="$acl_final_prefix"
12815   acl_save_exec_prefix="$exec_prefix"
12816   exec_prefix="$acl_final_exec_prefix"
12817   eval x=\"$x\"
12818   exec_prefix="$acl_save_exec_prefix"
12819   prefix="$acl_save_prefix"
12820
12821               case "$x" in
12822                 -L*)
12823                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12824                                     if test -n "$acl_shlibext"; then
12825                     if test -f "$dir/$libname$shrext"; then
12826                       found_dir="$dir"
12827                       found_so="$dir/$libname$shrext"
12828                     else
12829                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12830                         ver=`(cd "$dir" && \
12831                               for f in "$libname$shrext".*; do echo "$f"; done \
12832                               | sed -e "s,^$libname$shrext\\\\.,," \
12833                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12834                               | sed 1q ) 2>/dev/null`
12835                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12836                           found_dir="$dir"
12837                           found_so="$dir/$libname$shrext.$ver"
12838                         fi
12839                       else
12840                         eval library_names=\"$acl_library_names_spec\"
12841                         for f in $library_names; do
12842                           if test -f "$dir/$f"; then
12843                             found_dir="$dir"
12844                             found_so="$dir/$f"
12845                             break
12846                           fi
12847                         done
12848                       fi
12849                     fi
12850                   fi
12851                                     if test "X$found_dir" = "X"; then
12852                     if test -f "$dir/$libname.$acl_libext"; then
12853                       found_dir="$dir"
12854                       found_a="$dir/$libname.$acl_libext"
12855                     fi
12856                   fi
12857                   if test "X$found_dir" != "X"; then
12858                     if test -f "$dir/$libname.la"; then
12859                       found_la="$dir/$libname.la"
12860                     fi
12861                   fi
12862                   ;;
12863               esac
12864               if test "X$found_dir" != "X"; then
12865                 break
12866               fi
12867             done
12868           fi
12869           if test "X$found_dir" != "X"; then
12870                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12871             if test "X$found_so" != "X"; then
12872                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12873                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12874               else
12875                                                                                 haveit=
12876                 for x in $ltrpathdirs; do
12877                   if test "X$x" = "X$found_dir"; then
12878                     haveit=yes
12879                     break
12880                   fi
12881                 done
12882                 if test -z "$haveit"; then
12883                   ltrpathdirs="$ltrpathdirs $found_dir"
12884                 fi
12885                                 if test "$acl_hardcode_direct" = yes; then
12886                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12887                 else
12888                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12889                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12890                                                             haveit=
12891                     for x in $rpathdirs; do
12892                       if test "X$x" = "X$found_dir"; then
12893                         haveit=yes
12894                         break
12895                       fi
12896                     done
12897                     if test -z "$haveit"; then
12898                       rpathdirs="$rpathdirs $found_dir"
12899                     fi
12900                   else
12901                                                                                 haveit=
12902                     for x in $LDFLAGS $LIBINTL; do
12903
12904   acl_save_prefix="$prefix"
12905   prefix="$acl_final_prefix"
12906   acl_save_exec_prefix="$exec_prefix"
12907   exec_prefix="$acl_final_exec_prefix"
12908   eval x=\"$x\"
12909   exec_prefix="$acl_save_exec_prefix"
12910   prefix="$acl_save_prefix"
12911
12912                       if test "X$x" = "X-L$found_dir"; then
12913                         haveit=yes
12914                         break
12915                       fi
12916                     done
12917                     if test -z "$haveit"; then
12918                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12919                     fi
12920                     if test "$acl_hardcode_minus_L" != no; then
12921                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12922                     else
12923                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12924                     fi
12925                   fi
12926                 fi
12927               fi
12928             else
12929               if test "X$found_a" != "X"; then
12930                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12931               else
12932                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12933               fi
12934             fi
12935                         additional_includedir=
12936             case "$found_dir" in
12937               */$acl_libdirstem | */$acl_libdirstem/)
12938                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12939                 LIBINTL_PREFIX="$basedir"
12940                 additional_includedir="$basedir/include"
12941                 ;;
12942             esac
12943             if test "X$additional_includedir" != "X"; then
12944                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12945                 haveit=
12946                 if test "X$additional_includedir" = "X/usr/local/include"; then
12947                   if test -n "$GCC"; then
12948                     case $host_os in
12949                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12950                     esac
12951                   fi
12952                 fi
12953                 if test -z "$haveit"; then
12954                   for x in $CPPFLAGS $INCINTL; do
12955
12956   acl_save_prefix="$prefix"
12957   prefix="$acl_final_prefix"
12958   acl_save_exec_prefix="$exec_prefix"
12959   exec_prefix="$acl_final_exec_prefix"
12960   eval x=\"$x\"
12961   exec_prefix="$acl_save_exec_prefix"
12962   prefix="$acl_save_prefix"
12963
12964                     if test "X$x" = "X-I$additional_includedir"; then
12965                       haveit=yes
12966                       break
12967                     fi
12968                   done
12969                   if test -z "$haveit"; then
12970                     if test -d "$additional_includedir"; then
12971                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12972                     fi
12973                   fi
12974                 fi
12975               fi
12976             fi
12977                         if test -n "$found_la"; then
12978                                                         save_libdir="$libdir"
12979               case "$found_la" in
12980                 */* | *\\*) . "$found_la" ;;
12981                 *) . "./$found_la" ;;
12982               esac
12983               libdir="$save_libdir"
12984                             for dep in $dependency_libs; do
12985                 case "$dep" in
12986                   -L*)
12987                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12988                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12989                       haveit=
12990                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12991                         if test -n "$GCC"; then
12992                           case $host_os in
12993                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12994                           esac
12995                         fi
12996                       fi
12997                       if test -z "$haveit"; then
12998                         haveit=
12999                         for x in $LDFLAGS $LIBINTL; do
13000
13001   acl_save_prefix="$prefix"
13002   prefix="$acl_final_prefix"
13003   acl_save_exec_prefix="$exec_prefix"
13004   exec_prefix="$acl_final_exec_prefix"
13005   eval x=\"$x\"
13006   exec_prefix="$acl_save_exec_prefix"
13007   prefix="$acl_save_prefix"
13008
13009                           if test "X$x" = "X-L$additional_libdir"; then
13010                             haveit=yes
13011                             break
13012                           fi
13013                         done
13014                         if test -z "$haveit"; then
13015                           if test -d "$additional_libdir"; then
13016                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13017                           fi
13018                         fi
13019                         haveit=
13020                         for x in $LDFLAGS $LTLIBINTL; do
13021
13022   acl_save_prefix="$prefix"
13023   prefix="$acl_final_prefix"
13024   acl_save_exec_prefix="$exec_prefix"
13025   exec_prefix="$acl_final_exec_prefix"
13026   eval x=\"$x\"
13027   exec_prefix="$acl_save_exec_prefix"
13028   prefix="$acl_save_prefix"
13029
13030                           if test "X$x" = "X-L$additional_libdir"; then
13031                             haveit=yes
13032                             break
13033                           fi
13034                         done
13035                         if test -z "$haveit"; then
13036                           if test -d "$additional_libdir"; then
13037                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13038                           fi
13039                         fi
13040                       fi
13041                     fi
13042                     ;;
13043                   -R*)
13044                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13045                     if test "$enable_rpath" != no; then
13046                                                                   haveit=
13047                       for x in $rpathdirs; do
13048                         if test "X$x" = "X$dir"; then
13049                           haveit=yes
13050                           break
13051                         fi
13052                       done
13053                       if test -z "$haveit"; then
13054                         rpathdirs="$rpathdirs $dir"
13055                       fi
13056                                                                   haveit=
13057                       for x in $ltrpathdirs; do
13058                         if test "X$x" = "X$dir"; then
13059                           haveit=yes
13060                           break
13061                         fi
13062                       done
13063                       if test -z "$haveit"; then
13064                         ltrpathdirs="$ltrpathdirs $dir"
13065                       fi
13066                     fi
13067                     ;;
13068                   -l*)
13069                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13070                     ;;
13071                   *.la)
13072                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13073                     ;;
13074                   *)
13075                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13076                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13077                     ;;
13078                 esac
13079               done
13080             fi
13081           else
13082                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13083             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13084           fi
13085         fi
13086       fi
13087     done
13088   done
13089   if test "X$rpathdirs" != "X"; then
13090     if test -n "$acl_hardcode_libdir_separator"; then
13091                         alldirs=
13092       for found_dir in $rpathdirs; do
13093         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13094       done
13095             acl_save_libdir="$libdir"
13096       libdir="$alldirs"
13097       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13098       libdir="$acl_save_libdir"
13099       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13100     else
13101             for found_dir in $rpathdirs; do
13102         acl_save_libdir="$libdir"
13103         libdir="$found_dir"
13104         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13105         libdir="$acl_save_libdir"
13106         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13107       done
13108     fi
13109   fi
13110   if test "X$ltrpathdirs" != "X"; then
13111             for found_dir in $ltrpathdirs; do
13112       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13113     done
13114   fi
13115
13116           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13117 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13118 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121   gt_save_CPPFLAGS="$CPPFLAGS"
13122             CPPFLAGS="$CPPFLAGS $INCINTL"
13123             gt_save_LIBS="$LIBS"
13124             LIBS="$LIBS $LIBINTL"
13125                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h.  */
13127 #include <libintl.h>
13128 $gt_revision_test_code
13129 extern int _nl_msg_cat_cntr;
13130 extern
13131 #ifdef __cplusplus
13132 "C"
13133 #endif
13134 const char *_nl_expand_alias (const char *);
13135 int
13136 main ()
13137 {
13138 bindtextdomain ("", "");
13139 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13140   ;
13141   return 0;
13142 }
13143 _ACEOF
13144 if ac_fn_c_try_link "$LINENO"; then :
13145   eval "$gt_func_gnugettext_libintl=yes"
13146 else
13147   eval "$gt_func_gnugettext_libintl=no"
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150     conftest$ac_exeext conftest.$ac_ext
13151                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13152               LIBS="$LIBS $LIBICONV"
13153               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h.  */
13155 #include <libintl.h>
13156 $gt_revision_test_code
13157 extern int _nl_msg_cat_cntr;
13158 extern
13159 #ifdef __cplusplus
13160 "C"
13161 #endif
13162 const char *_nl_expand_alias (const char *);
13163 int
13164 main ()
13165 {
13166 bindtextdomain ("", "");
13167 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 if ac_fn_c_try_link "$LINENO"; then :
13173   LIBINTL="$LIBINTL $LIBICONV"
13174                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13175                 eval "$gt_func_gnugettext_libintl=yes"
13176
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext \
13179     conftest$ac_exeext conftest.$ac_ext
13180             fi
13181             CPPFLAGS="$gt_save_CPPFLAGS"
13182             LIBS="$gt_save_LIBS"
13183 fi
13184 eval ac_res=\$$gt_func_gnugettext_libintl
13185                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13186 $as_echo "$ac_res" >&6; }
13187         fi
13188
13189                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13190            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13191                 && test "$PACKAGE" != gettext-runtime \
13192                 && test "$PACKAGE" != gettext-tools; }; then
13193           gt_use_preinstalled_gnugettext=yes
13194         else
13195                     LIBINTL=
13196           LTLIBINTL=
13197           INCINTL=
13198         fi
13199
13200
13201
13202     if test -n "$INTL_MACOSX_LIBS"; then
13203       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13204          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13205                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13206         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13207       fi
13208     fi
13209
13210     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13211        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13212
13213 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13214
13215     else
13216       USE_NLS=no
13217     fi
13218   fi
13219
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13221 $as_echo_n "checking whether to use NLS... " >&6; }
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13223 $as_echo "$USE_NLS" >&6; }
13224   if test "$USE_NLS" = "yes"; then
13225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13226 $as_echo_n "checking where the gettext function comes from... " >&6; }
13227     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13228       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13229         gt_source="external libintl"
13230       else
13231         gt_source="libc"
13232       fi
13233     else
13234       gt_source="included intl directory"
13235     fi
13236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13237 $as_echo "$gt_source" >&6; }
13238   fi
13239
13240   if test "$USE_NLS" = "yes"; then
13241
13242     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13243       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13245 $as_echo_n "checking how to link with libintl... " >&6; }
13246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13247 $as_echo "$LIBINTL" >&6; }
13248
13249   for element in $INCINTL; do
13250     haveit=
13251     for x in $CPPFLAGS; do
13252
13253   acl_save_prefix="$prefix"
13254   prefix="$acl_final_prefix"
13255   acl_save_exec_prefix="$exec_prefix"
13256   exec_prefix="$acl_final_exec_prefix"
13257   eval x=\"$x\"
13258   exec_prefix="$acl_save_exec_prefix"
13259   prefix="$acl_save_prefix"
13260
13261       if test "X$x" = "X$element"; then
13262         haveit=yes
13263         break
13264       fi
13265     done
13266     if test -z "$haveit"; then
13267       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13268     fi
13269   done
13270
13271       fi
13272
13273
13274 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13275
13276
13277 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13278
13279     fi
13280
13281         POSUB=po
13282   fi
13283
13284
13285
13286     INTLLIBS="$LIBINTL"
13287
13288
13289
13290
13291
13292
13293
13294   # gettext requires some extra checks.  These really should be part of
13295   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13296   # function checks to here.
13297
13298   for ac_func in strchr
13299 do :
13300   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13301 if test "x$ac_cv_func_strchr" = xyes; then :
13302   cat >>confdefs.h <<_ACEOF
13303 #define HAVE_STRCHR 1
13304 _ACEOF
13305
13306 fi
13307 done
13308
13309 else
13310   USE_NLS=no
13311   USE_INCLUDED_LIBINTL=no
13312   BUILD_INCLUDED_LIBINTL=no
13313   POSUB=po
13314
13315
13316
13317
13318 fi
13319
13320 # We use HAVE_LANGINFO_CODESET in a couple of places.
13321
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13323 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13324 if ${am_cv_langinfo_codeset+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h.  */
13329 #include <langinfo.h>
13330 int
13331 main ()
13332 {
13333 char* cs = nl_langinfo(CODESET); return !cs;
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_link "$LINENO"; then :
13339   am_cv_langinfo_codeset=yes
13340 else
13341   am_cv_langinfo_codeset=no
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext \
13344     conftest$ac_exeext conftest.$ac_ext
13345
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13348 $as_echo "$am_cv_langinfo_codeset" >&6; }
13349   if test $am_cv_langinfo_codeset = yes; then
13350
13351 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13352
13353   fi
13354
13355
13356 # Checks required for our use of locales
13357
13358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13359 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13360 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13361   $as_echo_n "(cached) " >&6
13362 else
13363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h.  */
13365 #include <locale.h>
13366 int
13367 main ()
13368 {
13369 return LC_MESSAGES
13370   ;
13371   return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"; then :
13375   gt_cv_val_LC_MESSAGES=yes
13376 else
13377   gt_cv_val_LC_MESSAGES=no
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext \
13380     conftest$ac_exeext conftest.$ac_ext
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13383 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13384   if test $gt_cv_val_LC_MESSAGES = yes; then
13385
13386 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13387
13388   fi
13389
13390
13391
13392 #
13393 # SELinux support
13394 #
13395 if test "$selinux_support" = yes ; then
13396
13397 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13398
13399 fi
13400
13401
13402 #
13403 # Checks for header files.
13404 #
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13406 $as_echo "$as_me: checking for header files" >&6;}
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13408 $as_echo_n "checking for ANSI C header files... " >&6; }
13409 if ${ac_cv_header_stdc+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h.  */
13414 #include <stdlib.h>
13415 #include <stdarg.h>
13416 #include <string.h>
13417 #include <float.h>
13418
13419 int
13420 main ()
13421 {
13422
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428   ac_cv_header_stdc=yes
13429 else
13430   ac_cv_header_stdc=no
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433
13434 if test $ac_cv_header_stdc = yes; then
13435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h.  */
13438 #include <string.h>
13439
13440 _ACEOF
13441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13442   $EGREP "memchr" >/dev/null 2>&1; then :
13443
13444 else
13445   ac_cv_header_stdc=no
13446 fi
13447 rm -f conftest*
13448
13449 fi
13450
13451 if test $ac_cv_header_stdc = yes; then
13452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h.  */
13455 #include <stdlib.h>
13456
13457 _ACEOF
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459   $EGREP "free" >/dev/null 2>&1; then :
13460
13461 else
13462   ac_cv_header_stdc=no
13463 fi
13464 rm -f conftest*
13465
13466 fi
13467
13468 if test $ac_cv_header_stdc = yes; then
13469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13470   if test "$cross_compiling" = yes; then :
13471   :
13472 else
13473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h.  */
13475 #include <ctype.h>
13476 #include <stdlib.h>
13477 #if ((' ' & 0x0FF) == 0x020)
13478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13480 #else
13481 # define ISLOWER(c) \
13482                    (('a' <= (c) && (c) <= 'i') \
13483                      || ('j' <= (c) && (c) <= 'r') \
13484                      || ('s' <= (c) && (c) <= 'z'))
13485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13486 #endif
13487
13488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13489 int
13490 main ()
13491 {
13492   int i;
13493   for (i = 0; i < 256; i++)
13494     if (XOR (islower (i), ISLOWER (i))
13495         || toupper (i) != TOUPPER (i))
13496       return 2;
13497   return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_run "$LINENO"; then :
13501
13502 else
13503   ac_cv_header_stdc=no
13504 fi
13505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13506   conftest.$ac_objext conftest.beam conftest.$ac_ext
13507 fi
13508
13509 fi
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13512 $as_echo "$ac_cv_header_stdc" >&6; }
13513 if test $ac_cv_header_stdc = yes; then
13514
13515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13516
13517 fi
13518
13519 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13520                   pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h     \
13521                   stdint.h signal.h util.h libutil.h termios.h \
13522                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13523 do :
13524   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13527   cat >>confdefs.h <<_ACEOF
13528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13529 _ACEOF
13530
13531 fi
13532
13533 done
13534
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13537 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13538 if ${ac_cv_header_time+:} false; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h.  */
13543 #include <sys/types.h>
13544 #include <sys/time.h>
13545 #include <time.h>
13546
13547 int
13548 main ()
13549 {
13550 if ((struct tm *) 0)
13551 return 0;
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 if ac_fn_c_try_compile "$LINENO"; then :
13557   ac_cv_header_time=yes
13558 else
13559   ac_cv_header_time=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13564 $as_echo "$ac_cv_header_time" >&6; }
13565 if test $ac_cv_header_time = yes; then
13566
13567 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13568
13569 fi
13570
13571
13572
13573 #
13574 # Checks for typedefs, structures, and compiler characteristics.
13575 #
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13577 $as_echo "$as_me: checking for system characteristics" >&6;}
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13579 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13580 if ${ac_cv_c_const+:} false; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h.  */
13585
13586 int
13587 main ()
13588 {
13589
13590 #ifndef __cplusplus
13591   /* Ultrix mips cc rejects this sort of thing.  */
13592   typedef int charset[2];
13593   const charset cs = { 0, 0 };
13594   /* SunOS 4.1.1 cc rejects this.  */
13595   char const *const *pcpcc;
13596   char **ppc;
13597   /* NEC SVR4.0.2 mips cc rejects this.  */
13598   struct point {int x, y;};
13599   static struct point const zero = {0,0};
13600   /* AIX XL C 1.02.0.0 rejects this.
13601      It does not let you subtract one const X* pointer from another in
13602      an arm of an if-expression whose if-part is not a constant
13603      expression */
13604   const char *g = "string";
13605   pcpcc = &g + (g ? g-g : 0);
13606   /* HPUX 7.0 cc rejects these. */
13607   ++pcpcc;
13608   ppc = (char**) pcpcc;
13609   pcpcc = (char const *const *) ppc;
13610   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13611     char tx;
13612     char *t = &tx;
13613     char const *s = 0 ? (char *) 0 : (char const *) 0;
13614
13615     *t++ = 0;
13616     if (s) return 0;
13617   }
13618   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13619     int x[] = {25, 17};
13620     const int *foo = &x[0];
13621     ++foo;
13622   }
13623   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13624     typedef const int *iptr;
13625     iptr p = 0;
13626     ++p;
13627   }
13628   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13629        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13630     struct s { int j; const int *ap[3]; } bx;
13631     struct s *b = &bx; b->j = 5;
13632   }
13633   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13634     const int foo = 10;
13635     if (!foo) return 0;
13636   }
13637   return !cs[0] && !zero.x;
13638 #endif
13639
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 if ac_fn_c_try_compile "$LINENO"; then :
13645   ac_cv_c_const=yes
13646 else
13647   ac_cv_c_const=no
13648 fi
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650 fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13652 $as_echo "$ac_cv_c_const" >&6; }
13653 if test $ac_cv_c_const = no; then
13654
13655 $as_echo "#define const /**/" >>confdefs.h
13656
13657 fi
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13660 $as_echo_n "checking for inline... " >&6; }
13661 if ${ac_cv_c_inline+:} false; then :
13662   $as_echo_n "(cached) " >&6
13663 else
13664   ac_cv_c_inline=no
13665 for ac_kw in inline __inline__ __inline; do
13666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h.  */
13668 #ifndef __cplusplus
13669 typedef int foo_t;
13670 static $ac_kw foo_t static_foo () {return 0; }
13671 $ac_kw foo_t foo () {return 0; }
13672 #endif
13673
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676   ac_cv_c_inline=$ac_kw
13677 fi
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679   test "$ac_cv_c_inline" != no && break
13680 done
13681
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13684 $as_echo "$ac_cv_c_inline" >&6; }
13685
13686 case $ac_cv_c_inline in
13687   inline | yes) ;;
13688   *)
13689     case $ac_cv_c_inline in
13690       no) ac_val=;;
13691       *) ac_val=$ac_cv_c_inline;;
13692     esac
13693     cat >>confdefs.h <<_ACEOF
13694 #ifndef __cplusplus
13695 #define inline $ac_val
13696 #endif
13697 _ACEOF
13698     ;;
13699 esac
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13702 $as_echo_n "checking for working volatile... " >&6; }
13703 if ${ac_cv_c_volatile+:} false; then :
13704   $as_echo_n "(cached) " >&6
13705 else
13706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h.  */
13708
13709 int
13710 main ()
13711 {
13712
13713 volatile int x;
13714 int * volatile y = (int *) 0;
13715 return !x && !y;
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 if ac_fn_c_try_compile "$LINENO"; then :
13721   ac_cv_c_volatile=yes
13722 else
13723   ac_cv_c_volatile=no
13724 fi
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726 fi
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13728 $as_echo "$ac_cv_c_volatile" >&6; }
13729 if test $ac_cv_c_volatile = no; then
13730
13731 $as_echo "#define volatile /**/" >>confdefs.h
13732
13733 fi
13734
13735 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13736 if test "x$ac_cv_type_size_t" = xyes; then :
13737
13738 else
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define size_t unsigned int
13742 _ACEOF
13743
13744 fi
13745
13746 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13747 if test "x$ac_cv_type_mode_t" = xyes; then :
13748
13749 else
13750
13751 cat >>confdefs.h <<_ACEOF
13752 #define mode_t int
13753 _ACEOF
13754
13755 fi
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13758 $as_echo_n "checking return type of signal handlers... " >&6; }
13759 if ${ac_cv_type_signal+:} false; then :
13760   $as_echo_n "(cached) " >&6
13761 else
13762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h.  */
13764 #include <sys/types.h>
13765 #include <signal.h>
13766
13767 int
13768 main ()
13769 {
13770 return *(signal (0, 0)) (0) == 1;
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776   ac_cv_type_signal=int
13777 else
13778   ac_cv_type_signal=void
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13783 $as_echo "$ac_cv_type_signal" >&6; }
13784
13785 cat >>confdefs.h <<_ACEOF
13786 #define RETSIGTYPE $ac_cv_type_signal
13787 _ACEOF
13788
13789
13790 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13791 /* NetBSD declares sys_siglist in unistd.h.  */
13792 #ifdef HAVE_UNISTD_H
13793 # include <unistd.h>
13794 #endif
13795
13796 "
13797 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13798   ac_have_decl=1
13799 else
13800   ac_have_decl=0
13801 fi
13802
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13805 _ACEOF
13806
13807
13808
13809
13810
13811
13812   for ac_header in $ac_header_list
13813 do :
13814   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13815 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13816 "
13817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13818   cat >>confdefs.h <<_ACEOF
13819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13820 _ACEOF
13821
13822 fi
13823
13824 done
13825
13826
13827
13828
13829
13830   if test $ac_cv_header_sys_socket_h = yes; then
13831     SYS_SOCKET_H=''
13832   else
13833                     for ac_header in winsock2.h ws2tcpip.h
13834 do :
13835   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13836 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13838   cat >>confdefs.h <<_ACEOF
13839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13840 _ACEOF
13841
13842 fi
13843
13844 done
13845
13846     SYS_SOCKET_H='sys/socket.h'
13847   fi
13848
13849
13850    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13851       #if HAVE_SYS_SOCKET_H
13852       # include <sys/socket.h>
13853       #elif HAVE_WS2TCPIP_H
13854       # include <ws2tcpip.h>
13855       #endif
13856 "
13857 if test "x$ac_cv_type_socklen_t" = xyes; then :
13858
13859 else
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13861 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13862       if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   # Systems have either "struct sockaddr *" or
13866          # "void *" as the second argument to getpeername
13867          gl_cv_socklen_t_equiv=
13868          for arg2 in "struct sockaddr" void; do
13869            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13870              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h.  */
13872 #include <sys/types.h>
13873                 #include <sys/socket.h>
13874
13875                 int getpeername (int, $arg2 *, $t *);
13876 int
13877 main ()
13878 {
13879 $t len;
13880                 getpeername (0, 0, &len);
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 if ac_fn_c_try_compile "$LINENO"; then :
13886   gl_cv_socklen_t_equiv="$t"
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889              test "$gl_cv_socklen_t_equiv" != "" && break
13890            done
13891            test "$gl_cv_socklen_t_equiv" != "" && break
13892          done
13893
13894 fi
13895
13896       if test "$gl_cv_socklen_t_equiv" = ""; then
13897         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13898       fi
13899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13900 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13901
13902 cat >>confdefs.h <<_ACEOF
13903 #define socklen_t $gl_cv_socklen_t_equiv
13904 _ACEOF
13905
13906 fi
13907
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13910 $as_echo_n "checking for library containing inet_addr... " >&6; }
13911 if ${ac_cv_search_inet_addr+:} false; then :
13912   $as_echo_n "(cached) " >&6
13913 else
13914   ac_func_search_save_LIBS=$LIBS
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h.  */
13917
13918 /* Override any GCC internal prototype to avoid an error.
13919    Use char because int might match the return type of a GCC
13920    builtin and then its argument prototype would still apply.  */
13921 #ifdef __cplusplus
13922 extern "C"
13923 #endif
13924 char inet_addr ();
13925 int
13926 main ()
13927 {
13928 return inet_addr ();
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 for ac_lib in '' nsl; do
13934   if test -z "$ac_lib"; then
13935     ac_res="none required"
13936   else
13937     ac_res=-l$ac_lib
13938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13939   fi
13940   if ac_fn_c_try_link "$LINENO"; then :
13941   ac_cv_search_inet_addr=$ac_res
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext \
13944     conftest$ac_exeext
13945   if ${ac_cv_search_inet_addr+:} false; then :
13946   break
13947 fi
13948 done
13949 if ${ac_cv_search_inet_addr+:} false; then :
13950
13951 else
13952   ac_cv_search_inet_addr=no
13953 fi
13954 rm conftest.$ac_ext
13955 LIBS=$ac_func_search_save_LIBS
13956 fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
13958 $as_echo "$ac_cv_search_inet_addr" >&6; }
13959 ac_res=$ac_cv_search_inet_addr
13960 if test "$ac_res" != no; then :
13961   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13962
13963 fi
13964
13965
13966 # Check whether --enable-endian-check was given.
13967 if test "${enable_endian_check+set}" = set; then :
13968   enableval=$enable_endian_check; endiancheck=$enableval
13969 else
13970   endiancheck=yes
13971 fi
13972
13973
13974 if test x"$endiancheck" = xyes ; then
13975
13976     tmp_assumed_endian=big
13977     tmp_assume_warn=""
13978     if test "$cross_compiling" = yes; then
13979       case "$host_cpu" in
13980          i[345678]* )
13981             tmp_assumed_endian=little
13982             ;;
13983          *)
13984             ;;
13985       esac
13986     fi
13987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
13988 $as_echo_n "checking endianness... " >&6; }
13989     if ${gnupg_cv_c_endian+:} false; then :
13990   $as_echo_n "(cached) " >&6
13991 else
13992    gnupg_cv_c_endian=unknown
13993         # See if sys/param.h defines the BYTE_ORDER macro.
13994         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h.  */
13996 #include <sys/types.h>
13997         #include <sys/param.h>
13998 int
13999 main ()
14000 {
14001
14002         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14003          bogus endian macros
14004         #endif
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010   # It does; now see whether it defined to BIG_ENDIAN or not.
14011         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013 #include <sys/types.h>
14014         #include <sys/param.h>
14015 int
14016 main ()
14017 {
14018
14019         #if BYTE_ORDER != BIG_ENDIAN
14020          not big endian
14021         #endif
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027   gnupg_cv_c_endian=big
14028 else
14029   gnupg_cv_c_endian=little
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034         if test "$gnupg_cv_c_endian" = unknown; then
14035             if test "$cross_compiling" = yes; then :
14036   gnupg_cv_c_endian=$tmp_assumed_endian
14037               tmp_assumed_warn=" (assumed)"
14038
14039 else
14040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h.  */
14042 main () {
14043               /* Are we little or big endian?  From Harbison&Steele.  */
14044               union
14045               {
14046                 long l;
14047                 char c[sizeof (long)];
14048               } u;
14049               u.l = 1;
14050               exit (u.c[sizeof (long) - 1] == 1);
14051               }
14052 _ACEOF
14053 if ac_fn_c_try_run "$LINENO"; then :
14054   gnupg_cv_c_endian=little
14055 else
14056   gnupg_cv_c_endian=big
14057 fi
14058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14059   conftest.$ac_objext conftest.beam conftest.$ac_ext
14060 fi
14061
14062         fi
14063
14064 fi
14065
14066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14067 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14068     if test "$gnupg_cv_c_endian" = little; then
14069
14070 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14071
14072     else
14073
14074 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14075
14076     fi
14077
14078 fi
14079
14080 # fixme: we should get rid of the byte type
14081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
14082 $as_echo_n "checking for byte typedef... " >&6; }
14083     if ${gnupg_cv_typedef_byte+:} false; then :
14084   $as_echo_n "(cached) " >&6
14085 else
14086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h.  */
14088 #define _GNU_SOURCE 1
14089     #include <stdlib.h>
14090     #include <sys/types.h>
14091 int
14092 main ()
14093 {
14094
14095     #undef byte
14096     int a = sizeof(byte);
14097
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103   gnupg_cv_typedef_byte=yes
14104 else
14105   gnupg_cv_typedef_byte=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109
14110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
14111 $as_echo "$gnupg_cv_typedef_byte" >&6; }
14112     if test "$gnupg_cv_typedef_byte" = yes; then
14113
14114 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
14115
14116     fi
14117
14118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
14119 $as_echo_n "checking for ushort typedef... " >&6; }
14120     if ${gnupg_cv_typedef_ushort+:} false; then :
14121   $as_echo_n "(cached) " >&6
14122 else
14123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h.  */
14125 #define _GNU_SOURCE 1
14126     #include <stdlib.h>
14127     #include <sys/types.h>
14128 int
14129 main ()
14130 {
14131
14132     #undef ushort
14133     int a = sizeof(ushort);
14134
14135   ;
14136   return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_c_try_compile "$LINENO"; then :
14140   gnupg_cv_typedef_ushort=yes
14141 else
14142   gnupg_cv_typedef_ushort=no
14143 fi
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 fi
14146
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
14148 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
14149     if test "$gnupg_cv_typedef_ushort" = yes; then
14150
14151 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
14152
14153     fi
14154
14155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
14156 $as_echo_n "checking for ulong typedef... " >&6; }
14157     if ${gnupg_cv_typedef_ulong+:} false; then :
14158   $as_echo_n "(cached) " >&6
14159 else
14160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h.  */
14162 #define _GNU_SOURCE 1
14163     #include <stdlib.h>
14164     #include <sys/types.h>
14165 int
14166 main ()
14167 {
14168
14169     #undef ulong
14170     int a = sizeof(ulong);
14171
14172   ;
14173   return 0;
14174 }
14175 _ACEOF
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177   gnupg_cv_typedef_ulong=yes
14178 else
14179   gnupg_cv_typedef_ulong=no
14180 fi
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 fi
14183
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
14185 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
14186     if test "$gnupg_cv_typedef_ulong" = yes; then
14187
14188 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
14189
14190     fi
14191
14192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
14193 $as_echo_n "checking for u16 typedef... " >&6; }
14194     if ${gnupg_cv_typedef_u16+:} false; then :
14195   $as_echo_n "(cached) " >&6
14196 else
14197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h.  */
14199 #define _GNU_SOURCE 1
14200     #include <stdlib.h>
14201     #include <sys/types.h>
14202 int
14203 main ()
14204 {
14205
14206     #undef u16
14207     int a = sizeof(u16);
14208
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_compile "$LINENO"; then :
14214   gnupg_cv_typedef_u16=yes
14215 else
14216   gnupg_cv_typedef_u16=no
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219 fi
14220
14221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
14222 $as_echo "$gnupg_cv_typedef_u16" >&6; }
14223     if test "$gnupg_cv_typedef_u16" = yes; then
14224
14225 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
14226
14227     fi
14228
14229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14230 $as_echo_n "checking for u32 typedef... " >&6; }
14231     if ${gnupg_cv_typedef_u32+:} false; then :
14232   $as_echo_n "(cached) " >&6
14233 else
14234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h.  */
14236 #define _GNU_SOURCE 1
14237     #include <stdlib.h>
14238     #include <sys/types.h>
14239 int
14240 main ()
14241 {
14242
14243     #undef u32
14244     int a = sizeof(u32);
14245
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251   gnupg_cv_typedef_u32=yes
14252 else
14253   gnupg_cv_typedef_u32=no
14254 fi
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 fi
14257
14258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14259 $as_echo "$gnupg_cv_typedef_u32" >&6; }
14260     if test "$gnupg_cv_typedef_u32" = yes; then
14261
14262 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14263
14264     fi
14265
14266
14267 # The cast to long int works around a bug in the HP C Compiler
14268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14270 # This bug is HP SR number 8606223364.
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14272 $as_echo_n "checking size of unsigned short... " >&6; }
14273 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14274   $as_echo_n "(cached) " >&6
14275 else
14276   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14277
14278 else
14279   if test "$ac_cv_type_unsigned_short" = yes; then
14280      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14282 as_fn_error 77 "cannot compute sizeof (unsigned short)
14283 See \`config.log' for more details" "$LINENO" 5; }
14284    else
14285      ac_cv_sizeof_unsigned_short=0
14286    fi
14287 fi
14288
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14291 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14292
14293
14294
14295 cat >>confdefs.h <<_ACEOF
14296 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14297 _ACEOF
14298
14299
14300 # The cast to long int works around a bug in the HP C Compiler
14301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14303 # This bug is HP SR number 8606223364.
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14305 $as_echo_n "checking size of unsigned int... " >&6; }
14306 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14310
14311 else
14312   if test "$ac_cv_type_unsigned_int" = yes; then
14313      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14315 as_fn_error 77 "cannot compute sizeof (unsigned int)
14316 See \`config.log' for more details" "$LINENO" 5; }
14317    else
14318      ac_cv_sizeof_unsigned_int=0
14319    fi
14320 fi
14321
14322 fi
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14324 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14325
14326
14327
14328 cat >>confdefs.h <<_ACEOF
14329 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14330 _ACEOF
14331
14332
14333 # The cast to long int works around a bug in the HP C Compiler
14334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14336 # This bug is HP SR number 8606223364.
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14338 $as_echo_n "checking size of unsigned long... " >&6; }
14339 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14343
14344 else
14345   if test "$ac_cv_type_unsigned_long" = yes; then
14346      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14348 as_fn_error 77 "cannot compute sizeof (unsigned long)
14349 See \`config.log' for more details" "$LINENO" 5; }
14350    else
14351      ac_cv_sizeof_unsigned_long=0
14352    fi
14353 fi
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14357 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14358
14359
14360
14361 cat >>confdefs.h <<_ACEOF
14362 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14363 _ACEOF
14364
14365
14366 # The cast to long int works around a bug in the HP C Compiler
14367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14369 # This bug is HP SR number 8606223364.
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14371 $as_echo_n "checking size of unsigned long long... " >&6; }
14372 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14373   $as_echo_n "(cached) " >&6
14374 else
14375   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14376
14377 else
14378   if test "$ac_cv_type_unsigned_long_long" = yes; then
14379      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14381 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14382 See \`config.log' for more details" "$LINENO" 5; }
14383    else
14384      ac_cv_sizeof_unsigned_long_long=0
14385    fi
14386 fi
14387
14388 fi
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14390 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14391
14392
14393
14394 cat >>confdefs.h <<_ACEOF
14395 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14396 _ACEOF
14397
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14400 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14401 if ${ac_cv_header_time+:} false; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406 #include <sys/types.h>
14407 #include <sys/time.h>
14408 #include <time.h>
14409
14410 int
14411 main ()
14412 {
14413 if ((struct tm *) 0)
14414 return 0;
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420   ac_cv_header_time=yes
14421 else
14422   ac_cv_header_time=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14427 $as_echo "$ac_cv_header_time" >&6; }
14428 if test $ac_cv_header_time = yes; then
14429
14430 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14431
14432 fi
14433
14434 # The cast to long int works around a bug in the HP C Compiler
14435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14437 # This bug is HP SR number 8606223364.
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14439 $as_echo_n "checking size of time_t... " >&6; }
14440 if ${ac_cv_sizeof_time_t+:} false; then :
14441   $as_echo_n "(cached) " >&6
14442 else
14443   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14444 #include <stdio.h>
14445 #if TIME_WITH_SYS_TIME
14446 # include <sys/time.h>
14447 # include <time.h>
14448 #else
14449 # if HAVE_SYS_TIME_H
14450 #  include <sys/time.h>
14451 # else
14452 #  include <time.h>
14453 # endif
14454 #endif
14455
14456 "; then :
14457
14458 else
14459   if test "$ac_cv_type_time_t" = yes; then
14460      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14462 as_fn_error 77 "cannot compute sizeof (time_t)
14463 See \`config.log' for more details" "$LINENO" 5; }
14464    else
14465      ac_cv_sizeof_time_t=0
14466    fi
14467 fi
14468
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14471 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14472
14473
14474
14475 cat >>confdefs.h <<_ACEOF
14476 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14477 _ACEOF
14478
14479
14480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14481 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14482 if ${gnupg_cv_time_t_unsigned+:} false; then :
14483   $as_echo_n "(cached) " >&6
14484 else
14485         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h.  */
14487 $ac_includes_default
14488 #if TIME_WITH_SYS_TIME
14489 # include <sys/time.h>
14490 # include <time.h>
14491 #else
14492 # if HAVE_SYS_TIME_H
14493 #  include <sys/time.h>
14494 # else
14495 #  include <time.h>
14496 # endif
14497 #endif
14498
14499 int
14500 main ()
14501 {
14502 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14503 test_array [0] = 0;
14504 return test_array [0];
14505
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 if ac_fn_c_try_compile "$LINENO"; then :
14511   gnupg_cv_time_t_unsigned=no
14512 else
14513   gnupg_cv_time_t_unsigned=yes
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14518 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14519     if test $gnupg_cv_time_t_unsigned = yes; then
14520
14521 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14522
14523     fi
14524
14525
14526
14527 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14528    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14529    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14531 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14532 fi
14533
14534
14535 #
14536 # Checks for library functions.
14537 #
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14539 $as_echo "$as_me: checking for library functions" >&6;}
14540 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14541 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14542   ac_have_decl=1
14543 else
14544   ac_have_decl=0
14545 fi
14546
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14549 _ACEOF
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14553 if ${ac_cv_sys_largefile_source+:} false; then :
14554   $as_echo_n "(cached) " >&6
14555 else
14556   while :; do
14557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h.  */
14559 #include <sys/types.h> /* for off_t */
14560      #include <stdio.h>
14561 int
14562 main ()
14563 {
14564 int (*fp) (FILE *, off_t, int) = fseeko;
14565      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 if ac_fn_c_try_link "$LINENO"; then :
14571   ac_cv_sys_largefile_source=no; break
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext \
14574     conftest$ac_exeext conftest.$ac_ext
14575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h.  */
14577 #define _LARGEFILE_SOURCE 1
14578 #include <sys/types.h> /* for off_t */
14579      #include <stdio.h>
14580 int
14581 main ()
14582 {
14583 int (*fp) (FILE *, off_t, int) = fseeko;
14584      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 if ac_fn_c_try_link "$LINENO"; then :
14590   ac_cv_sys_largefile_source=1; break
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext \
14593     conftest$ac_exeext conftest.$ac_ext
14594   ac_cv_sys_largefile_source=unknown
14595   break
14596 done
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14599 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14600 case $ac_cv_sys_largefile_source in #(
14601   no | unknown) ;;
14602   *)
14603 cat >>confdefs.h <<_ACEOF
14604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14605 _ACEOF
14606 ;;
14607 esac
14608 rm -rf conftest*
14609
14610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14611 # in glibc 2.1.3, but that breaks too many other things.
14612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14613 if test $ac_cv_sys_largefile_source != unknown; then
14614
14615 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14616
14617 fi
14618
14619 for ac_func in vprintf
14620 do :
14621   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14622 if test "x$ac_cv_func_vprintf" = xyes; then :
14623   cat >>confdefs.h <<_ACEOF
14624 #define HAVE_VPRINTF 1
14625 _ACEOF
14626
14627 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14628 if test "x$ac_cv_func__doprnt" = xyes; then :
14629
14630 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14631
14632 fi
14633
14634 fi
14635 done
14636
14637
14638 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14639 if test "x$ac_cv_type_pid_t" = xyes; then :
14640
14641 else
14642
14643 cat >>confdefs.h <<_ACEOF
14644 #define pid_t int
14645 _ACEOF
14646
14647 fi
14648
14649 for ac_header in vfork.h
14650 do :
14651   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14652 if test "x$ac_cv_header_vfork_h" = xyes; then :
14653   cat >>confdefs.h <<_ACEOF
14654 #define HAVE_VFORK_H 1
14655 _ACEOF
14656
14657 fi
14658
14659 done
14660
14661 for ac_func in fork vfork
14662 do :
14663   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14665 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14666   cat >>confdefs.h <<_ACEOF
14667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14668 _ACEOF
14669
14670 fi
14671 done
14672
14673 if test "x$ac_cv_func_fork" = xyes; then
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14675 $as_echo_n "checking for working fork... " >&6; }
14676 if ${ac_cv_func_fork_works+:} false; then :
14677   $as_echo_n "(cached) " >&6
14678 else
14679   if test "$cross_compiling" = yes; then :
14680   ac_cv_func_fork_works=cross
14681 else
14682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 int
14686 main ()
14687 {
14688
14689           /* By Ruediger Kuhlmann. */
14690           return fork () < 0;
14691
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_run "$LINENO"; then :
14697   ac_cv_func_fork_works=yes
14698 else
14699   ac_cv_func_fork_works=no
14700 fi
14701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14702   conftest.$ac_objext conftest.beam conftest.$ac_ext
14703 fi
14704
14705 fi
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14707 $as_echo "$ac_cv_func_fork_works" >&6; }
14708
14709 else
14710   ac_cv_func_fork_works=$ac_cv_func_fork
14711 fi
14712 if test "x$ac_cv_func_fork_works" = xcross; then
14713   case $host in
14714     *-*-amigaos* | *-*-msdosdjgpp*)
14715       # Override, as these systems have only a dummy fork() stub
14716       ac_cv_func_fork_works=no
14717       ;;
14718     *)
14719       ac_cv_func_fork_works=yes
14720       ;;
14721   esac
14722   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14723 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14724 fi
14725 ac_cv_func_vfork_works=$ac_cv_func_vfork
14726 if test "x$ac_cv_func_vfork" = xyes; then
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14728 $as_echo_n "checking for working vfork... " >&6; }
14729 if ${ac_cv_func_vfork_works+:} false; then :
14730   $as_echo_n "(cached) " >&6
14731 else
14732   if test "$cross_compiling" = yes; then :
14733   ac_cv_func_vfork_works=cross
14734 else
14735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h.  */
14737 /* Thanks to Paul Eggert for this test.  */
14738 $ac_includes_default
14739 #include <sys/wait.h>
14740 #ifdef HAVE_VFORK_H
14741 # include <vfork.h>
14742 #endif
14743 /* On some sparc systems, changes by the child to local and incoming
14744    argument registers are propagated back to the parent.  The compiler
14745    is told about this with #include <vfork.h>, but some compilers
14746    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14747    static variable whose address is put into a register that is
14748    clobbered by the vfork.  */
14749 static void
14750 #ifdef __cplusplus
14751 sparc_address_test (int arg)
14752 # else
14753 sparc_address_test (arg) int arg;
14754 #endif
14755 {
14756   static pid_t child;
14757   if (!child) {
14758     child = vfork ();
14759     if (child < 0) {
14760       perror ("vfork");
14761       _exit(2);
14762     }
14763     if (!child) {
14764       arg = getpid();
14765       write(-1, "", 0);
14766       _exit (arg);
14767     }
14768   }
14769 }
14770
14771 int
14772 main ()
14773 {
14774   pid_t parent = getpid ();
14775   pid_t child;
14776
14777   sparc_address_test (0);
14778
14779   child = vfork ();
14780
14781   if (child == 0) {
14782     /* Here is another test for sparc vfork register problems.  This
14783        test uses lots of local variables, at least as many local
14784        variables as main has allocated so far including compiler
14785        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14786        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14787        reuse the register of parent for one of the local variables,
14788        since it will think that parent can't possibly be used any more
14789        in this routine.  Assigning to the local variable will thus
14790        munge parent in the parent process.  */
14791     pid_t
14792       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14793       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14794     /* Convince the compiler that p..p7 are live; otherwise, it might
14795        use the same hardware register for all 8 local variables.  */
14796     if (p != p1 || p != p2 || p != p3 || p != p4
14797         || p != p5 || p != p6 || p != p7)
14798       _exit(1);
14799
14800     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14801        from child file descriptors.  If the child closes a descriptor
14802        before it execs or exits, this munges the parent's descriptor
14803        as well.  Test for this by closing stdout in the child.  */
14804     _exit(close(fileno(stdout)) != 0);
14805   } else {
14806     int status;
14807     struct stat st;
14808
14809     while (wait(&status) != child)
14810       ;
14811     return (
14812          /* Was there some problem with vforking?  */
14813          child < 0
14814
14815          /* Did the child fail?  (This shouldn't happen.)  */
14816          || status
14817
14818          /* Did the vfork/compiler bug occur?  */
14819          || parent != getpid()
14820
14821          /* Did the file descriptor bug occur?  */
14822          || fstat(fileno(stdout), &st) != 0
14823          );
14824   }
14825 }
14826 _ACEOF
14827 if ac_fn_c_try_run "$LINENO"; then :
14828   ac_cv_func_vfork_works=yes
14829 else
14830   ac_cv_func_vfork_works=no
14831 fi
14832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14833   conftest.$ac_objext conftest.beam conftest.$ac_ext
14834 fi
14835
14836 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14838 $as_echo "$ac_cv_func_vfork_works" >&6; }
14839
14840 fi;
14841 if test "x$ac_cv_func_fork_works" = xcross; then
14842   ac_cv_func_vfork_works=$ac_cv_func_vfork
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14844 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14845 fi
14846
14847 if test "x$ac_cv_func_vfork_works" = xyes; then
14848
14849 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14850
14851 else
14852
14853 $as_echo "#define vfork fork" >>confdefs.h
14854
14855 fi
14856 if test "x$ac_cv_func_fork_works" = xyes; then
14857
14858 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14859
14860 fi
14861
14862 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14863                 explicit_bzero fcntl flockfile fsync ftello          \
14864                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14865                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14866                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14867                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14868                 setenv setlocale setrlimit sigaction sigprocmask     \
14869                 stat stpcpy strcasecmp strerror strftime stricmp     \
14870                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14871                 strtoull tcgetattr timegm times ttyname unsetenv     \
14872                 wait4 waitpid
14873 do :
14874   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14877   cat >>confdefs.h <<_ACEOF
14878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14879 _ACEOF
14880
14881 fi
14882 done
14883
14884
14885 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14886 # Given that we use nanosleep only as an optimization over a select
14887 # based wait function we want it only if it is available in libc.
14888 _save_libs="$LIBS"
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14890 $as_echo_n "checking for library containing nanosleep... " >&6; }
14891 if ${ac_cv_search_nanosleep+:} false; then :
14892   $as_echo_n "(cached) " >&6
14893 else
14894   ac_func_search_save_LIBS=$LIBS
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h.  */
14897
14898 /* Override any GCC internal prototype to avoid an error.
14899    Use char because int might match the return type of a GCC
14900    builtin and then its argument prototype would still apply.  */
14901 #ifdef __cplusplus
14902 extern "C"
14903 #endif
14904 char nanosleep ();
14905 int
14906 main ()
14907 {
14908 return nanosleep ();
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 for ac_lib in '' ; do
14914   if test -z "$ac_lib"; then
14915     ac_res="none required"
14916   else
14917     ac_res=-l$ac_lib
14918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14919   fi
14920   if ac_fn_c_try_link "$LINENO"; then :
14921   ac_cv_search_nanosleep=$ac_res
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext \
14924     conftest$ac_exeext
14925   if ${ac_cv_search_nanosleep+:} false; then :
14926   break
14927 fi
14928 done
14929 if ${ac_cv_search_nanosleep+:} false; then :
14930
14931 else
14932   ac_cv_search_nanosleep=no
14933 fi
14934 rm conftest.$ac_ext
14935 LIBS=$ac_func_search_save_LIBS
14936 fi
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14938 $as_echo "$ac_cv_search_nanosleep" >&6; }
14939 ac_res=$ac_cv_search_nanosleep
14940 if test "$ac_res" != no; then :
14941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14942
14943 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14944
14945 fi
14946
14947 LIBS="$_save_libs"
14948
14949
14950 # See whether libc supports the Linux inotify interface
14951 case "${host}" in
14952     *-*-linux*)
14953         for ac_func in inotify_init
14954 do :
14955   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14956 if test "x$ac_cv_func_inotify_init" = xyes; then :
14957   cat >>confdefs.h <<_ACEOF
14958 #define HAVE_INOTIFY_INIT 1
14959 _ACEOF
14960
14961 fi
14962 done
14963
14964         ;;
14965 esac
14966
14967
14968 if test "$have_android_system" = yes; then
14969    # On Android ttyname is a stub but prints an error message.
14970
14971 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14972
14973 fi
14974
14975 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14976 "
14977 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14978
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_STRUCT_SIGACTION 1
14981 _ACEOF
14982
14983
14984 fi
14985 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14986 "
14987 if test "x$ac_cv_type_sigset_t" = xyes; then :
14988
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_SIGSET_T 1
14991 _ACEOF
14992
14993
14994 fi
14995
14996
14997 # Dirmngr requires mmap on Unix systems.
14998 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14999   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15000 fi
15001
15002
15003 #
15004 # Check for the getsockopt SO_PEERCRED, etc.
15005 #
15006 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15007 #include <sys/socket.h>
15008 "
15009 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15010
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_STRUCT_UCRED_PID 1
15013 _ACEOF
15014
15015
15016 fi
15017 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15018 #include <sys/socket.h>
15019 "
15020 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15021
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_STRUCT_UCRED_CR_PID 1
15024 _ACEOF
15025
15026
15027 fi
15028 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15029 #include <sys/socket.h>
15030 "
15031 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15032
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15035 _ACEOF
15036
15037
15038 fi
15039
15040
15041 # (Open)Solaris
15042 for ac_func in getpeerucred
15043 do :
15044   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15045 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15046   cat >>confdefs.h <<_ACEOF
15047 #define HAVE_GETPEERUCRED 1
15048 _ACEOF
15049
15050 fi
15051 done
15052
15053
15054
15055 #
15056 # W32 specific test
15057 #
15058 for ac_header in sys/stat.h unistd.h direct.h
15059 do :
15060   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15063   cat >>confdefs.h <<_ACEOF
15064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15065 _ACEOF
15066
15067 fi
15068
15069 done
15070
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
15072 $as_echo_n "checking if mkdir takes one argument... " >&6; }
15073 if ${gnupg_cv_mkdir_takes_one_arg+:} false; then :
15074   $as_echo_n "(cached) " >&6
15075 else
15076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h.  */
15078
15079 #include <sys/types.h>
15080 #ifdef HAVE_SYS_STAT_H
15081 # include <sys/stat.h>
15082 #endif
15083 #ifdef HAVE_UNISTD_H
15084 # include <unistd.h>
15085 #endif
15086 #ifdef HAVE_DIRECT_H
15087 # include <direct.h>
15088 #endif
15089 int
15090 main ()
15091 {
15092 mkdir ("foo", 0);
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098   gnupg_cv_mkdir_takes_one_arg=no
15099 else
15100   gnupg_cv_mkdir_takes_one_arg=yes
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
15105 $as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
15106 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
15107
15108 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
15109
15110 fi
15111
15112
15113
15114 #
15115 # Do we have zlib? Must do it here because Solaris failed
15116 # when compiling a conftest (due to the "-lz" from LIBS).
15117 # Note that we combine zlib and bzlib2 in ZLIBS.
15118 #
15119 if test "$use_zip" = yes ; then
15120   _cppflags="${CPPFLAGS}"
15121   _ldflags="${LDFLAGS}"
15122
15123 # Check whether --with-zlib was given.
15124 if test "${with_zlib+set}" = set; then :
15125   withval=$with_zlib;
15126       if test -d "$withval"; then
15127         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15128         LDFLAGS="${LDFLAGS} -L$withval/lib"
15129       fi
15130
15131 fi
15132
15133
15134   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15135 if test "x$ac_cv_header_zlib_h" = xyes; then :
15136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15137 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15138 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15139   $as_echo_n "(cached) " >&6
15140 else
15141   ac_check_lib_save_LIBS=$LIBS
15142 LIBS="-lz  $LIBS"
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h.  */
15145
15146 /* Override any GCC internal prototype to avoid an error.
15147    Use char because int might match the return type of a GCC
15148    builtin and then its argument prototype would still apply.  */
15149 #ifdef __cplusplus
15150 extern "C"
15151 #endif
15152 char deflateInit2_ ();
15153 int
15154 main ()
15155 {
15156 return deflateInit2_ ();
15157   ;
15158   return 0;
15159 }
15160 _ACEOF
15161 if ac_fn_c_try_link "$LINENO"; then :
15162   ac_cv_lib_z_deflateInit2_=yes
15163 else
15164   ac_cv_lib_z_deflateInit2_=no
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext \
15167     conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15169 fi
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15171 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15172 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15173
15174        ZLIBS="-lz"
15175
15176 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15177
15178
15179 else
15180   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15181 fi
15182
15183 else
15184   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15185 fi
15186
15187
15188 fi
15189
15190
15191 #
15192 # Check whether we can support bzip2
15193 #
15194 if test "$use_bzip2" = yes ; then
15195   _cppflags="${CPPFLAGS}"
15196   _ldflags="${LDFLAGS}"
15197
15198 # Check whether --with-bzip2 was given.
15199 if test "${with_bzip2+set}" = set; then :
15200   withval=$with_bzip2;
15201       if test -d "$withval" ; then
15202         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15203         LDFLAGS="${LDFLAGS} -L$withval/lib"
15204       fi
15205
15206 else
15207   withval=""
15208 fi
15209
15210
15211   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15212   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15213   # woefully out of date.
15214   if test "$withval" != no ; then
15215      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15216 "
15217 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15219 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15220 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15221   $as_echo_n "(cached) " >&6
15222 else
15223   ac_check_lib_save_LIBS=$LIBS
15224 LIBS="-lbz2  $LIBS"
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h.  */
15227
15228 /* Override any GCC internal prototype to avoid an error.
15229    Use char because int might match the return type of a GCC
15230    builtin and then its argument prototype would still apply.  */
15231 #ifdef __cplusplus
15232 extern "C"
15233 #endif
15234 char BZ2_bzCompressInit ();
15235 int
15236 main ()
15237 {
15238 return BZ2_bzCompressInit ();
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 if ac_fn_c_try_link "$LINENO"; then :
15244   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15245 else
15246   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15247 fi
15248 rm -f core conftest.err conftest.$ac_objext \
15249     conftest$ac_exeext conftest.$ac_ext
15250 LIBS=$ac_check_lib_save_LIBS
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15253 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15254 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15255
15256           have_bz2=yes
15257           ZLIBS="$ZLIBS -lbz2"
15258
15259 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15260
15261
15262 else
15263   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15264 fi
15265
15266 else
15267   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15268 fi
15269
15270
15271   fi
15272 fi
15273  if test x"$have_bz2" = "xyes"; then
15274   ENABLE_BZIP2_SUPPORT_TRUE=
15275   ENABLE_BZIP2_SUPPORT_FALSE='#'
15276 else
15277   ENABLE_BZIP2_SUPPORT_TRUE='#'
15278   ENABLE_BZIP2_SUPPORT_FALSE=
15279 fi
15280
15281
15282
15283
15284 # Check for readline support
15285
15286
15287 # Check whether --with-readline was given.
15288 if test "${with_readline+set}" = set; then :
15289   withval=$with_readline; _do_readline=$withval
15290 else
15291   _do_readline=yes
15292 fi
15293
15294
15295   gnupg_cv_have_readline=no
15296   if test "$_do_readline" != "no" ; then
15297      if test -d "$withval" ; then
15298         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15299         LDFLAGS="${LDFLAGS} -L$withval/lib"
15300      fi
15301
15302      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15303         _readline_save_libs=$LIBS
15304         _combo="-lreadline${_termcap:+ $_termcap}"
15305         LIBS="$LIBS $_combo"
15306
15307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15308 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15309
15310         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h.  */
15312
15313 #include <stdio.h>
15314 #include <readline/readline.h>
15315 #include <readline/history.h>
15316
15317 int
15318 main ()
15319 {
15320
15321 rl_completion_func_t *completer;
15322 add_history("foobar");
15323 rl_catch_signals=0;
15324 rl_inhibit_completion=0;
15325 rl_attempted_completion_function=NULL;
15326 rl_completion_matches(NULL,NULL);
15327
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 if ac_fn_c_try_link "$LINENO"; then :
15333   _found_readline=yes
15334 else
15335   _found_readline=no
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext \
15338     conftest$ac_exeext conftest.$ac_ext
15339
15340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15341 $as_echo "$_found_readline" >&6; }
15342
15343         LIBS=$_readline_save_libs
15344
15345         if test $_found_readline = yes ; then
15346
15347 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15348
15349            LIBREADLINE=$_combo
15350
15351            gnupg_cv_have_readline=yes
15352            break
15353         fi
15354      done
15355
15356      unset _termcap
15357      unset _readline_save_libs
15358      unset _combo
15359      unset _found_readline
15360   fi
15361
15362
15363
15364 if test "$development_version" = yes; then
15365
15366 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15367
15368 fi
15369
15370 if test "$USE_MAINTAINER_MODE" = "yes"; then
15371
15372 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15373
15374 fi
15375
15376  if test x$cross_compiling = xyes; then
15377   CROSS_COMPILING_TRUE=
15378   CROSS_COMPILING_FALSE='#'
15379 else
15380   CROSS_COMPILING_TRUE='#'
15381   CROSS_COMPILING_FALSE=
15382 fi
15383
15384
15385
15386     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15387         :
15388     else
15389         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15390 ***
15391 *** It seems that you are not using GNU make.  Some make tools have serious
15392 *** flaws and you may not be able to build this software at all. Before you
15393 *** complain, please try GNU make:  GNU make is easy to build and available
15394 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15395 ***" >&5
15396 $as_echo "$as_me: WARNING:
15397 ***
15398 *** It seems that you are not using GNU make.  Some make tools have serious
15399 *** flaws and you may not be able to build this software at all. Before you
15400 *** complain, please try GNU make:  GNU make is easy to build and available
15401 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15402 ***" >&2;}
15403     fi
15404
15405
15406 # Add some extra libs here so that previous tests don't fail for
15407 # mysterious reasons - the final link step should bail out.
15408 # W32SOCKLIBS is also defined so that if can be used for tools not
15409 # requiring any network stuff but linking to code in libcommon which
15410 # tracks in winsock stuff (e.g. init_common_subsystems).
15411 if test "$have_w32_system" = yes; then
15412    if test "$have_w32ce_system" = yes; then
15413      W32SOCKLIBS="-lws2"
15414    else
15415      W32SOCKLIBS="-lws2_32"
15416    fi
15417    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15418 fi
15419
15420
15421
15422
15423 #
15424 # Setup gcc specific options
15425 #
15426 USE_C99_CFLAGS=
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15428 $as_echo "$as_me: checking for cc features" >&6;}
15429 if test "$GCC" = yes; then
15430     mycflags=
15431     mycflags_save=$CFLAGS
15432
15433     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15434     # options.  This is the case for gcc >= 4.6
15435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15436 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h.  */
15439
15440 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15441 #kickerror
15442 #endif
15443 int
15444 main ()
15445 {
15446
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 if ac_fn_c_try_compile "$LINENO"; then :
15452   _gcc_silent_wno=yes
15453 else
15454   _gcc_silent_wno=no
15455 fi
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15458 $as_echo "$_gcc_silent_wno" >&6; }
15459
15460     # Note that it is okay to use CFLAGS here because these are just
15461     # warning options and the user should have a chance of overriding
15462     # them.
15463     if test "$USE_MAINTAINER_MODE" = "yes"; then
15464         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15465         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15466         if test x"$_gcc_silent_wno" = xyes ; then
15467           _gcc_wopt=yes
15468         else
15469           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15470 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15471           CFLAGS="-Wno-missing-field-initializers"
15472           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h.  */
15474
15475 int
15476 main ()
15477 {
15478
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 if ac_fn_c_try_compile "$LINENO"; then :
15484   _gcc_wopt=yes
15485 else
15486   _gcc_wopt=no
15487 fi
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15490 $as_echo "$_gcc_wopt" >&6; }
15491         fi
15492         if test x"$_gcc_wopt" = xyes ; then
15493           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15494           mycflags="$mycflags -Wno-missing-field-initializers"
15495           mycflags="$mycflags -Wno-format-zero-length"
15496         fi
15497
15498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15499 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15500         CFLAGS="-Wdeclaration-after-statement"
15501         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h.  */
15503
15504 int
15505 main ()
15506 {
15507
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 if ac_fn_c_try_compile "$LINENO"; then :
15513   _gcc_wopt=yes
15514 else
15515   _gcc_wopt=no
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15519 $as_echo "$_gcc_wopt" >&6; }
15520         if test x"$_gcc_wopt" = xyes ; then
15521           mycflags="$mycflags -Wdeclaration-after-statement"
15522         fi
15523
15524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15525 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15526         CFLAGS="-Wlogical-op -Werror"
15527         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h.  */
15529
15530 int
15531 main ()
15532 {
15533
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 if ac_fn_c_try_compile "$LINENO"; then :
15539   _gcc_wopt=yes
15540 else
15541   _gcc_wopt=no
15542 fi
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15545 $as_echo "$_gcc_wopt" >&6; }
15546         if test x"$_gcc_wopt" = xyes ; then
15547           mycflags="$mycflags -Wlogical-op"
15548         fi
15549
15550         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15551 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15552         CFLAGS="-Wvla"
15553         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h.  */
15555
15556 int
15557 main ()
15558 {
15559
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 if ac_fn_c_try_compile "$LINENO"; then :
15565   _gcc_wopt=yes
15566 else
15567   _gcc_wopt=no
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15571 $as_echo "$_gcc_wopt" >&6; }
15572         if test x"$_gcc_wopt" = xyes ; then
15573           mycflags="$mycflags -Wvla"
15574         fi
15575
15576     else
15577         mycflags="$mycflags -Wall"
15578     fi
15579
15580     if test x"$_gcc_silent_wno" = xyes ; then
15581       _gcc_psign=yes
15582     else
15583       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15584 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15585       CFLAGS="-Wno-pointer-sign"
15586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h.  */
15588
15589 int
15590 main ()
15591 {
15592
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_compile "$LINENO"; then :
15598   _gcc_psign=yes
15599 else
15600   _gcc_psign=no
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15604 $as_echo "$_gcc_psign" >&6; }
15605     fi
15606     if test x"$_gcc_psign" = xyes ; then
15607        mycflags="$mycflags -Wno-pointer-sign"
15608     fi
15609
15610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15611 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15612     CFLAGS="-Wpointer-arith"
15613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h.  */
15615
15616 int
15617 main ()
15618 {
15619
15620   ;
15621   return 0;
15622 }
15623 _ACEOF
15624 if ac_fn_c_try_compile "$LINENO"; then :
15625   _gcc_psign=yes
15626 else
15627   _gcc_psign=no
15628 fi
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15631 $as_echo "$_gcc_psign" >&6; }
15632     if test x"$_gcc_psign" = xyes ; then
15633        mycflags="$mycflags -Wpointer-arith"
15634     fi
15635
15636     CFLAGS="$mycflags $mycflags_save"
15637     if test "$use_libdns" = yes; then
15638        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
15639        USE_C99_CFLAGS="-std=gnu99"
15640     fi
15641 fi
15642
15643
15644
15645
15646 #
15647 # This is handy for debugging so the compiler doesn't rearrange
15648 # things and eliminate variables.
15649 #
15650 # Check whether --enable-optimization was given.
15651 if test "${enable_optimization+set}" = set; then :
15652   enableval=$enable_optimization; if test $enableval = no ; then
15653                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
15654                    fi
15655 fi
15656
15657
15658 #
15659 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
15660 # misbehaving autoconf tests in case the user supplied -Werror.
15661 #
15662 # Check whether --enable-werror was given.
15663 if test "${enable_werror+set}" = set; then :
15664   enableval=$enable_werror; if test $enableval = yes ; then
15665                       CFLAGS="$CFLAGS -Werror"
15666                    fi
15667 fi
15668
15669
15670 #
15671 # Configure option --enable-all-tests
15672 #
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
15674 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
15675 # Check whether --enable-all-tests was given.
15676 if test "${enable_all_tests+set}" = set; then :
15677   enableval=$enable_all_tests; run_all_tests=$enableval
15678 else
15679   run_all_tests=no
15680 fi
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
15683 $as_echo "$run_all_tests" >&6; }
15684 if test "$run_all_tests" = "yes"; then
15685
15686 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
15687
15688 fi
15689
15690 #
15691 # Configure option --disable-tests
15692 #
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
15694 $as_echo_n "checking whether tests should be run... " >&6; }
15695 # Check whether --enable-tests was given.
15696 if test "${enable_tests+set}" = set; then :
15697   enableval=$enable_tests; run_tests=$enableval
15698 else
15699   run_tests=yes
15700 fi
15701
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
15703 $as_echo "$run_tests" >&6; }
15704
15705 #
15706 # We do not want support for the GNUPG_BUILDDIR environment variable
15707 # in a released version.  However, our regression tests suite requires
15708 # this and thus we build with support for it during "make distcheck".
15709 # This configure option implements this along with the top Makefile's
15710 # AM_DISTCHECK_CONFIGURE_FLAGS.
15711 #
15712 gnupg_builddir_envvar=no
15713 # Check whether --enable-gnupg-builddir-envvar was given.
15714 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
15715   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
15716 fi
15717
15718 if test x"$gnupg_builddir_envvar" = x"yes"; then
15719
15720 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
15721
15722 fi
15723
15724
15725 #
15726 # To avoid problems with systemd cleaning up the /run/user directory,
15727 # this option will make GnuPG try to use /run/gnupg/user as socket dir
15728 # before /run/user
15729 #
15730 # Check whether --enable-run-gnupg-user-socket was given.
15731 if test "${enable_run_gnupg_user_socket+set}" = set; then :
15732   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
15733 fi
15734
15735 if test x"$use_run_gnupg_user_socket" = x"yes"; then
15736
15737 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
15738
15739 fi
15740
15741
15742 #
15743 # Decide what to build
15744 #
15745
15746 build_scdaemon_extra=""
15747 if test "$build_scdaemon" = "yes"; then
15748   if test $have_libusb = no; then
15749      build_scdaemon_extra="without internal CCID driver"
15750   fi
15751   if test -n "$build_scdaemon_extra"; then
15752      build_scdaemon_extra="(${build_scdaemon_extra})"
15753   fi
15754 fi
15755
15756
15757 #
15758 # Set variables for use by automake makefiles.
15759 #
15760  if test "$build_gpg" = "yes"; then
15761   BUILD_GPG_TRUE=
15762   BUILD_GPG_FALSE='#'
15763 else
15764   BUILD_GPG_TRUE='#'
15765   BUILD_GPG_FALSE=
15766 fi
15767
15768  if test "$build_gpgsm" = "yes"; then
15769   BUILD_GPGSM_TRUE=
15770   BUILD_GPGSM_FALSE='#'
15771 else
15772   BUILD_GPGSM_TRUE='#'
15773   BUILD_GPGSM_FALSE=
15774 fi
15775
15776  if test "$build_agent" = "yes"; then
15777   BUILD_AGENT_TRUE=
15778   BUILD_AGENT_FALSE='#'
15779 else
15780   BUILD_AGENT_TRUE='#'
15781   BUILD_AGENT_FALSE=
15782 fi
15783
15784  if test "$build_scdaemon" = "yes"; then
15785   BUILD_SCDAEMON_TRUE=
15786   BUILD_SCDAEMON_FALSE='#'
15787 else
15788   BUILD_SCDAEMON_TRUE='#'
15789   BUILD_SCDAEMON_FALSE=
15790 fi
15791
15792  if test "$build_g13" = "yes"; then
15793   BUILD_G13_TRUE=
15794   BUILD_G13_FALSE='#'
15795 else
15796   BUILD_G13_TRUE='#'
15797   BUILD_G13_FALSE=
15798 fi
15799
15800  if test "$build_dirmngr" = "yes"; then
15801   BUILD_DIRMNGR_TRUE=
15802   BUILD_DIRMNGR_FALSE='#'
15803 else
15804   BUILD_DIRMNGR_TRUE='#'
15805   BUILD_DIRMNGR_FALSE=
15806 fi
15807
15808  if test "$build_doc" = "yes"; then
15809   BUILD_DOC_TRUE=
15810   BUILD_DOC_FALSE='#'
15811 else
15812   BUILD_DOC_TRUE='#'
15813   BUILD_DOC_FALSE=
15814 fi
15815
15816  if test "$build_gpgtar" = "yes"; then
15817   BUILD_GPGTAR_TRUE=
15818   BUILD_GPGTAR_FALSE='#'
15819 else
15820   BUILD_GPGTAR_TRUE='#'
15821   BUILD_GPGTAR_FALSE=
15822 fi
15823
15824  if test "$build_wks_tools" = "yes"; then
15825   BUILD_WKS_TOOLS_TRUE=
15826   BUILD_WKS_TOOLS_FALSE='#'
15827 else
15828   BUILD_WKS_TOOLS_TRUE='#'
15829   BUILD_WKS_TOOLS_FALSE=
15830 fi
15831
15832
15833  if test "$run_tests" != yes; then
15834   DISABLE_TESTS_TRUE=
15835   DISABLE_TESTS_FALSE='#'
15836 else
15837   DISABLE_TESTS_TRUE='#'
15838   DISABLE_TESTS_FALSE=
15839 fi
15840
15841  if test "$card_support" = yes; then
15842   ENABLE_CARD_SUPPORT_TRUE=
15843   ENABLE_CARD_SUPPORT_FALSE='#'
15844 else
15845   ENABLE_CARD_SUPPORT_TRUE='#'
15846   ENABLE_CARD_SUPPORT_FALSE=
15847 fi
15848
15849  if test "$use_trust_models" = no; then
15850   NO_TRUST_MODELS_TRUE=
15851   NO_TRUST_MODELS_FALSE='#'
15852 else
15853   NO_TRUST_MODELS_TRUE='#'
15854   NO_TRUST_MODELS_FALSE=
15855 fi
15856
15857  if test "$use_tofu" = yes; then
15858   USE_TOFU_TRUE=
15859   USE_TOFU_FALSE='#'
15860 else
15861   USE_TOFU_TRUE='#'
15862   USE_TOFU_FALSE=
15863 fi
15864
15865
15866 #
15867 # Set some defines for use gpgconf.
15868 #
15869 if test "$build_gpg" = yes ; then
15870
15871 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
15872
15873 fi
15874 if test "$build_gpgsm" = yes ; then
15875
15876 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
15877
15878 fi
15879 if test "$build_agent" = yes ; then
15880
15881 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
15882
15883 fi
15884 if test "$build_scdaemon" = yes ; then
15885
15886 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
15887
15888 fi
15889 if test "$build_dirmngr" = yes ; then
15890
15891 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
15892
15893 fi
15894 if test "$build_g13" = yes ; then
15895
15896 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
15897
15898 fi
15899
15900
15901 #
15902 # Define Name strings
15903 #
15904
15905 cat >>confdefs.h <<_ACEOF
15906 #define GNUPG_NAME "GnuPG"
15907 _ACEOF
15908
15909
15910
15911 cat >>confdefs.h <<_ACEOF
15912 #define GPG_NAME "gpg"
15913 _ACEOF
15914
15915
15916 cat >>confdefs.h <<_ACEOF
15917 #define GPG_DISP_NAME "GnuPG"
15918 _ACEOF
15919
15920
15921
15922 cat >>confdefs.h <<_ACEOF
15923 #define GPGSM_NAME "gpgsm"
15924 _ACEOF
15925
15926
15927 cat >>confdefs.h <<_ACEOF
15928 #define GPGSM_DISP_NAME "GPGSM"
15929 _ACEOF
15930
15931
15932
15933 cat >>confdefs.h <<_ACEOF
15934 #define GPG_AGENT_NAME "gpg-agent"
15935 _ACEOF
15936
15937
15938 cat >>confdefs.h <<_ACEOF
15939 #define GPG_AGENT_DISP_NAME "GPG Agent"
15940 _ACEOF
15941
15942
15943
15944 cat >>confdefs.h <<_ACEOF
15945 #define SCDAEMON_NAME "scdaemon"
15946 _ACEOF
15947
15948
15949 cat >>confdefs.h <<_ACEOF
15950 #define SCDAEMON_DISP_NAME "SCDaemon"
15951 _ACEOF
15952
15953
15954
15955 cat >>confdefs.h <<_ACEOF
15956 #define DIRMNGR_NAME "dirmngr"
15957 _ACEOF
15958
15959
15960 cat >>confdefs.h <<_ACEOF
15961 #define DIRMNGR_DISP_NAME "DirMngr"
15962 _ACEOF
15963
15964
15965
15966 cat >>confdefs.h <<_ACEOF
15967 #define G13_NAME "g13"
15968 _ACEOF
15969
15970
15971 cat >>confdefs.h <<_ACEOF
15972 #define G13_DISP_NAME "G13"
15973 _ACEOF
15974
15975
15976
15977 cat >>confdefs.h <<_ACEOF
15978 #define GPGCONF_NAME "gpgconf"
15979 _ACEOF
15980
15981
15982 cat >>confdefs.h <<_ACEOF
15983 #define GPGCONF_DISP_NAME "GPGConf"
15984 _ACEOF
15985
15986
15987
15988 cat >>confdefs.h <<_ACEOF
15989 #define GPGTAR_NAME "gpgtar"
15990 _ACEOF
15991
15992
15993
15994 cat >>confdefs.h <<_ACEOF
15995 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
15996 _ACEOF
15997
15998
15999 cat >>confdefs.h <<_ACEOF
16000 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16001 _ACEOF
16002
16003
16004 cat >>confdefs.h <<_ACEOF
16005 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16006 _ACEOF
16007
16008
16009 cat >>confdefs.h <<_ACEOF
16010 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16011 _ACEOF
16012
16013
16014 cat >>confdefs.h <<_ACEOF
16015 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16016 _ACEOF
16017
16018
16019 cat >>confdefs.h <<_ACEOF
16020 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16021 _ACEOF
16022
16023
16024 cat >>confdefs.h <<_ACEOF
16025 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16026 _ACEOF
16027
16028
16029 cat >>confdefs.h <<_ACEOF
16030 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
16031 _ACEOF
16032
16033
16034
16035 cat >>confdefs.h <<_ACEOF
16036 #define GPGEXT_GPG "gpg"
16037 _ACEOF
16038
16039
16040 if test "$have_w32_system" = yes; then
16041
16042 cat >>confdefs.h <<_ACEOF
16043 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16044 _ACEOF
16045
16046 fi
16047
16048
16049 #
16050 # Provide information about the build.
16051 #
16052 BUILD_REVISION="c77bb1a75"
16053
16054
16055 cat >>confdefs.h <<_ACEOF
16056 #define BUILD_REVISION "$BUILD_REVISION"
16057 _ACEOF
16058
16059
16060 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16061 BUILD_VERSION="${BUILD_VERSION}51067"
16062 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16063
16064
16065
16066 # Check whether --enable-build-timestamp was given.
16067 if test "${enable_build_timestamp+set}" = set; then :
16068   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16069         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16070       else
16071         BUILD_TIMESTAMP="$enableval"
16072       fi
16073       BUILD_HOSTNAME="$ac_hostname"
16074 else
16075   BUILD_TIMESTAMP="<none>"
16076       BUILD_HOSTNAME="<anon>"
16077 fi
16078
16079
16080
16081 cat >>confdefs.h <<_ACEOF
16082 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16083 _ACEOF
16084
16085
16086
16087
16088 #
16089 # Print errors here so that they are visible all
16090 # together and the user can acquire them all together.
16091 #
16092 die=no
16093 if test "$have_gpg_error" = "no"; then
16094    die=yes
16095    { $as_echo "$as_me:${as_lineno-$LINENO}:
16096 ***
16097 *** You need libgpg-error to build this program.
16098 **  This library is for example available at
16099 ***   https://gnupg.org/ftp/gcrypt/libgpg-error
16100 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16101 ***" >&5
16102 $as_echo "$as_me:
16103 ***
16104 *** You need libgpg-error to build this program.
16105 **  This library is for example available at
16106 ***   https://gnupg.org/ftp/gcrypt/libgpg-error
16107 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16108 ***" >&6;}
16109 fi
16110 if test "$have_libgcrypt" = "no"; then
16111    die=yes
16112    { $as_echo "$as_me:${as_lineno-$LINENO}:
16113 ***
16114 *** You need libgcrypt to build this program.
16115 **  This library is for example available at
16116 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16117 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16118 ***" >&5
16119 $as_echo "$as_me:
16120 ***
16121 *** You need libgcrypt to build this program.
16122 **  This library is for example available at
16123 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16124 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16125 ***" >&6;}
16126 fi
16127 if test "$have_libassuan" = "no"; then
16128    die=yes
16129    { $as_echo "$as_me:${as_lineno-$LINENO}:
16130 ***
16131 *** You need libassuan to build this program.
16132 *** This library is for example available at
16133 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16134 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16135 ***" >&5
16136 $as_echo "$as_me:
16137 ***
16138 *** You need libassuan to build this program.
16139 *** This library is for example available at
16140 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16141 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16142 ***" >&6;}
16143 fi
16144 if test "$have_ksba" = "no"; then
16145     die=yes
16146     { $as_echo "$as_me:${as_lineno-$LINENO}:
16147 ***
16148 *** You need libksba to build this program.
16149 *** This library is for example available at
16150 ***   https://gnupg.org/ftp/gcrypt/libksba/
16151 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16152 ***" >&5
16153 $as_echo "$as_me:
16154 ***
16155 *** You need libksba to build this program.
16156 *** This library is for example available at
16157 ***   https://gnupg.org/ftp/gcrypt/libksba/
16158 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16159 ***" >&6;}
16160 fi
16161 if test "$gnupg_have_ldap" = yes; then
16162   if test "$have_w32ce_system" = yes; then
16163     { $as_echo "$as_me:${as_lineno-$LINENO}:
16164 *** Note that CeGCC might be broken, a package fixing this is:
16165 ***    http://files.kolab.org/local/windows-ce/
16166 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16167 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16168 ***" >&5
16169 $as_echo "$as_me:
16170 *** Note that CeGCC might be broken, a package fixing this is:
16171 ***    http://files.kolab.org/local/windows-ce/
16172 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16173 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16174 ***" >&6;}
16175    fi
16176 fi
16177 if test "$have_npth" = "no"; then
16178     die=yes
16179     { $as_echo "$as_me:${as_lineno-$LINENO}:
16180 ***
16181 *** It is now required to build with support for the
16182 *** New Portable Threads Library (nPth). Please install this
16183 *** library first.  The library is for example available at
16184 ***   https://gnupg.org/ftp/gcrypt/npth/
16185 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16186 ***" >&5
16187 $as_echo "$as_me:
16188 ***
16189 *** It is now required to build with support for the
16190 *** New Portable Threads Library (nPth). Please install this
16191 *** library first.  The library is for example available at
16192 ***   https://gnupg.org/ftp/gcrypt/npth/
16193 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16194 ***" >&6;}
16195 fi
16196
16197 if test "$require_iconv" = yes; then
16198   if test "$am_func_iconv" != yes; then
16199     die=yes
16200     { $as_echo "$as_me:${as_lineno-$LINENO}:
16201 ***
16202 *** The system does not provide a working iconv function.  Please
16203 *** install a suitable library; for example GNU Libiconv which is
16204 *** available at:
16205 ***   https://ftp.gnu.org/gnu/libiconv/
16206 ***" >&5
16207 $as_echo "$as_me:
16208 ***
16209 *** The system does not provide a working iconv function.  Please
16210 *** install a suitable library; for example GNU Libiconv which is
16211 *** available at:
16212 ***   https://ftp.gnu.org/gnu/libiconv/
16213 ***" >&6;}
16214   fi
16215 fi
16216
16217 if test "$use_ccid_driver" = yes; then
16218   if test "$have_libusb" != yes; then
16219     die=yes
16220     { $as_echo "$as_me:${as_lineno-$LINENO}:
16221 ***
16222 *** You need libusb to build the internal ccid driver.  Please
16223 *** install a libusb suitable for your system.
16224 ***" >&5
16225 $as_echo "$as_me:
16226 ***
16227 *** You need libusb to build the internal ccid driver.  Please
16228 *** install a libusb suitable for your system.
16229 ***" >&6;}
16230   fi
16231 fi
16232
16233 if test "$die" = "yes"; then
16234     as_fn_error $? "
16235 ***
16236 *** Required libraries not found. Please consult the above messages
16237 *** and install them before running configure again.
16238 ***" "$LINENO" 5
16239 fi
16240
16241
16242
16243 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 g13/Makefile dirmngr/Makefile tools/gpg-zip tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile agent/gpg-agent.w32-manifest g10/gpg.w32-manifest g10/gpgv.w32-manifest sm/gpgsm.w32-manifest scd/scdaemon.w32-manifest dirmngr/dirmngr.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest"
16244
16245
16246
16247 cat >confcache <<\_ACEOF
16248 # This file is a shell script that caches the results of configure
16249 # tests run on this system so they can be shared between configure
16250 # scripts and configure runs, see configure's option --config-cache.
16251 # It is not useful on other systems.  If it contains results you don't
16252 # want to keep, you may remove or edit it.
16253 #
16254 # config.status only pays attention to the cache file if you give it
16255 # the --recheck option to rerun configure.
16256 #
16257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16259 # following values.
16260
16261 _ACEOF
16262
16263 # The following way of writing the cache mishandles newlines in values,
16264 # but we know of no workaround that is simple, portable, and efficient.
16265 # So, we kill variables containing newlines.
16266 # Ultrix sh set writes to stderr and can't be redirected directly,
16267 # and sets the high bit in the cache file unless we assign to the vars.
16268 (
16269   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16270     eval ac_val=\$$ac_var
16271     case $ac_val in #(
16272     *${as_nl}*)
16273       case $ac_var in #(
16274       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16276       esac
16277       case $ac_var in #(
16278       _ | IFS | as_nl) ;; #(
16279       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16280       *) { eval $ac_var=; unset $ac_var;} ;;
16281       esac ;;
16282     esac
16283   done
16284
16285   (set) 2>&1 |
16286     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16287     *${as_nl}ac_space=\ *)
16288       # `set' does not quote correctly, so add quotes: double-quote
16289       # substitution turns \\\\ into \\, and sed turns \\ into \.
16290       sed -n \
16291         "s/'/'\\\\''/g;
16292           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16293       ;; #(
16294     *)
16295       # `set' quotes correctly as required by POSIX, so do not add quotes.
16296       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16297       ;;
16298     esac |
16299     sort
16300 ) |
16301   sed '
16302      /^ac_cv_env_/b end
16303      t clear
16304      :clear
16305      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16306      t end
16307      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16308      :end' >>confcache
16309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16310   if test -w "$cache_file"; then
16311     if test "x$cache_file" != "x/dev/null"; then
16312       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16313 $as_echo "$as_me: updating cache $cache_file" >&6;}
16314       if test ! -f "$cache_file" || test -h "$cache_file"; then
16315         cat confcache >"$cache_file"
16316       else
16317         case $cache_file in #(
16318         */* | ?:*)
16319           mv -f confcache "$cache_file"$$ &&
16320           mv -f "$cache_file"$$ "$cache_file" ;; #(
16321         *)
16322           mv -f confcache "$cache_file" ;;
16323         esac
16324       fi
16325     fi
16326   else
16327     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16329   fi
16330 fi
16331 rm -f confcache
16332
16333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16334 # Let make expand exec_prefix.
16335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16336
16337 DEFS=-DHAVE_CONFIG_H
16338
16339 ac_libobjs=
16340 ac_ltlibobjs=
16341 U=
16342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16343   # 1. Remove the extension, and $U if already installed.
16344   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16345   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16346   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16347   #    will be set to the directory where LIBOBJS objects are built.
16348   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16349   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16350 done
16351 LIBOBJS=$ac_libobjs
16352
16353 LTLIBOBJS=$ac_ltlibobjs
16354
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16357 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16358    if test -n "$am_sleep_pid"; then
16359      # Hide warnings about reused PIDs.
16360      wait $am_sleep_pid 2>/dev/null
16361    fi
16362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16363 $as_echo "done" >&6; }
16364  if test -n "$EXEEXT"; then
16365   am__EXEEXT_TRUE=
16366   am__EXEEXT_FALSE='#'
16367 else
16368   am__EXEEXT_TRUE='#'
16369   am__EXEEXT_FALSE=
16370 fi
16371
16372 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16373   as_fn_error $? "conditional \"AMDEP\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16375 fi
16376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16377   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379 fi
16380 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16381   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 fi
16384 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16385   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387 fi
16388 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16389   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16391 fi
16392 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16393   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395 fi
16396 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16397   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 fi
16400 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16401   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403 fi
16404 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16405   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16407 fi
16408 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16409   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16411 fi
16412 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16413   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415 fi
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16417 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16418    if test -n "$am_sleep_pid"; then
16419      # Hide warnings about reused PIDs.
16420      wait $am_sleep_pid 2>/dev/null
16421    fi
16422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16423 $as_echo "done" >&6; }
16424 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16425   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16427 fi
16428 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16429   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431 fi
16432 if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
16433   as_fn_error $? "conditional \"HAVE_USTAR\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16435 fi
16436 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16437   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16439 fi
16440 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16441   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443 fi
16444 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16445   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 fi
16448 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16449   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 fi
16452 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16453   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 fi
16456 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16457   as_fn_error $? "conditional \"SQLITE3\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 fi
16460 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16461   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 fi
16464 if test -z "${USE_LDAPWRAPPER_TRUE}" && test -z "${USE_LDAPWRAPPER_FALSE}"; then
16465   as_fn_error $? "conditional \"USE_LDAPWRAPPER\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 fi
16468 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16469   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 fi
16472 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16473   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 fi
16476 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16477   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 fi
16480 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16481   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 fi
16484 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16485   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 fi
16488 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16489   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 fi
16492 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16493   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 fi
16496 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16497   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 fi
16500 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16501   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 fi
16504 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16505   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 fi
16508 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16509   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 fi
16512 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
16513   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515 fi
16516 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16517   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519 fi
16520 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16521   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 fi
16524 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16525   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 fi
16528
16529 : "${CONFIG_STATUS=./config.status}"
16530 ac_write_fail=0
16531 ac_clean_files_save=$ac_clean_files
16532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16535 as_write_fail=0
16536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16537 #! $SHELL
16538 # Generated by $as_me.
16539 # Run this file to recreate the current configuration.
16540 # Compiler output produced by configure, useful for debugging
16541 # configure, is in config.log if it exists.
16542
16543 debug=false
16544 ac_cs_recheck=false
16545 ac_cs_silent=false
16546
16547 SHELL=\${CONFIG_SHELL-$SHELL}
16548 export SHELL
16549 _ASEOF
16550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16551 ## -------------------- ##
16552 ## M4sh Initialization. ##
16553 ## -------------------- ##
16554
16555 # Be more Bourne compatible
16556 DUALCASE=1; export DUALCASE # for MKS sh
16557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16558   emulate sh
16559   NULLCMD=:
16560   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16561   # is contrary to our usage.  Disable this feature.
16562   alias -g '${1+"$@"}'='"$@"'
16563   setopt NO_GLOB_SUBST
16564 else
16565   case `(set -o) 2>/dev/null` in #(
16566   *posix*) :
16567     set -o posix ;; #(
16568   *) :
16569      ;;
16570 esac
16571 fi
16572
16573
16574 as_nl='
16575 '
16576 export as_nl
16577 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16581 # Prefer a ksh shell builtin over an external printf program on Solaris,
16582 # but without wasting forks for bash or zsh.
16583 if test -z "$BASH_VERSION$ZSH_VERSION" \
16584     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16585   as_echo='print -r --'
16586   as_echo_n='print -rn --'
16587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16588   as_echo='printf %s\n'
16589   as_echo_n='printf %s'
16590 else
16591   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16592     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16593     as_echo_n='/usr/ucb/echo -n'
16594   else
16595     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16596     as_echo_n_body='eval
16597       arg=$1;
16598       case $arg in #(
16599       *"$as_nl"*)
16600         expr "X$arg" : "X\\(.*\\)$as_nl";
16601         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16602       esac;
16603       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16604     '
16605     export as_echo_n_body
16606     as_echo_n='sh -c $as_echo_n_body as_echo'
16607   fi
16608   export as_echo_body
16609   as_echo='sh -c $as_echo_body as_echo'
16610 fi
16611
16612 # The user is always right.
16613 if test "${PATH_SEPARATOR+set}" != set; then
16614   PATH_SEPARATOR=:
16615   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16616     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16617       PATH_SEPARATOR=';'
16618   }
16619 fi
16620
16621
16622 # IFS
16623 # We need space, tab and new line, in precisely that order.  Quoting is
16624 # there to prevent editors from complaining about space-tab.
16625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16626 # splitting by setting IFS to empty value.)
16627 IFS=" ""        $as_nl"
16628
16629 # Find who we are.  Look in the path if we contain no directory separator.
16630 as_myself=
16631 case $0 in #((
16632   *[\\/]* ) as_myself=$0 ;;
16633   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16635 do
16636   IFS=$as_save_IFS
16637   test -z "$as_dir" && as_dir=.
16638     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16639   done
16640 IFS=$as_save_IFS
16641
16642      ;;
16643 esac
16644 # We did not find ourselves, most probably we were run as `sh COMMAND'
16645 # in which case we are not to be found in the path.
16646 if test "x$as_myself" = x; then
16647   as_myself=$0
16648 fi
16649 if test ! -f "$as_myself"; then
16650   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16651   exit 1
16652 fi
16653
16654 # Unset variables that we do not need and which cause bugs (e.g. in
16655 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16656 # suppresses any "Segmentation fault" message there.  '((' could
16657 # trigger a bug in pdksh 5.2.14.
16658 for as_var in BASH_ENV ENV MAIL MAILPATH
16659 do eval test x\${$as_var+set} = xset \
16660   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16661 done
16662 PS1='$ '
16663 PS2='> '
16664 PS4='+ '
16665
16666 # NLS nuisances.
16667 LC_ALL=C
16668 export LC_ALL
16669 LANGUAGE=C
16670 export LANGUAGE
16671
16672 # CDPATH.
16673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16674
16675
16676 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16677 # ----------------------------------------
16678 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16679 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16680 # script with STATUS, using 1 if that was 0.
16681 as_fn_error ()
16682 {
16683   as_status=$1; test $as_status -eq 0 && as_status=1
16684   if test "$4"; then
16685     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16686     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16687   fi
16688   $as_echo "$as_me: error: $2" >&2
16689   as_fn_exit $as_status
16690 } # as_fn_error
16691
16692
16693 # as_fn_set_status STATUS
16694 # -----------------------
16695 # Set $? to STATUS, without forking.
16696 as_fn_set_status ()
16697 {
16698   return $1
16699 } # as_fn_set_status
16700
16701 # as_fn_exit STATUS
16702 # -----------------
16703 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16704 as_fn_exit ()
16705 {
16706   set +e
16707   as_fn_set_status $1
16708   exit $1
16709 } # as_fn_exit
16710
16711 # as_fn_unset VAR
16712 # ---------------
16713 # Portably unset VAR.
16714 as_fn_unset ()
16715 {
16716   { eval $1=; unset $1;}
16717 }
16718 as_unset=as_fn_unset
16719 # as_fn_append VAR VALUE
16720 # ----------------------
16721 # Append the text in VALUE to the end of the definition contained in VAR. Take
16722 # advantage of any shell optimizations that allow amortized linear growth over
16723 # repeated appends, instead of the typical quadratic growth present in naive
16724 # implementations.
16725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16726   eval 'as_fn_append ()
16727   {
16728     eval $1+=\$2
16729   }'
16730 else
16731   as_fn_append ()
16732   {
16733     eval $1=\$$1\$2
16734   }
16735 fi # as_fn_append
16736
16737 # as_fn_arith ARG...
16738 # ------------------
16739 # Perform arithmetic evaluation on the ARGs, and store the result in the
16740 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16741 # must be portable across $(()) and expr.
16742 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16743   eval 'as_fn_arith ()
16744   {
16745     as_val=$(( $* ))
16746   }'
16747 else
16748   as_fn_arith ()
16749   {
16750     as_val=`expr "$@" || test $? -eq 1`
16751   }
16752 fi # as_fn_arith
16753
16754
16755 if expr a : '\(a\)' >/dev/null 2>&1 &&
16756    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16757   as_expr=expr
16758 else
16759   as_expr=false
16760 fi
16761
16762 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16763   as_basename=basename
16764 else
16765   as_basename=false
16766 fi
16767
16768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16769   as_dirname=dirname
16770 else
16771   as_dirname=false
16772 fi
16773
16774 as_me=`$as_basename -- "$0" ||
16775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16776          X"$0" : 'X\(//\)$' \| \
16777          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16778 $as_echo X/"$0" |
16779     sed '/^.*\/\([^/][^/]*\)\/*$/{
16780             s//\1/
16781             q
16782           }
16783           /^X\/\(\/\/\)$/{
16784             s//\1/
16785             q
16786           }
16787           /^X\/\(\/\).*/{
16788             s//\1/
16789             q
16790           }
16791           s/.*/./; q'`
16792
16793 # Avoid depending upon Character Ranges.
16794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16797 as_cr_digits='0123456789'
16798 as_cr_alnum=$as_cr_Letters$as_cr_digits
16799
16800 ECHO_C= ECHO_N= ECHO_T=
16801 case `echo -n x` in #(((((
16802 -n*)
16803   case `echo 'xy\c'` in
16804   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16805   xy)  ECHO_C='\c';;
16806   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16807        ECHO_T=' ';;
16808   esac;;
16809 *)
16810   ECHO_N='-n';;
16811 esac
16812
16813 rm -f conf$$ conf$$.exe conf$$.file
16814 if test -d conf$$.dir; then
16815   rm -f conf$$.dir/conf$$.file
16816 else
16817   rm -f conf$$.dir
16818   mkdir conf$$.dir 2>/dev/null
16819 fi
16820 if (echo >conf$$.file) 2>/dev/null; then
16821   if ln -s conf$$.file conf$$ 2>/dev/null; then
16822     as_ln_s='ln -s'
16823     # ... but there are two gotchas:
16824     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16825     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16826     # In both cases, we have to default to `cp -pR'.
16827     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16828       as_ln_s='cp -pR'
16829   elif ln conf$$.file conf$$ 2>/dev/null; then
16830     as_ln_s=ln
16831   else
16832     as_ln_s='cp -pR'
16833   fi
16834 else
16835   as_ln_s='cp -pR'
16836 fi
16837 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16838 rmdir conf$$.dir 2>/dev/null
16839
16840
16841 # as_fn_mkdir_p
16842 # -------------
16843 # Create "$as_dir" as a directory, including parents if necessary.
16844 as_fn_mkdir_p ()
16845 {
16846
16847   case $as_dir in #(
16848   -*) as_dir=./$as_dir;;
16849   esac
16850   test -d "$as_dir" || eval $as_mkdir_p || {
16851     as_dirs=
16852     while :; do
16853       case $as_dir in #(
16854       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16855       *) as_qdir=$as_dir;;
16856       esac
16857       as_dirs="'$as_qdir' $as_dirs"
16858       as_dir=`$as_dirname -- "$as_dir" ||
16859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860          X"$as_dir" : 'X\(//\)[^/]' \| \
16861          X"$as_dir" : 'X\(//\)$' \| \
16862          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$as_dir" |
16864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16865             s//\1/
16866             q
16867           }
16868           /^X\(\/\/\)[^/].*/{
16869             s//\1/
16870             q
16871           }
16872           /^X\(\/\/\)$/{
16873             s//\1/
16874             q
16875           }
16876           /^X\(\/\).*/{
16877             s//\1/
16878             q
16879           }
16880           s/.*/./; q'`
16881       test -d "$as_dir" && break
16882     done
16883     test -z "$as_dirs" || eval "mkdir $as_dirs"
16884   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16885
16886
16887 } # as_fn_mkdir_p
16888 if mkdir -p . 2>/dev/null; then
16889   as_mkdir_p='mkdir -p "$as_dir"'
16890 else
16891   test -d ./-p && rmdir ./-p
16892   as_mkdir_p=false
16893 fi
16894
16895
16896 # as_fn_executable_p FILE
16897 # -----------------------
16898 # Test if FILE is an executable regular file.
16899 as_fn_executable_p ()
16900 {
16901   test -f "$1" && test -x "$1"
16902 } # as_fn_executable_p
16903 as_test_x='test -x'
16904 as_executable_p=as_fn_executable_p
16905
16906 # Sed expression to map a string onto a valid CPP name.
16907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16908
16909 # Sed expression to map a string onto a valid variable name.
16910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16911
16912
16913 exec 6>&1
16914 ## ----------------------------------- ##
16915 ## Main body of $CONFIG_STATUS script. ##
16916 ## ----------------------------------- ##
16917 _ASEOF
16918 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16919
16920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16921 # Save the log message, to keep $0 and so on meaningful, and to
16922 # report actual input values of CONFIG_FILES etc. instead of their
16923 # values after options handling.
16924 ac_log="
16925 This file was extended by gnupg $as_me 2.2.26, which was
16926 generated by GNU Autoconf 2.69.  Invocation command line was
16927
16928   CONFIG_FILES    = $CONFIG_FILES
16929   CONFIG_HEADERS  = $CONFIG_HEADERS
16930   CONFIG_LINKS    = $CONFIG_LINKS
16931   CONFIG_COMMANDS = $CONFIG_COMMANDS
16932   $ $0 $@
16933
16934 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16935 "
16936
16937 _ACEOF
16938
16939 case $ac_config_files in *"
16940 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16941 esac
16942
16943 case $ac_config_headers in *"
16944 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16945 esac
16946
16947
16948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16949 # Files that config.status was made for.
16950 config_files="$ac_config_files"
16951 config_headers="$ac_config_headers"
16952 config_commands="$ac_config_commands"
16953
16954 _ACEOF
16955
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16957 ac_cs_usage="\
16958 \`$as_me' instantiates files and other configuration actions
16959 from templates according to the current configuration.  Unless the files
16960 and actions are specified as TAGs, all are instantiated by default.
16961
16962 Usage: $0 [OPTION]... [TAG]...
16963
16964   -h, --help       print this help, then exit
16965   -V, --version    print version number and configuration settings, then exit
16966       --config     print configuration, then exit
16967   -q, --quiet, --silent
16968                    do not print progress messages
16969   -d, --debug      don't remove temporary files
16970       --recheck    update $as_me by reconfiguring in the same conditions
16971       --file=FILE[:TEMPLATE]
16972                    instantiate the configuration file FILE
16973       --header=FILE[:TEMPLATE]
16974                    instantiate the configuration header FILE
16975
16976 Configuration files:
16977 $config_files
16978
16979 Configuration headers:
16980 $config_headers
16981
16982 Configuration commands:
16983 $config_commands
16984
16985 Report bugs to <https://bugs.gnupg.org>."
16986
16987 _ACEOF
16988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16990 ac_cs_version="\\
16991 gnupg config.status 2.2.26
16992 configured by $0, generated by GNU Autoconf 2.69,
16993   with options \\"\$ac_cs_config\\"
16994
16995 Copyright (C) 2012 Free Software Foundation, Inc.
16996 This config.status script is free software; the Free Software Foundation
16997 gives unlimited permission to copy, distribute and modify it."
16998
16999 ac_pwd='$ac_pwd'
17000 srcdir='$srcdir'
17001 INSTALL='$INSTALL'
17002 MKDIR_P='$MKDIR_P'
17003 AWK='$AWK'
17004 test -n "\$AWK" || AWK=awk
17005 _ACEOF
17006
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 # The default lists apply if the user does not specify any file.
17009 ac_need_defaults=:
17010 while test $# != 0
17011 do
17012   case $1 in
17013   --*=?*)
17014     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17015     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17016     ac_shift=:
17017     ;;
17018   --*=)
17019     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17020     ac_optarg=
17021     ac_shift=:
17022     ;;
17023   *)
17024     ac_option=$1
17025     ac_optarg=$2
17026     ac_shift=shift
17027     ;;
17028   esac
17029
17030   case $ac_option in
17031   # Handling of the options.
17032   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17033     ac_cs_recheck=: ;;
17034   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17035     $as_echo "$ac_cs_version"; exit ;;
17036   --config | --confi | --conf | --con | --co | --c )
17037     $as_echo "$ac_cs_config"; exit ;;
17038   --debug | --debu | --deb | --de | --d | -d )
17039     debug=: ;;
17040   --file | --fil | --fi | --f )
17041     $ac_shift
17042     case $ac_optarg in
17043     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17044     '') as_fn_error $? "missing file argument" ;;
17045     esac
17046     as_fn_append CONFIG_FILES " '$ac_optarg'"
17047     ac_need_defaults=false;;
17048   --header | --heade | --head | --hea )
17049     $ac_shift
17050     case $ac_optarg in
17051     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17052     esac
17053     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17054     ac_need_defaults=false;;
17055   --he | --h)
17056     # Conflict between --help and --header
17057     as_fn_error $? "ambiguous option: \`$1'
17058 Try \`$0 --help' for more information.";;
17059   --help | --hel | -h )
17060     $as_echo "$ac_cs_usage"; exit ;;
17061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17062   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17063     ac_cs_silent=: ;;
17064
17065   # This is an error.
17066   -*) as_fn_error $? "unrecognized option: \`$1'
17067 Try \`$0 --help' for more information." ;;
17068
17069   *) as_fn_append ac_config_targets " $1"
17070      ac_need_defaults=false ;;
17071
17072   esac
17073   shift
17074 done
17075
17076 ac_configure_extra_args=
17077
17078 if $ac_cs_silent; then
17079   exec 6>/dev/null
17080   ac_configure_extra_args="$ac_configure_extra_args --silent"
17081 fi
17082
17083 _ACEOF
17084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17085 if \$ac_cs_recheck; then
17086   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17087   shift
17088   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17089   CONFIG_SHELL='$SHELL'
17090   export CONFIG_SHELL
17091   exec "\$@"
17092 fi
17093
17094 _ACEOF
17095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17096 exec 5>>config.log
17097 {
17098   echo
17099   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17100 ## Running $as_me. ##
17101 _ASBOX
17102   $as_echo "$ac_log"
17103 } >&5
17104
17105 _ACEOF
17106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 #
17108 # INIT-COMMANDS
17109 #
17110 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17111 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17112     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17113     # from automake < 1.5.
17114     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17115     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17116     LINGUAS="${LINGUAS-%UNSET%}"
17117
17118
17119 _ACEOF
17120
17121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17122
17123 # Handling of arguments.
17124 for ac_config_target in $ac_config_targets
17125 do
17126   case $ac_config_target in
17127     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17128     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17129     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17130     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17131     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17132     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17133     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17134     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17135     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17136     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17137     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17138     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17139     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17140     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17141     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17142     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17143     "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
17144     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17145     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17146     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17147     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17148     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17149     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17150     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17151     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17152     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17153     "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
17154     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17155     "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
17156     "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
17157     "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
17158     "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
17159     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17160     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17161     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17162     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17163     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17164
17165   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17166   esac
17167 done
17168
17169
17170 # If the user did not use the arguments to specify the items to instantiate,
17171 # then the envvar interface is used.  Set only those that are not.
17172 # We use the long form for the default assignment because of an extremely
17173 # bizarre bug on SunOS 4.1.3.
17174 if $ac_need_defaults; then
17175   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17176   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17177   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17178 fi
17179
17180 # Have a temporary directory for convenience.  Make it in the build tree
17181 # simply because there is no reason against having it here, and in addition,
17182 # creating and moving files from /tmp can sometimes cause problems.
17183 # Hook for its removal unless debugging.
17184 # Note that there is a small window in which the directory will not be cleaned:
17185 # after its creation but before its name has been assigned to `$tmp'.
17186 $debug ||
17187 {
17188   tmp= ac_tmp=
17189   trap 'exit_status=$?
17190   : "${ac_tmp:=$tmp}"
17191   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17192 ' 0
17193   trap 'as_fn_exit 1' 1 2 13 15
17194 }
17195 # Create a (secure) tmp directory for tmp files.
17196
17197 {
17198   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17199   test -d "$tmp"
17200 }  ||
17201 {
17202   tmp=./conf$$-$RANDOM
17203   (umask 077 && mkdir "$tmp")
17204 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17205 ac_tmp=$tmp
17206
17207 # Set up the scripts for CONFIG_FILES section.
17208 # No need to generate them if there are no CONFIG_FILES.
17209 # This happens for instance with `./config.status config.h'.
17210 if test -n "$CONFIG_FILES"; then
17211
17212
17213 ac_cr=`echo X | tr X '\015'`
17214 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17215 # But we know of no other shell where ac_cr would be empty at this
17216 # point, so we can use a bashism as a fallback.
17217 if test "x$ac_cr" = x; then
17218   eval ac_cr=\$\'\\r\'
17219 fi
17220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17222   ac_cs_awk_cr='\\r'
17223 else
17224   ac_cs_awk_cr=$ac_cr
17225 fi
17226
17227 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17228 _ACEOF
17229
17230
17231 {
17232   echo "cat >conf$$subs.awk <<_ACEOF" &&
17233   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17234   echo "_ACEOF"
17235 } >conf$$subs.sh ||
17236   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17238 ac_delim='%!_!# '
17239 for ac_last_try in false false false false false :; do
17240   . ./conf$$subs.sh ||
17241     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17242
17243   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17244   if test $ac_delim_n = $ac_delim_num; then
17245     break
17246   elif $ac_last_try; then
17247     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17248   else
17249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17250   fi
17251 done
17252 rm -f conf$$subs.sh
17253
17254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17255 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17256 _ACEOF
17257 sed -n '
17258 h
17259 s/^/S["/; s/!.*/"]=/
17260 p
17261 g
17262 s/^[^!]*!//
17263 :repl
17264 t repl
17265 s/'"$ac_delim"'$//
17266 t delim
17267 :nl
17268 h
17269 s/\(.\{148\}\)..*/\1/
17270 t more1
17271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17272 p
17273 n
17274 b repl
17275 :more1
17276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17277 p
17278 g
17279 s/.\{148\}//
17280 t nl
17281 :delim
17282 h
17283 s/\(.\{148\}\)..*/\1/
17284 t more2
17285 s/["\\]/\\&/g; s/^/"/; s/$/"/
17286 p
17287 b
17288 :more2
17289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17290 p
17291 g
17292 s/.\{148\}//
17293 t delim
17294 ' <conf$$subs.awk | sed '
17295 /^[^""]/{
17296   N
17297   s/\n//
17298 }
17299 ' >>$CONFIG_STATUS || ac_write_fail=1
17300 rm -f conf$$subs.awk
17301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17302 _ACAWK
17303 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17304   for (key in S) S_is_set[key] = 1
17305   FS = "\a"
17306
17307 }
17308 {
17309   line = $ 0
17310   nfields = split(line, field, "@")
17311   substed = 0
17312   len = length(field[1])
17313   for (i = 2; i < nfields; i++) {
17314     key = field[i]
17315     keylen = length(key)
17316     if (S_is_set[key]) {
17317       value = S[key]
17318       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17319       len += length(value) + length(field[++i])
17320       substed = 1
17321     } else
17322       len += 1 + keylen
17323   }
17324
17325   print line
17326 }
17327
17328 _ACAWK
17329 _ACEOF
17330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17332   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17333 else
17334   cat
17335 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17336   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17337 _ACEOF
17338
17339 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17340 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17341 # trailing colons and then remove the whole line if VPATH becomes empty
17342 # (actually we leave an empty line to preserve line numbers).
17343 if test "x$srcdir" = x.; then
17344   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17345 h
17346 s///
17347 s/^/:/
17348 s/[      ]*$/:/
17349 s/:\$(srcdir):/:/g
17350 s/:\${srcdir}:/:/g
17351 s/:@srcdir@:/:/g
17352 s/^:*//
17353 s/:*$//
17354 x
17355 s/\(=[   ]*\).*/\1/
17356 G
17357 s/\n//
17358 s/^[^=]*=[       ]*$//
17359 }'
17360 fi
17361
17362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17363 fi # test -n "$CONFIG_FILES"
17364
17365 # Set up the scripts for CONFIG_HEADERS section.
17366 # No need to generate them if there are no CONFIG_HEADERS.
17367 # This happens for instance with `./config.status Makefile'.
17368 if test -n "$CONFIG_HEADERS"; then
17369 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17370 BEGIN {
17371 _ACEOF
17372
17373 # Transform confdefs.h into an awk script `defines.awk', embedded as
17374 # here-document in config.status, that substitutes the proper values into
17375 # config.h.in to produce config.h.
17376
17377 # Create a delimiter string that does not exist in confdefs.h, to ease
17378 # handling of long lines.
17379 ac_delim='%!_!# '
17380 for ac_last_try in false false :; do
17381   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17382   if test -z "$ac_tt"; then
17383     break
17384   elif $ac_last_try; then
17385     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17386   else
17387     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17388   fi
17389 done
17390
17391 # For the awk script, D is an array of macro values keyed by name,
17392 # likewise P contains macro parameters if any.  Preserve backslash
17393 # newline sequences.
17394
17395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17396 sed -n '
17397 s/.\{148\}/&'"$ac_delim"'/g
17398 t rset
17399 :rset
17400 s/^[     ]*#[    ]*define[       ][      ]*/ /
17401 t def
17402 d
17403 :def
17404 s/\\$//
17405 t bsnl
17406 s/["\\]/\\&/g
17407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17408 D["\1"]=" \3"/p
17409 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17410 d
17411 :bsnl
17412 s/["\\]/\\&/g
17413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17414 D["\1"]=" \3\\\\\\n"\\/p
17415 t cont
17416 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17417 t cont
17418 d
17419 :cont
17420 n
17421 s/.\{148\}/&'"$ac_delim"'/g
17422 t clear
17423 :clear
17424 s/\\$//
17425 t bsnlc
17426 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17427 d
17428 :bsnlc
17429 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17430 b cont
17431 ' <confdefs.h | sed '
17432 s/'"$ac_delim"'/"\\\
17433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17434
17435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17436   for (key in D) D_is_set[key] = 1
17437   FS = "\a"
17438 }
17439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17440   line = \$ 0
17441   split(line, arg, " ")
17442   if (arg[1] == "#") {
17443     defundef = arg[2]
17444     mac1 = arg[3]
17445   } else {
17446     defundef = substr(arg[1], 2)
17447     mac1 = arg[2]
17448   }
17449   split(mac1, mac2, "(") #)
17450   macro = mac2[1]
17451   prefix = substr(line, 1, index(line, defundef) - 1)
17452   if (D_is_set[macro]) {
17453     # Preserve the white space surrounding the "#".
17454     print prefix "define", macro P[macro] D[macro]
17455     next
17456   } else {
17457     # Replace #undef with comments.  This is necessary, for example,
17458     # in the case of _POSIX_SOURCE, which is predefined and required
17459     # on some systems where configure will not decide to define it.
17460     if (defundef == "undef") {
17461       print "/*", prefix defundef, macro, "*/"
17462       next
17463     }
17464   }
17465 }
17466 { print }
17467 _ACAWK
17468 _ACEOF
17469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17471 fi # test -n "$CONFIG_HEADERS"
17472
17473
17474 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17475 shift
17476 for ac_tag
17477 do
17478   case $ac_tag in
17479   :[FHLC]) ac_mode=$ac_tag; continue;;
17480   esac
17481   case $ac_mode$ac_tag in
17482   :[FHL]*:*);;
17483   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17484   :[FH]-) ac_tag=-:-;;
17485   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17486   esac
17487   ac_save_IFS=$IFS
17488   IFS=:
17489   set x $ac_tag
17490   IFS=$ac_save_IFS
17491   shift
17492   ac_file=$1
17493   shift
17494
17495   case $ac_mode in
17496   :L) ac_source=$1;;
17497   :[FH])
17498     ac_file_inputs=
17499     for ac_f
17500     do
17501       case $ac_f in
17502       -) ac_f="$ac_tmp/stdin";;
17503       *) # Look for the file first in the build tree, then in the source tree
17504          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17505          # because $ac_f cannot contain `:'.
17506          test -f "$ac_f" ||
17507            case $ac_f in
17508            [\\/$]*) false;;
17509            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17510            esac ||
17511            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17512       esac
17513       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17514       as_fn_append ac_file_inputs " '$ac_f'"
17515     done
17516
17517     # Let's still pretend it is `configure' which instantiates (i.e., don't
17518     # use $as_me), people would be surprised to read:
17519     #    /* config.h.  Generated by config.status.  */
17520     configure_input='Generated from '`
17521           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17522         `' by configure.'
17523     if test x"$ac_file" != x-; then
17524       configure_input="$ac_file.  $configure_input"
17525       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17526 $as_echo "$as_me: creating $ac_file" >&6;}
17527     fi
17528     # Neutralize special characters interpreted by sed in replacement strings.
17529     case $configure_input in #(
17530     *\&* | *\|* | *\\* )
17531        ac_sed_conf_input=`$as_echo "$configure_input" |
17532        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17533     *) ac_sed_conf_input=$configure_input;;
17534     esac
17535
17536     case $ac_tag in
17537     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17538       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17539     esac
17540     ;;
17541   esac
17542
17543   ac_dir=`$as_dirname -- "$ac_file" ||
17544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17545          X"$ac_file" : 'X\(//\)[^/]' \| \
17546          X"$ac_file" : 'X\(//\)$' \| \
17547          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17548 $as_echo X"$ac_file" |
17549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17550             s//\1/
17551             q
17552           }
17553           /^X\(\/\/\)[^/].*/{
17554             s//\1/
17555             q
17556           }
17557           /^X\(\/\/\)$/{
17558             s//\1/
17559             q
17560           }
17561           /^X\(\/\).*/{
17562             s//\1/
17563             q
17564           }
17565           s/.*/./; q'`
17566   as_dir="$ac_dir"; as_fn_mkdir_p
17567   ac_builddir=.
17568
17569 case "$ac_dir" in
17570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17571 *)
17572   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17573   # A ".." for each directory in $ac_dir_suffix.
17574   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17575   case $ac_top_builddir_sub in
17576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17578   esac ;;
17579 esac
17580 ac_abs_top_builddir=$ac_pwd
17581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17582 # for backward compatibility:
17583 ac_top_builddir=$ac_top_build_prefix
17584
17585 case $srcdir in
17586   .)  # We are building in place.
17587     ac_srcdir=.
17588     ac_top_srcdir=$ac_top_builddir_sub
17589     ac_abs_top_srcdir=$ac_pwd ;;
17590   [\\/]* | ?:[\\/]* )  # Absolute name.
17591     ac_srcdir=$srcdir$ac_dir_suffix;
17592     ac_top_srcdir=$srcdir
17593     ac_abs_top_srcdir=$srcdir ;;
17594   *) # Relative name.
17595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17596     ac_top_srcdir=$ac_top_build_prefix$srcdir
17597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17598 esac
17599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17600
17601
17602   case $ac_mode in
17603   :F)
17604   #
17605   # CONFIG_FILE
17606   #
17607
17608   case $INSTALL in
17609   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17610   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17611   esac
17612   ac_MKDIR_P=$MKDIR_P
17613   case $MKDIR_P in
17614   [\\/$]* | ?:[\\/]* ) ;;
17615   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17616   esac
17617 _ACEOF
17618
17619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17620 # If the template does not know about datarootdir, expand it.
17621 # FIXME: This hack should be removed a few years after 2.60.
17622 ac_datarootdir_hack=; ac_datarootdir_seen=
17623 ac_sed_dataroot='
17624 /datarootdir/ {
17625   p
17626   q
17627 }
17628 /@datadir@/p
17629 /@docdir@/p
17630 /@infodir@/p
17631 /@localedir@/p
17632 /@mandir@/p'
17633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17634 *datarootdir*) ac_datarootdir_seen=yes;;
17635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17636   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17638 _ACEOF
17639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17640   ac_datarootdir_hack='
17641   s&@datadir@&$datadir&g
17642   s&@docdir@&$docdir&g
17643   s&@infodir@&$infodir&g
17644   s&@localedir@&$localedir&g
17645   s&@mandir@&$mandir&g
17646   s&\\\${datarootdir}&$datarootdir&g' ;;
17647 esac
17648 _ACEOF
17649
17650 # Neutralize VPATH when `$srcdir' = `.'.
17651 # Shell code in configure.ac might set extrasub.
17652 # FIXME: do we really want to maintain this feature?
17653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17654 ac_sed_extra="$ac_vpsub
17655 $extrasub
17656 _ACEOF
17657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17658 :t
17659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17660 s|@configure_input@|$ac_sed_conf_input|;t t
17661 s&@top_builddir@&$ac_top_builddir_sub&;t t
17662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17663 s&@srcdir@&$ac_srcdir&;t t
17664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17665 s&@top_srcdir@&$ac_top_srcdir&;t t
17666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17667 s&@builddir@&$ac_builddir&;t t
17668 s&@abs_builddir@&$ac_abs_builddir&;t t
17669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17670 s&@INSTALL@&$ac_INSTALL&;t t
17671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17672 $ac_datarootdir_hack
17673 "
17674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17675   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17676
17677 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17678   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17679   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17680       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17681   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17682 which seems to be undefined.  Please make sure it is defined" >&5
17683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17684 which seems to be undefined.  Please make sure it is defined" >&2;}
17685
17686   rm -f "$ac_tmp/stdin"
17687   case $ac_file in
17688   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17689   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17690   esac \
17691   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17692  ;;
17693   :H)
17694   #
17695   # CONFIG_HEADER
17696   #
17697   if test x"$ac_file" != x-; then
17698     {
17699       $as_echo "/* $configure_input  */" \
17700       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17701     } >"$ac_tmp/config.h" \
17702       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17703     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17704       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17706     else
17707       rm -f "$ac_file"
17708       mv "$ac_tmp/config.h" "$ac_file" \
17709         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17710     fi
17711   else
17712     $as_echo "/* $configure_input  */" \
17713       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17714       || as_fn_error $? "could not create -" "$LINENO" 5
17715   fi
17716 # Compute "$ac_file"'s index in $config_headers.
17717 _am_arg="$ac_file"
17718 _am_stamp_count=1
17719 for _am_header in $config_headers :; do
17720   case $_am_header in
17721     $_am_arg | $_am_arg:* )
17722       break ;;
17723     * )
17724       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17725   esac
17726 done
17727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17729          X"$_am_arg" : 'X\(//\)[^/]' \| \
17730          X"$_am_arg" : 'X\(//\)$' \| \
17731          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17732 $as_echo X"$_am_arg" |
17733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17734             s//\1/
17735             q
17736           }
17737           /^X\(\/\/\)[^/].*/{
17738             s//\1/
17739             q
17740           }
17741           /^X\(\/\/\)$/{
17742             s//\1/
17743             q
17744           }
17745           /^X\(\/\).*/{
17746             s//\1/
17747             q
17748           }
17749           s/.*/./; q'`/stamp-h$_am_stamp_count
17750  ;;
17751
17752   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17753 $as_echo "$as_me: executing $ac_file commands" >&6;}
17754  ;;
17755   esac
17756
17757
17758   case $ac_file$ac_mode in
17759     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17760   # Older Autoconf quotes --file arguments for eval, but not when files
17761   # are listed without --file.  Let's play safe and only enable the eval
17762   # if we detect the quoting.
17763   # TODO: see whether this extra hack can be removed once we start
17764   # requiring Autoconf 2.70 or later.
17765   case $CONFIG_FILES in #(
17766   *\'*) :
17767     eval set x "$CONFIG_FILES" ;; #(
17768   *) :
17769     set x $CONFIG_FILES ;; #(
17770   *) :
17771      ;;
17772 esac
17773   shift
17774   # Used to flag and report bootstrapping failures.
17775   am_rc=0
17776   for am_mf
17777   do
17778     # Strip MF so we end up with the name of the file.
17779     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17780     # Check whether this is an Automake generated Makefile which includes
17781     # dependency-tracking related rules and includes.
17782     # Grep'ing the whole file directly is not great: AIX grep has a line
17783     # limit of 2048, but all sed's we know have understand at least 4000.
17784     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17785       || continue
17786     am_dirpart=`$as_dirname -- "$am_mf" ||
17787 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17788          X"$am_mf" : 'X\(//\)[^/]' \| \
17789          X"$am_mf" : 'X\(//\)$' \| \
17790          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17791 $as_echo X"$am_mf" |
17792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17793             s//\1/
17794             q
17795           }
17796           /^X\(\/\/\)[^/].*/{
17797             s//\1/
17798             q
17799           }
17800           /^X\(\/\/\)$/{
17801             s//\1/
17802             q
17803           }
17804           /^X\(\/\).*/{
17805             s//\1/
17806             q
17807           }
17808           s/.*/./; q'`
17809     am_filepart=`$as_basename -- "$am_mf" ||
17810 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17811          X"$am_mf" : 'X\(//\)$' \| \
17812          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17813 $as_echo X/"$am_mf" |
17814     sed '/^.*\/\([^/][^/]*\)\/*$/{
17815             s//\1/
17816             q
17817           }
17818           /^X\/\(\/\/\)$/{
17819             s//\1/
17820             q
17821           }
17822           /^X\/\(\/\).*/{
17823             s//\1/
17824             q
17825           }
17826           s/.*/./; q'`
17827     { echo "$as_me:$LINENO: cd "$am_dirpart" \
17828       && sed -e '/# am--include-marker/d' "$am_filepart" \
17829         | $MAKE -f - am--depfiles" >&5
17830    (cd "$am_dirpart" \
17831       && sed -e '/# am--include-marker/d' "$am_filepart" \
17832         | $MAKE -f - am--depfiles) >&5 2>&5
17833    ac_status=$?
17834    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835    (exit $ac_status); } || am_rc=$?
17836   done
17837   if test $am_rc -ne 0; then
17838     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17840 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17841     for automatic dependency tracking.  Try re-running configure with the
17842     '--disable-dependency-tracking' option to at least be able to build
17843     the package (albeit without support for automatic dependency tracking).
17844 See \`config.log' for more details" "$LINENO" 5; }
17845   fi
17846   { am_dirpart=; unset am_dirpart;}
17847   { am_filepart=; unset am_filepart;}
17848   { am_mf=; unset am_mf;}
17849   { am_rc=; unset am_rc;}
17850   rm -f conftest-deps.mk
17851 }
17852  ;;
17853     "po-directories":C)
17854     for ac_file in $CONFIG_FILES; do
17855       # Support "outfile[:infile[:infile...]]"
17856       case "$ac_file" in
17857         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17858       esac
17859       # PO directories have a Makefile.in generated from Makefile.in.in.
17860       case "$ac_file" in */Makefile.in)
17861         # Adjust a relative srcdir.
17862         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17863         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17864         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17865         # In autoconf-2.13 it is called $ac_given_srcdir.
17866         # In autoconf-2.50 it is called $srcdir.
17867         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17868         case "$ac_given_srcdir" in
17869           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17870           /*) top_srcdir="$ac_given_srcdir" ;;
17871           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17872         esac
17873         # Treat a directory as a PO directory if and only if it has a
17874         # POTFILES.in file. This allows packages to have multiple PO
17875         # directories under different names or in different locations.
17876         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17877           rm -f "$ac_dir/POTFILES"
17878           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17879           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17880           POMAKEFILEDEPS="POTFILES.in"
17881           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17882           # on $ac_dir but don't depend on user-specified configuration
17883           # parameters.
17884           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17885             # The LINGUAS file contains the set of available languages.
17886             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17887               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17888             fi
17889             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17890             # Hide the ALL_LINGUAS assignment from automake < 1.5.
17891             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17892             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17893           else
17894             # The set of available languages was given in configure.in.
17895             # Hide the ALL_LINGUAS assignment from automake < 1.5.
17896             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17897           fi
17898           # Compute POFILES
17899           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17900           # Compute UPDATEPOFILES
17901           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17902           # Compute DUMMYPOFILES
17903           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17904           # Compute GMOFILES
17905           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17906           case "$ac_given_srcdir" in
17907             .) srcdirpre= ;;
17908             *) srcdirpre='$(srcdir)/' ;;
17909           esac
17910           POFILES=
17911           UPDATEPOFILES=
17912           DUMMYPOFILES=
17913           GMOFILES=
17914           for lang in $ALL_LINGUAS; do
17915             POFILES="$POFILES $srcdirpre$lang.po"
17916             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17917             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17918             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17919           done
17920           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17921           # environment variable.
17922           INST_LINGUAS=
17923           if test -n "$ALL_LINGUAS"; then
17924             for presentlang in $ALL_LINGUAS; do
17925               useit=no
17926               if test "%UNSET%" != "$LINGUAS"; then
17927                 desiredlanguages="$LINGUAS"
17928               else
17929                 desiredlanguages="$ALL_LINGUAS"
17930               fi
17931               for desiredlang in $desiredlanguages; do
17932                 # Use the presentlang catalog if desiredlang is
17933                 #   a. equal to presentlang, or
17934                 #   b. a variant of presentlang (because in this case,
17935                 #      presentlang can be used as a fallback for messages
17936                 #      which are not translated in the desiredlang catalog).
17937                 case "$desiredlang" in
17938                   "$presentlang"*) useit=yes;;
17939                 esac
17940               done
17941               if test $useit = yes; then
17942                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17943               fi
17944             done
17945           fi
17946           CATALOGS=
17947           if test -n "$INST_LINGUAS"; then
17948             for lang in $INST_LINGUAS; do
17949               CATALOGS="$CATALOGS $lang.gmo"
17950             done
17951           fi
17952           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17953           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"
17954           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17955             if test -f "$f"; then
17956               case "$f" in
17957                 *.orig | *.bak | *~) ;;
17958                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17959               esac
17960             fi
17961           done
17962         fi
17963         ;;
17964       esac
17965     done ;;
17966
17967   esac
17968 done # for ac_tag
17969
17970
17971 as_fn_exit 0
17972 _ACEOF
17973 ac_clean_files=$ac_clean_files_save
17974
17975 test $ac_write_fail = 0 ||
17976   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17977
17978
17979 # configure is writing to config.log, and then calls config.status.
17980 # config.status does its own redirection, appending to config.log.
17981 # Unfortunately, on DOS this fails, as config.log is still kept open
17982 # by configure, so config.status won't be able to write to it; its
17983 # output is simply discarded.  So we exec the FD to /dev/null,
17984 # effectively closing config.log, so it can be properly (re)opened and
17985 # appended to by config.status.  When coming back to configure, we
17986 # need to make the FD available again.
17987 if test "$no_create" != yes; then
17988   ac_cs_success=:
17989   ac_config_status_args=
17990   test "$silent" = yes &&
17991     ac_config_status_args="$ac_config_status_args --quiet"
17992   exec 5>/dev/null
17993   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17994   exec 5>>config.log
17995   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17996   # would make configure fail if this is the last instruction.
17997   $ac_cs_success || as_fn_exit 1
17998 fi
17999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18001 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18002 fi
18003
18004
18005
18006 echo "
18007         GnuPG v${VERSION} has been configured as follows:
18008
18009         Revision:  c77bb1a75  (51067)
18010         Platform:  $PRINTABLE_OS_NAME ($host)
18011
18012         OpenPGP:   $build_gpg
18013         S/MIME:    $build_gpgsm
18014         Agent:     $build_agent
18015         Smartcard: $build_scdaemon $build_scdaemon_extra
18016         G13:       $build_g13
18017         Dirmngr:   $build_dirmngr
18018         Gpgtar:    $build_gpgtar
18019         WKS tools: $build_wks_tools
18020
18021         Protect tool:      $show_gnupg_protect_tool_pgm
18022         LDAP wrapper:      $show_gnupg_dirmngr_ldap_pgm
18023         Default agent:     $show_gnupg_agent_pgm
18024         Default pinentry:  $show_gnupg_pinentry_pgm
18025         Default scdaemon:  $show_gnupg_scdaemon_pgm
18026         Default dirmngr:   $show_gnupg_dirmngr_pgm
18027
18028         Dirmngr auto start:  $dirmngr_auto_start
18029         Readline support:    $gnupg_cv_have_readline
18030         LDAP support:        $gnupg_have_ldap
18031         TLS support:         $use_tls_library
18032         TOFU support:        $use_tofu
18033         Tor support:         $show_tor_support
18034 "
18035 if test "x${gpg_config_script_warn}" != x; then
18036 cat <<G10EOF
18037         Warning: Mismatches between the target platform and the
18038                  to be used libraries have been detected for:
18039                   ${gpg_config_script_warn}
18040                  Please check above for more warning messages.
18041
18042 G10EOF
18043 fi
18044 if test "${build_gpg}" != "yes"; then
18045 cat <<G10EOF
18046         Warning: The component "gpg" is used by other components as
18047                  well as for the test suite.  You have disabled
18048                  this component and thus other things won't work.
18049
18050 G10EOF
18051 fi
18052 if test "${run_tests}" != "yes"; then
18053 cat <<G10EOF
18054         Warning: The use of the test suite has been disabled!
18055                  This is in almost all cases a bad idea.  Take care.
18056
18057 G10EOF
18058 fi