Imported Upstream version 2.3.5
[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.3.5.
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.3.5'
584 PACKAGE_STRING='gnupg 2.3.5'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
586 PACKAGE_URL=''
587
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_header_list=
627 ac_subst_vars='am__EXEEXT_FALSE
628 am__EXEEXT_TRUE
629 LTLIBOBJS
630 LIBOBJS
631 BUILD_HOSTNAME
632 BUILD_TIMESTAMP
633 BUILD_FILEVERSION
634 BUILD_VERSION
635 BUILD_REVISION
636 USE_TOFU_FALSE
637 USE_TOFU_TRUE
638 NO_TRUST_MODELS_FALSE
639 NO_TRUST_MODELS_TRUE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
642 DISABLE_TESTS_FALSE
643 DISABLE_TESTS_TRUE
644 BUILD_WKS_TOOLS_FALSE
645 BUILD_WKS_TOOLS_TRUE
646 BUILD_GPGTAR_FALSE
647 BUILD_GPGTAR_TRUE
648 BUILD_DOC_FALSE
649 BUILD_DOC_TRUE
650 BUILD_TPM2D_FALSE
651 BUILD_TPM2D_TRUE
652 BUILD_KEYBOXD_FALSE
653 BUILD_KEYBOXD_TRUE
654 BUILD_DIRMNGR_FALSE
655 BUILD_DIRMNGR_TRUE
656 BUILD_G13_FALSE
657 BUILD_G13_TRUE
658 BUILD_SCDAEMON_FALSE
659 BUILD_SCDAEMON_TRUE
660 BUILD_AGENT_FALSE
661 BUILD_AGENT_TRUE
662 BUILD_GPGSM_FALSE
663 BUILD_GPGSM_TRUE
664 BUILD_GPG_FALSE
665 BUILD_GPG_TRUE
666 USE_C99_CFLAGS
667 HAVE_LIBTSS
668 TEST_LIBTSS_FALSE
669 TEST_LIBTSS_TRUE
670 HAVE_LIBTSS_FALSE
671 HAVE_LIBTSS_TRUE
672 LIBTSS_CFLAGS
673 LIBTSS_LIBS
674 TSSSTARTUP
675 SWTPM_IOCTL
676 SWTPM
677 TPMSERVER
678 TSS_INCLUDE
679 W32SOCKLIBS
680 NETLIBS
681 CROSS_COMPILING_FALSE
682 CROSS_COMPILING_TRUE
683 LIBREADLINE
684 ZLIBS
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
687 BUILD_INCLUDED_LIBINTL
688 USE_INCLUDED_LIBINTL
689 POSUB
690 LTLIBINTL
691 LIBINTL
692 INTLLIBS
693 INTL_MACOSX_LIBS
694 XGETTEXT_EXTRA_OPTIONS
695 MSGMERGE
696 XGETTEXT_015
697 XGETTEXT
698 GMSGFMT_015
699 MSGFMT_015
700 GMSGFMT
701 MSGFMT
702 GETTEXT_MACRO_VERSION
703 USE_NLS
704 LTLIBICONV
705 LIBICONV
706 SENDMAIL
707 USE_LDAP_FALSE
708 USE_LDAP_TRUE
709 LBER_LIBS
710 LDAP_CPPFLAGS
711 LDAPLIBS
712 GPGKEYS_LDAP
713 DNSLIBS
714 LIBGNUTLS_LIBS
715 LIBGNUTLS_CFLAGS
716 NTBTLS_LIBS
717 NTBTLS_CFLAGS
718 NTBTLS_CONFIG
719 NPTH_LIBS
720 NPTH_CFLAGS
721 NPTH_CONFIG
722 FUSERMOUNT
723 ENCFS
724 SQLITE3_FALSE
725 SQLITE3_TRUE
726 SQLITE3_LIBS
727 SQLITE3_CFLAGS
728 DL_LIBS
729 LIBUSB_CPPFLAGS
730 LIBUSB_LIBS
731 KSBA_LIBS
732 KSBA_CFLAGS
733 KSBA_CONFIG
734 LIBASSUAN_LIBS
735 LIBASSUAN_CFLAGS
736 LIBASSUAN_CONFIG
737 LIBGCRYPT_LIBS
738 LIBGCRYPT_CFLAGS
739 LIBGCRYPT_CONFIG
740 GPG_ERROR_MT_LIBS
741 GPG_ERROR_MT_CFLAGS
742 GPG_ERROR_LIBS
743 GPG_ERROR_CFLAGS
744 GPGRT_CONFIG
745 GPG_ERROR_CONFIG
746 HAVE_ANDROID_SYSTEM_FALSE
747 HAVE_ANDROID_SYSTEM_TRUE
748 HAVE_W32CE_SYSTEM_FALSE
749 HAVE_W32CE_SYSTEM_TRUE
750 HAVE_W32_SYSTEM_FALSE
751 HAVE_W32_SYSTEM_TRUE
752 USE_SIMPLE_GETTEXT_FALSE
753 USE_SIMPLE_GETTEXT_TRUE
754 HAVE_DOSISH_SYSTEM_FALSE
755 HAVE_DOSISH_SYSTEM_TRUE
756 PKG_CONFIG_LIBDIR
757 PKG_CONFIG_PATH
758 PKG_CONFIG
759 CC_FOR_BUILD
760 AWK_HEX_NUMBER_OPTION
761 HAVE_YAT2M_FALSE
762 HAVE_YAT2M_TRUE
763 YAT2M
764 WINDRES
765 PERL
766 AR
767 RANLIB
768 LN_S
769 SYSROOT
770 MAINT
771 MAINTAINER_MODE_FALSE
772 MAINTAINER_MODE_TRUE
773 USE_LIBDNS_FALSE
774 USE_LIBDNS_TRUE
775 USE_GPG2_HACK_FALSE
776 USE_GPG2_HACK_TRUE
777 GNUPG_DIRMNGR_LDAP_PGM_FALSE
778 GNUPG_DIRMNGR_LDAP_PGM_TRUE
779 GNUPG_DIRMNGR_LDAP_PGM
780 GNUPG_PROTECT_TOOL_PGM_FALSE
781 GNUPG_PROTECT_TOOL_PGM_TRUE
782 GNUPG_PROTECT_TOOL_PGM
783 GNUPG_KEYBOXD_PGM_FALSE
784 GNUPG_KEYBOXD_PGM_TRUE
785 GNUPG_KEYBOXD_PGM
786 GNUPG_DIRMNGR_PGM_FALSE
787 GNUPG_DIRMNGR_PGM_TRUE
788 GNUPG_DIRMNGR_PGM
789 GNUPG_TPM2DAEMON_PGM_FALSE
790 GNUPG_TPM2DAEMON_PGM_TRUE
791 GNUPG_TPM2DAEMON_PGM
792 GNUPG_SCDAEMON_PGM_FALSE
793 GNUPG_SCDAEMON_PGM_TRUE
794 GNUPG_SCDAEMON_PGM
795 GNUPG_PINENTRY_PGM_FALSE
796 GNUPG_PINENTRY_PGM_TRUE
797 GNUPG_PINENTRY_PGM
798 GNUPG_AGENT_PGM_FALSE
799 GNUPG_AGENT_PGM_TRUE
800 GNUPG_AGENT_PGM
801 PACKAGE_GT
802 EGREP
803 GREP
804 CPP
805 am__fastdepCC_FALSE
806 am__fastdepCC_TRUE
807 CCDEPMODE
808 am__nodep
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__include
813 DEPDIR
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 AM_BACKSLASH
830 AM_DEFAULT_VERBOSITY
831 AM_DEFAULT_V
832 AM_V
833 am__untar
834 am__tar
835 AMTAR
836 am__leading_dot
837 SET_MAKE
838 AWK
839 mkdir_p
840 MKDIR_P
841 INSTALL_STRIP_PROGRAM
842 STRIP
843 install_sh
844 MAKEINFO
845 AUTOHEADER
846 AUTOMAKE
847 AUTOCONF
848 ACLOCAL
849 VERSION
850 PACKAGE
851 CYGPATH_W
852 am__isrc
853 INSTALL_DATA
854 INSTALL_SCRIPT
855 INSTALL_PROGRAM
856 target_alias
857 host_alias
858 build_alias
859 LIBS
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 DEFS
864 mandir
865 localedir
866 libdir
867 psdir
868 pdfdir
869 dvidir
870 htmldir
871 infodir
872 docdir
873 oldincludedir
874 includedir
875 runstatedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL
895 am__quote'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 enable_silent_rules
900 enable_dependency_tracking
901 enable_gpgsm
902 enable_scdaemon
903 enable_g13
904 enable_dirmngr
905 enable_keyboxd
906 enable_tpm2d
907 enable_doc
908 enable_gpgtar
909 enable_wks_tools
910 with_agent_pgm
911 with_pinentry_pgm
912 with_scdaemon_pgm
913 with_tpm2daemon_pgm
914 with_dirmngr_pgm
915 with_keyboxd_pgm
916 with_protect_tool_pgm
917 with_dirmngr_ldap_pgm
918 enable_gpg_is_gpg2
919 enable_selinux_support
920 enable_large_secmem
921 with_agent_s2k_calibration
922 enable_trust_models
923 enable_tofu
924 enable_libdns
925 enable_gpg_rsa
926 enable_gpg_ecdh
927 enable_gpg_ecdsa
928 enable_gpg_eddsa
929 enable_gpg_idea
930 enable_gpg_cast5
931 enable_gpg_blowfish
932 enable_gpg_aes128
933 enable_gpg_aes192
934 enable_gpg_aes256
935 enable_gpg_twofish
936 enable_gpg_camellia128
937 enable_gpg_camellia192
938 enable_gpg_camellia256
939 enable_gpg_md5
940 enable_gpg_rmd160
941 enable_gpg_sha224
942 enable_gpg_sha384
943 enable_gpg_sha512
944 enable_zip
945 enable_bzip2
946 enable_exec
947 enable_photo_viewers
948 with_photo_viewer
949 enable_key_cache
950 with_capabilities
951 enable_card_support
952 enable_ccid_driver
953 enable_dirmngr_auto_start
954 enable_maintainer_mode
955 enable_largefile
956 with_libgpg_error_prefix
957 with_gpg_error_prefix
958 with_libgcrypt_prefix
959 with_libassuan_prefix
960 with_libksba_prefix
961 with_ksba_prefix
962 enable_sqlite
963 with_npth_prefix
964 enable_npth_debug
965 enable_ntbtls
966 with_ntbtls_prefix
967 enable_gnutls
968 with_default_trust_store_file
969 enable_ldap
970 with_ldap
971 with_mailprog
972 with_gnu_ld
973 enable_rpath
974 with_libiconv_prefix
975 enable_nls
976 with_libintl_prefix
977 enable_endian_check
978 with_zlib
979 with_bzip2
980 with_readline
981 with_tss
982 enable_optimization
983 enable_log_clock
984 enable_werror
985 enable_all_tests
986 enable_tests
987 enable_gnupg_builddir_envvar
988 enable_run_gnupg_user_socket
989 enable_build_timestamp
990 '
991       ac_precious_vars='build_alias
992 host_alias
993 target_alias
994 CC
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
999 CPP
1000 SYSROOT
1001 YAT2M
1002 CC_FOR_BUILD
1003 PKG_CONFIG
1004 PKG_CONFIG_PATH
1005 PKG_CONFIG_LIBDIR
1006 SQLITE3_CFLAGS
1007 SQLITE3_LIBS
1008 LIBGNUTLS_CFLAGS
1009 LIBGNUTLS_LIBS'
1010
1011
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1020 exec_prefix=NONE
1021 no_create=
1022 no_recursion=
1023 prefix=NONE
1024 program_prefix=NONE
1025 program_suffix=NONE
1026 program_transform_name=s,x,x,
1027 silent=
1028 site=
1029 srcdir=
1030 verbose=
1031 x_includes=NONE
1032 x_libraries=NONE
1033
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 runstatedir='${localstatedir}/run'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1053 htmldir='${docdir}'
1054 dvidir='${docdir}'
1055 pdfdir='${docdir}'
1056 psdir='${docdir}'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1060
1061 ac_prev=
1062 ac_dashdash=
1063 for ac_option
1064 do
1065   # If the previous option needs an argument, assign it.
1066   if test -n "$ac_prev"; then
1067     eval $ac_prev=\$ac_option
1068     ac_prev=
1069     continue
1070   fi
1071
1072   case $ac_option in
1073   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1074   *=)   ac_optarg= ;;
1075   *)    ac_optarg=yes ;;
1076   esac
1077
1078   # Accept the important Cygnus configure options, so we can diagnose typos.
1079
1080   case $ac_dashdash$ac_option in
1081   --)
1082     ac_dashdash=yes ;;
1083
1084   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085     ac_prev=bindir ;;
1086   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087     bindir=$ac_optarg ;;
1088
1089   -build | --build | --buil | --bui | --bu)
1090     ac_prev=build_alias ;;
1091   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092     build_alias=$ac_optarg ;;
1093
1094   -cache-file | --cache-file | --cache-fil | --cache-fi \
1095   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096     ac_prev=cache_file ;;
1097   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099     cache_file=$ac_optarg ;;
1100
1101   --config-cache | -C)
1102     cache_file=config.cache ;;
1103
1104   -datadir | --datadir | --datadi | --datad)
1105     ac_prev=datadir ;;
1106   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107     datadir=$ac_optarg ;;
1108
1109   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110   | --dataroo | --dataro | --datar)
1111     ac_prev=datarootdir ;;
1112   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114     datarootdir=$ac_optarg ;;
1115
1116   -disable-* | --disable-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid feature name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "enable_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval enable_$ac_useropt=no ;;
1131
1132   -docdir | --docdir | --docdi | --doc | --do)
1133     ac_prev=docdir ;;
1134   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135     docdir=$ac_optarg ;;
1136
1137   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1138     ac_prev=dvidir ;;
1139   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140     dvidir=$ac_optarg ;;
1141
1142   -enable-* | --enable-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       as_fn_error $? "invalid feature name: $ac_useropt"
1147     ac_useropt_orig=$ac_useropt
1148     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149     case $ac_user_opts in
1150       *"
1151 "enable_$ac_useropt"
1152 "*) ;;
1153       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154          ac_unrecognized_sep=', ';;
1155     esac
1156     eval enable_$ac_useropt=\$ac_optarg ;;
1157
1158   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1159   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1160   | --exec | --exe | --ex)
1161     ac_prev=exec_prefix ;;
1162   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1163   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1164   | --exec=* | --exe=* | --ex=*)
1165     exec_prefix=$ac_optarg ;;
1166
1167   -gas | --gas | --ga | --g)
1168     # Obsolete; use --with-gas.
1169     with_gas=yes ;;
1170
1171   -help | --help | --hel | --he | -h)
1172     ac_init_help=long ;;
1173   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1174     ac_init_help=recursive ;;
1175   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1176     ac_init_help=short ;;
1177
1178   -host | --host | --hos | --ho)
1179     ac_prev=host_alias ;;
1180   -host=* | --host=* | --hos=* | --ho=*)
1181     host_alias=$ac_optarg ;;
1182
1183   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1184     ac_prev=htmldir ;;
1185   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1186   | --ht=*)
1187     htmldir=$ac_optarg ;;
1188
1189   -includedir | --includedir | --includedi | --included | --include \
1190   | --includ | --inclu | --incl | --inc)
1191     ac_prev=includedir ;;
1192   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1193   | --includ=* | --inclu=* | --incl=* | --inc=*)
1194     includedir=$ac_optarg ;;
1195
1196   -infodir | --infodir | --infodi | --infod | --info | --inf)
1197     ac_prev=infodir ;;
1198   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1199     infodir=$ac_optarg ;;
1200
1201   -libdir | --libdir | --libdi | --libd)
1202     ac_prev=libdir ;;
1203   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1204     libdir=$ac_optarg ;;
1205
1206   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1207   | --libexe | --libex | --libe)
1208     ac_prev=libexecdir ;;
1209   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1210   | --libexe=* | --libex=* | --libe=*)
1211     libexecdir=$ac_optarg ;;
1212
1213   -localedir | --localedir | --localedi | --localed | --locale)
1214     ac_prev=localedir ;;
1215   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1216     localedir=$ac_optarg ;;
1217
1218   -localstatedir | --localstatedir | --localstatedi | --localstated \
1219   | --localstate | --localstat | --localsta | --localst | --locals)
1220     ac_prev=localstatedir ;;
1221   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1222   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1223     localstatedir=$ac_optarg ;;
1224
1225   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1226     ac_prev=mandir ;;
1227   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1228     mandir=$ac_optarg ;;
1229
1230   -nfp | --nfp | --nf)
1231     # Obsolete; use --without-fp.
1232     with_fp=no ;;
1233
1234   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1235   | --no-cr | --no-c | -n)
1236     no_create=yes ;;
1237
1238   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1239   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1240     no_recursion=yes ;;
1241
1242   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1243   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1244   | --oldin | --oldi | --old | --ol | --o)
1245     ac_prev=oldincludedir ;;
1246   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1247   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1248   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1249     oldincludedir=$ac_optarg ;;
1250
1251   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1252     ac_prev=prefix ;;
1253   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1254     prefix=$ac_optarg ;;
1255
1256   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1257   | --program-pre | --program-pr | --program-p)
1258     ac_prev=program_prefix ;;
1259   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1260   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1261     program_prefix=$ac_optarg ;;
1262
1263   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1264   | --program-suf | --program-su | --program-s)
1265     ac_prev=program_suffix ;;
1266   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1267   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1268     program_suffix=$ac_optarg ;;
1269
1270   -program-transform-name | --program-transform-name \
1271   | --program-transform-nam | --program-transform-na \
1272   | --program-transform-n | --program-transform- \
1273   | --program-transform | --program-transfor \
1274   | --program-transfo | --program-transf \
1275   | --program-trans | --program-tran \
1276   | --progr-tra | --program-tr | --program-t)
1277     ac_prev=program_transform_name ;;
1278   -program-transform-name=* | --program-transform-name=* \
1279   | --program-transform-nam=* | --program-transform-na=* \
1280   | --program-transform-n=* | --program-transform-=* \
1281   | --program-transform=* | --program-transfor=* \
1282   | --program-transfo=* | --program-transf=* \
1283   | --program-trans=* | --program-tran=* \
1284   | --progr-tra=* | --program-tr=* | --program-t=*)
1285     program_transform_name=$ac_optarg ;;
1286
1287   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1288     ac_prev=pdfdir ;;
1289   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1290     pdfdir=$ac_optarg ;;
1291
1292   -psdir | --psdir | --psdi | --psd | --ps)
1293     ac_prev=psdir ;;
1294   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1295     psdir=$ac_optarg ;;
1296
1297   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298   | -silent | --silent | --silen | --sile | --sil)
1299     silent=yes ;;
1300
1301   -runstatedir | --runstatedir | --runstatedi | --runstated \
1302   | --runstate | --runstat | --runsta | --runst | --runs \
1303   | --run | --ru | --r)
1304     ac_prev=runstatedir ;;
1305   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1306   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1307   | --run=* | --ru=* | --r=*)
1308     runstatedir=$ac_optarg ;;
1309
1310   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311     ac_prev=sbindir ;;
1312   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313   | --sbi=* | --sb=*)
1314     sbindir=$ac_optarg ;;
1315
1316   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318   | --sharedst | --shareds | --shared | --share | --shar \
1319   | --sha | --sh)
1320     ac_prev=sharedstatedir ;;
1321   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324   | --sha=* | --sh=*)
1325     sharedstatedir=$ac_optarg ;;
1326
1327   -site | --site | --sit)
1328     ac_prev=site ;;
1329   -site=* | --site=* | --sit=*)
1330     site=$ac_optarg ;;
1331
1332   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333     ac_prev=srcdir ;;
1334   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335     srcdir=$ac_optarg ;;
1336
1337   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338   | --syscon | --sysco | --sysc | --sys | --sy)
1339     ac_prev=sysconfdir ;;
1340   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342     sysconfdir=$ac_optarg ;;
1343
1344   -target | --target | --targe | --targ | --tar | --ta | --t)
1345     ac_prev=target_alias ;;
1346   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347     target_alias=$ac_optarg ;;
1348
1349   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350     verbose=yes ;;
1351
1352   -version | --version | --versio | --versi | --vers | -V)
1353     ac_init_version=: ;;
1354
1355   -with-* | --with-*)
1356     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357     # Reject names that are not valid shell variable names.
1358     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359       as_fn_error $? "invalid package name: $ac_useropt"
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=\$ac_optarg ;;
1370
1371   -without-* | --without-*)
1372     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375       as_fn_error $? "invalid package name: $ac_useropt"
1376     ac_useropt_orig=$ac_useropt
1377     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378     case $ac_user_opts in
1379       *"
1380 "with_$ac_useropt"
1381 "*) ;;
1382       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383          ac_unrecognized_sep=', ';;
1384     esac
1385     eval with_$ac_useropt=no ;;
1386
1387   --x)
1388     # Obsolete; use --with-x.
1389     with_x=yes ;;
1390
1391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392   | --x-incl | --x-inc | --x-in | --x-i)
1393     ac_prev=x_includes ;;
1394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396     x_includes=$ac_optarg ;;
1397
1398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400     ac_prev=x_libraries ;;
1401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403     x_libraries=$ac_optarg ;;
1404
1405   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1407     ;;
1408
1409   *=*)
1410     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411     # Reject names that are not valid shell variable names.
1412     case $ac_envvar in #(
1413       '' | [0-9]* | *[!_$as_cr_alnum]* )
1414       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1415     esac
1416     eval $ac_envvar=\$ac_optarg
1417     export $ac_envvar ;;
1418
1419   *)
1420     # FIXME: should be removed in autoconf 3.0.
1421     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1425     ;;
1426
1427   esac
1428 done
1429
1430 if test -n "$ac_prev"; then
1431   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432   as_fn_error $? "missing argument to $ac_option"
1433 fi
1434
1435 if test -n "$ac_unrecognized_opts"; then
1436   case $enable_option_checking in
1437     no) ;;
1438     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440   esac
1441 fi
1442
1443 # Check all directory arguments for consistency.
1444 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445                 datadir sysconfdir sharedstatedir localstatedir includedir \
1446                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447                 libdir localedir mandir runstatedir
1448 do
1449   eval ac_val=\$$ac_var
1450   # Remove trailing slashes.
1451   case $ac_val in
1452     */ )
1453       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454       eval $ac_var=\$ac_val;;
1455   esac
1456   # Be sure to have absolute directory names.
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1462 done
1463
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1467 build=$build_alias
1468 host=$host_alias
1469 target=$target_alias
1470
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473   if test "x$build_alias" = x; then
1474     cross_compiling=maybe
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   as_fn_error $? "working directory cannot be determined"
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491   as_fn_error $? "pwd does not report name of working directory"
1492
1493
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496   ac_srcdir_defaulted=yes
1497   # Try the directory containing this script, then the parent directory.
1498   ac_confdir=`$as_dirname -- "$as_myself" ||
1499 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500          X"$as_myself" : 'X\(//\)[^/]' \| \
1501          X"$as_myself" : 'X\(//\)$' \| \
1502          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1503 $as_echo X"$as_myself" |
1504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)[^/].*/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\/\)$/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\).*/{
1517             s//\1/
1518             q
1519           }
1520           s/.*/./; q'`
1521   srcdir=$ac_confdir
1522   if test ! -r "$srcdir/$ac_unique_file"; then
1523     srcdir=..
1524   fi
1525 else
1526   ac_srcdir_defaulted=no
1527 fi
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1531 fi
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1533 ac_abs_confdir=`(
1534         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1535         pwd)`
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538   srcdir=.
1539 fi
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1543 case $srcdir in
1544 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 esac
1546 for ac_var in $ac_precious_vars; do
1547   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548   eval ac_env_${ac_var}_value=\$${ac_var}
1549   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1551 done
1552
1553 #
1554 # Report the --help message.
1555 #
1556 if test "$ac_init_help" = "long"; then
1557   # Omit some internal or obsolete options to make the list less imposing.
1558   # This message is too long to be a string in the A/UX 3.1 sh.
1559   cat <<_ACEOF
1560 \`configure' configures gnupg 2.3.5 to adapt to many kinds of systems.
1561
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1563
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE.  See below for descriptions of some of the useful variables.
1566
1567 Defaults for the options are specified in brackets.
1568
1569 Configuration:
1570   -h, --help              display this help and exit
1571       --help=short        display options specific to this package
1572       --help=recursive    display the short help of all the included packages
1573   -V, --version           display version information and exit
1574   -q, --quiet, --silent   do not print \`checking ...' messages
1575       --cache-file=FILE   cache test results in FILE [disabled]
1576   -C, --config-cache      alias for \`--cache-file=config.cache'
1577   -n, --no-create         do not create output files
1578       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1579
1580 Installation directories:
1581   --prefix=PREFIX         install architecture-independent files in PREFIX
1582                           [$ac_default_prefix]
1583   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1584                           [PREFIX]
1585
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1590
1591 For better control, use the options below.
1592
1593 Fine tuning of the installation directories:
1594   --bindir=DIR            user executables [EPREFIX/bin]
1595   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1596   --libexecdir=DIR        program executables [EPREFIX/libexec]
1597   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1598   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1599   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1600   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1601   --libdir=DIR            object code libraries [EPREFIX/lib]
1602   --includedir=DIR        C header files [PREFIX/include]
1603   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1604   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1605   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1606   --infodir=DIR           info documentation [DATAROOTDIR/info]
1607   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1608   --mandir=DIR            man documentation [DATAROOTDIR/man]
1609   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1610   --htmldir=DIR           html documentation [DOCDIR]
1611   --dvidir=DIR            dvi documentation [DOCDIR]
1612   --pdfdir=DIR            pdf documentation [DOCDIR]
1613   --psdir=DIR             ps documentation [DOCDIR]
1614 _ACEOF
1615
1616   cat <<\_ACEOF
1617
1618 Program names:
1619   --program-prefix=PREFIX            prepend PREFIX to installed program names
1620   --program-suffix=SUFFIX            append SUFFIX to installed program names
1621   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1622
1623 System types:
1624   --build=BUILD     configure for building on BUILD [guessed]
1625   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1626 _ACEOF
1627 fi
1628
1629 if test -n "$ac_init_help"; then
1630   case $ac_init_help in
1631      short | recursive ) echo "Configuration of gnupg 2.3.5:";;
1632    esac
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-option-checking  ignore unrecognized --enable/--with options
1637   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1638   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1639   --enable-silent-rules   less verbose build output (undo: "make V=1")
1640   --disable-silent-rules  verbose build output (undo: "make V=0")
1641   --enable-dependency-tracking
1642                           do not reject slow dependency extractors
1643   --disable-dependency-tracking
1644                           speeds up one-time build
1645   --disable-gpgsm         do not build the gpgsm program
1646   --disable-scdaemon      do not build the scdaemon program
1647   --enable-g13            build the g13 program
1648   --disable-dirmngr       do not build the dirmngr program
1649   --disable-keyboxd       do not build the keyboxd program
1650   --disable-tpm2d         do not build the tpm2d program
1651   --disable-doc           do not build the doc program
1652   --disable-gpgtar        do not build the gpgtar program
1653   --disable-wks-tools     do not build the wks-tools program
1654   --enable-gpg-is-gpg2    Set installed name of gpg to gpg2
1655   --enable-selinux-support
1656                           enable SELinux support
1657   --enable-large-secmem   allocate extra secure memory
1658   --disable-trust-models  disable all trust models except "always"
1659   --disable-tofu          disable the TOFU trust model
1660   --disable-libdns        do not build with libdns support
1661   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1662   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1663   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1664   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1665   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1666   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1667   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1668   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1669   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1670   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1671   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1672   --disable-gpg-camellia128
1673                           disable the CAMELLIA128 cipher algorithm in gpg
1674   --disable-gpg-camellia192
1675                           disable the CAMELLIA192 cipher algorithm in gpg
1676   --disable-gpg-camellia256
1677                           disable the CAMELLIA256 cipher algorithm in gpg
1678   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1679   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1680   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1681   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1682   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1683   --disable-zip           disable the ZIP and ZLIB compression algorithm
1684   --disable-bzip2         disable the BZIP2 compression algorithm
1685   --disable-exec          disable all external program execution
1686   --disable-photo-viewers disable photo ID viewers
1687   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1688   --disable-card-support  disable smartcard support
1689   --disable-ccid-driver   disable the internal CCID driver
1690   --disable-dirmngr-auto-start
1691                           disable auto starting of the dirmngr
1692   --enable-maintainer-mode
1693                           enable make rules and dependencies not useful (and
1694                           sometimes confusing) to the casual installer
1695   --disable-largefile     omit support for large files
1696   --disable-sqlite        disable the use of SQLITE
1697   --enable-npth-debug     build with debug version of npth
1698   --disable-ntbtls        disable the use of NTBTLS as TLS library
1699   --disable-gnutls        disable GNUTLS as fallback TLS library
1700   --disable-ldap          disable LDAP support
1701   --disable-rpath         do not hardcode runtime library paths
1702   --disable-nls           do not use Native Language Support
1703   --disable-endian-check  disable the endian check and trust the OS provided
1704                           macros
1705   --disable-optimization  disable compiler optimization
1706   --enable-log-clock      enable log_clock timestamps
1707   --enable-werror         append -Werror to CFLAGS
1708   --enable-all-tests      let "make check" run all tests
1709   --disable-tests         do not run any tests
1710
1711   --enable-run-gnupg-user-socket
1712                           try /run/gnupg/user for sockets prior to /run/user
1713   --enable-build-timestamp
1714                           set an explicit build timestamp for reproducibility.
1715                           (default is the current time in ISO-8601 format)
1716
1717 Optional Packages:
1718   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1719   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1720   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1721   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1722   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1723   --with-tpm2daemon-pgm=PATH  Use PATH as the default for the tpm2daemon)
1724   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1725   --with-keyboxd-pgm=PATH  Use PATH as the default for the keyboxd)
1726   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1727   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1728   --with-agent-s2k-calibration=MSEC
1729                           calibrate passphrase stretching (s2k) to MSEC
1730                           milliseconds
1731   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1732   --with-capabilities     use linux capabilities default=no
1733   --with-libgpg-error-prefix=PFX
1734                           prefix where GPG Error is installed (optional)
1735
1736   --with-libgcrypt-prefix=PFX
1737                           prefix where LIBGCRYPT is installed (optional)
1738   --with-libassuan-prefix=PFX
1739                           prefix where LIBASSUAN is installed (optional)
1740   --with-libksba-prefix=PFX
1741                           prefix where KSBA is installed (optional)
1742   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1743   --with-ntbtls-prefix=PFX
1744                           prefix where NTBTLS is installed (optional)
1745   --with-default-trust-store-file=FILE
1746                           Use FILE as system trust store
1747   --with-ldap=DIR         look for the LDAP library in DIR
1748   --with-mailprog=NAME    use "NAME -t" for mail transport
1749   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1750   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1751   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1752   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1753   --without-libintl-prefix     don't search for libintl in includedir and libdir
1754   --with-zlib=DIR         use libz in DIR
1755   --with-bzip2=DIR        look for bzip2 in DIR
1756   --with-readline=DIR     look for the readline library in DIR
1757   --with-tss=TSS          use the specified TPM Software Stack (ibm, intel, or
1758                           autodetect)
1759
1760 Some influential environment variables:
1761   CC          C compiler command
1762   CFLAGS      C compiler flags
1763   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1764               nonstandard directory <lib dir>
1765   LIBS        libraries to pass to the linker, e.g. -l<library>
1766   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1767               you have headers in a nonstandard directory <include dir>
1768   CPP         C preprocessor
1769   SYSROOT     locate config scripts also below that directory
1770   YAT2M       tool to convert texi to man pages
1771   CC_FOR_BUILD
1772               build system C compiler
1773   PKG_CONFIG  path to pkg-config utility
1774   PKG_CONFIG_PATH
1775               directories to add to pkg-config's search path
1776   PKG_CONFIG_LIBDIR
1777               path overriding pkg-config's built-in search path
1778   SQLITE3_CFLAGS
1779               C compiler flags for SQLITE3, overriding pkg-config
1780   SQLITE3_LIBS
1781               linker flags for SQLITE3, overriding pkg-config
1782   LIBGNUTLS_CFLAGS
1783               C compiler flags for LIBGNUTLS, overriding pkg-config
1784   LIBGNUTLS_LIBS
1785               linker flags for LIBGNUTLS, overriding pkg-config
1786
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1789
1790 Report bugs to <https://bugs.gnupg.org>.
1791 _ACEOF
1792 ac_status=$?
1793 fi
1794
1795 if test "$ac_init_help" = "recursive"; then
1796   # If there are subdirs, report their specific --help.
1797   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1798     test -d "$ac_dir" ||
1799       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800       continue
1801     ac_builddir=.
1802
1803 case "$ac_dir" in
1804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 *)
1806   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1807   # A ".." for each directory in $ac_dir_suffix.
1808   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1809   case $ac_top_builddir_sub in
1810   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1812   esac ;;
1813 esac
1814 ac_abs_top_builddir=$ac_pwd
1815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1816 # for backward compatibility:
1817 ac_top_builddir=$ac_top_build_prefix
1818
1819 case $srcdir in
1820   .)  # We are building in place.
1821     ac_srcdir=.
1822     ac_top_srcdir=$ac_top_builddir_sub
1823     ac_abs_top_srcdir=$ac_pwd ;;
1824   [\\/]* | ?:[\\/]* )  # Absolute name.
1825     ac_srcdir=$srcdir$ac_dir_suffix;
1826     ac_top_srcdir=$srcdir
1827     ac_abs_top_srcdir=$srcdir ;;
1828   *) # Relative name.
1829     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1830     ac_top_srcdir=$ac_top_build_prefix$srcdir
1831     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1832 esac
1833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1834
1835     cd "$ac_dir" || { ac_status=$?; continue; }
1836     # Check for guested configure.
1837     if test -f "$ac_srcdir/configure.gnu"; then
1838       echo &&
1839       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1840     elif test -f "$ac_srcdir/configure"; then
1841       echo &&
1842       $SHELL "$ac_srcdir/configure" --help=recursive
1843     else
1844       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1845     fi || ac_status=$?
1846     cd "$ac_pwd" || { ac_status=$?; break; }
1847   done
1848 fi
1849
1850 test -n "$ac_init_help" && exit $ac_status
1851 if $ac_init_version; then
1852   cat <<\_ACEOF
1853 gnupg configure 2.3.5
1854 generated by GNU Autoconf 2.69
1855
1856 Copyright (C) 2012 Free Software Foundation, Inc.
1857 This configure script is free software; the Free Software Foundation
1858 gives unlimited permission to copy, distribute and modify it.
1859 _ACEOF
1860   exit
1861 fi
1862
1863 ## ------------------------ ##
1864 ## Autoconf initialization. ##
1865 ## ------------------------ ##
1866
1867 # ac_fn_c_try_compile LINENO
1868 # --------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_compile ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   rm -f conftest.$ac_objext
1874   if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_compile") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && {
1890          test -z "$ac_c_werror_flag" ||
1891          test ! -s conftest.err
1892        } && test -s conftest.$ac_objext; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898         ac_retval=1
1899 fi
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_c_try_compile
1904
1905 # ac_fn_c_try_cpp LINENO
1906 # ----------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_c_try_cpp ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914   *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919   ac_status=$?
1920   if test -s conftest.err; then
1921     grep -v '^ *+' conftest.err >conftest.er1
1922     cat conftest.er1 >&5
1923     mv -f conftest.er1 conftest.err
1924   fi
1925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926   test $ac_status = 0; } > conftest.i && {
1927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1928          test ! -s conftest.err
1929        }; then :
1930   ac_retval=0
1931 else
1932   $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935     ac_retval=1
1936 fi
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938   as_fn_set_status $ac_retval
1939
1940 } # ac_fn_c_try_cpp
1941
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_c_check_header_mongrel ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   if eval \${$3+:} false; then :
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954   $as_echo_n "(cached) " >&6
1955 fi
1956 eval ac_res=\$$3
1957                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960   # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969   ac_header_compiler=yes
1970 else
1971   ac_header_compiler=no
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1976
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985   ac_header_preproc=yes
1986 else
1987   ac_header_preproc=no
1988 fi
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1992
1993 # So?  What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995   yes:no: )
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000     ;;
2001   no:yes:* )
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ( $as_echo "## ------------------------------------- ##
2013 ## Report this to https://bugs.gnupg.org ##
2014 ## ------------------------------------- ##"
2015      ) | sed "s/^/$as_me: WARNING:     /" >&2
2016     ;;
2017 esac
2018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021   $as_echo_n "(cached) " >&6
2022 else
2023   eval "$3=\$ac_header_compiler"
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 fi
2029   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_c_check_header_mongrel
2032
2033 # ac_fn_c_try_run LINENO
2034 # ----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2036 # that executables *can* be run.
2037 ac_fn_c_try_run ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   if { { ac_try="$ac_link"
2041 case "(($ac_try" in
2042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043   *) ac_try_echo=$ac_try;;
2044 esac
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047   (eval "$ac_link") 2>&5
2048   ac_status=$?
2049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2051   { { case "(($ac_try" in
2052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053   *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057   (eval "$ac_try") 2>&5
2058   ac_status=$?
2059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060   test $ac_status = 0; }; }; then :
2061   ac_retval=0
2062 else
2063   $as_echo "$as_me: program exited with status $ac_status" >&5
2064        $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067        ac_retval=$ac_status
2068 fi
2069   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_try_run
2074
2075 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists and can be compiled using the include files in
2078 # INCLUDES, setting the cache variable VAR accordingly.
2079 ac_fn_c_check_header_compile ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085   $as_echo_n "(cached) " >&6
2086 else
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 $4
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093   eval "$3=yes"
2094 else
2095   eval "$3=no"
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104 } # ac_fn_c_check_header_compile
2105
2106 # ac_fn_c_try_link LINENO
2107 # -----------------------
2108 # Try to link conftest.$ac_ext, and return whether this succeeded.
2109 ac_fn_c_try_link ()
2110 {
2111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112   rm -f conftest.$ac_objext conftest$ac_exeext
2113   if { { ac_try="$ac_link"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120   (eval "$ac_link") 2>conftest.err
2121   ac_status=$?
2122   if test -s conftest.err; then
2123     grep -v '^ *+' conftest.err >conftest.er1
2124     cat conftest.er1 >&5
2125     mv -f conftest.er1 conftest.err
2126   fi
2127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128   test $ac_status = 0; } && {
2129          test -z "$ac_c_werror_flag" ||
2130          test ! -s conftest.err
2131        } && test -s conftest$ac_exeext && {
2132          test "$cross_compiling" = yes ||
2133          test -x conftest$ac_exeext
2134        }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140         ac_retval=1
2141 fi
2142   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2143   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2144   # interfere with the next link command; also delete a directory that is
2145   # left behind by Apple's compiler.  We do this before executing the actions.
2146   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148   as_fn_set_status $ac_retval
2149
2150 } # ac_fn_c_try_link
2151
2152 # ac_fn_c_check_func LINENO FUNC VAR
2153 # ----------------------------------
2154 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2155 ac_fn_c_check_func ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161   $as_echo_n "(cached) " >&6
2162 else
2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2167 #define $2 innocuous_$2
2168
2169 /* System header to define __stub macros and hopefully few prototypes,
2170     which can conflict with char $2 (); below.
2171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2172     <limits.h> exists even on freestanding compilers.  */
2173
2174 #ifdef __STDC__
2175 # include <limits.h>
2176 #else
2177 # include <assert.h>
2178 #endif
2179
2180 #undef $2
2181
2182 /* Override any GCC internal prototype to avoid an error.
2183    Use char because int might match the return type of a GCC
2184    builtin and then its argument prototype would still apply.  */
2185 #ifdef __cplusplus
2186 extern "C"
2187 #endif
2188 char $2 ();
2189 /* The GNU C library defines this for functions which it implements
2190     to always fail with ENOSYS.  Some functions are actually named
2191     something starting with __ and the normal name is an alias.  */
2192 #if defined __stub_$2 || defined __stub___$2
2193 choke me
2194 #endif
2195
2196 int
2197 main ()
2198 {
2199 return $2 ();
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_link "$LINENO"; then :
2205   eval "$3=yes"
2206 else
2207   eval "$3=no"
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext \
2210     conftest$ac_exeext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$3
2213                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_func
2218
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2224 {
2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229   $as_echo_n "(cached) " >&6
2230 else
2231   eval "$3=no"
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 int
2236 main ()
2237 {
2238 if (sizeof ($2))
2239          return 0;
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 int
2249 main ()
2250 {
2251 if (sizeof (($2)))
2252             return 0;
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258
2259 else
2260   eval "$3=yes"
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 eval ac_res=\$$3
2267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270
2271 } # ac_fn_c_check_type
2272
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_decl ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   as_decl_name=`echo $2|sed 's/ *(.*//'`
2281   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285   $as_echo_n "(cached) " >&6
2286 else
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 int
2291 main ()
2292 {
2293 #ifndef $as_decl_name
2294 #ifdef __cplusplus
2295   (void) $as_decl_use;
2296 #else
2297   (void) $as_decl_name;
2298 #endif
2299 #endif
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306   eval "$3=yes"
2307 else
2308   eval "$3=no"
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$3
2313                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
2317 } # ac_fn_c_check_decl
2318
2319 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2320 # --------------------------------------------
2321 # Tries to find the compile-time value of EXPR in a program that includes
2322 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2323 # computed
2324 ac_fn_c_compute_int ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   if test "$cross_compiling" = yes; then
2328     # Depending upon the size, compute the lo and hi bounds.
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 int
2333 main ()
2334 {
2335 static int test_array [1 - 2 * !(($2) >= 0)];
2336 test_array [0] = 0;
2337 return test_array [0];
2338
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344   ac_lo=0 ac_mid=0
2345   while :; do
2346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 $4
2349 int
2350 main ()
2351 {
2352 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2353 test_array [0] = 0;
2354 return test_array [0];
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361   ac_hi=$ac_mid; break
2362 else
2363   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2364                         if test $ac_lo -le $ac_mid; then
2365                           ac_lo= ac_hi=
2366                           break
2367                         fi
2368                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371   done
2372 else
2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 int
2377 main ()
2378 {
2379 static int test_array [1 - 2 * !(($2) < 0)];
2380 test_array [0] = 0;
2381 return test_array [0];
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388   ac_hi=-1 ac_mid=-1
2389   while :; do
2390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 $4
2393 int
2394 main ()
2395 {
2396 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2399
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405   ac_lo=$ac_mid; break
2406 else
2407   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2408                         if test $ac_mid -le $ac_hi; then
2409                           ac_lo= ac_hi=
2410                           break
2411                         fi
2412                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2413 fi
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415   done
2416 else
2417   ac_lo= ac_hi=
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 fi
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 # Binary search between lo and hi bounds.
2423 while test "x$ac_lo" != "x$ac_hi"; do
2424   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h.  */
2427 $4
2428 int
2429 main ()
2430 {
2431 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2432 test_array [0] = 0;
2433 return test_array [0];
2434
2435   ;
2436   return 0;
2437 }
2438 _ACEOF
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440   ac_hi=$ac_mid
2441 else
2442   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2443 fi
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 done
2446 case $ac_lo in #((
2447 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2448 '') ac_retval=1 ;;
2449 esac
2450   else
2451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 $4
2454 static long int longval () { return $2; }
2455 static unsigned long int ulongval () { return $2; }
2456 #include <stdio.h>
2457 #include <stdlib.h>
2458 int
2459 main ()
2460 {
2461
2462   FILE *f = fopen ("conftest.val", "w");
2463   if (! f)
2464     return 1;
2465   if (($2) < 0)
2466     {
2467       long int i = longval ();
2468       if (i != ($2))
2469         return 1;
2470       fprintf (f, "%ld", i);
2471     }
2472   else
2473     {
2474       unsigned long int i = ulongval ();
2475       if (i != ($2))
2476         return 1;
2477       fprintf (f, "%lu", i);
2478     }
2479   /* Do not output a trailing newline, as this causes \r\n confusion
2480      on some platforms.  */
2481   return ferror (f) || fclose (f) != 0;
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_run "$LINENO"; then :
2488   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2489 else
2490   ac_retval=1
2491 fi
2492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2493   conftest.$ac_objext conftest.beam conftest.$ac_ext
2494 rm -f conftest.val
2495
2496   fi
2497   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498   as_fn_set_status $ac_retval
2499
2500 } # ac_fn_c_compute_int
2501
2502 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2503 # ----------------------------------------------------
2504 # Tries to find if the field MEMBER exists in type AGGR, after including
2505 # INCLUDES, setting cache variable VAR accordingly.
2506 ac_fn_c_check_member ()
2507 {
2508   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2510 $as_echo_n "checking for $2.$3... " >&6; }
2511 if eval \${$4+:} false; then :
2512   $as_echo_n "(cached) " >&6
2513 else
2514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 $5
2517 int
2518 main ()
2519 {
2520 static $2 ac_aggr;
2521 if (ac_aggr.$3)
2522 return 0;
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528   eval "$4=yes"
2529 else
2530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h.  */
2532 $5
2533 int
2534 main ()
2535 {
2536 static $2 ac_aggr;
2537 if (sizeof ac_aggr.$3)
2538 return 0;
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544   eval "$4=yes"
2545 else
2546   eval "$4=no"
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552 eval ac_res=\$$4
2553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_c_check_member
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2561
2562 It was created by gnupg $as_me 2.3.5, which was
2563 generated by GNU Autoconf 2.69.  Invocation command line was
2564
2565   $ $0 $@
2566
2567 _ACEOF
2568 exec 5>>config.log
2569 {
2570 cat <<_ASUNAME
2571 ## --------- ##
2572 ## Platform. ##
2573 ## --------- ##
2574
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2580
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2583
2584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2591
2592 _ASUNAME
2593
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     $as_echo "PATH: $as_dir"
2600   done
2601 IFS=$as_save_IFS
2602
2603 } >&5
2604
2605 cat >&5 <<_ACEOF
2606
2607
2608 ## ----------- ##
2609 ## Core tests. ##
2610 ## ----------- ##
2611
2612 _ACEOF
2613
2614
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2620 ac_configure_args=
2621 ac_configure_args0=
2622 ac_configure_args1=
2623 ac_must_keep_next=false
2624 for ac_pass in 1 2
2625 do
2626   for ac_arg
2627   do
2628     case $ac_arg in
2629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631     | -silent | --silent | --silen | --sile | --sil)
2632       continue ;;
2633     *\'*)
2634       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635     esac
2636     case $ac_pass in
2637     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2638     2)
2639       as_fn_append ac_configure_args1 " '$ac_arg'"
2640       if test $ac_must_keep_next = true; then
2641         ac_must_keep_next=false # Got value, back to normal.
2642       else
2643         case $ac_arg in
2644           *=* | --config-cache | -C | -disable-* | --disable-* \
2645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647           | -with-* | --with-* | -without-* | --without-* | --x)
2648             case "$ac_configure_args0 " in
2649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650             esac
2651             ;;
2652           -* ) ac_must_keep_next=true ;;
2653         esac
2654       fi
2655       as_fn_append ac_configure_args " '$ac_arg'"
2656       ;;
2657     esac
2658   done
2659 done
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2662
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log.  We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669   # Save into config.log some information that might help in debugging.
2670   {
2671     echo
2672
2673     $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2676     echo
2677     # The following way of writing the cache mishandles newlines in values,
2678 (
2679   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680     eval ac_val=\$$ac_var
2681     case $ac_val in #(
2682     *${as_nl}*)
2683       case $ac_var in #(
2684       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686       esac
2687       case $ac_var in #(
2688       _ | IFS | as_nl) ;; #(
2689       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690       *) { eval $ac_var=; unset $ac_var;} ;;
2691       esac ;;
2692     esac
2693   done
2694   (set) 2>&1 |
2695     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696     *${as_nl}ac_space=\ *)
2697       sed -n \
2698         "s/'\''/'\''\\\\'\'''\''/g;
2699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700       ;; #(
2701     *)
2702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2703       ;;
2704     esac |
2705     sort
2706 )
2707     echo
2708
2709     $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2712     echo
2713     for ac_var in $ac_subst_vars
2714     do
2715       eval ac_val=\$$ac_var
2716       case $ac_val in
2717       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718       esac
2719       $as_echo "$ac_var='\''$ac_val'\''"
2720     done | sort
2721     echo
2722
2723     if test -n "$ac_subst_files"; then
2724       $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2727       echo
2728       for ac_var in $ac_subst_files
2729       do
2730         eval ac_val=\$$ac_var
2731         case $ac_val in
2732         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733         esac
2734         $as_echo "$ac_var='\''$ac_val'\''"
2735       done | sort
2736       echo
2737     fi
2738
2739     if test -s confdefs.h; then
2740       $as_echo "## ----------- ##
2741 ## confdefs.h. ##
2742 ## ----------- ##"
2743       echo
2744       cat confdefs.h
2745       echo
2746     fi
2747     test "$ac_signal" != 0 &&
2748       $as_echo "$as_me: caught signal $ac_signal"
2749     $as_echo "$as_me: exit $exit_status"
2750   } >&5
2751   rm -f core *.core core.conftest.* &&
2752     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753     exit $exit_status
2754 ' 0
2755 for ac_signal in 1 2 13 15; do
2756   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2757 done
2758 ac_signal=0
2759
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2762
2763 $as_echo "/* confdefs.h */" > confdefs.h
2764
2765 # Predefined preprocessor variables.
2766
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 _ACEOF
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 _ACEOF
2774
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 _ACEOF
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 _ACEOF
2782
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 _ACEOF
2786
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2789 _ACEOF
2790
2791
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2794 ac_site_file1=NONE
2795 ac_site_file2=NONE
2796 if test -n "$CONFIG_SITE"; then
2797   # We do not want a PATH search for config.site.
2798   case $CONFIG_SITE in #((
2799     -*)  ac_site_file1=./$CONFIG_SITE;;
2800     */*) ac_site_file1=$CONFIG_SITE;;
2801     *)   ac_site_file1=./$CONFIG_SITE;;
2802   esac
2803 elif test "x$prefix" != xNONE; then
2804   ac_site_file1=$prefix/share/config.site
2805   ac_site_file2=$prefix/etc/config.site
2806 else
2807   ac_site_file1=$ac_default_prefix/share/config.site
2808   ac_site_file2=$ac_default_prefix/etc/config.site
2809 fi
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2811 do
2812   test "x$ac_site_file" = xNONE && continue
2813   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816     sed 's/^/| /' "$ac_site_file" >&5
2817     . "$ac_site_file" \
2818       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2822   fi
2823 done
2824
2825 if test -r "$cache_file"; then
2826   # Some versions of bash will fail to source /dev/null (special files
2827   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2828   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2831     case $cache_file in
2832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833       *)                      . "./$cache_file";;
2834     esac
2835   fi
2836 else
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2839   >$cache_file
2840 fi
2841
2842 gt_needs="$gt_needs need-ngettext"
2843 as_fn_append ac_header_list " sys/socket.h"
2844 # Check that the precious variables saved in the cache have kept the same
2845 # value.
2846 ac_cache_corrupted=false
2847 for ac_var in $ac_precious_vars; do
2848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2849   eval ac_new_set=\$ac_env_${ac_var}_set
2850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2851   eval ac_new_val=\$ac_env_${ac_var}_value
2852   case $ac_old_set,$ac_new_set in
2853     set,)
2854       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2856       ac_cache_corrupted=: ;;
2857     ,set)
2858       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2860       ac_cache_corrupted=: ;;
2861     ,);;
2862     *)
2863       if test "x$ac_old_val" != "x$ac_new_val"; then
2864         # differences in whitespace do not lead to failure.
2865         ac_old_val_w=`echo x $ac_old_val`
2866         ac_new_val_w=`echo x $ac_new_val`
2867         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2868           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2870           ac_cache_corrupted=:
2871         else
2872           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2874           eval $ac_var=\$ac_old_val
2875         fi
2876         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2877 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2878         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2879 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2880       fi;;
2881   esac
2882   # Pass precious variables to config.status.
2883   if test "$ac_new_set" = set; then
2884     case $ac_new_val in
2885     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2886     *) ac_arg=$ac_var=$ac_new_val ;;
2887     esac
2888     case " $ac_configure_args " in
2889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2890       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2891     esac
2892   fi
2893 done
2894 if $ac_cache_corrupted; then
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2899   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2900 fi
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913 # When changing the SWDB tag please also adjust the hard coded tags in
2914 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define GNUPG_SWDB_TAG "gnupg24"
2918 _ACEOF
2919
2920
2921 NEED_GPGRT_VERSION=1.41
2922
2923 NEED_LIBGCRYPT_API=1
2924 NEED_LIBGCRYPT_VERSION=1.9.1
2925
2926 NEED_LIBASSUAN_API=2
2927 NEED_LIBASSUAN_VERSION=2.5.0
2928
2929 NEED_KSBA_API=1
2930 NEED_KSBA_VERSION=1.3.4
2931
2932 NEED_NTBTLS_API=1
2933 NEED_NTBTLS_VERSION=0.1.0
2934
2935 NEED_NPTH_API=1
2936 NEED_NPTH_VERSION=1.2
2937
2938
2939 NEED_GNUTLS_VERSION=3.0
2940
2941 NEED_SQLITE_VERSION=3.27
2942
2943 development_version=no
2944 PACKAGE=$PACKAGE_NAME
2945 PACKAGE_GT=${PACKAGE_NAME}2
2946 VERSION=$PACKAGE_VERSION
2947
2948 ac_aux_dir=
2949 for ac_dir in build-aux "$srcdir"/build-aux; do
2950   if test -f "$ac_dir/install-sh"; then
2951     ac_aux_dir=$ac_dir
2952     ac_install_sh="$ac_aux_dir/install-sh -c"
2953     break
2954   elif test -f "$ac_dir/install.sh"; then
2955     ac_aux_dir=$ac_dir
2956     ac_install_sh="$ac_aux_dir/install.sh -c"
2957     break
2958   elif test -f "$ac_dir/shtool"; then
2959     ac_aux_dir=$ac_dir
2960     ac_install_sh="$ac_aux_dir/shtool install -c"
2961     break
2962   fi
2963 done
2964 if test -z "$ac_aux_dir"; then
2965   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2966 fi
2967
2968 # These three variables are undocumented and unsupported,
2969 # and are intended to be withdrawn in a future Autoconf release.
2970 # They can cause serious problems if a builder's source tree is in a directory
2971 # whose full name contains unusual characters.
2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2974 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2975
2976
2977
2978 ac_config_headers="$ac_config_headers config.h"
2979
2980 am__api_version='1.16'
2981
2982 # Find a good install program.  We prefer a C program (faster),
2983 # so one script is as good as another.  But avoid the broken or
2984 # incompatible versions:
2985 # SysV /etc/install, /usr/sbin/install
2986 # SunOS /usr/etc/install
2987 # IRIX /sbin/install
2988 # AIX /bin/install
2989 # AmigaOS /C/install, which installs bootblocks on floppy discs
2990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2993 # OS/2's system install, which has a completely different semantic
2994 # ./install, which can be erroneously created by make from ./install.sh.
2995 # Reject install programs that cannot install multiple files.
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2997 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2998 if test -z "$INSTALL"; then
2999 if ${ac_cv_path_install+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007     # Account for people who put trailing slashes in PATH elements.
3008 case $as_dir/ in #((
3009   ./ | .// | /[cC]/* | \
3010   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3011   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3012   /usr/ucb/* ) ;;
3013   *)
3014     # OSF1 and SCO ODT 3.0 have their own names for install.
3015     # Don't use installbsd from OSF since it installs stuff as root
3016     # by default.
3017     for ac_prog in ginstall scoinst install; do
3018       for ac_exec_ext in '' $ac_executable_extensions; do
3019         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3020           if test $ac_prog = install &&
3021             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3022             # AIX install.  It has an incompatible calling convention.
3023             :
3024           elif test $ac_prog = install &&
3025             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3026             # program-specific install script used by HP pwplus--don't use.
3027             :
3028           else
3029             rm -rf conftest.one conftest.two conftest.dir
3030             echo one > conftest.one
3031             echo two > conftest.two
3032             mkdir conftest.dir
3033             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3034               test -s conftest.one && test -s conftest.two &&
3035               test -s conftest.dir/conftest.one &&
3036               test -s conftest.dir/conftest.two
3037             then
3038               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3039               break 3
3040             fi
3041           fi
3042         fi
3043       done
3044     done
3045     ;;
3046 esac
3047
3048   done
3049 IFS=$as_save_IFS
3050
3051 rm -rf conftest.one conftest.two conftest.dir
3052
3053 fi
3054   if test "${ac_cv_path_install+set}" = set; then
3055     INSTALL=$ac_cv_path_install
3056   else
3057     # As a last resort, use the slow shell script.  Don't cache a
3058     # value for INSTALL within a source directory, because that will
3059     # break other packages using the cache if that directory is
3060     # removed, or if the value is a relative name.
3061     INSTALL=$ac_install_sh
3062   fi
3063 fi
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3065 $as_echo "$INSTALL" >&6; }
3066
3067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3068 # It thinks the first close brace ends the variable substitution.
3069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3070
3071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3072
3073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3076 $as_echo_n "checking whether build environment is sane... " >&6; }
3077 # Reject unsafe characters in $srcdir or the absolute working directory
3078 # name.  Accept space and tab only in the latter.
3079 am_lf='
3080 '
3081 case `pwd` in
3082   *[\\\"\#\$\&\'\`$am_lf]*)
3083     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3084 esac
3085 case $srcdir in
3086   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3087     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3088 esac
3089
3090 # Do 'set' in a subshell so we don't clobber the current shell's
3091 # arguments.  Must try -L first in case configure is actually a
3092 # symlink; some systems play weird games with the mod time of symlinks
3093 # (eg FreeBSD returns the mod time of the symlink's containing
3094 # directory).
3095 if (
3096    am_has_slept=no
3097    for am_try in 1 2; do
3098      echo "timestamp, slept: $am_has_slept" > conftest.file
3099      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3100      if test "$*" = "X"; then
3101         # -L didn't work.
3102         set X `ls -t "$srcdir/configure" conftest.file`
3103      fi
3104      if test "$*" != "X $srcdir/configure conftest.file" \
3105         && test "$*" != "X conftest.file $srcdir/configure"; then
3106
3107         # If neither matched, then we have a broken ls.  This can happen
3108         # if, for instance, CONFIG_SHELL is bash and it inherits a
3109         # broken ls alias from the environment.  This has actually
3110         # happened.  Such a system could not be considered "sane".
3111         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3112   alias in your environment" "$LINENO" 5
3113      fi
3114      if test "$2" = conftest.file || test $am_try -eq 2; then
3115        break
3116      fi
3117      # Just in case.
3118      sleep 1
3119      am_has_slept=yes
3120    done
3121    test "$2" = conftest.file
3122    )
3123 then
3124    # Ok.
3125    :
3126 else
3127    as_fn_error $? "newly created file is older than distributed files!
3128 Check your system clock" "$LINENO" 5
3129 fi
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3132 # If we didn't sleep, we still need to ensure time stamps of config.status and
3133 # generated files are strictly newer.
3134 am_sleep_pid=
3135 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3136   ( sleep 1 ) &
3137   am_sleep_pid=$!
3138 fi
3139
3140 rm -f conftest.file
3141
3142 test "$program_prefix" != NONE &&
3143   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3144 # Use a double $ so make ignores it.
3145 test "$program_suffix" != NONE &&
3146   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3147 # Double any \ or $.
3148 # By default was `s,x,x', remove it if useless.
3149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3151
3152 # Expand $ac_aux_dir to an absolute path.
3153 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3154
3155 if test x"${MISSING+set}" != xset; then
3156   MISSING="\${SHELL} '$am_aux_dir/missing'"
3157 fi
3158 # Use eval to expand $SHELL
3159 if eval "$MISSING --is-lightweight"; then
3160   am_missing_run="$MISSING "
3161 else
3162   am_missing_run=
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3164 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3165 fi
3166
3167 if test x"${install_sh+set}" != xset; then
3168   case $am_aux_dir in
3169   *\ * | *\     *)
3170     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3171   *)
3172     install_sh="\${SHELL} $am_aux_dir/install-sh"
3173   esac
3174 fi
3175
3176 # Installed binaries are usually stripped using 'strip' when the user
3177 # run "make install-strip".  However 'strip' might not be the right
3178 # tool to use in cross-compilation environments, therefore Automake
3179 # will honor the 'STRIP' environment variable to overrule this program.
3180 if test "$cross_compiling" != no; then
3181   if test -n "$ac_tool_prefix"; then
3182   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}strip; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_STRIP+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if test -n "$STRIP"; then
3190   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204   done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 STRIP=$ac_cv_prog_STRIP
3210 if test -n "$STRIP"; then
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3212 $as_echo "$STRIP" >&6; }
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 fi
3220 if test -z "$ac_cv_prog_STRIP"; then
3221   ac_ct_STRIP=$STRIP
3222   # Extract the first word of "strip", so it can be a program name with args.
3223 set dummy strip; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   if test -n "$ac_ct_STRIP"; then
3230   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237     for ac_exec_ext in '' $ac_executable_extensions; do
3238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239     ac_cv_prog_ac_ct_STRIP="strip"
3240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241     break 2
3242   fi
3243 done
3244   done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3250 if test -n "$ac_ct_STRIP"; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3252 $as_echo "$ac_ct_STRIP" >&6; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258   if test "x$ac_ct_STRIP" = x; then
3259     STRIP=":"
3260   else
3261     case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267     STRIP=$ac_ct_STRIP
3268   fi
3269 else
3270   STRIP="$ac_cv_prog_STRIP"
3271 fi
3272
3273 fi
3274 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3277 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3278 if test -z "$MKDIR_P"; then
3279   if ${ac_cv_path_mkdir+:} false; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3284 do
3285   IFS=$as_save_IFS
3286   test -z "$as_dir" && as_dir=.
3287     for ac_prog in mkdir gmkdir; do
3288          for ac_exec_ext in '' $ac_executable_extensions; do
3289            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3290            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3291              'mkdir (GNU coreutils) '* | \
3292              'mkdir (coreutils) '* | \
3293              'mkdir (fileutils) '4.1*)
3294                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3295                break 3;;
3296            esac
3297          done
3298        done
3299   done
3300 IFS=$as_save_IFS
3301
3302 fi
3303
3304   test -d ./--version && rmdir ./--version
3305   if test "${ac_cv_path_mkdir+set}" = set; then
3306     MKDIR_P="$ac_cv_path_mkdir -p"
3307   else
3308     # As a last resort, use the slow shell script.  Don't cache a
3309     # value for MKDIR_P within a source directory, because that will
3310     # break other packages using the cache if that directory is
3311     # removed, or if the value is a relative name.
3312     MKDIR_P="$ac_install_sh -d"
3313   fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3316 $as_echo "$MKDIR_P" >&6; }
3317
3318 for ac_prog in gawk mawk nawk awk
3319 do
3320   # Extract the first word of "$ac_prog", so it can be a program name with args.
3321 set dummy $ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_AWK+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$AWK"; then
3328   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_AWK="$ac_prog"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 AWK=$ac_cv_prog_AWK
3348 if test -n "$AWK"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3350 $as_echo "$AWK" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357   test -n "$AWK" && break
3358 done
3359
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3361 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3362 set x ${MAKE-make}
3363 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3364 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   cat >conftest.make <<\_ACEOF
3368 SHELL = /bin/sh
3369 all:
3370         @echo '@@@%%%=$(MAKE)=@@@%%%'
3371 _ACEOF
3372 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3374   *@@@%%%=?*=@@@%%%*)
3375     eval ac_cv_prog_make_${ac_make}_set=yes;;
3376   *)
3377     eval ac_cv_prog_make_${ac_make}_set=no;;
3378 esac
3379 rm -f conftest.make
3380 fi
3381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3384   SET_MAKE=
3385 else
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388   SET_MAKE="MAKE=${MAKE-make}"
3389 fi
3390
3391 rm -rf .tst 2>/dev/null
3392 mkdir .tst 2>/dev/null
3393 if test -d .tst; then
3394   am__leading_dot=.
3395 else
3396   am__leading_dot=_
3397 fi
3398 rmdir .tst 2>/dev/null
3399
3400 # Check whether --enable-silent-rules was given.
3401 if test "${enable_silent_rules+set}" = set; then :
3402   enableval=$enable_silent_rules;
3403 fi
3404
3405 case $enable_silent_rules in # (((
3406   yes) AM_DEFAULT_VERBOSITY=0;;
3407    no) AM_DEFAULT_VERBOSITY=1;;
3408     *) AM_DEFAULT_VERBOSITY=1;;
3409 esac
3410 am_make=${MAKE-make}
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3412 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3413 if ${am_cv_make_support_nested_variables+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   if $as_echo 'TRUE=$(BAR$(V))
3417 BAR0=false
3418 BAR1=true
3419 V=1
3420 am__doit:
3421         @$(TRUE)
3422 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3423   am_cv_make_support_nested_variables=yes
3424 else
3425   am_cv_make_support_nested_variables=no
3426 fi
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3429 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3430 if test $am_cv_make_support_nested_variables = yes; then
3431     AM_V='$(V)'
3432   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3433 else
3434   AM_V=$AM_DEFAULT_VERBOSITY
3435   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3436 fi
3437 AM_BACKSLASH='\'
3438
3439 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3440   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3441   # is not polluted with repeated "-I."
3442   am__isrc=' -I$(srcdir)'
3443   # test to see if srcdir already configured
3444   if test -f $srcdir/config.status; then
3445     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3446   fi
3447 fi
3448
3449 # test whether we have cygpath
3450 if test -z "$CYGPATH_W"; then
3451   if (cygpath --version) >/dev/null 2>/dev/null; then
3452     CYGPATH_W='cygpath -w'
3453   else
3454     CYGPATH_W=echo
3455   fi
3456 fi
3457
3458
3459 # Define the identity of the package.
3460  PACKAGE='gnupg'
3461  VERSION='2.3.5'
3462
3463
3464 cat >>confdefs.h <<_ACEOF
3465 #define PACKAGE "$PACKAGE"
3466 _ACEOF
3467
3468
3469 cat >>confdefs.h <<_ACEOF
3470 #define VERSION "$VERSION"
3471 _ACEOF
3472
3473 # Some tools Automake needs.
3474
3475 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3476
3477
3478 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3479
3480
3481 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3482
3483
3484 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3485
3486
3487 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3488
3489 # For better backward compatibility.  To be removed once Automake 1.9.x
3490 # dies out for good.  For more background, see:
3491 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3493 mkdir_p='$(MKDIR_P)'
3494
3495 # We need awk for the "check" target (and possibly the TAP driver).  The
3496 # system "awk" is bad on some platforms.
3497 # Always define AMTAR for backward compatibility.  Yes, it's still used
3498 # in the wild :-(  We should find a proper way to deprecate it ...
3499 AMTAR='$${TAR-tar}'
3500
3501
3502 # We'll loop over all known methods to create a tar archive until one works.
3503 _am_tools='gnutar  pax cpio none'
3504
3505 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3506
3507
3508
3509
3510
3511
3512 # POSIX will say in a future version that running "rm -f" with no argument
3513 # is OK; and we want to be able to make that assumption in our Makefile
3514 # recipes.  So use an aggressive probe to check that the usage we want is
3515 # actually supported "in the wild" to an acceptable degree.
3516 # See automake bug#10828.
3517 # To make any issue more visible, cause the running configure to be aborted
3518 # by default if the 'rm' program in use doesn't match our expectations; the
3519 # user can still override this though.
3520 if rm -f && rm -fr && rm -rf; then : OK; else
3521   cat >&2 <<'END'
3522 Oops!
3523
3524 Your 'rm' program seems unable to run without file operands specified
3525 on the command line, even when the '-f' option is present.  This is contrary
3526 to the behaviour of most rm programs out there, and not conforming with
3527 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3528
3529 Please tell bug-automake@gnu.org about your system, including the value
3530 of your $PATH and any error possibly output before this message.  This
3531 can help us improve future automake versions.
3532
3533 END
3534   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3535     echo 'Configuration will proceed anyway, since you have set the' >&2
3536     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3537     echo >&2
3538   else
3539     cat >&2 <<'END'
3540 Aborting the configuration process, to ensure you take notice of the issue.
3541
3542 You can download and install GNU coreutils to get an 'rm' implementation
3543 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3544
3545 If you want to complete the configuration process using your problematic
3546 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3547 to "yes", and re-run configure.
3548
3549 END
3550     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3551   fi
3552 fi
3553
3554 # Make sure we can run config.sub.
3555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3557
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3559 $as_echo_n "checking build system type... " >&6; }
3560 if ${ac_cv_build+:} false; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   ac_build_alias=$build_alias
3564 test "x$ac_build_alias" = x &&
3565   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3566 test "x$ac_build_alias" = x &&
3567   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3569   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3570
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3573 $as_echo "$ac_cv_build" >&6; }
3574 case $ac_cv_build in
3575 *-*-*) ;;
3576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3577 esac
3578 build=$ac_cv_build
3579 ac_save_IFS=$IFS; IFS='-'
3580 set x $ac_cv_build
3581 shift
3582 build_cpu=$1
3583 build_vendor=$2
3584 shift; shift
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3587 build_os=$*
3588 IFS=$ac_save_IFS
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3593 $as_echo_n "checking host system type... " >&6; }
3594 if ${ac_cv_host+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   if test "x$host_alias" = x; then
3598   ac_cv_host=$ac_cv_build
3599 else
3600   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3602 fi
3603
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3606 $as_echo "$ac_cv_host" >&6; }
3607 case $ac_cv_host in
3608 *-*-*) ;;
3609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3610 esac
3611 host=$ac_cv_host
3612 ac_save_IFS=$IFS; IFS='-'
3613 set x $ac_cv_host
3614 shift
3615 host_cpu=$1
3616 host_vendor=$2
3617 shift; shift
3618 # Remember, the first character of IFS is used to create $*,
3619 # except with old shells:
3620 host_os=$*
3621 IFS=$ac_save_IFS
3622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
3625
3626
3627
3628
3629         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3630 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3631         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3632 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3633         hostname=`hostname`
3634         if test "$hostname"; then
3635            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3636 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3637         fi
3638
3639         date=`date +%Y%m%d-%H%M%S`
3640         if test "$?" != 0; then
3641            date=`date`
3642         fi
3643         if test "$date"; then
3644            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3645 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3646         fi
3647
3648
3649 DEPDIR="${am__leading_dot}deps"
3650
3651 ac_config_commands="$ac_config_commands depfiles"
3652
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3654 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3655 cat > confinc.mk << 'END'
3656 am__doit:
3657         @echo this is the am__doit target >confinc.out
3658 .PHONY: am__doit
3659 END
3660 am__include="#"
3661 am__quote=
3662 # BSD make does it like this.
3663 echo '.include "confinc.mk" # ignored' > confmf.BSD
3664 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3665 echo 'include confinc.mk # ignored' > confmf.GNU
3666 _am_result=no
3667 for s in GNU BSD; do
3668   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3669    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3670    ac_status=$?
3671    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672    (exit $ac_status); }
3673   case $?:`cat confinc.out 2>/dev/null` in #(
3674   '0:this is the am__doit target') :
3675     case $s in #(
3676   BSD) :
3677     am__include='.include' am__quote='"' ;; #(
3678   *) :
3679     am__include='include' am__quote='' ;;
3680 esac ;; #(
3681   *) :
3682      ;;
3683 esac
3684   if test "$am__include" != "#"; then
3685     _am_result="yes ($s style)"
3686     break
3687   fi
3688 done
3689 rm -f confinc.* confmf.*
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3691 $as_echo "${_am_result}" >&6; }
3692
3693 # Check whether --enable-dependency-tracking was given.
3694 if test "${enable_dependency_tracking+set}" = set; then :
3695   enableval=$enable_dependency_tracking;
3696 fi
3697
3698 if test "x$enable_dependency_tracking" != xno; then
3699   am_depcomp="$ac_aux_dir/depcomp"
3700   AMDEPBACKSLASH='\'
3701   am__nodep='_no'
3702 fi
3703  if test "x$enable_dependency_tracking" != xno; then
3704   AMDEP_TRUE=
3705   AMDEP_FALSE='#'
3706 else
3707   AMDEP_TRUE='#'
3708   AMDEP_FALSE=
3709 fi
3710
3711
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 if test -n "$ac_tool_prefix"; then
3718   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_CC+:} false; then :
3723   $as_echo_n "(cached) " >&6
3724 else
3725   if test -n "$CC"; then
3726   ac_cv_prog_CC="$CC" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731   IFS=$as_save_IFS
3732   test -z "$as_dir" && as_dir=.
3733     for ac_exec_ext in '' $ac_executable_extensions; do
3734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737     break 2
3738   fi
3739 done
3740   done
3741 IFS=$as_save_IFS
3742
3743 fi
3744 fi
3745 CC=$ac_cv_prog_CC
3746 if test -n "$CC"; then
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748 $as_echo "$CC" >&6; }
3749 else
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3752 fi
3753
3754
3755 fi
3756 if test -z "$ac_cv_prog_CC"; then
3757   ac_ct_CC=$CC
3758   # Extract the first word of "gcc", so it can be a program name with args.
3759 set dummy gcc; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   if test -n "$ac_ct_CC"; then
3766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771   IFS=$as_save_IFS
3772   test -z "$as_dir" && as_dir=.
3773     for ac_exec_ext in '' $ac_executable_extensions; do
3774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775     ac_cv_prog_ac_ct_CC="gcc"
3776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777     break 2
3778   fi
3779 done
3780   done
3781 IFS=$as_save_IFS
3782
3783 fi
3784 fi
3785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3786 if test -n "$ac_ct_CC"; then
3787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3788 $as_echo "$ac_ct_CC" >&6; }
3789 else
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3792 fi
3793
3794   if test "x$ac_ct_CC" = x; then
3795     CC=""
3796   else
3797     case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803     CC=$ac_ct_CC
3804   fi
3805 else
3806   CC="$ac_cv_prog_CC"
3807 fi
3808
3809 if test -z "$CC"; then
3810           if test -n "$ac_tool_prefix"; then
3811     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3812 set dummy ${ac_tool_prefix}cc; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_CC+:} false; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   if test -n "$CC"; then
3819   ac_cv_prog_CC="$CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826     for ac_exec_ext in '' $ac_executable_extensions; do
3827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_prog_CC="${ac_tool_prefix}cc"
3829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833   done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848   fi
3849 fi
3850 if test -z "$CC"; then
3851   # Extract the first word of "cc", so it can be a program name with args.
3852 set dummy cc; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_CC+:} false; then :
3856   $as_echo_n "(cached) " >&6
3857 else
3858   if test -n "$CC"; then
3859   ac_cv_prog_CC="$CC" # Let the user override the test.
3860 else
3861   ac_prog_rejected=no
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3870        ac_prog_rejected=yes
3871        continue
3872      fi
3873     ac_cv_prog_CC="cc"
3874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875     break 2
3876   fi
3877 done
3878   done
3879 IFS=$as_save_IFS
3880
3881 if test $ac_prog_rejected = yes; then
3882   # We found a bogon in the path, so make sure we never use it.
3883   set dummy $ac_cv_prog_CC
3884   shift
3885   if test $# != 0; then
3886     # We chose a different compiler from the bogus one.
3887     # However, it has the same basename, so the bogon will be chosen
3888     # first if we set CC to just the basename; use the full file name.
3889     shift
3890     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3891   fi
3892 fi
3893 fi
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3899 else
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 fi
3903
3904
3905 fi
3906 if test -z "$CC"; then
3907   if test -n "$ac_tool_prefix"; then
3908   for ac_prog in cl.exe
3909   do
3910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_CC+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   if test -n "$CC"; then
3918   ac_cv_prog_CC="$CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 CC=$ac_cv_prog_CC
3938 if test -n "$CC"; then
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946
3947     test -n "$CC" && break
3948   done
3949 fi
3950 if test -z "$CC"; then
3951   ac_ct_CC=$CC
3952   for ac_prog in cl.exe
3953 do
3954   # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   if test -n "$ac_ct_CC"; then
3962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969     for ac_exec_ext in '' $ac_executable_extensions; do
3970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971     ac_cv_prog_ac_ct_CC="$ac_prog"
3972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976   done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982 if test -n "$ac_ct_CC"; then
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3984 $as_echo "$ac_ct_CC" >&6; }
3985 else
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991   test -n "$ac_ct_CC" && break
3992 done
3993
3994   if test "x$ac_ct_CC" = x; then
3995     CC=""
3996   else
3997     case $cross_compiling:$ac_tool_warned in
3998 yes:)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned=yes ;;
4002 esac
4003     CC=$ac_ct_CC
4004   fi
4005 fi
4006
4007 fi
4008
4009
4010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error $? "no acceptable C compiler found in \$PATH
4013 See \`config.log' for more details" "$LINENO" 5; }
4014
4015 # Provide some information about the compiler.
4016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4017 set X $ac_compile
4018 ac_compiler=$2
4019 for ac_option in --version -v -V -qversion; do
4020   { { ac_try="$ac_compiler $ac_option >&5"
4021 case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028   ac_status=$?
4029   if test -s conftest.err; then
4030     sed '10a\
4031 ... rest of stderr output deleted ...
4032          10q' conftest.err >conftest.er1
4033     cat conftest.er1 >&5
4034   fi
4035   rm -f conftest.er1 conftest.err
4036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037   test $ac_status = 0; }
4038 done
4039
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042
4043 int
4044 main ()
4045 {
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 ac_clean_files_save=$ac_clean_files
4052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4053 # Try to create an executable without -o first, disregard a.out.
4054 # It will help us diagnose broken compilers, and finding out an intuition
4055 # of exeext.
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4057 $as_echo_n "checking whether the C compiler works... " >&6; }
4058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4059
4060 # The possible output files:
4061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4062
4063 ac_rmfiles=
4064 for ac_file in $ac_files
4065 do
4066   case $ac_file in
4067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4068     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4069   esac
4070 done
4071 rm -f $ac_rmfiles
4072
4073 if { { ac_try="$ac_link_default"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080   (eval "$ac_link_default") 2>&5
4081   ac_status=$?
4082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083   test $ac_status = 0; }; then :
4084   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4086 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4087 # so that the user can short-circuit this test for compilers unknown to
4088 # Autoconf.
4089 for ac_file in $ac_files ''
4090 do
4091   test -f "$ac_file" || continue
4092   case $ac_file in
4093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4094         ;;
4095     [ab].out )
4096         # We found the default executable, but exeext='' is most
4097         # certainly right.
4098         break;;
4099     *.* )
4100         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4101         then :; else
4102            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4103         fi
4104         # We set ac_cv_exeext here because the later test for it is not
4105         # safe: cross compilers may not add the suffix if given an `-o'
4106         # argument, so we may need to know it at that point already.
4107         # Even if this section looks crufty: it has the advantage of
4108         # actually working.
4109         break;;
4110     * )
4111         break;;
4112   esac
4113 done
4114 test "$ac_cv_exeext" = no && ac_cv_exeext=
4115
4116 else
4117   ac_file=''
4118 fi
4119 if test -z "$ac_file"; then :
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error 77 "C compiler cannot create executables
4128 See \`config.log' for more details" "$LINENO" 5; }
4129 else
4130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131 $as_echo "yes" >&6; }
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4134 $as_echo_n "checking for C compiler default output file name... " >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4136 $as_echo "$ac_file" >&6; }
4137 ac_exeext=$ac_cv_exeext
4138
4139 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4140 ac_clean_files=$ac_clean_files_save
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4142 $as_echo_n "checking for suffix of executables... " >&6; }
4143 if { { ac_try="$ac_link"
4144 case "(($ac_try" in
4145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146   *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150   (eval "$ac_link") 2>&5
4151   ac_status=$?
4152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153   test $ac_status = 0; }; then :
4154   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4155 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4156 # work properly (i.e., refer to `conftest.exe'), while it won't with
4157 # `rm'.
4158 for ac_file in conftest.exe conftest conftest.*; do
4159   test -f "$ac_file" || continue
4160   case $ac_file in
4161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163           break;;
4164     * ) break;;
4165   esac
4166 done
4167 else
4168   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4170 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4171 See \`config.log' for more details" "$LINENO" 5; }
4172 fi
4173 rm -f conftest conftest$ac_cv_exeext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4175 $as_echo "$ac_cv_exeext" >&6; }
4176
4177 rm -f conftest.$ac_ext
4178 EXEEXT=$ac_cv_exeext
4179 ac_exeext=$EXEEXT
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h.  */
4182 #include <stdio.h>
4183 int
4184 main ()
4185 {
4186 FILE *f = fopen ("conftest.out", "w");
4187  return ferror (f) || fclose (f) != 0;
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 ac_clean_files="$ac_clean_files conftest.out"
4194 # Check that the compiler produces executables we can run.  If not, either
4195 # the compiler is broken, or we cross compile.
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4197 $as_echo_n "checking whether we are cross compiling... " >&6; }
4198 if test "$cross_compiling" != yes; then
4199   { { ac_try="$ac_link"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_link") 2>&5
4207   ac_status=$?
4208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209   test $ac_status = 0; }
4210   if { ac_try='./conftest$ac_cv_exeext'
4211   { { case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217   (eval "$ac_try") 2>&5
4218   ac_status=$?
4219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220   test $ac_status = 0; }; }; then
4221     cross_compiling=no
4222   else
4223     if test "$cross_compiling" = maybe; then
4224         cross_compiling=yes
4225     else
4226         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "cannot run C compiled programs.
4229 If you meant to cross compile, use \`--host'.
4230 See \`config.log' for more details" "$LINENO" 5; }
4231     fi
4232   fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4235 $as_echo "$cross_compiling" >&6; }
4236
4237 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4238 ac_clean_files=$ac_clean_files_save
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if ${ac_cv_objext+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try="$ac_compile"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263   (eval "$ac_compile") 2>&5
4264   ac_status=$?
4265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266   test $ac_status = 0; }; then :
4267   for ac_file in conftest.o conftest.obj conftest.*; do
4268   test -f "$ac_file" || continue;
4269   case $ac_file in
4270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4272        break;;
4273   esac
4274 done
4275 else
4276   $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "cannot compute suffix of object files: cannot compile
4282 See \`config.log' for more details" "$LINENO" 5; }
4283 fi
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4289 ac_objext=$OBJEXT
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if ${ac_cv_c_compiler_gnu+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297
4298 int
4299 main ()
4300 {
4301 #ifndef __GNUC__
4302        choke me
4303 #endif
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310   ac_compiler_gnu=yes
4311 else
4312   ac_compiler_gnu=no
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4321   GCC=yes
4322 else
4323   GCC=
4324 fi
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if ${ac_cv_prog_cc_g+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   ac_save_c_werror_flag=$ac_c_werror_flag
4333    ac_c_werror_flag=yes
4334    ac_cv_prog_cc_g=no
4335    CFLAGS="-g"
4336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h.  */
4338
4339 int
4340 main ()
4341 {
4342
4343   ;
4344   return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348   ac_cv_prog_cc_g=yes
4349 else
4350   CFLAGS=""
4351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353
4354 int
4355 main ()
4356 {
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363
4364 else
4365   ac_c_werror_flag=$ac_save_c_werror_flag
4366          CFLAGS="-g"
4367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h.  */
4369
4370 int
4371 main ()
4372 {
4373
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379   ac_cv_prog_cc_g=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386    ac_c_werror_flag=$ac_save_c_werror_flag
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391   CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393   if test "$GCC" = yes; then
4394     CFLAGS="-g -O2"
4395   else
4396     CFLAGS="-g"
4397   fi
4398 else
4399   if test "$GCC" = yes; then
4400     CFLAGS="-O2"
4401   else
4402     CFLAGS=
4403   fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if ${ac_cv_prog_cc_c89+:} false; then :
4408   $as_echo_n "(cached) " >&6
4409 else
4410   ac_cv_prog_cc_c89=no
4411 ac_save_CC=$CC
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #include <stdarg.h>
4415 #include <stdio.h>
4416 struct stat;
4417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4418 struct buf { int x; };
4419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4420 static char *e (p, i)
4421      char **p;
4422      int i;
4423 {
4424   return p[i];
4425 }
4426 static char *f (char * (*g) (char **, int), char **p, ...)
4427 {
4428   char *s;
4429   va_list v;
4430   va_start (v,p);
4431   s = g (p, va_arg (v,int));
4432   va_end (v);
4433   return s;
4434 }
4435
4436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4437    function prototypes and stuff, but not '\xHH' hex character constants.
4438    These don't provoke an error unfortunately, instead are silently treated
4439    as 'x'.  The following induces an error, until -std is added to get
4440    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4441    array size at least.  It's necessary to write '\x00'==0 to get something
4442    that's true only with -std.  */
4443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4444
4445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4446    inside strings and character constants.  */
4447 #define FOO(x) 'x'
4448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4449
4450 int test (int i, double x);
4451 struct s1 {int (*f) (int a);};
4452 struct s2 {int (*f) (double a);};
4453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4454 int argc;
4455 char **argv;
4456 int
4457 main ()
4458 {
4459 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4465         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4466 do
4467   CC="$ac_save_CC $ac_arg"
4468   if ac_fn_c_try_compile "$LINENO"; then :
4469   ac_cv_prog_cc_c89=$ac_arg
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext
4472   test "x$ac_cv_prog_cc_c89" != "xno" && break
4473 done
4474 rm -f conftest.$ac_ext
4475 CC=$ac_save_CC
4476
4477 fi
4478 # AC_CACHE_VAL
4479 case "x$ac_cv_prog_cc_c89" in
4480   x)
4481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4482 $as_echo "none needed" >&6; } ;;
4483   xno)
4484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4485 $as_echo "unsupported" >&6; } ;;
4486   *)
4487     CC="$CC $ac_cv_prog_cc_c89"
4488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4490 esac
4491 if test "x$ac_cv_prog_cc_c89" != xno; then :
4492
4493 fi
4494
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500
4501 ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4507 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4508 if ${am_cv_prog_cc_c_o+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522   # Make sure it works both with $CC and with simple cc.
4523   # Following AC_PROG_CC_C_O, we do the test twice because some
4524   # compilers refuse to overwrite an existing .o file with -o,
4525   # though they will create one.
4526   am_cv_prog_cc_c_o=yes
4527   for am_i in 1 2; do
4528     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4529    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4530    ac_status=$?
4531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532    (exit $ac_status); } \
4533          && test -f conftest2.$ac_objext; then
4534       : OK
4535     else
4536       am_cv_prog_cc_c_o=no
4537       break
4538     fi
4539   done
4540   rm -f core conftest*
4541   unset am_i
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4544 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4545 if test "$am_cv_prog_cc_c_o" != yes; then
4546    # Losing compiler, so override with the script.
4547    # FIXME: It is wrong to rewrite CC.
4548    # But if we don't then we get into trouble of one sort or another.
4549    # A longer-term fix would be to have automake use am__CC in this case,
4550    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4551    CC="$am_aux_dir/compile $CC"
4552 fi
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559
4560 depcc="$CC"   am_compiler_list=
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4563 $as_echo_n "checking dependency style of $depcc... " >&6; }
4564 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4568   # We make a subdir and do the tests there.  Otherwise we can end up
4569   # making bogus files that we don't know about and never remove.  For
4570   # instance it was reported that on HP-UX the gcc test will end up
4571   # making a dummy file named 'D' -- because '-MD' means "put the output
4572   # in D".
4573   rm -rf conftest.dir
4574   mkdir conftest.dir
4575   # Copy depcomp to subdir because otherwise we won't find it if we're
4576   # using a relative directory.
4577   cp "$am_depcomp" conftest.dir
4578   cd conftest.dir
4579   # We will build objects and dependencies in a subdirectory because
4580   # it helps to detect inapplicable dependency modes.  For instance
4581   # both Tru64's cc and ICC support -MD to output dependencies as a
4582   # side effect of compilation, but ICC will put the dependencies in
4583   # the current directory while Tru64 will put them in the object
4584   # directory.
4585   mkdir sub
4586
4587   am_cv_CC_dependencies_compiler_type=none
4588   if test "$am_compiler_list" = ""; then
4589      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4590   fi
4591   am__universal=false
4592   case " $depcc " in #(
4593      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4594      esac
4595
4596   for depmode in $am_compiler_list; do
4597     # Setup a source with many dependencies, because some compilers
4598     # like to wrap large dependency lists on column 80 (with \), and
4599     # we should not choose a depcomp mode which is confused by this.
4600     #
4601     # We need to recreate these files for each test, as the compiler may
4602     # overwrite some of them when testing with obscure command lines.
4603     # This happens at least with the AIX C compiler.
4604     : > sub/conftest.c
4605     for i in 1 2 3 4 5 6; do
4606       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4607       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4608       # Solaris 10 /bin/sh.
4609       echo '/* dummy */' > sub/conftst$i.h
4610     done
4611     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612
4613     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4614     # mode.  It turns out that the SunPro C++ compiler does not properly
4615     # handle '-M -o', and we need to detect this.  Also, some Intel
4616     # versions had trouble with output in subdirs.
4617     am__obj=sub/conftest.${OBJEXT-o}
4618     am__minus_obj="-o $am__obj"
4619     case $depmode in
4620     gcc)
4621       # This depmode causes a compiler race in universal mode.
4622       test "$am__universal" = false || continue
4623       ;;
4624     nosideeffect)
4625       # After this tag, mechanisms are not by side-effect, so they'll
4626       # only be used when explicitly requested.
4627       if test "x$enable_dependency_tracking" = xyes; then
4628         continue
4629       else
4630         break
4631       fi
4632       ;;
4633     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4634       # This compiler won't grok '-c -o', but also, the minuso test has
4635       # not run yet.  These depmodes are late enough in the game, and
4636       # so weak that their functioning should not be impacted.
4637       am__obj=conftest.${OBJEXT-o}
4638       am__minus_obj=
4639       ;;
4640     none) break ;;
4641     esac
4642     if depmode=$depmode \
4643        source=sub/conftest.c object=$am__obj \
4644        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4645        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4646          >/dev/null 2>conftest.err &&
4647        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4648        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4649        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4650        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4651       # icc doesn't choke on unknown options, it will just issue warnings
4652       # or remarks (even with -Werror).  So we grep stderr for any message
4653       # that says an option was ignored or not supported.
4654       # When given -MP, icc 7.0 and 7.1 complain thusly:
4655       #   icc: Command line warning: ignoring option '-M'; no argument required
4656       # The diagnosis changed in icc 8.0:
4657       #   icc: Command line remark: option '-MP' not supported
4658       if (grep 'ignoring option' conftest.err ||
4659           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4660         am_cv_CC_dependencies_compiler_type=$depmode
4661         break
4662       fi
4663     fi
4664   done
4665
4666   cd ..
4667   rm -rf conftest.dir
4668 else
4669   am_cv_CC_dependencies_compiler_type=none
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4674 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4675 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4676
4677  if
4678   test "x$enable_dependency_tracking" != xno \
4679   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4680   am__fastdepCC_TRUE=
4681   am__fastdepCC_FALSE='#'
4682 else
4683   am__fastdepCC_TRUE='#'
4684   am__fastdepCC_FALSE=
4685 fi
4686
4687
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4695 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4696 # On Suns, sometimes $CPP names a directory.
4697 if test -n "$CPP" && test -d "$CPP"; then
4698   CPP=
4699 fi
4700 if test -z "$CPP"; then
4701   if ${ac_cv_prog_CPP+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704       # Double quotes because CPP needs to be expanded
4705     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706     do
4707       ac_preproc_ok=false
4708 for ac_c_preproc_warn_flag in '' yes
4709 do
4710   # Use a header file that comes with gcc, so configuring glibc
4711   # with a fresh cross-compiler works.
4712   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713   # <limits.h> exists even on freestanding compilers.
4714   # On the NeXT, cc -E runs the code through the compiler's parser,
4715   # not just through cpp. "Syntax error" is here to catch this case.
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718 #ifdef __STDC__
4719 # include <limits.h>
4720 #else
4721 # include <assert.h>
4722 #endif
4723                      Syntax error
4724 _ACEOF
4725 if ac_fn_c_try_cpp "$LINENO"; then :
4726
4727 else
4728   # Broken: fails on valid input.
4729 continue
4730 fi
4731 rm -f conftest.err conftest.i conftest.$ac_ext
4732
4733   # OK, works on sane cases.  Now check whether nonexistent headers
4734   # can be detected and how.
4735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h.  */
4737 #include <ac_nonexistent.h>
4738 _ACEOF
4739 if ac_fn_c_try_cpp "$LINENO"; then :
4740   # Broken: success on invalid input.
4741 continue
4742 else
4743   # Passes both tests.
4744 ac_preproc_ok=:
4745 break
4746 fi
4747 rm -f conftest.err conftest.i conftest.$ac_ext
4748
4749 done
4750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4751 rm -f conftest.i conftest.err conftest.$ac_ext
4752 if $ac_preproc_ok; then :
4753   break
4754 fi
4755
4756     done
4757     ac_cv_prog_CPP=$CPP
4758
4759 fi
4760   CPP=$ac_cv_prog_CPP
4761 else
4762   ac_cv_prog_CPP=$CPP
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4765 $as_echo "$CPP" >&6; }
4766 ac_preproc_ok=false
4767 for ac_c_preproc_warn_flag in '' yes
4768 do
4769   # Use a header file that comes with gcc, so configuring glibc
4770   # with a fresh cross-compiler works.
4771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4772   # <limits.h> exists even on freestanding compilers.
4773   # On the NeXT, cc -E runs the code through the compiler's parser,
4774   # not just through cpp. "Syntax error" is here to catch this case.
4775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h.  */
4777 #ifdef __STDC__
4778 # include <limits.h>
4779 #else
4780 # include <assert.h>
4781 #endif
4782                      Syntax error
4783 _ACEOF
4784 if ac_fn_c_try_cpp "$LINENO"; then :
4785
4786 else
4787   # Broken: fails on valid input.
4788 continue
4789 fi
4790 rm -f conftest.err conftest.i conftest.$ac_ext
4791
4792   # OK, works on sane cases.  Now check whether nonexistent headers
4793   # can be detected and how.
4794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h.  */
4796 #include <ac_nonexistent.h>
4797 _ACEOF
4798 if ac_fn_c_try_cpp "$LINENO"; then :
4799   # Broken: success on invalid input.
4800 continue
4801 else
4802   # Passes both tests.
4803 ac_preproc_ok=:
4804 break
4805 fi
4806 rm -f conftest.err conftest.i conftest.$ac_ext
4807
4808 done
4809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4810 rm -f conftest.i conftest.err conftest.$ac_ext
4811 if $ac_preproc_ok; then :
4812
4813 else
4814   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4817 See \`config.log' for more details" "$LINENO" 5; }
4818 fi
4819
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4828 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4829 if ${ac_cv_path_GREP+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   if test -z "$GREP"; then
4833   ac_path_GREP_found=false
4834   # Loop through the user's path and test for each of PROGNAME-LIST
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840     for ac_prog in grep ggrep; do
4841     for ac_exec_ext in '' $ac_executable_extensions; do
4842       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4843       as_fn_executable_p "$ac_path_GREP" || continue
4844 # Check for GNU ac_path_GREP and select it if it is found.
4845   # Check for GNU $ac_path_GREP
4846 case `"$ac_path_GREP" --version 2>&1` in
4847 *GNU*)
4848   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4849 *)
4850   ac_count=0
4851   $as_echo_n 0123456789 >"conftest.in"
4852   while :
4853   do
4854     cat "conftest.in" "conftest.in" >"conftest.tmp"
4855     mv "conftest.tmp" "conftest.in"
4856     cp "conftest.in" "conftest.nl"
4857     $as_echo 'GREP' >> "conftest.nl"
4858     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4859     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4860     as_fn_arith $ac_count + 1 && ac_count=$as_val
4861     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4862       # Best one so far, save it but keep looking for a better one
4863       ac_cv_path_GREP="$ac_path_GREP"
4864       ac_path_GREP_max=$ac_count
4865     fi
4866     # 10*(2^10) chars as input seems more than enough
4867     test $ac_count -gt 10 && break
4868   done
4869   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870 esac
4871
4872       $ac_path_GREP_found && break 3
4873     done
4874   done
4875   done
4876 IFS=$as_save_IFS
4877   if test -z "$ac_cv_path_GREP"; then
4878     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4879   fi
4880 else
4881   ac_cv_path_GREP=$GREP
4882 fi
4883
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4886 $as_echo "$ac_cv_path_GREP" >&6; }
4887  GREP="$ac_cv_path_GREP"
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4891 $as_echo_n "checking for egrep... " >&6; }
4892 if ${ac_cv_path_EGREP+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4896    then ac_cv_path_EGREP="$GREP -E"
4897    else
4898      if test -z "$EGREP"; then
4899   ac_path_EGREP_found=false
4900   # Loop through the user's path and test for each of PROGNAME-LIST
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_prog in egrep; do
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4909       as_fn_executable_p "$ac_path_EGREP" || continue
4910 # Check for GNU ac_path_EGREP and select it if it is found.
4911   # Check for GNU $ac_path_EGREP
4912 case `"$ac_path_EGREP" --version 2>&1` in
4913 *GNU*)
4914   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4915 *)
4916   ac_count=0
4917   $as_echo_n 0123456789 >"conftest.in"
4918   while :
4919   do
4920     cat "conftest.in" "conftest.in" >"conftest.tmp"
4921     mv "conftest.tmp" "conftest.in"
4922     cp "conftest.in" "conftest.nl"
4923     $as_echo 'EGREP' >> "conftest.nl"
4924     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926     as_fn_arith $ac_count + 1 && ac_count=$as_val
4927     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4928       # Best one so far, save it but keep looking for a better one
4929       ac_cv_path_EGREP="$ac_path_EGREP"
4930       ac_path_EGREP_max=$ac_count
4931     fi
4932     # 10*(2^10) chars as input seems more than enough
4933     test $ac_count -gt 10 && break
4934   done
4935   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 esac
4937
4938       $ac_path_EGREP_found && break 3
4939     done
4940   done
4941   done
4942 IFS=$as_save_IFS
4943   if test -z "$ac_cv_path_EGREP"; then
4944     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945   fi
4946 else
4947   ac_cv_path_EGREP=$EGREP
4948 fi
4949
4950    fi
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4953 $as_echo "$ac_cv_path_EGREP" >&6; }
4954  EGREP="$ac_cv_path_EGREP"
4955
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4958 $as_echo_n "checking for ANSI C header files... " >&6; }
4959 if ${ac_cv_header_stdc+:} false; then :
4960   $as_echo_n "(cached) " >&6
4961 else
4962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964 #include <stdlib.h>
4965 #include <stdarg.h>
4966 #include <string.h>
4967 #include <float.h>
4968
4969 int
4970 main ()
4971 {
4972
4973   ;
4974   return 0;
4975 }
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978   ac_cv_header_stdc=yes
4979 else
4980   ac_cv_header_stdc=no
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983
4984 if test $ac_cv_header_stdc = yes; then
4985   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h.  */
4988 #include <string.h>
4989
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992   $EGREP "memchr" >/dev/null 2>&1; then :
4993
4994 else
4995   ac_cv_header_stdc=no
4996 fi
4997 rm -f conftest*
4998
4999 fi
5000
5001 if test $ac_cv_header_stdc = yes; then
5002   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h.  */
5005 #include <stdlib.h>
5006
5007 _ACEOF
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009   $EGREP "free" >/dev/null 2>&1; then :
5010
5011 else
5012   ac_cv_header_stdc=no
5013 fi
5014 rm -f conftest*
5015
5016 fi
5017
5018 if test $ac_cv_header_stdc = yes; then
5019   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5020   if test "$cross_compiling" = yes; then :
5021   :
5022 else
5023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h.  */
5025 #include <ctype.h>
5026 #include <stdlib.h>
5027 #if ((' ' & 0x0FF) == 0x020)
5028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030 #else
5031 # define ISLOWER(c) \
5032                    (('a' <= (c) && (c) <= 'i') \
5033                      || ('j' <= (c) && (c) <= 'r') \
5034                      || ('s' <= (c) && (c) <= 'z'))
5035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036 #endif
5037
5038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039 int
5040 main ()
5041 {
5042   int i;
5043   for (i = 0; i < 256; i++)
5044     if (XOR (islower (i), ISLOWER (i))
5045         || toupper (i) != TOUPPER (i))
5046       return 2;
5047   return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_run "$LINENO"; then :
5051
5052 else
5053   ac_cv_header_stdc=no
5054 fi
5055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5056   conftest.$ac_objext conftest.beam conftest.$ac_ext
5057 fi
5058
5059 fi
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5062 $as_echo "$ac_cv_header_stdc" >&6; }
5063 if test $ac_cv_header_stdc = yes; then
5064
5065 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5066
5067 fi
5068
5069 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5071                   inttypes.h stdint.h unistd.h
5072 do :
5073   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5074 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5075 "
5076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5077   cat >>confdefs.h <<_ACEOF
5078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5079 _ACEOF
5080
5081 fi
5082
5083 done
5084
5085
5086
5087   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5088 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5089   MINIX=yes
5090 else
5091   MINIX=
5092 fi
5093
5094
5095   if test "$MINIX" = yes; then
5096
5097 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5098
5099
5100 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5101
5102
5103 $as_echo "#define _MINIX 1" >>confdefs.h
5104
5105   fi
5106
5107
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5109 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5110 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115
5116 #         define __EXTENSIONS__ 1
5117           $ac_includes_default
5118 int
5119 main ()
5120 {
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127   ac_cv_safe_to_define___extensions__=yes
5128 else
5129   ac_cv_safe_to_define___extensions__=no
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5134 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5135   test $ac_cv_safe_to_define___extensions__ = yes &&
5136     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5137
5138   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5139
5140   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5141
5142   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5143
5144   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5145
5146
5147
5148
5149 # Some status variables.
5150 have_gpg_error=no
5151 have_libgcrypt=no
5152 have_libassuan=no
5153 have_ksba=no
5154 have_ntbtls=no
5155 have_gnutls=no
5156 have_sqlite=no
5157 have_npth=no
5158 have_libusb=no
5159 have_libtss=no
5160 have_system_resolver=no
5161 gnupg_have_ldap="n/a"
5162
5163 use_zip=yes
5164 use_bzip2=yes
5165 use_exec=yes
5166 use_trust_models=yes
5167 use_tofu=yes
5168 use_libdns=yes
5169 card_support=yes
5170 use_ccid_driver=auto
5171 dirmngr_auto_start=yes
5172 use_tls_library=no
5173 large_secmem=no
5174 show_tor_support=no
5175
5176 # gpg is a required part and can't be disabled anymore.
5177 build_gpg=yes
5178
5179    build_gpgsm=yes
5180
5181       # Check whether --enable-gpgsm was given.
5182 if test "${enable_gpgsm+set}" = set; then :
5183   enableval=$enable_gpgsm; build_gpgsm=$enableval
5184 else
5185   build_gpgsm=yes
5186 fi
5187
5188
5189    case "$build_gpgsm" in
5190          no|yes)
5191            ;;
5192          *)
5193            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5194            ;;
5195    esac
5196
5197
5198 # The agent is a required part and can't be disabled anymore.
5199 build_agent=yes
5200
5201    build_scdaemon=yes
5202
5203       # Check whether --enable-scdaemon was given.
5204 if test "${enable_scdaemon+set}" = set; then :
5205   enableval=$enable_scdaemon; build_scdaemon=$enableval
5206 else
5207   build_scdaemon=yes
5208 fi
5209
5210
5211    case "$build_scdaemon" in
5212          no|yes)
5213            ;;
5214          *)
5215            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5216            ;;
5217    esac
5218
5219
5220
5221    build_g13=no
5222
5223       # Check whether --enable-g13 was given.
5224 if test "${enable_g13+set}" = set; then :
5225   enableval=$enable_g13; build_g13=$enableval
5226 else
5227   build_g13=no
5228 fi
5229
5230
5231    case "$build_g13" in
5232          no|yes)
5233            ;;
5234          *)
5235            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5236            ;;
5237    esac
5238
5239
5240
5241    build_dirmngr=yes
5242
5243       # Check whether --enable-dirmngr was given.
5244 if test "${enable_dirmngr+set}" = set; then :
5245   enableval=$enable_dirmngr; build_dirmngr=$enableval
5246 else
5247   build_dirmngr=yes
5248 fi
5249
5250
5251    case "$build_dirmngr" in
5252          no|yes)
5253            ;;
5254          *)
5255            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5256            ;;
5257    esac
5258
5259
5260
5261    build_keyboxd=yes
5262
5263       # Check whether --enable-keyboxd was given.
5264 if test "${enable_keyboxd+set}" = set; then :
5265   enableval=$enable_keyboxd; build_keyboxd=$enableval
5266 else
5267   build_keyboxd=yes
5268 fi
5269
5270
5271    case "$build_keyboxd" in
5272          no|yes)
5273            ;;
5274          *)
5275            as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5276            ;;
5277    esac
5278
5279
5280
5281    build_tpm2d=yes
5282
5283       # Check whether --enable-tpm2d was given.
5284 if test "${enable_tpm2d+set}" = set; then :
5285   enableval=$enable_tpm2d; build_tpm2d=$enableval
5286 else
5287   build_tpm2d=yes
5288 fi
5289
5290
5291    case "$build_tpm2d" in
5292          no|yes)
5293            ;;
5294          *)
5295            as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5296            ;;
5297    esac
5298
5299
5300
5301    build_doc=yes
5302
5303       # Check whether --enable-doc was given.
5304 if test "${enable_doc+set}" = set; then :
5305   enableval=$enable_doc; build_doc=$enableval
5306 else
5307   build_doc=yes
5308 fi
5309
5310
5311    case "$build_doc" in
5312          no|yes)
5313            ;;
5314          *)
5315            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5316            ;;
5317    esac
5318
5319
5320 # We use gpgtar to unpack test data, hence we always build it.  If the
5321 # user opts out, we simply don't install it.
5322
5323    build_gpgtar=yes
5324
5325       # Check whether --enable-gpgtar was given.
5326 if test "${enable_gpgtar+set}" = set; then :
5327   enableval=$enable_gpgtar; build_gpgtar=$enableval
5328 else
5329   build_gpgtar=yes
5330 fi
5331
5332
5333    case "$build_gpgtar" in
5334          no|yes)
5335            ;;
5336          *)
5337            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5338            ;;
5339    esac
5340
5341
5342 # We also install the gpg-wks-server tool by default but disable it
5343 # later for platforms where it can't be build.
5344
5345    build_wks_tools=yes
5346
5347       # Check whether --enable-wks-tools was given.
5348 if test "${enable_wks_tools+set}" = set; then :
5349   enableval=$enable_wks_tools; build_wks_tools=$enableval
5350 else
5351   build_wks_tools=yes
5352 fi
5353
5354
5355    case "$build_wks_tools" in
5356          no|yes)
5357            ;;
5358          *)
5359            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5360            ;;
5361    esac
5362
5363
5364
5365
5366
5367
5368
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define PACKAGE "$PACKAGE"
5372 _ACEOF
5373
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define PACKAGE_GT "$PACKAGE_GT"
5377 _ACEOF
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define VERSION "$VERSION"
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5387 _ACEOF
5388
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5392 _ACEOF
5393
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5397 _ACEOF
5398
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5402 _ACEOF
5403
5404
5405
5406
5407 # The default is to use the modules from this package and the few
5408 # other packages in a standard place; i.e where this package gets
5409 # installed.  With these options it is possible to override these
5410 # ${prefix} depended values with fixed paths, which can't be replaced
5411 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5412
5413 # Check whether --with-agent-pgm was given.
5414 if test "${with_agent_pgm+set}" = set; then :
5415   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5416 else
5417   GNUPG_AGENT_PGM=""
5418 fi
5419
5420
5421  if test -n "$GNUPG_AGENT_PGM"; then
5422   GNUPG_AGENT_PGM_TRUE=
5423   GNUPG_AGENT_PGM_FALSE='#'
5424 else
5425   GNUPG_AGENT_PGM_TRUE='#'
5426   GNUPG_AGENT_PGM_FALSE=
5427 fi
5428
5429 show_gnupg_agent_pgm="(default)"
5430 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5431
5432
5433 # Check whether --with-pinentry-pgm was given.
5434 if test "${with_pinentry_pgm+set}" = set; then :
5435   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5436 else
5437   GNUPG_PINENTRY_PGM=""
5438 fi
5439
5440
5441  if test -n "$GNUPG_PINENTRY_PGM"; then
5442   GNUPG_PINENTRY_PGM_TRUE=
5443   GNUPG_PINENTRY_PGM_FALSE='#'
5444 else
5445   GNUPG_PINENTRY_PGM_TRUE='#'
5446   GNUPG_PINENTRY_PGM_FALSE=
5447 fi
5448
5449 show_gnupg_pinentry_pgm="(default)"
5450 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5451
5452
5453
5454 # Check whether --with-scdaemon-pgm was given.
5455 if test "${with_scdaemon_pgm+set}" = set; then :
5456   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5457 else
5458   GNUPG_SCDAEMON_PGM=""
5459 fi
5460
5461
5462  if test -n "$GNUPG_SCDAEMON_PGM"; then
5463   GNUPG_SCDAEMON_PGM_TRUE=
5464   GNUPG_SCDAEMON_PGM_FALSE='#'
5465 else
5466   GNUPG_SCDAEMON_PGM_TRUE='#'
5467   GNUPG_SCDAEMON_PGM_FALSE=
5468 fi
5469
5470 show_gnupg_scdaemon_pgm="(default)"
5471 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5472
5473
5474
5475 # Check whether --with-tpm2daemon-pgm was given.
5476 if test "${with_tpm2daemon_pgm+set}" = set; then :
5477   withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5478 else
5479   GNUPG_TPM2DAEMON_PGM=""
5480 fi
5481
5482
5483  if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5484   GNUPG_TPM2DAEMON_PGM_TRUE=
5485   GNUPG_TPM2DAEMON_PGM_FALSE='#'
5486 else
5487   GNUPG_TPM2DAEMON_PGM_TRUE='#'
5488   GNUPG_TPM2DAEMON_PGM_FALSE=
5489 fi
5490
5491 show_gnupg_tpm2daemon_pgm="(default)"
5492 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5493
5494
5495
5496 # Check whether --with-dirmngr-pgm was given.
5497 if test "${with_dirmngr_pgm+set}" = set; then :
5498   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5499 else
5500   GNUPG_DIRMNGR_PGM=""
5501 fi
5502
5503
5504  if test -n "$GNUPG_DIRMNGR_PGM"; then
5505   GNUPG_DIRMNGR_PGM_TRUE=
5506   GNUPG_DIRMNGR_PGM_FALSE='#'
5507 else
5508   GNUPG_DIRMNGR_PGM_TRUE='#'
5509   GNUPG_DIRMNGR_PGM_FALSE=
5510 fi
5511
5512 show_gnupg_dirmngr_pgm="(default)"
5513 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5514
5515
5516 # Check whether --with-keyboxd-pgm was given.
5517 if test "${with_keyboxd_pgm+set}" = set; then :
5518   withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5519 else
5520   GNUPG_KEYBOXD_PGM=""
5521 fi
5522
5523
5524  if test -n "$GNUPG_KEYBOXD_PGM"; then
5525   GNUPG_KEYBOXD_PGM_TRUE=
5526   GNUPG_KEYBOXD_PGM_FALSE='#'
5527 else
5528   GNUPG_KEYBOXD_PGM_TRUE='#'
5529   GNUPG_KEYBOXD_PGM_FALSE=
5530 fi
5531
5532 show_gnupg_keyboxd_pgm="(default)"
5533 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5534
5535
5536 # Check whether --with-protect-tool-pgm was given.
5537 if test "${with_protect_tool_pgm+set}" = set; then :
5538   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5539 else
5540   GNUPG_PROTECT_TOOL_PGM=""
5541 fi
5542
5543
5544  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5545   GNUPG_PROTECT_TOOL_PGM_TRUE=
5546   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5547 else
5548   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5549   GNUPG_PROTECT_TOOL_PGM_FALSE=
5550 fi
5551
5552 show_gnupg_protect_tool_pgm="(default)"
5553 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5554       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5555
5556
5557 # Check whether --with-dirmngr-ldap-pgm was given.
5558 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5559   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5560 else
5561   GNUPG_DIRMNGR_LDAP_PGM=""
5562 fi
5563
5564
5565  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5566   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5567   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5568 else
5569   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5570   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5571 fi
5572
5573 show_gnupg_dirmngr_ldap_pgm="(default)"
5574 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5575       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5576
5577
5578 #
5579 # For a long time gpg 2.x was installed as gpg2.  This changed with
5580 # 2.2.  This option can be used to install gpg under the name gpg2.
5581 #
5582 # Check whether --enable-gpg-is-gpg2 was given.
5583 if test "${enable_gpg_is_gpg2+set}" = set; then :
5584   enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5585 fi
5586
5587 if test "$gpg_is_gpg2" = "yes"; then
5588
5589 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5590
5591 fi
5592  if test "$gpg_is_gpg2" = "yes"; then
5593   USE_GPG2_HACK_TRUE=
5594   USE_GPG2_HACK_FALSE='#'
5595 else
5596   USE_GPG2_HACK_TRUE='#'
5597   USE_GPG2_HACK_FALSE=
5598 fi
5599
5600
5601
5602 # SELinux support includes tracking of sensitive files to avoid
5603 # leaking their contents through processing these files by gpg itself
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5605 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5606 # Check whether --enable-selinux-support was given.
5607 if test "${enable_selinux_support+set}" = set; then :
5608   enableval=$enable_selinux_support; selinux_support=$enableval
5609 else
5610   selinux_support=no
5611 fi
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5614 $as_echo "$selinux_support" >&6; }
5615
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5618 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5619 # Check whether --enable-large-secmem was given.
5620 if test "${enable_large_secmem+set}" = set; then :
5621   enableval=$enable_large_secmem; large_secmem=$enableval
5622 else
5623   large_secmem=no
5624 fi
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5627 $as_echo "$large_secmem" >&6; }
5628 if test "$large_secmem" = yes ; then
5629    SECMEM_BUFFER_SIZE=65536
5630 else
5631    SECMEM_BUFFER_SIZE=32768
5632 fi
5633
5634 cat >>confdefs.h <<_ACEOF
5635 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5636 _ACEOF
5637
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5640 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5641
5642 # Check whether --with-agent-s2k-calibration was given.
5643 if test "${with_agent_s2k_calibration+set}" = set; then :
5644   withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5645 else
5646   agent_s2k_calibration=100
5647 fi
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5650 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5651
5652 cat >>confdefs.h <<_ACEOF
5653 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5654 _ACEOF
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5658 $as_echo_n "checking whether to enable trust models... " >&6; }
5659 # Check whether --enable-trust-models was given.
5660 if test "${enable_trust_models+set}" = set; then :
5661   enableval=$enable_trust_models; use_trust_models=$enableval
5662 fi
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5665 $as_echo "$use_trust_models" >&6; }
5666 if test "$use_trust_models" = no ; then
5667
5668 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5669
5670 fi
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5673 $as_echo_n "checking whether to enable TOFU... " >&6; }
5674 # Check whether --enable-tofu was given.
5675 if test "${enable_tofu+set}" = set; then :
5676   enableval=$enable_tofu; use_tofu=$enableval
5677 else
5678   use_tofu=$use_trust_models
5679 fi
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5682 $as_echo "$use_tofu" >&6; }
5683 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5684     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5685 fi
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5688 $as_echo_n "checking whether to enable libdns... " >&6; }
5689 # Check whether --enable-libdns was given.
5690 if test "${enable_libdns+set}" = set; then :
5691   enableval=$enable_libdns; use_libdns=$enableval
5692 else
5693   use_libdns=yes
5694 fi
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5697 $as_echo "$use_libdns" >&6; }
5698 if test x"$use_libdns" = xyes ; then
5699
5700 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5701
5702 fi
5703  if test "$use_libdns" = yes; then
5704   USE_LIBDNS_TRUE=
5705   USE_LIBDNS_FALSE='#'
5706 else
5707   USE_LIBDNS_TRUE='#'
5708   USE_LIBDNS_FALSE=
5709 fi
5710
5711
5712
5713 #
5714 # Options to disable algorithm
5715 #
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5718 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5719    # Check whether --enable-gpg-rsa was given.
5720 if test "${enable_gpg_rsa+set}" = set; then :
5721   enableval=$enable_gpg_rsa;
5722 else
5723   enableval=yes
5724 fi
5725
5726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5727 $as_echo "$enableval" >&6; }
5728    if test x"$enableval" = xyes ; then
5729
5730 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5731
5732    fi
5733
5734 # Elgamal is a MUST algorithm
5735 # DSA is a MUST algorithm
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5737 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5738    # Check whether --enable-gpg-ecdh was given.
5739 if test "${enable_gpg_ecdh+set}" = set; then :
5740   enableval=$enable_gpg_ecdh;
5741 else
5742   enableval=yes
5743 fi
5744
5745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5746 $as_echo "$enableval" >&6; }
5747    if test x"$enableval" = xyes ; then
5748
5749 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5750
5751    fi
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5754 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5755    # Check whether --enable-gpg-ecdsa was given.
5756 if test "${enable_gpg_ecdsa+set}" = set; then :
5757   enableval=$enable_gpg_ecdsa;
5758 else
5759   enableval=yes
5760 fi
5761
5762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5763 $as_echo "$enableval" >&6; }
5764    if test x"$enableval" = xyes ; then
5765
5766 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5767
5768    fi
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5771 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5772    # Check whether --enable-gpg-eddsa was given.
5773 if test "${enable_gpg_eddsa+set}" = set; then :
5774   enableval=$enable_gpg_eddsa;
5775 else
5776   enableval=yes
5777 fi
5778
5779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5780 $as_echo "$enableval" >&6; }
5781    if test x"$enableval" = xyes ; then
5782
5783 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5784
5785    fi
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5789 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5790    # Check whether --enable-gpg-idea was given.
5791 if test "${enable_gpg_idea+set}" = set; then :
5792   enableval=$enable_gpg_idea;
5793 else
5794   enableval=yes
5795 fi
5796
5797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5798 $as_echo "$enableval" >&6; }
5799    if test x"$enableval" = xyes ; then
5800
5801 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5802
5803    fi
5804
5805 # 3DES is a MUST algorithm
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5807 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5808    # Check whether --enable-gpg-cast5 was given.
5809 if test "${enable_gpg_cast5+set}" = set; then :
5810   enableval=$enable_gpg_cast5;
5811 else
5812   enableval=yes
5813 fi
5814
5815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5816 $as_echo "$enableval" >&6; }
5817    if test x"$enableval" = xyes ; then
5818
5819 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5820
5821    fi
5822
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5824 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5825    # Check whether --enable-gpg-blowfish was given.
5826 if test "${enable_gpg_blowfish+set}" = set; then :
5827   enableval=$enable_gpg_blowfish;
5828 else
5829   enableval=yes
5830 fi
5831
5832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5833 $as_echo "$enableval" >&6; }
5834    if test x"$enableval" = xyes ; then
5835
5836 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5837
5838    fi
5839
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5841 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5842    # Check whether --enable-gpg-aes128 was given.
5843 if test "${enable_gpg_aes128+set}" = set; then :
5844   enableval=$enable_gpg_aes128;
5845 else
5846   enableval=yes
5847 fi
5848
5849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5850 $as_echo "$enableval" >&6; }
5851    if test x"$enableval" = xyes ; then
5852
5853 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5854
5855    fi
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5858 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5859    # Check whether --enable-gpg-aes192 was given.
5860 if test "${enable_gpg_aes192+set}" = set; then :
5861   enableval=$enable_gpg_aes192;
5862 else
5863   enableval=yes
5864 fi
5865
5866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5867 $as_echo "$enableval" >&6; }
5868    if test x"$enableval" = xyes ; then
5869
5870 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5871
5872    fi
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5875 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5876    # Check whether --enable-gpg-aes256 was given.
5877 if test "${enable_gpg_aes256+set}" = set; then :
5878   enableval=$enable_gpg_aes256;
5879 else
5880   enableval=yes
5881 fi
5882
5883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5884 $as_echo "$enableval" >&6; }
5885    if test x"$enableval" = xyes ; then
5886
5887 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5888
5889    fi
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5892 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5893    # Check whether --enable-gpg-twofish was given.
5894 if test "${enable_gpg_twofish+set}" = set; then :
5895   enableval=$enable_gpg_twofish;
5896 else
5897   enableval=yes
5898 fi
5899
5900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5901 $as_echo "$enableval" >&6; }
5902    if test x"$enableval" = xyes ; then
5903
5904 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5905
5906    fi
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5909 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5910    # Check whether --enable-gpg-camellia128 was given.
5911 if test "${enable_gpg_camellia128+set}" = set; then :
5912   enableval=$enable_gpg_camellia128;
5913 else
5914   enableval=yes
5915 fi
5916
5917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5918 $as_echo "$enableval" >&6; }
5919    if test x"$enableval" = xyes ; then
5920
5921 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5922
5923    fi
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5926 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5927    # Check whether --enable-gpg-camellia192 was given.
5928 if test "${enable_gpg_camellia192+set}" = set; then :
5929   enableval=$enable_gpg_camellia192;
5930 else
5931   enableval=yes
5932 fi
5933
5934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5935 $as_echo "$enableval" >&6; }
5936    if test x"$enableval" = xyes ; then
5937
5938 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5939
5940    fi
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5943 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5944    # Check whether --enable-gpg-camellia256 was given.
5945 if test "${enable_gpg_camellia256+set}" = set; then :
5946   enableval=$enable_gpg_camellia256;
5947 else
5948   enableval=yes
5949 fi
5950
5951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5952 $as_echo "$enableval" >&6; }
5953    if test x"$enableval" = xyes ; then
5954
5955 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5956
5957    fi
5958
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5961 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5962    # Check whether --enable-gpg-md5 was given.
5963 if test "${enable_gpg_md5+set}" = set; then :
5964   enableval=$enable_gpg_md5;
5965 else
5966   enableval=yes
5967 fi
5968
5969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5970 $as_echo "$enableval" >&6; }
5971    if test x"$enableval" = xyes ; then
5972
5973 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5974
5975    fi
5976
5977 # SHA1 is a MUST algorithm
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5979 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5980    # Check whether --enable-gpg-rmd160 was given.
5981 if test "${enable_gpg_rmd160+set}" = set; then :
5982   enableval=$enable_gpg_rmd160;
5983 else
5984   enableval=yes
5985 fi
5986
5987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5988 $as_echo "$enableval" >&6; }
5989    if test x"$enableval" = xyes ; then
5990
5991 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5992
5993    fi
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5996 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5997    # Check whether --enable-gpg-sha224 was given.
5998 if test "${enable_gpg_sha224+set}" = set; then :
5999   enableval=$enable_gpg_sha224;
6000 else
6001   enableval=yes
6002 fi
6003
6004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6005 $as_echo "$enableval" >&6; }
6006    if test x"$enableval" = xyes ; then
6007
6008 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6009
6010    fi
6011
6012 # SHA256 is a MUST algorithm for GnuPG.
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6014 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6015    # Check whether --enable-gpg-sha384 was given.
6016 if test "${enable_gpg_sha384+set}" = set; then :
6017   enableval=$enable_gpg_sha384;
6018 else
6019   enableval=yes
6020 fi
6021
6022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6023 $as_echo "$enableval" >&6; }
6024    if test x"$enableval" = xyes ; then
6025
6026 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6027
6028    fi
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6031 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6032    # Check whether --enable-gpg-sha512 was given.
6033 if test "${enable_gpg_sha512+set}" = set; then :
6034   enableval=$enable_gpg_sha512;
6035 else
6036   enableval=yes
6037 fi
6038
6039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6040 $as_echo "$enableval" >&6; }
6041    if test x"$enableval" = xyes ; then
6042
6043 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6044
6045    fi
6046
6047
6048
6049 # Allow disabling of zip support.
6050 # This is in general not a good idea because according to rfc4880 OpenPGP
6051 # implementations SHOULD support ZLIB.
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6053 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6054 # Check whether --enable-zip was given.
6055 if test "${enable_zip+set}" = set; then :
6056   enableval=$enable_zip; use_zip=$enableval
6057 fi
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6060 $as_echo "$use_zip" >&6; }
6061
6062 # Allow disabling of bzib2 support.
6063 # It is defined only after we confirm the library is available later
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6065 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6066 # Check whether --enable-bzip2 was given.
6067 if test "${enable_bzip2+set}" = set; then :
6068   enableval=$enable_bzip2; use_bzip2=$enableval
6069 fi
6070
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6072 $as_echo "$use_bzip2" >&6; }
6073
6074 # Configure option to allow or disallow execution of external
6075 # programs, like a photo viewer.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6077 $as_echo_n "checking whether to enable external program execution... " >&6; }
6078 # Check whether --enable-exec was given.
6079 if test "${enable_exec+set}" = set; then :
6080   enableval=$enable_exec; use_exec=$enableval
6081 fi
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6084 $as_echo "$use_exec" >&6; }
6085 if test "$use_exec" = no ; then
6086
6087 $as_echo "#define NO_EXEC 1" >>confdefs.h
6088
6089 fi
6090
6091 if test "$use_exec" = yes ; then
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6093 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6094   # Check whether --enable-photo-viewers was given.
6095 if test "${enable_photo_viewers+set}" = set; then :
6096   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6097
6098 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6099
6100       fi
6101 else
6102   enableval=yes
6103 fi
6104
6105   gnupg_cv_enable_photo_viewers=$enableval
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6107 $as_echo "$enableval" >&6; }
6108
6109   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6111 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6112
6113 # Check whether --with-photo-viewer was given.
6114 if test "${with_photo_viewer+set}" = set; then :
6115   withval=$with_photo_viewer; if test "$withval" = yes ; then
6116            withval=no
6117         elif test "$withval" != no ; then
6118
6119 cat >>confdefs.h <<_ACEOF
6120 #define FIXED_PHOTO_VIEWER "$withval"
6121 _ACEOF
6122
6123         fi
6124 else
6125   withval=no
6126 fi
6127
6128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6129 $as_echo "$withval" >&6; }
6130   fi
6131 fi
6132
6133
6134 #
6135 # Check for the key/uid cache size.  This can't be zero, but can be
6136 # pretty small on embedded systems.  This is used for the gpg part.
6137 #
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6139 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6140 # Check whether --enable-key-cache was given.
6141 if test "${enable_key_cache+set}" = set; then :
6142   enableval=$enable_key_cache;
6143 else
6144   enableval=4096
6145 fi
6146
6147 if test "$enableval" = "no"; then
6148    enableval=5
6149 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6150    enableval=4096
6151 fi
6152 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6153 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6154    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6157 $as_echo "$key_cache_size" >&6; }
6158
6159 cat >>confdefs.h <<_ACEOF
6160 #define PK_UID_CACHE_SIZE $key_cache_size
6161 _ACEOF
6162
6163
6164
6165
6166 #
6167 # Check whether we want to use Linux capabilities
6168 #
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6170 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6171
6172 # Check whether --with-capabilities was given.
6173 if test "${with_capabilities+set}" = set; then :
6174   withval=$with_capabilities; use_capabilities="$withval"
6175 else
6176   use_capabilities=no
6177 fi
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6180 $as_echo "$use_capabilities" >&6; }
6181
6182 #
6183 # Check whether to disable the card support
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6185 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6186 # Check whether --enable-card-support was given.
6187 if test "${enable_card_support+set}" = set; then :
6188   enableval=$enable_card_support; card_support=$enableval
6189 fi
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6192 $as_echo "$card_support" >&6; }
6193 if test "$card_support" = yes ; then
6194
6195 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6196
6197 else
6198   build_scdaemon=no
6199 fi
6200
6201 #
6202 # Allow disabling of internal CCID support.
6203 # It is defined only after we confirm the library is available later
6204 #
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6206 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6207 # Check whether --enable-ccid-driver was given.
6208 if test "${enable_ccid_driver+set}" = set; then :
6209   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6210 fi
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6213 $as_echo "$use_ccid_driver" >&6; }
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6216 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6217 # Check whether --enable-dirmngr-auto-start was given.
6218 if test "${enable_dirmngr_auto_start+set}" = set; then :
6219   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6220 fi
6221
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6223 $as_echo "$dirmngr_auto_start" >&6; }
6224 if test "$dirmngr_auto_start" = yes ; then
6225
6226 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6227
6228 fi
6229
6230
6231 #
6232 # To avoid double inclusion of config.h which might happen at some
6233 # places, we add the usual double inclusion protection at the top of
6234 # config.h.
6235 #
6236
6237
6238 #
6239 # Stuff which goes at the bottom of config.h.
6240 #
6241
6242
6243
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6246 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6247     # Check whether --enable-maintainer-mode was given.
6248 if test "${enable_maintainer_mode+set}" = set; then :
6249   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6250 else
6251   USE_MAINTAINER_MODE=no
6252 fi
6253
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6255 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6256    if test $USE_MAINTAINER_MODE = yes; then
6257   MAINTAINER_MODE_TRUE=
6258   MAINTAINER_MODE_FALSE='#'
6259 else
6260   MAINTAINER_MODE_TRUE='#'
6261   MAINTAINER_MODE_FALSE=
6262 fi
6263
6264   MAINT=$MAINTAINER_MODE_TRUE
6265
6266
6267
6268
6269 # Checks for programs.
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6271 $as_echo "$as_me: checking for programs" >&6;}
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6273 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6274 set x ${MAKE-make}
6275 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6276 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   cat >conftest.make <<\_ACEOF
6280 SHELL = /bin/sh
6281 all:
6282         @echo '@@@%%%=$(MAKE)=@@@%%%'
6283 _ACEOF
6284 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6286   *@@@%%%=?*=@@@%%%*)
6287     eval ac_cv_prog_make_${ac_make}_set=yes;;
6288   *)
6289     eval ac_cv_prog_make_${ac_make}_set=no;;
6290 esac
6291 rm -f conftest.make
6292 fi
6293 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6295 $as_echo "yes" >&6; }
6296   SET_MAKE=
6297 else
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300   SET_MAKE="MAKE=${MAKE-make}"
6301 fi
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6304 $as_echo_n "checking whether build environment is sane... " >&6; }
6305 # Reject unsafe characters in $srcdir or the absolute working directory
6306 # name.  Accept space and tab only in the latter.
6307 am_lf='
6308 '
6309 case `pwd` in
6310   *[\\\"\#\$\&\'\`$am_lf]*)
6311     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6312 esac
6313 case $srcdir in
6314   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6315     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6316 esac
6317
6318 # Do 'set' in a subshell so we don't clobber the current shell's
6319 # arguments.  Must try -L first in case configure is actually a
6320 # symlink; some systems play weird games with the mod time of symlinks
6321 # (eg FreeBSD returns the mod time of the symlink's containing
6322 # directory).
6323 if (
6324    am_has_slept=no
6325    for am_try in 1 2; do
6326      echo "timestamp, slept: $am_has_slept" > conftest.file
6327      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6328      if test "$*" = "X"; then
6329         # -L didn't work.
6330         set X `ls -t "$srcdir/configure" conftest.file`
6331      fi
6332      if test "$*" != "X $srcdir/configure conftest.file" \
6333         && test "$*" != "X conftest.file $srcdir/configure"; then
6334
6335         # If neither matched, then we have a broken ls.  This can happen
6336         # if, for instance, CONFIG_SHELL is bash and it inherits a
6337         # broken ls alias from the environment.  This has actually
6338         # happened.  Such a system could not be considered "sane".
6339         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6340   alias in your environment" "$LINENO" 5
6341      fi
6342      if test "$2" = conftest.file || test $am_try -eq 2; then
6343        break
6344      fi
6345      # Just in case.
6346      sleep 1
6347      am_has_slept=yes
6348    done
6349    test "$2" = conftest.file
6350    )
6351 then
6352    # Ok.
6353    :
6354 else
6355    as_fn_error $? "newly created file is older than distributed files!
6356 Check your system clock" "$LINENO" 5
6357 fi
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6359 $as_echo "yes" >&6; }
6360 # If we didn't sleep, we still need to ensure time stamps of config.status and
6361 # generated files are strictly newer.
6362 am_sleep_pid=
6363 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6364   ( sleep 1 ) &
6365   am_sleep_pid=$!
6366 fi
6367
6368 rm -f conftest.file
6369
6370 missing_dir=`cd $ac_aux_dir && pwd`
6371
6372 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6373
6374
6375 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6376
6377
6378 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6379
6380
6381 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6382
6383
6384 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6385
6386 # Check whether --enable-silent-rules was given.
6387 if test "${enable_silent_rules+set}" = set; then :
6388   enableval=$enable_silent_rules;
6389 fi
6390
6391 case $enable_silent_rules in # (((
6392   yes) AM_DEFAULT_VERBOSITY=0;;
6393    no) AM_DEFAULT_VERBOSITY=1;;
6394     *) AM_DEFAULT_VERBOSITY=1;;
6395 esac
6396 am_make=${MAKE-make}
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6398 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6399 if ${am_cv_make_support_nested_variables+:} false; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   if $as_echo 'TRUE=$(BAR$(V))
6403 BAR0=false
6404 BAR1=true
6405 V=1
6406 am__doit:
6407         @$(TRUE)
6408 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6409   am_cv_make_support_nested_variables=yes
6410 else
6411   am_cv_make_support_nested_variables=no
6412 fi
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6415 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6416 if test $am_cv_make_support_nested_variables = yes; then
6417     AM_V='$(V)'
6418   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6419 else
6420   AM_V=$AM_DEFAULT_VERBOSITY
6421   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6422 fi
6423 AM_BACKSLASH='\'
6424
6425 for ac_prog in gawk mawk nawk awk
6426 do
6427   # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_AWK+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$AWK"; then
6435   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_prog_AWK="$ac_prog"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 AWK=$ac_cv_prog_AWK
6455 if test -n "$AWK"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6457 $as_echo "$AWK" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464   test -n "$AWK" && break
6465 done
6466
6467 ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472 if test -n "$ac_tool_prefix"; then
6473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_CC+:} false; then :
6478   $as_echo_n "(cached) " >&6
6479 else
6480   if test -n "$CC"; then
6481   ac_cv_prog_CC="$CC" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488     for ac_exec_ext in '' $ac_executable_extensions; do
6489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495   done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 CC=$ac_cv_prog_CC
6501 if test -n "$CC"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6503 $as_echo "$CC" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_CC"; then
6512   ac_ct_CC=$CC
6513   # Extract the first word of "gcc", so it can be a program name with args.
6514 set dummy gcc; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   if test -n "$ac_ct_CC"; then
6521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528     for ac_exec_ext in '' $ac_executable_extensions; do
6529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530     ac_cv_prog_ac_ct_CC="gcc"
6531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535   done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6541 if test -n "$ac_ct_CC"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6543 $as_echo "$ac_ct_CC" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549   if test "x$ac_ct_CC" = x; then
6550     CC=""
6551   else
6552     case $cross_compiling:$ac_tool_warned in
6553 yes:)
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6557 esac
6558     CC=$ac_ct_CC
6559   fi
6560 else
6561   CC="$ac_cv_prog_CC"
6562 fi
6563
6564 if test -z "$CC"; then
6565           if test -n "$ac_tool_prefix"; then
6566     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6567 set dummy ${ac_tool_prefix}cc; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_CC+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   if test -n "$CC"; then
6574   ac_cv_prog_CC="$CC" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581     for ac_exec_ext in '' $ac_executable_extensions; do
6582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583     ac_cv_prog_CC="${ac_tool_prefix}cc"
6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588   done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 CC=$ac_cv_prog_CC
6594 if test -n "$CC"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6596 $as_echo "$CC" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602
6603   fi
6604 fi
6605 if test -z "$CC"; then
6606   # Extract the first word of "cc", so it can be a program name with args.
6607 set dummy cc; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_prog_CC+:} false; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613   if test -n "$CC"; then
6614   ac_cv_prog_CC="$CC" # Let the user override the test.
6615 else
6616   ac_prog_rejected=no
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6625        ac_prog_rejected=yes
6626        continue
6627      fi
6628     ac_cv_prog_CC="cc"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635
6636 if test $ac_prog_rejected = yes; then
6637   # We found a bogon in the path, so make sure we never use it.
6638   set dummy $ac_cv_prog_CC
6639   shift
6640   if test $# != 0; then
6641     # We chose a different compiler from the bogus one.
6642     # However, it has the same basename, so the bogon will be chosen
6643     # first if we set CC to just the basename; use the full file name.
6644     shift
6645     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6646   fi
6647 fi
6648 fi
6649 fi
6650 CC=$ac_cv_prog_CC
6651 if test -n "$CC"; then
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6653 $as_echo "$CC" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$CC"; then
6662   if test -n "$ac_tool_prefix"; then
6663   for ac_prog in cl.exe
6664   do
6665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_CC+:} false; then :
6670   $as_echo_n "(cached) " >&6
6671 else
6672   if test -n "$CC"; then
6673   ac_cv_prog_CC="$CC" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680     for ac_exec_ext in '' $ac_executable_extensions; do
6681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687   done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 CC=$ac_cv_prog_CC
6693 if test -n "$CC"; then
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6695 $as_echo "$CC" >&6; }
6696 else
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701
6702     test -n "$CC" && break
6703   done
6704 fi
6705 if test -z "$CC"; then
6706   ac_ct_CC=$CC
6707   for ac_prog in cl.exe
6708 do
6709   # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy $ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$ac_ct_CC"; then
6717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726     ac_cv_prog_ac_ct_CC="$ac_prog"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6737 if test -n "$ac_ct_CC"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6739 $as_echo "$ac_ct_CC" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745
6746   test -n "$ac_ct_CC" && break
6747 done
6748
6749   if test "x$ac_ct_CC" = x; then
6750     CC=""
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758     CC=$ac_ct_CC
6759   fi
6760 fi
6761
6762 fi
6763
6764
6765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6767 as_fn_error $? "no acceptable C compiler found in \$PATH
6768 See \`config.log' for more details" "$LINENO" 5; }
6769
6770 # Provide some information about the compiler.
6771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6772 set X $ac_compile
6773 ac_compiler=$2
6774 for ac_option in --version -v -V -qversion; do
6775   { { ac_try="$ac_compiler $ac_option >&5"
6776 case "(($ac_try" in
6777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778   *) ac_try_echo=$ac_try;;
6779 esac
6780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6781 $as_echo "$ac_try_echo"; } >&5
6782   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6783   ac_status=$?
6784   if test -s conftest.err; then
6785     sed '10a\
6786 ... rest of stderr output deleted ...
6787          10q' conftest.err >conftest.er1
6788     cat conftest.er1 >&5
6789   fi
6790   rm -f conftest.er1 conftest.err
6791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792   test $ac_status = 0; }
6793 done
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6797 if ${ac_cv_c_compiler_gnu+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h.  */
6802
6803 int
6804 main ()
6805 {
6806 #ifndef __GNUC__
6807        choke me
6808 #endif
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815   ac_compiler_gnu=yes
6816 else
6817   ac_compiler_gnu=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6821
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6825 if test $ac_compiler_gnu = yes; then
6826   GCC=yes
6827 else
6828   GCC=
6829 fi
6830 ac_test_CFLAGS=${CFLAGS+set}
6831 ac_save_CFLAGS=$CFLAGS
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6834 if ${ac_cv_prog_cc_g+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   ac_save_c_werror_flag=$ac_c_werror_flag
6838    ac_c_werror_flag=yes
6839    ac_cv_prog_cc_g=no
6840    CFLAGS="-g"
6841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h.  */
6843
6844 int
6845 main ()
6846 {
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853   ac_cv_prog_cc_g=yes
6854 else
6855   CFLAGS=""
6856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858
6859 int
6860 main ()
6861 {
6862
6863   ;
6864   return 0;
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868
6869 else
6870   ac_c_werror_flag=$ac_save_c_werror_flag
6871          CFLAGS="-g"
6872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h.  */
6874
6875 int
6876 main ()
6877 {
6878
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_compile "$LINENO"; then :
6884   ac_cv_prog_cc_g=yes
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891    ac_c_werror_flag=$ac_save_c_werror_flag
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6894 $as_echo "$ac_cv_prog_cc_g" >&6; }
6895 if test "$ac_test_CFLAGS" = set; then
6896   CFLAGS=$ac_save_CFLAGS
6897 elif test $ac_cv_prog_cc_g = yes; then
6898   if test "$GCC" = yes; then
6899     CFLAGS="-g -O2"
6900   else
6901     CFLAGS="-g"
6902   fi
6903 else
6904   if test "$GCC" = yes; then
6905     CFLAGS="-O2"
6906   else
6907     CFLAGS=
6908   fi
6909 fi
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6912 if ${ac_cv_prog_cc_c89+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   ac_cv_prog_cc_c89=no
6916 ac_save_CC=$CC
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h.  */
6919 #include <stdarg.h>
6920 #include <stdio.h>
6921 struct stat;
6922 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6923 struct buf { int x; };
6924 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6925 static char *e (p, i)
6926      char **p;
6927      int i;
6928 {
6929   return p[i];
6930 }
6931 static char *f (char * (*g) (char **, int), char **p, ...)
6932 {
6933   char *s;
6934   va_list v;
6935   va_start (v,p);
6936   s = g (p, va_arg (v,int));
6937   va_end (v);
6938   return s;
6939 }
6940
6941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6942    function prototypes and stuff, but not '\xHH' hex character constants.
6943    These don't provoke an error unfortunately, instead are silently treated
6944    as 'x'.  The following induces an error, until -std is added to get
6945    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6946    array size at least.  It's necessary to write '\x00'==0 to get something
6947    that's true only with -std.  */
6948 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6949
6950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6951    inside strings and character constants.  */
6952 #define FOO(x) 'x'
6953 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6954
6955 int test (int i, double x);
6956 struct s1 {int (*f) (int a);};
6957 struct s2 {int (*f) (double a);};
6958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6959 int argc;
6960 char **argv;
6961 int
6962 main ()
6963 {
6964 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6970         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6971 do
6972   CC="$ac_save_CC $ac_arg"
6973   if ac_fn_c_try_compile "$LINENO"; then :
6974   ac_cv_prog_cc_c89=$ac_arg
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext
6977   test "x$ac_cv_prog_cc_c89" != "xno" && break
6978 done
6979 rm -f conftest.$ac_ext
6980 CC=$ac_save_CC
6981
6982 fi
6983 # AC_CACHE_VAL
6984 case "x$ac_cv_prog_cc_c89" in
6985   x)
6986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6987 $as_echo "none needed" >&6; } ;;
6988   xno)
6989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6990 $as_echo "unsupported" >&6; } ;;
6991   *)
6992     CC="$CC $ac_cv_prog_cc_c89"
6993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6994 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6995 esac
6996 if test "x$ac_cv_prog_cc_c89" != xno; then :
6997
6998 fi
6999
7000 ac_ext=c
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
7006 ac_ext=c
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7012 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7013 if ${am_cv_prog_cc_c_o+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018
7019 int
7020 main ()
7021 {
7022
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027   # Make sure it works both with $CC and with simple cc.
7028   # Following AC_PROG_CC_C_O, we do the test twice because some
7029   # compilers refuse to overwrite an existing .o file with -o,
7030   # though they will create one.
7031   am_cv_prog_cc_c_o=yes
7032   for am_i in 1 2; do
7033     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7034    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7035    ac_status=$?
7036    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037    (exit $ac_status); } \
7038          && test -f conftest2.$ac_objext; then
7039       : OK
7040     else
7041       am_cv_prog_cc_c_o=no
7042       break
7043     fi
7044   done
7045   rm -f core conftest*
7046   unset am_i
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7049 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7050 if test "$am_cv_prog_cc_c_o" != yes; then
7051    # Losing compiler, so override with the script.
7052    # FIXME: It is wrong to rewrite CC.
7053    # But if we don't then we get into trouble of one sort or another.
7054    # A longer-term fix would be to have automake use am__CC in this case,
7055    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7056    CC="$am_aux_dir/compile $CC"
7057 fi
7058 ac_ext=c
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063
7064
7065 depcc="$CC"   am_compiler_list=
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7068 $as_echo_n "checking dependency style of $depcc... " >&6; }
7069 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7073   # We make a subdir and do the tests there.  Otherwise we can end up
7074   # making bogus files that we don't know about and never remove.  For
7075   # instance it was reported that on HP-UX the gcc test will end up
7076   # making a dummy file named 'D' -- because '-MD' means "put the output
7077   # in D".
7078   rm -rf conftest.dir
7079   mkdir conftest.dir
7080   # Copy depcomp to subdir because otherwise we won't find it if we're
7081   # using a relative directory.
7082   cp "$am_depcomp" conftest.dir
7083   cd conftest.dir
7084   # We will build objects and dependencies in a subdirectory because
7085   # it helps to detect inapplicable dependency modes.  For instance
7086   # both Tru64's cc and ICC support -MD to output dependencies as a
7087   # side effect of compilation, but ICC will put the dependencies in
7088   # the current directory while Tru64 will put them in the object
7089   # directory.
7090   mkdir sub
7091
7092   am_cv_CC_dependencies_compiler_type=none
7093   if test "$am_compiler_list" = ""; then
7094      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7095   fi
7096   am__universal=false
7097   case " $depcc " in #(
7098      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7099      esac
7100
7101   for depmode in $am_compiler_list; do
7102     # Setup a source with many dependencies, because some compilers
7103     # like to wrap large dependency lists on column 80 (with \), and
7104     # we should not choose a depcomp mode which is confused by this.
7105     #
7106     # We need to recreate these files for each test, as the compiler may
7107     # overwrite some of them when testing with obscure command lines.
7108     # This happens at least with the AIX C compiler.
7109     : > sub/conftest.c
7110     for i in 1 2 3 4 5 6; do
7111       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7112       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7113       # Solaris 10 /bin/sh.
7114       echo '/* dummy */' > sub/conftst$i.h
7115     done
7116     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7117
7118     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7119     # mode.  It turns out that the SunPro C++ compiler does not properly
7120     # handle '-M -o', and we need to detect this.  Also, some Intel
7121     # versions had trouble with output in subdirs.
7122     am__obj=sub/conftest.${OBJEXT-o}
7123     am__minus_obj="-o $am__obj"
7124     case $depmode in
7125     gcc)
7126       # This depmode causes a compiler race in universal mode.
7127       test "$am__universal" = false || continue
7128       ;;
7129     nosideeffect)
7130       # After this tag, mechanisms are not by side-effect, so they'll
7131       # only be used when explicitly requested.
7132       if test "x$enable_dependency_tracking" = xyes; then
7133         continue
7134       else
7135         break
7136       fi
7137       ;;
7138     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7139       # This compiler won't grok '-c -o', but also, the minuso test has
7140       # not run yet.  These depmodes are late enough in the game, and
7141       # so weak that their functioning should not be impacted.
7142       am__obj=conftest.${OBJEXT-o}
7143       am__minus_obj=
7144       ;;
7145     none) break ;;
7146     esac
7147     if depmode=$depmode \
7148        source=sub/conftest.c object=$am__obj \
7149        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7150        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7151          >/dev/null 2>conftest.err &&
7152        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7153        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7154        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7155        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7156       # icc doesn't choke on unknown options, it will just issue warnings
7157       # or remarks (even with -Werror).  So we grep stderr for any message
7158       # that says an option was ignored or not supported.
7159       # When given -MP, icc 7.0 and 7.1 complain thusly:
7160       #   icc: Command line warning: ignoring option '-M'; no argument required
7161       # The diagnosis changed in icc 8.0:
7162       #   icc: Command line remark: option '-MP' not supported
7163       if (grep 'ignoring option' conftest.err ||
7164           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7165         am_cv_CC_dependencies_compiler_type=$depmode
7166         break
7167       fi
7168     fi
7169   done
7170
7171   cd ..
7172   rm -rf conftest.dir
7173 else
7174   am_cv_CC_dependencies_compiler_type=none
7175 fi
7176
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7179 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7180 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7181
7182  if
7183   test "x$enable_dependency_tracking" != xno \
7184   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7185   am__fastdepCC_TRUE=
7186   am__fastdepCC_FALSE='#'
7187 else
7188   am__fastdepCC_TRUE='#'
7189   am__fastdepCC_FALSE=
7190 fi
7191
7192
7193 ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7200 # On Suns, sometimes $CPP names a directory.
7201 if test -n "$CPP" && test -d "$CPP"; then
7202   CPP=
7203 fi
7204 if test -z "$CPP"; then
7205   if ${ac_cv_prog_CPP+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208       # Double quotes because CPP needs to be expanded
7209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7210     do
7211       ac_preproc_ok=false
7212 for ac_c_preproc_warn_flag in '' yes
7213 do
7214   # Use a header file that comes with gcc, so configuring glibc
7215   # with a fresh cross-compiler works.
7216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7217   # <limits.h> exists even on freestanding compilers.
7218   # On the NeXT, cc -E runs the code through the compiler's parser,
7219   # not just through cpp. "Syntax error" is here to catch this case.
7220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222 #ifdef __STDC__
7223 # include <limits.h>
7224 #else
7225 # include <assert.h>
7226 #endif
7227                      Syntax error
7228 _ACEOF
7229 if ac_fn_c_try_cpp "$LINENO"; then :
7230
7231 else
7232   # Broken: fails on valid input.
7233 continue
7234 fi
7235 rm -f conftest.err conftest.i conftest.$ac_ext
7236
7237   # OK, works on sane cases.  Now check whether nonexistent headers
7238   # can be detected and how.
7239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h.  */
7241 #include <ac_nonexistent.h>
7242 _ACEOF
7243 if ac_fn_c_try_cpp "$LINENO"; then :
7244   # Broken: success on invalid input.
7245 continue
7246 else
7247   # Passes both tests.
7248 ac_preproc_ok=:
7249 break
7250 fi
7251 rm -f conftest.err conftest.i conftest.$ac_ext
7252
7253 done
7254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7255 rm -f conftest.i conftest.err conftest.$ac_ext
7256 if $ac_preproc_ok; then :
7257   break
7258 fi
7259
7260     done
7261     ac_cv_prog_CPP=$CPP
7262
7263 fi
7264   CPP=$ac_cv_prog_CPP
7265 else
7266   ac_cv_prog_CPP=$CPP
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7269 $as_echo "$CPP" >&6; }
7270 ac_preproc_ok=false
7271 for ac_c_preproc_warn_flag in '' yes
7272 do
7273   # Use a header file that comes with gcc, so configuring glibc
7274   # with a fresh cross-compiler works.
7275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7276   # <limits.h> exists even on freestanding compilers.
7277   # On the NeXT, cc -E runs the code through the compiler's parser,
7278   # not just through cpp. "Syntax error" is here to catch this case.
7279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h.  */
7281 #ifdef __STDC__
7282 # include <limits.h>
7283 #else
7284 # include <assert.h>
7285 #endif
7286                      Syntax error
7287 _ACEOF
7288 if ac_fn_c_try_cpp "$LINENO"; then :
7289
7290 else
7291   # Broken: fails on valid input.
7292 continue
7293 fi
7294 rm -f conftest.err conftest.i conftest.$ac_ext
7295
7296   # OK, works on sane cases.  Now check whether nonexistent headers
7297   # can be detected and how.
7298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h.  */
7300 #include <ac_nonexistent.h>
7301 _ACEOF
7302 if ac_fn_c_try_cpp "$LINENO"; then :
7303   # Broken: success on invalid input.
7304 continue
7305 else
7306   # Passes both tests.
7307 ac_preproc_ok=:
7308 break
7309 fi
7310 rm -f conftest.err conftest.i conftest.$ac_ext
7311
7312 done
7313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7314 rm -f conftest.i conftest.err conftest.$ac_ext
7315 if $ac_preproc_ok; then :
7316
7317 else
7318   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7320 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7321 See \`config.log' for more details" "$LINENO" 5; }
7322 fi
7323
7324 ac_ext=c
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330
7331 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7332   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7333 fi
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7336 $as_echo_n "checking whether ln -s works... " >&6; }
7337 LN_S=$as_ln_s
7338 if test "$LN_S" = "ln -s"; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340 $as_echo "yes" >&6; }
7341 else
7342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7343 $as_echo "no, using $LN_S" >&6; }
7344 fi
7345
7346 if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_RANLIB+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$RANLIB"; then
7355   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7377 $as_echo "$RANLIB" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386   ac_ct_RANLIB=$RANLIB
7387   # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_RANLIB"; then
7395   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_ac_ct_RANLIB="ranlib"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415 if test -n "$ac_ct_RANLIB"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7417 $as_echo "$ac_ct_RANLIB" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_RANLIB" = x; then
7424     RANLIB=":"
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     RANLIB=$ac_ct_RANLIB
7433   fi
7434 else
7435   RANLIB="$ac_cv_prog_RANLIB"
7436 fi
7437
7438 if test -n "$ac_tool_prefix"; then
7439   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}ar; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_AR+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$AR"; then
7447   ac_cv_prog_AR="$AR" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456     ac_cv_prog_AR="${ac_tool_prefix}ar"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 AR=$ac_cv_prog_AR
7467 if test -n "$AR"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7469 $as_echo "$AR" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_AR"; then
7478   ac_ct_AR=$AR
7479   # Extract the first word of "ar", so it can be a program name with args.
7480 set dummy ar; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   if test -n "$ac_ct_AR"; then
7487   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494     for ac_exec_ext in '' $ac_executable_extensions; do
7495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496     ac_cv_prog_ac_ct_AR="ar"
7497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501   done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7507 if test -n "$ac_ct_AR"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7509 $as_echo "$ac_ct_AR" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515   if test "x$ac_ct_AR" = x; then
7516     AR=":"
7517   else
7518     case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524     AR=$ac_ct_AR
7525   fi
7526 else
7527   AR="$ac_cv_prog_AR"
7528 fi
7529
7530 # Extract the first word of ""perl"", so it can be a program name with args.
7531 set dummy "perl"; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_path_PERL+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   case $PERL in
7538   [\\/]* | ?:[\\/]*)
7539   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7540   ;;
7541   *)
7542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547     for ac_exec_ext in '' $ac_executable_extensions; do
7548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554   done
7555 IFS=$as_save_IFS
7556
7557   ;;
7558 esac
7559 fi
7560 PERL=$ac_cv_path_PERL
7561 if test -n "$PERL"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7563 $as_echo "$PERL" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569
7570 if test -n "$ac_tool_prefix"; then
7571   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}windres; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_WINDRES+:} false; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   if test -n "$WINDRES"; then
7579   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586     for ac_exec_ext in '' $ac_executable_extensions; do
7587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593   done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 WINDRES=$ac_cv_prog_WINDRES
7599 if test -n "$WINDRES"; then
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7601 $as_echo "$WINDRES" >&6; }
7602 else
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607
7608 fi
7609 if test -z "$ac_cv_prog_WINDRES"; then
7610   ac_ct_WINDRES=$WINDRES
7611   # Extract the first word of "windres", so it can be a program name with args.
7612 set dummy windres; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   if test -n "$ac_ct_WINDRES"; then
7619   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626     for ac_exec_ext in '' $ac_executable_extensions; do
7627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628     ac_cv_prog_ac_ct_WINDRES="windres"
7629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633   done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7639 if test -n "$ac_ct_WINDRES"; then
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7641 $as_echo "$ac_ct_WINDRES" >&6; }
7642 else
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646
7647   if test "x$ac_ct_WINDRES" = x; then
7648     WINDRES=":"
7649   else
7650     case $cross_compiling:$ac_tool_warned in
7651 yes:)
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7655 esac
7656     WINDRES=$ac_ct_WINDRES
7657   fi
7658 else
7659   WINDRES="$ac_cv_prog_WINDRES"
7660 fi
7661
7662 # Extract the first word of ""yat2m"", so it can be a program name with args.
7663 set dummy "yat2m"; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_path_YAT2M+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   case $YAT2M in
7670   [\\/]* | ?:[\\/]*)
7671   ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7672   ;;
7673   *)
7674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679     for ac_exec_ext in '' $ac_executable_extensions; do
7680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681     ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686   done
7687 IFS=$as_save_IFS
7688
7689   test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7690   ;;
7691 esac
7692 fi
7693 YAT2M=$ac_cv_path_YAT2M
7694 if test -n "$YAT2M"; then
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7696 $as_echo "$YAT2M" >&6; }
7697 else
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702
7703
7704  if test -n "$ac_cv_path_YAT2M"; then
7705   HAVE_YAT2M_TRUE=
7706   HAVE_YAT2M_FALSE='#'
7707 else
7708   HAVE_YAT2M_TRUE='#'
7709   HAVE_YAT2M_FALSE=
7710 fi
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7713 $as_echo_n "checking for library containing strerror... " >&6; }
7714 if ${ac_cv_search_strerror+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   ac_func_search_save_LIBS=$LIBS
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h.  */
7720
7721 /* Override any GCC internal prototype to avoid an error.
7722    Use char because int might match the return type of a GCC
7723    builtin and then its argument prototype would still apply.  */
7724 #ifdef __cplusplus
7725 extern "C"
7726 #endif
7727 char strerror ();
7728 int
7729 main ()
7730 {
7731 return strerror ();
7732   ;
7733   return 0;
7734 }
7735 _ACEOF
7736 for ac_lib in '' cposix; do
7737   if test -z "$ac_lib"; then
7738     ac_res="none required"
7739   else
7740     ac_res=-l$ac_lib
7741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7742   fi
7743   if ac_fn_c_try_link "$LINENO"; then :
7744   ac_cv_search_strerror=$ac_res
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext \
7747     conftest$ac_exeext
7748   if ${ac_cv_search_strerror+:} false; then :
7749   break
7750 fi
7751 done
7752 if ${ac_cv_search_strerror+:} false; then :
7753
7754 else
7755   ac_cv_search_strerror=no
7756 fi
7757 rm conftest.$ac_ext
7758 LIBS=$ac_func_search_save_LIBS
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7761 $as_echo "$ac_cv_search_strerror" >&6; }
7762 ac_res=$ac_cv_search_strerror
7763 if test "$ac_res" != no; then :
7764   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7765
7766 fi
7767
7768 # Check whether --enable-largefile was given.
7769 if test "${enable_largefile+set}" = set; then :
7770   enableval=$enable_largefile;
7771 fi
7772
7773 if test "$enable_largefile" != no; then
7774
7775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7776 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7777 if ${ac_cv_sys_largefile_CC+:} false; then :
7778   $as_echo_n "(cached) " >&6
7779 else
7780   ac_cv_sys_largefile_CC=no
7781      if test "$GCC" != yes; then
7782        ac_save_CC=$CC
7783        while :; do
7784          # IRIX 6.2 and later do not support large files by default,
7785          # so use the C compiler's -n32 option if that helps.
7786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788 #include <sys/types.h>
7789  /* Check that off_t can represent 2**63 - 1 correctly.
7790     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7791     since some C++ compilers masquerading as C compilers
7792     incorrectly reject 9223372036854775807.  */
7793 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7794   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7795                        && LARGE_OFF_T % 2147483647 == 1)
7796                       ? 1 : -1];
7797 int
7798 main ()
7799 {
7800
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805          if ac_fn_c_try_compile "$LINENO"; then :
7806   break
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext
7809          CC="$CC -n32"
7810          if ac_fn_c_try_compile "$LINENO"; then :
7811   ac_cv_sys_largefile_CC=' -n32'; break
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext
7814          break
7815        done
7816        CC=$ac_save_CC
7817        rm -f conftest.$ac_ext
7818     fi
7819 fi
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7821 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7822   if test "$ac_cv_sys_largefile_CC" != no; then
7823     CC=$CC$ac_cv_sys_largefile_CC
7824   fi
7825
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7827 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7828 if ${ac_cv_sys_file_offset_bits+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   while :; do
7832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834 #include <sys/types.h>
7835  /* Check that off_t can represent 2**63 - 1 correctly.
7836     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7837     since some C++ compilers masquerading as C compilers
7838     incorrectly reject 9223372036854775807.  */
7839 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7840   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7841                        && LARGE_OFF_T % 2147483647 == 1)
7842                       ? 1 : -1];
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_compile "$LINENO"; then :
7852   ac_cv_sys_file_offset_bits=no; break
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857 #define _FILE_OFFSET_BITS 64
7858 #include <sys/types.h>
7859  /* Check that off_t can represent 2**63 - 1 correctly.
7860     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7861     since some C++ compilers masquerading as C compilers
7862     incorrectly reject 9223372036854775807.  */
7863 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7864   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7865                        && LARGE_OFF_T % 2147483647 == 1)
7866                       ? 1 : -1];
7867 int
7868 main ()
7869 {
7870
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_compile "$LINENO"; then :
7876   ac_cv_sys_file_offset_bits=64; break
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879   ac_cv_sys_file_offset_bits=unknown
7880   break
7881 done
7882 fi
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7885 case $ac_cv_sys_file_offset_bits in #(
7886   no | unknown) ;;
7887   *)
7888 cat >>confdefs.h <<_ACEOF
7889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7890 _ACEOF
7891 ;;
7892 esac
7893 rm -rf conftest*
7894   if test $ac_cv_sys_file_offset_bits = unknown; then
7895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7897 if ${ac_cv_sys_large_files+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   while :; do
7901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903 #include <sys/types.h>
7904  /* Check that off_t can represent 2**63 - 1 correctly.
7905     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7906     since some C++ compilers masquerading as C compilers
7907     incorrectly reject 9223372036854775807.  */
7908 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7909   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7910                        && LARGE_OFF_T % 2147483647 == 1)
7911                       ? 1 : -1];
7912 int
7913 main ()
7914 {
7915
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921   ac_cv_sys_large_files=no; break
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926 #define _LARGE_FILES 1
7927 #include <sys/types.h>
7928  /* Check that off_t can represent 2**63 - 1 correctly.
7929     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7930     since some C++ compilers masquerading as C compilers
7931     incorrectly reject 9223372036854775807.  */
7932 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7933   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7934                        && LARGE_OFF_T % 2147483647 == 1)
7935                       ? 1 : -1];
7936 int
7937 main ()
7938 {
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945   ac_cv_sys_large_files=1; break
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948   ac_cv_sys_large_files=unknown
7949   break
7950 done
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7953 $as_echo "$ac_cv_sys_large_files" >&6; }
7954 case $ac_cv_sys_large_files in #(
7955   no | unknown) ;;
7956   *)
7957 cat >>confdefs.h <<_ACEOF
7958 #define _LARGE_FILES $ac_cv_sys_large_files
7959 _ACEOF
7960 ;;
7961 esac
7962 rm -rf conftest*
7963   fi
7964
7965
7966 fi
7967
7968
7969
7970 # GNU AWK requires -n option to interpret "0xHH" as a number
7971 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7972   AWK_HEX_NUMBER_OPTION=''
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7974 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7975 else
7976   AWK_HEX_NUMBER_OPTION='-n'
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7978 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7979 fi
7980
7981
7982 # We need to compile and run a program on the build machine.  A
7983 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7984 # the AC archive is broken for autoconf 2.57.  Given that there is no
7985 # newer version of that macro, we assume that it is also broken for
7986 # autoconf 2.61 and thus we use a simple but usually sufficient
7987 # approach.
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7989 $as_echo_n "checking for cc for build... " >&6; }
7990 if test "$cross_compiling" = "yes"; then
7991   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7992 else
7993   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7996 $as_echo "$CC_FOR_BUILD" >&6; }
7997
7998
7999 # We need to call this macro because other pkg-config macros are
8000 # not always used.
8001
8002
8003
8004
8005
8006
8007
8008 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8009         if test -n "$ac_tool_prefix"; then
8010   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8011 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8015   $as_echo_n "(cached) " >&6
8016 else
8017   case $PKG_CONFIG in
8018   [\\/]* | ?:[\\/]*)
8019   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8020   ;;
8021   *)
8022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025   IFS=$as_save_IFS
8026   test -z "$as_dir" && as_dir=.
8027     for ac_exec_ext in '' $ac_executable_extensions; do
8028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031     break 2
8032   fi
8033 done
8034   done
8035 IFS=$as_save_IFS
8036
8037   ;;
8038 esac
8039 fi
8040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8041 if test -n "$PKG_CONFIG"; then
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8043 $as_echo "$PKG_CONFIG" >&6; }
8044 else
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049
8050 fi
8051 if test -z "$ac_cv_path_PKG_CONFIG"; then
8052   ac_pt_PKG_CONFIG=$PKG_CONFIG
8053   # Extract the first word of "pkg-config", so it can be a program name with args.
8054 set dummy pkg-config; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8058   $as_echo_n "(cached) " >&6
8059 else
8060   case $ac_pt_PKG_CONFIG in
8061   [\\/]* | ?:[\\/]*)
8062   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8063   ;;
8064   *)
8065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068   IFS=$as_save_IFS
8069   test -z "$as_dir" && as_dir=.
8070     for ac_exec_ext in '' $ac_executable_extensions; do
8071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074     break 2
8075   fi
8076 done
8077   done
8078 IFS=$as_save_IFS
8079
8080   ;;
8081 esac
8082 fi
8083 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8084 if test -n "$ac_pt_PKG_CONFIG"; then
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8086 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8087 else
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092   if test "x$ac_pt_PKG_CONFIG" = x; then
8093     PKG_CONFIG=""
8094   else
8095     case $cross_compiling:$ac_tool_warned in
8096 yes:)
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099 ac_tool_warned=yes ;;
8100 esac
8101     PKG_CONFIG=$ac_pt_PKG_CONFIG
8102   fi
8103 else
8104   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8105 fi
8106
8107 fi
8108 if test -n "$PKG_CONFIG"; then
8109         _pkg_min_version=0.9.0
8110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8111 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8112         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8113                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114 $as_echo "yes" >&6; }
8115         else
8116                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118                 PKG_CONFIG=""
8119         fi
8120 fi
8121
8122
8123 try_gettext=yes
8124 require_iconv=yes
8125 have_dosish_system=no
8126 have_w32_system=no
8127 have_w32ce_system=no
8128 have_android_system=no
8129 use_simple_gettext=no
8130 mmap_needed=yes
8131 require_pipe_to_unblock_pselect=yes
8132 case "${host}" in
8133     *-mingw32*)
8134         # special stuff for Windoze NT
8135         ac_cv_have_dev_random=no
8136
8137 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8138
8139
8140 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8141
8142         have_dosish_system=yes
8143         have_w32_system=yes
8144         require_iconv=no
8145         require_pipe_to_unblock_pselect=no
8146         case "${host}" in
8147           *-mingw32ce*)
8148             have_w32ce_system=yes
8149             ;;
8150           *)
8151
8152 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8153
8154             ;;
8155         esac
8156         try_gettext="no"
8157         use_simple_gettext=yes
8158         mmap_needed=no
8159         build_wks_tools=no
8160         ;;
8161     i?86-emx-os2 | i?86-*-os2*emx )
8162         # OS/2 with the EMX environment
8163         ac_cv_have_dev_random=no
8164         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8165
8166         have_dosish_system=yes
8167         try_gettext="no"
8168         build_wks_tools=no
8169         ;;
8170
8171     i?86-*-msdosdjgpp*)
8172         # DOS with the DJGPP environment
8173         ac_cv_have_dev_random=no
8174         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8175
8176         have_dosish_system=yes
8177         try_gettext="no"
8178         build_wks_tools=no
8179         ;;
8180
8181     *-*-hpux*)
8182         if test -z "$GCC" ; then
8183             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8184         fi
8185         ;;
8186     *-dec-osf4*)
8187         if test -z "$GCC" ; then
8188             # Suppress all warnings
8189             # to get rid of the unsigned/signed char mismatch warnings.
8190             CFLAGS="-w $CFLAGS"
8191         fi
8192         ;;
8193     *-dec-osf5*)
8194         if test -z "$GCC" ; then
8195             # Use the newer compiler `-msg_disable ptrmismatch1' to
8196             # get rid of the unsigned/signed char mismatch warnings.
8197             # Using this may hide other pointer mismatch warnings, but
8198             # it at least lets other warning classes through
8199             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8200         fi
8201         ;;
8202     m68k-atari-mint)
8203         ;;
8204     *-linux-android*)
8205         have_android_system=yes
8206         # Android is fully utf-8 and we do not want to use iconv to
8207         # keeps things simple
8208         require_iconv=no
8209         build_wks_tools=no
8210         ;;
8211     *-apple-darwin*)
8212
8213 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8214
8215         ;;
8216     *-*-netbsd*)
8217         require_pipe_to_unblock_pselect=yes
8218         ;;
8219     *)
8220         ;;
8221 esac
8222
8223 if test "$require_pipe_to_unblock_pselect" = yes; then
8224
8225 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8226
8227 fi
8228
8229 if test "$have_dosish_system" = yes; then
8230
8231 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8232
8233 fi
8234  if test "$have_dosish_system" = yes; then
8235   HAVE_DOSISH_SYSTEM_TRUE=
8236   HAVE_DOSISH_SYSTEM_FALSE='#'
8237 else
8238   HAVE_DOSISH_SYSTEM_TRUE='#'
8239   HAVE_DOSISH_SYSTEM_FALSE=
8240 fi
8241
8242
8243  if test x"$use_simple_gettext" = xyes; then
8244   USE_SIMPLE_GETTEXT_TRUE=
8245   USE_SIMPLE_GETTEXT_FALSE='#'
8246 else
8247   USE_SIMPLE_GETTEXT_TRUE='#'
8248   USE_SIMPLE_GETTEXT_FALSE=
8249 fi
8250
8251
8252 if test "$have_w32_system" = yes; then
8253
8254 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8255
8256    if test "$have_w32ce_system" = yes; then
8257
8258 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8259
8260    fi
8261    for ac_header in winsock2.h
8262 do :
8263   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8264 if test "x$ac_cv_header_winsock2_h" = xyes; then :
8265   cat >>confdefs.h <<_ACEOF
8266 #define HAVE_WINSOCK2_H 1
8267 _ACEOF
8268
8269 fi
8270
8271 done
8272
8273 fi
8274  if test "$have_w32_system" = yes; then
8275   HAVE_W32_SYSTEM_TRUE=
8276   HAVE_W32_SYSTEM_FALSE='#'
8277 else
8278   HAVE_W32_SYSTEM_TRUE='#'
8279   HAVE_W32_SYSTEM_FALSE=
8280 fi
8281
8282  if test "$have_w32ce_system" = yes; then
8283   HAVE_W32CE_SYSTEM_TRUE=
8284   HAVE_W32CE_SYSTEM_FALSE='#'
8285 else
8286   HAVE_W32CE_SYSTEM_TRUE='#'
8287   HAVE_W32CE_SYSTEM_FALSE=
8288 fi
8289
8290
8291 if test "$have_android_system" = yes; then
8292
8293 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8294
8295 fi
8296  if test "$have_android_system" = yes; then
8297   HAVE_ANDROID_SYSTEM_TRUE=
8298   HAVE_ANDROID_SYSTEM_FALSE='#'
8299 else
8300   HAVE_ANDROID_SYSTEM_TRUE='#'
8301   HAVE_ANDROID_SYSTEM_FALSE=
8302 fi
8303
8304
8305
8306 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define EXEEXT "$EXEEXT"
8310 _ACEOF
8311
8312
8313
8314 #
8315 # Checks for libraries.
8316 #
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8318 $as_echo "$as_me: checking for libraries" >&6;}
8319
8320
8321 #
8322 # gpgrt (aka libgpg-error) is a library with error codes shared
8323 # between GnuPG related projects.
8324 #
8325
8326   gpg_error_config_prefix=""
8327
8328 # Check whether --with-libgpg-error-prefix was given.
8329 if test "${with_libgpg_error_prefix+set}" = set; then :
8330   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8331 fi
8332
8333
8334
8335 # Check whether --with-gpg-error-prefix was given.
8336 if test "${with_gpg_error_prefix+set}" = set; then :
8337   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8338 fi
8339
8340
8341   if test x"${GPG_ERROR_CONFIG}" = x ; then
8342      if test x"${gpg_error_config_prefix}" != x ; then
8343         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8344      else
8345        case "${SYSROOT}" in
8346          /*)
8347            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8348              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8349            fi
8350            ;;
8351          '')
8352            ;;
8353           *)
8354            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8355 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8356            ;;
8357        esac
8358      fi
8359   fi
8360
8361   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8362 set dummy gpg-error-config; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   case $GPG_ERROR_CONFIG in
8369   [\\/]* | ?:[\\/]*)
8370   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8371   ;;
8372   *)
8373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376   IFS=$as_save_IFS
8377   test -z "$as_dir" && as_dir=.
8378     for ac_exec_ext in '' $ac_executable_extensions; do
8379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382     break 2
8383   fi
8384 done
8385   done
8386 IFS=$as_save_IFS
8387
8388   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8389   ;;
8390 esac
8391 fi
8392 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8393 if test -n "$GPG_ERROR_CONFIG"; then
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8395 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8396 else
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401
8402   min_gpg_error_version="$NEED_GPGRT_VERSION"
8403   ok=no
8404
8405   # Extract the first word of "gpgrt-config", so it can be a program name with args.
8406 set dummy gpgrt-config; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8410   $as_echo_n "(cached) " >&6
8411 else
8412   case $GPGRT_CONFIG in
8413   [\\/]* | ?:[\\/]*)
8414   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8415   ;;
8416   *)
8417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 as_dummy="$prefix/bin:$PATH"
8419 for as_dir in $as_dummy
8420 do
8421   IFS=$as_save_IFS
8422   test -z "$as_dir" && as_dir=.
8423     for ac_exec_ext in '' $ac_executable_extensions; do
8424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427     break 2
8428   fi
8429 done
8430   done
8431 IFS=$as_save_IFS
8432
8433   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8434   ;;
8435 esac
8436 fi
8437 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8438 if test -n "$GPGRT_CONFIG"; then
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8440 $as_echo "$GPGRT_CONFIG" >&6; }
8441 else
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 fi
8445
8446
8447   if test "$GPGRT_CONFIG" != "no"; then
8448     # Determine gpgrt_libdir
8449     #
8450     # Get the prefix of gpgrt-config assuming it's something like:
8451     #   <PREFIX>/bin/gpgrt-config
8452     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8453     possible_libdir1=${gpgrt_prefix}/lib
8454     # Determine by using system libdir-format with CC, it's like:
8455     #   Normal style: /usr/lib
8456     #   GNU cross style: /usr/<triplet>/lib
8457     #   Debian style: /usr/lib/<multiarch-name>
8458     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8459     # It is assumed that CC is specified to the one of host on cross build.
8460     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8461           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8462 /g;p;}"); then
8463       # From the output of -print-search-dirs, select valid pkgconfig dirs.
8464       libdir_candidates=$(for dir in $libdir_candidates; do
8465         if p=$(cd $dir 2>/dev/null && pwd); then
8466           test -d "$p/pkgconfig" && echo $p;
8467         fi
8468       done)
8469
8470       for possible_libdir0 in $libdir_candidates; do
8471         # possible_libdir0:
8472         #   Fallback candidate, the one of system-installed (by $CC)
8473         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8474         # possible_libdir1:
8475         #   Another candidate, user-locally-installed
8476         #   (<gpgrt_prefix>/lib)
8477         # possible_libdir2
8478         #   Most preferred
8479         #   (<gpgrt_prefix>/<triplet>/lib,
8480         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8481         if test "${possible_libdir0##*/}" = "lib"; then
8482           possible_prefix0=${possible_libdir0%/lib}
8483           possible_prefix0_triplet=${possible_prefix0##*/}
8484           if test -z "$possible_prefix0_triplet"; then
8485             continue
8486           fi
8487           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8488         else
8489           possible_prefix0=${possible_libdir0%%/lib*}
8490           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8491         fi
8492         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8493           gpgrt_libdir=${possible_libdir2}
8494         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8495           gpgrt_libdir=${possible_libdir1}
8496         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8497           gpgrt_libdir=${possible_libdir0}
8498         fi
8499         if test -n "$gpgrt_libdir"; then break; fi
8500       done
8501     else
8502       # When we cannot determine system libdir-format, use this:
8503       gpgrt_libdir=${possible_libdir1}
8504     fi
8505   else
8506     unset GPGRT_CONFIG
8507   fi
8508
8509   if test -n "$gpgrt_libdir"; then
8510     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8511     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8512       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8513       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8514 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8515       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8516     else
8517       unset GPGRT_CONFIG
8518     fi
8519   elif test "$GPG_ERROR_CONFIG" != "no"; then
8520     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8521   fi
8522   if test "$GPG_ERROR_CONFIG" != "no"; then
8523     req_major=`echo $min_gpg_error_version | \
8524                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8525     req_minor=`echo $min_gpg_error_version | \
8526                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8527     major=`echo $gpg_error_config_version | \
8528                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8529     minor=`echo $gpg_error_config_version | \
8530                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8531     if test "$major" -gt "$req_major"; then
8532         ok=yes
8533     else
8534         if test "$major" -eq "$req_major"; then
8535             if test "$minor" -ge "$req_minor"; then
8536                ok=yes
8537             fi
8538         fi
8539     fi
8540   fi
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8542 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8543   if test $ok = yes; then
8544     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8545     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8546     if test -z "$GPGRT_CONFIG"; then
8547       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8548       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8549     else
8550       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8551       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8552       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8553       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8554     fi
8555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8556 $as_echo "yes ($gpg_error_config_version)" >&6; }
8557     have_gpg_error=yes
8558     if test -z "$GPGRT_CONFIG"; then
8559       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8560     else
8561       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8562     fi
8563     if test x"$gpg_error_config_host" != xnone ; then
8564       if test x"$gpg_error_config_host" != x"$host" ; then
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8566 ***
8567 *** The config script \"$GPG_ERROR_CONFIG\" was
8568 *** built for $gpg_error_config_host and thus may not match the
8569 *** used host $host.
8570 *** You may want to use the configure option --with-libgpg-error-prefix
8571 *** to specify a matching config script or use \$SYSROOT.
8572 ***" >&5
8573 $as_echo "$as_me: WARNING:
8574 ***
8575 *** The config script \"$GPG_ERROR_CONFIG\" was
8576 *** built for $gpg_error_config_host and thus may not match the
8577 *** used host $host.
8578 *** You may want to use the configure option --with-libgpg-error-prefix
8579 *** to specify a matching config script or use \$SYSROOT.
8580 ***" >&2;}
8581         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8582       fi
8583     fi
8584   else
8585     GPG_ERROR_CFLAGS=""
8586     GPG_ERROR_LIBS=""
8587     GPG_ERROR_MT_CFLAGS=""
8588     GPG_ERROR_MT_LIBS=""
8589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591     have_gpg_error=no
8592   fi
8593
8594
8595
8596
8597
8598
8599
8600 #
8601 # Libgcrypt is our generic crypto library
8602 #
8603
8604
8605 # Check whether --with-libgcrypt-prefix was given.
8606 if test "${with_libgcrypt_prefix+set}" = set; then :
8607   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8608 else
8609   libgcrypt_config_prefix=""
8610 fi
8611
8612   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8613      if test x"${libgcrypt_config_prefix}" != x ; then
8614         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8615      fi
8616   fi
8617
8618   use_gpgrt_config=""
8619   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8620     if $GPGRT_CONFIG libgcrypt --exists; then
8621       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8622       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8623 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8624       use_gpgrt_config=yes
8625     fi
8626   fi
8627   if test -z "$use_gpgrt_config"; then
8628     if test x"${LIBGCRYPT_CONFIG}" = x ; then
8629       case "${SYSROOT}" in
8630          /*)
8631            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8632              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8633            fi
8634            ;;
8635          '')
8636            ;;
8637           *)
8638            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8639 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8640            ;;
8641       esac
8642     fi
8643     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8644 set dummy libgcrypt-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_LIBGCRYPT_CONFIG+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   case $LIBGCRYPT_CONFIG in
8651   [\\/]* | ?:[\\/]*)
8652   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_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_LIBGCRYPT_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_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8671   ;;
8672 esac
8673 fi
8674 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8675 if test -n "$LIBGCRYPT_CONFIG"; then
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8677 $as_echo "$LIBGCRYPT_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   fi
8685
8686   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8687   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8688      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8689      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8690   else
8691      req_libgcrypt_api=0
8692      min_libgcrypt_version="$tmp"
8693   fi
8694
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8696 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8697   ok=no
8698   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8699     req_major=`echo $min_libgcrypt_version | \
8700                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8701     req_minor=`echo $min_libgcrypt_version | \
8702                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8703     req_micro=`echo $min_libgcrypt_version | \
8704                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8705     if test -z "$use_gpgrt_config"; then
8706       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8707     else
8708       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8709     fi
8710     major=`echo $libgcrypt_config_version | \
8711                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8712     minor=`echo $libgcrypt_config_version | \
8713                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8714     micro=`echo $libgcrypt_config_version | \
8715                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8716     if test "$major" -gt "$req_major"; then
8717         ok=yes
8718     else
8719         if test "$major" -eq "$req_major"; then
8720             if test "$minor" -gt "$req_minor"; then
8721                ok=yes
8722             else
8723                if test "$minor" -eq "$req_minor"; then
8724                    if test "$micro" -ge "$req_micro"; then
8725                      ok=yes
8726                    fi
8727                fi
8728             fi
8729         fi
8730     fi
8731   fi
8732   if test $ok = yes; then
8733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8734 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8735   else
8736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738   fi
8739   if test $ok = yes; then
8740      # If we have a recent libgcrypt, we should also check that the
8741      # API is compatible
8742      if test "$req_libgcrypt_api" -gt 0 ; then
8743         if test -z "$use_gpgrt_config"; then
8744            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8745         else
8746            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8747         fi
8748         if test "$tmp" -gt 0 ; then
8749            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8750 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8751            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8752              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8753 $as_echo "okay" >&6; }
8754            else
8755              ok=no
8756              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8757 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8758            fi
8759         fi
8760      fi
8761   fi
8762   if test $ok = yes; then
8763     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8764     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8765     have_libgcrypt=yes
8766     if test -z "$use_gpgrt_config"; then
8767       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8768     else
8769       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8770     fi
8771     if test x"$libgcrypt_config_host" != xnone ; then
8772       if test x"$libgcrypt_config_host" != x"$host" ; then
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8774 ***
8775 *** The config script \"$LIBGCRYPT_CONFIG\" was
8776 *** built for $libgcrypt_config_host and thus may not match the
8777 *** used host $host.
8778 *** You may want to use the configure option --with-libgcrypt-prefix
8779 *** to specify a matching config script or use \$SYSROOT.
8780 ***" >&5
8781 $as_echo "$as_me: WARNING:
8782 ***
8783 *** The config script \"$LIBGCRYPT_CONFIG\" was
8784 *** built for $libgcrypt_config_host and thus may not match the
8785 *** used host $host.
8786 *** You may want to use the configure option --with-libgcrypt-prefix
8787 *** to specify a matching config script or use \$SYSROOT.
8788 ***" >&2;}
8789         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8790       fi
8791     fi
8792   else
8793     LIBGCRYPT_CFLAGS=""
8794     LIBGCRYPT_LIBS=""
8795     have_libgcrypt=no
8796   fi
8797
8798
8799
8800 # And, then, check if it's newer than 1.9.0 so that we can
8801 # conditionally build some programs.
8802 # Note: This is not anymore needed but keep the code commented in case
8803 # we need it again with some future libgcrypt.
8804 #have_libgcrypt_newer=no
8805 #if test $ok = yes; then
8806 #    if test "$major" -gt 1; then
8807 #        have_libgcrypt_newer=yes
8808 #    else
8809 #        if test "$major" -eq 1; then
8810 #            if test "$minor" -gt 9; then
8811 #               have_libgcrypt_newer=yes
8812 #            else
8813 #               if test "$minor" -eq 9; then
8814 #                   if test "$micro" -ge 0; then
8815 #                     have_libgcrypt_newer=yes
8816 #                   fi
8817 #               fi
8818 #            fi
8819 #        fi
8820 #    fiy
8821 #fi
8822 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8823
8824 #
8825 # libassuan is used for IPC
8826 #
8827
8828
8829 # Check whether --with-libassuan-prefix was given.
8830 if test "${with_libassuan_prefix+set}" = set; then :
8831   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8832 else
8833   libassuan_config_prefix=""
8834 fi
8835
8836   if test x$libassuan_config_prefix != x ; then
8837     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8838       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8839     fi
8840   fi
8841
8842   use_gpgrt_config=""
8843   if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8844     if $GPGRT_CONFIG libassuan --exists; then
8845       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8846       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8847 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8848       use_gpgrt_config=yes
8849     fi
8850   fi
8851   if test -z "$use_gpgrt_config"; then
8852     # Extract the first word of "libassuan-config", so it can be a program name with args.
8853 set dummy libassuan-config; ac_word=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   case $LIBASSUAN_CONFIG in
8860   [\\/]* | ?:[\\/]*)
8861   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8862   ;;
8863   *)
8864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867   IFS=$as_save_IFS
8868   test -z "$as_dir" && as_dir=.
8869     for ac_exec_ext in '' $ac_executable_extensions; do
8870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873     break 2
8874   fi
8875 done
8876   done
8877 IFS=$as_save_IFS
8878
8879   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8880   ;;
8881 esac
8882 fi
8883 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8884 if test -n "$LIBASSUAN_CONFIG"; then
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8886 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8887 else
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891
8892
8893   fi
8894
8895   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8896   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8897     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8898     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8899   else
8900     req_libassuan_api=0
8901     min_libassuan_version="$tmp"
8902   fi
8903
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8905 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8906   ok=no
8907   if test "$LIBASSUAN_CONFIG" != "no"; then
8908     req_major=`echo $min_libassuan_version | \
8909                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8910     req_minor=`echo $min_libassuan_version | \
8911                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8912     req_micro=`echo $min_libassuan_version | \
8913                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8914
8915     if test -z "$use_gpgrt_config"; then
8916       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8917     else
8918       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8919     fi
8920     major=`echo $libassuan_config_version | \
8921                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8922     minor=`echo $libassuan_config_version | \
8923                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8924     micro=`echo $libassuan_config_version | \
8925                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8926
8927     if test "$major" -gt "$req_major"; then
8928         ok=yes
8929     else
8930         if test "$major" -eq "$req_major"; then
8931             if test "$minor" -gt "$req_minor"; then
8932                ok=yes
8933             else
8934                if test "$minor" -eq "$req_minor"; then
8935                    if test "$micro" -ge "$req_micro"; then
8936                      ok=yes
8937                    fi
8938                fi
8939             fi
8940         fi
8941     fi
8942   fi
8943
8944   if test $ok = yes; then
8945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8946 $as_echo "yes ($libassuan_config_version)" >&6; }
8947   else
8948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950   fi
8951
8952   if test $ok = yes; then
8953     if test "$req_libassuan_api" -gt 0 ; then
8954       if test -z "$use_gpgrt_config"; then
8955         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8956       else
8957         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8958       fi
8959       if test "$tmp" -gt 0 ; then
8960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8961 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8962         if test "$req_libassuan_api" -eq "$tmp" ; then
8963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8964 $as_echo "okay" >&6; }
8965         else
8966           ok=no
8967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8968 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8969         fi
8970       fi
8971     fi
8972   fi
8973
8974   if test $ok = yes; then
8975     if test x"$host" != x ; then
8976       if test -z "$use_gpgrt_config"; then
8977         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8978       else
8979         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8980       fi
8981       if test x"$libassuan_config_host" != xnone ; then
8982         if test x"$libassuan_config_host" != x"$host" ; then
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8984 ***
8985 *** The config script \"$LIBASSUAN_CONFIG\" was
8986 *** built for $libassuan_config_host and thus may not match the
8987 *** used host $host.
8988 *** You may want to use the configure option --with-libassuan-prefix
8989 *** to specify a matching config script.
8990 ***" >&5
8991 $as_echo "$as_me: WARNING:
8992 ***
8993 *** The config script \"$LIBASSUAN_CONFIG\" was
8994 *** built for $libassuan_config_host and thus may not match the
8995 *** used host $host.
8996 *** You may want to use the configure option --with-libassuan-prefix
8997 *** to specify a matching config script.
8998 ***" >&2;}
8999         fi
9000       fi
9001     fi
9002   fi
9003
9004   if test $ok = yes; then
9005     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
9006     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
9007     have_libassuan=yes
9008   else
9009     LIBASSUAN_CFLAGS=""
9010     LIBASSUAN_LIBS=""
9011     have_libassuan=no
9012   fi
9013
9014
9015
9016 if test "$have_libassuan" = "yes"; then
9017
9018 cat >>confdefs.h <<_ACEOF
9019 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9020 _ACEOF
9021
9022   show_tor_support="only .onion"
9023 fi
9024
9025
9026 #
9027 # libksba is our X.509 support library
9028 #
9029
9030
9031 # Check whether --with-libksba-prefix was given.
9032 if test "${with_libksba_prefix+set}" = set; then :
9033   withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9034 else
9035   ksba_config_prefix=""
9036 fi
9037
9038
9039
9040 # Check whether --with-ksba-prefix was given.
9041 if test "${with_ksba_prefix+set}" = set; then :
9042   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9043 else
9044   ksba_config_prefix=""
9045 fi
9046
9047
9048   if test x$ksba_config_prefix != x ; then
9049     if test x${KSBA_CONFIG+set} != xset ; then
9050       KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9051     fi
9052   fi
9053
9054   use_gpgrt_config=""
9055   if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9056     if $GPGRT_CONFIG ksba --exists; then
9057       KSBA_CONFIG="$GPGRT_CONFIG ksba"
9058       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9059 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9060       use_gpgrt_config=yes
9061     fi
9062   fi
9063   if test -z "$use_gpgrt_config"; then
9064     # Extract the first word of "ksba-config", so it can be a program name with args.
9065 set dummy ksba-config; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   case $KSBA_CONFIG in
9072   [\\/]* | ?:[\\/]*)
9073   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9074   ;;
9075   *)
9076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9078 do
9079   IFS=$as_save_IFS
9080   test -z "$as_dir" && as_dir=.
9081     for ac_exec_ext in '' $ac_executable_extensions; do
9082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085     break 2
9086   fi
9087 done
9088   done
9089 IFS=$as_save_IFS
9090
9091   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9092   ;;
9093 esac
9094 fi
9095 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9096 if test -n "$KSBA_CONFIG"; then
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9098 $as_echo "$KSBA_CONFIG" >&6; }
9099 else
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9102 fi
9103
9104
9105   fi
9106
9107   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9108   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9109      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9110      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9111   else
9112      req_ksba_api=0
9113      min_ksba_version="$tmp"
9114   fi
9115
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9117 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9118   ok=no
9119   if test "$KSBA_CONFIG" != "no" ; then
9120     req_major=`echo $min_ksba_version | \
9121                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9122     req_minor=`echo $min_ksba_version | \
9123                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9124     req_micro=`echo $min_ksba_version | \
9125                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9126     if test -z "$use_gpgrt_config"; then
9127       ksba_config_version=`$KSBA_CONFIG --version`
9128     else
9129       ksba_config_version=`$KSBA_CONFIG --modversion`
9130     fi
9131     major=`echo $ksba_config_version | \
9132                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9133     minor=`echo $ksba_config_version | \
9134                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9135     micro=`echo $ksba_config_version | \
9136                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9137     if test "$major" -gt "$req_major"; then
9138         ok=yes
9139     else
9140         if test "$major" -eq "$req_major"; then
9141             if test "$minor" -gt "$req_minor"; then
9142                ok=yes
9143             else
9144                if test "$minor" -eq "$req_minor"; then
9145                    if test "$micro" -ge "$req_micro"; then
9146                      ok=yes
9147                    fi
9148                fi
9149             fi
9150         fi
9151     fi
9152   fi
9153   if test $ok = yes; then
9154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9155 $as_echo "yes ($ksba_config_version)" >&6; }
9156   else
9157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9159   fi
9160   if test $ok = yes; then
9161      # Even if we have a recent libksba, we should check that the
9162      # API is compatible.
9163      if test "$req_ksba_api" -gt 0 ; then
9164         if test -z "$use_gpgrt_config"; then
9165           tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9166         else
9167           tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9168         fi
9169         if test "$tmp" -gt 0 ; then
9170            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9171 $as_echo_n "checking KSBA API version... " >&6; }
9172            if test "$req_ksba_api" -eq "$tmp" ; then
9173              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9174 $as_echo "okay" >&6; }
9175            else
9176              ok=no
9177              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
9178 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
9179            fi
9180         fi
9181      fi
9182   fi
9183   if test $ok = yes; then
9184     KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9185     KSBA_LIBS=`$KSBA_CONFIG --libs`
9186     have_ksba=yes
9187     if test -z "$use_gpgrt_config"; then
9188       libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9189     else
9190       libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9191     fi
9192     if test x"$libksba_config_host" != xnone ; then
9193       if test x"$libksba_config_host" != x"$host" ; then
9194   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9195 ***
9196 *** The config script \"$KSBA_CONFIG\" was
9197 *** built for $libksba_config_host and thus may not match the
9198 *** used host $host.
9199 *** You may want to use the configure option --with-libksba-prefix
9200 *** to specify a matching config script.
9201 ***" >&5
9202 $as_echo "$as_me: WARNING:
9203 ***
9204 *** The config script \"$KSBA_CONFIG\" was
9205 *** built for $libksba_config_host and thus may not match the
9206 *** used host $host.
9207 *** You may want to use the configure option --with-libksba-prefix
9208 *** to specify a matching config script.
9209 ***" >&2;}
9210       fi
9211     fi
9212   else
9213     KSBA_CFLAGS=""
9214     KSBA_LIBS=""
9215     have_ksba=no
9216   fi
9217
9218
9219
9220
9221
9222 #
9223 # libusb allows us to use the integrated CCID smartcard reader driver.
9224 #
9225 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9226 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9227    case "${host}" in
9228      *-mingw32*)
9229        LIBUSB_NAME=
9230        LIBUSB_LIBS=
9231        LIBUSB_CPPFLAGS=
9232        ;;
9233      *-*-darwin*)
9234        LIBUSB_NAME=usb-1.0
9235        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9236        ;;
9237      *-*-freebsd*)
9238        # FreeBSD has a native 1.0 compatible library by -lusb.
9239        LIBUSB_NAME=usb
9240        LIBUSB_LIBS=
9241        ;;
9242      *)
9243        LIBUSB_NAME=usb-1.0
9244        LIBUSB_LIBS=
9245        ;;
9246    esac
9247 fi
9248 if test x"$LIBUSB_NAME" != x ; then
9249    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9251 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9252 if eval \${$as_ac_Lib+:} false; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-l$LIBUSB_NAME  $LIBS"
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h.  */
9259
9260 /* Override any GCC internal prototype to avoid an error.
9261    Use char because int might match the return type of a GCC
9262    builtin and then its argument prototype would still apply.  */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 char libusb_init ();
9267 int
9268 main ()
9269 {
9270 return libusb_init ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 if ac_fn_c_try_link "$LINENO"; then :
9276   eval "$as_ac_Lib=yes"
9277 else
9278   eval "$as_ac_Lib=no"
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext \
9281     conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9283 fi
9284 eval ac_res=\$$as_ac_Lib
9285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9286 $as_echo "$ac_res" >&6; }
9287 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9288    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9289                   have_libusb=yes
9290 fi
9291
9292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9293 $as_echo_n "checking libusb include dir... " >&6; }
9294    usb_incdir_found="no"
9295    for _incdir in "" "/usr/include/libusb-1.0" \
9296        "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9297      _libusb_save_cppflags=$CPPFLAGS
9298      if test -n "${_incdir}"; then
9299        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9300      fi
9301      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h.  */
9303 #include <libusb.h>
9304 _ACEOF
9305 if ac_fn_c_try_cpp "$LINENO"; then :
9306   usb_incdir=${_incdir}; usb_incdir_found="yes"
9307 fi
9308 rm -f conftest.err conftest.i conftest.$ac_ext
9309      CPPFLAGS=${_libusb_save_cppflags}
9310      if test "$usb_incdir_found" = "yes"; then
9311        break
9312      fi
9313    done
9314    if test "$usb_incdir_found" = "yes"; then
9315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9316 $as_echo "${usb_incdir}" >&6; }
9317    else
9318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9319 $as_echo "not found" >&6; }
9320      usb_incdir=""
9321      have_libusb=no
9322      if test "$use_ccid_driver" != yes; then
9323        use_ccid_driver=no
9324      fi
9325      LIBUSB_LIBS=""
9326    fi
9327
9328    if test "$have_libusb" = yes; then
9329
9330 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9331
9332    fi
9333    if test x"$usb_incdir" = x; then
9334      LIBUSB_CPPFLAGS=""
9335    else
9336      LIBUSB_CPPFLAGS="-I${usb_incdir}"
9337    fi
9338 fi
9339
9340
9341
9342 #
9343 # Check whether it is necessary to link against libdl.
9344 # (For example to load libpcsclite)
9345 #
9346 gnupg_dlopen_save_libs="$LIBS"
9347 LIBS=""
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9349 $as_echo_n "checking for library containing dlopen... " >&6; }
9350 if ${ac_cv_search_dlopen+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   ac_func_search_save_LIBS=$LIBS
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h.  */
9356
9357 /* Override any GCC internal prototype to avoid an error.
9358    Use char because int might match the return type of a GCC
9359    builtin and then its argument prototype would still apply.  */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char dlopen ();
9364 int
9365 main ()
9366 {
9367 return dlopen ();
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 for ac_lib in '' c dl; do
9373   if test -z "$ac_lib"; then
9374     ac_res="none required"
9375   else
9376     ac_res=-l$ac_lib
9377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9378   fi
9379   if ac_fn_c_try_link "$LINENO"; then :
9380   ac_cv_search_dlopen=$ac_res
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext \
9383     conftest$ac_exeext
9384   if ${ac_cv_search_dlopen+:} false; then :
9385   break
9386 fi
9387 done
9388 if ${ac_cv_search_dlopen+:} false; then :
9389
9390 else
9391   ac_cv_search_dlopen=no
9392 fi
9393 rm conftest.$ac_ext
9394 LIBS=$ac_func_search_save_LIBS
9395 fi
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9397 $as_echo "$ac_cv_search_dlopen" >&6; }
9398 ac_res=$ac_cv_search_dlopen
9399 if test "$ac_res" != no; then :
9400   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9401
9402 fi
9403
9404 DL_LIBS=$LIBS
9405
9406 LIBS="$gnupg_dlopen_save_libs"
9407
9408
9409 # Checks for g10
9410
9411 # Check whether --enable-sqlite was given.
9412 if test "${enable_sqlite+set}" = set; then :
9413   enableval=$enable_sqlite; try_sqlite=$enableval
9414 else
9415   try_sqlite=yes
9416 fi
9417
9418
9419 if test x"$use_tofu" = xyes ; then
9420   if test x"$try_sqlite" = xyes ; then
9421
9422 pkg_failed=no
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9424 $as_echo_n "checking for SQLITE3... " >&6; }
9425
9426 if test -n "$SQLITE3_CFLAGS"; then
9427     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9428  elif test -n "$PKG_CONFIG"; then
9429     if test -n "$PKG_CONFIG" && \
9430     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9431   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9432   ac_status=$?
9433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9434   test $ac_status = 0; }; then
9435   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9436                       test "x$?" != "x0" && pkg_failed=yes
9437 else
9438   pkg_failed=yes
9439 fi
9440  else
9441     pkg_failed=untried
9442 fi
9443 if test -n "$SQLITE3_LIBS"; then
9444     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9445  elif test -n "$PKG_CONFIG"; then
9446     if test -n "$PKG_CONFIG" && \
9447     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9448   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9449   ac_status=$?
9450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9451   test $ac_status = 0; }; then
9452   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9453                       test "x$?" != "x0" && pkg_failed=yes
9454 else
9455   pkg_failed=yes
9456 fi
9457  else
9458     pkg_failed=untried
9459 fi
9460
9461
9462
9463 if test $pkg_failed = yes; then
9464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9466
9467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9468         _pkg_short_errors_supported=yes
9469 else
9470         _pkg_short_errors_supported=no
9471 fi
9472         if test $_pkg_short_errors_supported = yes; then
9473                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9474         else
9475                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9476         fi
9477         # Put the nasty error message in config.log where it belongs
9478         echo "$SQLITE3_PKG_ERRORS" >&5
9479
9480         have_sqlite=no
9481 elif test $pkg_failed = untried; then
9482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484         have_sqlite=no
9485 else
9486         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9487         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9489 $as_echo "yes" >&6; }
9490         have_sqlite=yes
9491 fi
9492   fi
9493   if test "$have_sqlite" = "yes"; then
9494     :
9495
9496
9497   else
9498     use_tofu=no
9499     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9500     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9501 ***
9502 *** Building without SQLite support - TOFU and Keyboxd disabled
9503 ***
9504 *** $tmp" >&5
9505 $as_echo "$as_me: WARNING:
9506 ***
9507 *** Building without SQLite support - TOFU and Keyboxd disabled
9508 ***
9509 *** $tmp" >&2;}
9510   fi
9511 fi
9512 if test "$have_sqlite" != "yes"; then
9513     build_keyboxd=no
9514 fi
9515
9516
9517  if test "$have_sqlite" = "yes"; then
9518   SQLITE3_TRUE=
9519   SQLITE3_FALSE='#'
9520 else
9521   SQLITE3_TRUE='#'
9522   SQLITE3_FALSE=
9523 fi
9524
9525
9526 if test x"$use_tofu" = xyes ; then
9527
9528 $as_echo "#define USE_TOFU 1" >>confdefs.h
9529
9530 fi
9531
9532
9533 # Checks for g13
9534
9535 # Extract the first word of "encfs", so it can be a program name with args.
9536 set dummy encfs; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if ${ac_cv_path_ENCFS+:} false; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   case $ENCFS in
9543   [\\/]* | ?:[\\/]*)
9544   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9545   ;;
9546   *)
9547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9549 do
9550   IFS=$as_save_IFS
9551   test -z "$as_dir" && as_dir=.
9552     for ac_exec_ext in '' $ac_executable_extensions; do
9553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556     break 2
9557   fi
9558 done
9559   done
9560 IFS=$as_save_IFS
9561
9562   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9563   ;;
9564 esac
9565 fi
9566 ENCFS=$ac_cv_path_ENCFS
9567 if test -n "$ENCFS"; then
9568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9569 $as_echo "$ENCFS" >&6; }
9570 else
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9573 fi
9574
9575
9576
9577 cat >>confdefs.h <<_ACEOF
9578 #define ENCFS "${ENCFS}"
9579 _ACEOF
9580
9581
9582 # Extract the first word of "fusermount", so it can be a program name with args.
9583 set dummy fusermount; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   case $FUSERMOUNT in
9590   [\\/]* | ?:[\\/]*)
9591   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9592   ;;
9593   *)
9594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in $PATH
9596 do
9597   IFS=$as_save_IFS
9598   test -z "$as_dir" && as_dir=.
9599     for ac_exec_ext in '' $ac_executable_extensions; do
9600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9601     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603     break 2
9604   fi
9605 done
9606   done
9607 IFS=$as_save_IFS
9608
9609   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9610   ;;
9611 esac
9612 fi
9613 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9614 if test -n "$FUSERMOUNT"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9616 $as_echo "$FUSERMOUNT" >&6; }
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621
9622
9623
9624 cat >>confdefs.h <<_ACEOF
9625 #define FUSERMOUNT "${FUSERMOUNT}"
9626 _ACEOF
9627
9628
9629
9630
9631 #
9632 # Check whether the nPth library is available
9633 #
9634
9635 # Check whether --with-npth-prefix was given.
9636 if test "${with_npth_prefix+set}" = set; then :
9637   withval=$with_npth_prefix; npth_config_prefix="$withval"
9638 else
9639   npth_config_prefix=""
9640 fi
9641
9642   if test "x$npth_config_prefix" != x ; then
9643       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9644   fi
9645
9646   use_gpgrt_config=""
9647   if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9648     if $GPGRT_CONFIG npth --exists; then
9649       NPTH_CONFIG="$GPGRT_CONFIG npth"
9650       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9651 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9652       use_gpgrt_config=yes
9653     fi
9654   fi
9655   if test -z "$use_gpgrt_config"; then
9656     # Extract the first word of "npth-config", so it can be a program name with args.
9657 set dummy npth-config; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   case $NPTH_CONFIG in
9664   [\\/]* | ?:[\\/]*)
9665   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9666   ;;
9667   *)
9668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671   IFS=$as_save_IFS
9672   test -z "$as_dir" && as_dir=.
9673     for ac_exec_ext in '' $ac_executable_extensions; do
9674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677     break 2
9678   fi
9679 done
9680   done
9681 IFS=$as_save_IFS
9682
9683   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9684   ;;
9685 esac
9686 fi
9687 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9688 if test -n "$NPTH_CONFIG"; then
9689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9690 $as_echo "$NPTH_CONFIG" >&6; }
9691 else
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9694 fi
9695
9696
9697   fi
9698
9699   if test "$NPTH_CONFIG" != "no" ; then
9700     if test -z "$use_gpgrt_config"; then
9701       npth_version=`$NPTH_CONFIG --version`
9702     else
9703       npth_version=`$NPTH_CONFIG --modversion`
9704     fi
9705   fi
9706   npth_version_major=`echo $npth_version | \
9707                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9708   npth_version_minor=`echo $npth_version | \
9709                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9710
9711    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9712   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9713      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9714      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9715   else
9716      req_npth_api=1
9717      min_npth_version="$tmp"
9718   fi
9719
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9721 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9722   ok=no
9723   if test "$NPTH_CONFIG" != "no" ; then
9724     req_major=`echo $min_npth_version | \
9725                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9726     req_minor=`echo $min_npth_version | \
9727                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9728     if test "$npth_version_major" -gt "$req_major"; then
9729         ok=yes
9730     else
9731         if test "$npth_version_major" -eq "$req_major"; then
9732             if test "$npth_version_minor" -gt "$req_minor"; then
9733                ok=yes
9734             else
9735                if test "$npth_version_minor" -eq "$req_minor"; then
9736                   ok=yes
9737                fi
9738             fi
9739         fi
9740     fi
9741   fi
9742   if test $ok = yes; then
9743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9744 $as_echo "yes ($npth_version)" >&6; }
9745   else
9746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748   fi
9749   if test $ok = yes; then
9750     # If we have a recent NPTH, we should also check that the
9751     # API is compatible.
9752     if test "$req_npth_api" -gt 0 ; then
9753       if test -z "$use_gpgrt_config"; then
9754         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9755       else
9756         tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9757       fi
9758       if test "$tmp" -gt 0 ; then
9759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9760 $as_echo_n "checking NPTH API version... " >&6; }
9761         if test "$req_npth_api" -eq "$tmp" ; then
9762           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9763 $as_echo "okay" >&6; }
9764         else
9765           ok=no
9766           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9767 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9768         fi
9769       fi
9770     fi
9771   fi
9772   if test $ok = yes; then
9773     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9774     NPTH_LIBS=`$NPTH_CONFIG --libs`
9775     have_npth=yes
9776     if test -z "$use_gpgrt_config"; then
9777       npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9778     else
9779       npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9780     fi
9781     if test x"$npth_config_host" != xnone ; then
9782       if test x"$npth_config_host" != x"$host" ; then
9783         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9784 ***
9785 *** The config script \"$NPTH_CONFIG\" was
9786 *** built for $npth_config_host and thus may not match the
9787 *** used host $host.
9788 *** You may want to use the configure option --with-npth-prefix
9789 *** to specify a matching config script.
9790 ***" >&5
9791 $as_echo "$as_me: WARNING:
9792 ***
9793 *** The config script \"$NPTH_CONFIG\" was
9794 *** built for $npth_config_host and thus may not match the
9795 *** used host $host.
9796 *** You may want to use the configure option --with-npth-prefix
9797 *** to specify a matching config script.
9798 ***" >&2;}
9799       fi
9800     fi
9801   else
9802     NPTH_CFLAGS=""
9803     NPTH_LIBS=""
9804     have_npth=no
9805   fi
9806
9807
9808
9809 if test "$have_npth" = "yes"; then
9810
9811 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9812
9813
9814 $as_echo "#define USE_NPTH 1" >>confdefs.h
9815
9816 else
9817   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9818 ***
9819 *** To support concurrent access for example in gpg-agent and the SCdaemon
9820 *** we need the support of the New Portable Threads Library.
9821 ***" >&5
9822 $as_echo "$as_me: WARNING:
9823 ***
9824 *** To support concurrent access for example in gpg-agent and the SCdaemon
9825 *** we need the support of the New Portable Threads Library.
9826 ***" >&2;}
9827 fi
9828 #
9829 # Enable debugging of nPth
9830 #
9831 # Check whether --enable-npth-debug was given.
9832 if test "${enable_npth_debug+set}" = set; then :
9833   enableval=$enable_npth_debug; if test $enableval = yes ; then
9834
9835 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9836
9837                   fi
9838 fi
9839
9840
9841
9842
9843 #
9844 # NTBTLS is our TLS library.  If it is not available we fall back to
9845 # GNUTLS.
9846 #
9847 # Check whether --enable-ntbtls was given.
9848 if test "${enable_ntbtls+set}" = set; then :
9849   enableval=$enable_ntbtls; try_ntbtls=$enableval
9850 else
9851   try_ntbtls=yes
9852 fi
9853
9854 if test x"$try_ntbtls" = xyes ; then
9855
9856
9857 # Check whether --with-ntbtls-prefix was given.
9858 if test "${with_ntbtls_prefix+set}" = set; then :
9859   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9860 else
9861   ntbtls_config_prefix=""
9862 fi
9863
9864   if test x"${NTBTLS_CONFIG}" = x ; then
9865      if test x"${ntbtls_config_prefix}" != x ; then
9866         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9867      fi
9868   fi
9869
9870   use_gpgrt_config=""
9871   if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9872     if $GPGRT_CONFIG ntbtls --exists; then
9873       NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9874       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9875 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9876       use_gpgrt_config=yes
9877     fi
9878   fi
9879   if test -z "$use_gpgrt_config"; then
9880     if test x"${NTBTLS_CONFIG}" = x ; then
9881       case "${SYSROOT}" in
9882         /*)
9883           if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9884             NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9885           fi
9886           ;;
9887         '')
9888           ;;
9889          *)
9890           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9891 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9892           ;;
9893       esac
9894     fi
9895     # Extract the first word of "ntbtls-config", so it can be a program name with args.
9896 set dummy ntbtls-config; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9900   $as_echo_n "(cached) " >&6
9901 else
9902   case $NTBTLS_CONFIG in
9903   [\\/]* | ?:[\\/]*)
9904   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9905   ;;
9906   *)
9907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9909 do
9910   IFS=$as_save_IFS
9911   test -z "$as_dir" && as_dir=.
9912     for ac_exec_ext in '' $ac_executable_extensions; do
9913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916     break 2
9917   fi
9918 done
9919   done
9920 IFS=$as_save_IFS
9921
9922   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9923   ;;
9924 esac
9925 fi
9926 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9927 if test -n "$NTBTLS_CONFIG"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9929 $as_echo "$NTBTLS_CONFIG" >&6; }
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935
9936   fi
9937
9938   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9939   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9940      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9941      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9942   else
9943      req_ntbtls_api=0
9944      min_ntbtls_version="$tmp"
9945   fi
9946
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9948 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9949   ok=no
9950   if test "$NTBTLS_CONFIG" != "no" ; then
9951     req_major=`echo $min_ntbtls_version | \
9952                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9953     req_minor=`echo $min_ntbtls_version | \
9954                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9955     req_micro=`echo $min_ntbtls_version | \
9956                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9957     if test -z "$use_gpgrt_config"; then
9958       ntbtls_config_version=`$NTBTLS_CONFIG --version`
9959     else
9960       ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9961     fi
9962     major=`echo $ntbtls_config_version | \
9963                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9964     minor=`echo $ntbtls_config_version | \
9965                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9966     micro=`echo $ntbtls_config_version | \
9967                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9968     if test "$major" -gt "$req_major"; then
9969         ok=yes
9970     else
9971         if test "$major" -eq "$req_major"; then
9972             if test "$minor" -gt "$req_minor"; then
9973                ok=yes
9974             else
9975                if test "$minor" -eq "$req_minor"; then
9976                    if test "$micro" -ge "$req_micro"; then
9977                      ok=yes
9978                    fi
9979                fi
9980             fi
9981         fi
9982     fi
9983   fi
9984   if test $ok = yes; then
9985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9986 $as_echo "yes ($ntbtls_config_version)" >&6; }
9987   else
9988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9990   fi
9991   if test $ok = yes; then
9992      # If we have a recent ntbtls, we should also check that the
9993      # API is compatible
9994      if test "$req_ntbtls_api" -gt 0 ; then
9995         if test -z "$use_gpgrt_config"; then
9996           tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9997         else
9998           tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9999         fi
10000         if test "$tmp" -gt 0 ; then
10001            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
10002 $as_echo_n "checking NTBTLS API version... " >&6; }
10003            if test "$req_ntbtls_api" -eq "$tmp" ; then
10004              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
10005 $as_echo "okay" >&6; }
10006            else
10007              ok=no
10008              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
10009 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
10010            fi
10011         fi
10012      fi
10013   fi
10014   if test $ok = yes; then
10015     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10016     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10017     have_ntbtls=yes
10018     if test -z "$use_gpgrt_config"; then
10019       ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10020     else
10021       ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10022     fi
10023     if test x"$ntbtls_config_host" != xnone ; then
10024       if test x"$ntbtls_config_host" != x"$host" ; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10026 ***
10027 *** The config script \"$NTBTLS_CONFIG\" was
10028 *** built for $ntbtls_config_host and thus may not match the
10029 *** used host $host.
10030 *** You may want to use the configure option --with-ntbtls-prefix
10031 *** to specify a matching config script or use \$SYSROOT.
10032 ***" >&5
10033 $as_echo "$as_me: WARNING:
10034 ***
10035 *** The config script \"$NTBTLS_CONFIG\" was
10036 *** built for $ntbtls_config_host and thus may not match the
10037 *** used host $host.
10038 *** You may want to use the configure option --with-ntbtls-prefix
10039 *** to specify a matching config script or use \$SYSROOT.
10040 ***" >&2;}
10041         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10042       fi
10043     fi
10044   else
10045     NTBTLS_CFLAGS=""
10046     NTBTLS_LIBS=""
10047     have_ntbtls=no
10048   fi
10049
10050
10051
10052 fi
10053 if test "$have_ntbtls" = yes ; then
10054    use_tls_library=ntbtls
10055
10056 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10057
10058 else
10059   # Check whether --enable-gnutls was given.
10060 if test "${enable_gnutls+set}" = set; then :
10061   enableval=$enable_gnutls; try_gnutls=$enableval
10062 else
10063   try_gnutls=yes
10064 fi
10065
10066   if test x"$try_gnutls" = xyes ; then
10067
10068 pkg_failed=no
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10070 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10071
10072 if test -n "$LIBGNUTLS_CFLAGS"; then
10073     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10074  elif test -n "$PKG_CONFIG"; then
10075     if test -n "$PKG_CONFIG" && \
10076     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10077   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10078   ac_status=$?
10079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10080   test $ac_status = 0; }; then
10081   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10082                       test "x$?" != "x0" && pkg_failed=yes
10083 else
10084   pkg_failed=yes
10085 fi
10086  else
10087     pkg_failed=untried
10088 fi
10089 if test -n "$LIBGNUTLS_LIBS"; then
10090     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10091  elif test -n "$PKG_CONFIG"; then
10092     if test -n "$PKG_CONFIG" && \
10093     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10094   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10095   ac_status=$?
10096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097   test $ac_status = 0; }; then
10098   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10099                       test "x$?" != "x0" && pkg_failed=yes
10100 else
10101   pkg_failed=yes
10102 fi
10103  else
10104     pkg_failed=untried
10105 fi
10106
10107
10108
10109 if test $pkg_failed = yes; then
10110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112
10113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10114         _pkg_short_errors_supported=yes
10115 else
10116         _pkg_short_errors_supported=no
10117 fi
10118         if test $_pkg_short_errors_supported = yes; then
10119                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10120         else
10121                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10122         fi
10123         # Put the nasty error message in config.log where it belongs
10124         echo "$LIBGNUTLS_PKG_ERRORS" >&5
10125
10126         have_gnutls=no
10127 elif test $pkg_failed = untried; then
10128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130         have_gnutls=no
10131 else
10132         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10133         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10136         have_gnutls=yes
10137 fi
10138   fi
10139   if test "$have_gnutls" = "yes"; then
10140
10141
10142     use_tls_library=gnutls
10143
10144 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10145
10146   else
10147     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10148     build_dirmngr=no
10149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10150 ***
10151 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10152 ***
10153 *** $tmp" >&5
10154 $as_echo "$as_me: WARNING:
10155 ***
10156 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10157 ***
10158 *** $tmp" >&2;}
10159   fi
10160 fi
10161
10162 #
10163 # Allow to set a fixed trust store file for system provided certificates.
10164 #
10165
10166 # Check whether --with-default-trust-store-file was given.
10167 if test "${with_default_trust_store_file+set}" = set; then :
10168   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10169 else
10170   default_trust_store_file=""
10171 fi
10172
10173 if test x"$default_trust_store_file" = xno;then
10174   default_trust_store_file=""
10175 fi
10176 if test x"$default_trust_store_file" != x ; then
10177
10178 cat >>confdefs.h <<_ACEOF
10179 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10180 _ACEOF
10181
10182 fi
10183
10184
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10186 $as_echo "$as_me: checking for networking options" >&6;}
10187
10188 #
10189 # Must check for network library requirements before doing link tests
10190 # for ldap, for example. If ldap libs are static (or dynamic and without
10191 # ELF runtime link paths), then link will fail and LDAP support won't
10192 # be detected.
10193 #
10194 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10195 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10196
10197 else
10198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10199 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10200 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lnsl  $LIBS"
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h.  */
10207
10208 /* Override any GCC internal prototype to avoid an error.
10209    Use char because int might match the return type of a GCC
10210    builtin and then its argument prototype would still apply.  */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char gethostbyname ();
10215 int
10216 main ()
10217 {
10218 return gethostbyname ();
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224   ac_cv_lib_nsl_gethostbyname=yes
10225 else
10226   ac_cv_lib_nsl_gethostbyname=no
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext \
10229     conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10233 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10234 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10235   NETLIBS="-lnsl $NETLIBS"
10236 fi
10237
10238 fi
10239
10240 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10241 if test "x$ac_cv_func_setsockopt" = xyes; then :
10242
10243 else
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10245 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10246 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   ac_check_lib_save_LIBS=$LIBS
10250 LIBS="-lsocket  $LIBS"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h.  */
10253
10254 /* Override any GCC internal prototype to avoid an error.
10255    Use char because int might match the return type of a GCC
10256    builtin and then its argument prototype would still apply.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char setsockopt ();
10261 int
10262 main ()
10263 {
10264 return setsockopt ();
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270   ac_cv_lib_socket_setsockopt=yes
10271 else
10272   ac_cv_lib_socket_setsockopt=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275     conftest$ac_exeext conftest.$ac_ext
10276 LIBS=$ac_check_lib_save_LIBS
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10279 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10280 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10281   NETLIBS="-lsocket $NETLIBS"
10282 fi
10283
10284 fi
10285
10286
10287
10288 #
10289 # Check standard resolver functions.
10290 #
10291 if test "$build_dirmngr" = "yes"; then
10292   _dns_save_libs=$LIBS
10293   LIBS=""
10294
10295   # Find the system resolver which can always be enabled with
10296   # the dirmngr option --standard-resolver.
10297
10298   # the double underscore thing is a glibc-ism?
10299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10300 $as_echo_n "checking for library containing res_query... " >&6; }
10301 if ${ac_cv_search_res_query+:} false; then :
10302   $as_echo_n "(cached) " >&6
10303 else
10304   ac_func_search_save_LIBS=$LIBS
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h.  */
10307
10308 /* Override any GCC internal prototype to avoid an error.
10309    Use char because int might match the return type of a GCC
10310    builtin and then its argument prototype would still apply.  */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 char res_query ();
10315 int
10316 main ()
10317 {
10318 return res_query ();
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 for ac_lib in '' resolv bind; do
10324   if test -z "$ac_lib"; then
10325     ac_res="none required"
10326   else
10327     ac_res=-l$ac_lib
10328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10329   fi
10330   if ac_fn_c_try_link "$LINENO"; then :
10331   ac_cv_search_res_query=$ac_res
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext \
10334     conftest$ac_exeext
10335   if ${ac_cv_search_res_query+:} false; then :
10336   break
10337 fi
10338 done
10339 if ${ac_cv_search_res_query+:} false; then :
10340
10341 else
10342   ac_cv_search_res_query=no
10343 fi
10344 rm conftest.$ac_ext
10345 LIBS=$ac_func_search_save_LIBS
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10348 $as_echo "$ac_cv_search_res_query" >&6; }
10349 ac_res=$ac_cv_search_res_query
10350 if test "$ac_res" != no; then :
10351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10352
10353 else
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10355 $as_echo_n "checking for library containing __res_query... " >&6; }
10356 if ${ac_cv_search___res_query+:} false; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   ac_func_search_save_LIBS=$LIBS
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h.  */
10362
10363 /* Override any GCC internal prototype to avoid an error.
10364    Use char because int might match the return type of a GCC
10365    builtin and then its argument prototype would still apply.  */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char __res_query ();
10370 int
10371 main ()
10372 {
10373 return __res_query ();
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 for ac_lib in '' resolv bind; do
10379   if test -z "$ac_lib"; then
10380     ac_res="none required"
10381   else
10382     ac_res=-l$ac_lib
10383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10384   fi
10385   if ac_fn_c_try_link "$LINENO"; then :
10386   ac_cv_search___res_query=$ac_res
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext \
10389     conftest$ac_exeext
10390   if ${ac_cv_search___res_query+:} false; then :
10391   break
10392 fi
10393 done
10394 if ${ac_cv_search___res_query+:} false; then :
10395
10396 else
10397   ac_cv_search___res_query=no
10398 fi
10399 rm conftest.$ac_ext
10400 LIBS=$ac_func_search_save_LIBS
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10403 $as_echo "$ac_cv_search___res_query" >&6; }
10404 ac_res=$ac_cv_search___res_query
10405 if test "$ac_res" != no; then :
10406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10407
10408 else
10409   have_resolver=no
10410 fi
10411
10412 fi
10413
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10415 $as_echo_n "checking for library containing dn_expand... " >&6; }
10416 if ${ac_cv_search_dn_expand+:} false; then :
10417   $as_echo_n "(cached) " >&6
10418 else
10419   ac_func_search_save_LIBS=$LIBS
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h.  */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424    Use char because int might match the return type of a GCC
10425    builtin and then its argument prototype would still apply.  */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char dn_expand ();
10430 int
10431 main ()
10432 {
10433 return dn_expand ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 for ac_lib in '' resolv bind; do
10439   if test -z "$ac_lib"; then
10440     ac_res="none required"
10441   else
10442     ac_res=-l$ac_lib
10443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10444   fi
10445   if ac_fn_c_try_link "$LINENO"; then :
10446   ac_cv_search_dn_expand=$ac_res
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext \
10449     conftest$ac_exeext
10450   if ${ac_cv_search_dn_expand+:} false; then :
10451   break
10452 fi
10453 done
10454 if ${ac_cv_search_dn_expand+:} false; then :
10455
10456 else
10457   ac_cv_search_dn_expand=no
10458 fi
10459 rm conftest.$ac_ext
10460 LIBS=$ac_func_search_save_LIBS
10461 fi
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10463 $as_echo "$ac_cv_search_dn_expand" >&6; }
10464 ac_res=$ac_cv_search_dn_expand
10465 if test "$ac_res" != no; then :
10466   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10467
10468 else
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10470 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10471 if ${ac_cv_search___dn_expand+:} false; then :
10472   $as_echo_n "(cached) " >&6
10473 else
10474   ac_func_search_save_LIBS=$LIBS
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h.  */
10477
10478 /* Override any GCC internal prototype to avoid an error.
10479    Use char because int might match the return type of a GCC
10480    builtin and then its argument prototype would still apply.  */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 char __dn_expand ();
10485 int
10486 main ()
10487 {
10488 return __dn_expand ();
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 for ac_lib in '' resolv bind; do
10494   if test -z "$ac_lib"; then
10495     ac_res="none required"
10496   else
10497     ac_res=-l$ac_lib
10498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10499   fi
10500   if ac_fn_c_try_link "$LINENO"; then :
10501   ac_cv_search___dn_expand=$ac_res
10502 fi
10503 rm -f core conftest.err conftest.$ac_objext \
10504     conftest$ac_exeext
10505   if ${ac_cv_search___dn_expand+:} false; then :
10506   break
10507 fi
10508 done
10509 if ${ac_cv_search___dn_expand+:} false; then :
10510
10511 else
10512   ac_cv_search___dn_expand=no
10513 fi
10514 rm conftest.$ac_ext
10515 LIBS=$ac_func_search_save_LIBS
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10518 $as_echo "$ac_cv_search___dn_expand" >&6; }
10519 ac_res=$ac_cv_search___dn_expand
10520 if test "$ac_res" != no; then :
10521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10522
10523 else
10524   have_resolver=no
10525 fi
10526
10527 fi
10528
10529
10530   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10531   # and for some reason fools us into believing we don't need
10532   # -lresolv even if we do.  Since the test program checking for the
10533   # symbol does not include <resolv.h>, we need to check for the
10534   # renamed symbol explicitly.
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10536 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10537 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10538   $as_echo_n "(cached) " >&6
10539 else
10540   ac_func_search_save_LIBS=$LIBS
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h.  */
10543
10544 /* Override any GCC internal prototype to avoid an error.
10545    Use char because int might match the return type of a GCC
10546    builtin and then its argument prototype would still apply.  */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 char res_9_dn_skipname ();
10551 int
10552 main ()
10553 {
10554 return res_9_dn_skipname ();
10555   ;
10556   return 0;
10557 }
10558 _ACEOF
10559 for ac_lib in '' resolv bind; do
10560   if test -z "$ac_lib"; then
10561     ac_res="none required"
10562   else
10563     ac_res=-l$ac_lib
10564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10565   fi
10566   if ac_fn_c_try_link "$LINENO"; then :
10567   ac_cv_search_res_9_dn_skipname=$ac_res
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext \
10570     conftest$ac_exeext
10571   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10572   break
10573 fi
10574 done
10575 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10576
10577 else
10578   ac_cv_search_res_9_dn_skipname=no
10579 fi
10580 rm conftest.$ac_ext
10581 LIBS=$ac_func_search_save_LIBS
10582 fi
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10584 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10585 ac_res=$ac_cv_search_res_9_dn_skipname
10586 if test "$ac_res" != no; then :
10587   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10588
10589 else
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10591 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10592 if ${ac_cv_search_dn_skipname+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   ac_func_search_save_LIBS=$LIBS
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h.  */
10598
10599 /* Override any GCC internal prototype to avoid an error.
10600    Use char because int might match the return type of a GCC
10601    builtin and then its argument prototype would still apply.  */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 char dn_skipname ();
10606 int
10607 main ()
10608 {
10609 return dn_skipname ();
10610   ;
10611   return 0;
10612 }
10613 _ACEOF
10614 for ac_lib in '' resolv bind; do
10615   if test -z "$ac_lib"; then
10616     ac_res="none required"
10617   else
10618     ac_res=-l$ac_lib
10619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10620   fi
10621   if ac_fn_c_try_link "$LINENO"; then :
10622   ac_cv_search_dn_skipname=$ac_res
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext
10626   if ${ac_cv_search_dn_skipname+:} false; then :
10627   break
10628 fi
10629 done
10630 if ${ac_cv_search_dn_skipname+:} false; then :
10631
10632 else
10633   ac_cv_search_dn_skipname=no
10634 fi
10635 rm conftest.$ac_ext
10636 LIBS=$ac_func_search_save_LIBS
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10639 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10640 ac_res=$ac_cv_search_dn_skipname
10641 if test "$ac_res" != no; then :
10642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10643
10644 else
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10646 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10647 if ${ac_cv_search___dn_skipname+:} false; then :
10648   $as_echo_n "(cached) " >&6
10649 else
10650   ac_func_search_save_LIBS=$LIBS
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h.  */
10653
10654 /* Override any GCC internal prototype to avoid an error.
10655    Use char because int might match the return type of a GCC
10656    builtin and then its argument prototype would still apply.  */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char __dn_skipname ();
10661 int
10662 main ()
10663 {
10664 return __dn_skipname ();
10665   ;
10666   return 0;
10667 }
10668 _ACEOF
10669 for ac_lib in '' resolv bind; do
10670   if test -z "$ac_lib"; then
10671     ac_res="none required"
10672   else
10673     ac_res=-l$ac_lib
10674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10675   fi
10676   if ac_fn_c_try_link "$LINENO"; then :
10677   ac_cv_search___dn_skipname=$ac_res
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext \
10680     conftest$ac_exeext
10681   if ${ac_cv_search___dn_skipname+:} false; then :
10682   break
10683 fi
10684 done
10685 if ${ac_cv_search___dn_skipname+:} false; then :
10686
10687 else
10688   ac_cv_search___dn_skipname=no
10689 fi
10690 rm conftest.$ac_ext
10691 LIBS=$ac_func_search_save_LIBS
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10694 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10695 ac_res=$ac_cv_search___dn_skipname
10696 if test "$ac_res" != no; then :
10697   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10698
10699 else
10700   have_resolver=no
10701 fi
10702
10703 fi
10704
10705 fi
10706
10707
10708   if test x"$have_resolver" != xno ; then
10709
10710       # Make sure that the BIND 4 resolver interface is workable before
10711       # enabling any code that calls it.  At some point I'll rewrite the
10712       # code to use the BIND 8 resolver API.
10713       # We might also want to use libdns instead.
10714
10715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10716 $as_echo_n "checking whether the resolver is usable... " >&6; }
10717     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h.  */
10719 #include <sys/types.h>
10720 #include <netinet/in.h>
10721 #include <arpa/nameser.h>
10722 #include <resolv.h>
10723 int
10724 main ()
10725 {
10726 unsigned char answer[PACKETSZ];
10727   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10728   dn_skipname(0,0);
10729   dn_expand(0,0,0,0,0);
10730
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736   have_resolver=yes
10737 else
10738   have_resolver=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741     conftest$ac_exeext conftest.$ac_ext
10742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10743 $as_echo "$have_resolver" >&6; }
10744
10745     # This is Apple-specific and somewhat bizarre as they changed the
10746     # define in bind 8 for some reason.
10747
10748     if test x"$have_resolver" != xyes ; then
10749       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10750 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h.  */
10753 #define BIND_8_COMPAT
10754 #include <sys/types.h>
10755 #include <netinet/in.h>
10756 #include <arpa/nameser.h>
10757 #include <resolv.h>
10758 int
10759 main ()
10760 {
10761 unsigned char answer[PACKETSZ];
10762   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10763   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10764
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 if ac_fn_c_try_link "$LINENO"; then :
10770   have_resolver=yes ; need_compat=yes
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext \
10773     conftest$ac_exeext conftest.$ac_ext
10774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10775 $as_echo "$have_resolver" >&6; }
10776     fi
10777   fi
10778
10779   if test x"$have_resolver" = xyes ; then
10780
10781 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10782
10783     DNSLIBS="$DNSLIBS $LIBS"
10784     if test x"$need_compat" = xyes ; then
10785
10786 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10787
10788     fi
10789     if test "$use_libdns" = yes; then
10790      show_tor_support=yes
10791     fi
10792   elif test "$use_libdns" = yes; then
10793     show_tor_support=yes
10794   else
10795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10796 ***
10797 *** The system's DNS resolver is not usable.
10798 *** Dirmngr functionality is limited.
10799 ***" >&5
10800 $as_echo "$as_me: WARNING:
10801 ***
10802 *** The system's DNS resolver is not usable.
10803 *** Dirmngr functionality is limited.
10804 ***" >&2;}
10805     show_tor_support="${show_tor_support} (no system resolver)"
10806   fi
10807
10808   if test "$have_w32_system" = yes; then
10809     if test "$use_libdns" = yes; then
10810       DNSLIBS="$DNSLIBS -liphlpapi"
10811     fi
10812   fi
10813
10814   LIBS=$_dns_save_libs
10815 fi
10816
10817
10818
10819
10820 #
10821 # Check for LDAP
10822 #
10823 # Note that running the check changes the variable
10824 # gnupg_have_ldap from "n/a" to "no" or "yes".
10825
10826 # Check whether --enable-ldap was given.
10827 if test "${enable_ldap+set}" = set; then :
10828   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10829 fi
10830
10831
10832 if test "$gnupg_have_ldap" != "no" ; then
10833   if test "$build_dirmngr" = "yes" ; then
10834
10835 # Try and link a LDAP test program to weed out unusable LDAP
10836 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10837 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10838 # If all else fails, the user can play guess-the-dependency by using
10839 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10840 gnupg_have_ldap=no
10841
10842 # Check whether --with-ldap was given.
10843 if test "${with_ldap+set}" = set; then :
10844   withval=$with_ldap; _ldap_with=$withval
10845 fi
10846
10847
10848 if test x$_ldap_with != xno ; then
10849
10850   if test -d "$withval" ; then
10851      LDAP_CPPFLAGS="-I$withval/include"
10852      LDAP_LDFLAGS="-L$withval/lib"
10853   fi
10854
10855   _ldap_save_cppflags=$CPPFLAGS
10856   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10857   _ldap_save_ldflags=$LDFLAGS
10858   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10859
10860   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10861     _ldap_save_libs=$LIBS
10862     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10863
10864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10865 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10866     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h.  */
10868
10869 #ifdef _WIN32
10870 #include <winsock2.h>
10871 #include <winldap.h>
10872 #else
10873 #include <ldap.h>
10874 #endif
10875
10876 int
10877 main ()
10878 {
10879 ldap_open("foobar",1234);
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885   gnupg_cv_func_ldap_init=yes
10886 else
10887   gnupg_cv_func_ldap_init=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890     conftest$ac_exeext conftest.$ac_ext
10891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10892 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10893
10894     if test $gnupg_cv_func_ldap_init = no; then
10895       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10896 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10897       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h.  */
10899 #include <lber.h>
10900 #include <ldap.h>
10901 int
10902 main ()
10903 {
10904 ldap_open("foobar",1234);
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910   gnupg_cv_func_ldaplber_init=yes
10911 else
10912   gnupg_cv_func_ldaplber_init=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915     conftest$ac_exeext conftest.$ac_ext
10916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10917 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10918     fi
10919
10920     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10921
10922 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10923
10924     fi
10925
10926     if test "$gnupg_cv_func_ldap_init" = yes || \
10927         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10928        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10929        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10930        gnupg_have_ldap=yes
10931
10932        for ac_func in ldap_get_option ldap_set_option
10933 do :
10934   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10937   cat >>confdefs.h <<_ACEOF
10938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 _ACEOF
10940
10941 fi
10942 done
10943
10944        # The extra test for ldap_start_tls_sA is for W32 because
10945        # that is the actual function in the library.
10946        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10947 do :
10948   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10951   cat >>confdefs.h <<_ACEOF
10952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10953 _ACEOF
10954
10955 fi
10956 done
10957
10958
10959        if test "$ac_cv_func_ldap_get_option" != yes ; then
10960           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10961 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10962           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964 #include <ldap.h>
10965 int
10966 main ()
10967 {
10968 LDAP *ldap; ldap->ld_errno;
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_c_try_link "$LINENO"; then :
10974   gnupg_cv_func_ldap_ld_errno=yes
10975 else
10976   gnupg_cv_func_ldap_ld_errno=no
10977 fi
10978 rm -f core conftest.err conftest.$ac_objext \
10979     conftest$ac_exeext conftest.$ac_ext
10980           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10981 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10982
10983           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10984
10985 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10986
10987           fi
10988        fi
10989     fi
10990
10991     LIBS=$_ldap_save_libs
10992
10993     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10994   done
10995
10996
10997
10998
10999
11000   CPPFLAGS=$_ldap_save_cppflags
11001   LDFLAGS=$_ldap_save_ldflags
11002 fi
11003
11004      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
11005 $as_echo_n "checking for ber_free in -llber... " >&6; }
11006 if ${ac_cv_lib_lber_ber_free+:} false; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-llber  $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015    Use char because int might match the return type of a GCC
11016    builtin and then its argument prototype would still apply.  */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char ber_free ();
11021 int
11022 main ()
11023 {
11024 return ber_free ();
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030   ac_cv_lib_lber_ber_free=yes
11031 else
11032   ac_cv_lib_lber_ber_free=no
11033 fi
11034 rm -f core conftest.err conftest.$ac_objext \
11035     conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11039 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11040 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11041    LBER_LIBS="$LBER_LIBS -llber"
11042
11043 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11044
11045                     have_lber=yes
11046
11047 fi
11048
11049   fi
11050 fi
11051
11052 if test "$gnupg_have_ldap" = "no"; then
11053     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11054 ***
11055 *** Building without LDAP support.
11056 *** No CRL access or X.509 certificate search available.
11057 ***" >&5
11058 $as_echo "$as_me: WARNING:
11059 ***
11060 *** Building without LDAP support.
11061 *** No CRL access or X.509 certificate search available.
11062 ***" >&2;}
11063 fi
11064
11065  if test "$gnupg_have_ldap" = yes; then
11066   USE_LDAP_TRUE=
11067   USE_LDAP_FALSE='#'
11068 else
11069   USE_LDAP_TRUE='#'
11070   USE_LDAP_FALSE=
11071 fi
11072
11073 if test "$gnupg_have_ldap" = yes ; then
11074
11075 $as_echo "#define USE_LDAP 1" >>confdefs.h
11076
11077 fi
11078
11079
11080
11081 #
11082 # Check for sendmail
11083 #
11084 # This isn't necessarily sendmail itself, but anything that gives a
11085 # sendmail-ish interface to the outside world.  That includes Exim,
11086 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
11087
11088 # Check whether --with-mailprog was given.
11089 if test "${with_mailprog+set}" = set; then :
11090   withval=$with_mailprog;
11091 else
11092   with_mailprog=yes
11093 fi
11094
11095 if test x"$with_mailprog" = xyes ; then
11096     # Extract the first word of "sendmail", so it can be a program name with args.
11097 set dummy sendmail; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_path_SENDMAIL+:} false; then :
11101   $as_echo_n "(cached) " >&6
11102 else
11103   case $SENDMAIL in
11104   [\\/]* | ?:[\\/]*)
11105   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11106   ;;
11107   *)
11108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11110 for as_dir in $as_dummy
11111 do
11112   IFS=$as_save_IFS
11113   test -z "$as_dir" && as_dir=.
11114     for ac_exec_ext in '' $ac_executable_extensions; do
11115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118     break 2
11119   fi
11120 done
11121   done
11122 IFS=$as_save_IFS
11123
11124   ;;
11125 esac
11126 fi
11127 SENDMAIL=$ac_cv_path_SENDMAIL
11128 if test -n "$SENDMAIL"; then
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11130 $as_echo "$SENDMAIL" >&6; }
11131 else
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135
11136
11137 elif test x"$with_mailprog" != xno ; then
11138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11139 $as_echo_n "checking for a mail transport program... " >&6; }
11140     SENDMAIL=$with_mailprog
11141
11142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11143 $as_echo "$with_mailprog" >&6; }
11144 fi
11145
11146 cat >>confdefs.h <<_ACEOF
11147 #define NAME_OF_SENDMAIL "$SENDMAIL"
11148 _ACEOF
11149
11150
11151
11152 #
11153 # Construct a printable name of the OS
11154 #
11155 case "${host}" in
11156     *-mingw32ce*)
11157         PRINTABLE_OS_NAME="W32CE"
11158         ;;
11159     *-mingw32*)
11160         PRINTABLE_OS_NAME="MingW32"
11161         ;;
11162     *-*-cygwin*)
11163         PRINTABLE_OS_NAME="Cygwin"
11164         ;;
11165     i?86-emx-os2 | i?86-*-os2*emx )
11166         PRINTABLE_OS_NAME="OS/2"
11167         ;;
11168     i?86-*-msdosdjgpp*)
11169         PRINTABLE_OS_NAME="MSDOS/DJGPP"
11170         try_dynload=no
11171         ;;
11172     *-linux*)
11173         PRINTABLE_OS_NAME="GNU/Linux"
11174         ;;
11175     *)
11176         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11177         ;;
11178 esac
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11182 _ACEOF
11183
11184
11185
11186 #
11187 # Checking for iconv
11188 #
11189 if test "$require_iconv" = yes; then
11190
11191       if test "X$prefix" = "XNONE"; then
11192     acl_final_prefix="$ac_default_prefix"
11193   else
11194     acl_final_prefix="$prefix"
11195   fi
11196   if test "X$exec_prefix" = "XNONE"; then
11197     acl_final_exec_prefix='${prefix}'
11198   else
11199     acl_final_exec_prefix="$exec_prefix"
11200   fi
11201   acl_save_prefix="$prefix"
11202   prefix="$acl_final_prefix"
11203   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11204   prefix="$acl_save_prefix"
11205
11206
11207 # Check whether --with-gnu-ld was given.
11208 if test "${with_gnu_ld+set}" = set; then :
11209   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11210 else
11211   with_gnu_ld=no
11212 fi
11213
11214 # Prepare PATH_SEPARATOR.
11215 # The user is always right.
11216 if test "${PATH_SEPARATOR+set}" != set; then
11217   echo "#! /bin/sh" >conf$$.sh
11218   echo  "exit 0"   >>conf$$.sh
11219   chmod +x conf$$.sh
11220   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11221     PATH_SEPARATOR=';'
11222   else
11223     PATH_SEPARATOR=:
11224   fi
11225   rm -f conf$$.sh
11226 fi
11227 ac_prog=ld
11228 if test "$GCC" = yes; then
11229   # Check if gcc -print-prog-name=ld gives a path.
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11231 $as_echo_n "checking for ld used by GCC... " >&6; }
11232   case $host in
11233   *-*-mingw*)
11234     # gcc leaves a trailing carriage return which upsets mingw
11235     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11236   *)
11237     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11238   esac
11239   case $ac_prog in
11240     # Accept absolute paths.
11241     [\\/]* | [A-Za-z]:[\\/]*)
11242       re_direlt='/[^/][^/]*/\.\./'
11243       # Canonicalize the path of ld
11244       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11245       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11246         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11247       done
11248       test -z "$LD" && LD="$ac_prog"
11249       ;;
11250   "")
11251     # If it fails, then pretend we aren't using GCC.
11252     ac_prog=ld
11253     ;;
11254   *)
11255     # If it is relative, then search for the first ld in PATH.
11256     with_gnu_ld=unknown
11257     ;;
11258   esac
11259 elif test "$with_gnu_ld" = yes; then
11260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11261 $as_echo_n "checking for GNU ld... " >&6; }
11262 else
11263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11264 $as_echo_n "checking for non-GNU ld... " >&6; }
11265 fi
11266 if ${acl_cv_path_LD+:} false; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   if test -z "$LD"; then
11270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11271   for ac_dir in $PATH; do
11272     test -z "$ac_dir" && ac_dir=.
11273     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11274       acl_cv_path_LD="$ac_dir/$ac_prog"
11275       # Check to see if the program is GNU ld.  I'd rather use --version,
11276       # but apparently some GNU ld's only accept -v.
11277       # Break only if it was the GNU/non-GNU ld that we prefer.
11278       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11279       *GNU* | *'with BFD'*)
11280         test "$with_gnu_ld" != no && break ;;
11281       *)
11282         test "$with_gnu_ld" != yes && break ;;
11283       esac
11284     fi
11285   done
11286   IFS="$ac_save_ifs"
11287 else
11288   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11289 fi
11290 fi
11291
11292 LD="$acl_cv_path_LD"
11293 if test -n "$LD"; then
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11295 $as_echo "$LD" >&6; }
11296 else
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11303 if ${acl_cv_prog_gnu_ld+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11307 case `$LD -v 2>&1 </dev/null` in
11308 *GNU* | *'with BFD'*)
11309   acl_cv_prog_gnu_ld=yes ;;
11310 *)
11311   acl_cv_prog_gnu_ld=no ;;
11312 esac
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11315 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11316 with_gnu_ld=$acl_cv_prog_gnu_ld
11317
11318
11319
11320
11321                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11322 $as_echo_n "checking for shared library run path origin... " >&6; }
11323 if ${acl_cv_rpath+:} false; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326
11327     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11328     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11329     . ./conftest.sh
11330     rm -f ./conftest.sh
11331     acl_cv_rpath=done
11332
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11335 $as_echo "$acl_cv_rpath" >&6; }
11336   wl="$acl_cv_wl"
11337   acl_libext="$acl_cv_libext"
11338   acl_shlibext="$acl_cv_shlibext"
11339   acl_libname_spec="$acl_cv_libname_spec"
11340   acl_library_names_spec="$acl_cv_library_names_spec"
11341   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11342   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11343   acl_hardcode_direct="$acl_cv_hardcode_direct"
11344   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11345     # Check whether --enable-rpath was given.
11346 if test "${enable_rpath+set}" = set; then :
11347   enableval=$enable_rpath; :
11348 else
11349   enable_rpath=yes
11350 fi
11351
11352
11353
11354                   acl_libdirstem=lib
11355   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11356   if test -n "$searchpath"; then
11357     acl_save_IFS="${IFS=        }"; IFS=":"
11358     for searchdir in $searchpath; do
11359       if test -d "$searchdir"; then
11360         case "$searchdir" in
11361           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11362           *) searchdir=`cd "$searchdir" && pwd`
11363              case "$searchdir" in
11364                */lib64 ) acl_libdirstem=lib64 ;;
11365              esac ;;
11366         esac
11367       fi
11368     done
11369     IFS="$acl_save_IFS"
11370   fi
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380     use_additional=yes
11381
11382   acl_save_prefix="$prefix"
11383   prefix="$acl_final_prefix"
11384   acl_save_exec_prefix="$exec_prefix"
11385   exec_prefix="$acl_final_exec_prefix"
11386
11387     eval additional_includedir=\"$includedir\"
11388     eval additional_libdir=\"$libdir\"
11389
11390   exec_prefix="$acl_save_exec_prefix"
11391   prefix="$acl_save_prefix"
11392
11393
11394 # Check whether --with-libiconv-prefix was given.
11395 if test "${with_libiconv_prefix+set}" = set; then :
11396   withval=$with_libiconv_prefix;
11397     if test "X$withval" = "Xno"; then
11398       use_additional=no
11399     else
11400       if test "X$withval" = "X"; then
11401
11402   acl_save_prefix="$prefix"
11403   prefix="$acl_final_prefix"
11404   acl_save_exec_prefix="$exec_prefix"
11405   exec_prefix="$acl_final_exec_prefix"
11406
11407           eval additional_includedir=\"$includedir\"
11408           eval additional_libdir=\"$libdir\"
11409
11410   exec_prefix="$acl_save_exec_prefix"
11411   prefix="$acl_save_prefix"
11412
11413       else
11414         additional_includedir="$withval/include"
11415         additional_libdir="$withval/$acl_libdirstem"
11416       fi
11417     fi
11418
11419 fi
11420
11421       LIBICONV=
11422   LTLIBICONV=
11423   INCICONV=
11424   LIBICONV_PREFIX=
11425   rpathdirs=
11426   ltrpathdirs=
11427   names_already_handled=
11428   names_next_round='iconv '
11429   while test -n "$names_next_round"; do
11430     names_this_round="$names_next_round"
11431     names_next_round=
11432     for name in $names_this_round; do
11433       already_handled=
11434       for n in $names_already_handled; do
11435         if test "$n" = "$name"; then
11436           already_handled=yes
11437           break
11438         fi
11439       done
11440       if test -z "$already_handled"; then
11441         names_already_handled="$names_already_handled $name"
11442                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11443         eval value=\"\$HAVE_LIB$uppername\"
11444         if test -n "$value"; then
11445           if test "$value" = yes; then
11446             eval value=\"\$LIB$uppername\"
11447             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11448             eval value=\"\$LTLIB$uppername\"
11449             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11450           else
11451                                     :
11452           fi
11453         else
11454                               found_dir=
11455           found_la=
11456           found_so=
11457           found_a=
11458           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11459           if test -n "$acl_shlibext"; then
11460             shrext=".$acl_shlibext"             # typically: shrext=.so
11461           else
11462             shrext=
11463           fi
11464           if test $use_additional = yes; then
11465             dir="$additional_libdir"
11466                                     if test -n "$acl_shlibext"; then
11467               if test -f "$dir/$libname$shrext"; then
11468                 found_dir="$dir"
11469                 found_so="$dir/$libname$shrext"
11470               else
11471                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11472                   ver=`(cd "$dir" && \
11473                         for f in "$libname$shrext".*; do echo "$f"; done \
11474                         | sed -e "s,^$libname$shrext\\\\.,," \
11475                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11476                         | sed 1q ) 2>/dev/null`
11477                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11478                     found_dir="$dir"
11479                     found_so="$dir/$libname$shrext.$ver"
11480                   fi
11481                 else
11482                   eval library_names=\"$acl_library_names_spec\"
11483                   for f in $library_names; do
11484                     if test -f "$dir/$f"; then
11485                       found_dir="$dir"
11486                       found_so="$dir/$f"
11487                       break
11488                     fi
11489                   done
11490                 fi
11491               fi
11492             fi
11493                         if test "X$found_dir" = "X"; then
11494               if test -f "$dir/$libname.$acl_libext"; then
11495                 found_dir="$dir"
11496                 found_a="$dir/$libname.$acl_libext"
11497               fi
11498             fi
11499             if test "X$found_dir" != "X"; then
11500               if test -f "$dir/$libname.la"; then
11501                 found_la="$dir/$libname.la"
11502               fi
11503             fi
11504           fi
11505           if test "X$found_dir" = "X"; then
11506             for x in $LDFLAGS $LTLIBICONV; do
11507
11508   acl_save_prefix="$prefix"
11509   prefix="$acl_final_prefix"
11510   acl_save_exec_prefix="$exec_prefix"
11511   exec_prefix="$acl_final_exec_prefix"
11512   eval x=\"$x\"
11513   exec_prefix="$acl_save_exec_prefix"
11514   prefix="$acl_save_prefix"
11515
11516               case "$x" in
11517                 -L*)
11518                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11519                                     if test -n "$acl_shlibext"; then
11520                     if test -f "$dir/$libname$shrext"; then
11521                       found_dir="$dir"
11522                       found_so="$dir/$libname$shrext"
11523                     else
11524                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11525                         ver=`(cd "$dir" && \
11526                               for f in "$libname$shrext".*; do echo "$f"; done \
11527                               | sed -e "s,^$libname$shrext\\\\.,," \
11528                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11529                               | sed 1q ) 2>/dev/null`
11530                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11531                           found_dir="$dir"
11532                           found_so="$dir/$libname$shrext.$ver"
11533                         fi
11534                       else
11535                         eval library_names=\"$acl_library_names_spec\"
11536                         for f in $library_names; do
11537                           if test -f "$dir/$f"; then
11538                             found_dir="$dir"
11539                             found_so="$dir/$f"
11540                             break
11541                           fi
11542                         done
11543                       fi
11544                     fi
11545                   fi
11546                                     if test "X$found_dir" = "X"; then
11547                     if test -f "$dir/$libname.$acl_libext"; then
11548                       found_dir="$dir"
11549                       found_a="$dir/$libname.$acl_libext"
11550                     fi
11551                   fi
11552                   if test "X$found_dir" != "X"; then
11553                     if test -f "$dir/$libname.la"; then
11554                       found_la="$dir/$libname.la"
11555                     fi
11556                   fi
11557                   ;;
11558               esac
11559               if test "X$found_dir" != "X"; then
11560                 break
11561               fi
11562             done
11563           fi
11564           if test "X$found_dir" != "X"; then
11565                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11566             if test "X$found_so" != "X"; then
11567                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11568                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11569               else
11570                                                                                 haveit=
11571                 for x in $ltrpathdirs; do
11572                   if test "X$x" = "X$found_dir"; then
11573                     haveit=yes
11574                     break
11575                   fi
11576                 done
11577                 if test -z "$haveit"; then
11578                   ltrpathdirs="$ltrpathdirs $found_dir"
11579                 fi
11580                                 if test "$acl_hardcode_direct" = yes; then
11581                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11582                 else
11583                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11584                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11585                                                             haveit=
11586                     for x in $rpathdirs; do
11587                       if test "X$x" = "X$found_dir"; then
11588                         haveit=yes
11589                         break
11590                       fi
11591                     done
11592                     if test -z "$haveit"; then
11593                       rpathdirs="$rpathdirs $found_dir"
11594                     fi
11595                   else
11596                                                                                 haveit=
11597                     for x in $LDFLAGS $LIBICONV; do
11598
11599   acl_save_prefix="$prefix"
11600   prefix="$acl_final_prefix"
11601   acl_save_exec_prefix="$exec_prefix"
11602   exec_prefix="$acl_final_exec_prefix"
11603   eval x=\"$x\"
11604   exec_prefix="$acl_save_exec_prefix"
11605   prefix="$acl_save_prefix"
11606
11607                       if test "X$x" = "X-L$found_dir"; then
11608                         haveit=yes
11609                         break
11610                       fi
11611                     done
11612                     if test -z "$haveit"; then
11613                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11614                     fi
11615                     if test "$acl_hardcode_minus_L" != no; then
11616                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11617                     else
11618                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11619                     fi
11620                   fi
11621                 fi
11622               fi
11623             else
11624               if test "X$found_a" != "X"; then
11625                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11626               else
11627                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11628               fi
11629             fi
11630                         additional_includedir=
11631             case "$found_dir" in
11632               */$acl_libdirstem | */$acl_libdirstem/)
11633                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11634                 LIBICONV_PREFIX="$basedir"
11635                 additional_includedir="$basedir/include"
11636                 ;;
11637             esac
11638             if test "X$additional_includedir" != "X"; then
11639                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11640                 haveit=
11641                 if test "X$additional_includedir" = "X/usr/local/include"; then
11642                   if test -n "$GCC"; then
11643                     case $host_os in
11644                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11645                     esac
11646                   fi
11647                 fi
11648                 if test -z "$haveit"; then
11649                   for x in $CPPFLAGS $INCICONV; do
11650
11651   acl_save_prefix="$prefix"
11652   prefix="$acl_final_prefix"
11653   acl_save_exec_prefix="$exec_prefix"
11654   exec_prefix="$acl_final_exec_prefix"
11655   eval x=\"$x\"
11656   exec_prefix="$acl_save_exec_prefix"
11657   prefix="$acl_save_prefix"
11658
11659                     if test "X$x" = "X-I$additional_includedir"; then
11660                       haveit=yes
11661                       break
11662                     fi
11663                   done
11664                   if test -z "$haveit"; then
11665                     if test -d "$additional_includedir"; then
11666                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11667                     fi
11668                   fi
11669                 fi
11670               fi
11671             fi
11672                         if test -n "$found_la"; then
11673                                                         save_libdir="$libdir"
11674               case "$found_la" in
11675                 */* | *\\*) . "$found_la" ;;
11676                 *) . "./$found_la" ;;
11677               esac
11678               libdir="$save_libdir"
11679                             for dep in $dependency_libs; do
11680                 case "$dep" in
11681                   -L*)
11682                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11683                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11684                       haveit=
11685                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11686                         if test -n "$GCC"; then
11687                           case $host_os in
11688                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11689                           esac
11690                         fi
11691                       fi
11692                       if test -z "$haveit"; then
11693                         haveit=
11694                         for x in $LDFLAGS $LIBICONV; do
11695
11696   acl_save_prefix="$prefix"
11697   prefix="$acl_final_prefix"
11698   acl_save_exec_prefix="$exec_prefix"
11699   exec_prefix="$acl_final_exec_prefix"
11700   eval x=\"$x\"
11701   exec_prefix="$acl_save_exec_prefix"
11702   prefix="$acl_save_prefix"
11703
11704                           if test "X$x" = "X-L$additional_libdir"; then
11705                             haveit=yes
11706                             break
11707                           fi
11708                         done
11709                         if test -z "$haveit"; then
11710                           if test -d "$additional_libdir"; then
11711                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11712                           fi
11713                         fi
11714                         haveit=
11715                         for x in $LDFLAGS $LTLIBICONV; do
11716
11717   acl_save_prefix="$prefix"
11718   prefix="$acl_final_prefix"
11719   acl_save_exec_prefix="$exec_prefix"
11720   exec_prefix="$acl_final_exec_prefix"
11721   eval x=\"$x\"
11722   exec_prefix="$acl_save_exec_prefix"
11723   prefix="$acl_save_prefix"
11724
11725                           if test "X$x" = "X-L$additional_libdir"; then
11726                             haveit=yes
11727                             break
11728                           fi
11729                         done
11730                         if test -z "$haveit"; then
11731                           if test -d "$additional_libdir"; then
11732                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11733                           fi
11734                         fi
11735                       fi
11736                     fi
11737                     ;;
11738                   -R*)
11739                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11740                     if test "$enable_rpath" != no; then
11741                                                                   haveit=
11742                       for x in $rpathdirs; do
11743                         if test "X$x" = "X$dir"; then
11744                           haveit=yes
11745                           break
11746                         fi
11747                       done
11748                       if test -z "$haveit"; then
11749                         rpathdirs="$rpathdirs $dir"
11750                       fi
11751                                                                   haveit=
11752                       for x in $ltrpathdirs; do
11753                         if test "X$x" = "X$dir"; then
11754                           haveit=yes
11755                           break
11756                         fi
11757                       done
11758                       if test -z "$haveit"; then
11759                         ltrpathdirs="$ltrpathdirs $dir"
11760                       fi
11761                     fi
11762                     ;;
11763                   -l*)
11764                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11765                     ;;
11766                   *.la)
11767                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11768                     ;;
11769                   *)
11770                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11771                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11772                     ;;
11773                 esac
11774               done
11775             fi
11776           else
11777                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11778             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11779           fi
11780         fi
11781       fi
11782     done
11783   done
11784   if test "X$rpathdirs" != "X"; then
11785     if test -n "$acl_hardcode_libdir_separator"; then
11786                         alldirs=
11787       for found_dir in $rpathdirs; do
11788         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11789       done
11790             acl_save_libdir="$libdir"
11791       libdir="$alldirs"
11792       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11793       libdir="$acl_save_libdir"
11794       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11795     else
11796             for found_dir in $rpathdirs; do
11797         acl_save_libdir="$libdir"
11798         libdir="$found_dir"
11799         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11800         libdir="$acl_save_libdir"
11801         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11802       done
11803     fi
11804   fi
11805   if test "X$ltrpathdirs" != "X"; then
11806             for found_dir in $ltrpathdirs; do
11807       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11808     done
11809   fi
11810
11811
11812
11813
11814
11815
11816
11817           am_save_CPPFLAGS="$CPPFLAGS"
11818
11819   for element in $INCICONV; do
11820     haveit=
11821     for x in $CPPFLAGS; do
11822
11823   acl_save_prefix="$prefix"
11824   prefix="$acl_final_prefix"
11825   acl_save_exec_prefix="$exec_prefix"
11826   exec_prefix="$acl_final_exec_prefix"
11827   eval x=\"$x\"
11828   exec_prefix="$acl_save_exec_prefix"
11829   prefix="$acl_save_prefix"
11830
11831       if test "X$x" = "X$element"; then
11832         haveit=yes
11833         break
11834       fi
11835     done
11836     if test -z "$haveit"; then
11837       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11838     fi
11839   done
11840
11841
11842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11843 $as_echo_n "checking for iconv... " >&6; }
11844 if ${am_cv_func_iconv+:} false; then :
11845   $as_echo_n "(cached) " >&6
11846 else
11847
11848     am_cv_func_iconv="no, consider installing GNU libiconv"
11849     am_cv_lib_iconv=no
11850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h.  */
11852
11853 #include <stdlib.h>
11854 #include <iconv.h>
11855
11856 int
11857 main ()
11858 {
11859 iconv_t cd = iconv_open("","");
11860            iconv(cd,NULL,NULL,NULL,NULL);
11861            iconv_close(cd);
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 if ac_fn_c_try_link "$LINENO"; then :
11867   am_cv_func_iconv=yes
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext \
11870     conftest$ac_exeext conftest.$ac_ext
11871     if test "$am_cv_func_iconv" != yes; then
11872       am_save_LIBS="$LIBS"
11873       LIBS="$LIBS $LIBICONV"
11874       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h.  */
11876
11877 #include <stdlib.h>
11878 #include <iconv.h>
11879
11880 int
11881 main ()
11882 {
11883 iconv_t cd = iconv_open("","");
11884              iconv(cd,NULL,NULL,NULL,NULL);
11885              iconv_close(cd);
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891   am_cv_lib_iconv=yes
11892         am_cv_func_iconv=yes
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext \
11895     conftest$ac_exeext conftest.$ac_ext
11896       LIBS="$am_save_LIBS"
11897     fi
11898
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11901 $as_echo "$am_cv_func_iconv" >&6; }
11902   if test "$am_cv_func_iconv" = yes; then
11903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11904 $as_echo_n "checking for working iconv... " >&6; }
11905 if ${am_cv_func_iconv_works+:} false; then :
11906   $as_echo_n "(cached) " >&6
11907 else
11908
11909                   am_save_LIBS="$LIBS"
11910       if test $am_cv_lib_iconv = yes; then
11911         LIBS="$LIBS $LIBICONV"
11912       fi
11913       am_cv_func_iconv_works=no
11914       for ac_iconv_const in '' 'const'; do
11915         if test "$cross_compiling" = yes; then :
11916   case "$host_os" in
11917              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11918              *)            am_cv_func_iconv_works="guessing yes" ;;
11919            esac
11920 else
11921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h.  */
11923
11924 #include <iconv.h>
11925 #include <string.h>
11926
11927 #ifndef ICONV_CONST
11928 # define ICONV_CONST $ac_iconv_const
11929 #endif
11930
11931 int
11932 main ()
11933 {
11934 int result = 0;
11935   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11936      returns.  */
11937   {
11938     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11939     if (cd_utf8_to_88591 != (iconv_t)(-1))
11940       {
11941         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11942         char buf[10];
11943         ICONV_CONST char *inptr = input;
11944         size_t inbytesleft = strlen (input);
11945         char *outptr = buf;
11946         size_t outbytesleft = sizeof (buf);
11947         size_t res = iconv (cd_utf8_to_88591,
11948                             &inptr, &inbytesleft,
11949                             &outptr, &outbytesleft);
11950         if (res == 0)
11951           result |= 1;
11952         iconv_close (cd_utf8_to_88591);
11953       }
11954   }
11955   /* Test against Solaris 10 bug: Failures are not distinguishable from
11956      successful returns.  */
11957   {
11958     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11959     if (cd_ascii_to_88591 != (iconv_t)(-1))
11960       {
11961         static ICONV_CONST char input[] = "\263";
11962         char buf[10];
11963         ICONV_CONST char *inptr = input;
11964         size_t inbytesleft = strlen (input);
11965         char *outptr = buf;
11966         size_t outbytesleft = sizeof (buf);
11967         size_t res = iconv (cd_ascii_to_88591,
11968                             &inptr, &inbytesleft,
11969                             &outptr, &outbytesleft);
11970         if (res == 0)
11971           result |= 2;
11972         iconv_close (cd_ascii_to_88591);
11973       }
11974   }
11975   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11976   {
11977     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11978     if (cd_88591_to_utf8 != (iconv_t)(-1))
11979       {
11980         static ICONV_CONST char input[] = "\304";
11981         static char buf[2] = { (char)0xDE, (char)0xAD };
11982         ICONV_CONST char *inptr = input;
11983         size_t inbytesleft = 1;
11984         char *outptr = buf;
11985         size_t outbytesleft = 1;
11986         size_t res = iconv (cd_88591_to_utf8,
11987                             &inptr, &inbytesleft,
11988                             &outptr, &outbytesleft);
11989         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11990           result |= 4;
11991         iconv_close (cd_88591_to_utf8);
11992       }
11993   }
11994 #if 0 /* This bug could be worked around by the caller.  */
11995   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11996   {
11997     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11998     if (cd_88591_to_utf8 != (iconv_t)(-1))
11999       {
12000         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12001         char buf[50];
12002         ICONV_CONST char *inptr = input;
12003         size_t inbytesleft = strlen (input);
12004         char *outptr = buf;
12005         size_t outbytesleft = sizeof (buf);
12006         size_t res = iconv (cd_88591_to_utf8,
12007                             &inptr, &inbytesleft,
12008                             &outptr, &outbytesleft);
12009         if ((int)res > 0)
12010           result |= 8;
12011         iconv_close (cd_88591_to_utf8);
12012       }
12013   }
12014 #endif
12015   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12016      provided.  */
12017   {
12018     /* Try standardized names.  */
12019     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12020     /* Try IRIX, OSF/1 names.  */
12021     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12022     /* Try AIX names.  */
12023     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12024     /* Try HP-UX names.  */
12025     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12026     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12027         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12028       result |= 16;
12029     if (cd1 != (iconv_t)(-1))
12030       iconv_close (cd1);
12031     if (cd2 != (iconv_t)(-1))
12032       iconv_close (cd2);
12033     if (cd3 != (iconv_t)(-1))
12034       iconv_close (cd3);
12035     if (cd4 != (iconv_t)(-1))
12036       iconv_close (cd4);
12037   }
12038   return result;
12039
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 if ac_fn_c_try_run "$LINENO"; then :
12045   am_cv_func_iconv_works=yes
12046 fi
12047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12048   conftest.$ac_objext conftest.beam conftest.$ac_ext
12049 fi
12050
12051         test "$am_cv_func_iconv_works" = no || break
12052       done
12053       LIBS="$am_save_LIBS"
12054
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12057 $as_echo "$am_cv_func_iconv_works" >&6; }
12058     case "$am_cv_func_iconv_works" in
12059       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12060       *)   am_func_iconv=yes ;;
12061     esac
12062   else
12063     am_func_iconv=no am_cv_lib_iconv=no
12064   fi
12065   if test "$am_func_iconv" = yes; then
12066
12067 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12068
12069   fi
12070   if test "$am_cv_lib_iconv" = yes; then
12071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12072 $as_echo_n "checking how to link with libiconv... " >&6; }
12073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12074 $as_echo "$LIBICONV" >&6; }
12075   else
12076             CPPFLAGS="$am_save_CPPFLAGS"
12077     LIBICONV=
12078     LTLIBICONV=
12079   fi
12080
12081
12082
12083   if test "$am_cv_func_iconv" = yes; then
12084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12085 $as_echo_n "checking for iconv declaration... " >&6; }
12086     if ${am_cv_proto_iconv+:} false; then :
12087   $as_echo_n "(cached) " >&6
12088 else
12089
12090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h.  */
12092
12093 #include <stdlib.h>
12094 #include <iconv.h>
12095 extern
12096 #ifdef __cplusplus
12097 "C"
12098 #endif
12099 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12100 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12101 #else
12102 size_t iconv();
12103 #endif
12104
12105 int
12106 main ()
12107 {
12108
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114   am_cv_proto_iconv_arg1=""
12115 else
12116   am_cv_proto_iconv_arg1="const"
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119       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);"
12120 fi
12121
12122     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12123     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12124          $am_cv_proto_iconv" >&5
12125 $as_echo "
12126          $am_cv_proto_iconv" >&6; }
12127   else
12128             am_cv_proto_iconv_arg1=""
12129   fi
12130
12131 cat >>confdefs.h <<_ACEOF
12132 #define ICONV_CONST $am_cv_proto_iconv_arg1
12133 _ACEOF
12134
12135
12136
12137 else
12138   LIBICONV=
12139   LTLIBICONV=
12140
12141
12142 fi
12143
12144
12145 #
12146 # Check for gettext
12147 #
12148 # This is "GNU gnupg" - The project-id script from gettext
12149 #                       needs this string
12150 #
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12152 $as_echo "$as_me: checking for gettext" >&6;}
12153
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12155 $as_echo_n "checking whether NLS is requested... " >&6; }
12156     # Check whether --enable-nls was given.
12157 if test "${enable_nls+set}" = set; then :
12158   enableval=$enable_nls; USE_NLS=$enableval
12159 else
12160   USE_NLS=yes
12161 fi
12162
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12164 $as_echo "$USE_NLS" >&6; }
12165
12166
12167
12168
12169       GETTEXT_MACRO_VERSION=0.17
12170
12171
12172
12173
12174 # Prepare PATH_SEPARATOR.
12175 # The user is always right.
12176 if test "${PATH_SEPARATOR+set}" != set; then
12177   echo "#! /bin/sh" >conf$$.sh
12178   echo  "exit 0"   >>conf$$.sh
12179   chmod +x conf$$.sh
12180   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12181     PATH_SEPARATOR=';'
12182   else
12183     PATH_SEPARATOR=:
12184   fi
12185   rm -f conf$$.sh
12186 fi
12187
12188 # Find out how to test for executable files. Don't use a zero-byte file,
12189 # as systems may use methods other than mode bits to determine executability.
12190 cat >conf$$.file <<_ASEOF
12191 #! /bin/sh
12192 exit 0
12193 _ASEOF
12194 chmod +x conf$$.file
12195 if test -x conf$$.file >/dev/null 2>&1; then
12196   ac_executable_p="test -x"
12197 else
12198   ac_executable_p="test -f"
12199 fi
12200 rm -f conf$$.file
12201
12202 # Extract the first word of "msgfmt", so it can be a program name with args.
12203 set dummy msgfmt; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_path_MSGFMT+:} false; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209   case "$MSGFMT" in
12210   [\\/]* | ?:[\\/]*)
12211     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12212     ;;
12213   *)
12214     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12215     for ac_dir in $PATH; do
12216       IFS="$ac_save_IFS"
12217       test -z "$ac_dir" && ac_dir=.
12218       for ac_exec_ext in '' $ac_executable_extensions; do
12219         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12220           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12221           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12222      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12223             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12224             break 2
12225           fi
12226         fi
12227       done
12228     done
12229     IFS="$ac_save_IFS"
12230   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12231     ;;
12232 esac
12233 fi
12234 MSGFMT="$ac_cv_path_MSGFMT"
12235 if test "$MSGFMT" != ":"; then
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12237 $as_echo "$MSGFMT" >&6; }
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242
12243   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12244 set dummy gmsgfmt; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_GMSGFMT+:} false; then :
12248   $as_echo_n "(cached) " >&6
12249 else
12250   case $GMSGFMT in
12251   [\\/]* | ?:[\\/]*)
12252   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12253   ;;
12254   *)
12255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258   IFS=$as_save_IFS
12259   test -z "$as_dir" && as_dir=.
12260     for ac_exec_ext in '' $ac_executable_extensions; do
12261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264     break 2
12265   fi
12266 done
12267   done
12268 IFS=$as_save_IFS
12269
12270   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12271   ;;
12272 esac
12273 fi
12274 GMSGFMT=$ac_cv_path_GMSGFMT
12275 if test -n "$GMSGFMT"; then
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12277 $as_echo "$GMSGFMT" >&6; }
12278 else
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12281 fi
12282
12283
12284
12285     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12286     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12287     *) MSGFMT_015=$MSGFMT ;;
12288   esac
12289
12290   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12291     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12292     *) GMSGFMT_015=$GMSGFMT ;;
12293   esac
12294
12295
12296
12297 # Prepare PATH_SEPARATOR.
12298 # The user is always right.
12299 if test "${PATH_SEPARATOR+set}" != set; then
12300   echo "#! /bin/sh" >conf$$.sh
12301   echo  "exit 0"   >>conf$$.sh
12302   chmod +x conf$$.sh
12303   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12304     PATH_SEPARATOR=';'
12305   else
12306     PATH_SEPARATOR=:
12307   fi
12308   rm -f conf$$.sh
12309 fi
12310
12311 # Find out how to test for executable files. Don't use a zero-byte file,
12312 # as systems may use methods other than mode bits to determine executability.
12313 cat >conf$$.file <<_ASEOF
12314 #! /bin/sh
12315 exit 0
12316 _ASEOF
12317 chmod +x conf$$.file
12318 if test -x conf$$.file >/dev/null 2>&1; then
12319   ac_executable_p="test -x"
12320 else
12321   ac_executable_p="test -f"
12322 fi
12323 rm -f conf$$.file
12324
12325 # Extract the first word of "xgettext", so it can be a program name with args.
12326 set dummy xgettext; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_path_XGETTEXT+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   case "$XGETTEXT" in
12333   [\\/]* | ?:[\\/]*)
12334     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12335     ;;
12336   *)
12337     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12338     for ac_dir in $PATH; do
12339       IFS="$ac_save_IFS"
12340       test -z "$ac_dir" && ac_dir=.
12341       for ac_exec_ext in '' $ac_executable_extensions; do
12342         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12343           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12344           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12345      (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
12346             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12347             break 2
12348           fi
12349         fi
12350       done
12351     done
12352     IFS="$ac_save_IFS"
12353   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12354     ;;
12355 esac
12356 fi
12357 XGETTEXT="$ac_cv_path_XGETTEXT"
12358 if test "$XGETTEXT" != ":"; then
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12360 $as_echo "$XGETTEXT" >&6; }
12361 else
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12364 fi
12365
12366     rm -f messages.po
12367
12368     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12369     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12370     *) XGETTEXT_015=$XGETTEXT ;;
12371   esac
12372
12373
12374
12375 # Prepare PATH_SEPARATOR.
12376 # The user is always right.
12377 if test "${PATH_SEPARATOR+set}" != set; then
12378   echo "#! /bin/sh" >conf$$.sh
12379   echo  "exit 0"   >>conf$$.sh
12380   chmod +x conf$$.sh
12381   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12382     PATH_SEPARATOR=';'
12383   else
12384     PATH_SEPARATOR=:
12385   fi
12386   rm -f conf$$.sh
12387 fi
12388
12389 # Find out how to test for executable files. Don't use a zero-byte file,
12390 # as systems may use methods other than mode bits to determine executability.
12391 cat >conf$$.file <<_ASEOF
12392 #! /bin/sh
12393 exit 0
12394 _ASEOF
12395 chmod +x conf$$.file
12396 if test -x conf$$.file >/dev/null 2>&1; then
12397   ac_executable_p="test -x"
12398 else
12399   ac_executable_p="test -f"
12400 fi
12401 rm -f conf$$.file
12402
12403 # Extract the first word of "msgmerge", so it can be a program name with args.
12404 set dummy msgmerge; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_path_MSGMERGE+:} false; then :
12408   $as_echo_n "(cached) " >&6
12409 else
12410   case "$MSGMERGE" in
12411   [\\/]* | ?:[\\/]*)
12412     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12413     ;;
12414   *)
12415     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12416     for ac_dir in $PATH; do
12417       IFS="$ac_save_IFS"
12418       test -z "$ac_dir" && ac_dir=.
12419       for ac_exec_ext in '' $ac_executable_extensions; do
12420         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12421           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12422           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12423             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12424             break 2
12425           fi
12426         fi
12427       done
12428     done
12429     IFS="$ac_save_IFS"
12430   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12431     ;;
12432 esac
12433 fi
12434 MSGMERGE="$ac_cv_path_MSGMERGE"
12435 if test "$MSGMERGE" != ":"; then
12436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12437 $as_echo "$MSGMERGE" >&6; }
12438 else
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 fi
12442
12443
12444         test -n "$localedir" || localedir='${datadir}/locale'
12445
12446
12447     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12448
12449
12450   ac_config_commands="$ac_config_commands po-directories"
12451
12452
12453
12454 if test "$try_gettext" = yes; then
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12479 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12480 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483   gt_save_LIBS="$LIBS"
12484      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487 #include <CoreFoundation/CFPreferences.h>
12488 int
12489 main ()
12490 {
12491 CFPreferencesCopyAppValue(NULL, NULL)
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497   gt_cv_func_CFPreferencesCopyAppValue=yes
12498 else
12499   gt_cv_func_CFPreferencesCopyAppValue=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502     conftest$ac_exeext conftest.$ac_ext
12503      LIBS="$gt_save_LIBS"
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12506 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12507   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12508
12509 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12510
12511   fi
12512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12513 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12514 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517   gt_save_LIBS="$LIBS"
12518      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h.  */
12521 #include <CoreFoundation/CFLocale.h>
12522 int
12523 main ()
12524 {
12525 CFLocaleCopyCurrent();
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531   gt_cv_func_CFLocaleCopyCurrent=yes
12532 else
12533   gt_cv_func_CFLocaleCopyCurrent=no
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext \
12536     conftest$ac_exeext conftest.$ac_ext
12537      LIBS="$gt_save_LIBS"
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12540 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12541   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12542
12543 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12544
12545   fi
12546   INTL_MACOSX_LIBS=
12547   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12548     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12549   fi
12550
12551
12552
12553
12554
12555
12556   LIBINTL=
12557   LTLIBINTL=
12558   POSUB=
12559
12560     case " $gt_needs " in
12561     *" need-formatstring-macros "*) gt_api_version=3 ;;
12562     *" need-ngettext "*) gt_api_version=2 ;;
12563     *) gt_api_version=1 ;;
12564   esac
12565   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12566   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12567
12568     if test "$USE_NLS" = "yes"; then
12569     gt_use_preinstalled_gnugettext=no
12570
12571
12572         if test $gt_api_version -ge 3; then
12573           gt_revision_test_code='
12574 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12575 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12576 #endif
12577 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12578 '
12579         else
12580           gt_revision_test_code=
12581         fi
12582         if test $gt_api_version -ge 2; then
12583           gt_expression_test_code=' + * ngettext ("", "", 0)'
12584         else
12585           gt_expression_test_code=
12586         fi
12587
12588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12589 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12590 if eval \${$gt_func_gnugettext_libc+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595
12596 #include <libintl.h>
12597 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12598 extern int _nl_msg_cat_cntr;
12599 extern int *_nl_domain_bindings;
12600 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12601 #else
12602 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12603 #endif
12604 $gt_revision_test_code
12605
12606 int
12607 main ()
12608 {
12609
12610 bindtextdomain ("", "");
12611 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12612
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_c_try_link "$LINENO"; then :
12618   eval "$gt_func_gnugettext_libc=yes"
12619 else
12620   eval "$gt_func_gnugettext_libc=no"
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext \
12623     conftest$ac_exeext conftest.$ac_ext
12624 fi
12625 eval ac_res=\$$gt_func_gnugettext_libc
12626                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12627 $as_echo "$ac_res" >&6; }
12628
12629         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12630
12631
12632
12633
12634
12635           am_save_CPPFLAGS="$CPPFLAGS"
12636
12637   for element in $INCICONV; do
12638     haveit=
12639     for x in $CPPFLAGS; do
12640
12641   acl_save_prefix="$prefix"
12642   prefix="$acl_final_prefix"
12643   acl_save_exec_prefix="$exec_prefix"
12644   exec_prefix="$acl_final_exec_prefix"
12645   eval x=\"$x\"
12646   exec_prefix="$acl_save_exec_prefix"
12647   prefix="$acl_save_prefix"
12648
12649       if test "X$x" = "X$element"; then
12650         haveit=yes
12651         break
12652       fi
12653     done
12654     if test -z "$haveit"; then
12655       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12656     fi
12657   done
12658
12659
12660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12661 $as_echo_n "checking for iconv... " >&6; }
12662 if ${am_cv_func_iconv+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665
12666     am_cv_func_iconv="no, consider installing GNU libiconv"
12667     am_cv_lib_iconv=no
12668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670
12671 #include <stdlib.h>
12672 #include <iconv.h>
12673
12674 int
12675 main ()
12676 {
12677 iconv_t cd = iconv_open("","");
12678            iconv(cd,NULL,NULL,NULL,NULL);
12679            iconv_close(cd);
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685   am_cv_func_iconv=yes
12686 fi
12687 rm -f core conftest.err conftest.$ac_objext \
12688     conftest$ac_exeext conftest.$ac_ext
12689     if test "$am_cv_func_iconv" != yes; then
12690       am_save_LIBS="$LIBS"
12691       LIBS="$LIBS $LIBICONV"
12692       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h.  */
12694
12695 #include <stdlib.h>
12696 #include <iconv.h>
12697
12698 int
12699 main ()
12700 {
12701 iconv_t cd = iconv_open("","");
12702              iconv(cd,NULL,NULL,NULL,NULL);
12703              iconv_close(cd);
12704   ;
12705   return 0;
12706 }
12707 _ACEOF
12708 if ac_fn_c_try_link "$LINENO"; then :
12709   am_cv_lib_iconv=yes
12710         am_cv_func_iconv=yes
12711 fi
12712 rm -f core conftest.err conftest.$ac_objext \
12713     conftest$ac_exeext conftest.$ac_ext
12714       LIBS="$am_save_LIBS"
12715     fi
12716
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12719 $as_echo "$am_cv_func_iconv" >&6; }
12720   if test "$am_cv_func_iconv" = yes; then
12721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12722 $as_echo_n "checking for working iconv... " >&6; }
12723 if ${am_cv_func_iconv_works+:} false; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726
12727                   am_save_LIBS="$LIBS"
12728       if test $am_cv_lib_iconv = yes; then
12729         LIBS="$LIBS $LIBICONV"
12730       fi
12731       am_cv_func_iconv_works=no
12732       for ac_iconv_const in '' 'const'; do
12733         if test "$cross_compiling" = yes; then :
12734   case "$host_os" in
12735              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12736              *)            am_cv_func_iconv_works="guessing yes" ;;
12737            esac
12738 else
12739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741
12742 #include <iconv.h>
12743 #include <string.h>
12744
12745 #ifndef ICONV_CONST
12746 # define ICONV_CONST $ac_iconv_const
12747 #endif
12748
12749 int
12750 main ()
12751 {
12752 int result = 0;
12753   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12754      returns.  */
12755   {
12756     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12757     if (cd_utf8_to_88591 != (iconv_t)(-1))
12758       {
12759         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12760         char buf[10];
12761         ICONV_CONST char *inptr = input;
12762         size_t inbytesleft = strlen (input);
12763         char *outptr = buf;
12764         size_t outbytesleft = sizeof (buf);
12765         size_t res = iconv (cd_utf8_to_88591,
12766                             &inptr, &inbytesleft,
12767                             &outptr, &outbytesleft);
12768         if (res == 0)
12769           result |= 1;
12770         iconv_close (cd_utf8_to_88591);
12771       }
12772   }
12773   /* Test against Solaris 10 bug: Failures are not distinguishable from
12774      successful returns.  */
12775   {
12776     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12777     if (cd_ascii_to_88591 != (iconv_t)(-1))
12778       {
12779         static ICONV_CONST char input[] = "\263";
12780         char buf[10];
12781         ICONV_CONST char *inptr = input;
12782         size_t inbytesleft = strlen (input);
12783         char *outptr = buf;
12784         size_t outbytesleft = sizeof (buf);
12785         size_t res = iconv (cd_ascii_to_88591,
12786                             &inptr, &inbytesleft,
12787                             &outptr, &outbytesleft);
12788         if (res == 0)
12789           result |= 2;
12790         iconv_close (cd_ascii_to_88591);
12791       }
12792   }
12793   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12794   {
12795     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12796     if (cd_88591_to_utf8 != (iconv_t)(-1))
12797       {
12798         static ICONV_CONST char input[] = "\304";
12799         static char buf[2] = { (char)0xDE, (char)0xAD };
12800         ICONV_CONST char *inptr = input;
12801         size_t inbytesleft = 1;
12802         char *outptr = buf;
12803         size_t outbytesleft = 1;
12804         size_t res = iconv (cd_88591_to_utf8,
12805                             &inptr, &inbytesleft,
12806                             &outptr, &outbytesleft);
12807         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12808           result |= 4;
12809         iconv_close (cd_88591_to_utf8);
12810       }
12811   }
12812 #if 0 /* This bug could be worked around by the caller.  */
12813   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12814   {
12815     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12816     if (cd_88591_to_utf8 != (iconv_t)(-1))
12817       {
12818         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12819         char buf[50];
12820         ICONV_CONST char *inptr = input;
12821         size_t inbytesleft = strlen (input);
12822         char *outptr = buf;
12823         size_t outbytesleft = sizeof (buf);
12824         size_t res = iconv (cd_88591_to_utf8,
12825                             &inptr, &inbytesleft,
12826                             &outptr, &outbytesleft);
12827         if ((int)res > 0)
12828           result |= 8;
12829         iconv_close (cd_88591_to_utf8);
12830       }
12831   }
12832 #endif
12833   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12834      provided.  */
12835   {
12836     /* Try standardized names.  */
12837     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12838     /* Try IRIX, OSF/1 names.  */
12839     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12840     /* Try AIX names.  */
12841     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12842     /* Try HP-UX names.  */
12843     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12844     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12845         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12846       result |= 16;
12847     if (cd1 != (iconv_t)(-1))
12848       iconv_close (cd1);
12849     if (cd2 != (iconv_t)(-1))
12850       iconv_close (cd2);
12851     if (cd3 != (iconv_t)(-1))
12852       iconv_close (cd3);
12853     if (cd4 != (iconv_t)(-1))
12854       iconv_close (cd4);
12855   }
12856   return result;
12857
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_c_try_run "$LINENO"; then :
12863   am_cv_func_iconv_works=yes
12864 fi
12865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12866   conftest.$ac_objext conftest.beam conftest.$ac_ext
12867 fi
12868
12869         test "$am_cv_func_iconv_works" = no || break
12870       done
12871       LIBS="$am_save_LIBS"
12872
12873 fi
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12875 $as_echo "$am_cv_func_iconv_works" >&6; }
12876     case "$am_cv_func_iconv_works" in
12877       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12878       *)   am_func_iconv=yes ;;
12879     esac
12880   else
12881     am_func_iconv=no am_cv_lib_iconv=no
12882   fi
12883   if test "$am_func_iconv" = yes; then
12884
12885 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12886
12887   fi
12888   if test "$am_cv_lib_iconv" = yes; then
12889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12890 $as_echo_n "checking how to link with libiconv... " >&6; }
12891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12892 $as_echo "$LIBICONV" >&6; }
12893   else
12894             CPPFLAGS="$am_save_CPPFLAGS"
12895     LIBICONV=
12896     LTLIBICONV=
12897   fi
12898
12899
12900
12901
12902
12903
12904
12905
12906     use_additional=yes
12907
12908   acl_save_prefix="$prefix"
12909   prefix="$acl_final_prefix"
12910   acl_save_exec_prefix="$exec_prefix"
12911   exec_prefix="$acl_final_exec_prefix"
12912
12913     eval additional_includedir=\"$includedir\"
12914     eval additional_libdir=\"$libdir\"
12915
12916   exec_prefix="$acl_save_exec_prefix"
12917   prefix="$acl_save_prefix"
12918
12919
12920 # Check whether --with-libintl-prefix was given.
12921 if test "${with_libintl_prefix+set}" = set; then :
12922   withval=$with_libintl_prefix;
12923     if test "X$withval" = "Xno"; then
12924       use_additional=no
12925     else
12926       if test "X$withval" = "X"; then
12927
12928   acl_save_prefix="$prefix"
12929   prefix="$acl_final_prefix"
12930   acl_save_exec_prefix="$exec_prefix"
12931   exec_prefix="$acl_final_exec_prefix"
12932
12933           eval additional_includedir=\"$includedir\"
12934           eval additional_libdir=\"$libdir\"
12935
12936   exec_prefix="$acl_save_exec_prefix"
12937   prefix="$acl_save_prefix"
12938
12939       else
12940         additional_includedir="$withval/include"
12941         additional_libdir="$withval/$acl_libdirstem"
12942       fi
12943     fi
12944
12945 fi
12946
12947       LIBINTL=
12948   LTLIBINTL=
12949   INCINTL=
12950   LIBINTL_PREFIX=
12951   rpathdirs=
12952   ltrpathdirs=
12953   names_already_handled=
12954   names_next_round='intl '
12955   while test -n "$names_next_round"; do
12956     names_this_round="$names_next_round"
12957     names_next_round=
12958     for name in $names_this_round; do
12959       already_handled=
12960       for n in $names_already_handled; do
12961         if test "$n" = "$name"; then
12962           already_handled=yes
12963           break
12964         fi
12965       done
12966       if test -z "$already_handled"; then
12967         names_already_handled="$names_already_handled $name"
12968                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12969         eval value=\"\$HAVE_LIB$uppername\"
12970         if test -n "$value"; then
12971           if test "$value" = yes; then
12972             eval value=\"\$LIB$uppername\"
12973             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12974             eval value=\"\$LTLIB$uppername\"
12975             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12976           else
12977                                     :
12978           fi
12979         else
12980                               found_dir=
12981           found_la=
12982           found_so=
12983           found_a=
12984           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12985           if test -n "$acl_shlibext"; then
12986             shrext=".$acl_shlibext"             # typically: shrext=.so
12987           else
12988             shrext=
12989           fi
12990           if test $use_additional = yes; then
12991             dir="$additional_libdir"
12992                                     if test -n "$acl_shlibext"; then
12993               if test -f "$dir/$libname$shrext"; then
12994                 found_dir="$dir"
12995                 found_so="$dir/$libname$shrext"
12996               else
12997                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12998                   ver=`(cd "$dir" && \
12999                         for f in "$libname$shrext".*; do echo "$f"; done \
13000                         | sed -e "s,^$libname$shrext\\\\.,," \
13001                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13002                         | sed 1q ) 2>/dev/null`
13003                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13004                     found_dir="$dir"
13005                     found_so="$dir/$libname$shrext.$ver"
13006                   fi
13007                 else
13008                   eval library_names=\"$acl_library_names_spec\"
13009                   for f in $library_names; do
13010                     if test -f "$dir/$f"; then
13011                       found_dir="$dir"
13012                       found_so="$dir/$f"
13013                       break
13014                     fi
13015                   done
13016                 fi
13017               fi
13018             fi
13019                         if test "X$found_dir" = "X"; then
13020               if test -f "$dir/$libname.$acl_libext"; then
13021                 found_dir="$dir"
13022                 found_a="$dir/$libname.$acl_libext"
13023               fi
13024             fi
13025             if test "X$found_dir" != "X"; then
13026               if test -f "$dir/$libname.la"; then
13027                 found_la="$dir/$libname.la"
13028               fi
13029             fi
13030           fi
13031           if test "X$found_dir" = "X"; then
13032             for x in $LDFLAGS $LTLIBINTL; do
13033
13034   acl_save_prefix="$prefix"
13035   prefix="$acl_final_prefix"
13036   acl_save_exec_prefix="$exec_prefix"
13037   exec_prefix="$acl_final_exec_prefix"
13038   eval x=\"$x\"
13039   exec_prefix="$acl_save_exec_prefix"
13040   prefix="$acl_save_prefix"
13041
13042               case "$x" in
13043                 -L*)
13044                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13045                                     if test -n "$acl_shlibext"; then
13046                     if test -f "$dir/$libname$shrext"; then
13047                       found_dir="$dir"
13048                       found_so="$dir/$libname$shrext"
13049                     else
13050                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13051                         ver=`(cd "$dir" && \
13052                               for f in "$libname$shrext".*; do echo "$f"; done \
13053                               | sed -e "s,^$libname$shrext\\\\.,," \
13054                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13055                               | sed 1q ) 2>/dev/null`
13056                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13057                           found_dir="$dir"
13058                           found_so="$dir/$libname$shrext.$ver"
13059                         fi
13060                       else
13061                         eval library_names=\"$acl_library_names_spec\"
13062                         for f in $library_names; do
13063                           if test -f "$dir/$f"; then
13064                             found_dir="$dir"
13065                             found_so="$dir/$f"
13066                             break
13067                           fi
13068                         done
13069                       fi
13070                     fi
13071                   fi
13072                                     if test "X$found_dir" = "X"; then
13073                     if test -f "$dir/$libname.$acl_libext"; then
13074                       found_dir="$dir"
13075                       found_a="$dir/$libname.$acl_libext"
13076                     fi
13077                   fi
13078                   if test "X$found_dir" != "X"; then
13079                     if test -f "$dir/$libname.la"; then
13080                       found_la="$dir/$libname.la"
13081                     fi
13082                   fi
13083                   ;;
13084               esac
13085               if test "X$found_dir" != "X"; then
13086                 break
13087               fi
13088             done
13089           fi
13090           if test "X$found_dir" != "X"; then
13091                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13092             if test "X$found_so" != "X"; then
13093                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13094                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13095               else
13096                                                                                 haveit=
13097                 for x in $ltrpathdirs; do
13098                   if test "X$x" = "X$found_dir"; then
13099                     haveit=yes
13100                     break
13101                   fi
13102                 done
13103                 if test -z "$haveit"; then
13104                   ltrpathdirs="$ltrpathdirs $found_dir"
13105                 fi
13106                                 if test "$acl_hardcode_direct" = yes; then
13107                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13108                 else
13109                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13110                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13111                                                             haveit=
13112                     for x in $rpathdirs; do
13113                       if test "X$x" = "X$found_dir"; then
13114                         haveit=yes
13115                         break
13116                       fi
13117                     done
13118                     if test -z "$haveit"; then
13119                       rpathdirs="$rpathdirs $found_dir"
13120                     fi
13121                   else
13122                                                                                 haveit=
13123                     for x in $LDFLAGS $LIBINTL; do
13124
13125   acl_save_prefix="$prefix"
13126   prefix="$acl_final_prefix"
13127   acl_save_exec_prefix="$exec_prefix"
13128   exec_prefix="$acl_final_exec_prefix"
13129   eval x=\"$x\"
13130   exec_prefix="$acl_save_exec_prefix"
13131   prefix="$acl_save_prefix"
13132
13133                       if test "X$x" = "X-L$found_dir"; then
13134                         haveit=yes
13135                         break
13136                       fi
13137                     done
13138                     if test -z "$haveit"; then
13139                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13140                     fi
13141                     if test "$acl_hardcode_minus_L" != no; then
13142                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13143                     else
13144                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13145                     fi
13146                   fi
13147                 fi
13148               fi
13149             else
13150               if test "X$found_a" != "X"; then
13151                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13152               else
13153                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13154               fi
13155             fi
13156                         additional_includedir=
13157             case "$found_dir" in
13158               */$acl_libdirstem | */$acl_libdirstem/)
13159                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13160                 LIBINTL_PREFIX="$basedir"
13161                 additional_includedir="$basedir/include"
13162                 ;;
13163             esac
13164             if test "X$additional_includedir" != "X"; then
13165                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13166                 haveit=
13167                 if test "X$additional_includedir" = "X/usr/local/include"; then
13168                   if test -n "$GCC"; then
13169                     case $host_os in
13170                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13171                     esac
13172                   fi
13173                 fi
13174                 if test -z "$haveit"; then
13175                   for x in $CPPFLAGS $INCINTL; do
13176
13177   acl_save_prefix="$prefix"
13178   prefix="$acl_final_prefix"
13179   acl_save_exec_prefix="$exec_prefix"
13180   exec_prefix="$acl_final_exec_prefix"
13181   eval x=\"$x\"
13182   exec_prefix="$acl_save_exec_prefix"
13183   prefix="$acl_save_prefix"
13184
13185                     if test "X$x" = "X-I$additional_includedir"; then
13186                       haveit=yes
13187                       break
13188                     fi
13189                   done
13190                   if test -z "$haveit"; then
13191                     if test -d "$additional_includedir"; then
13192                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13193                     fi
13194                   fi
13195                 fi
13196               fi
13197             fi
13198                         if test -n "$found_la"; then
13199                                                         save_libdir="$libdir"
13200               case "$found_la" in
13201                 */* | *\\*) . "$found_la" ;;
13202                 *) . "./$found_la" ;;
13203               esac
13204               libdir="$save_libdir"
13205                             for dep in $dependency_libs; do
13206                 case "$dep" in
13207                   -L*)
13208                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13209                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13210                       haveit=
13211                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13212                         if test -n "$GCC"; then
13213                           case $host_os in
13214                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13215                           esac
13216                         fi
13217                       fi
13218                       if test -z "$haveit"; then
13219                         haveit=
13220                         for x in $LDFLAGS $LIBINTL; do
13221
13222   acl_save_prefix="$prefix"
13223   prefix="$acl_final_prefix"
13224   acl_save_exec_prefix="$exec_prefix"
13225   exec_prefix="$acl_final_exec_prefix"
13226   eval x=\"$x\"
13227   exec_prefix="$acl_save_exec_prefix"
13228   prefix="$acl_save_prefix"
13229
13230                           if test "X$x" = "X-L$additional_libdir"; then
13231                             haveit=yes
13232                             break
13233                           fi
13234                         done
13235                         if test -z "$haveit"; then
13236                           if test -d "$additional_libdir"; then
13237                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13238                           fi
13239                         fi
13240                         haveit=
13241                         for x in $LDFLAGS $LTLIBINTL; do
13242
13243   acl_save_prefix="$prefix"
13244   prefix="$acl_final_prefix"
13245   acl_save_exec_prefix="$exec_prefix"
13246   exec_prefix="$acl_final_exec_prefix"
13247   eval x=\"$x\"
13248   exec_prefix="$acl_save_exec_prefix"
13249   prefix="$acl_save_prefix"
13250
13251                           if test "X$x" = "X-L$additional_libdir"; then
13252                             haveit=yes
13253                             break
13254                           fi
13255                         done
13256                         if test -z "$haveit"; then
13257                           if test -d "$additional_libdir"; then
13258                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13259                           fi
13260                         fi
13261                       fi
13262                     fi
13263                     ;;
13264                   -R*)
13265                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13266                     if test "$enable_rpath" != no; then
13267                                                                   haveit=
13268                       for x in $rpathdirs; do
13269                         if test "X$x" = "X$dir"; then
13270                           haveit=yes
13271                           break
13272                         fi
13273                       done
13274                       if test -z "$haveit"; then
13275                         rpathdirs="$rpathdirs $dir"
13276                       fi
13277                                                                   haveit=
13278                       for x in $ltrpathdirs; do
13279                         if test "X$x" = "X$dir"; then
13280                           haveit=yes
13281                           break
13282                         fi
13283                       done
13284                       if test -z "$haveit"; then
13285                         ltrpathdirs="$ltrpathdirs $dir"
13286                       fi
13287                     fi
13288                     ;;
13289                   -l*)
13290                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13291                     ;;
13292                   *.la)
13293                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13294                     ;;
13295                   *)
13296                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13297                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13298                     ;;
13299                 esac
13300               done
13301             fi
13302           else
13303                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13304             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13305           fi
13306         fi
13307       fi
13308     done
13309   done
13310   if test "X$rpathdirs" != "X"; then
13311     if test -n "$acl_hardcode_libdir_separator"; then
13312                         alldirs=
13313       for found_dir in $rpathdirs; do
13314         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13315       done
13316             acl_save_libdir="$libdir"
13317       libdir="$alldirs"
13318       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13319       libdir="$acl_save_libdir"
13320       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13321     else
13322             for found_dir in $rpathdirs; do
13323         acl_save_libdir="$libdir"
13324         libdir="$found_dir"
13325         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13326         libdir="$acl_save_libdir"
13327         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13328       done
13329     fi
13330   fi
13331   if test "X$ltrpathdirs" != "X"; then
13332             for found_dir in $ltrpathdirs; do
13333       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13334     done
13335   fi
13336
13337           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13338 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13339 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342   gt_save_CPPFLAGS="$CPPFLAGS"
13343             CPPFLAGS="$CPPFLAGS $INCINTL"
13344             gt_save_LIBS="$LIBS"
13345             LIBS="$LIBS $LIBINTL"
13346                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h.  */
13348
13349 #include <libintl.h>
13350 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13351 extern int _nl_msg_cat_cntr;
13352 extern
13353 #ifdef __cplusplus
13354 "C"
13355 #endif
13356 const char *_nl_expand_alias (const char *);
13357 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13358 #else
13359 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13360 #endif
13361 $gt_revision_test_code
13362
13363 int
13364 main ()
13365 {
13366
13367 bindtextdomain ("", "");
13368 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13369
13370   ;
13371   return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"; then :
13375   eval "$gt_func_gnugettext_libintl=yes"
13376 else
13377   eval "$gt_func_gnugettext_libintl=no"
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext \
13380     conftest$ac_exeext conftest.$ac_ext
13381                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13382               LIBS="$LIBS $LIBICONV"
13383               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h.  */
13385
13386 #include <libintl.h>
13387 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13388 extern int _nl_msg_cat_cntr;
13389 extern
13390 #ifdef __cplusplus
13391 "C"
13392 #endif
13393 const char *_nl_expand_alias (const char *);
13394 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13395 #else
13396 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13397 #endif
13398 $gt_revision_test_code
13399
13400 int
13401 main ()
13402 {
13403
13404 bindtextdomain ("", "");
13405 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13406
13407   ;
13408   return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_link "$LINENO"; then :
13412   LIBINTL="$LIBINTL $LIBICONV"
13413                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13414                  eval "$gt_func_gnugettext_libintl=yes"
13415
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext \
13418     conftest$ac_exeext conftest.$ac_ext
13419             fi
13420             CPPFLAGS="$gt_save_CPPFLAGS"
13421             LIBS="$gt_save_LIBS"
13422 fi
13423 eval ac_res=\$$gt_func_gnugettext_libintl
13424                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13425 $as_echo "$ac_res" >&6; }
13426         fi
13427
13428                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13429            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13430                 && test "$PACKAGE" != gettext-runtime \
13431                 && test "$PACKAGE" != gettext-tools; }; then
13432           gt_use_preinstalled_gnugettext=yes
13433         else
13434                     LIBINTL=
13435           LTLIBINTL=
13436           INCINTL=
13437         fi
13438
13439
13440
13441     if test -n "$INTL_MACOSX_LIBS"; then
13442       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13443          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13444                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13445         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13446       fi
13447     fi
13448
13449     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13450        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13451
13452 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13453
13454     else
13455       USE_NLS=no
13456     fi
13457   fi
13458
13459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13460 $as_echo_n "checking whether to use NLS... " >&6; }
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13462 $as_echo "$USE_NLS" >&6; }
13463   if test "$USE_NLS" = "yes"; then
13464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13465 $as_echo_n "checking where the gettext function comes from... " >&6; }
13466     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13467       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13468         gt_source="external libintl"
13469       else
13470         gt_source="libc"
13471       fi
13472     else
13473       gt_source="included intl directory"
13474     fi
13475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13476 $as_echo "$gt_source" >&6; }
13477   fi
13478
13479   if test "$USE_NLS" = "yes"; then
13480
13481     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13482       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13484 $as_echo_n "checking how to link with libintl... " >&6; }
13485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13486 $as_echo "$LIBINTL" >&6; }
13487
13488   for element in $INCINTL; do
13489     haveit=
13490     for x in $CPPFLAGS; do
13491
13492   acl_save_prefix="$prefix"
13493   prefix="$acl_final_prefix"
13494   acl_save_exec_prefix="$exec_prefix"
13495   exec_prefix="$acl_final_exec_prefix"
13496   eval x=\"$x\"
13497   exec_prefix="$acl_save_exec_prefix"
13498   prefix="$acl_save_prefix"
13499
13500       if test "X$x" = "X$element"; then
13501         haveit=yes
13502         break
13503       fi
13504     done
13505     if test -z "$haveit"; then
13506       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13507     fi
13508   done
13509
13510       fi
13511
13512
13513 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13514
13515
13516 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13517
13518     fi
13519
13520         POSUB=po
13521   fi
13522
13523
13524
13525     INTLLIBS="$LIBINTL"
13526
13527
13528
13529
13530
13531
13532
13533   # gettext requires some extra checks.  These really should be part of
13534   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13535   # function checks to here.
13536
13537   for ac_func in strchr
13538 do :
13539   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13540 if test "x$ac_cv_func_strchr" = xyes; then :
13541   cat >>confdefs.h <<_ACEOF
13542 #define HAVE_STRCHR 1
13543 _ACEOF
13544
13545 fi
13546 done
13547
13548 else
13549   USE_NLS=no
13550   USE_INCLUDED_LIBINTL=no
13551   BUILD_INCLUDED_LIBINTL=no
13552   POSUB=po
13553
13554
13555
13556
13557 fi
13558
13559 # We use HAVE_LANGINFO_CODESET in a couple of places.
13560
13561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13562 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13563 if ${am_cv_langinfo_codeset+:} false; then :
13564   $as_echo_n "(cached) " >&6
13565 else
13566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h.  */
13568 #include <langinfo.h>
13569 int
13570 main ()
13571 {
13572 char* cs = nl_langinfo(CODESET); return !cs;
13573   ;
13574   return 0;
13575 }
13576 _ACEOF
13577 if ac_fn_c_try_link "$LINENO"; then :
13578   am_cv_langinfo_codeset=yes
13579 else
13580   am_cv_langinfo_codeset=no
13581 fi
13582 rm -f core conftest.err conftest.$ac_objext \
13583     conftest$ac_exeext conftest.$ac_ext
13584
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13587 $as_echo "$am_cv_langinfo_codeset" >&6; }
13588   if test $am_cv_langinfo_codeset = yes; then
13589
13590 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13591
13592   fi
13593
13594
13595 # Checks required for our use of locales
13596
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13598 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13599 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h.  */
13604 #include <locale.h>
13605 int
13606 main ()
13607 {
13608 return LC_MESSAGES
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 if ac_fn_c_try_link "$LINENO"; then :
13614   gt_cv_val_LC_MESSAGES=yes
13615 else
13616   gt_cv_val_LC_MESSAGES=no
13617 fi
13618 rm -f core conftest.err conftest.$ac_objext \
13619     conftest$ac_exeext conftest.$ac_ext
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13622 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13623   if test $gt_cv_val_LC_MESSAGES = yes; then
13624
13625 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13626
13627   fi
13628
13629
13630
13631 #
13632 # SELinux support
13633 #
13634 if test "$selinux_support" = yes ; then
13635
13636 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13637
13638 fi
13639
13640
13641 #
13642 # Checks for header files.
13643 #
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13645 $as_echo "$as_me: checking for header files" >&6;}
13646 for ac_header in unistd.h langinfo.h termio.h locale.h \
13647                   pwd.h inttypes.h signal.h sys/select.h sys/time.h \
13648                   stdint.h signal.h termios.h \
13649                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13650 do :
13651   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13653 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13654   cat >>confdefs.h <<_ACEOF
13655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13656 _ACEOF
13657
13658 fi
13659
13660 done
13661
13662
13663
13664 #
13665 # Checks for typedefs, structures, and compiler characteristics.
13666 #
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13668 $as_echo "$as_me: checking for system characteristics" >&6;}
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13670 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13671 if ${ac_cv_c_const+:} false; then :
13672   $as_echo_n "(cached) " >&6
13673 else
13674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h.  */
13676
13677 int
13678 main ()
13679 {
13680
13681 #ifndef __cplusplus
13682   /* Ultrix mips cc rejects this sort of thing.  */
13683   typedef int charset[2];
13684   const charset cs = { 0, 0 };
13685   /* SunOS 4.1.1 cc rejects this.  */
13686   char const *const *pcpcc;
13687   char **ppc;
13688   /* NEC SVR4.0.2 mips cc rejects this.  */
13689   struct point {int x, y;};
13690   static struct point const zero = {0,0};
13691   /* AIX XL C 1.02.0.0 rejects this.
13692      It does not let you subtract one const X* pointer from another in
13693      an arm of an if-expression whose if-part is not a constant
13694      expression */
13695   const char *g = "string";
13696   pcpcc = &g + (g ? g-g : 0);
13697   /* HPUX 7.0 cc rejects these. */
13698   ++pcpcc;
13699   ppc = (char**) pcpcc;
13700   pcpcc = (char const *const *) ppc;
13701   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13702     char tx;
13703     char *t = &tx;
13704     char const *s = 0 ? (char *) 0 : (char const *) 0;
13705
13706     *t++ = 0;
13707     if (s) return 0;
13708   }
13709   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13710     int x[] = {25, 17};
13711     const int *foo = &x[0];
13712     ++foo;
13713   }
13714   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13715     typedef const int *iptr;
13716     iptr p = 0;
13717     ++p;
13718   }
13719   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13720        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13721     struct s { int j; const int *ap[3]; } bx;
13722     struct s *b = &bx; b->j = 5;
13723   }
13724   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13725     const int foo = 10;
13726     if (!foo) return 0;
13727   }
13728   return !cs[0] && !zero.x;
13729 #endif
13730
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736   ac_cv_c_const=yes
13737 else
13738   ac_cv_c_const=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13743 $as_echo "$ac_cv_c_const" >&6; }
13744 if test $ac_cv_c_const = no; then
13745
13746 $as_echo "#define const /**/" >>confdefs.h
13747
13748 fi
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13751 $as_echo_n "checking for inline... " >&6; }
13752 if ${ac_cv_c_inline+:} false; then :
13753   $as_echo_n "(cached) " >&6
13754 else
13755   ac_cv_c_inline=no
13756 for ac_kw in inline __inline__ __inline; do
13757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759 #ifndef __cplusplus
13760 typedef int foo_t;
13761 static $ac_kw foo_t static_foo () {return 0; }
13762 $ac_kw foo_t foo () {return 0; }
13763 #endif
13764
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767   ac_cv_c_inline=$ac_kw
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770   test "$ac_cv_c_inline" != no && break
13771 done
13772
13773 fi
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13775 $as_echo "$ac_cv_c_inline" >&6; }
13776
13777 case $ac_cv_c_inline in
13778   inline | yes) ;;
13779   *)
13780     case $ac_cv_c_inline in
13781       no) ac_val=;;
13782       *) ac_val=$ac_cv_c_inline;;
13783     esac
13784     cat >>confdefs.h <<_ACEOF
13785 #ifndef __cplusplus
13786 #define inline $ac_val
13787 #endif
13788 _ACEOF
13789     ;;
13790 esac
13791
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13793 $as_echo_n "checking for working volatile... " >&6; }
13794 if ${ac_cv_c_volatile+:} false; then :
13795   $as_echo_n "(cached) " >&6
13796 else
13797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h.  */
13799
13800 int
13801 main ()
13802 {
13803
13804 volatile int x;
13805 int * volatile y = (int *) 0;
13806 return !x && !y;
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 if ac_fn_c_try_compile "$LINENO"; then :
13812   ac_cv_c_volatile=yes
13813 else
13814   ac_cv_c_volatile=no
13815 fi
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13819 $as_echo "$ac_cv_c_volatile" >&6; }
13820 if test $ac_cv_c_volatile = no; then
13821
13822 $as_echo "#define volatile /**/" >>confdefs.h
13823
13824 fi
13825
13826 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13827 if test "x$ac_cv_type_size_t" = xyes; then :
13828
13829 else
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define size_t unsigned int
13833 _ACEOF
13834
13835 fi
13836
13837 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13838 if test "x$ac_cv_type_mode_t" = xyes; then :
13839
13840 else
13841
13842 cat >>confdefs.h <<_ACEOF
13843 #define mode_t int
13844 _ACEOF
13845
13846 fi
13847
13848 for ac_func in sigdescr_np
13849 do :
13850   ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13851 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13852   cat >>confdefs.h <<_ACEOF
13853 #define HAVE_SIGDESCR_NP 1
13854 _ACEOF
13855
13856 fi
13857 done
13858
13859 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13860 /* NetBSD declares sys_siglist in unistd.h.  */
13861 #ifdef HAVE_UNISTD_H
13862 # include <unistd.h>
13863 #endif
13864
13865 "
13866 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13867   ac_have_decl=1
13868 else
13869   ac_have_decl=0
13870 fi
13871
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13874 _ACEOF
13875
13876
13877
13878
13879
13880
13881   for ac_header in $ac_header_list
13882 do :
13883   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13885 "
13886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13887   cat >>confdefs.h <<_ACEOF
13888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13889 _ACEOF
13890
13891 fi
13892
13893 done
13894
13895
13896
13897
13898    if test $ac_cv_header_sys_socket_h = no; then
13899                          for ac_header in ws2tcpip.h
13900 do :
13901   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
13902 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
13903   cat >>confdefs.h <<_ACEOF
13904 #define HAVE_WS2TCPIP_H 1
13905 _ACEOF
13906
13907 fi
13908
13909 done
13910
13911    fi
13912
13913    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13914 /* <sys/types.h> is not needed according to POSIX, but the
13915    <sys/socket.h> in i386-unknown-freebsd4.10 and
13916    powerpc-apple-darwin5.5 required it. */
13917 #include <sys/types.h>
13918 #if HAVE_SYS_SOCKET_H
13919 # include <sys/socket.h>
13920 #elif HAVE_WS2TCPIP_H
13921 # include <ws2tcpip.h>
13922 #endif
13923
13924 "
13925 if test "x$ac_cv_type_socklen_t" = xyes; then :
13926
13927 else
13928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13929 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13930 if ${gl_cv_socklen_t_equiv+:} false; then :
13931   $as_echo_n "(cached) " >&6
13932 else
13933   # Systems have either "struct sockaddr *" or
13934          # "void *" as the second argument to getpeername
13935          gl_cv_socklen_t_equiv=
13936          for arg2 in "struct sockaddr" void; do
13937            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13938              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940 #include <sys/types.h>
13941                    #include <sys/socket.h>
13942
13943                    int getpeername (int, $arg2 *, $t *);
13944 int
13945 main ()
13946 {
13947 $t len;
13948                   getpeername (0, 0, &len);
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"; then :
13954   gl_cv_socklen_t_equiv="$t"
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957              test "$gl_cv_socklen_t_equiv" != "" && break
13958            done
13959            test "$gl_cv_socklen_t_equiv" != "" && break
13960          done
13961          if test "$gl_cv_socklen_t_equiv" = ""; then
13962            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13963          fi
13964
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13967 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13968
13969 cat >>confdefs.h <<_ACEOF
13970 #define socklen_t $gl_cv_socklen_t_equiv
13971 _ACEOF
13972
13973 fi
13974
13975
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13977 $as_echo_n "checking for library containing inet_addr... " >&6; }
13978 if ${ac_cv_search_inet_addr+:} false; then :
13979   $as_echo_n "(cached) " >&6
13980 else
13981   ac_func_search_save_LIBS=$LIBS
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h.  */
13984
13985 /* Override any GCC internal prototype to avoid an error.
13986    Use char because int might match the return type of a GCC
13987    builtin and then its argument prototype would still apply.  */
13988 #ifdef __cplusplus
13989 extern "C"
13990 #endif
13991 char inet_addr ();
13992 int
13993 main ()
13994 {
13995 return inet_addr ();
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 for ac_lib in '' nsl; do
14001   if test -z "$ac_lib"; then
14002     ac_res="none required"
14003   else
14004     ac_res=-l$ac_lib
14005     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14006   fi
14007   if ac_fn_c_try_link "$LINENO"; then :
14008   ac_cv_search_inet_addr=$ac_res
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext \
14011     conftest$ac_exeext
14012   if ${ac_cv_search_inet_addr+:} false; then :
14013   break
14014 fi
14015 done
14016 if ${ac_cv_search_inet_addr+:} false; then :
14017
14018 else
14019   ac_cv_search_inet_addr=no
14020 fi
14021 rm conftest.$ac_ext
14022 LIBS=$ac_func_search_save_LIBS
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14025 $as_echo "$ac_cv_search_inet_addr" >&6; }
14026 ac_res=$ac_cv_search_inet_addr
14027 if test "$ac_res" != no; then :
14028   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14029
14030 fi
14031
14032
14033 # Check whether --enable-endian-check was given.
14034 if test "${enable_endian_check+set}" = set; then :
14035   enableval=$enable_endian_check; endiancheck=$enableval
14036 else
14037   endiancheck=yes
14038 fi
14039
14040
14041 if test x"$endiancheck" = xyes ; then
14042
14043     tmp_assumed_endian=big
14044     tmp_assume_warn=""
14045     if test "$cross_compiling" = yes; then
14046       case "$host_cpu" in
14047          i[345678]* )
14048             tmp_assumed_endian=little
14049             ;;
14050          *)
14051             ;;
14052       esac
14053     fi
14054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14055 $as_echo_n "checking endianness... " >&6; }
14056     if ${gnupg_cv_c_endian+:} false; then :
14057   $as_echo_n "(cached) " >&6
14058 else
14059    gnupg_cv_c_endian=unknown
14060         # See if sys/param.h defines the BYTE_ORDER macro.
14061         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h.  */
14063 #include <sys/types.h>
14064         #include <sys/param.h>
14065 int
14066 main ()
14067 {
14068
14069         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14070          bogus endian macros
14071         #endif
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_compile "$LINENO"; then :
14077   # It does; now see whether it defined to BIG_ENDIAN or not.
14078         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h.  */
14080 #include <sys/types.h>
14081         #include <sys/param.h>
14082 int
14083 main ()
14084 {
14085
14086         #if BYTE_ORDER != BIG_ENDIAN
14087          not big endian
14088         #endif
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094   gnupg_cv_c_endian=big
14095 else
14096   gnupg_cv_c_endian=little
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101         if test "$gnupg_cv_c_endian" = unknown; then
14102             if test "$cross_compiling" = yes; then :
14103   gnupg_cv_c_endian=$tmp_assumed_endian
14104               tmp_assumed_warn=" (assumed)"
14105
14106 else
14107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h.  */
14109 main () {
14110               /* Are we little or big endian?  From Harbison&Steele.  */
14111               union
14112               {
14113                 long l;
14114                 char c[sizeof (long)];
14115               } u;
14116               u.l = 1;
14117               exit (u.c[sizeof (long) - 1] == 1);
14118               }
14119 _ACEOF
14120 if ac_fn_c_try_run "$LINENO"; then :
14121   gnupg_cv_c_endian=little
14122 else
14123   gnupg_cv_c_endian=big
14124 fi
14125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14126   conftest.$ac_objext conftest.beam conftest.$ac_ext
14127 fi
14128
14129         fi
14130
14131 fi
14132
14133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14134 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14135     if test "$gnupg_cv_c_endian" = little; then
14136
14137 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14138
14139     else
14140
14141 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14142
14143     fi
14144
14145 fi
14146
14147 # fixme: we should get rid of the byte type
14148 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14149 if test "x$ac_cv_type_byte" = xyes; then :
14150
14151 cat >>confdefs.h <<_ACEOF
14152 #define HAVE_BYTE 1
14153 _ACEOF
14154
14155
14156 fi
14157 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14158 if test "x$ac_cv_type_ushort" = xyes; then :
14159
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_USHORT 1
14162 _ACEOF
14163
14164
14165 fi
14166 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14167 if test "x$ac_cv_type_ulong" = xyes; then :
14168
14169 cat >>confdefs.h <<_ACEOF
14170 #define HAVE_ULONG 1
14171 _ACEOF
14172
14173
14174 fi
14175 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14176 if test "x$ac_cv_type_u16" = xyes; then :
14177
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_U16 1
14180 _ACEOF
14181
14182
14183 fi
14184 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14185 if test "x$ac_cv_type_u32" = xyes; then :
14186
14187 cat >>confdefs.h <<_ACEOF
14188 #define HAVE_U32 1
14189 _ACEOF
14190
14191
14192 fi
14193
14194 # The cast to long int works around a bug in the HP C Compiler
14195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14197 # This bug is HP SR number 8606223364.
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14199 $as_echo_n "checking size of unsigned short... " >&6; }
14200 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14201   $as_echo_n "(cached) " >&6
14202 else
14203   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14204
14205 else
14206   if test "$ac_cv_type_unsigned_short" = yes; then
14207      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14209 as_fn_error 77 "cannot compute sizeof (unsigned short)
14210 See \`config.log' for more details" "$LINENO" 5; }
14211    else
14212      ac_cv_sizeof_unsigned_short=0
14213    fi
14214 fi
14215
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14218 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14219
14220
14221
14222 cat >>confdefs.h <<_ACEOF
14223 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14224 _ACEOF
14225
14226
14227 # The cast to long int works around a bug in the HP C Compiler
14228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14230 # This bug is HP SR number 8606223364.
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14232 $as_echo_n "checking size of unsigned int... " >&6; }
14233 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14234   $as_echo_n "(cached) " >&6
14235 else
14236   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14237
14238 else
14239   if test "$ac_cv_type_unsigned_int" = yes; then
14240      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14242 as_fn_error 77 "cannot compute sizeof (unsigned int)
14243 See \`config.log' for more details" "$LINENO" 5; }
14244    else
14245      ac_cv_sizeof_unsigned_int=0
14246    fi
14247 fi
14248
14249 fi
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14251 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14252
14253
14254
14255 cat >>confdefs.h <<_ACEOF
14256 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14257 _ACEOF
14258
14259
14260 # The cast to long int works around a bug in the HP C Compiler
14261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14263 # This bug is HP SR number 8606223364.
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14265 $as_echo_n "checking size of unsigned long... " >&6; }
14266 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14270
14271 else
14272   if test "$ac_cv_type_unsigned_long" = yes; then
14273      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14275 as_fn_error 77 "cannot compute sizeof (unsigned long)
14276 See \`config.log' for more details" "$LINENO" 5; }
14277    else
14278      ac_cv_sizeof_unsigned_long=0
14279    fi
14280 fi
14281
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14284 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14285
14286
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14290 _ACEOF
14291
14292
14293 # The cast to long int works around a bug in the HP C Compiler
14294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14296 # This bug is HP SR number 8606223364.
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14298 $as_echo_n "checking size of unsigned long long... " >&6; }
14299 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14303
14304 else
14305   if test "$ac_cv_type_unsigned_long_long" = yes; then
14306      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14308 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14309 See \`config.log' for more details" "$LINENO" 5; }
14310    else
14311      ac_cv_sizeof_unsigned_long_long=0
14312    fi
14313 fi
14314
14315 fi
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14317 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14318
14319
14320
14321 cat >>confdefs.h <<_ACEOF
14322 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14323 _ACEOF
14324
14325
14326 # The cast to long int works around a bug in the HP C Compiler
14327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14329 # This bug is HP SR number 8606223364.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14331 $as_echo_n "checking size of size_t... " >&6; }
14332 if ${ac_cv_sizeof_size_t+:} false; then :
14333   $as_echo_n "(cached) " >&6
14334 else
14335   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14336
14337 else
14338   if test "$ac_cv_type_size_t" = yes; then
14339      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14341 as_fn_error 77 "cannot compute sizeof (size_t)
14342 See \`config.log' for more details" "$LINENO" 5; }
14343    else
14344      ac_cv_sizeof_size_t=0
14345    fi
14346 fi
14347
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14350 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14351
14352
14353
14354 cat >>confdefs.h <<_ACEOF
14355 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14356 _ACEOF
14357
14358
14359 # The cast to long int works around a bug in the HP C Compiler
14360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14362 # This bug is HP SR number 8606223364.
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14364 $as_echo_n "checking size of time_t... " >&6; }
14365 if ${ac_cv_sizeof_time_t+:} false; then :
14366   $as_echo_n "(cached) " >&6
14367 else
14368   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14369 #include <stdio.h>
14370 #ifdef HAVE_SYS_TIME_H
14371 # include <sys/time.h>
14372 #else
14373 # include <time.h>
14374 #endif
14375
14376 "; then :
14377
14378 else
14379   if test "$ac_cv_type_time_t" = yes; then
14380      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14382 as_fn_error 77 "cannot compute sizeof (time_t)
14383 See \`config.log' for more details" "$LINENO" 5; }
14384    else
14385      ac_cv_sizeof_time_t=0
14386    fi
14387 fi
14388
14389 fi
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14391 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14392
14393
14394
14395 cat >>confdefs.h <<_ACEOF
14396 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14397 _ACEOF
14398
14399
14400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14401 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14402 if ${gnupg_cv_time_t_unsigned+:} false; then :
14403   $as_echo_n "(cached) " >&6
14404 else
14405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h.  */
14407 $ac_includes_default
14408 #if HAVE_SYS_TIME_H
14409 # include <sys/time.h>
14410 #else
14411 # include <time.h>
14412 #endif
14413
14414 int
14415 main ()
14416 {
14417 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14418 test_array [0] = 0;
14419 return test_array [0];
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426   gnupg_cv_time_t_unsigned=no
14427 else
14428   gnupg_cv_time_t_unsigned=yes
14429 fi
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14433 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14434     if test $gnupg_cv_time_t_unsigned = yes; then
14435
14436 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14437
14438     fi
14439
14440
14441
14442 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14443    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14444    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14445     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14446 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14447 fi
14448
14449
14450 #
14451 # Checks for library functions.
14452 #
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14454 $as_echo "$as_me: checking for library functions" >&6;}
14455 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14456 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14457   ac_have_decl=1
14458 else
14459   ac_have_decl=0
14460 fi
14461
14462 cat >>confdefs.h <<_ACEOF
14463 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14464 _ACEOF
14465
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14467 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14468 if ${ac_cv_sys_largefile_source+:} false; then :
14469   $as_echo_n "(cached) " >&6
14470 else
14471   while :; do
14472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h.  */
14474 #include <sys/types.h> /* for off_t */
14475      #include <stdio.h>
14476 int
14477 main ()
14478 {
14479 int (*fp) (FILE *, off_t, int) = fseeko;
14480      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_link "$LINENO"; then :
14486   ac_cv_sys_largefile_source=no; break
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext \
14489     conftest$ac_exeext conftest.$ac_ext
14490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h.  */
14492 #define _LARGEFILE_SOURCE 1
14493 #include <sys/types.h> /* for off_t */
14494      #include <stdio.h>
14495 int
14496 main ()
14497 {
14498 int (*fp) (FILE *, off_t, int) = fseeko;
14499      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_c_try_link "$LINENO"; then :
14505   ac_cv_sys_largefile_source=1; break
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext \
14508     conftest$ac_exeext conftest.$ac_ext
14509   ac_cv_sys_largefile_source=unknown
14510   break
14511 done
14512 fi
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14514 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14515 case $ac_cv_sys_largefile_source in #(
14516   no | unknown) ;;
14517   *)
14518 cat >>confdefs.h <<_ACEOF
14519 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14520 _ACEOF
14521 ;;
14522 esac
14523 rm -rf conftest*
14524
14525 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14526 # in glibc 2.1.3, but that breaks too many other things.
14527 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14528 if test $ac_cv_sys_largefile_source != unknown; then
14529
14530 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14531
14532 fi
14533
14534 for ac_func in vprintf
14535 do :
14536   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14537 if test "x$ac_cv_func_vprintf" = xyes; then :
14538   cat >>confdefs.h <<_ACEOF
14539 #define HAVE_VPRINTF 1
14540 _ACEOF
14541
14542 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14543 if test "x$ac_cv_func__doprnt" = xyes; then :
14544
14545 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14546
14547 fi
14548
14549 fi
14550 done
14551
14552
14553 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14554 if test "x$ac_cv_type_pid_t" = xyes; then :
14555
14556 else
14557
14558 cat >>confdefs.h <<_ACEOF
14559 #define pid_t int
14560 _ACEOF
14561
14562 fi
14563
14564 for ac_header in vfork.h
14565 do :
14566   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14567 if test "x$ac_cv_header_vfork_h" = xyes; then :
14568   cat >>confdefs.h <<_ACEOF
14569 #define HAVE_VFORK_H 1
14570 _ACEOF
14571
14572 fi
14573
14574 done
14575
14576 for ac_func in fork vfork
14577 do :
14578   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14581   cat >>confdefs.h <<_ACEOF
14582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14583 _ACEOF
14584
14585 fi
14586 done
14587
14588 if test "x$ac_cv_func_fork" = xyes; then
14589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14590 $as_echo_n "checking for working fork... " >&6; }
14591 if ${ac_cv_func_fork_works+:} false; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   if test "$cross_compiling" = yes; then :
14595   ac_cv_func_fork_works=cross
14596 else
14597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h.  */
14599 $ac_includes_default
14600 int
14601 main ()
14602 {
14603
14604           /* By Ruediger Kuhlmann. */
14605           return fork () < 0;
14606
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 if ac_fn_c_try_run "$LINENO"; then :
14612   ac_cv_func_fork_works=yes
14613 else
14614   ac_cv_func_fork_works=no
14615 fi
14616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14617   conftest.$ac_objext conftest.beam conftest.$ac_ext
14618 fi
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14622 $as_echo "$ac_cv_func_fork_works" >&6; }
14623
14624 else
14625   ac_cv_func_fork_works=$ac_cv_func_fork
14626 fi
14627 if test "x$ac_cv_func_fork_works" = xcross; then
14628   case $host in
14629     *-*-amigaos* | *-*-msdosdjgpp*)
14630       # Override, as these systems have only a dummy fork() stub
14631       ac_cv_func_fork_works=no
14632       ;;
14633     *)
14634       ac_cv_func_fork_works=yes
14635       ;;
14636   esac
14637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14638 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14639 fi
14640 ac_cv_func_vfork_works=$ac_cv_func_vfork
14641 if test "x$ac_cv_func_vfork" = xyes; then
14642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14643 $as_echo_n "checking for working vfork... " >&6; }
14644 if ${ac_cv_func_vfork_works+:} false; then :
14645   $as_echo_n "(cached) " >&6
14646 else
14647   if test "$cross_compiling" = yes; then :
14648   ac_cv_func_vfork_works=cross
14649 else
14650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h.  */
14652 /* Thanks to Paul Eggert for this test.  */
14653 $ac_includes_default
14654 #include <sys/wait.h>
14655 #ifdef HAVE_VFORK_H
14656 # include <vfork.h>
14657 #endif
14658 /* On some sparc systems, changes by the child to local and incoming
14659    argument registers are propagated back to the parent.  The compiler
14660    is told about this with #include <vfork.h>, but some compilers
14661    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14662    static variable whose address is put into a register that is
14663    clobbered by the vfork.  */
14664 static void
14665 #ifdef __cplusplus
14666 sparc_address_test (int arg)
14667 # else
14668 sparc_address_test (arg) int arg;
14669 #endif
14670 {
14671   static pid_t child;
14672   if (!child) {
14673     child = vfork ();
14674     if (child < 0) {
14675       perror ("vfork");
14676       _exit(2);
14677     }
14678     if (!child) {
14679       arg = getpid();
14680       write(-1, "", 0);
14681       _exit (arg);
14682     }
14683   }
14684 }
14685
14686 int
14687 main ()
14688 {
14689   pid_t parent = getpid ();
14690   pid_t child;
14691
14692   sparc_address_test (0);
14693
14694   child = vfork ();
14695
14696   if (child == 0) {
14697     /* Here is another test for sparc vfork register problems.  This
14698        test uses lots of local variables, at least as many local
14699        variables as main has allocated so far including compiler
14700        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14701        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14702        reuse the register of parent for one of the local variables,
14703        since it will think that parent can't possibly be used any more
14704        in this routine.  Assigning to the local variable will thus
14705        munge parent in the parent process.  */
14706     pid_t
14707       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14708       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14709     /* Convince the compiler that p..p7 are live; otherwise, it might
14710        use the same hardware register for all 8 local variables.  */
14711     if (p != p1 || p != p2 || p != p3 || p != p4
14712         || p != p5 || p != p6 || p != p7)
14713       _exit(1);
14714
14715     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14716        from child file descriptors.  If the child closes a descriptor
14717        before it execs or exits, this munges the parent's descriptor
14718        as well.  Test for this by closing stdout in the child.  */
14719     _exit(close(fileno(stdout)) != 0);
14720   } else {
14721     int status;
14722     struct stat st;
14723
14724     while (wait(&status) != child)
14725       ;
14726     return (
14727          /* Was there some problem with vforking?  */
14728          child < 0
14729
14730          /* Did the child fail?  (This shouldn't happen.)  */
14731          || status
14732
14733          /* Did the vfork/compiler bug occur?  */
14734          || parent != getpid()
14735
14736          /* Did the file descriptor bug occur?  */
14737          || fstat(fileno(stdout), &st) != 0
14738          );
14739   }
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_run "$LINENO"; then :
14743   ac_cv_func_vfork_works=yes
14744 else
14745   ac_cv_func_vfork_works=no
14746 fi
14747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14748   conftest.$ac_objext conftest.beam conftest.$ac_ext
14749 fi
14750
14751 fi
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14753 $as_echo "$ac_cv_func_vfork_works" >&6; }
14754
14755 fi;
14756 if test "x$ac_cv_func_fork_works" = xcross; then
14757   ac_cv_func_vfork_works=$ac_cv_func_vfork
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14759 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14760 fi
14761
14762 if test "x$ac_cv_func_vfork_works" = xyes; then
14763
14764 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14765
14766 else
14767
14768 $as_echo "#define vfork fork" >>confdefs.h
14769
14770 fi
14771 if test "x$ac_cv_func_fork_works" = xyes; then
14772
14773 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14774
14775 fi
14776
14777 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14778                 explicit_bzero fcntl flockfile fsync ftello          \
14779                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14780                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14781                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14782                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14783                 setenv setlocale setrlimit sigaction sigprocmask     \
14784                 stat stpcpy strcasecmp strerror strftime stricmp     \
14785                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14786                 strtoull tcgetattr timegm times ttyname unsetenv     \
14787                 wait4 waitpid
14788 do :
14789   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14792   cat >>confdefs.h <<_ACEOF
14793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14794 _ACEOF
14795
14796 fi
14797 done
14798
14799
14800 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14801 # Given that we use nanosleep only as an optimization over a select
14802 # based wait function we want it only if it is available in libc.
14803 _save_libs="$LIBS"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14805 $as_echo_n "checking for library containing nanosleep... " >&6; }
14806 if ${ac_cv_search_nanosleep+:} false; then :
14807   $as_echo_n "(cached) " >&6
14808 else
14809   ac_func_search_save_LIBS=$LIBS
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h.  */
14812
14813 /* Override any GCC internal prototype to avoid an error.
14814    Use char because int might match the return type of a GCC
14815    builtin and then its argument prototype would still apply.  */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 char nanosleep ();
14820 int
14821 main ()
14822 {
14823 return nanosleep ();
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 for ac_lib in '' ; do
14829   if test -z "$ac_lib"; then
14830     ac_res="none required"
14831   else
14832     ac_res=-l$ac_lib
14833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14834   fi
14835   if ac_fn_c_try_link "$LINENO"; then :
14836   ac_cv_search_nanosleep=$ac_res
14837 fi
14838 rm -f core conftest.err conftest.$ac_objext \
14839     conftest$ac_exeext
14840   if ${ac_cv_search_nanosleep+:} false; then :
14841   break
14842 fi
14843 done
14844 if ${ac_cv_search_nanosleep+:} false; then :
14845
14846 else
14847   ac_cv_search_nanosleep=no
14848 fi
14849 rm conftest.$ac_ext
14850 LIBS=$ac_func_search_save_LIBS
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14853 $as_echo "$ac_cv_search_nanosleep" >&6; }
14854 ac_res=$ac_cv_search_nanosleep
14855 if test "$ac_res" != no; then :
14856   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14857
14858 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14859
14860 fi
14861
14862 LIBS="$_save_libs"
14863
14864
14865 # See whether libc supports the Linux inotify interface
14866 case "${host}" in
14867     *-*-linux*)
14868         for ac_func in inotify_init
14869 do :
14870   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14871 if test "x$ac_cv_func_inotify_init" = xyes; then :
14872   cat >>confdefs.h <<_ACEOF
14873 #define HAVE_INOTIFY_INIT 1
14874 _ACEOF
14875
14876 fi
14877 done
14878
14879         ;;
14880 esac
14881
14882
14883 if test "$have_android_system" = yes; then
14884    # On Android ttyname is a stub but prints an error message.
14885
14886 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14887
14888 fi
14889
14890 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14891 "
14892 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14893
14894 cat >>confdefs.h <<_ACEOF
14895 #define HAVE_STRUCT_SIGACTION 1
14896 _ACEOF
14897
14898
14899 fi
14900 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14901 "
14902 if test "x$ac_cv_type_sigset_t" = xyes; then :
14903
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_SIGSET_T 1
14906 _ACEOF
14907
14908
14909 fi
14910
14911
14912 # Dirmngr requires mmap on Unix systems.
14913 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14914   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
14915 fi
14916
14917
14918 #
14919 # Check for the getsockopt SO_PEERCRED, etc.
14920 #
14921 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
14922 #include <sys/socket.h>
14923 "
14924 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
14925
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_STRUCT_UCRED_PID 1
14928 _ACEOF
14929
14930
14931 fi
14932 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
14933 #include <sys/socket.h>
14934 "
14935 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
14936
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_STRUCT_UCRED_CR_PID 1
14939 _ACEOF
14940
14941
14942 fi
14943 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
14944 #include <sys/socket.h>
14945 "
14946 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
14947
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
14950 _ACEOF
14951
14952
14953 fi
14954
14955
14956 # (Open)Solaris
14957 for ac_func in getpeerucred
14958 do :
14959   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
14960 if test "x$ac_cv_func_getpeerucred" = xyes; then :
14961   cat >>confdefs.h <<_ACEOF
14962 #define HAVE_GETPEERUCRED 1
14963 _ACEOF
14964
14965 fi
14966 done
14967
14968
14969
14970 #
14971 # W32 specific test
14972 #
14973
14974
14975 #
14976 # Do we have zlib? Must do it here because Solaris failed
14977 # when compiling a conftest (due to the "-lz" from LIBS).
14978 # Note that we combine zlib and bzlib2 in ZLIBS.
14979 #
14980 if test "$use_zip" = yes ; then
14981   _cppflags="${CPPFLAGS}"
14982   _ldflags="${LDFLAGS}"
14983
14984 # Check whether --with-zlib was given.
14985 if test "${with_zlib+set}" = set; then :
14986   withval=$with_zlib;
14987       if test -d "$withval"; then
14988         CPPFLAGS="${CPPFLAGS} -I$withval/include"
14989         LDFLAGS="${LDFLAGS} -L$withval/lib"
14990       fi
14991
14992 fi
14993
14994
14995   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14996 if test "x$ac_cv_header_zlib_h" = xyes; then :
14997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
14998 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
14999 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15000   $as_echo_n "(cached) " >&6
15001 else
15002   ac_check_lib_save_LIBS=$LIBS
15003 LIBS="-lz  $LIBS"
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h.  */
15006
15007 /* Override any GCC internal prototype to avoid an error.
15008    Use char because int might match the return type of a GCC
15009    builtin and then its argument prototype would still apply.  */
15010 #ifdef __cplusplus
15011 extern "C"
15012 #endif
15013 char deflateInit2_ ();
15014 int
15015 main ()
15016 {
15017 return deflateInit2_ ();
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 if ac_fn_c_try_link "$LINENO"; then :
15023   ac_cv_lib_z_deflateInit2_=yes
15024 else
15025   ac_cv_lib_z_deflateInit2_=no
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext \
15028     conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15032 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15033 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15034
15035        ZLIBS="-lz"
15036
15037 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15038
15039
15040 else
15041   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15042 fi
15043
15044 else
15045   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15046 fi
15047
15048
15049 fi
15050
15051
15052 #
15053 # Check whether we can support bzip2
15054 #
15055 if test "$use_bzip2" = yes ; then
15056   _cppflags="${CPPFLAGS}"
15057   _ldflags="${LDFLAGS}"
15058
15059 # Check whether --with-bzip2 was given.
15060 if test "${with_bzip2+set}" = set; then :
15061   withval=$with_bzip2;
15062       if test -d "$withval" ; then
15063         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15064         LDFLAGS="${LDFLAGS} -L$withval/lib"
15065       fi
15066
15067 else
15068   withval=""
15069 fi
15070
15071
15072   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15073   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15074   # woefully out of date.
15075   if test "$withval" != no ; then
15076      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15077 "
15078 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15080 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15081 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15082   $as_echo_n "(cached) " >&6
15083 else
15084   ac_check_lib_save_LIBS=$LIBS
15085 LIBS="-lbz2  $LIBS"
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h.  */
15088
15089 /* Override any GCC internal prototype to avoid an error.
15090    Use char because int might match the return type of a GCC
15091    builtin and then its argument prototype would still apply.  */
15092 #ifdef __cplusplus
15093 extern "C"
15094 #endif
15095 char BZ2_bzCompressInit ();
15096 int
15097 main ()
15098 {
15099 return BZ2_bzCompressInit ();
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 if ac_fn_c_try_link "$LINENO"; then :
15105   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15106 else
15107   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext \
15110     conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15112 fi
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15114 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15115 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15116
15117           have_bz2=yes
15118           ZLIBS="$ZLIBS -lbz2"
15119
15120 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15121
15122
15123 else
15124   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15125 fi
15126
15127 else
15128   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15129 fi
15130
15131
15132   fi
15133 fi
15134  if test x"$have_bz2" = "xyes"; then
15135   ENABLE_BZIP2_SUPPORT_TRUE=
15136   ENABLE_BZIP2_SUPPORT_FALSE='#'
15137 else
15138   ENABLE_BZIP2_SUPPORT_TRUE='#'
15139   ENABLE_BZIP2_SUPPORT_FALSE=
15140 fi
15141
15142
15143
15144
15145 # Check for readline support
15146
15147
15148 # Check whether --with-readline was given.
15149 if test "${with_readline+set}" = set; then :
15150   withval=$with_readline; _do_readline=$withval
15151 else
15152   _do_readline=yes
15153 fi
15154
15155
15156   gnupg_cv_have_readline=no
15157   if test "$_do_readline" != "no" ; then
15158      if test -d "$withval" ; then
15159         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15160         LDFLAGS="${LDFLAGS} -L$withval/lib"
15161      fi
15162
15163      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15164         _readline_save_libs=$LIBS
15165         _combo="-lreadline${_termcap:+ $_termcap}"
15166         LIBS="$LIBS $_combo"
15167
15168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15169 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15170
15171         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h.  */
15173
15174 #include <stdio.h>
15175 #include <readline/readline.h>
15176 #include <readline/history.h>
15177
15178 int
15179 main ()
15180 {
15181
15182 rl_completion_func_t *completer;
15183 add_history("foobar");
15184 rl_catch_signals=0;
15185 rl_inhibit_completion=0;
15186 rl_attempted_completion_function=NULL;
15187 rl_completion_matches(NULL,NULL);
15188
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15194   _found_readline=yes
15195 else
15196   _found_readline=no
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext \
15199     conftest$ac_exeext conftest.$ac_ext
15200
15201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15202 $as_echo "$_found_readline" >&6; }
15203
15204         LIBS=$_readline_save_libs
15205
15206         if test $_found_readline = yes ; then
15207
15208 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15209
15210            LIBREADLINE=$_combo
15211
15212            gnupg_cv_have_readline=yes
15213            break
15214         fi
15215      done
15216
15217      unset _termcap
15218      unset _readline_save_libs
15219      unset _combo
15220      unset _found_readline
15221   fi
15222
15223
15224
15225 if test "$development_version" = yes; then
15226
15227 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15228
15229 fi
15230
15231 if test "$USE_MAINTAINER_MODE" = "yes"; then
15232
15233 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15234
15235 fi
15236
15237  if test x$cross_compiling = xyes; then
15238   CROSS_COMPILING_TRUE=
15239   CROSS_COMPILING_FALSE='#'
15240 else
15241   CROSS_COMPILING_TRUE='#'
15242   CROSS_COMPILING_FALSE=
15243 fi
15244
15245
15246
15247     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15248         :
15249     else
15250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15251 ***
15252 *** It seems that you are not using GNU make.  Some make tools have serious
15253 *** flaws and you may not be able to build this software at all. Before you
15254 *** complain, please try GNU make:  GNU make is easy to build and available
15255 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15256 ***" >&5
15257 $as_echo "$as_me: WARNING:
15258 ***
15259 *** It seems that you are not using GNU make.  Some make tools have serious
15260 *** flaws and you may not be able to build this software at all. Before you
15261 *** complain, please try GNU make:  GNU make is easy to build and available
15262 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15263 ***" >&2;}
15264     fi
15265
15266
15267 # Add some extra libs here so that previous tests don't fail for
15268 # mysterious reasons - the final link step should bail out.
15269 # W32SOCKLIBS is also defined so that if can be used for tools not
15270 # requiring any network stuff but linking to code in libcommon which
15271 # tracks in winsock stuff (e.g. init_common_subsystems).
15272 if test "$have_w32_system" = yes; then
15273    if test "$have_w32ce_system" = yes; then
15274      W32SOCKLIBS="-lws2"
15275    else
15276      W32SOCKLIBS="-lws2_32"
15277    fi
15278    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15279 fi
15280
15281
15282
15283
15284 #
15285 # TPM libtss library .. don't compile TPM support if we don't have it
15286 #
15287
15288 # Check whether --with-tss was given.
15289 if test "${with_tss+set}" = set; then :
15290   withval=$with_tss; with_tss=$withval
15291 else
15292   with_tss=autodetect
15293 fi
15294
15295 LIBTSS_LIBS=
15296 LIBTSS_CFLAGS=
15297 if test "$build_tpm2d" = "yes"; then
15298   _save_libs="$LIBS"
15299   _save_cflags="$CFLAGS"
15300   LIBS=""
15301   if test "$with_tss" = autodetect; then
15302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15303 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15304 if ${ac_cv_search_TSS_Create+:} false; then :
15305   $as_echo_n "(cached) " >&6
15306 else
15307   ac_func_search_save_LIBS=$LIBS
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h.  */
15310
15311 /* Override any GCC internal prototype to avoid an error.
15312    Use char because int might match the return type of a GCC
15313    builtin and then its argument prototype would still apply.  */
15314 #ifdef __cplusplus
15315 extern "C"
15316 #endif
15317 char TSS_Create ();
15318 int
15319 main ()
15320 {
15321 return TSS_Create ();
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 for ac_lib in '' tss ibmtss; do
15327   if test -z "$ac_lib"; then
15328     ac_res="none required"
15329   else
15330     ac_res=-l$ac_lib
15331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15332   fi
15333   if ac_fn_c_try_link "$LINENO"; then :
15334   ac_cv_search_TSS_Create=$ac_res
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext \
15337     conftest$ac_exeext
15338   if ${ac_cv_search_TSS_Create+:} false; then :
15339   break
15340 fi
15341 done
15342 if ${ac_cv_search_TSS_Create+:} false; then :
15343
15344 else
15345   ac_cv_search_TSS_Create=no
15346 fi
15347 rm conftest.$ac_ext
15348 LIBS=$ac_func_search_save_LIBS
15349 fi
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15351 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15352 ac_res=$ac_cv_search_TSS_Create
15353 if test "$ac_res" != no; then :
15354   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15355   have_libtss=IBM
15356 else
15357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15358 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15359 if ${ac_cv_search_Esys_Initialize+:} false; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   ac_func_search_save_LIBS=$LIBS
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h.  */
15365
15366 /* Override any GCC internal prototype to avoid an error.
15367    Use char because int might match the return type of a GCC
15368    builtin and then its argument prototype would still apply.  */
15369 #ifdef __cplusplus
15370 extern "C"
15371 #endif
15372 char Esys_Initialize ();
15373 int
15374 main ()
15375 {
15376 return Esys_Initialize ();
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 for ac_lib in '' tss2-esys; do
15382   if test -z "$ac_lib"; then
15383     ac_res="none required"
15384   else
15385     ac_res=-l$ac_lib
15386     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15387   fi
15388   if ac_fn_c_try_link "$LINENO"; then :
15389   ac_cv_search_Esys_Initialize=$ac_res
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392     conftest$ac_exeext
15393   if ${ac_cv_search_Esys_Initialize+:} false; then :
15394   break
15395 fi
15396 done
15397 if ${ac_cv_search_Esys_Initialize+:} false; then :
15398
15399 else
15400   ac_cv_search_Esys_Initialize=no
15401 fi
15402 rm conftest.$ac_ext
15403 LIBS=$ac_func_search_save_LIBS
15404 fi
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15406 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15407 ac_res=$ac_cv_search_Esys_Initialize
15408 if test "$ac_res" != no; then :
15409   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15410   have_libtss=Intel
15411 else
15412   have_libtss=no
15413 fi
15414
15415 fi
15416
15417   elif test "$with_tss" = ibm; then
15418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15419 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15420 if ${ac_cv_search_TSS_Create+:} false; then :
15421   $as_echo_n "(cached) " >&6
15422 else
15423   ac_func_search_save_LIBS=$LIBS
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h.  */
15426
15427 /* Override any GCC internal prototype to avoid an error.
15428    Use char because int might match the return type of a GCC
15429    builtin and then its argument prototype would still apply.  */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 char TSS_Create ();
15434 int
15435 main ()
15436 {
15437 return TSS_Create ();
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 for ac_lib in '' tss ibmtss; do
15443   if test -z "$ac_lib"; then
15444     ac_res="none required"
15445   else
15446     ac_res=-l$ac_lib
15447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15448   fi
15449   if ac_fn_c_try_link "$LINENO"; then :
15450   ac_cv_search_TSS_Create=$ac_res
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext \
15453     conftest$ac_exeext
15454   if ${ac_cv_search_TSS_Create+:} false; then :
15455   break
15456 fi
15457 done
15458 if ${ac_cv_search_TSS_Create+:} false; then :
15459
15460 else
15461   ac_cv_search_TSS_Create=no
15462 fi
15463 rm conftest.$ac_ext
15464 LIBS=$ac_func_search_save_LIBS
15465 fi
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15467 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15468 ac_res=$ac_cv_search_TSS_Create
15469 if test "$ac_res" != no; then :
15470   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15471   have_libtss=IBM
15472 else
15473   as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15474 fi
15475
15476   elif test "$with_tss" = intel; then
15477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15478 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15479 if ${ac_cv_search_Esys_Initialize+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   ac_func_search_save_LIBS=$LIBS
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h.  */
15485
15486 /* Override any GCC internal prototype to avoid an error.
15487    Use char because int might match the return type of a GCC
15488    builtin and then its argument prototype would still apply.  */
15489 #ifdef __cplusplus
15490 extern "C"
15491 #endif
15492 char Esys_Initialize ();
15493 int
15494 main ()
15495 {
15496 return Esys_Initialize ();
15497   ;
15498   return 0;
15499 }
15500 _ACEOF
15501 for ac_lib in '' tss2-esys; do
15502   if test -z "$ac_lib"; then
15503     ac_res="none required"
15504   else
15505     ac_res=-l$ac_lib
15506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15507   fi
15508   if ac_fn_c_try_link "$LINENO"; then :
15509   ac_cv_search_Esys_Initialize=$ac_res
15510 fi
15511 rm -f core conftest.err conftest.$ac_objext \
15512     conftest$ac_exeext
15513   if ${ac_cv_search_Esys_Initialize+:} false; then :
15514   break
15515 fi
15516 done
15517 if ${ac_cv_search_Esys_Initialize+:} false; then :
15518
15519 else
15520   ac_cv_search_Esys_Initialize=no
15521 fi
15522 rm conftest.$ac_ext
15523 LIBS=$ac_func_search_save_LIBS
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15526 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15527 ac_res=$ac_cv_search_Esys_Initialize
15528 if test "$ac_res" != no; then :
15529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15530   have_libtss=Intel
15531 else
15532   as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15533 fi
15534
15535   else
15536     as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15537   fi
15538
15539   if test "$have_libtss" = IBM; then
15540     LIBTSS_CFLAGS="-DTPM_POSIX"
15541     CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15542     ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15543 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15544
15545 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15546
15547 else
15548
15549       ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15550 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15551
15552 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15553
15554 else
15555
15556         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15557 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15558         have_libtss=no
15559
15560 fi
15561
15562
15563
15564 fi
15565
15566
15567     LIBTSS_LIBS=$LIBS
15568
15569   elif test "$have_libtss" = Intel; then
15570     ##
15571     # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15572     # until version 2.4.0.
15573     #
15574     # Note: the missing API is fairly serious and is also easily backportable
15575     # so keep the check below as is intead of going by library version number.
15576     ##
15577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15578 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15579 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15580   $as_echo_n "(cached) " >&6
15581 else
15582   ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-ltss2-esys  $LIBS"
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h.  */
15586
15587 /* Override any GCC internal prototype to avoid an error.
15588    Use char because int might match the return type of a GCC
15589    builtin and then its argument prototype would still apply.  */
15590 #ifdef __cplusplus
15591 extern "C"
15592 #endif
15593 char Esys_TR_GetTpmHandle ();
15594 int
15595 main ()
15596 {
15597 return Esys_TR_GetTpmHandle ();
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_c_try_link "$LINENO"; then :
15603   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15604 else
15605   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15606 fi
15607 rm -f core conftest.err conftest.$ac_objext \
15608     conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15610 fi
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15612 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15613 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15614   cat >>confdefs.h <<_ACEOF
15615 #define HAVE_LIBTSS2_ESYS 1
15616 _ACEOF
15617
15618   LIBS="-ltss2-esys $LIBS"
15619
15620 else
15621
15622         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
15623 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15624         have_libtss=no
15625
15626 fi
15627
15628     LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15629
15630 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15631
15632   fi
15633   LIBS="$_save_libs"
15634   CFLAGS="$_save_cflags"
15635   if test "$have_libtss" != no; then
15636
15637 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15638
15639     # look for a TPM emulator for testing
15640     # Extract the first word of "tpm_server", so it can be a program name with args.
15641 set dummy tpm_server; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15643 $as_echo_n "checking for $ac_word... " >&6; }
15644 if ${ac_cv_path_TPMSERVER+:} false; then :
15645   $as_echo_n "(cached) " >&6
15646 else
15647   case $TPMSERVER in
15648   [\\/]* | ?:[\\/]*)
15649   ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15650   ;;
15651   *)
15652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15653 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15654 for as_dir in $as_dummy
15655 do
15656   IFS=$as_save_IFS
15657   test -z "$as_dir" && as_dir=.
15658     for ac_exec_ext in '' $ac_executable_extensions; do
15659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660     ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15662     break 2
15663   fi
15664 done
15665   done
15666 IFS=$as_save_IFS
15667
15668   ;;
15669 esac
15670 fi
15671 TPMSERVER=$ac_cv_path_TPMSERVER
15672 if test -n "$TPMSERVER"; then
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15674 $as_echo "$TPMSERVER" >&6; }
15675 else
15676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15678 fi
15679
15680
15681     # Extract the first word of "swtpm", so it can be a program name with args.
15682 set dummy swtpm; ac_word=$2
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15684 $as_echo_n "checking for $ac_word... " >&6; }
15685 if ${ac_cv_path_SWTPM+:} false; then :
15686   $as_echo_n "(cached) " >&6
15687 else
15688   case $SWTPM in
15689   [\\/]* | ?:[\\/]*)
15690   ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15691   ;;
15692   *)
15693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15695 for as_dir in $as_dummy
15696 do
15697   IFS=$as_save_IFS
15698   test -z "$as_dir" && as_dir=.
15699     for ac_exec_ext in '' $ac_executable_extensions; do
15700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15701     ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703     break 2
15704   fi
15705 done
15706   done
15707 IFS=$as_save_IFS
15708
15709   ;;
15710 esac
15711 fi
15712 SWTPM=$ac_cv_path_SWTPM
15713 if test -n "$SWTPM"; then
15714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15715 $as_echo "$SWTPM" >&6; }
15716 else
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15719 fi
15720
15721
15722     # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15723 set dummy swtpm_ioctl; ac_word=$2
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15725 $as_echo_n "checking for $ac_word... " >&6; }
15726 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15727   $as_echo_n "(cached) " >&6
15728 else
15729   case $SWTPM_IOCTL in
15730   [\\/]* | ?:[\\/]*)
15731   ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15732   ;;
15733   *)
15734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15735 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15736 for as_dir in $as_dummy
15737 do
15738   IFS=$as_save_IFS
15739   test -z "$as_dir" && as_dir=.
15740     for ac_exec_ext in '' $ac_executable_extensions; do
15741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15742     ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15744     break 2
15745   fi
15746 done
15747   done
15748 IFS=$as_save_IFS
15749
15750   ;;
15751 esac
15752 fi
15753 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15754 if test -n "$SWTPM_IOCTL"; then
15755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15756 $as_echo "$SWTPM_IOCTL" >&6; }
15757 else
15758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15759 $as_echo "no" >&6; }
15760 fi
15761
15762
15763     # Extract the first word of "tssstartup", so it can be a program name with args.
15764 set dummy tssstartup; ac_word=$2
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15766 $as_echo_n "checking for $ac_word... " >&6; }
15767 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15768   $as_echo_n "(cached) " >&6
15769 else
15770   case $TSSSTARTUP in
15771   [\\/]* | ?:[\\/]*)
15772   ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15773   ;;
15774   *)
15775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15776 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15777 for as_dir in $as_dummy
15778 do
15779   IFS=$as_save_IFS
15780   test -z "$as_dir" && as_dir=.
15781     for ac_exec_ext in '' $ac_executable_extensions; do
15782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15783     ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15785     break 2
15786   fi
15787 done
15788   done
15789 IFS=$as_save_IFS
15790
15791   ;;
15792 esac
15793 fi
15794 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15795 if test -n "$TSSSTARTUP"; then
15796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15797 $as_echo "$TSSSTARTUP" >&6; }
15798 else
15799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 $as_echo "no" >&6; }
15801 fi
15802
15803
15804   fi
15805 fi
15806 if test "$have_libtss" = no; then
15807   build_tpm2d=no
15808 fi
15809
15810
15811  if test "$have_libtss" != no; then
15812   HAVE_LIBTSS_TRUE=
15813   HAVE_LIBTSS_FALSE='#'
15814 else
15815   HAVE_LIBTSS_TRUE='#'
15816   HAVE_LIBTSS_FALSE=
15817 fi
15818
15819  if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15820   TEST_LIBTSS_TRUE=
15821   TEST_LIBTSS_FALSE='#'
15822 else
15823   TEST_LIBTSS_TRUE='#'
15824   TEST_LIBTSS_FALSE=
15825 fi
15826
15827
15828
15829 #
15830 # Setup gcc specific options
15831 #
15832 USE_C99_CFLAGS=
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15834 $as_echo "$as_me: checking for cc features" >&6;}
15835 if test "$GCC" = yes; then
15836     mycflags=
15837     mycflags_save=$CFLAGS
15838
15839     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15840     # options.  This is the case for gcc >= 4.6
15841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15842 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h.  */
15845
15846 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15847 #kickerror
15848 #endif
15849 int
15850 main ()
15851 {
15852
15853   ;
15854   return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858   _gcc_silent_wno=yes
15859 else
15860   _gcc_silent_wno=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15864 $as_echo "$_gcc_silent_wno" >&6; }
15865
15866     # Note that it is okay to use CFLAGS here because these are just
15867     # warning options and the user should have a chance of overriding
15868     # them.
15869     if test "$USE_MAINTAINER_MODE" = "yes"; then
15870         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15871         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15872         if test x"$_gcc_silent_wno" = xyes ; then
15873           _gcc_wopt=yes
15874         else
15875           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15876 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15877           CFLAGS="-Wno-missing-field-initializers"
15878           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880
15881 int
15882 main ()
15883 {
15884
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890   _gcc_wopt=yes
15891 else
15892   _gcc_wopt=no
15893 fi
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15896 $as_echo "$_gcc_wopt" >&6; }
15897         fi
15898         if test x"$_gcc_wopt" = xyes ; then
15899           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15900           mycflags="$mycflags -Wno-missing-field-initializers"
15901         fi
15902
15903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15904 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15905         CFLAGS="-Wdeclaration-after-statement"
15906         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h.  */
15908
15909 int
15910 main ()
15911 {
15912
15913   ;
15914   return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_compile "$LINENO"; then :
15918   _gcc_wopt=yes
15919 else
15920   _gcc_wopt=no
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15924 $as_echo "$_gcc_wopt" >&6; }
15925         if test x"$_gcc_wopt" = xyes ; then
15926           mycflags="$mycflags -Wdeclaration-after-statement"
15927         fi
15928
15929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15930 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15931         CFLAGS="-Wlogical-op -Werror"
15932         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h.  */
15934
15935 int
15936 main ()
15937 {
15938
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 if ac_fn_c_try_compile "$LINENO"; then :
15944   _gcc_wopt=yes
15945 else
15946   _gcc_wopt=no
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15950 $as_echo "$_gcc_wopt" >&6; }
15951         if test x"$_gcc_wopt" = xyes ; then
15952           mycflags="$mycflags -Wlogical-op"
15953         fi
15954
15955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15956 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15957         CFLAGS="-Wvla"
15958         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h.  */
15960
15961 int
15962 main ()
15963 {
15964
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970   _gcc_wopt=yes
15971 else
15972   _gcc_wopt=no
15973 fi
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15976 $as_echo "$_gcc_wopt" >&6; }
15977         if test x"$_gcc_wopt" = xyes ; then
15978           mycflags="$mycflags -Wvla"
15979         fi
15980
15981     else
15982         mycflags="$mycflags -Wall"
15983         if test x"$_gcc_silent_wno" = xyes ; then
15984           mycflags="$mycflags -Wno-format-zero-length"
15985         fi
15986     fi
15987
15988     if test x"$_gcc_silent_wno" = xyes ; then
15989       _gcc_psign=yes
15990     else
15991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15992 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15993       CFLAGS="-Wno-pointer-sign"
15994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h.  */
15996
15997 int
15998 main ()
15999 {
16000
16001   ;
16002   return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_compile "$LINENO"; then :
16006   _gcc_psign=yes
16007 else
16008   _gcc_psign=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16012 $as_echo "$_gcc_psign" >&6; }
16013     fi
16014     if test x"$_gcc_psign" = xyes ; then
16015        mycflags="$mycflags -Wno-pointer-sign"
16016     fi
16017
16018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16019 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16020     CFLAGS="-Wpointer-arith"
16021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h.  */
16023
16024 int
16025 main ()
16026 {
16027
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033   _gcc_psign=yes
16034 else
16035   _gcc_psign=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16039 $as_echo "$_gcc_psign" >&6; }
16040     if test x"$_gcc_psign" = xyes ; then
16041        mycflags="$mycflags -Wpointer-arith"
16042     fi
16043
16044     CFLAGS="$mycflags $mycflags_save"
16045     if test "$use_libdns" = yes; then
16046        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
16047        USE_C99_CFLAGS="-std=gnu99"
16048     fi
16049 fi
16050
16051
16052
16053
16054 #
16055 # This is handy for debugging so the compiler doesn't rearrange
16056 # things and eliminate variables.
16057 #
16058 # Check whether --enable-optimization was given.
16059 if test "${enable_optimization+set}" = set; then :
16060   enableval=$enable_optimization; if test $enableval = no ; then
16061                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16062                    fi
16063 fi
16064
16065
16066 #
16067 # log_debug has certain requirements which might hamper portability.
16068 # Thus we use an option to enable it.
16069 #
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16071 $as_echo_n "checking whether to enable log_clock... " >&6; }
16072 # Check whether --enable-log_clock was given.
16073 if test "${enable_log_clock+set}" = set; then :
16074   enableval=$enable_log_clock; enable_log_clock=$enableval
16075 else
16076   enable_log_clock=no
16077 fi
16078
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16080 $as_echo "$enable_log_clock" >&6; }
16081 if test "$enable_log_clock" = yes ; then
16082
16083 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16084
16085 fi
16086
16087 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
16088 # misbehaving autoconf tests in case the user supplied -Werror.
16089 #
16090 # Check whether --enable-werror was given.
16091 if test "${enable_werror+set}" = set; then :
16092   enableval=$enable_werror; if test $enableval = yes ; then
16093                       CFLAGS="$CFLAGS -Werror"
16094                    fi
16095 fi
16096
16097
16098 #
16099 # Configure option --enable-all-tests
16100 #
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16102 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16103 # Check whether --enable-all-tests was given.
16104 if test "${enable_all_tests+set}" = set; then :
16105   enableval=$enable_all_tests; run_all_tests=$enableval
16106 else
16107   run_all_tests=no
16108 fi
16109
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16111 $as_echo "$run_all_tests" >&6; }
16112 if test "$run_all_tests" = "yes"; then
16113
16114 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16115
16116 fi
16117
16118 #
16119 # Configure option --disable-tests
16120 #
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16122 $as_echo_n "checking whether tests should be run... " >&6; }
16123 # Check whether --enable-tests was given.
16124 if test "${enable_tests+set}" = set; then :
16125   enableval=$enable_tests; run_tests=$enableval
16126 else
16127   run_tests=yes
16128 fi
16129
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16131 $as_echo "$run_tests" >&6; }
16132
16133 #
16134 # We do not want support for the GNUPG_BUILDDIR environment variable
16135 # in a released version.  However, our regression tests suite requires
16136 # this and thus we build with support for it during "make distcheck".
16137 # This configure option implements this along with the top Makefile's
16138 # AM_DISTCHECK_CONFIGURE_FLAGS.
16139 #
16140 gnupg_builddir_envvar=no
16141 # Check whether --enable-gnupg-builddir-envvar was given.
16142 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16143   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16144 fi
16145
16146 if test x"$gnupg_builddir_envvar" = x"yes"; then
16147
16148 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16149
16150 fi
16151
16152
16153 #
16154 # To avoid problems with systemd cleaning up the /run/user directory,
16155 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16156 # before /run/user
16157 #
16158 # Check whether --enable-run-gnupg-user-socket was given.
16159 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16160   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16161 fi
16162
16163 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16164
16165 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16166
16167 fi
16168
16169
16170 #
16171 # Decide what to build
16172 #
16173
16174 build_scdaemon_extra=""
16175 if test "$build_scdaemon" = "yes"; then
16176   if test $have_libusb = no; then
16177      build_scdaemon_extra="without internal CCID driver"
16178   fi
16179   if test -n "$build_scdaemon_extra"; then
16180      build_scdaemon_extra="(${build_scdaemon_extra})"
16181   fi
16182 fi
16183
16184
16185 #
16186 # Set variables for use by automake makefiles.
16187 #
16188  if test "$build_gpg" = "yes"; then
16189   BUILD_GPG_TRUE=
16190   BUILD_GPG_FALSE='#'
16191 else
16192   BUILD_GPG_TRUE='#'
16193   BUILD_GPG_FALSE=
16194 fi
16195
16196  if test "$build_gpgsm" = "yes"; then
16197   BUILD_GPGSM_TRUE=
16198   BUILD_GPGSM_FALSE='#'
16199 else
16200   BUILD_GPGSM_TRUE='#'
16201   BUILD_GPGSM_FALSE=
16202 fi
16203
16204  if test "$build_agent" = "yes"; then
16205   BUILD_AGENT_TRUE=
16206   BUILD_AGENT_FALSE='#'
16207 else
16208   BUILD_AGENT_TRUE='#'
16209   BUILD_AGENT_FALSE=
16210 fi
16211
16212  if test "$build_scdaemon" = "yes"; then
16213   BUILD_SCDAEMON_TRUE=
16214   BUILD_SCDAEMON_FALSE='#'
16215 else
16216   BUILD_SCDAEMON_TRUE='#'
16217   BUILD_SCDAEMON_FALSE=
16218 fi
16219
16220  if test "$build_g13" = "yes"; then
16221   BUILD_G13_TRUE=
16222   BUILD_G13_FALSE='#'
16223 else
16224   BUILD_G13_TRUE='#'
16225   BUILD_G13_FALSE=
16226 fi
16227
16228  if test "$build_dirmngr" = "yes"; then
16229   BUILD_DIRMNGR_TRUE=
16230   BUILD_DIRMNGR_FALSE='#'
16231 else
16232   BUILD_DIRMNGR_TRUE='#'
16233   BUILD_DIRMNGR_FALSE=
16234 fi
16235
16236  if test "$build_keyboxd" = "yes"; then
16237   BUILD_KEYBOXD_TRUE=
16238   BUILD_KEYBOXD_FALSE='#'
16239 else
16240   BUILD_KEYBOXD_TRUE='#'
16241   BUILD_KEYBOXD_FALSE=
16242 fi
16243
16244  if test "$build_tpm2d" = "yes"; then
16245   BUILD_TPM2D_TRUE=
16246   BUILD_TPM2D_FALSE='#'
16247 else
16248   BUILD_TPM2D_TRUE='#'
16249   BUILD_TPM2D_FALSE=
16250 fi
16251
16252  if test "$build_doc" = "yes"; then
16253   BUILD_DOC_TRUE=
16254   BUILD_DOC_FALSE='#'
16255 else
16256   BUILD_DOC_TRUE='#'
16257   BUILD_DOC_FALSE=
16258 fi
16259
16260  if test "$build_gpgtar" = "yes"; then
16261   BUILD_GPGTAR_TRUE=
16262   BUILD_GPGTAR_FALSE='#'
16263 else
16264   BUILD_GPGTAR_TRUE='#'
16265   BUILD_GPGTAR_FALSE=
16266 fi
16267
16268  if test "$build_wks_tools" = "yes"; then
16269   BUILD_WKS_TOOLS_TRUE=
16270   BUILD_WKS_TOOLS_FALSE='#'
16271 else
16272   BUILD_WKS_TOOLS_TRUE='#'
16273   BUILD_WKS_TOOLS_FALSE=
16274 fi
16275
16276
16277  if test "$run_tests" != yes; then
16278   DISABLE_TESTS_TRUE=
16279   DISABLE_TESTS_FALSE='#'
16280 else
16281   DISABLE_TESTS_TRUE='#'
16282   DISABLE_TESTS_FALSE=
16283 fi
16284
16285  if test "$card_support" = yes; then
16286   ENABLE_CARD_SUPPORT_TRUE=
16287   ENABLE_CARD_SUPPORT_FALSE='#'
16288 else
16289   ENABLE_CARD_SUPPORT_TRUE='#'
16290   ENABLE_CARD_SUPPORT_FALSE=
16291 fi
16292
16293  if test "$use_trust_models" = no; then
16294   NO_TRUST_MODELS_TRUE=
16295   NO_TRUST_MODELS_FALSE='#'
16296 else
16297   NO_TRUST_MODELS_TRUE='#'
16298   NO_TRUST_MODELS_FALSE=
16299 fi
16300
16301  if test "$use_tofu" = yes; then
16302   USE_TOFU_TRUE=
16303   USE_TOFU_FALSE='#'
16304 else
16305   USE_TOFU_TRUE='#'
16306   USE_TOFU_FALSE=
16307 fi
16308
16309
16310 #
16311 # Set some defines for use gpgconf.
16312 #
16313 if test "$build_gpg" = yes ; then
16314
16315 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16316
16317 fi
16318 if test "$build_gpgsm" = yes ; then
16319
16320 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16321
16322 fi
16323 if test "$build_agent" = yes ; then
16324
16325 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16326
16327 fi
16328 if test "$build_scdaemon" = yes ; then
16329
16330 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16331
16332 fi
16333 if test "$build_dirmngr" = yes ; then
16334
16335 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16336
16337 fi
16338 if test "$build_keyboxd" = yes ; then
16339
16340 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16341
16342 fi
16343 if test "$build_tpm2d" = yes ; then
16344
16345 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16346
16347 fi
16348 if test "$build_g13" = yes ; then
16349
16350 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16351
16352 fi
16353
16354
16355 #
16356 # Define Name strings
16357 #
16358
16359 cat >>confdefs.h <<_ACEOF
16360 #define GNUPG_NAME "GnuPG"
16361 _ACEOF
16362
16363
16364
16365 cat >>confdefs.h <<_ACEOF
16366 #define GPG_NAME "gpg"
16367 _ACEOF
16368
16369
16370 cat >>confdefs.h <<_ACEOF
16371 #define GPG_DISP_NAME "GnuPG"
16372 _ACEOF
16373
16374
16375
16376 cat >>confdefs.h <<_ACEOF
16377 #define GPGSM_NAME "gpgsm"
16378 _ACEOF
16379
16380
16381 cat >>confdefs.h <<_ACEOF
16382 #define GPGSM_DISP_NAME "GPGSM"
16383 _ACEOF
16384
16385
16386
16387 cat >>confdefs.h <<_ACEOF
16388 #define GPG_AGENT_NAME "gpg-agent"
16389 _ACEOF
16390
16391
16392 cat >>confdefs.h <<_ACEOF
16393 #define GPG_AGENT_DISP_NAME "GPG Agent"
16394 _ACEOF
16395
16396
16397
16398 cat >>confdefs.h <<_ACEOF
16399 #define TPM2DAEMON_NAME "tpm2daemon"
16400 _ACEOF
16401
16402
16403 cat >>confdefs.h <<_ACEOF
16404 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16405 _ACEOF
16406
16407
16408
16409 cat >>confdefs.h <<_ACEOF
16410 #define SCDAEMON_NAME "scdaemon"
16411 _ACEOF
16412
16413
16414 cat >>confdefs.h <<_ACEOF
16415 #define SCDAEMON_DISP_NAME "SCDaemon"
16416 _ACEOF
16417
16418
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define DIRMNGR_NAME "dirmngr"
16422 _ACEOF
16423
16424
16425 cat >>confdefs.h <<_ACEOF
16426 #define DIRMNGR_DISP_NAME "DirMngr"
16427 _ACEOF
16428
16429
16430
16431 cat >>confdefs.h <<_ACEOF
16432 #define KEYBOXD_NAME "keyboxd"
16433 _ACEOF
16434
16435
16436 cat >>confdefs.h <<_ACEOF
16437 #define KEYBOXD_DISP_NAME "Keyboxd"
16438 _ACEOF
16439
16440
16441
16442 cat >>confdefs.h <<_ACEOF
16443 #define G13_NAME "g13"
16444 _ACEOF
16445
16446
16447 cat >>confdefs.h <<_ACEOF
16448 #define G13_DISP_NAME "G13"
16449 _ACEOF
16450
16451
16452
16453 cat >>confdefs.h <<_ACEOF
16454 #define GPGCONF_NAME "gpgconf"
16455 _ACEOF
16456
16457
16458 cat >>confdefs.h <<_ACEOF
16459 #define GPGCONF_DISP_NAME "GPGConf"
16460 _ACEOF
16461
16462
16463
16464 cat >>confdefs.h <<_ACEOF
16465 #define GPGTAR_NAME "gpgtar"
16466 _ACEOF
16467
16468
16469
16470 cat >>confdefs.h <<_ACEOF
16471 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16472 _ACEOF
16473
16474
16475 cat >>confdefs.h <<_ACEOF
16476 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16477 _ACEOF
16478
16479
16480 cat >>confdefs.h <<_ACEOF
16481 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16482 _ACEOF
16483
16484
16485 cat >>confdefs.h <<_ACEOF
16486 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16487 _ACEOF
16488
16489
16490 cat >>confdefs.h <<_ACEOF
16491 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16492 _ACEOF
16493
16494
16495 cat >>confdefs.h <<_ACEOF
16496 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16497 _ACEOF
16498
16499
16500 cat >>confdefs.h <<_ACEOF
16501 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16502 _ACEOF
16503
16504
16505 cat >>confdefs.h <<_ACEOF
16506 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16507 _ACEOF
16508
16509
16510 cat >>confdefs.h <<_ACEOF
16511 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16512 _ACEOF
16513
16514
16515 cat >>confdefs.h <<_ACEOF
16516 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16517 _ACEOF
16518
16519
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define GPGEXT_GPG "gpg"
16523 _ACEOF
16524
16525
16526 if test "$have_w32_system" = yes; then
16527
16528 cat >>confdefs.h <<_ACEOF
16529 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16530 _ACEOF
16531
16532 fi
16533
16534
16535 #
16536 # Provide information about the build.
16537 #
16538 BUILD_REVISION="a4b25bcfe"
16539
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define BUILD_REVISION "$BUILD_REVISION"
16543 _ACEOF
16544
16545
16546 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16547 BUILD_VERSION="${BUILD_VERSION}42162"
16548 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16549
16550
16551
16552 # Check whether --enable-build-timestamp was given.
16553 if test "${enable_build_timestamp+set}" = set; then :
16554   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16555         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16556       else
16557         BUILD_TIMESTAMP="$enableval"
16558       fi
16559       BUILD_HOSTNAME="$ac_hostname"
16560 else
16561   BUILD_TIMESTAMP="<none>"
16562       BUILD_HOSTNAME="<anon>"
16563 fi
16564
16565
16566
16567 cat >>confdefs.h <<_ACEOF
16568 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16569 _ACEOF
16570
16571
16572
16573
16574 #
16575 # Print errors here so that they are visible all
16576 # together and the user can acquire them all together.
16577 #
16578 die=no
16579 if test "$have_gpg_error" = "no"; then
16580    die=yes
16581    { $as_echo "$as_me:${as_lineno-$LINENO}:
16582 ***
16583 *** You need libgpg-error to build this program.
16584 **  This library is for example available at
16585 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16586 *** (at least version $NEED_GPGRT_VERSION is required.)
16587 ***" >&5
16588 $as_echo "$as_me:
16589 ***
16590 *** You need libgpg-error to build this program.
16591 **  This library is for example available at
16592 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16593 *** (at least version $NEED_GPGRT_VERSION is required.)
16594 ***" >&6;}
16595 fi
16596 if test "$have_libgcrypt" = "no"; then
16597    die=yes
16598    { $as_echo "$as_me:${as_lineno-$LINENO}:
16599 ***
16600 *** You need libgcrypt to build this program.
16601 **  This library is for example available at
16602 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16603 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16604 ***" >&5
16605 $as_echo "$as_me:
16606 ***
16607 *** You need libgcrypt to build this program.
16608 **  This library is for example available at
16609 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16610 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16611 ***" >&6;}
16612 fi
16613 if test "$have_libassuan" = "no"; then
16614    die=yes
16615    { $as_echo "$as_me:${as_lineno-$LINENO}:
16616 ***
16617 *** You need libassuan to build this program.
16618 *** This library is for example available at
16619 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16620 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16621 ***" >&5
16622 $as_echo "$as_me:
16623 ***
16624 *** You need libassuan to build this program.
16625 *** This library is for example available at
16626 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16627 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16628 ***" >&6;}
16629 fi
16630 if test "$have_ksba" = "no"; then
16631     die=yes
16632     { $as_echo "$as_me:${as_lineno-$LINENO}:
16633 ***
16634 *** You need libksba to build this program.
16635 *** This library is for example available at
16636 ***   https://gnupg.org/ftp/gcrypt/libksba/
16637 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16638 ***" >&5
16639 $as_echo "$as_me:
16640 ***
16641 *** You need libksba to build this program.
16642 *** This library is for example available at
16643 ***   https://gnupg.org/ftp/gcrypt/libksba/
16644 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16645 ***" >&6;}
16646 fi
16647 if test "$gnupg_have_ldap" = yes; then
16648   if test "$have_w32ce_system" = yes; then
16649     { $as_echo "$as_me:${as_lineno-$LINENO}:
16650 *** Note that CeGCC might be broken, a package fixing this is:
16651 ***    http://files.kolab.org/local/windows-ce/
16652 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16653 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16654 ***" >&5
16655 $as_echo "$as_me:
16656 *** Note that CeGCC might be broken, a package fixing this is:
16657 ***    http://files.kolab.org/local/windows-ce/
16658 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16659 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16660 ***" >&6;}
16661    fi
16662 fi
16663 if test "$have_npth" = "no"; then
16664     die=yes
16665     { $as_echo "$as_me:${as_lineno-$LINENO}:
16666 ***
16667 *** It is now required to build with support for the
16668 *** New Portable Threads Library (nPth). Please install this
16669 *** library first.  The library is for example available at
16670 ***   https://gnupg.org/ftp/gcrypt/npth/
16671 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16672 ***" >&5
16673 $as_echo "$as_me:
16674 ***
16675 *** It is now required to build with support for the
16676 *** New Portable Threads Library (nPth). Please install this
16677 *** library first.  The library is for example available at
16678 ***   https://gnupg.org/ftp/gcrypt/npth/
16679 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16680 ***" >&6;}
16681 fi
16682
16683 if test "$require_iconv" = yes; then
16684   if test "$am_func_iconv" != yes; then
16685     die=yes
16686     { $as_echo "$as_me:${as_lineno-$LINENO}:
16687 ***
16688 *** The system does not provide a working iconv function.  Please
16689 *** install a suitable library; for example GNU Libiconv which is
16690 *** available at:
16691 ***   https://ftp.gnu.org/gnu/libiconv/
16692 ***" >&5
16693 $as_echo "$as_me:
16694 ***
16695 *** The system does not provide a working iconv function.  Please
16696 *** install a suitable library; for example GNU Libiconv which is
16697 *** available at:
16698 ***   https://ftp.gnu.org/gnu/libiconv/
16699 ***" >&6;}
16700   fi
16701 fi
16702
16703 if test "$use_ccid_driver" = yes; then
16704   if test "$have_libusb" != yes; then
16705     die=yes
16706     { $as_echo "$as_me:${as_lineno-$LINENO}:
16707 ***
16708 *** You need libusb to build the internal ccid driver.  Please
16709 *** install a libusb suitable for your system.
16710 ***" >&5
16711 $as_echo "$as_me:
16712 ***
16713 *** You need libusb to build the internal ccid driver.  Please
16714 *** install a libusb suitable for your system.
16715 ***" >&6;}
16716   fi
16717 fi
16718
16719 if test "$die" = "yes"; then
16720     as_fn_error $? "
16721 ***
16722 *** Required libraries not found. Please consult the above messages
16723 *** and install them before running configure again.
16724 ***" "$LINENO" 5
16725 fi
16726
16727
16728
16729 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/cms/Makefile tests/migrations/Makefile tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16730
16731
16732
16733 cat >confcache <<\_ACEOF
16734 # This file is a shell script that caches the results of configure
16735 # tests run on this system so they can be shared between configure
16736 # scripts and configure runs, see configure's option --config-cache.
16737 # It is not useful on other systems.  If it contains results you don't
16738 # want to keep, you may remove or edit it.
16739 #
16740 # config.status only pays attention to the cache file if you give it
16741 # the --recheck option to rerun configure.
16742 #
16743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16745 # following values.
16746
16747 _ACEOF
16748
16749 # The following way of writing the cache mishandles newlines in values,
16750 # but we know of no workaround that is simple, portable, and efficient.
16751 # So, we kill variables containing newlines.
16752 # Ultrix sh set writes to stderr and can't be redirected directly,
16753 # and sets the high bit in the cache file unless we assign to the vars.
16754 (
16755   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16756     eval ac_val=\$$ac_var
16757     case $ac_val in #(
16758     *${as_nl}*)
16759       case $ac_var in #(
16760       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16762       esac
16763       case $ac_var in #(
16764       _ | IFS | as_nl) ;; #(
16765       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16766       *) { eval $ac_var=; unset $ac_var;} ;;
16767       esac ;;
16768     esac
16769   done
16770
16771   (set) 2>&1 |
16772     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16773     *${as_nl}ac_space=\ *)
16774       # `set' does not quote correctly, so add quotes: double-quote
16775       # substitution turns \\\\ into \\, and sed turns \\ into \.
16776       sed -n \
16777         "s/'/'\\\\''/g;
16778           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16779       ;; #(
16780     *)
16781       # `set' quotes correctly as required by POSIX, so do not add quotes.
16782       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16783       ;;
16784     esac |
16785     sort
16786 ) |
16787   sed '
16788      /^ac_cv_env_/b end
16789      t clear
16790      :clear
16791      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16792      t end
16793      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16794      :end' >>confcache
16795 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16796   if test -w "$cache_file"; then
16797     if test "x$cache_file" != "x/dev/null"; then
16798       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16799 $as_echo "$as_me: updating cache $cache_file" >&6;}
16800       if test ! -f "$cache_file" || test -h "$cache_file"; then
16801         cat confcache >"$cache_file"
16802       else
16803         case $cache_file in #(
16804         */* | ?:*)
16805           mv -f confcache "$cache_file"$$ &&
16806           mv -f "$cache_file"$$ "$cache_file" ;; #(
16807         *)
16808           mv -f confcache "$cache_file" ;;
16809         esac
16810       fi
16811     fi
16812   else
16813     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16814 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16815   fi
16816 fi
16817 rm -f confcache
16818
16819 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16820 # Let make expand exec_prefix.
16821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16822
16823 DEFS=-DHAVE_CONFIG_H
16824
16825 ac_libobjs=
16826 ac_ltlibobjs=
16827 U=
16828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16829   # 1. Remove the extension, and $U if already installed.
16830   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16831   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16832   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16833   #    will be set to the directory where LIBOBJS objects are built.
16834   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16835   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16836 done
16837 LIBOBJS=$ac_libobjs
16838
16839 LTLIBOBJS=$ac_ltlibobjs
16840
16841
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16843 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16844    if test -n "$am_sleep_pid"; then
16845      # Hide warnings about reused PIDs.
16846      wait $am_sleep_pid 2>/dev/null
16847    fi
16848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16849 $as_echo "done" >&6; }
16850  if test -n "$EXEEXT"; then
16851   am__EXEEXT_TRUE=
16852   am__EXEEXT_FALSE='#'
16853 else
16854   am__EXEEXT_TRUE='#'
16855   am__EXEEXT_FALSE=
16856 fi
16857
16858 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16859   as_fn_error $? "conditional \"AMDEP\" was never defined.
16860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16861 fi
16862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16863   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16865 fi
16866 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16867   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16869 fi
16870 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16871   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16873 fi
16874 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16875   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16877 fi
16878 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
16879   as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
16880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16881 fi
16882 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16883   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16885 fi
16886 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
16887   as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
16888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16889 fi
16890 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16891   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16893 fi
16894 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16895   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16897 fi
16898 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16899   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16901 fi
16902 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16903   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16905 fi
16906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16907   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16911 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16912    if test -n "$am_sleep_pid"; then
16913      # Hide warnings about reused PIDs.
16914      wait $am_sleep_pid 2>/dev/null
16915    fi
16916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16917 $as_echo "done" >&6; }
16918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16919   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16921 fi
16922 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16923   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16925 fi
16926 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16927   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16929 fi
16930 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16931   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16933 fi
16934 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16935   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16937 fi
16938 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16939   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16941 fi
16942 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16943   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16945 fi
16946 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16947   as_fn_error $? "conditional \"SQLITE3\" was never defined.
16948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16949 fi
16950 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16951   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16953 fi
16954 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16955   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16957 fi
16958 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16959   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16961 fi
16962 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
16963   as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
16964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16965 fi
16966 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
16967   as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
16968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16969 fi
16970 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16971   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16973 fi
16974 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16975   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16977 fi
16978 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16979   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16981 fi
16982 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16983   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16985 fi
16986 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16987   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16989 fi
16990 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16991   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16993 fi
16994 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
16995   as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
16996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16997 fi
16998 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
16999   as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17001 fi
17002 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17003   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17005 fi
17006 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17007   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17009 fi
17010 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17011   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17013 fi
17014 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17015   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17017 fi
17018 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17019   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17021 fi
17022 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17023   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17025 fi
17026 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17027   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17029 fi
17030
17031 : "${CONFIG_STATUS=./config.status}"
17032 ac_write_fail=0
17033 ac_clean_files_save=$ac_clean_files
17034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17037 as_write_fail=0
17038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17039 #! $SHELL
17040 # Generated by $as_me.
17041 # Run this file to recreate the current configuration.
17042 # Compiler output produced by configure, useful for debugging
17043 # configure, is in config.log if it exists.
17044
17045 debug=false
17046 ac_cs_recheck=false
17047 ac_cs_silent=false
17048
17049 SHELL=\${CONFIG_SHELL-$SHELL}
17050 export SHELL
17051 _ASEOF
17052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17053 ## -------------------- ##
17054 ## M4sh Initialization. ##
17055 ## -------------------- ##
17056
17057 # Be more Bourne compatible
17058 DUALCASE=1; export DUALCASE # for MKS sh
17059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17060   emulate sh
17061   NULLCMD=:
17062   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17063   # is contrary to our usage.  Disable this feature.
17064   alias -g '${1+"$@"}'='"$@"'
17065   setopt NO_GLOB_SUBST
17066 else
17067   case `(set -o) 2>/dev/null` in #(
17068   *posix*) :
17069     set -o posix ;; #(
17070   *) :
17071      ;;
17072 esac
17073 fi
17074
17075
17076 as_nl='
17077 '
17078 export as_nl
17079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17080 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17083 # Prefer a ksh shell builtin over an external printf program on Solaris,
17084 # but without wasting forks for bash or zsh.
17085 if test -z "$BASH_VERSION$ZSH_VERSION" \
17086     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17087   as_echo='print -r --'
17088   as_echo_n='print -rn --'
17089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17090   as_echo='printf %s\n'
17091   as_echo_n='printf %s'
17092 else
17093   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17094     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17095     as_echo_n='/usr/ucb/echo -n'
17096   else
17097     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17098     as_echo_n_body='eval
17099       arg=$1;
17100       case $arg in #(
17101       *"$as_nl"*)
17102         expr "X$arg" : "X\\(.*\\)$as_nl";
17103         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17104       esac;
17105       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17106     '
17107     export as_echo_n_body
17108     as_echo_n='sh -c $as_echo_n_body as_echo'
17109   fi
17110   export as_echo_body
17111   as_echo='sh -c $as_echo_body as_echo'
17112 fi
17113
17114 # The user is always right.
17115 if test "${PATH_SEPARATOR+set}" != set; then
17116   PATH_SEPARATOR=:
17117   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17118     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17119       PATH_SEPARATOR=';'
17120   }
17121 fi
17122
17123
17124 # IFS
17125 # We need space, tab and new line, in precisely that order.  Quoting is
17126 # there to prevent editors from complaining about space-tab.
17127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17128 # splitting by setting IFS to empty value.)
17129 IFS=" ""        $as_nl"
17130
17131 # Find who we are.  Look in the path if we contain no directory separator.
17132 as_myself=
17133 case $0 in #((
17134   *[\\/]* ) as_myself=$0 ;;
17135   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17136 for as_dir in $PATH
17137 do
17138   IFS=$as_save_IFS
17139   test -z "$as_dir" && as_dir=.
17140     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17141   done
17142 IFS=$as_save_IFS
17143
17144      ;;
17145 esac
17146 # We did not find ourselves, most probably we were run as `sh COMMAND'
17147 # in which case we are not to be found in the path.
17148 if test "x$as_myself" = x; then
17149   as_myself=$0
17150 fi
17151 if test ! -f "$as_myself"; then
17152   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17153   exit 1
17154 fi
17155
17156 # Unset variables that we do not need and which cause bugs (e.g. in
17157 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17158 # suppresses any "Segmentation fault" message there.  '((' could
17159 # trigger a bug in pdksh 5.2.14.
17160 for as_var in BASH_ENV ENV MAIL MAILPATH
17161 do eval test x\${$as_var+set} = xset \
17162   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17163 done
17164 PS1='$ '
17165 PS2='> '
17166 PS4='+ '
17167
17168 # NLS nuisances.
17169 LC_ALL=C
17170 export LC_ALL
17171 LANGUAGE=C
17172 export LANGUAGE
17173
17174 # CDPATH.
17175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17176
17177
17178 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17179 # ----------------------------------------
17180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17182 # script with STATUS, using 1 if that was 0.
17183 as_fn_error ()
17184 {
17185   as_status=$1; test $as_status -eq 0 && as_status=1
17186   if test "$4"; then
17187     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17188     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17189   fi
17190   $as_echo "$as_me: error: $2" >&2
17191   as_fn_exit $as_status
17192 } # as_fn_error
17193
17194
17195 # as_fn_set_status STATUS
17196 # -----------------------
17197 # Set $? to STATUS, without forking.
17198 as_fn_set_status ()
17199 {
17200   return $1
17201 } # as_fn_set_status
17202
17203 # as_fn_exit STATUS
17204 # -----------------
17205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17206 as_fn_exit ()
17207 {
17208   set +e
17209   as_fn_set_status $1
17210   exit $1
17211 } # as_fn_exit
17212
17213 # as_fn_unset VAR
17214 # ---------------
17215 # Portably unset VAR.
17216 as_fn_unset ()
17217 {
17218   { eval $1=; unset $1;}
17219 }
17220 as_unset=as_fn_unset
17221 # as_fn_append VAR VALUE
17222 # ----------------------
17223 # Append the text in VALUE to the end of the definition contained in VAR. Take
17224 # advantage of any shell optimizations that allow amortized linear growth over
17225 # repeated appends, instead of the typical quadratic growth present in naive
17226 # implementations.
17227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17228   eval 'as_fn_append ()
17229   {
17230     eval $1+=\$2
17231   }'
17232 else
17233   as_fn_append ()
17234   {
17235     eval $1=\$$1\$2
17236   }
17237 fi # as_fn_append
17238
17239 # as_fn_arith ARG...
17240 # ------------------
17241 # Perform arithmetic evaluation on the ARGs, and store the result in the
17242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17243 # must be portable across $(()) and expr.
17244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17245   eval 'as_fn_arith ()
17246   {
17247     as_val=$(( $* ))
17248   }'
17249 else
17250   as_fn_arith ()
17251   {
17252     as_val=`expr "$@" || test $? -eq 1`
17253   }
17254 fi # as_fn_arith
17255
17256
17257 if expr a : '\(a\)' >/dev/null 2>&1 &&
17258    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17259   as_expr=expr
17260 else
17261   as_expr=false
17262 fi
17263
17264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17265   as_basename=basename
17266 else
17267   as_basename=false
17268 fi
17269
17270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17271   as_dirname=dirname
17272 else
17273   as_dirname=false
17274 fi
17275
17276 as_me=`$as_basename -- "$0" ||
17277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17278          X"$0" : 'X\(//\)$' \| \
17279          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17280 $as_echo X/"$0" |
17281     sed '/^.*\/\([^/][^/]*\)\/*$/{
17282             s//\1/
17283             q
17284           }
17285           /^X\/\(\/\/\)$/{
17286             s//\1/
17287             q
17288           }
17289           /^X\/\(\/\).*/{
17290             s//\1/
17291             q
17292           }
17293           s/.*/./; q'`
17294
17295 # Avoid depending upon Character Ranges.
17296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17299 as_cr_digits='0123456789'
17300 as_cr_alnum=$as_cr_Letters$as_cr_digits
17301
17302 ECHO_C= ECHO_N= ECHO_T=
17303 case `echo -n x` in #(((((
17304 -n*)
17305   case `echo 'xy\c'` in
17306   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17307   xy)  ECHO_C='\c';;
17308   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17309        ECHO_T=' ';;
17310   esac;;
17311 *)
17312   ECHO_N='-n';;
17313 esac
17314
17315 rm -f conf$$ conf$$.exe conf$$.file
17316 if test -d conf$$.dir; then
17317   rm -f conf$$.dir/conf$$.file
17318 else
17319   rm -f conf$$.dir
17320   mkdir conf$$.dir 2>/dev/null
17321 fi
17322 if (echo >conf$$.file) 2>/dev/null; then
17323   if ln -s conf$$.file conf$$ 2>/dev/null; then
17324     as_ln_s='ln -s'
17325     # ... but there are two gotchas:
17326     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17327     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17328     # In both cases, we have to default to `cp -pR'.
17329     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17330       as_ln_s='cp -pR'
17331   elif ln conf$$.file conf$$ 2>/dev/null; then
17332     as_ln_s=ln
17333   else
17334     as_ln_s='cp -pR'
17335   fi
17336 else
17337   as_ln_s='cp -pR'
17338 fi
17339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17340 rmdir conf$$.dir 2>/dev/null
17341
17342
17343 # as_fn_mkdir_p
17344 # -------------
17345 # Create "$as_dir" as a directory, including parents if necessary.
17346 as_fn_mkdir_p ()
17347 {
17348
17349   case $as_dir in #(
17350   -*) as_dir=./$as_dir;;
17351   esac
17352   test -d "$as_dir" || eval $as_mkdir_p || {
17353     as_dirs=
17354     while :; do
17355       case $as_dir in #(
17356       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17357       *) as_qdir=$as_dir;;
17358       esac
17359       as_dirs="'$as_qdir' $as_dirs"
17360       as_dir=`$as_dirname -- "$as_dir" ||
17361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362          X"$as_dir" : 'X\(//\)[^/]' \| \
17363          X"$as_dir" : 'X\(//\)$' \| \
17364          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17365 $as_echo X"$as_dir" |
17366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17367             s//\1/
17368             q
17369           }
17370           /^X\(\/\/\)[^/].*/{
17371             s//\1/
17372             q
17373           }
17374           /^X\(\/\/\)$/{
17375             s//\1/
17376             q
17377           }
17378           /^X\(\/\).*/{
17379             s//\1/
17380             q
17381           }
17382           s/.*/./; q'`
17383       test -d "$as_dir" && break
17384     done
17385     test -z "$as_dirs" || eval "mkdir $as_dirs"
17386   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17387
17388
17389 } # as_fn_mkdir_p
17390 if mkdir -p . 2>/dev/null; then
17391   as_mkdir_p='mkdir -p "$as_dir"'
17392 else
17393   test -d ./-p && rmdir ./-p
17394   as_mkdir_p=false
17395 fi
17396
17397
17398 # as_fn_executable_p FILE
17399 # -----------------------
17400 # Test if FILE is an executable regular file.
17401 as_fn_executable_p ()
17402 {
17403   test -f "$1" && test -x "$1"
17404 } # as_fn_executable_p
17405 as_test_x='test -x'
17406 as_executable_p=as_fn_executable_p
17407
17408 # Sed expression to map a string onto a valid CPP name.
17409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17410
17411 # Sed expression to map a string onto a valid variable name.
17412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17413
17414
17415 exec 6>&1
17416 ## ----------------------------------- ##
17417 ## Main body of $CONFIG_STATUS script. ##
17418 ## ----------------------------------- ##
17419 _ASEOF
17420 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17421
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 # Save the log message, to keep $0 and so on meaningful, and to
17424 # report actual input values of CONFIG_FILES etc. instead of their
17425 # values after options handling.
17426 ac_log="
17427 This file was extended by gnupg $as_me 2.3.5, which was
17428 generated by GNU Autoconf 2.69.  Invocation command line was
17429
17430   CONFIG_FILES    = $CONFIG_FILES
17431   CONFIG_HEADERS  = $CONFIG_HEADERS
17432   CONFIG_LINKS    = $CONFIG_LINKS
17433   CONFIG_COMMANDS = $CONFIG_COMMANDS
17434   $ $0 $@
17435
17436 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17437 "
17438
17439 _ACEOF
17440
17441 case $ac_config_files in *"
17442 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17443 esac
17444
17445 case $ac_config_headers in *"
17446 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17447 esac
17448
17449
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 # Files that config.status was made for.
17452 config_files="$ac_config_files"
17453 config_headers="$ac_config_headers"
17454 config_commands="$ac_config_commands"
17455
17456 _ACEOF
17457
17458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17459 ac_cs_usage="\
17460 \`$as_me' instantiates files and other configuration actions
17461 from templates according to the current configuration.  Unless the files
17462 and actions are specified as TAGs, all are instantiated by default.
17463
17464 Usage: $0 [OPTION]... [TAG]...
17465
17466   -h, --help       print this help, then exit
17467   -V, --version    print version number and configuration settings, then exit
17468       --config     print configuration, then exit
17469   -q, --quiet, --silent
17470                    do not print progress messages
17471   -d, --debug      don't remove temporary files
17472       --recheck    update $as_me by reconfiguring in the same conditions
17473       --file=FILE[:TEMPLATE]
17474                    instantiate the configuration file FILE
17475       --header=FILE[:TEMPLATE]
17476                    instantiate the configuration header FILE
17477
17478 Configuration files:
17479 $config_files
17480
17481 Configuration headers:
17482 $config_headers
17483
17484 Configuration commands:
17485 $config_commands
17486
17487 Report bugs to <https://bugs.gnupg.org>."
17488
17489 _ACEOF
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17492 ac_cs_version="\\
17493 gnupg config.status 2.3.5
17494 configured by $0, generated by GNU Autoconf 2.69,
17495   with options \\"\$ac_cs_config\\"
17496
17497 Copyright (C) 2012 Free Software Foundation, Inc.
17498 This config.status script is free software; the Free Software Foundation
17499 gives unlimited permission to copy, distribute and modify it."
17500
17501 ac_pwd='$ac_pwd'
17502 srcdir='$srcdir'
17503 INSTALL='$INSTALL'
17504 MKDIR_P='$MKDIR_P'
17505 AWK='$AWK'
17506 test -n "\$AWK" || AWK=awk
17507 _ACEOF
17508
17509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17510 # The default lists apply if the user does not specify any file.
17511 ac_need_defaults=:
17512 while test $# != 0
17513 do
17514   case $1 in
17515   --*=?*)
17516     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17517     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17518     ac_shift=:
17519     ;;
17520   --*=)
17521     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17522     ac_optarg=
17523     ac_shift=:
17524     ;;
17525   *)
17526     ac_option=$1
17527     ac_optarg=$2
17528     ac_shift=shift
17529     ;;
17530   esac
17531
17532   case $ac_option in
17533   # Handling of the options.
17534   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17535     ac_cs_recheck=: ;;
17536   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17537     $as_echo "$ac_cs_version"; exit ;;
17538   --config | --confi | --conf | --con | --co | --c )
17539     $as_echo "$ac_cs_config"; exit ;;
17540   --debug | --debu | --deb | --de | --d | -d )
17541     debug=: ;;
17542   --file | --fil | --fi | --f )
17543     $ac_shift
17544     case $ac_optarg in
17545     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17546     '') as_fn_error $? "missing file argument" ;;
17547     esac
17548     as_fn_append CONFIG_FILES " '$ac_optarg'"
17549     ac_need_defaults=false;;
17550   --header | --heade | --head | --hea )
17551     $ac_shift
17552     case $ac_optarg in
17553     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17554     esac
17555     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17556     ac_need_defaults=false;;
17557   --he | --h)
17558     # Conflict between --help and --header
17559     as_fn_error $? "ambiguous option: \`$1'
17560 Try \`$0 --help' for more information.";;
17561   --help | --hel | -h )
17562     $as_echo "$ac_cs_usage"; exit ;;
17563   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17564   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17565     ac_cs_silent=: ;;
17566
17567   # This is an error.
17568   -*) as_fn_error $? "unrecognized option: \`$1'
17569 Try \`$0 --help' for more information." ;;
17570
17571   *) as_fn_append ac_config_targets " $1"
17572      ac_need_defaults=false ;;
17573
17574   esac
17575   shift
17576 done
17577
17578 ac_configure_extra_args=
17579
17580 if $ac_cs_silent; then
17581   exec 6>/dev/null
17582   ac_configure_extra_args="$ac_configure_extra_args --silent"
17583 fi
17584
17585 _ACEOF
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 if \$ac_cs_recheck; then
17588   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17589   shift
17590   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17591   CONFIG_SHELL='$SHELL'
17592   export CONFIG_SHELL
17593   exec "\$@"
17594 fi
17595
17596 _ACEOF
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598 exec 5>>config.log
17599 {
17600   echo
17601   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17602 ## Running $as_me. ##
17603 _ASBOX
17604   $as_echo "$ac_log"
17605 } >&5
17606
17607 _ACEOF
17608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17609 #
17610 # INIT-COMMANDS
17611 #
17612 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17613 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17614     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17615     # from automake < 1.5.
17616     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17617     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17618     LINGUAS="${LINGUAS-%UNSET%}"
17619
17620
17621 _ACEOF
17622
17623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17624
17625 # Handling of arguments.
17626 for ac_config_target in $ac_config_targets
17627 do
17628   case $ac_config_target in
17629     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17630     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17631     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17632     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17633     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17634     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17635     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17636     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17637     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17638     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17639     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17640     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17641     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17642     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17643     "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17644     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17645     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17646     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17647     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17648     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17649     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17650     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17651     "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17652     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17653     "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17654     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17655     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17656     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17657     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17658     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17659     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17660     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17661     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17662     "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17663
17664   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17665   esac
17666 done
17667
17668
17669 # If the user did not use the arguments to specify the items to instantiate,
17670 # then the envvar interface is used.  Set only those that are not.
17671 # We use the long form for the default assignment because of an extremely
17672 # bizarre bug on SunOS 4.1.3.
17673 if $ac_need_defaults; then
17674   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17675   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17676   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17677 fi
17678
17679 # Have a temporary directory for convenience.  Make it in the build tree
17680 # simply because there is no reason against having it here, and in addition,
17681 # creating and moving files from /tmp can sometimes cause problems.
17682 # Hook for its removal unless debugging.
17683 # Note that there is a small window in which the directory will not be cleaned:
17684 # after its creation but before its name has been assigned to `$tmp'.
17685 $debug ||
17686 {
17687   tmp= ac_tmp=
17688   trap 'exit_status=$?
17689   : "${ac_tmp:=$tmp}"
17690   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17691 ' 0
17692   trap 'as_fn_exit 1' 1 2 13 15
17693 }
17694 # Create a (secure) tmp directory for tmp files.
17695
17696 {
17697   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17698   test -d "$tmp"
17699 }  ||
17700 {
17701   tmp=./conf$$-$RANDOM
17702   (umask 077 && mkdir "$tmp")
17703 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17704 ac_tmp=$tmp
17705
17706 # Set up the scripts for CONFIG_FILES section.
17707 # No need to generate them if there are no CONFIG_FILES.
17708 # This happens for instance with `./config.status config.h'.
17709 if test -n "$CONFIG_FILES"; then
17710
17711
17712 ac_cr=`echo X | tr X '\015'`
17713 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17714 # But we know of no other shell where ac_cr would be empty at this
17715 # point, so we can use a bashism as a fallback.
17716 if test "x$ac_cr" = x; then
17717   eval ac_cr=\$\'\\r\'
17718 fi
17719 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17720 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17721   ac_cs_awk_cr='\\r'
17722 else
17723   ac_cs_awk_cr=$ac_cr
17724 fi
17725
17726 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17727 _ACEOF
17728
17729
17730 {
17731   echo "cat >conf$$subs.awk <<_ACEOF" &&
17732   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17733   echo "_ACEOF"
17734 } >conf$$subs.sh ||
17735   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17736 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17737 ac_delim='%!_!# '
17738 for ac_last_try in false false false false false :; do
17739   . ./conf$$subs.sh ||
17740     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17741
17742   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17743   if test $ac_delim_n = $ac_delim_num; then
17744     break
17745   elif $ac_last_try; then
17746     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17747   else
17748     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17749   fi
17750 done
17751 rm -f conf$$subs.sh
17752
17753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17755 _ACEOF
17756 sed -n '
17757 h
17758 s/^/S["/; s/!.*/"]=/
17759 p
17760 g
17761 s/^[^!]*!//
17762 :repl
17763 t repl
17764 s/'"$ac_delim"'$//
17765 t delim
17766 :nl
17767 h
17768 s/\(.\{148\}\)..*/\1/
17769 t more1
17770 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17771 p
17772 n
17773 b repl
17774 :more1
17775 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17776 p
17777 g
17778 s/.\{148\}//
17779 t nl
17780 :delim
17781 h
17782 s/\(.\{148\}\)..*/\1/
17783 t more2
17784 s/["\\]/\\&/g; s/^/"/; s/$/"/
17785 p
17786 b
17787 :more2
17788 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17789 p
17790 g
17791 s/.\{148\}//
17792 t delim
17793 ' <conf$$subs.awk | sed '
17794 /^[^""]/{
17795   N
17796   s/\n//
17797 }
17798 ' >>$CONFIG_STATUS || ac_write_fail=1
17799 rm -f conf$$subs.awk
17800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17801 _ACAWK
17802 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17803   for (key in S) S_is_set[key] = 1
17804   FS = "\a"
17805
17806 }
17807 {
17808   line = $ 0
17809   nfields = split(line, field, "@")
17810   substed = 0
17811   len = length(field[1])
17812   for (i = 2; i < nfields; i++) {
17813     key = field[i]
17814     keylen = length(key)
17815     if (S_is_set[key]) {
17816       value = S[key]
17817       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17818       len += length(value) + length(field[++i])
17819       substed = 1
17820     } else
17821       len += 1 + keylen
17822   }
17823
17824   print line
17825 }
17826
17827 _ACAWK
17828 _ACEOF
17829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17830 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17831   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17832 else
17833   cat
17834 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17835   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17836 _ACEOF
17837
17838 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17839 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17840 # trailing colons and then remove the whole line if VPATH becomes empty
17841 # (actually we leave an empty line to preserve line numbers).
17842 if test "x$srcdir" = x.; then
17843   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17844 h
17845 s///
17846 s/^/:/
17847 s/[      ]*$/:/
17848 s/:\$(srcdir):/:/g
17849 s/:\${srcdir}:/:/g
17850 s/:@srcdir@:/:/g
17851 s/^:*//
17852 s/:*$//
17853 x
17854 s/\(=[   ]*\).*/\1/
17855 G
17856 s/\n//
17857 s/^[^=]*=[       ]*$//
17858 }'
17859 fi
17860
17861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17862 fi # test -n "$CONFIG_FILES"
17863
17864 # Set up the scripts for CONFIG_HEADERS section.
17865 # No need to generate them if there are no CONFIG_HEADERS.
17866 # This happens for instance with `./config.status Makefile'.
17867 if test -n "$CONFIG_HEADERS"; then
17868 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17869 BEGIN {
17870 _ACEOF
17871
17872 # Transform confdefs.h into an awk script `defines.awk', embedded as
17873 # here-document in config.status, that substitutes the proper values into
17874 # config.h.in to produce config.h.
17875
17876 # Create a delimiter string that does not exist in confdefs.h, to ease
17877 # handling of long lines.
17878 ac_delim='%!_!# '
17879 for ac_last_try in false false :; do
17880   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17881   if test -z "$ac_tt"; then
17882     break
17883   elif $ac_last_try; then
17884     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17885   else
17886     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17887   fi
17888 done
17889
17890 # For the awk script, D is an array of macro values keyed by name,
17891 # likewise P contains macro parameters if any.  Preserve backslash
17892 # newline sequences.
17893
17894 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17895 sed -n '
17896 s/.\{148\}/&'"$ac_delim"'/g
17897 t rset
17898 :rset
17899 s/^[     ]*#[    ]*define[       ][      ]*/ /
17900 t def
17901 d
17902 :def
17903 s/\\$//
17904 t bsnl
17905 s/["\\]/\\&/g
17906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17907 D["\1"]=" \3"/p
17908 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17909 d
17910 :bsnl
17911 s/["\\]/\\&/g
17912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17913 D["\1"]=" \3\\\\\\n"\\/p
17914 t cont
17915 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17916 t cont
17917 d
17918 :cont
17919 n
17920 s/.\{148\}/&'"$ac_delim"'/g
17921 t clear
17922 :clear
17923 s/\\$//
17924 t bsnlc
17925 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17926 d
17927 :bsnlc
17928 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17929 b cont
17930 ' <confdefs.h | sed '
17931 s/'"$ac_delim"'/"\\\
17932 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17933
17934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17935   for (key in D) D_is_set[key] = 1
17936   FS = "\a"
17937 }
17938 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17939   line = \$ 0
17940   split(line, arg, " ")
17941   if (arg[1] == "#") {
17942     defundef = arg[2]
17943     mac1 = arg[3]
17944   } else {
17945     defundef = substr(arg[1], 2)
17946     mac1 = arg[2]
17947   }
17948   split(mac1, mac2, "(") #)
17949   macro = mac2[1]
17950   prefix = substr(line, 1, index(line, defundef) - 1)
17951   if (D_is_set[macro]) {
17952     # Preserve the white space surrounding the "#".
17953     print prefix "define", macro P[macro] D[macro]
17954     next
17955   } else {
17956     # Replace #undef with comments.  This is necessary, for example,
17957     # in the case of _POSIX_SOURCE, which is predefined and required
17958     # on some systems where configure will not decide to define it.
17959     if (defundef == "undef") {
17960       print "/*", prefix defundef, macro, "*/"
17961       next
17962     }
17963   }
17964 }
17965 { print }
17966 _ACAWK
17967 _ACEOF
17968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17970 fi # test -n "$CONFIG_HEADERS"
17971
17972
17973 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17974 shift
17975 for ac_tag
17976 do
17977   case $ac_tag in
17978   :[FHLC]) ac_mode=$ac_tag; continue;;
17979   esac
17980   case $ac_mode$ac_tag in
17981   :[FHL]*:*);;
17982   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17983   :[FH]-) ac_tag=-:-;;
17984   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17985   esac
17986   ac_save_IFS=$IFS
17987   IFS=:
17988   set x $ac_tag
17989   IFS=$ac_save_IFS
17990   shift
17991   ac_file=$1
17992   shift
17993
17994   case $ac_mode in
17995   :L) ac_source=$1;;
17996   :[FH])
17997     ac_file_inputs=
17998     for ac_f
17999     do
18000       case $ac_f in
18001       -) ac_f="$ac_tmp/stdin";;
18002       *) # Look for the file first in the build tree, then in the source tree
18003          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18004          # because $ac_f cannot contain `:'.
18005          test -f "$ac_f" ||
18006            case $ac_f in
18007            [\\/$]*) false;;
18008            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18009            esac ||
18010            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18011       esac
18012       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18013       as_fn_append ac_file_inputs " '$ac_f'"
18014     done
18015
18016     # Let's still pretend it is `configure' which instantiates (i.e., don't
18017     # use $as_me), people would be surprised to read:
18018     #    /* config.h.  Generated by config.status.  */
18019     configure_input='Generated from '`
18020           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18021         `' by configure.'
18022     if test x"$ac_file" != x-; then
18023       configure_input="$ac_file.  $configure_input"
18024       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18025 $as_echo "$as_me: creating $ac_file" >&6;}
18026     fi
18027     # Neutralize special characters interpreted by sed in replacement strings.
18028     case $configure_input in #(
18029     *\&* | *\|* | *\\* )
18030        ac_sed_conf_input=`$as_echo "$configure_input" |
18031        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18032     *) ac_sed_conf_input=$configure_input;;
18033     esac
18034
18035     case $ac_tag in
18036     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18037       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18038     esac
18039     ;;
18040   esac
18041
18042   ac_dir=`$as_dirname -- "$ac_file" ||
18043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18044          X"$ac_file" : 'X\(//\)[^/]' \| \
18045          X"$ac_file" : 'X\(//\)$' \| \
18046          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18047 $as_echo X"$ac_file" |
18048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18049             s//\1/
18050             q
18051           }
18052           /^X\(\/\/\)[^/].*/{
18053             s//\1/
18054             q
18055           }
18056           /^X\(\/\/\)$/{
18057             s//\1/
18058             q
18059           }
18060           /^X\(\/\).*/{
18061             s//\1/
18062             q
18063           }
18064           s/.*/./; q'`
18065   as_dir="$ac_dir"; as_fn_mkdir_p
18066   ac_builddir=.
18067
18068 case "$ac_dir" in
18069 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18070 *)
18071   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18072   # A ".." for each directory in $ac_dir_suffix.
18073   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18074   case $ac_top_builddir_sub in
18075   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18076   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18077   esac ;;
18078 esac
18079 ac_abs_top_builddir=$ac_pwd
18080 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18081 # for backward compatibility:
18082 ac_top_builddir=$ac_top_build_prefix
18083
18084 case $srcdir in
18085   .)  # We are building in place.
18086     ac_srcdir=.
18087     ac_top_srcdir=$ac_top_builddir_sub
18088     ac_abs_top_srcdir=$ac_pwd ;;
18089   [\\/]* | ?:[\\/]* )  # Absolute name.
18090     ac_srcdir=$srcdir$ac_dir_suffix;
18091     ac_top_srcdir=$srcdir
18092     ac_abs_top_srcdir=$srcdir ;;
18093   *) # Relative name.
18094     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18095     ac_top_srcdir=$ac_top_build_prefix$srcdir
18096     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18097 esac
18098 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18099
18100
18101   case $ac_mode in
18102   :F)
18103   #
18104   # CONFIG_FILE
18105   #
18106
18107   case $INSTALL in
18108   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18109   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18110   esac
18111   ac_MKDIR_P=$MKDIR_P
18112   case $MKDIR_P in
18113   [\\/$]* | ?:[\\/]* ) ;;
18114   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18115   esac
18116 _ACEOF
18117
18118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18119 # If the template does not know about datarootdir, expand it.
18120 # FIXME: This hack should be removed a few years after 2.60.
18121 ac_datarootdir_hack=; ac_datarootdir_seen=
18122 ac_sed_dataroot='
18123 /datarootdir/ {
18124   p
18125   q
18126 }
18127 /@datadir@/p
18128 /@docdir@/p
18129 /@infodir@/p
18130 /@localedir@/p
18131 /@mandir@/p'
18132 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18133 *datarootdir*) ac_datarootdir_seen=yes;;
18134 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18135   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18136 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18137 _ACEOF
18138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18139   ac_datarootdir_hack='
18140   s&@datadir@&$datadir&g
18141   s&@docdir@&$docdir&g
18142   s&@infodir@&$infodir&g
18143   s&@localedir@&$localedir&g
18144   s&@mandir@&$mandir&g
18145   s&\\\${datarootdir}&$datarootdir&g' ;;
18146 esac
18147 _ACEOF
18148
18149 # Neutralize VPATH when `$srcdir' = `.'.
18150 # Shell code in configure.ac might set extrasub.
18151 # FIXME: do we really want to maintain this feature?
18152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18153 ac_sed_extra="$ac_vpsub
18154 $extrasub
18155 _ACEOF
18156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18157 :t
18158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18159 s|@configure_input@|$ac_sed_conf_input|;t t
18160 s&@top_builddir@&$ac_top_builddir_sub&;t t
18161 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18162 s&@srcdir@&$ac_srcdir&;t t
18163 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18164 s&@top_srcdir@&$ac_top_srcdir&;t t
18165 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18166 s&@builddir@&$ac_builddir&;t t
18167 s&@abs_builddir@&$ac_abs_builddir&;t t
18168 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18169 s&@INSTALL@&$ac_INSTALL&;t t
18170 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18171 $ac_datarootdir_hack
18172 "
18173 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18174   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18175
18176 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18177   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18178   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18179       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18181 which seems to be undefined.  Please make sure it is defined" >&5
18182 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18183 which seems to be undefined.  Please make sure it is defined" >&2;}
18184
18185   rm -f "$ac_tmp/stdin"
18186   case $ac_file in
18187   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18188   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18189   esac \
18190   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18191  ;;
18192   :H)
18193   #
18194   # CONFIG_HEADER
18195   #
18196   if test x"$ac_file" != x-; then
18197     {
18198       $as_echo "/* $configure_input  */" \
18199       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18200     } >"$ac_tmp/config.h" \
18201       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18202     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18203       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18204 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18205     else
18206       rm -f "$ac_file"
18207       mv "$ac_tmp/config.h" "$ac_file" \
18208         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18209     fi
18210   else
18211     $as_echo "/* $configure_input  */" \
18212       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18213       || as_fn_error $? "could not create -" "$LINENO" 5
18214   fi
18215 # Compute "$ac_file"'s index in $config_headers.
18216 _am_arg="$ac_file"
18217 _am_stamp_count=1
18218 for _am_header in $config_headers :; do
18219   case $_am_header in
18220     $_am_arg | $_am_arg:* )
18221       break ;;
18222     * )
18223       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18224   esac
18225 done
18226 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18227 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18228          X"$_am_arg" : 'X\(//\)[^/]' \| \
18229          X"$_am_arg" : 'X\(//\)$' \| \
18230          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18231 $as_echo X"$_am_arg" |
18232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18233             s//\1/
18234             q
18235           }
18236           /^X\(\/\/\)[^/].*/{
18237             s//\1/
18238             q
18239           }
18240           /^X\(\/\/\)$/{
18241             s//\1/
18242             q
18243           }
18244           /^X\(\/\).*/{
18245             s//\1/
18246             q
18247           }
18248           s/.*/./; q'`/stamp-h$_am_stamp_count
18249  ;;
18250
18251   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18252 $as_echo "$as_me: executing $ac_file commands" >&6;}
18253  ;;
18254   esac
18255
18256
18257   case $ac_file$ac_mode in
18258     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18259   # Older Autoconf quotes --file arguments for eval, but not when files
18260   # are listed without --file.  Let's play safe and only enable the eval
18261   # if we detect the quoting.
18262   # TODO: see whether this extra hack can be removed once we start
18263   # requiring Autoconf 2.70 or later.
18264   case $CONFIG_FILES in #(
18265   *\'*) :
18266     eval set x "$CONFIG_FILES" ;; #(
18267   *) :
18268     set x $CONFIG_FILES ;; #(
18269   *) :
18270      ;;
18271 esac
18272   shift
18273   # Used to flag and report bootstrapping failures.
18274   am_rc=0
18275   for am_mf
18276   do
18277     # Strip MF so we end up with the name of the file.
18278     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18279     # Check whether this is an Automake generated Makefile which includes
18280     # dependency-tracking related rules and includes.
18281     # Grep'ing the whole file directly is not great: AIX grep has a line
18282     # limit of 2048, but all sed's we know have understand at least 4000.
18283     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18284       || continue
18285     am_dirpart=`$as_dirname -- "$am_mf" ||
18286 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18287          X"$am_mf" : 'X\(//\)[^/]' \| \
18288          X"$am_mf" : 'X\(//\)$' \| \
18289          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18290 $as_echo X"$am_mf" |
18291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18292             s//\1/
18293             q
18294           }
18295           /^X\(\/\/\)[^/].*/{
18296             s//\1/
18297             q
18298           }
18299           /^X\(\/\/\)$/{
18300             s//\1/
18301             q
18302           }
18303           /^X\(\/\).*/{
18304             s//\1/
18305             q
18306           }
18307           s/.*/./; q'`
18308     am_filepart=`$as_basename -- "$am_mf" ||
18309 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18310          X"$am_mf" : 'X\(//\)$' \| \
18311          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18312 $as_echo X/"$am_mf" |
18313     sed '/^.*\/\([^/][^/]*\)\/*$/{
18314             s//\1/
18315             q
18316           }
18317           /^X\/\(\/\/\)$/{
18318             s//\1/
18319             q
18320           }
18321           /^X\/\(\/\).*/{
18322             s//\1/
18323             q
18324           }
18325           s/.*/./; q'`
18326     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18327       && sed -e '/# am--include-marker/d' "$am_filepart" \
18328         | $MAKE -f - am--depfiles" >&5
18329    (cd "$am_dirpart" \
18330       && sed -e '/# am--include-marker/d' "$am_filepart" \
18331         | $MAKE -f - am--depfiles) >&5 2>&5
18332    ac_status=$?
18333    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334    (exit $ac_status); } || am_rc=$?
18335   done
18336   if test $am_rc -ne 0; then
18337     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18339 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18340     for automatic dependency tracking.  If GNU make was not used, consider
18341     re-running the configure script with MAKE=\"gmake\" (or whatever is
18342     necessary).  You can also try re-running configure with the
18343     '--disable-dependency-tracking' option to at least be able to build
18344     the package (albeit without support for automatic dependency tracking).
18345 See \`config.log' for more details" "$LINENO" 5; }
18346   fi
18347   { am_dirpart=; unset am_dirpart;}
18348   { am_filepart=; unset am_filepart;}
18349   { am_mf=; unset am_mf;}
18350   { am_rc=; unset am_rc;}
18351   rm -f conftest-deps.mk
18352 }
18353  ;;
18354     "po-directories":C)
18355     for ac_file in $CONFIG_FILES; do
18356       # Support "outfile[:infile[:infile...]]"
18357       case "$ac_file" in
18358         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18359       esac
18360       # PO directories have a Makefile.in generated from Makefile.in.in.
18361       case "$ac_file" in */Makefile.in)
18362         # Adjust a relative srcdir.
18363         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18364         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18365         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18366         # In autoconf-2.13 it is called $ac_given_srcdir.
18367         # In autoconf-2.50 it is called $srcdir.
18368         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18369         case "$ac_given_srcdir" in
18370           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18371           /*) top_srcdir="$ac_given_srcdir" ;;
18372           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18373         esac
18374         # Treat a directory as a PO directory if and only if it has a
18375         # POTFILES.in file. This allows packages to have multiple PO
18376         # directories under different names or in different locations.
18377         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18378           rm -f "$ac_dir/POTFILES"
18379           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18380           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18381           POMAKEFILEDEPS="POTFILES.in"
18382           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18383           # on $ac_dir but don't depend on user-specified configuration
18384           # parameters.
18385           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18386             # The LINGUAS file contains the set of available languages.
18387             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18388               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18389             fi
18390             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18391             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18392             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18393             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18394           else
18395             # The set of available languages was given in configure.in.
18396             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18397             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18398           fi
18399           # Compute POFILES
18400           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18401           # Compute UPDATEPOFILES
18402           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18403           # Compute DUMMYPOFILES
18404           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18405           # Compute GMOFILES
18406           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18407           case "$ac_given_srcdir" in
18408             .) srcdirpre= ;;
18409             *) srcdirpre='$(srcdir)/' ;;
18410           esac
18411           POFILES=
18412           UPDATEPOFILES=
18413           DUMMYPOFILES=
18414           GMOFILES=
18415           for lang in $ALL_LINGUAS; do
18416             POFILES="$POFILES $srcdirpre$lang.po"
18417             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18418             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18419             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18420           done
18421           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18422           # environment variable.
18423           INST_LINGUAS=
18424           if test -n "$ALL_LINGUAS"; then
18425             for presentlang in $ALL_LINGUAS; do
18426               useit=no
18427               if test "%UNSET%" != "$LINGUAS"; then
18428                 desiredlanguages="$LINGUAS"
18429               else
18430                 desiredlanguages="$ALL_LINGUAS"
18431               fi
18432               for desiredlang in $desiredlanguages; do
18433                 # Use the presentlang catalog if desiredlang is
18434                 #   a. equal to presentlang, or
18435                 #   b. a variant of presentlang (because in this case,
18436                 #      presentlang can be used as a fallback for messages
18437                 #      which are not translated in the desiredlang catalog).
18438                 case "$desiredlang" in
18439                   "$presentlang"*) useit=yes;;
18440                 esac
18441               done
18442               if test $useit = yes; then
18443                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18444               fi
18445             done
18446           fi
18447           CATALOGS=
18448           if test -n "$INST_LINGUAS"; then
18449             for lang in $INST_LINGUAS; do
18450               CATALOGS="$CATALOGS $lang.gmo"
18451             done
18452           fi
18453           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18454           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"
18455           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18456             if test -f "$f"; then
18457               case "$f" in
18458                 *.orig | *.bak | *~) ;;
18459                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18460               esac
18461             fi
18462           done
18463         fi
18464         ;;
18465       esac
18466     done ;;
18467
18468   esac
18469 done # for ac_tag
18470
18471
18472 as_fn_exit 0
18473 _ACEOF
18474 ac_clean_files=$ac_clean_files_save
18475
18476 test $ac_write_fail = 0 ||
18477   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18478
18479
18480 # configure is writing to config.log, and then calls config.status.
18481 # config.status does its own redirection, appending to config.log.
18482 # Unfortunately, on DOS this fails, as config.log is still kept open
18483 # by configure, so config.status won't be able to write to it; its
18484 # output is simply discarded.  So we exec the FD to /dev/null,
18485 # effectively closing config.log, so it can be properly (re)opened and
18486 # appended to by config.status.  When coming back to configure, we
18487 # need to make the FD available again.
18488 if test "$no_create" != yes; then
18489   ac_cs_success=:
18490   ac_config_status_args=
18491   test "$silent" = yes &&
18492     ac_config_status_args="$ac_config_status_args --quiet"
18493   exec 5>/dev/null
18494   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18495   exec 5>>config.log
18496   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18497   # would make configure fail if this is the last instruction.
18498   $ac_cs_success || as_fn_exit 1
18499 fi
18500 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18501   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18502 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18503 fi
18504
18505
18506 show_tss_type=
18507 if test "$build_tpm2d" = "yes"; then
18508   show_tss_type="($have_libtss)"
18509 fi
18510
18511 echo "
18512         GnuPG v${VERSION} has been configured as follows:
18513
18514         Revision:  a4b25bcfe  (42162)
18515         Platform:  $PRINTABLE_OS_NAME ($host)
18516
18517         OpenPGP:   $build_gpg
18518         S/MIME:    $build_gpgsm
18519         Agent:     $build_agent
18520         Smartcard: $build_scdaemon $build_scdaemon_extra
18521         TPM:       $build_tpm2d $show_tss_type
18522         G13:       $build_g13
18523         Dirmngr:   $build_dirmngr
18524         Keyboxd:   $build_keyboxd
18525         Gpgtar:    $build_gpgtar
18526         WKS tools: $build_wks_tools
18527
18528         Protect tool:       $show_gnupg_protect_tool_pgm
18529         LDAP wrapper:       $show_gnupg_dirmngr_ldap_pgm
18530         Default agent:      $show_gnupg_agent_pgm
18531         Default pinentry:   $show_gnupg_pinentry_pgm
18532         Default scdaemon:   $show_gnupg_scdaemon_pgm
18533         Default keyboxd:    $show_gnupg_keyboxd_pgm
18534         Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18535         Default dirmngr:    $show_gnupg_dirmngr_pgm
18536
18537         Dirmngr auto start:  $dirmngr_auto_start
18538         Readline support:    $gnupg_cv_have_readline
18539         LDAP support:        $gnupg_have_ldap
18540         TLS support:         $use_tls_library
18541         TOFU support:        $use_tofu
18542         Tor support:         $show_tor_support
18543 "
18544 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18545 cat <<G10EOF
18546         Warning: TPM support is compiled in but no software TPM
18547                  for testing was discovered. TPM tests are disabled
18548
18549 G10EOF
18550 fi
18551 if test "x${gpg_config_script_warn}" != x; then
18552 cat <<G10EOF
18553         Warning: Mismatches between the target platform and the
18554                  to be used libraries have been detected for:
18555                   ${gpg_config_script_warn}
18556                  Please check above for more warning messages.
18557
18558 G10EOF
18559 fi
18560 if test "${build_gpg}" != "yes"; then
18561 cat <<G10EOF
18562         Warning: The component "gpg" is used by other components as
18563                  well as for the test suite.  You have disabled
18564                  this component and thus other things won't work.
18565
18566 G10EOF
18567 fi
18568 if test "${run_tests}" != "yes"; then
18569 cat <<G10EOF
18570         Warning: The use of the test suite has been disabled!
18571                  This is in almost all cases a bad idea.  Take care.
18572
18573 G10EOF
18574 fi