chiark / gitweb /
agent: Avoid tight timer tick when possible.
[gnupg2.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.1.17.
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.1.17'
584 PACKAGE_STRING='gnupg 2.1.17'
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 BUILD_WKS_TOOLS_FALSE
643 BUILD_WKS_TOOLS_TRUE
644 BUILD_GPGTAR_FALSE
645 BUILD_GPGTAR_TRUE
646 BUILD_SYMCRYPTRUN_FALSE
647 BUILD_SYMCRYPTRUN_TRUE
648 BUILD_DOC_FALSE
649 BUILD_DOC_TRUE
650 BUILD_TOOLS_FALSE
651 BUILD_TOOLS_TRUE
652 BUILD_DIRMNGR_FALSE
653 BUILD_DIRMNGR_TRUE
654 BUILD_G13_FALSE
655 BUILD_G13_TRUE
656 BUILD_SCDAEMON_FALSE
657 BUILD_SCDAEMON_TRUE
658 BUILD_AGENT_FALSE
659 BUILD_AGENT_TRUE
660 BUILD_GPGSM_FALSE
661 BUILD_GPGSM_TRUE
662 BUILD_GPG_FALSE
663 BUILD_GPG_TRUE
664 USE_C99_CFLAGS
665 W32SOCKLIBS
666 NETLIBS
667 CROSS_COMPILING_FALSE
668 CROSS_COMPILING_TRUE
669 LIBREADLINE
670 ZLIBS
671 ENABLE_BZIP2_SUPPORT_FALSE
672 ENABLE_BZIP2_SUPPORT_TRUE
673 DISABLE_REGEX_FALSE
674 DISABLE_REGEX_TRUE
675 SYS_SOCKET_H
676 BUILD_INCLUDED_LIBINTL
677 USE_INCLUDED_LIBINTL
678 POSUB
679 LTLIBINTL
680 LIBINTL
681 INTLLIBS
682 INTL_MACOSX_LIBS
683 XGETTEXT_EXTRA_OPTIONS
684 MSGMERGE
685 XGETTEXT_015
686 XGETTEXT
687 GMSGFMT_015
688 MSGFMT_015
689 GMSGFMT
690 MSGFMT
691 GETTEXT_MACRO_VERSION
692 USE_NLS
693 LTLIBICONV
694 LIBICONV
695 SENDMAIL
696 USE_LDAPWRAPPER_FALSE
697 USE_LDAPWRAPPER_TRUE
698 USE_LDAP_FALSE
699 USE_LDAP_TRUE
700 LBER_LIBS
701 LDAP_CPPFLAGS
702 LDAPLIBS
703 GPGKEYS_LDAP
704 DNSLIBS
705 LIBGNUTLS_LIBS
706 LIBGNUTLS_CFLAGS
707 NTBTLS_LIBS
708 NTBTLS_CFLAGS
709 NTBTLS_CONFIG
710 NPTH_LIBS
711 NPTH_CFLAGS
712 NPTH_CONFIG
713 SHRED
714 LIBUTIL_LIBS
715 FUSERMOUNT
716 ENCFS
717 SQLITE3_FALSE
718 SQLITE3_TRUE
719 SQLITE3_LIBS
720 SQLITE3_CFLAGS
721 DL_LIBS
722 LIBUSB_CPPFLAGS
723 LIBUSB_LIBS
724 KSBA_LIBS
725 KSBA_CFLAGS
726 KSBA_CONFIG
727 LIBASSUAN_LIBS
728 LIBASSUAN_CFLAGS
729 LIBASSUAN_CONFIG
730 LIBGCRYPT_LIBS
731 LIBGCRYPT_CFLAGS
732 LIBGCRYPT_CONFIG
733 GPG_ERROR_MT_LIBS
734 GPG_ERROR_MT_CFLAGS
735 GPG_ERROR_LIBS
736 GPG_ERROR_CFLAGS
737 GPG_ERROR_CONFIG
738 HAVE_ANDROID_SYSTEM_FALSE
739 HAVE_ANDROID_SYSTEM_TRUE
740 HAVE_W32CE_SYSTEM_FALSE
741 HAVE_W32CE_SYSTEM_TRUE
742 HAVE_W32_SYSTEM_FALSE
743 HAVE_W32_SYSTEM_TRUE
744 USE_SIMPLE_GETTEXT_FALSE
745 USE_SIMPLE_GETTEXT_TRUE
746 HAVE_DOSISH_SYSTEM_FALSE
747 HAVE_DOSISH_SYSTEM_TRUE
748 PKG_CONFIG_LIBDIR
749 PKG_CONFIG_PATH
750 PKG_CONFIG
751 CC_FOR_BUILD
752 HAVE_USTAR_FALSE
753 HAVE_USTAR_TRUE
754 TAR
755 WINDRES
756 PERL
757 AR
758 RANLIB
759 LN_S
760 SYSROOT
761 MAINT
762 MAINTAINER_MODE_FALSE
763 MAINTAINER_MODE_TRUE
764 USE_LIBDNS_FALSE
765 USE_LIBDNS_TRUE
766 USE_GPG2_HACK_FALSE
767 USE_GPG2_HACK_TRUE
768 GNUPG_DIRMNGR_LDAP_PGM_FALSE
769 GNUPG_DIRMNGR_LDAP_PGM_TRUE
770 GNUPG_DIRMNGR_LDAP_PGM
771 GNUPG_PROTECT_TOOL_PGM_FALSE
772 GNUPG_PROTECT_TOOL_PGM_TRUE
773 GNUPG_PROTECT_TOOL_PGM
774 GNUPG_DIRMNGR_PGM_FALSE
775 GNUPG_DIRMNGR_PGM_TRUE
776 GNUPG_DIRMNGR_PGM
777 GNUPG_SCDAEMON_PGM_FALSE
778 GNUPG_SCDAEMON_PGM_TRUE
779 GNUPG_SCDAEMON_PGM
780 GNUPG_PINENTRY_PGM_FALSE
781 GNUPG_PINENTRY_PGM_TRUE
782 GNUPG_PINENTRY_PGM
783 GNUPG_AGENT_PGM_FALSE
784 GNUPG_AGENT_PGM_TRUE
785 GNUPG_AGENT_PGM
786 PACKAGE_GT
787 EGREP
788 GREP
789 CPP
790 am__fastdepCC_FALSE
791 am__fastdepCC_TRUE
792 CCDEPMODE
793 am__nodep
794 AMDEPBACKSLASH
795 AMDEP_FALSE
796 AMDEP_TRUE
797 am__quote
798 am__include
799 DEPDIR
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
806 CC
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 AM_BACKSLASH
816 AM_DEFAULT_VERBOSITY
817 AM_DEFAULT_V
818 AM_V
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
824 AWK
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files=''
881 ac_user_opts='
882 enable_option_checking
883 enable_silent_rules
884 enable_dependency_tracking
885 enable_gpg
886 enable_gpgsm
887 enable_scdaemon
888 enable_g13
889 enable_dirmngr
890 enable_tools
891 enable_doc
892 enable_symcryptrun
893 enable_gpgtar
894 enable_wks_tools
895 with_agent_pgm
896 with_pinentry_pgm
897 with_scdaemon_pgm
898 with_dirmngr_pgm
899 with_protect_tool_pgm
900 with_dirmngr_ldap_pgm
901 enable_gpg2_is_gpg
902 enable_selinux_support
903 enable_large_secmem
904 enable_trust_models
905 enable_tofu
906 enable_libdns
907 enable_gpg_rsa
908 enable_gpg_ecdh
909 enable_gpg_ecdsa
910 enable_gpg_eddsa
911 enable_gpg_idea
912 enable_gpg_cast5
913 enable_gpg_blowfish
914 enable_gpg_aes128
915 enable_gpg_aes192
916 enable_gpg_aes256
917 enable_gpg_twofish
918 enable_gpg_camellia128
919 enable_gpg_camellia192
920 enable_gpg_camellia256
921 enable_gpg_md5
922 enable_gpg_rmd160
923 enable_gpg_sha224
924 enable_gpg_sha384
925 enable_gpg_sha512
926 enable_zip
927 enable_bzip2
928 enable_exec
929 enable_photo_viewers
930 with_photo_viewer
931 enable_key_cache
932 with_capabilities
933 enable_card_support
934 enable_ccid_driver
935 enable_dirmngr_auto_start
936 enable_maintainer_mode
937 enable_largefile
938 with_tar
939 with_libgpg_error_prefix
940 with_gpg_error_prefix
941 with_libgcrypt_prefix
942 with_libassuan_prefix
943 with_ksba_prefix
944 enable_sqlite
945 with_npth_prefix
946 enable_ntbtls
947 with_ntbtls_prefix
948 enable_gnutls
949 enable_ldap
950 with_ldap
951 with_mailprog
952 with_gnu_ld
953 enable_rpath
954 with_libiconv_prefix
955 enable_nls
956 with_libintl_prefix
957 enable_endian_check
958 enable_regex
959 with_regex
960 with_zlib
961 with_bzip2
962 with_readline
963 enable_optimization
964 enable_build_timestamp
965 '
966       ac_precious_vars='build_alias
967 host_alias
968 target_alias
969 CC
970 CFLAGS
971 LDFLAGS
972 LIBS
973 CPPFLAGS
974 CPP
975 SYSROOT
976 CC_FOR_BUILD
977 PKG_CONFIG
978 PKG_CONFIG_PATH
979 PKG_CONFIG_LIBDIR
980 SQLITE3_CFLAGS
981 SQLITE3_LIBS
982 LIBGNUTLS_CFLAGS
983 LIBGNUTLS_LIBS'
984
985
986 # Initialize some variables set by options.
987 ac_init_help=
988 ac_init_version=false
989 ac_unrecognized_opts=
990 ac_unrecognized_sep=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
993 cache_file=/dev/null
994 exec_prefix=NONE
995 no_create=
996 no_recursion=
997 prefix=NONE
998 program_prefix=NONE
999 program_suffix=NONE
1000 program_transform_name=s,x,x,
1001 silent=
1002 site=
1003 srcdir=
1004 verbose=
1005 x_includes=NONE
1006 x_libraries=NONE
1007
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 includedir='${prefix}/include'
1023 oldincludedir='/usr/include'
1024 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025 infodir='${datarootdir}/info'
1026 htmldir='${docdir}'
1027 dvidir='${docdir}'
1028 pdfdir='${docdir}'
1029 psdir='${docdir}'
1030 libdir='${exec_prefix}/lib'
1031 localedir='${datarootdir}/locale'
1032 mandir='${datarootdir}/man'
1033
1034 ac_prev=
1035 ac_dashdash=
1036 for ac_option
1037 do
1038   # If the previous option needs an argument, assign it.
1039   if test -n "$ac_prev"; then
1040     eval $ac_prev=\$ac_option
1041     ac_prev=
1042     continue
1043   fi
1044
1045   case $ac_option in
1046   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1047   *=)   ac_optarg= ;;
1048   *)    ac_optarg=yes ;;
1049   esac
1050
1051   # Accept the important Cygnus configure options, so we can diagnose typos.
1052
1053   case $ac_dashdash$ac_option in
1054   --)
1055     ac_dashdash=yes ;;
1056
1057   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1058     ac_prev=bindir ;;
1059   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1060     bindir=$ac_optarg ;;
1061
1062   -build | --build | --buil | --bui | --bu)
1063     ac_prev=build_alias ;;
1064   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1065     build_alias=$ac_optarg ;;
1066
1067   -cache-file | --cache-file | --cache-fil | --cache-fi \
1068   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1069     ac_prev=cache_file ;;
1070   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1071   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1072     cache_file=$ac_optarg ;;
1073
1074   --config-cache | -C)
1075     cache_file=config.cache ;;
1076
1077   -datadir | --datadir | --datadi | --datad)
1078     ac_prev=datadir ;;
1079   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1080     datadir=$ac_optarg ;;
1081
1082   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1083   | --dataroo | --dataro | --datar)
1084     ac_prev=datarootdir ;;
1085   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1086   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1087     datarootdir=$ac_optarg ;;
1088
1089   -disable-* | --disable-*)
1090     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1091     # Reject names that are not valid shell variable names.
1092     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093       as_fn_error $? "invalid feature name: $ac_useropt"
1094     ac_useropt_orig=$ac_useropt
1095     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096     case $ac_user_opts in
1097       *"
1098 "enable_$ac_useropt"
1099 "*) ;;
1100       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101          ac_unrecognized_sep=', ';;
1102     esac
1103     eval enable_$ac_useropt=no ;;
1104
1105   -docdir | --docdir | --docdi | --doc | --do)
1106     ac_prev=docdir ;;
1107   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108     docdir=$ac_optarg ;;
1109
1110   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111     ac_prev=dvidir ;;
1112   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113     dvidir=$ac_optarg ;;
1114
1115   -enable-* | --enable-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid feature name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "enable_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval enable_$ac_useropt=\$ac_optarg ;;
1130
1131   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1132   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1133   | --exec | --exe | --ex)
1134     ac_prev=exec_prefix ;;
1135   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1136   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1137   | --exec=* | --exe=* | --ex=*)
1138     exec_prefix=$ac_optarg ;;
1139
1140   -gas | --gas | --ga | --g)
1141     # Obsolete; use --with-gas.
1142     with_gas=yes ;;
1143
1144   -help | --help | --hel | --he | -h)
1145     ac_init_help=long ;;
1146   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1147     ac_init_help=recursive ;;
1148   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1149     ac_init_help=short ;;
1150
1151   -host | --host | --hos | --ho)
1152     ac_prev=host_alias ;;
1153   -host=* | --host=* | --hos=* | --ho=*)
1154     host_alias=$ac_optarg ;;
1155
1156   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1157     ac_prev=htmldir ;;
1158   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1159   | --ht=*)
1160     htmldir=$ac_optarg ;;
1161
1162   -includedir | --includedir | --includedi | --included | --include \
1163   | --includ | --inclu | --incl | --inc)
1164     ac_prev=includedir ;;
1165   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1166   | --includ=* | --inclu=* | --incl=* | --inc=*)
1167     includedir=$ac_optarg ;;
1168
1169   -infodir | --infodir | --infodi | --infod | --info | --inf)
1170     ac_prev=infodir ;;
1171   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1172     infodir=$ac_optarg ;;
1173
1174   -libdir | --libdir | --libdi | --libd)
1175     ac_prev=libdir ;;
1176   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1177     libdir=$ac_optarg ;;
1178
1179   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1180   | --libexe | --libex | --libe)
1181     ac_prev=libexecdir ;;
1182   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1183   | --libexe=* | --libex=* | --libe=*)
1184     libexecdir=$ac_optarg ;;
1185
1186   -localedir | --localedir | --localedi | --localed | --locale)
1187     ac_prev=localedir ;;
1188   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1189     localedir=$ac_optarg ;;
1190
1191   -localstatedir | --localstatedir | --localstatedi | --localstated \
1192   | --localstate | --localstat | --localsta | --localst | --locals)
1193     ac_prev=localstatedir ;;
1194   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1195   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1196     localstatedir=$ac_optarg ;;
1197
1198   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1199     ac_prev=mandir ;;
1200   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1201     mandir=$ac_optarg ;;
1202
1203   -nfp | --nfp | --nf)
1204     # Obsolete; use --without-fp.
1205     with_fp=no ;;
1206
1207   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1208   | --no-cr | --no-c | -n)
1209     no_create=yes ;;
1210
1211   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1212   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1213     no_recursion=yes ;;
1214
1215   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1216   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1217   | --oldin | --oldi | --old | --ol | --o)
1218     ac_prev=oldincludedir ;;
1219   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1220   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1221   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1222     oldincludedir=$ac_optarg ;;
1223
1224   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1225     ac_prev=prefix ;;
1226   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1227     prefix=$ac_optarg ;;
1228
1229   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1230   | --program-pre | --program-pr | --program-p)
1231     ac_prev=program_prefix ;;
1232   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1233   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1234     program_prefix=$ac_optarg ;;
1235
1236   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1237   | --program-suf | --program-su | --program-s)
1238     ac_prev=program_suffix ;;
1239   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1240   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1241     program_suffix=$ac_optarg ;;
1242
1243   -program-transform-name | --program-transform-name \
1244   | --program-transform-nam | --program-transform-na \
1245   | --program-transform-n | --program-transform- \
1246   | --program-transform | --program-transfor \
1247   | --program-transfo | --program-transf \
1248   | --program-trans | --program-tran \
1249   | --progr-tra | --program-tr | --program-t)
1250     ac_prev=program_transform_name ;;
1251   -program-transform-name=* | --program-transform-name=* \
1252   | --program-transform-nam=* | --program-transform-na=* \
1253   | --program-transform-n=* | --program-transform-=* \
1254   | --program-transform=* | --program-transfor=* \
1255   | --program-transfo=* | --program-transf=* \
1256   | --program-trans=* | --program-tran=* \
1257   | --progr-tra=* | --program-tr=* | --program-t=*)
1258     program_transform_name=$ac_optarg ;;
1259
1260   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1261     ac_prev=pdfdir ;;
1262   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1263     pdfdir=$ac_optarg ;;
1264
1265   -psdir | --psdir | --psdi | --psd | --ps)
1266     ac_prev=psdir ;;
1267   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1268     psdir=$ac_optarg ;;
1269
1270   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271   | -silent | --silent | --silen | --sile | --sil)
1272     silent=yes ;;
1273
1274   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1275     ac_prev=sbindir ;;
1276   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1277   | --sbi=* | --sb=*)
1278     sbindir=$ac_optarg ;;
1279
1280   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1281   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282   | --sharedst | --shareds | --shared | --share | --shar \
1283   | --sha | --sh)
1284     ac_prev=sharedstatedir ;;
1285   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1288   | --sha=* | --sh=*)
1289     sharedstatedir=$ac_optarg ;;
1290
1291   -site | --site | --sit)
1292     ac_prev=site ;;
1293   -site=* | --site=* | --sit=*)
1294     site=$ac_optarg ;;
1295
1296   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1297     ac_prev=srcdir ;;
1298   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299     srcdir=$ac_optarg ;;
1300
1301   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302   | --syscon | --sysco | --sysc | --sys | --sy)
1303     ac_prev=sysconfdir ;;
1304   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306     sysconfdir=$ac_optarg ;;
1307
1308   -target | --target | --targe | --targ | --tar | --ta | --t)
1309     ac_prev=target_alias ;;
1310   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311     target_alias=$ac_optarg ;;
1312
1313   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314     verbose=yes ;;
1315
1316   -version | --version | --versio | --versi | --vers | -V)
1317     ac_init_version=: ;;
1318
1319   -with-* | --with-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error $? "invalid package name: $ac_useropt"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval with_$ac_useropt=\$ac_optarg ;;
1334
1335   -without-* | --without-*)
1336     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339       as_fn_error $? "invalid package name: $ac_useropt"
1340     ac_useropt_orig=$ac_useropt
1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342     case $ac_user_opts in
1343       *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347          ac_unrecognized_sep=', ';;
1348     esac
1349     eval with_$ac_useropt=no ;;
1350
1351   --x)
1352     # Obsolete; use --with-x.
1353     with_x=yes ;;
1354
1355   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356   | --x-incl | --x-inc | --x-in | --x-i)
1357     ac_prev=x_includes ;;
1358   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360     x_includes=$ac_optarg ;;
1361
1362   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364     ac_prev=x_libraries ;;
1365   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367     x_libraries=$ac_optarg ;;
1368
1369   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1370 Try \`$0 --help' for more information"
1371     ;;
1372
1373   *=*)
1374     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375     # Reject names that are not valid shell variable names.
1376     case $ac_envvar in #(
1377       '' | [0-9]* | *[!_$as_cr_alnum]* )
1378       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1379     esac
1380     eval $ac_envvar=\$ac_optarg
1381     export $ac_envvar ;;
1382
1383   *)
1384     # FIXME: should be removed in autoconf 3.0.
1385     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1389     ;;
1390
1391   esac
1392 done
1393
1394 if test -n "$ac_prev"; then
1395   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396   as_fn_error $? "missing argument to $ac_option"
1397 fi
1398
1399 if test -n "$ac_unrecognized_opts"; then
1400   case $enable_option_checking in
1401     no) ;;
1402     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1403     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1404   esac
1405 fi
1406
1407 # Check all directory arguments for consistency.
1408 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409                 datadir sysconfdir sharedstatedir localstatedir includedir \
1410                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411                 libdir localedir mandir
1412 do
1413   eval ac_val=\$$ac_var
1414   # Remove trailing slashes.
1415   case $ac_val in
1416     */ )
1417       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418       eval $ac_var=\$ac_val;;
1419   esac
1420   # Be sure to have absolute directory names.
1421   case $ac_val in
1422     [\\/$]* | ?:[\\/]* )  continue;;
1423     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424   esac
1425   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1426 done
1427
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1431 build=$build_alias
1432 host=$host_alias
1433 target=$target_alias
1434
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437   if test "x$build_alias" = x; then
1438     cross_compiling=maybe
1439   elif test "x$build_alias" != "x$host_alias"; then
1440     cross_compiling=yes
1441   fi
1442 fi
1443
1444 ac_tool_prefix=
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446
1447 test "$silent" = yes && exec 6>/dev/null
1448
1449
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453   as_fn_error $? "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455   as_fn_error $? "pwd does not report name of working directory"
1456
1457
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460   ac_srcdir_defaulted=yes
1461   # Try the directory containing this script, then the parent directory.
1462   ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464          X"$as_myself" : 'X\(//\)[^/]' \| \
1465          X"$as_myself" : 'X\(//\)$' \| \
1466          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\/\)[^/].*/{
1473             s//\1/
1474             q
1475           }
1476           /^X\(\/\/\)$/{
1477             s//\1/
1478             q
1479           }
1480           /^X\(\/\).*/{
1481             s//\1/
1482             q
1483           }
1484           s/.*/./; q'`
1485   srcdir=$ac_confdir
1486   if test ! -r "$srcdir/$ac_unique_file"; then
1487     srcdir=..
1488   fi
1489 else
1490   ac_srcdir_defaulted=no
1491 fi
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1495 fi
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1497 ac_abs_confdir=`(
1498         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1499         pwd)`
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1502   srcdir=.
1503 fi
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1507 case $srcdir in
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509 esac
1510 for ac_var in $ac_precious_vars; do
1511   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512   eval ac_env_${ac_var}_value=\$${ac_var}
1513   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515 done
1516
1517 #
1518 # Report the --help message.
1519 #
1520 if test "$ac_init_help" = "long"; then
1521   # Omit some internal or obsolete options to make the list less imposing.
1522   # This message is too long to be a string in the A/UX 3.1 sh.
1523   cat <<_ACEOF
1524 \`configure' configures gnupg 2.1.17 to adapt to many kinds of systems.
1525
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1527
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE.  See below for descriptions of some of the useful variables.
1530
1531 Defaults for the options are specified in brackets.
1532
1533 Configuration:
1534   -h, --help              display this help and exit
1535       --help=short        display options specific to this package
1536       --help=recursive    display the short help of all the included packages
1537   -V, --version           display version information and exit
1538   -q, --quiet, --silent   do not print \`checking ...' messages
1539       --cache-file=FILE   cache test results in FILE [disabled]
1540   -C, --config-cache      alias for \`--cache-file=config.cache'
1541   -n, --no-create         do not create output files
1542       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1543
1544 Installation directories:
1545   --prefix=PREFIX         install architecture-independent files in PREFIX
1546                           [$ac_default_prefix]
1547   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1548                           [PREFIX]
1549
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1554
1555 For better control, use the options below.
1556
1557 Fine tuning of the installation directories:
1558   --bindir=DIR            user executables [EPREFIX/bin]
1559   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1560   --libexecdir=DIR        program executables [EPREFIX/libexec]
1561   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1562   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1563   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1564   --libdir=DIR            object code libraries [EPREFIX/lib]
1565   --includedir=DIR        C header files [PREFIX/include]
1566   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1567   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1568   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1569   --infodir=DIR           info documentation [DATAROOTDIR/info]
1570   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1571   --mandir=DIR            man documentation [DATAROOTDIR/man]
1572   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1573   --htmldir=DIR           html documentation [DOCDIR]
1574   --dvidir=DIR            dvi documentation [DOCDIR]
1575   --pdfdir=DIR            pdf documentation [DOCDIR]
1576   --psdir=DIR             ps documentation [DOCDIR]
1577 _ACEOF
1578
1579   cat <<\_ACEOF
1580
1581 Program names:
1582   --program-prefix=PREFIX            prepend PREFIX to installed program names
1583   --program-suffix=SUFFIX            append SUFFIX to installed program names
1584   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1585
1586 System types:
1587   --build=BUILD     configure for building on BUILD [guessed]
1588   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1589 _ACEOF
1590 fi
1591
1592 if test -n "$ac_init_help"; then
1593   case $ac_init_help in
1594      short | recursive ) echo "Configuration of gnupg 2.1.17:";;
1595    esac
1596   cat <<\_ACEOF
1597
1598 Optional Features:
1599   --disable-option-checking  ignore unrecognized --enable/--with options
1600   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1601   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1602   --enable-silent-rules   less verbose build output (undo: "make V=1")
1603   --disable-silent-rules  verbose build output (undo: "make V=0")
1604   --enable-dependency-tracking
1605                           do not reject slow dependency extractors
1606   --disable-dependency-tracking
1607                           speeds up one-time build
1608   --disable-gpg           do not build the gpg program
1609   --disable-gpgsm         do not build the gpgsm program
1610   --disable-scdaemon      do not build the scdaemon program
1611   --enable-g13            build the g13 program
1612   --disable-dirmngr       do not build the dirmngr program
1613   --disable-tools         do not build the tools program
1614   --disable-doc           do not build the doc program
1615   --enable-symcryptrun    build the symcryptrun program
1616   --disable-gpgtar        do not build the gpgtar program
1617   --enable-wks-tools      build the wks-tools program
1618   --enable-gpg2-is-gpg    Set installed name of gpg2 to gpg
1619   --enable-selinux-support
1620                           enable SELinux support
1621   --enable-large-secmem   allocate extra secure memory
1622   --disable-trust-models  disable all trust models except "always"
1623   --disable-tofu          disable the TOFU trust model
1624   --disable-libdns        do not build with libdns support
1625   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1626   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1627   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1628   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1629   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1630   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1631   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1632   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1633   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1634   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1635   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1636   --disable-gpg-camellia128
1637                           disable the CAMELLIA128 cipher algorithm in gpg
1638   --disable-gpg-camellia192
1639                           disable the CAMELLIA192 cipher algorithm in gpg
1640   --disable-gpg-camellia256
1641                           disable the CAMELLIA256 cipher algorithm in gpg
1642   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1643   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1644   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1645   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1646   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1647   --disable-zip           disable the ZIP and ZLIB compression algorithm
1648   --disable-bzip2         disable the BZIP2 compression algorithm
1649   --disable-exec          disable all external program execution
1650   --disable-photo-viewers disable photo ID viewers
1651   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1652   --disable-card-support  disable smartcard support
1653   --disable-ccid-driver   disable the internal CCID driver
1654   --disable-dirmngr-auto-start
1655                           disable auto starting of the dirmngr
1656   --enable-maintainer-mode
1657                           enable make rules and dependencies not useful (and
1658                           sometimes confusing) to the casual installer
1659   --disable-largefile     omit support for large files
1660   --disable-sqlite        disable the use of SQLITE
1661   --disable-ntbtls        disable the use of NTBTLS as TLS library
1662   --disable-gnutls        disable GNUTLS as fallback TLS library
1663   --disable-ldap          disable LDAP support
1664   --disable-rpath         do not hardcode runtime library paths
1665   --disable-nls           do not use Native Language Support
1666   --disable-endian-check  disable the endian check and trust the OS provided
1667                           macros
1668   --disable-regex         do not handle regular expressions in trust
1669                           signatures
1670   --disable-optimization  disable compiler optimization
1671   --enable-build-timestamp
1672                           set an explicit build timestamp for reproducibility.
1673                           (default is the current time in ISO-8601 format)
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1679   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1680   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1681   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1682   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1683   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1684   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1685   --with-capabilities     use linux capabilities default=no
1686   --with-tar=PATH         look for a tar program in PATH
1687   --with-libgpg-error-prefix=PFX
1688                           prefix where GPG Error is installed (optional)
1689
1690   --with-libgcrypt-prefix=PFX
1691                           prefix where LIBGCRYPT is installed (optional)
1692   --with-libassuan-prefix=PFX
1693                           prefix where LIBASSUAN is installed (optional)
1694   --with-ksba-prefix=PFX  prefix where KSBA is installed (optional)
1695   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1696   --with-ntbtls-prefix=PFX
1697                           prefix where NTBTLS is installed (optional)
1698   --with-ldap=DIR         look for the LDAP library in DIR
1699   --with-mailprog=NAME    use "NAME -t" for mail transport
1700   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1701   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1702   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1703   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1704   --without-libintl-prefix     don't search for libintl in includedir and libdir
1705   --with-regex=DIR        look for regex in DIR
1706   --with-zlib=DIR         use libz in DIR
1707   --with-bzip2=DIR        look for bzip2 in DIR
1708   --with-readline=DIR     look for the readline library in DIR
1709
1710 Some influential environment variables:
1711   CC          C compiler command
1712   CFLAGS      C compiler flags
1713   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1714               nonstandard directory <lib dir>
1715   LIBS        libraries to pass to the linker, e.g. -l<library>
1716   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1717               you have headers in a nonstandard directory <include dir>
1718   CPP         C preprocessor
1719   SYSROOT     locate config scripts also below that directory
1720   CC_FOR_BUILD
1721               build system C compiler
1722   PKG_CONFIG  path to pkg-config utility
1723   PKG_CONFIG_PATH
1724               directories to add to pkg-config's search path
1725   PKG_CONFIG_LIBDIR
1726               path overriding pkg-config's built-in search path
1727   SQLITE3_CFLAGS
1728               C compiler flags for SQLITE3, overriding pkg-config
1729   SQLITE3_LIBS
1730               linker flags for SQLITE3, overriding pkg-config
1731   LIBGNUTLS_CFLAGS
1732               C compiler flags for LIBGNUTLS, overriding pkg-config
1733   LIBGNUTLS_LIBS
1734               linker flags for LIBGNUTLS, overriding pkg-config
1735
1736 Use these variables to override the choices made by `configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1738
1739 Report bugs to <https://bugs.gnupg.org>.
1740 _ACEOF
1741 ac_status=$?
1742 fi
1743
1744 if test "$ac_init_help" = "recursive"; then
1745   # If there are subdirs, report their specific --help.
1746   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1747     test -d "$ac_dir" ||
1748       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1749       continue
1750     ac_builddir=.
1751
1752 case "$ac_dir" in
1753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 *)
1755   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756   # A ".." for each directory in $ac_dir_suffix.
1757   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758   case $ac_top_builddir_sub in
1759   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1761   esac ;;
1762 esac
1763 ac_abs_top_builddir=$ac_pwd
1764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1765 # for backward compatibility:
1766 ac_top_builddir=$ac_top_build_prefix
1767
1768 case $srcdir in
1769   .)  # We are building in place.
1770     ac_srcdir=.
1771     ac_top_srcdir=$ac_top_builddir_sub
1772     ac_abs_top_srcdir=$ac_pwd ;;
1773   [\\/]* | ?:[\\/]* )  # Absolute name.
1774     ac_srcdir=$srcdir$ac_dir_suffix;
1775     ac_top_srcdir=$srcdir
1776     ac_abs_top_srcdir=$srcdir ;;
1777   *) # Relative name.
1778     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779     ac_top_srcdir=$ac_top_build_prefix$srcdir
1780     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 esac
1782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783
1784     cd "$ac_dir" || { ac_status=$?; continue; }
1785     # Check for guested configure.
1786     if test -f "$ac_srcdir/configure.gnu"; then
1787       echo &&
1788       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789     elif test -f "$ac_srcdir/configure"; then
1790       echo &&
1791       $SHELL "$ac_srcdir/configure" --help=recursive
1792     else
1793       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794     fi || ac_status=$?
1795     cd "$ac_pwd" || { ac_status=$?; break; }
1796   done
1797 fi
1798
1799 test -n "$ac_init_help" && exit $ac_status
1800 if $ac_init_version; then
1801   cat <<\_ACEOF
1802 gnupg configure 2.1.17
1803 generated by GNU Autoconf 2.69
1804
1805 Copyright (C) 2012 Free Software Foundation, Inc.
1806 This configure script is free software; the Free Software Foundation
1807 gives unlimited permission to copy, distribute and modify it.
1808 _ACEOF
1809   exit
1810 fi
1811
1812 ## ------------------------ ##
1813 ## Autoconf initialization. ##
1814 ## ------------------------ ##
1815
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext
1823   if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_compile") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest.$ac_objext; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847         ac_retval=1
1848 fi
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_compile
1853
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } > conftest.i && {
1876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877          test ! -s conftest.err
1878        }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884     ac_retval=1
1885 fi
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_cpp
1890
1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894 # the include files in INCLUDES and setting the cache variable VAR
1895 # accordingly.
1896 ac_fn_c_check_header_mongrel ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   if eval \${$3+:} false; then :
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903   $as_echo_n "(cached) " >&6
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 else
1909   # Is the header compilable?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911 $as_echo_n "checking $2 usability... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   ac_header_compiler=yes
1919 else
1920   ac_header_compiler=no
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924 $as_echo "$ac_header_compiler" >&6; }
1925
1926 # Is the header present?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928 $as_echo_n "checking $2 presence... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_cpp "$LINENO"; then :
1934   ac_header_preproc=yes
1935 else
1936   ac_header_preproc=no
1937 fi
1938 rm -f conftest.err conftest.i conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940 $as_echo "$ac_header_preproc" >&6; }
1941
1942 # So?  What about this header?
1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944   yes:no: )
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949     ;;
1950   no:yes:* )
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1954 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1958 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 ( $as_echo "## ------------------------------------- ##
1962 ## Report this to https://bugs.gnupg.org ##
1963 ## ------------------------------------- ##"
1964      ) | sed "s/^/$as_me: WARNING:     /" >&2
1965     ;;
1966 esac
1967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if eval \${$3+:} false; then :
1970   $as_echo_n "(cached) " >&6
1971 else
1972   eval "$3=\$ac_header_compiler"
1973 fi
1974 eval ac_res=\$$3
1975                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 fi
1978   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980 } # ac_fn_c_check_header_mongrel
1981
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1986 ac_fn_c_try_run ()
1987 {
1988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989   if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992   *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996   (eval "$ac_link") 2>&5
1997   ac_status=$?
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000   { { case "(($ac_try" in
2001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002   *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006   (eval "$ac_try") 2>&5
2007   ac_status=$?
2008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009   test $ac_status = 0; }; }; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: program exited with status $ac_status" >&5
2013        $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016        ac_retval=$ac_status
2017 fi
2018   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020   as_fn_set_status $ac_retval
2021
2022 } # ac_fn_c_try_run
2023
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034   $as_echo_n "(cached) " >&6
2035 else
2036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 #include <$2>
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042   eval "$3=yes"
2043 else
2044   eval "$3=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$3
2049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_header_compile
2054
2055 # ac_fn_c_try_link LINENO
2056 # -----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_c_try_link ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   rm -f conftest.$ac_objext conftest$ac_exeext
2062   if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065   *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069   (eval "$ac_link") 2>conftest.err
2070   ac_status=$?
2071   if test -s conftest.err; then
2072     grep -v '^ *+' conftest.err >conftest.er1
2073     cat conftest.er1 >&5
2074     mv -f conftest.er1 conftest.err
2075   fi
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } && {
2078          test -z "$ac_c_werror_flag" ||
2079          test ! -s conftest.err
2080        } && test -s conftest$ac_exeext && {
2081          test "$cross_compiling" = yes ||
2082          test -x conftest$ac_exeext
2083        }; then :
2084   ac_retval=0
2085 else
2086   $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089         ac_retval=1
2090 fi
2091   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093   # interfere with the next link command; also delete a directory that is
2094   # left behind by Apple's compiler.  We do this before executing the actions.
2095   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097   as_fn_set_status $ac_retval
2098
2099 } # ac_fn_c_try_link
2100
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110   $as_echo_n "(cached) " >&6
2111 else
2112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2116 #define $2 innocuous_$2
2117
2118 /* System header to define __stub macros and hopefully few prototypes,
2119     which can conflict with char $2 (); below.
2120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121     <limits.h> exists even on freestanding compilers.  */
2122
2123 #ifdef __STDC__
2124 # include <limits.h>
2125 #else
2126 # include <assert.h>
2127 #endif
2128
2129 #undef $2
2130
2131 /* Override any GCC internal prototype to avoid an error.
2132    Use char because int might match the return type of a GCC
2133    builtin and then its argument prototype would still apply.  */
2134 #ifdef __cplusplus
2135 extern "C"
2136 #endif
2137 char $2 ();
2138 /* The GNU C library defines this for functions which it implements
2139     to always fail with ENOSYS.  Some functions are actually named
2140     something starting with __ and the normal name is an alias.  */
2141 #if defined __stub_$2 || defined __stub___$2
2142 choke me
2143 #endif
2144
2145 int
2146 main ()
2147 {
2148 return $2 ();
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_link "$LINENO"; then :
2154   eval "$3=yes"
2155 else
2156   eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext \
2159     conftest$ac_exeext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$3
2162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_func
2167
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178   $as_echo_n "(cached) " >&6
2179 else
2180   eval "$3=no"
2181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $4
2184 int
2185 main ()
2186 {
2187 if (sizeof ($2))
2188          return 0;
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 int
2198 main ()
2199 {
2200 if (sizeof (($2)))
2201             return 0;
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207
2208 else
2209   eval "$3=yes"
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 eval ac_res=\$$3
2216                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220 } # ac_fn_c_check_type
2221
2222 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2223 # ---------------------------------------------
2224 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2225 # accordingly.
2226 ac_fn_c_check_decl ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   as_decl_name=`echo $2|sed 's/ *(.*//'`
2230   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2232 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2233 if eval \${$3+:} false; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $4
2239 int
2240 main ()
2241 {
2242 #ifndef $as_decl_name
2243 #ifdef __cplusplus
2244   (void) $as_decl_use;
2245 #else
2246   (void) $as_decl_name;
2247 #endif
2248 #endif
2249
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255   eval "$3=yes"
2256 else
2257   eval "$3=no"
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 eval ac_res=\$$3
2262                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266 } # ac_fn_c_check_decl
2267
2268 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2269 # --------------------------------------------
2270 # Tries to find the compile-time value of EXPR in a program that includes
2271 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2272 # computed
2273 ac_fn_c_compute_int ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   if test "$cross_compiling" = yes; then
2277     # Depending upon the size, compute the lo and hi bounds.
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 int
2282 main ()
2283 {
2284 static int test_array [1 - 2 * !(($2) >= 0)];
2285 test_array [0] = 0;
2286 return test_array [0];
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293   ac_lo=0 ac_mid=0
2294   while :; do
2295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2302 test_array [0] = 0;
2303 return test_array [0];
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310   ac_hi=$ac_mid; break
2311 else
2312   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2313                         if test $ac_lo -le $ac_mid; then
2314                           ac_lo= ac_hi=
2315                           break
2316                         fi
2317                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320   done
2321 else
2322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h.  */
2324 $4
2325 int
2326 main ()
2327 {
2328 static int test_array [1 - 2 * !(($2) < 0)];
2329 test_array [0] = 0;
2330 return test_array [0];
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   ac_hi=-1 ac_mid=-1
2338   while :; do
2339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $4
2342 int
2343 main ()
2344 {
2345 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2346 test_array [0] = 0;
2347 return test_array [0];
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354   ac_lo=$ac_mid; break
2355 else
2356   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2357                         if test $ac_mid -le $ac_hi; then
2358                           ac_lo= ac_hi=
2359                           break
2360                         fi
2361                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364   done
2365 else
2366   ac_lo= ac_hi=
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 # Binary search between lo and hi bounds.
2372 while test "x$ac_lo" != "x$ac_hi"; do
2373   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2381 test_array [0] = 0;
2382 return test_array [0];
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   ac_hi=$ac_mid
2390 else
2391   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 case $ac_lo in #((
2396 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2397 '') ac_retval=1 ;;
2398 esac
2399   else
2400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h.  */
2402 $4
2403 static long int longval () { return $2; }
2404 static unsigned long int ulongval () { return $2; }
2405 #include <stdio.h>
2406 #include <stdlib.h>
2407 int
2408 main ()
2409 {
2410
2411   FILE *f = fopen ("conftest.val", "w");
2412   if (! f)
2413     return 1;
2414   if (($2) < 0)
2415     {
2416       long int i = longval ();
2417       if (i != ($2))
2418         return 1;
2419       fprintf (f, "%ld", i);
2420     }
2421   else
2422     {
2423       unsigned long int i = ulongval ();
2424       if (i != ($2))
2425         return 1;
2426       fprintf (f, "%lu", i);
2427     }
2428   /* Do not output a trailing newline, as this causes \r\n confusion
2429      on some platforms.  */
2430   return ferror (f) || fclose (f) != 0;
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 if ac_fn_c_try_run "$LINENO"; then :
2437   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2438 else
2439   ac_retval=1
2440 fi
2441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2442   conftest.$ac_objext conftest.beam conftest.$ac_ext
2443 rm -f conftest.val
2444
2445   fi
2446   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447   as_fn_set_status $ac_retval
2448
2449 } # ac_fn_c_compute_int
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2453
2454 It was created by gnupg $as_me 2.1.17, which was
2455 generated by GNU Autoconf 2.69.  Invocation command line was
2456
2457   $ $0 $@
2458
2459 _ACEOF
2460 exec 5>>config.log
2461 {
2462 cat <<_ASUNAME
2463 ## --------- ##
2464 ## Platform. ##
2465 ## --------- ##
2466
2467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2472
2473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2474 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2475
2476 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2477 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2479 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2480 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2481 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2482 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2483
2484 _ASUNAME
2485
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     $as_echo "PATH: $as_dir"
2492   done
2493 IFS=$as_save_IFS
2494
2495 } >&5
2496
2497 cat >&5 <<_ACEOF
2498
2499
2500 ## ----------- ##
2501 ## Core tests. ##
2502 ## ----------- ##
2503
2504 _ACEOF
2505
2506
2507 # Keep a trace of the command line.
2508 # Strip out --no-create and --no-recursion so they do not pile up.
2509 # Strip out --silent because we don't want to record it for future runs.
2510 # Also quote any args containing shell meta-characters.
2511 # Make two passes to allow for proper duplicate-argument suppression.
2512 ac_configure_args=
2513 ac_configure_args0=
2514 ac_configure_args1=
2515 ac_must_keep_next=false
2516 for ac_pass in 1 2
2517 do
2518   for ac_arg
2519   do
2520     case $ac_arg in
2521     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2522     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2523     | -silent | --silent | --silen | --sile | --sil)
2524       continue ;;
2525     *\'*)
2526       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     esac
2528     case $ac_pass in
2529     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2530     2)
2531       as_fn_append ac_configure_args1 " '$ac_arg'"
2532       if test $ac_must_keep_next = true; then
2533         ac_must_keep_next=false # Got value, back to normal.
2534       else
2535         case $ac_arg in
2536           *=* | --config-cache | -C | -disable-* | --disable-* \
2537           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2538           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2539           | -with-* | --with-* | -without-* | --without-* | --x)
2540             case "$ac_configure_args0 " in
2541               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2542             esac
2543             ;;
2544           -* ) ac_must_keep_next=true ;;
2545         esac
2546       fi
2547       as_fn_append ac_configure_args " '$ac_arg'"
2548       ;;
2549     esac
2550   done
2551 done
2552 { ac_configure_args0=; unset ac_configure_args0;}
2553 { ac_configure_args1=; unset ac_configure_args1;}
2554
2555 # When interrupted or exit'd, cleanup temporary files, and complete
2556 # config.log.  We remove comments because anyway the quotes in there
2557 # would cause problems or look ugly.
2558 # WARNING: Use '\'' to represent an apostrophe within the trap.
2559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2560 trap 'exit_status=$?
2561   # Save into config.log some information that might help in debugging.
2562   {
2563     echo
2564
2565     $as_echo "## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##"
2568     echo
2569     # The following way of writing the cache mishandles newlines in values,
2570 (
2571   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2572     eval ac_val=\$$ac_var
2573     case $ac_val in #(
2574     *${as_nl}*)
2575       case $ac_var in #(
2576       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2578       esac
2579       case $ac_var in #(
2580       _ | IFS | as_nl) ;; #(
2581       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2582       *) { eval $ac_var=; unset $ac_var;} ;;
2583       esac ;;
2584     esac
2585   done
2586   (set) 2>&1 |
2587     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2588     *${as_nl}ac_space=\ *)
2589       sed -n \
2590         "s/'\''/'\''\\\\'\'''\''/g;
2591           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2592       ;; #(
2593     *)
2594       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2595       ;;
2596     esac |
2597     sort
2598 )
2599     echo
2600
2601     $as_echo "## ----------------- ##
2602 ## Output variables. ##
2603 ## ----------------- ##"
2604     echo
2605     for ac_var in $ac_subst_vars
2606     do
2607       eval ac_val=\$$ac_var
2608       case $ac_val in
2609       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610       esac
2611       $as_echo "$ac_var='\''$ac_val'\''"
2612     done | sort
2613     echo
2614
2615     if test -n "$ac_subst_files"; then
2616       $as_echo "## ------------------- ##
2617 ## File substitutions. ##
2618 ## ------------------- ##"
2619       echo
2620       for ac_var in $ac_subst_files
2621       do
2622         eval ac_val=\$$ac_var
2623         case $ac_val in
2624         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2625         esac
2626         $as_echo "$ac_var='\''$ac_val'\''"
2627       done | sort
2628       echo
2629     fi
2630
2631     if test -s confdefs.h; then
2632       $as_echo "## ----------- ##
2633 ## confdefs.h. ##
2634 ## ----------- ##"
2635       echo
2636       cat confdefs.h
2637       echo
2638     fi
2639     test "$ac_signal" != 0 &&
2640       $as_echo "$as_me: caught signal $ac_signal"
2641     $as_echo "$as_me: exit $exit_status"
2642   } >&5
2643   rm -f core *.core core.conftest.* &&
2644     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2645     exit $exit_status
2646 ' 0
2647 for ac_signal in 1 2 13 15; do
2648   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2649 done
2650 ac_signal=0
2651
2652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2653 rm -f -r conftest* confdefs.h
2654
2655 $as_echo "/* confdefs.h */" > confdefs.h
2656
2657 # Predefined preprocessor variables.
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_NAME "$PACKAGE_NAME"
2661 _ACEOF
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2665 _ACEOF
2666
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2669 _ACEOF
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_STRING "$PACKAGE_STRING"
2673 _ACEOF
2674
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2677 _ACEOF
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_URL "$PACKAGE_URL"
2681 _ACEOF
2682
2683
2684 # Let the site file select an alternate cache file if it wants to.
2685 # Prefer an explicitly selected file to automatically selected ones.
2686 ac_site_file1=NONE
2687 ac_site_file2=NONE
2688 if test -n "$CONFIG_SITE"; then
2689   # We do not want a PATH search for config.site.
2690   case $CONFIG_SITE in #((
2691     -*)  ac_site_file1=./$CONFIG_SITE;;
2692     */*) ac_site_file1=$CONFIG_SITE;;
2693     *)   ac_site_file1=./$CONFIG_SITE;;
2694   esac
2695 elif test "x$prefix" != xNONE; then
2696   ac_site_file1=$prefix/share/config.site
2697   ac_site_file2=$prefix/etc/config.site
2698 else
2699   ac_site_file1=$ac_default_prefix/share/config.site
2700   ac_site_file2=$ac_default_prefix/etc/config.site
2701 fi
2702 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2703 do
2704   test "x$ac_site_file" = xNONE && continue
2705   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2706     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2707 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2708     sed 's/^/| /' "$ac_site_file" >&5
2709     . "$ac_site_file" \
2710       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 as_fn_error $? "failed to load site script $ac_site_file
2713 See \`config.log' for more details" "$LINENO" 5; }
2714   fi
2715 done
2716
2717 if test -r "$cache_file"; then
2718   # Some versions of bash will fail to source /dev/null (special files
2719   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2720   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2721     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2722 $as_echo "$as_me: loading cache $cache_file" >&6;}
2723     case $cache_file in
2724       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2725       *)                      . "./$cache_file";;
2726     esac
2727   fi
2728 else
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2730 $as_echo "$as_me: creating cache $cache_file" >&6;}
2731   >$cache_file
2732 fi
2733
2734 gt_needs="$gt_needs need-ngettext"
2735 as_fn_append ac_header_list " sys/socket.h"
2736 # Check that the precious variables saved in the cache have kept the same
2737 # value.
2738 ac_cache_corrupted=false
2739 for ac_var in $ac_precious_vars; do
2740   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2741   eval ac_new_set=\$ac_env_${ac_var}_set
2742   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2743   eval ac_new_val=\$ac_env_${ac_var}_value
2744   case $ac_old_set,$ac_new_set in
2745     set,)
2746       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2748       ac_cache_corrupted=: ;;
2749     ,set)
2750       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2751 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2752       ac_cache_corrupted=: ;;
2753     ,);;
2754     *)
2755       if test "x$ac_old_val" != "x$ac_new_val"; then
2756         # differences in whitespace do not lead to failure.
2757         ac_old_val_w=`echo x $ac_old_val`
2758         ac_new_val_w=`echo x $ac_new_val`
2759         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2760           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2761 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2762           ac_cache_corrupted=:
2763         else
2764           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2765 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2766           eval $ac_var=\$ac_old_val
2767         fi
2768         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2769 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2770         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2771 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2772       fi;;
2773   esac
2774   # Pass precious variables to config.status.
2775   if test "$ac_new_set" = set; then
2776     case $ac_new_val in
2777     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2778     *) ac_arg=$ac_var=$ac_new_val ;;
2779     esac
2780     case " $ac_configure_args " in
2781       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2782       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2783     esac
2784   fi
2785 done
2786 if $ac_cache_corrupted; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2790 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2791   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2792 fi
2793 ## -------------------- ##
2794 ## Main body of script. ##
2795 ## -------------------- ##
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
2803
2804
2805 NEED_GPG_ERROR_VERSION=1.24
2806
2807 NEED_LIBGCRYPT_API=1
2808 NEED_LIBGCRYPT_VERSION=1.7.0
2809
2810 NEED_LIBASSUAN_API=2
2811 NEED_LIBASSUAN_VERSION=2.4.3
2812
2813 NEED_KSBA_API=1
2814 NEED_KSBA_VERSION=1.3.4
2815
2816 NEED_NTBTLS_API=1
2817 NEED_NTBTLS_VERSION=0.1.0
2818
2819 NEED_NPTH_API=1
2820 NEED_NPTH_VERSION=1.2
2821
2822
2823 NEED_GNUTLS_VERSION=3.0
2824
2825 NEED_SQLITE_VERSION=3.7
2826
2827 development_version=no
2828 PACKAGE=$PACKAGE_NAME
2829 PACKAGE_GT=${PACKAGE_NAME}2
2830 VERSION=$PACKAGE_VERSION
2831
2832 ac_aux_dir=
2833 for ac_dir in build-aux "$srcdir"/build-aux; do
2834   if test -f "$ac_dir/install-sh"; then
2835     ac_aux_dir=$ac_dir
2836     ac_install_sh="$ac_aux_dir/install-sh -c"
2837     break
2838   elif test -f "$ac_dir/install.sh"; then
2839     ac_aux_dir=$ac_dir
2840     ac_install_sh="$ac_aux_dir/install.sh -c"
2841     break
2842   elif test -f "$ac_dir/shtool"; then
2843     ac_aux_dir=$ac_dir
2844     ac_install_sh="$ac_aux_dir/shtool install -c"
2845     break
2846   fi
2847 done
2848 if test -z "$ac_aux_dir"; then
2849   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2850 fi
2851
2852 # These three variables are undocumented and unsupported,
2853 # and are intended to be withdrawn in a future Autoconf release.
2854 # They can cause serious problems if a builder's source tree is in a directory
2855 # whose full name contains unusual characters.
2856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2858 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2859
2860
2861
2862 ac_config_headers="$ac_config_headers config.h"
2863
2864 am__api_version='1.14'
2865
2866 # Find a good install program.  We prefer a C program (faster),
2867 # so one script is as good as another.  But avoid the broken or
2868 # incompatible versions:
2869 # SysV /etc/install, /usr/sbin/install
2870 # SunOS /usr/etc/install
2871 # IRIX /sbin/install
2872 # AIX /bin/install
2873 # AmigaOS /C/install, which installs bootblocks on floppy discs
2874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2877 # OS/2's system install, which has a completely different semantic
2878 # ./install, which can be erroneously created by make from ./install.sh.
2879 # Reject install programs that cannot install multiple files.
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2881 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2882 if test -z "$INSTALL"; then
2883 if ${ac_cv_path_install+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891     # Account for people who put trailing slashes in PATH elements.
2892 case $as_dir/ in #((
2893   ./ | .// | /[cC]/* | \
2894   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2895   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2896   /usr/ucb/* ) ;;
2897   *)
2898     # OSF1 and SCO ODT 3.0 have their own names for install.
2899     # Don't use installbsd from OSF since it installs stuff as root
2900     # by default.
2901     for ac_prog in ginstall scoinst install; do
2902       for ac_exec_ext in '' $ac_executable_extensions; do
2903         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2904           if test $ac_prog = install &&
2905             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906             # AIX install.  It has an incompatible calling convention.
2907             :
2908           elif test $ac_prog = install &&
2909             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2910             # program-specific install script used by HP pwplus--don't use.
2911             :
2912           else
2913             rm -rf conftest.one conftest.two conftest.dir
2914             echo one > conftest.one
2915             echo two > conftest.two
2916             mkdir conftest.dir
2917             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2918               test -s conftest.one && test -s conftest.two &&
2919               test -s conftest.dir/conftest.one &&
2920               test -s conftest.dir/conftest.two
2921             then
2922               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2923               break 3
2924             fi
2925           fi
2926         fi
2927       done
2928     done
2929     ;;
2930 esac
2931
2932   done
2933 IFS=$as_save_IFS
2934
2935 rm -rf conftest.one conftest.two conftest.dir
2936
2937 fi
2938   if test "${ac_cv_path_install+set}" = set; then
2939     INSTALL=$ac_cv_path_install
2940   else
2941     # As a last resort, use the slow shell script.  Don't cache a
2942     # value for INSTALL within a source directory, because that will
2943     # break other packages using the cache if that directory is
2944     # removed, or if the value is a relative name.
2945     INSTALL=$ac_install_sh
2946   fi
2947 fi
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2949 $as_echo "$INSTALL" >&6; }
2950
2951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2952 # It thinks the first close brace ends the variable substitution.
2953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2954
2955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2956
2957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2958
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2960 $as_echo_n "checking whether build environment is sane... " >&6; }
2961 # Reject unsafe characters in $srcdir or the absolute working directory
2962 # name.  Accept space and tab only in the latter.
2963 am_lf='
2964 '
2965 case `pwd` in
2966   *[\\\"\#\$\&\'\`$am_lf]*)
2967     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2968 esac
2969 case $srcdir in
2970   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2971     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2972 esac
2973
2974 # Do 'set' in a subshell so we don't clobber the current shell's
2975 # arguments.  Must try -L first in case configure is actually a
2976 # symlink; some systems play weird games with the mod time of symlinks
2977 # (eg FreeBSD returns the mod time of the symlink's containing
2978 # directory).
2979 if (
2980    am_has_slept=no
2981    for am_try in 1 2; do
2982      echo "timestamp, slept: $am_has_slept" > conftest.file
2983      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2984      if test "$*" = "X"; then
2985         # -L didn't work.
2986         set X `ls -t "$srcdir/configure" conftest.file`
2987      fi
2988      if test "$*" != "X $srcdir/configure conftest.file" \
2989         && test "$*" != "X conftest.file $srcdir/configure"; then
2990
2991         # If neither matched, then we have a broken ls.  This can happen
2992         # if, for instance, CONFIG_SHELL is bash and it inherits a
2993         # broken ls alias from the environment.  This has actually
2994         # happened.  Such a system could not be considered "sane".
2995         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2996   alias in your environment" "$LINENO" 5
2997      fi
2998      if test "$2" = conftest.file || test $am_try -eq 2; then
2999        break
3000      fi
3001      # Just in case.
3002      sleep 1
3003      am_has_slept=yes
3004    done
3005    test "$2" = conftest.file
3006    )
3007 then
3008    # Ok.
3009    :
3010 else
3011    as_fn_error $? "newly created file is older than distributed files!
3012 Check your system clock" "$LINENO" 5
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3016 # If we didn't sleep, we still need to ensure time stamps of config.status and
3017 # generated files are strictly newer.
3018 am_sleep_pid=
3019 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3020   ( sleep 1 ) &
3021   am_sleep_pid=$!
3022 fi
3023
3024 rm -f conftest.file
3025
3026 test "$program_prefix" != NONE &&
3027   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3028 # Use a double $ so make ignores it.
3029 test "$program_suffix" != NONE &&
3030   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3031 # Double any \ or $.
3032 # By default was `s,x,x', remove it if useless.
3033 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3034 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3035
3036 # Expand $ac_aux_dir to an absolute path.
3037 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3038
3039 if test x"${MISSING+set}" != xset; then
3040   case $am_aux_dir in
3041   *\ * | *\     *)
3042     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3043   *)
3044     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3045   esac
3046 fi
3047 # Use eval to expand $SHELL
3048 if eval "$MISSING --is-lightweight"; then
3049   am_missing_run="$MISSING "
3050 else
3051   am_missing_run=
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3053 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3054 fi
3055
3056 if test x"${install_sh}" != xset; then
3057   case $am_aux_dir in
3058   *\ * | *\     *)
3059     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3060   *)
3061     install_sh="\${SHELL} $am_aux_dir/install-sh"
3062   esac
3063 fi
3064
3065 # Installed binaries are usually stripped using 'strip' when the user
3066 # run "make install-strip".  However 'strip' might not be the right
3067 # tool to use in cross-compilation environments, therefore Automake
3068 # will honor the 'STRIP' environment variable to overrule this program.
3069 if test "$cross_compiling" != no; then
3070   if test -n "$ac_tool_prefix"; then
3071   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}strip; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_STRIP+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$STRIP"; then
3079   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     for ac_exec_ext in '' $ac_executable_extensions; do
3087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3101 $as_echo "$STRIP" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$ac_cv_prog_STRIP"; then
3110   ac_ct_STRIP=$STRIP
3111   # Extract the first word of "strip", so it can be a program name with args.
3112 set dummy strip; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$ac_ct_STRIP"; then
3119   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128     ac_cv_prog_ac_ct_STRIP="strip"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3139 if test -n "$ac_ct_STRIP"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3141 $as_echo "$ac_ct_STRIP" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147   if test "x$ac_ct_STRIP" = x; then
3148     STRIP=":"
3149   else
3150     case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156     STRIP=$ac_ct_STRIP
3157   fi
3158 else
3159   STRIP="$ac_cv_prog_STRIP"
3160 fi
3161
3162 fi
3163 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3164
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3166 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3167 if test -z "$MKDIR_P"; then
3168   if ${ac_cv_path_mkdir+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_prog in mkdir gmkdir; do
3177          for ac_exec_ext in '' $ac_executable_extensions; do
3178            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3179            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3180              'mkdir (GNU coreutils) '* | \
3181              'mkdir (coreutils) '* | \
3182              'mkdir (fileutils) '4.1*)
3183                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3184                break 3;;
3185            esac
3186          done
3187        done
3188   done
3189 IFS=$as_save_IFS
3190
3191 fi
3192
3193   test -d ./--version && rmdir ./--version
3194   if test "${ac_cv_path_mkdir+set}" = set; then
3195     MKDIR_P="$ac_cv_path_mkdir -p"
3196   else
3197     # As a last resort, use the slow shell script.  Don't cache a
3198     # value for MKDIR_P within a source directory, because that will
3199     # break other packages using the cache if that directory is
3200     # removed, or if the value is a relative name.
3201     MKDIR_P="$ac_install_sh -d"
3202   fi
3203 fi
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3205 $as_echo "$MKDIR_P" >&6; }
3206
3207 for ac_prog in gawk mawk nawk awk
3208 do
3209   # Extract the first word of "$ac_prog", so it can be a program name with args.
3210 set dummy $ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_AWK+:} false; then :
3214   $as_echo_n "(cached) " >&6
3215 else
3216   if test -n "$AWK"; then
3217   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224     for ac_exec_ext in '' $ac_executable_extensions; do
3225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226     ac_cv_prog_AWK="$ac_prog"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 AWK=$ac_cv_prog_AWK
3237 if test -n "$AWK"; then
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3239 $as_echo "$AWK" >&6; }
3240 else
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246   test -n "$AWK" && break
3247 done
3248
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3250 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3251 set x ${MAKE-make}
3252 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3253 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   cat >conftest.make <<\_ACEOF
3257 SHELL = /bin/sh
3258 all:
3259         @echo '@@@%%%=$(MAKE)=@@@%%%'
3260 _ACEOF
3261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3262 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3263   *@@@%%%=?*=@@@%%%*)
3264     eval ac_cv_prog_make_${ac_make}_set=yes;;
3265   *)
3266     eval ac_cv_prog_make_${ac_make}_set=no;;
3267 esac
3268 rm -f conftest.make
3269 fi
3270 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3273   SET_MAKE=
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277   SET_MAKE="MAKE=${MAKE-make}"
3278 fi
3279
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3283   am__leading_dot=.
3284 else
3285   am__leading_dot=_
3286 fi
3287 rmdir .tst 2>/dev/null
3288
3289 # Check whether --enable-silent-rules was given.
3290 if test "${enable_silent_rules+set}" = set; then :
3291   enableval=$enable_silent_rules;
3292 fi
3293
3294 case $enable_silent_rules in # (((
3295   yes) AM_DEFAULT_VERBOSITY=0;;
3296    no) AM_DEFAULT_VERBOSITY=1;;
3297     *) AM_DEFAULT_VERBOSITY=1;;
3298 esac
3299 am_make=${MAKE-make}
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3301 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3302 if ${am_cv_make_support_nested_variables+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if $as_echo 'TRUE=$(BAR$(V))
3306 BAR0=false
3307 BAR1=true
3308 V=1
3309 am__doit:
3310         @$(TRUE)
3311 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3312   am_cv_make_support_nested_variables=yes
3313 else
3314   am_cv_make_support_nested_variables=no
3315 fi
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3318 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3319 if test $am_cv_make_support_nested_variables = yes; then
3320     AM_V='$(V)'
3321   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3322 else
3323   AM_V=$AM_DEFAULT_VERBOSITY
3324   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3325 fi
3326 AM_BACKSLASH='\'
3327
3328 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3329   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3330   # is not polluted with repeated "-I."
3331   am__isrc=' -I$(srcdir)'
3332   # test to see if srcdir already configured
3333   if test -f $srcdir/config.status; then
3334     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3335   fi
3336 fi
3337
3338 # test whether we have cygpath
3339 if test -z "$CYGPATH_W"; then
3340   if (cygpath --version) >/dev/null 2>/dev/null; then
3341     CYGPATH_W='cygpath -w'
3342   else
3343     CYGPATH_W=echo
3344   fi
3345 fi
3346
3347
3348 # Define the identity of the package.
3349  PACKAGE='gnupg'
3350  VERSION='2.1.17'
3351
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define PACKAGE "$PACKAGE"
3355 _ACEOF
3356
3357
3358 cat >>confdefs.h <<_ACEOF
3359 #define VERSION "$VERSION"
3360 _ACEOF
3361
3362 # Some tools Automake needs.
3363
3364 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3365
3366
3367 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3368
3369
3370 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3371
3372
3373 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3374
3375
3376 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3377
3378 # For better backward compatibility.  To be removed once Automake 1.9.x
3379 # dies out for good.  For more background, see:
3380 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3381 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3382 mkdir_p='$(MKDIR_P)'
3383
3384 # We need awk for the "check" target.  The system "awk" is bad on
3385 # some platforms.
3386 # Always define AMTAR for backward compatibility.  Yes, it's still used
3387 # in the wild :-(  We should find a proper way to deprecate it ...
3388 AMTAR='$${TAR-tar}'
3389
3390
3391 # We'll loop over all known methods to create a tar archive until one works.
3392 _am_tools='gnutar  pax cpio none'
3393
3394 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3395
3396
3397
3398
3399
3400
3401 # POSIX will say in a future version that running "rm -f" with no argument
3402 # is OK; and we want to be able to make that assumption in our Makefile
3403 # recipes.  So use an aggressive probe to check that the usage we want is
3404 # actually supported "in the wild" to an acceptable degree.
3405 # See automake bug#10828.
3406 # To make any issue more visible, cause the running configure to be aborted
3407 # by default if the 'rm' program in use doesn't match our expectations; the
3408 # user can still override this though.
3409 if rm -f && rm -fr && rm -rf; then : OK; else
3410   cat >&2 <<'END'
3411 Oops!
3412
3413 Your 'rm' program seems unable to run without file operands specified
3414 on the command line, even when the '-f' option is present.  This is contrary
3415 to the behaviour of most rm programs out there, and not conforming with
3416 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3417
3418 Please tell bug-automake@gnu.org about your system, including the value
3419 of your $PATH and any error possibly output before this message.  This
3420 can help us improve future automake versions.
3421
3422 END
3423   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3424     echo 'Configuration will proceed anyway, since you have set the' >&2
3425     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3426     echo >&2
3427   else
3428     cat >&2 <<'END'
3429 Aborting the configuration process, to ensure you take notice of the issue.
3430
3431 You can download and install GNU coreutils to get an 'rm' implementation
3432 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3433
3434 If you want to complete the configuration process using your problematic
3435 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3436 to "yes", and re-run configure.
3437
3438 END
3439     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3440   fi
3441 fi
3442
3443 # Make sure we can run config.sub.
3444 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3445   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3446
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3448 $as_echo_n "checking build system type... " >&6; }
3449 if ${ac_cv_build+:} false; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   ac_build_alias=$build_alias
3453 test "x$ac_build_alias" = x &&
3454   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3455 test "x$ac_build_alias" = x &&
3456   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3457 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3458   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3459
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3462 $as_echo "$ac_cv_build" >&6; }
3463 case $ac_cv_build in
3464 *-*-*) ;;
3465 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3466 esac
3467 build=$ac_cv_build
3468 ac_save_IFS=$IFS; IFS='-'
3469 set x $ac_cv_build
3470 shift
3471 build_cpu=$1
3472 build_vendor=$2
3473 shift; shift
3474 # Remember, the first character of IFS is used to create $*,
3475 # except with old shells:
3476 build_os=$*
3477 IFS=$ac_save_IFS
3478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3479
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3482 $as_echo_n "checking host system type... " >&6; }
3483 if ${ac_cv_host+:} false; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   if test "x$host_alias" = x; then
3487   ac_cv_host=$ac_cv_build
3488 else
3489   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3490     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3491 fi
3492
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3495 $as_echo "$ac_cv_host" >&6; }
3496 case $ac_cv_host in
3497 *-*-*) ;;
3498 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3499 esac
3500 host=$ac_cv_host
3501 ac_save_IFS=$IFS; IFS='-'
3502 set x $ac_cv_host
3503 shift
3504 host_cpu=$1
3505 host_vendor=$2
3506 shift; shift
3507 # Remember, the first character of IFS is used to create $*,
3508 # except with old shells:
3509 host_os=$*
3510 IFS=$ac_save_IFS
3511 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3512
3513
3514
3515
3516
3517
3518         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3519 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3520         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3521 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3522         hostname=`hostname`
3523         if test "$hostname"; then
3524            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3525 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3526         fi
3527
3528         date=`date +%Y%m%d-%H%M%S`
3529         if test "$?" != 0; then
3530            date=`date`
3531         fi
3532         if test "$date"; then
3533            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3534 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3535         fi
3536
3537
3538 DEPDIR="${am__leading_dot}deps"
3539
3540 ac_config_commands="$ac_config_commands depfiles"
3541
3542
3543 am_make=${MAKE-make}
3544 cat > confinc << 'END'
3545 am__doit:
3546         @echo this is the am__doit target
3547 .PHONY: am__doit
3548 END
3549 # If we don't find an include directive, just comment out the code.
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3551 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3552 am__include="#"
3553 am__quote=
3554 _am_result=none
3555 # First try GNU make style include.
3556 echo "include confinc" > confmf
3557 # Ignore all kinds of additional output from 'make'.
3558 case `$am_make -s -f confmf 2> /dev/null` in #(
3559 *the\ am__doit\ target*)
3560   am__include=include
3561   am__quote=
3562   _am_result=GNU
3563   ;;
3564 esac
3565 # Now try BSD make style include.
3566 if test "$am__include" = "#"; then
3567    echo '.include "confinc"' > confmf
3568    case `$am_make -s -f confmf 2> /dev/null` in #(
3569    *the\ am__doit\ target*)
3570      am__include=.include
3571      am__quote="\""
3572      _am_result=BSD
3573      ;;
3574    esac
3575 fi
3576
3577
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3579 $as_echo "$_am_result" >&6; }
3580 rm -f confinc confmf
3581
3582 # Check whether --enable-dependency-tracking was given.
3583 if test "${enable_dependency_tracking+set}" = set; then :
3584   enableval=$enable_dependency_tracking;
3585 fi
3586
3587 if test "x$enable_dependency_tracking" != xno; then
3588   am_depcomp="$ac_aux_dir/depcomp"
3589   AMDEPBACKSLASH='\'
3590   am__nodep='_no'
3591 fi
3592  if test "x$enable_dependency_tracking" != xno; then
3593   AMDEP_TRUE=
3594   AMDEP_FALSE='#'
3595 else
3596   AMDEP_TRUE='#'
3597   AMDEP_FALSE=
3598 fi
3599
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 if test -n "$ac_tool_prefix"; then
3607   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if ${ac_cv_prog_CC+:} false; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   if test -n "$CC"; then
3615   ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622     for ac_exec_ext in '' $ac_executable_extensions; do
3623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626     break 2
3627   fi
3628 done
3629   done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3638 else
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 fi
3642
3643
3644 fi
3645 if test -z "$ac_cv_prog_CC"; then
3646   ac_ct_CC=$CC
3647   # Extract the first word of "gcc", so it can be a program name with args.
3648 set dummy gcc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   if test -n "$ac_ct_CC"; then
3655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
3661   test -z "$as_dir" && as_dir=.
3662     for ac_exec_ext in '' $ac_executable_extensions; do
3663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664     ac_cv_prog_ac_ct_CC="gcc"
3665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666     break 2
3667   fi
3668 done
3669   done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3675 if test -n "$ac_ct_CC"; then
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3677 $as_echo "$ac_ct_CC" >&6; }
3678 else
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 fi
3682
3683   if test "x$ac_ct_CC" = x; then
3684     CC=""
3685   else
3686     case $cross_compiling:$ac_tool_warned in
3687 yes:)
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3690 ac_tool_warned=yes ;;
3691 esac
3692     CC=$ac_ct_CC
3693   fi
3694 else
3695   CC="$ac_cv_prog_CC"
3696 fi
3697
3698 if test -z "$CC"; then
3699           if test -n "$ac_tool_prefix"; then
3700     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}cc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -n "$CC"; then
3708   ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_exec_ext in '' $ac_executable_extensions; do
3716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_CC="${ac_tool_prefix}cc"
3718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722   done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737   fi
3738 fi
3739 if test -z "$CC"; then
3740   # Extract the first word of "cc", so it can be a program name with args.
3741 set dummy cc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -n "$CC"; then
3748   ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750   ac_prog_rejected=no
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756     for ac_exec_ext in '' $ac_executable_extensions; do
3757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3759        ac_prog_rejected=yes
3760        continue
3761      fi
3762     ac_cv_prog_CC="cc"
3763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764     break 2
3765   fi
3766 done
3767   done
3768 IFS=$as_save_IFS
3769
3770 if test $ac_prog_rejected = yes; then
3771   # We found a bogon in the path, so make sure we never use it.
3772   set dummy $ac_cv_prog_CC
3773   shift
3774   if test $# != 0; then
3775     # We chose a different compiler from the bogus one.
3776     # However, it has the same basename, so the bogon will be chosen
3777     # first if we set CC to just the basename; use the full file name.
3778     shift
3779     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3780   fi
3781 fi
3782 fi
3783 fi
3784 CC=$ac_cv_prog_CC
3785 if test -n "$CC"; then
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 $as_echo "$CC" >&6; }
3788 else
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791 fi
3792
3793
3794 fi
3795 if test -z "$CC"; then
3796   if test -n "$ac_tool_prefix"; then
3797   for ac_prog in cl.exe
3798   do
3799     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_CC+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   if test -n "$CC"; then
3807   ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814     for ac_exec_ext in '' $ac_executable_extensions; do
3815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821   done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3830 else
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835
3836     test -n "$CC" && break
3837   done
3838 fi
3839 if test -z "$CC"; then
3840   ac_ct_CC=$CC
3841   for ac_prog in cl.exe
3842 do
3843   # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3848   $as_echo_n "(cached) " >&6
3849 else
3850   if test -n "$ac_ct_CC"; then
3851   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858     for ac_exec_ext in '' $ac_executable_extensions; do
3859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_prog_ac_ct_CC="$ac_prog"
3861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865   done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
3870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3871 if test -n "$ac_ct_CC"; then
3872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3873 $as_echo "$ac_ct_CC" >&6; }
3874 else
3875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 fi
3878
3879
3880   test -n "$ac_ct_CC" && break
3881 done
3882
3883   if test "x$ac_ct_CC" = x; then
3884     CC=""
3885   else
3886     case $cross_compiling:$ac_tool_warned in
3887 yes:)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3891 esac
3892     CC=$ac_ct_CC
3893   fi
3894 fi
3895
3896 fi
3897
3898
3899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "no acceptable C compiler found in \$PATH
3902 See \`config.log' for more details" "$LINENO" 5; }
3903
3904 # Provide some information about the compiler.
3905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3906 set X $ac_compile
3907 ac_compiler=$2
3908 for ac_option in --version -v -V -qversion; do
3909   { { ac_try="$ac_compiler $ac_option >&5"
3910 case "(($ac_try" in
3911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912   *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3917   ac_status=$?
3918   if test -s conftest.err; then
3919     sed '10a\
3920 ... rest of stderr output deleted ...
3921          10q' conftest.err >conftest.er1
3922     cat conftest.er1 >&5
3923   fi
3924   rm -f conftest.er1 conftest.err
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }
3927 done
3928
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 ac_clean_files_save=$ac_clean_files
3941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3942 # Try to create an executable without -o first, disregard a.out.
3943 # It will help us diagnose broken compilers, and finding out an intuition
3944 # of exeext.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3946 $as_echo_n "checking whether the C compiler works... " >&6; }
3947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3948
3949 # The possible output files:
3950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3951
3952 ac_rmfiles=
3953 for ac_file in $ac_files
3954 do
3955   case $ac_file in
3956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3958   esac
3959 done
3960 rm -f $ac_rmfiles
3961
3962 if { { ac_try="$ac_link_default"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969   (eval "$ac_link_default") 2>&5
3970   ac_status=$?
3971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972   test $ac_status = 0; }; then :
3973   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3975 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3976 # so that the user can short-circuit this test for compilers unknown to
3977 # Autoconf.
3978 for ac_file in $ac_files ''
3979 do
3980   test -f "$ac_file" || continue
3981   case $ac_file in
3982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3983         ;;
3984     [ab].out )
3985         # We found the default executable, but exeext='' is most
3986         # certainly right.
3987         break;;
3988     *.* )
3989         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3990         then :; else
3991            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992         fi
3993         # We set ac_cv_exeext here because the later test for it is not
3994         # safe: cross compilers may not add the suffix if given an `-o'
3995         # argument, so we may need to know it at that point already.
3996         # Even if this section looks crufty: it has the advantage of
3997         # actually working.
3998         break;;
3999     * )
4000         break;;
4001   esac
4002 done
4003 test "$ac_cv_exeext" = no && ac_cv_exeext=
4004
4005 else
4006   ac_file=''
4007 fi
4008 if test -z "$ac_file"; then :
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error 77 "C compiler cannot create executables
4017 See \`config.log' for more details" "$LINENO" 5; }
4018 else
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020 $as_echo "yes" >&6; }
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4023 $as_echo_n "checking for C compiler default output file name... " >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4025 $as_echo "$ac_file" >&6; }
4026 ac_exeext=$ac_cv_exeext
4027
4028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4029 ac_clean_files=$ac_clean_files_save
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4031 $as_echo_n "checking for suffix of executables... " >&6; }
4032 if { { ac_try="$ac_link"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039   (eval "$ac_link") 2>&5
4040   ac_status=$?
4041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042   test $ac_status = 0; }; then :
4043   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4044 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4045 # work properly (i.e., refer to `conftest.exe'), while it won't with
4046 # `rm'.
4047 for ac_file in conftest.exe conftest conftest.*; do
4048   test -f "$ac_file" || continue
4049   case $ac_file in
4050     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4051     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4052           break;;
4053     * ) break;;
4054   esac
4055 done
4056 else
4057   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4060 See \`config.log' for more details" "$LINENO" 5; }
4061 fi
4062 rm -f conftest conftest$ac_cv_exeext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4064 $as_echo "$ac_cv_exeext" >&6; }
4065
4066 rm -f conftest.$ac_ext
4067 EXEEXT=$ac_cv_exeext
4068 ac_exeext=$EXEEXT
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071 #include <stdio.h>
4072 int
4073 main ()
4074 {
4075 FILE *f = fopen ("conftest.out", "w");
4076  return ferror (f) || fclose (f) != 0;
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 ac_clean_files="$ac_clean_files conftest.out"
4083 # Check that the compiler produces executables we can run.  If not, either
4084 # the compiler is broken, or we cross compile.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4086 $as_echo_n "checking whether we are cross compiling... " >&6; }
4087 if test "$cross_compiling" != yes; then
4088   { { ac_try="$ac_link"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095   (eval "$ac_link") 2>&5
4096   ac_status=$?
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }
4099   if { ac_try='./conftest$ac_cv_exeext'
4100   { { case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106   (eval "$ac_try") 2>&5
4107   ac_status=$?
4108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109   test $ac_status = 0; }; }; then
4110     cross_compiling=no
4111   else
4112     if test "$cross_compiling" = maybe; then
4113         cross_compiling=yes
4114     else
4115         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "cannot run C compiled programs.
4118 If you meant to cross compile, use \`--host'.
4119 See \`config.log' for more details" "$LINENO" 5; }
4120     fi
4121   fi
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4124 $as_echo "$cross_compiling" >&6; }
4125
4126 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4127 ac_clean_files=$ac_clean_files_save
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4129 $as_echo_n "checking for suffix of object files... " >&6; }
4130 if ${ac_cv_objext+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h.  */
4135
4136 int
4137 main ()
4138 {
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.o conftest.obj
4145 if { { ac_try="$ac_compile"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 $as_echo "$ac_try_echo"; } >&5
4152   (eval "$ac_compile") 2>&5
4153   ac_status=$?
4154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155   test $ac_status = 0; }; then :
4156   for ac_file in conftest.o conftest.obj conftest.*; do
4157   test -f "$ac_file" || continue;
4158   case $ac_file in
4159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4160     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4161        break;;
4162   esac
4163 done
4164 else
4165   $as_echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
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 object files: cannot compile
4171 See \`config.log' for more details" "$LINENO" 5; }
4172 fi
4173 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4176 $as_echo "$ac_cv_objext" >&6; }
4177 OBJEXT=$ac_cv_objext
4178 ac_objext=$OBJEXT
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4180 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4181 if ${ac_cv_c_compiler_gnu+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h.  */
4186
4187 int
4188 main ()
4189 {
4190 #ifndef __GNUC__
4191        choke me
4192 #endif
4193
4194   ;
4195   return 0;
4196 }
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199   ac_compiler_gnu=yes
4200 else
4201   ac_compiler_gnu=no
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4205
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4208 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4209 if test $ac_compiler_gnu = yes; then
4210   GCC=yes
4211 else
4212   GCC=
4213 fi
4214 ac_test_CFLAGS=${CFLAGS+set}
4215 ac_save_CFLAGS=$CFLAGS
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4217 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4218 if ${ac_cv_prog_cc_g+:} false; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   ac_save_c_werror_flag=$ac_c_werror_flag
4222    ac_c_werror_flag=yes
4223    ac_cv_prog_cc_g=no
4224    CFLAGS="-g"
4225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227
4228 int
4229 main ()
4230 {
4231
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237   ac_cv_prog_cc_g=yes
4238 else
4239   CFLAGS=""
4240       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242
4243 int
4244 main ()
4245 {
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252
4253 else
4254   ac_c_werror_flag=$ac_save_c_werror_flag
4255          CFLAGS="-g"
4256          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"; then :
4268   ac_cv_prog_cc_g=yes
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275    ac_c_werror_flag=$ac_save_c_werror_flag
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4278 $as_echo "$ac_cv_prog_cc_g" >&6; }
4279 if test "$ac_test_CFLAGS" = set; then
4280   CFLAGS=$ac_save_CFLAGS
4281 elif test $ac_cv_prog_cc_g = yes; then
4282   if test "$GCC" = yes; then
4283     CFLAGS="-g -O2"
4284   else
4285     CFLAGS="-g"
4286   fi
4287 else
4288   if test "$GCC" = yes; then
4289     CFLAGS="-O2"
4290   else
4291     CFLAGS=
4292   fi
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4295 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4296 if ${ac_cv_prog_cc_c89+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   ac_cv_prog_cc_c89=no
4300 ac_save_CC=$CC
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h.  */
4303 #include <stdarg.h>
4304 #include <stdio.h>
4305 struct stat;
4306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4307 struct buf { int x; };
4308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4309 static char *e (p, i)
4310      char **p;
4311      int i;
4312 {
4313   return p[i];
4314 }
4315 static char *f (char * (*g) (char **, int), char **p, ...)
4316 {
4317   char *s;
4318   va_list v;
4319   va_start (v,p);
4320   s = g (p, va_arg (v,int));
4321   va_end (v);
4322   return s;
4323 }
4324
4325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4326    function prototypes and stuff, but not '\xHH' hex character constants.
4327    These don't provoke an error unfortunately, instead are silently treated
4328    as 'x'.  The following induces an error, until -std is added to get
4329    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4330    array size at least.  It's necessary to write '\x00'==0 to get something
4331    that's true only with -std.  */
4332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4333
4334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4335    inside strings and character constants.  */
4336 #define FOO(x) 'x'
4337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4338
4339 int test (int i, double x);
4340 struct s1 {int (*f) (int a);};
4341 struct s2 {int (*f) (double a);};
4342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4343 int argc;
4344 char **argv;
4345 int
4346 main ()
4347 {
4348 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4349   ;
4350   return 0;
4351 }
4352 _ACEOF
4353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4354         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4355 do
4356   CC="$ac_save_CC $ac_arg"
4357   if ac_fn_c_try_compile "$LINENO"; then :
4358   ac_cv_prog_cc_c89=$ac_arg
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext
4361   test "x$ac_cv_prog_cc_c89" != "xno" && break
4362 done
4363 rm -f conftest.$ac_ext
4364 CC=$ac_save_CC
4365
4366 fi
4367 # AC_CACHE_VAL
4368 case "x$ac_cv_prog_cc_c89" in
4369   x)
4370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4371 $as_echo "none needed" >&6; } ;;
4372   xno)
4373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4374 $as_echo "unsupported" >&6; } ;;
4375   *)
4376     CC="$CC $ac_cv_prog_cc_c89"
4377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4379 esac
4380 if test "x$ac_cv_prog_cc_c89" != xno; then :
4381
4382 fi
4383
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4396 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4397 if ${am_cv_prog_cc_c_o+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402
4403 int
4404 main ()
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411   # Make sure it works both with $CC and with simple cc.
4412   # Following AC_PROG_CC_C_O, we do the test twice because some
4413   # compilers refuse to overwrite an existing .o file with -o,
4414   # though they will create one.
4415   am_cv_prog_cc_c_o=yes
4416   for am_i in 1 2; do
4417     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4418    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4419    ac_status=$?
4420    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421    (exit $ac_status); } \
4422          && test -f conftest2.$ac_objext; then
4423       : OK
4424     else
4425       am_cv_prog_cc_c_o=no
4426       break
4427     fi
4428   done
4429   rm -f core conftest*
4430   unset am_i
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4433 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4434 if test "$am_cv_prog_cc_c_o" != yes; then
4435    # Losing compiler, so override with the script.
4436    # FIXME: It is wrong to rewrite CC.
4437    # But if we don't then we get into trouble of one sort or another.
4438    # A longer-term fix would be to have automake use am__CC in this case,
4439    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4440    CC="$am_aux_dir/compile $CC"
4441 fi
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447
4448
4449 depcc="$CC"   am_compiler_list=
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4452 $as_echo_n "checking dependency style of $depcc... " >&6; }
4453 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4457   # We make a subdir and do the tests there.  Otherwise we can end up
4458   # making bogus files that we don't know about and never remove.  For
4459   # instance it was reported that on HP-UX the gcc test will end up
4460   # making a dummy file named 'D' -- because '-MD' means "put the output
4461   # in D".
4462   rm -rf conftest.dir
4463   mkdir conftest.dir
4464   # Copy depcomp to subdir because otherwise we won't find it if we're
4465   # using a relative directory.
4466   cp "$am_depcomp" conftest.dir
4467   cd conftest.dir
4468   # We will build objects and dependencies in a subdirectory because
4469   # it helps to detect inapplicable dependency modes.  For instance
4470   # both Tru64's cc and ICC support -MD to output dependencies as a
4471   # side effect of compilation, but ICC will put the dependencies in
4472   # the current directory while Tru64 will put them in the object
4473   # directory.
4474   mkdir sub
4475
4476   am_cv_CC_dependencies_compiler_type=none
4477   if test "$am_compiler_list" = ""; then
4478      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4479   fi
4480   am__universal=false
4481   case " $depcc " in #(
4482      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4483      esac
4484
4485   for depmode in $am_compiler_list; do
4486     # Setup a source with many dependencies, because some compilers
4487     # like to wrap large dependency lists on column 80 (with \), and
4488     # we should not choose a depcomp mode which is confused by this.
4489     #
4490     # We need to recreate these files for each test, as the compiler may
4491     # overwrite some of them when testing with obscure command lines.
4492     # This happens at least with the AIX C compiler.
4493     : > sub/conftest.c
4494     for i in 1 2 3 4 5 6; do
4495       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4496       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4497       # Solaris 10 /bin/sh.
4498       echo '/* dummy */' > sub/conftst$i.h
4499     done
4500     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4501
4502     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4503     # mode.  It turns out that the SunPro C++ compiler does not properly
4504     # handle '-M -o', and we need to detect this.  Also, some Intel
4505     # versions had trouble with output in subdirs.
4506     am__obj=sub/conftest.${OBJEXT-o}
4507     am__minus_obj="-o $am__obj"
4508     case $depmode in
4509     gcc)
4510       # This depmode causes a compiler race in universal mode.
4511       test "$am__universal" = false || continue
4512       ;;
4513     nosideeffect)
4514       # After this tag, mechanisms are not by side-effect, so they'll
4515       # only be used when explicitly requested.
4516       if test "x$enable_dependency_tracking" = xyes; then
4517         continue
4518       else
4519         break
4520       fi
4521       ;;
4522     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4523       # This compiler won't grok '-c -o', but also, the minuso test has
4524       # not run yet.  These depmodes are late enough in the game, and
4525       # so weak that their functioning should not be impacted.
4526       am__obj=conftest.${OBJEXT-o}
4527       am__minus_obj=
4528       ;;
4529     none) break ;;
4530     esac
4531     if depmode=$depmode \
4532        source=sub/conftest.c object=$am__obj \
4533        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4534        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4535          >/dev/null 2>conftest.err &&
4536        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4537        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4538        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4539        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4540       # icc doesn't choke on unknown options, it will just issue warnings
4541       # or remarks (even with -Werror).  So we grep stderr for any message
4542       # that says an option was ignored or not supported.
4543       # When given -MP, icc 7.0 and 7.1 complain thusly:
4544       #   icc: Command line warning: ignoring option '-M'; no argument required
4545       # The diagnosis changed in icc 8.0:
4546       #   icc: Command line remark: option '-MP' not supported
4547       if (grep 'ignoring option' conftest.err ||
4548           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4549         am_cv_CC_dependencies_compiler_type=$depmode
4550         break
4551       fi
4552     fi
4553   done
4554
4555   cd ..
4556   rm -rf conftest.dir
4557 else
4558   am_cv_CC_dependencies_compiler_type=none
4559 fi
4560
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4563 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4564 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4565
4566  if
4567   test "x$enable_dependency_tracking" != xno \
4568   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4569   am__fastdepCC_TRUE=
4570   am__fastdepCC_FALSE='#'
4571 else
4572   am__fastdepCC_TRUE='#'
4573   am__fastdepCC_FALSE=
4574 fi
4575
4576
4577
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4585 # On Suns, sometimes $CPP names a directory.
4586 if test -n "$CPP" && test -d "$CPP"; then
4587   CPP=
4588 fi
4589 if test -z "$CPP"; then
4590   if ${ac_cv_prog_CPP+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593       # Double quotes because CPP needs to be expanded
4594     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595     do
4596       ac_preproc_ok=false
4597 for ac_c_preproc_warn_flag in '' yes
4598 do
4599   # Use a header file that comes with gcc, so configuring glibc
4600   # with a fresh cross-compiler works.
4601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602   # <limits.h> exists even on freestanding compilers.
4603   # On the NeXT, cc -E runs the code through the compiler's parser,
4604   # not just through cpp. "Syntax error" is here to catch this case.
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607 #ifdef __STDC__
4608 # include <limits.h>
4609 #else
4610 # include <assert.h>
4611 #endif
4612                      Syntax error
4613 _ACEOF
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4615
4616 else
4617   # Broken: fails on valid input.
4618 continue
4619 fi
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4621
4622   # OK, works on sane cases.  Now check whether nonexistent headers
4623   # can be detected and how.
4624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626 #include <ac_nonexistent.h>
4627 _ACEOF
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629   # Broken: success on invalid input.
4630 continue
4631 else
4632   # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4635 fi
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4637
4638 done
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4642   break
4643 fi
4644
4645     done
4646     ac_cv_prog_CPP=$CPP
4647
4648 fi
4649   CPP=$ac_cv_prog_CPP
4650 else
4651   ac_cv_prog_CPP=$CPP
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654 $as_echo "$CPP" >&6; }
4655 ac_preproc_ok=false
4656 for ac_c_preproc_warn_flag in '' yes
4657 do
4658   # Use a header file that comes with gcc, so configuring glibc
4659   # with a fresh cross-compiler works.
4660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661   # <limits.h> exists even on freestanding compilers.
4662   # On the NeXT, cc -E runs the code through the compiler's parser,
4663   # not just through cpp. "Syntax error" is here to catch this case.
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671                      Syntax error
4672 _ACEOF
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4674
4675 else
4676   # Broken: fails on valid input.
4677 continue
4678 fi
4679 rm -f conftest.err conftest.i conftest.$ac_ext
4680
4681   # OK, works on sane cases.  Now check whether nonexistent headers
4682   # can be detected and how.
4683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h.  */
4685 #include <ac_nonexistent.h>
4686 _ACEOF
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688   # Broken: success on invalid input.
4689 continue
4690 else
4691   # Passes both tests.
4692 ac_preproc_ok=:
4693 break
4694 fi
4695 rm -f conftest.err conftest.i conftest.$ac_ext
4696
4697 done
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.i conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then :
4701
4702 else
4703   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details" "$LINENO" 5; }
4707 fi
4708
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4717 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4718 if ${ac_cv_path_GREP+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   if test -z "$GREP"; then
4722   ac_path_GREP_found=false
4723   # Loop through the user's path and test for each of PROGNAME-LIST
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729     for ac_prog in grep ggrep; do
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4732       as_fn_executable_p "$ac_path_GREP" || continue
4733 # Check for GNU ac_path_GREP and select it if it is found.
4734   # Check for GNU $ac_path_GREP
4735 case `"$ac_path_GREP" --version 2>&1` in
4736 *GNU*)
4737   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4738 *)
4739   ac_count=0
4740   $as_echo_n 0123456789 >"conftest.in"
4741   while :
4742   do
4743     cat "conftest.in" "conftest.in" >"conftest.tmp"
4744     mv "conftest.tmp" "conftest.in"
4745     cp "conftest.in" "conftest.nl"
4746     $as_echo 'GREP' >> "conftest.nl"
4747     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749     as_fn_arith $ac_count + 1 && ac_count=$as_val
4750     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4751       # Best one so far, save it but keep looking for a better one
4752       ac_cv_path_GREP="$ac_path_GREP"
4753       ac_path_GREP_max=$ac_count
4754     fi
4755     # 10*(2^10) chars as input seems more than enough
4756     test $ac_count -gt 10 && break
4757   done
4758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761       $ac_path_GREP_found && break 3
4762     done
4763   done
4764   done
4765 IFS=$as_save_IFS
4766   if test -z "$ac_cv_path_GREP"; then
4767     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768   fi
4769 else
4770   ac_cv_path_GREP=$GREP
4771 fi
4772
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4775 $as_echo "$ac_cv_path_GREP" >&6; }
4776  GREP="$ac_cv_path_GREP"
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4780 $as_echo_n "checking for egrep... " >&6; }
4781 if ${ac_cv_path_EGREP+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4785    then ac_cv_path_EGREP="$GREP -E"
4786    else
4787      if test -z "$EGREP"; then
4788   ac_path_EGREP_found=false
4789   # Loop through the user's path and test for each of PROGNAME-LIST
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795     for ac_prog in egrep; do
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4798       as_fn_executable_p "$ac_path_EGREP" || continue
4799 # Check for GNU ac_path_EGREP and select it if it is found.
4800   # Check for GNU $ac_path_EGREP
4801 case `"$ac_path_EGREP" --version 2>&1` in
4802 *GNU*)
4803   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804 *)
4805   ac_count=0
4806   $as_echo_n 0123456789 >"conftest.in"
4807   while :
4808   do
4809     cat "conftest.in" "conftest.in" >"conftest.tmp"
4810     mv "conftest.tmp" "conftest.in"
4811     cp "conftest.in" "conftest.nl"
4812     $as_echo 'EGREP' >> "conftest.nl"
4813     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815     as_fn_arith $ac_count + 1 && ac_count=$as_val
4816     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4817       # Best one so far, save it but keep looking for a better one
4818       ac_cv_path_EGREP="$ac_path_EGREP"
4819       ac_path_EGREP_max=$ac_count
4820     fi
4821     # 10*(2^10) chars as input seems more than enough
4822     test $ac_count -gt 10 && break
4823   done
4824   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825 esac
4826
4827       $ac_path_EGREP_found && break 3
4828     done
4829   done
4830   done
4831 IFS=$as_save_IFS
4832   if test -z "$ac_cv_path_EGREP"; then
4833     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834   fi
4835 else
4836   ac_cv_path_EGREP=$EGREP
4837 fi
4838
4839    fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4842 $as_echo "$ac_cv_path_EGREP" >&6; }
4843  EGREP="$ac_cv_path_EGREP"
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4847 $as_echo_n "checking for ANSI C header files... " >&6; }
4848 if ${ac_cv_header_stdc+:} false; then :
4849   $as_echo_n "(cached) " >&6
4850 else
4851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h.  */
4853 #include <stdlib.h>
4854 #include <stdarg.h>
4855 #include <string.h>
4856 #include <float.h>
4857
4858 int
4859 main ()
4860 {
4861
4862   ;
4863   return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867   ac_cv_header_stdc=yes
4868 else
4869   ac_cv_header_stdc=no
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872
4873 if test $ac_cv_header_stdc = yes; then
4874   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h.  */
4877 #include <string.h>
4878
4879 _ACEOF
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881   $EGREP "memchr" >/dev/null 2>&1; then :
4882
4883 else
4884   ac_cv_header_stdc=no
4885 fi
4886 rm -f conftest*
4887
4888 fi
4889
4890 if test $ac_cv_header_stdc = yes; then
4891   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h.  */
4894 #include <stdlib.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898   $EGREP "free" >/dev/null 2>&1; then :
4899
4900 else
4901   ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4909   if test "$cross_compiling" = yes; then :
4910   :
4911 else
4912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h.  */
4914 #include <ctype.h>
4915 #include <stdlib.h>
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 #else
4920 # define ISLOWER(c) \
4921                    (('a' <= (c) && (c) <= 'i') \
4922                      || ('j' <= (c) && (c) <= 'r') \
4923                      || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925 #endif
4926
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 int
4929 main ()
4930 {
4931   int i;
4932   for (i = 0; i < 256; i++)
4933     if (XOR (islower (i), ISLOWER (i))
4934         || toupper (i) != TOUPPER (i))
4935       return 2;
4936   return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_run "$LINENO"; then :
4940
4941 else
4942   ac_cv_header_stdc=no
4943 fi
4944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4945   conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 fi
4947
4948 fi
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4951 $as_echo "$ac_cv_header_stdc" >&6; }
4952 if test $ac_cv_header_stdc = yes; then
4953
4954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4955
4956 fi
4957
4958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960                   inttypes.h stdint.h unistd.h
4961 do :
4962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4964 "
4965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4966   cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 _ACEOF
4969
4970 fi
4971
4972 done
4973
4974
4975
4976   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4977 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4978   MINIX=yes
4979 else
4980   MINIX=
4981 fi
4982
4983
4984   if test "$MINIX" = yes; then
4985
4986 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4987
4988
4989 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4990
4991
4992 $as_echo "#define _MINIX 1" >>confdefs.h
4993
4994   fi
4995
4996
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4998 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4999 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004
5005 #         define __EXTENSIONS__ 1
5006           $ac_includes_default
5007 int
5008 main ()
5009 {
5010
5011   ;
5012   return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016   ac_cv_safe_to_define___extensions__=yes
5017 else
5018   ac_cv_safe_to_define___extensions__=no
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5023 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5024   test $ac_cv_safe_to_define___extensions__ = yes &&
5025     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5026
5027   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5028
5029   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5030
5031   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5032
5033   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5034
5035
5036
5037
5038 # Before we do anything with the C compiler, we first save the user's
5039 # CFLAGS (they are restored at the end of the configure script).  This
5040 # is because some configure checks don't work with -Werror, but we'd
5041 # like to use -Werror with our build.
5042 CFLAGS_orig=$CFLAGS
5043 CFLAGS=
5044
5045 # Some status variables.
5046 have_gpg_error=no
5047 have_libgcrypt=no
5048 have_libassuan=no
5049 have_ksba=no
5050 have_ntbtls=no
5051 have_gnutls=no
5052 have_sqlite=no
5053 have_npth=no
5054 have_libusb=no
5055 have_system_resolver=no
5056 gnupg_have_ldap="n/a"
5057
5058 use_zip=yes
5059 use_bzip2=yes
5060 use_exec=yes
5061 use_trust_models=yes
5062 use_tofu=yes
5063 use_libdns=yes
5064 card_support=yes
5065 use_ccid_driver=auto
5066 dirmngr_auto_start=yes
5067 use_tls_library=no
5068 large_secmem=no
5069 show_tor_support=no
5070
5071
5072
5073    build_gpg=yes
5074
5075       # Check whether --enable-gpg was given.
5076 if test "${enable_gpg+set}" = set; then :
5077   enableval=$enable_gpg; build_gpg=$enableval
5078 else
5079   build_gpg=yes
5080 fi
5081
5082
5083    case "$build_gpg" in
5084          no|yes)
5085            ;;
5086          *)
5087            as_fn_error $? "only yes or no allowed for feature --enable-gpg" "$LINENO" 5
5088            ;;
5089    esac
5090
5091
5092
5093    build_gpgsm=yes
5094
5095       # Check whether --enable-gpgsm was given.
5096 if test "${enable_gpgsm+set}" = set; then :
5097   enableval=$enable_gpgsm; build_gpgsm=$enableval
5098 else
5099   build_gpgsm=yes
5100 fi
5101
5102
5103    case "$build_gpgsm" in
5104          no|yes)
5105            ;;
5106          *)
5107            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5108            ;;
5109    esac
5110
5111
5112 # The agent is a required part and can't be disabled anymore.
5113 build_agent=yes
5114
5115    build_scdaemon=yes
5116
5117       # Check whether --enable-scdaemon was given.
5118 if test "${enable_scdaemon+set}" = set; then :
5119   enableval=$enable_scdaemon; build_scdaemon=$enableval
5120 else
5121   build_scdaemon=yes
5122 fi
5123
5124
5125    case "$build_scdaemon" in
5126          no|yes)
5127            ;;
5128          *)
5129            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5130            ;;
5131    esac
5132
5133
5134
5135    build_g13=no
5136
5137       # Check whether --enable-g13 was given.
5138 if test "${enable_g13+set}" = set; then :
5139   enableval=$enable_g13; build_g13=$enableval
5140 else
5141   build_g13=no
5142 fi
5143
5144
5145    case "$build_g13" in
5146          no|yes)
5147            ;;
5148          *)
5149            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5150            ;;
5151    esac
5152
5153
5154
5155    build_dirmngr=yes
5156
5157       # Check whether --enable-dirmngr was given.
5158 if test "${enable_dirmngr+set}" = set; then :
5159   enableval=$enable_dirmngr; build_dirmngr=$enableval
5160 else
5161   build_dirmngr=yes
5162 fi
5163
5164
5165    case "$build_dirmngr" in
5166          no|yes)
5167            ;;
5168          *)
5169            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5170            ;;
5171    esac
5172
5173
5174
5175    build_tools=yes
5176
5177       # Check whether --enable-tools was given.
5178 if test "${enable_tools+set}" = set; then :
5179   enableval=$enable_tools; build_tools=$enableval
5180 else
5181   build_tools=yes
5182 fi
5183
5184
5185    case "$build_tools" in
5186          no|yes)
5187            ;;
5188          *)
5189            as_fn_error $? "only yes or no allowed for feature --enable-tools" "$LINENO" 5
5190            ;;
5191    esac
5192
5193
5194
5195    build_doc=yes
5196
5197       # Check whether --enable-doc was given.
5198 if test "${enable_doc+set}" = set; then :
5199   enableval=$enable_doc; build_doc=$enableval
5200 else
5201   build_doc=yes
5202 fi
5203
5204
5205    case "$build_doc" in
5206          no|yes)
5207            ;;
5208          *)
5209            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5210            ;;
5211    esac
5212
5213
5214
5215    build_symcryptrun=no
5216
5217       # Check whether --enable-symcryptrun was given.
5218 if test "${enable_symcryptrun+set}" = set; then :
5219   enableval=$enable_symcryptrun; build_symcryptrun=$enableval
5220 else
5221   build_symcryptrun=no
5222 fi
5223
5224
5225    case "$build_symcryptrun" in
5226          no|yes)
5227            ;;
5228          *)
5229            as_fn_error $? "only yes or no allowed for feature --enable-symcryptrun" "$LINENO" 5
5230            ;;
5231    esac
5232
5233
5234 # We use gpgtar to unpack test data, hence we always build it.  If the
5235 # user opts out, we simply don't install it.
5236
5237    build_gpgtar=yes
5238
5239       # Check whether --enable-gpgtar was given.
5240 if test "${enable_gpgtar+set}" = set; then :
5241   enableval=$enable_gpgtar; build_gpgtar=$enableval
5242 else
5243   build_gpgtar=yes
5244 fi
5245
5246
5247    case "$build_gpgtar" in
5248          no|yes)
5249            ;;
5250          *)
5251            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5252            ;;
5253    esac
5254
5255
5256
5257    build_wks_tools=no
5258
5259       # Check whether --enable-wks-tools was given.
5260 if test "${enable_wks_tools+set}" = set; then :
5261   enableval=$enable_wks_tools; build_wks_tools=$enableval
5262 else
5263   build_wks_tools=no
5264 fi
5265
5266
5267    case "$build_wks_tools" in
5268          no|yes)
5269            ;;
5270          *)
5271            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5272            ;;
5273    esac
5274
5275
5276
5277
5278
5279
5280
5281 cat >>confdefs.h <<_ACEOF
5282 #define PACKAGE "$PACKAGE"
5283 _ACEOF
5284
5285
5286 cat >>confdefs.h <<_ACEOF
5287 #define PACKAGE_GT "$PACKAGE_GT"
5288 _ACEOF
5289
5290
5291 cat >>confdefs.h <<_ACEOF
5292 #define VERSION "$VERSION"
5293 _ACEOF
5294
5295
5296 cat >>confdefs.h <<_ACEOF
5297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5298 _ACEOF
5299
5300
5301 cat >>confdefs.h <<_ACEOF
5302 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5303 _ACEOF
5304
5305
5306 cat >>confdefs.h <<_ACEOF
5307 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5308 _ACEOF
5309
5310
5311 cat >>confdefs.h <<_ACEOF
5312 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5313 _ACEOF
5314
5315
5316
5317
5318 # The default is to use the modules from this package and the few
5319 # other packages in a standard place; i.e where this package gets
5320 # installed.  With these options it is possible to override these
5321 # ${prefix} depended values with fixed paths, which can't be replaced
5322 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5323
5324 # Check whether --with-agent-pgm was given.
5325 if test "${with_agent_pgm+set}" = set; then :
5326   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5327 else
5328   GNUPG_AGENT_PGM=""
5329 fi
5330
5331
5332  if test -n "$GNUPG_AGENT_PGM"; then
5333   GNUPG_AGENT_PGM_TRUE=
5334   GNUPG_AGENT_PGM_FALSE='#'
5335 else
5336   GNUPG_AGENT_PGM_TRUE='#'
5337   GNUPG_AGENT_PGM_FALSE=
5338 fi
5339
5340 show_gnupg_agent_pgm="(default)"
5341 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5342
5343
5344 # Check whether --with-pinentry-pgm was given.
5345 if test "${with_pinentry_pgm+set}" = set; then :
5346   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5347 else
5348   GNUPG_PINENTRY_PGM=""
5349 fi
5350
5351
5352  if test -n "$GNUPG_PINENTRY_PGM"; then
5353   GNUPG_PINENTRY_PGM_TRUE=
5354   GNUPG_PINENTRY_PGM_FALSE='#'
5355 else
5356   GNUPG_PINENTRY_PGM_TRUE='#'
5357   GNUPG_PINENTRY_PGM_FALSE=
5358 fi
5359
5360 show_gnupg_pinentry_pgm="(default)"
5361 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5362
5363
5364
5365 # Check whether --with-scdaemon-pgm was given.
5366 if test "${with_scdaemon_pgm+set}" = set; then :
5367   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5368 else
5369   GNUPG_SCDAEMON_PGM=""
5370 fi
5371
5372
5373  if test -n "$GNUPG_SCDAEMON_PGM"; then
5374   GNUPG_SCDAEMON_PGM_TRUE=
5375   GNUPG_SCDAEMON_PGM_FALSE='#'
5376 else
5377   GNUPG_SCDAEMON_PGM_TRUE='#'
5378   GNUPG_SCDAEMON_PGM_FALSE=
5379 fi
5380
5381 show_gnupg_scdaemon_pgm="(default)"
5382 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5383
5384
5385
5386 # Check whether --with-dirmngr-pgm was given.
5387 if test "${with_dirmngr_pgm+set}" = set; then :
5388   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5389 else
5390   GNUPG_DIRMNGR_PGM=""
5391 fi
5392
5393
5394  if test -n "$GNUPG_DIRMNGR_PGM"; then
5395   GNUPG_DIRMNGR_PGM_TRUE=
5396   GNUPG_DIRMNGR_PGM_FALSE='#'
5397 else
5398   GNUPG_DIRMNGR_PGM_TRUE='#'
5399   GNUPG_DIRMNGR_PGM_FALSE=
5400 fi
5401
5402 show_gnupg_dirmngr_pgm="(default)"
5403 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5404
5405
5406 # Check whether --with-protect-tool-pgm was given.
5407 if test "${with_protect_tool_pgm+set}" = set; then :
5408   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5409 else
5410   GNUPG_PROTECT_TOOL_PGM=""
5411 fi
5412
5413
5414  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5415   GNUPG_PROTECT_TOOL_PGM_TRUE=
5416   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5417 else
5418   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5419   GNUPG_PROTECT_TOOL_PGM_FALSE=
5420 fi
5421
5422 show_gnupg_protect_tool_pgm="(default)"
5423 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5424       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5425
5426
5427 # Check whether --with-dirmngr-ldap-pgm was given.
5428 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5429   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5430 else
5431   GNUPG_DIRMNGR_LDAP_PGM=""
5432 fi
5433
5434
5435  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5436   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5437   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5438 else
5439   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5440   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5441 fi
5442
5443 show_gnupg_dirmngr_ldap_pgm="(default)"
5444 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5445       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5446
5447 #
5448 # On some platforms gpg2 is usually installed as gpg without using a
5449 # symlink.  For correct operation of gpgconf it needs to know the
5450 # installed name of gpg.  This option sets "gpg2"'s installed name to
5451 # just "gpg".  Note that it might be required to rename gpg2 to gpg
5452 # manually after the build process.
5453 #
5454 # Check whether --enable-gpg2-is-gpg was given.
5455 if test "${enable_gpg2_is_gpg+set}" = set; then :
5456   enableval=$enable_gpg2_is_gpg; gpg2_is_gpg=$enableval
5457 fi
5458
5459 if test "$gpg2_is_gpg" != "yes"; then
5460
5461 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5462
5463 fi
5464  if test "$gpg2_is_gpg" != "yes"; then
5465   USE_GPG2_HACK_TRUE=
5466   USE_GPG2_HACK_FALSE='#'
5467 else
5468   USE_GPG2_HACK_TRUE='#'
5469   USE_GPG2_HACK_FALSE=
5470 fi
5471
5472
5473
5474 # SELinux support includes tracking of sensitive files to avoid
5475 # leaking their contents through processing these files by gpg itself
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5477 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5478 # Check whether --enable-selinux-support was given.
5479 if test "${enable_selinux_support+set}" = set; then :
5480   enableval=$enable_selinux_support; selinux_support=$enableval
5481 else
5482   selinux_support=no
5483 fi
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5486 $as_echo "$selinux_support" >&6; }
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5490 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5491 # Check whether --enable-large-secmem was given.
5492 if test "${enable_large_secmem+set}" = set; then :
5493   enableval=$enable_large_secmem; large_secmem=$enableval
5494 else
5495   large_secmem=no
5496 fi
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5499 $as_echo "$large_secmem" >&6; }
5500 if test "$large_secmem" = yes ; then
5501    SECMEM_BUFFER_SIZE=65536
5502 else
5503    SECMEM_BUFFER_SIZE=32768
5504 fi
5505
5506 cat >>confdefs.h <<_ACEOF
5507 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5508 _ACEOF
5509
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5512 $as_echo_n "checking whether to enable trust models... " >&6; }
5513 # Check whether --enable-trust-models was given.
5514 if test "${enable_trust_models+set}" = set; then :
5515   enableval=$enable_trust_models; use_trust_models=$enableval
5516 fi
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5519 $as_echo "$use_trust_models" >&6; }
5520 if test "$use_trust_models" = no ; then
5521
5522 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5523
5524 fi
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5527 $as_echo_n "checking whether to enable TOFU... " >&6; }
5528 # Check whether --enable-tofu was given.
5529 if test "${enable_tofu+set}" = set; then :
5530   enableval=$enable_tofu; use_tofu=$enableval
5531 else
5532   use_tofu=$use_trust_models
5533 fi
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5536 $as_echo "$use_tofu" >&6; }
5537 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5538     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5539 fi
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5542 $as_echo_n "checking whether to enable libdns... " >&6; }
5543 # Check whether --enable-libdns was given.
5544 if test "${enable_libdns+set}" = set; then :
5545   enableval=$enable_libdns; use_libdns=$enableval
5546 else
5547   use_libdns=yes
5548 fi
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5551 $as_echo "$use_libdns" >&6; }
5552 if test x"$use_libdns" = xyes ; then
5553
5554 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5555
5556 fi
5557  if test "$use_libdns" = yes; then
5558   USE_LIBDNS_TRUE=
5559   USE_LIBDNS_FALSE='#'
5560 else
5561   USE_LIBDNS_TRUE='#'
5562   USE_LIBDNS_FALSE=
5563 fi
5564
5565
5566
5567 #
5568 # Options to disable algorithm
5569 #
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5572 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5573    # Check whether --enable-gpg-rsa was given.
5574 if test "${enable_gpg_rsa+set}" = set; then :
5575   enableval=$enable_gpg_rsa;
5576 else
5577   enableval=yes
5578 fi
5579
5580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5581 $as_echo "$enableval" >&6; }
5582    if test x"$enableval" = xyes ; then
5583
5584 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5585
5586    fi
5587
5588 # Elgamal is a MUST algorithm
5589 # DSA is a MUST algorithm
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5591 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5592    # Check whether --enable-gpg-ecdh was given.
5593 if test "${enable_gpg_ecdh+set}" = set; then :
5594   enableval=$enable_gpg_ecdh;
5595 else
5596   enableval=yes
5597 fi
5598
5599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5600 $as_echo "$enableval" >&6; }
5601    if test x"$enableval" = xyes ; then
5602
5603 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5604
5605    fi
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5608 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5609    # Check whether --enable-gpg-ecdsa was given.
5610 if test "${enable_gpg_ecdsa+set}" = set; then :
5611   enableval=$enable_gpg_ecdsa;
5612 else
5613   enableval=yes
5614 fi
5615
5616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5617 $as_echo "$enableval" >&6; }
5618    if test x"$enableval" = xyes ; then
5619
5620 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5621
5622    fi
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5625 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5626    # Check whether --enable-gpg-eddsa was given.
5627 if test "${enable_gpg_eddsa+set}" = set; then :
5628   enableval=$enable_gpg_eddsa;
5629 else
5630   enableval=yes
5631 fi
5632
5633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5634 $as_echo "$enableval" >&6; }
5635    if test x"$enableval" = xyes ; then
5636
5637 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5638
5639    fi
5640
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5643 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5644    # Check whether --enable-gpg-idea was given.
5645 if test "${enable_gpg_idea+set}" = set; then :
5646   enableval=$enable_gpg_idea;
5647 else
5648   enableval=yes
5649 fi
5650
5651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5652 $as_echo "$enableval" >&6; }
5653    if test x"$enableval" = xyes ; then
5654
5655 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5656
5657    fi
5658
5659 # 3DES is a MUST algorithm
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5661 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5662    # Check whether --enable-gpg-cast5 was given.
5663 if test "${enable_gpg_cast5+set}" = set; then :
5664   enableval=$enable_gpg_cast5;
5665 else
5666   enableval=yes
5667 fi
5668
5669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5670 $as_echo "$enableval" >&6; }
5671    if test x"$enableval" = xyes ; then
5672
5673 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5674
5675    fi
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5678 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5679    # Check whether --enable-gpg-blowfish was given.
5680 if test "${enable_gpg_blowfish+set}" = set; then :
5681   enableval=$enable_gpg_blowfish;
5682 else
5683   enableval=yes
5684 fi
5685
5686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5687 $as_echo "$enableval" >&6; }
5688    if test x"$enableval" = xyes ; then
5689
5690 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5691
5692    fi
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5695 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5696    # Check whether --enable-gpg-aes128 was given.
5697 if test "${enable_gpg_aes128+set}" = set; then :
5698   enableval=$enable_gpg_aes128;
5699 else
5700   enableval=yes
5701 fi
5702
5703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5704 $as_echo "$enableval" >&6; }
5705    if test x"$enableval" = xyes ; then
5706
5707 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5708
5709    fi
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5712 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5713    # Check whether --enable-gpg-aes192 was given.
5714 if test "${enable_gpg_aes192+set}" = set; then :
5715   enableval=$enable_gpg_aes192;
5716 else
5717   enableval=yes
5718 fi
5719
5720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5721 $as_echo "$enableval" >&6; }
5722    if test x"$enableval" = xyes ; then
5723
5724 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5725
5726    fi
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5729 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5730    # Check whether --enable-gpg-aes256 was given.
5731 if test "${enable_gpg_aes256+set}" = set; then :
5732   enableval=$enable_gpg_aes256;
5733 else
5734   enableval=yes
5735 fi
5736
5737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5738 $as_echo "$enableval" >&6; }
5739    if test x"$enableval" = xyes ; then
5740
5741 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5742
5743    fi
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5746 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5747    # Check whether --enable-gpg-twofish was given.
5748 if test "${enable_gpg_twofish+set}" = set; then :
5749   enableval=$enable_gpg_twofish;
5750 else
5751   enableval=yes
5752 fi
5753
5754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5755 $as_echo "$enableval" >&6; }
5756    if test x"$enableval" = xyes ; then
5757
5758 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5759
5760    fi
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5763 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5764    # Check whether --enable-gpg-camellia128 was given.
5765 if test "${enable_gpg_camellia128+set}" = set; then :
5766   enableval=$enable_gpg_camellia128;
5767 else
5768   enableval=yes
5769 fi
5770
5771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5772 $as_echo "$enableval" >&6; }
5773    if test x"$enableval" = xyes ; then
5774
5775 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5776
5777    fi
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5780 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5781    # Check whether --enable-gpg-camellia192 was given.
5782 if test "${enable_gpg_camellia192+set}" = set; then :
5783   enableval=$enable_gpg_camellia192;
5784 else
5785   enableval=yes
5786 fi
5787
5788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5789 $as_echo "$enableval" >&6; }
5790    if test x"$enableval" = xyes ; then
5791
5792 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5793
5794    fi
5795
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5797 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5798    # Check whether --enable-gpg-camellia256 was given.
5799 if test "${enable_gpg_camellia256+set}" = set; then :
5800   enableval=$enable_gpg_camellia256;
5801 else
5802   enableval=yes
5803 fi
5804
5805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5806 $as_echo "$enableval" >&6; }
5807    if test x"$enableval" = xyes ; then
5808
5809 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5810
5811    fi
5812
5813
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5815 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5816    # Check whether --enable-gpg-md5 was given.
5817 if test "${enable_gpg_md5+set}" = set; then :
5818   enableval=$enable_gpg_md5;
5819 else
5820   enableval=yes
5821 fi
5822
5823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5824 $as_echo "$enableval" >&6; }
5825    if test x"$enableval" = xyes ; then
5826
5827 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5828
5829    fi
5830
5831 # SHA1 is a MUST algorithm
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5833 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5834    # Check whether --enable-gpg-rmd160 was given.
5835 if test "${enable_gpg_rmd160+set}" = set; then :
5836   enableval=$enable_gpg_rmd160;
5837 else
5838   enableval=yes
5839 fi
5840
5841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5842 $as_echo "$enableval" >&6; }
5843    if test x"$enableval" = xyes ; then
5844
5845 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5846
5847    fi
5848
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5850 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5851    # Check whether --enable-gpg-sha224 was given.
5852 if test "${enable_gpg_sha224+set}" = set; then :
5853   enableval=$enable_gpg_sha224;
5854 else
5855   enableval=yes
5856 fi
5857
5858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5859 $as_echo "$enableval" >&6; }
5860    if test x"$enableval" = xyes ; then
5861
5862 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
5863
5864    fi
5865
5866 # SHA256 is a MUST algorithm for GnuPG.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
5868 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
5869    # Check whether --enable-gpg-sha384 was given.
5870 if test "${enable_gpg_sha384+set}" = set; then :
5871   enableval=$enable_gpg_sha384;
5872 else
5873   enableval=yes
5874 fi
5875
5876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5877 $as_echo "$enableval" >&6; }
5878    if test x"$enableval" = xyes ; then
5879
5880 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
5881
5882    fi
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
5885 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
5886    # Check whether --enable-gpg-sha512 was given.
5887 if test "${enable_gpg_sha512+set}" = set; then :
5888   enableval=$enable_gpg_sha512;
5889 else
5890   enableval=yes
5891 fi
5892
5893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5894 $as_echo "$enableval" >&6; }
5895    if test x"$enableval" = xyes ; then
5896
5897 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
5898
5899    fi
5900
5901
5902
5903 # Allow disabling of zip support.
5904 # This is in general not a good idea because according to rfc4880 OpenPGP
5905 # implementations SHOULD support ZLIB.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
5907 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
5908 # Check whether --enable-zip was given.
5909 if test "${enable_zip+set}" = set; then :
5910   enableval=$enable_zip; use_zip=$enableval
5911 fi
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
5914 $as_echo "$use_zip" >&6; }
5915
5916 # Allow disabling of bzib2 support.
5917 # It is defined only after we confirm the library is available later
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
5919 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
5920 # Check whether --enable-bzip2 was given.
5921 if test "${enable_bzip2+set}" = set; then :
5922   enableval=$enable_bzip2; use_bzip2=$enableval
5923 fi
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
5926 $as_echo "$use_bzip2" >&6; }
5927
5928 # Configure option to allow or disallow execution of external
5929 # programs, like a photo viewer.
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
5931 $as_echo_n "checking whether to enable external program execution... " >&6; }
5932 # Check whether --enable-exec was given.
5933 if test "${enable_exec+set}" = set; then :
5934   enableval=$enable_exec; use_exec=$enableval
5935 fi
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
5938 $as_echo "$use_exec" >&6; }
5939 if test "$use_exec" = no ; then
5940
5941 $as_echo "#define NO_EXEC 1" >>confdefs.h
5942
5943 fi
5944
5945 if test "$use_exec" = yes ; then
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
5947 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
5948   # Check whether --enable-photo-viewers was given.
5949 if test "${enable_photo_viewers+set}" = set; then :
5950   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
5951
5952 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
5953
5954       fi
5955 else
5956   enableval=yes
5957 fi
5958
5959   gnupg_cv_enable_photo_viewers=$enableval
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5961 $as_echo "$enableval" >&6; }
5962
5963   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
5964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
5965 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
5966
5967 # Check whether --with-photo-viewer was given.
5968 if test "${with_photo_viewer+set}" = set; then :
5969   withval=$with_photo_viewer; if test "$withval" = yes ; then
5970            withval=no
5971         elif test "$withval" != no ; then
5972
5973 cat >>confdefs.h <<_ACEOF
5974 #define FIXED_PHOTO_VIEWER "$withval"
5975 _ACEOF
5976
5977         fi
5978 else
5979   withval=no
5980 fi
5981
5982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5983 $as_echo "$withval" >&6; }
5984   fi
5985 fi
5986
5987
5988 #
5989 # Check for the key/uid cache size.  This can't be zero, but can be
5990 # pretty small on embedded systems.  This is used for the gpg part.
5991 #
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
5993 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
5994 # Check whether --enable-key-cache was given.
5995 if test "${enable_key_cache+set}" = set; then :
5996   enableval=$enable_key_cache;
5997 else
5998   enableval=4096
5999 fi
6000
6001 if test "$enableval" = "no"; then
6002    enableval=5
6003 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6004    enableval=4096
6005 fi
6006 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6007 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6008    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6011 $as_echo "$key_cache_size" >&6; }
6012
6013 cat >>confdefs.h <<_ACEOF
6014 #define PK_UID_CACHE_SIZE $key_cache_size
6015 _ACEOF
6016
6017
6018
6019
6020 #
6021 # Check whether we want to use Linux capabilities
6022 #
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6024 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6025
6026 # Check whether --with-capabilities was given.
6027 if test "${with_capabilities+set}" = set; then :
6028   withval=$with_capabilities; use_capabilities="$withval"
6029 else
6030   use_capabilities=no
6031 fi
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6034 $as_echo "$use_capabilities" >&6; }
6035
6036 #
6037 # Check whether to disable the card support
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6039 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6040 # Check whether --enable-card-support was given.
6041 if test "${enable_card_support+set}" = set; then :
6042   enableval=$enable_card_support; card_support=$enableval
6043 fi
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6046 $as_echo "$card_support" >&6; }
6047 if test "$card_support" = yes ; then
6048
6049 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6050
6051 else
6052   build_scdaemon=no
6053 fi
6054
6055 #
6056 # Allow disabling of internal CCID support.
6057 # It is defined only after we confirm the library is available later
6058 #
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6060 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6061 # Check whether --enable-ccid-driver was given.
6062 if test "${enable_ccid_driver+set}" = set; then :
6063   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6064 fi
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6067 $as_echo "$use_ccid_driver" >&6; }
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6070 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6071 # Check whether --enable-dirmngr-auto-start was given.
6072 if test "${enable_dirmngr_auto_start+set}" = set; then :
6073   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6074 fi
6075
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6077 $as_echo "$dirmngr_auto_start" >&6; }
6078 if test "$dirmngr_auto_start" = yes ; then
6079
6080 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6081
6082 fi
6083
6084
6085 #
6086 # To avoid double inclusion of config.h which might happen at some
6087 # places, we add the usual double inclusion protection at the top of
6088 # config.h.
6089 #
6090
6091
6092 #
6093 # Stuff which goes at the bottom of config.h.
6094 #
6095
6096
6097
6098
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6100 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6101     # Check whether --enable-maintainer-mode was given.
6102 if test "${enable_maintainer_mode+set}" = set; then :
6103   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6104 else
6105   USE_MAINTAINER_MODE=no
6106 fi
6107
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6109 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6110    if test $USE_MAINTAINER_MODE = yes; then
6111   MAINTAINER_MODE_TRUE=
6112   MAINTAINER_MODE_FALSE='#'
6113 else
6114   MAINTAINER_MODE_TRUE='#'
6115   MAINTAINER_MODE_FALSE=
6116 fi
6117
6118   MAINT=$MAINTAINER_MODE_TRUE
6119
6120
6121
6122
6123 # Checks for programs.
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6125 $as_echo "$as_me: checking for programs" >&6;}
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6127 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6128 set x ${MAKE-make}
6129 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6130 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6131   $as_echo_n "(cached) " >&6
6132 else
6133   cat >conftest.make <<\_ACEOF
6134 SHELL = /bin/sh
6135 all:
6136         @echo '@@@%%%=$(MAKE)=@@@%%%'
6137 _ACEOF
6138 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6139 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6140   *@@@%%%=?*=@@@%%%*)
6141     eval ac_cv_prog_make_${ac_make}_set=yes;;
6142   *)
6143     eval ac_cv_prog_make_${ac_make}_set=no;;
6144 esac
6145 rm -f conftest.make
6146 fi
6147 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6149 $as_echo "yes" >&6; }
6150   SET_MAKE=
6151 else
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154   SET_MAKE="MAKE=${MAKE-make}"
6155 fi
6156
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6158 $as_echo_n "checking whether build environment is sane... " >&6; }
6159 # Reject unsafe characters in $srcdir or the absolute working directory
6160 # name.  Accept space and tab only in the latter.
6161 am_lf='
6162 '
6163 case `pwd` in
6164   *[\\\"\#\$\&\'\`$am_lf]*)
6165     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6166 esac
6167 case $srcdir in
6168   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6169     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6170 esac
6171
6172 # Do 'set' in a subshell so we don't clobber the current shell's
6173 # arguments.  Must try -L first in case configure is actually a
6174 # symlink; some systems play weird games with the mod time of symlinks
6175 # (eg FreeBSD returns the mod time of the symlink's containing
6176 # directory).
6177 if (
6178    am_has_slept=no
6179    for am_try in 1 2; do
6180      echo "timestamp, slept: $am_has_slept" > conftest.file
6181      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6182      if test "$*" = "X"; then
6183         # -L didn't work.
6184         set X `ls -t "$srcdir/configure" conftest.file`
6185      fi
6186      if test "$*" != "X $srcdir/configure conftest.file" \
6187         && test "$*" != "X conftest.file $srcdir/configure"; then
6188
6189         # If neither matched, then we have a broken ls.  This can happen
6190         # if, for instance, CONFIG_SHELL is bash and it inherits a
6191         # broken ls alias from the environment.  This has actually
6192         # happened.  Such a system could not be considered "sane".
6193         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6194   alias in your environment" "$LINENO" 5
6195      fi
6196      if test "$2" = conftest.file || test $am_try -eq 2; then
6197        break
6198      fi
6199      # Just in case.
6200      sleep 1
6201      am_has_slept=yes
6202    done
6203    test "$2" = conftest.file
6204    )
6205 then
6206    # Ok.
6207    :
6208 else
6209    as_fn_error $? "newly created file is older than distributed files!
6210 Check your system clock" "$LINENO" 5
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213 $as_echo "yes" >&6; }
6214 # If we didn't sleep, we still need to ensure time stamps of config.status and
6215 # generated files are strictly newer.
6216 am_sleep_pid=
6217 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6218   ( sleep 1 ) &
6219   am_sleep_pid=$!
6220 fi
6221
6222 rm -f conftest.file
6223
6224 missing_dir=`cd $ac_aux_dir && pwd`
6225
6226 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6227
6228
6229 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6230
6231
6232 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6233
6234
6235 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6236
6237
6238 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6239
6240 # Check whether --enable-silent-rules was given.
6241 if test "${enable_silent_rules+set}" = set; then :
6242   enableval=$enable_silent_rules;
6243 fi
6244
6245 case $enable_silent_rules in # (((
6246   yes) AM_DEFAULT_VERBOSITY=0;;
6247    no) AM_DEFAULT_VERBOSITY=1;;
6248     *) AM_DEFAULT_VERBOSITY=1;;
6249 esac
6250 am_make=${MAKE-make}
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6252 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6253 if ${am_cv_make_support_nested_variables+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   if $as_echo 'TRUE=$(BAR$(V))
6257 BAR0=false
6258 BAR1=true
6259 V=1
6260 am__doit:
6261         @$(TRUE)
6262 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6263   am_cv_make_support_nested_variables=yes
6264 else
6265   am_cv_make_support_nested_variables=no
6266 fi
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6269 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6270 if test $am_cv_make_support_nested_variables = yes; then
6271     AM_V='$(V)'
6272   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6273 else
6274   AM_V=$AM_DEFAULT_VERBOSITY
6275   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6276 fi
6277 AM_BACKSLASH='\'
6278
6279 for ac_prog in gawk mawk nawk awk
6280 do
6281   # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_AWK+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if test -n "$AWK"; then
6289   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_exec_ext in '' $ac_executable_extensions; do
6297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_AWK="$ac_prog"
6299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303   done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 AWK=$ac_cv_prog_AWK
6309 if test -n "$AWK"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6311 $as_echo "$AWK" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317
6318   test -n "$AWK" && break
6319 done
6320
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326 if test -n "$ac_tool_prefix"; then
6327   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_CC+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   if test -n "$CC"; then
6335   ac_cv_prog_CC="$CC" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349   done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 CC=$ac_cv_prog_CC
6355 if test -n "$CC"; then
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6357 $as_echo "$CC" >&6; }
6358 else
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363
6364 fi
6365 if test -z "$ac_cv_prog_CC"; then
6366   ac_ct_CC=$CC
6367   # Extract the first word of "gcc", so it can be a program name with args.
6368 set dummy gcc; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   if test -n "$ac_ct_CC"; then
6375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380   IFS=$as_save_IFS
6381   test -z "$as_dir" && as_dir=.
6382     for ac_exec_ext in '' $ac_executable_extensions; do
6383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384     ac_cv_prog_ac_ct_CC="gcc"
6385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386     break 2
6387   fi
6388 done
6389   done
6390 IFS=$as_save_IFS
6391
6392 fi
6393 fi
6394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6395 if test -n "$ac_ct_CC"; then
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6397 $as_echo "$ac_ct_CC" >&6; }
6398 else
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6401 fi
6402
6403   if test "x$ac_ct_CC" = x; then
6404     CC=""
6405   else
6406     case $cross_compiling:$ac_tool_warned in
6407 yes:)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6411 esac
6412     CC=$ac_ct_CC
6413   fi
6414 else
6415   CC="$ac_cv_prog_CC"
6416 fi
6417
6418 if test -z "$CC"; then
6419           if test -n "$ac_tool_prefix"; then
6420     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}cc; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_CC+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$CC"; then
6428   ac_cv_prog_CC="$CC" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437     ac_cv_prog_CC="${ac_tool_prefix}cc"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 CC=$ac_cv_prog_CC
6448 if test -n "$CC"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6450 $as_echo "$CC" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456
6457   fi
6458 fi
6459 if test -z "$CC"; then
6460   # Extract the first word of "cc", so it can be a program name with args.
6461 set dummy cc; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_CC+:} false; then :
6465   $as_echo_n "(cached) " >&6
6466 else
6467   if test -n "$CC"; then
6468   ac_cv_prog_CC="$CC" # Let the user override the test.
6469 else
6470   ac_prog_rejected=no
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476     for ac_exec_ext in '' $ac_executable_extensions; do
6477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6479        ac_prog_rejected=yes
6480        continue
6481      fi
6482     ac_cv_prog_CC="cc"
6483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487   done
6488 IFS=$as_save_IFS
6489
6490 if test $ac_prog_rejected = yes; then
6491   # We found a bogon in the path, so make sure we never use it.
6492   set dummy $ac_cv_prog_CC
6493   shift
6494   if test $# != 0; then
6495     # We chose a different compiler from the bogus one.
6496     # However, it has the same basename, so the bogon will be chosen
6497     # first if we set CC to just the basename; use the full file name.
6498     shift
6499     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6500   fi
6501 fi
6502 fi
6503 fi
6504 CC=$ac_cv_prog_CC
6505 if test -n "$CC"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6507 $as_echo "$CC" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$CC"; then
6516   if test -n "$ac_tool_prefix"; then
6517   for ac_prog in cl.exe
6518   do
6519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_CC+:} false; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   if test -n "$CC"; then
6527   ac_cv_prog_CC="$CC" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534     for ac_exec_ext in '' $ac_executable_extensions; do
6535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541   done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 CC=$ac_cv_prog_CC
6547 if test -n "$CC"; then
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6549 $as_echo "$CC" >&6; }
6550 else
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555
6556     test -n "$CC" && break
6557   done
6558 fi
6559 if test -z "$CC"; then
6560   ac_ct_CC=$CC
6561   for ac_prog in cl.exe
6562 do
6563   # Extract the first word of "$ac_prog", so it can be a program name with args.
6564 set dummy $ac_prog; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   if test -n "$ac_ct_CC"; then
6571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578     for ac_exec_ext in '' $ac_executable_extensions; do
6579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580     ac_cv_prog_ac_ct_CC="$ac_prog"
6581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585   done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6591 if test -n "$ac_ct_CC"; then
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6593 $as_echo "$ac_ct_CC" >&6; }
6594 else
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600   test -n "$ac_ct_CC" && break
6601 done
6602
6603   if test "x$ac_ct_CC" = x; then
6604     CC=""
6605   else
6606     case $cross_compiling:$ac_tool_warned in
6607 yes:)
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6610 ac_tool_warned=yes ;;
6611 esac
6612     CC=$ac_ct_CC
6613   fi
6614 fi
6615
6616 fi
6617
6618
6619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6621 as_fn_error $? "no acceptable C compiler found in \$PATH
6622 See \`config.log' for more details" "$LINENO" 5; }
6623
6624 # Provide some information about the compiler.
6625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6626 set X $ac_compile
6627 ac_compiler=$2
6628 for ac_option in --version -v -V -qversion; do
6629   { { ac_try="$ac_compiler $ac_option >&5"
6630 case "(($ac_try" in
6631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632   *) ac_try_echo=$ac_try;;
6633 esac
6634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6635 $as_echo "$ac_try_echo"; } >&5
6636   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6637   ac_status=$?
6638   if test -s conftest.err; then
6639     sed '10a\
6640 ... rest of stderr output deleted ...
6641          10q' conftest.err >conftest.er1
6642     cat conftest.er1 >&5
6643   fi
6644   rm -f conftest.er1 conftest.err
6645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646   test $ac_status = 0; }
6647 done
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6651 if ${ac_cv_c_compiler_gnu+:} false; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h.  */
6656
6657 int
6658 main ()
6659 {
6660 #ifndef __GNUC__
6661        choke me
6662 #endif
6663
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_compile "$LINENO"; then :
6669   ac_compiler_gnu=yes
6670 else
6671   ac_compiler_gnu=no
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6675
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6679 if test $ac_compiler_gnu = yes; then
6680   GCC=yes
6681 else
6682   GCC=
6683 fi
6684 ac_test_CFLAGS=${CFLAGS+set}
6685 ac_save_CFLAGS=$CFLAGS
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6688 if ${ac_cv_prog_cc_g+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   ac_save_c_werror_flag=$ac_c_werror_flag
6692    ac_c_werror_flag=yes
6693    ac_cv_prog_cc_g=no
6694    CFLAGS="-g"
6695    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h.  */
6697
6698 int
6699 main ()
6700 {
6701
6702   ;
6703   return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707   ac_cv_prog_cc_g=yes
6708 else
6709   CFLAGS=""
6710       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h.  */
6712
6713 int
6714 main ()
6715 {
6716
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_compile "$LINENO"; then :
6722
6723 else
6724   ac_c_werror_flag=$ac_save_c_werror_flag
6725          CFLAGS="-g"
6726          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728
6729 int
6730 main ()
6731 {
6732
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738   ac_cv_prog_cc_g=yes
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745    ac_c_werror_flag=$ac_save_c_werror_flag
6746 fi
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6748 $as_echo "$ac_cv_prog_cc_g" >&6; }
6749 if test "$ac_test_CFLAGS" = set; then
6750   CFLAGS=$ac_save_CFLAGS
6751 elif test $ac_cv_prog_cc_g = yes; then
6752   if test "$GCC" = yes; then
6753     CFLAGS="-g -O2"
6754   else
6755     CFLAGS="-g"
6756   fi
6757 else
6758   if test "$GCC" = yes; then
6759     CFLAGS="-O2"
6760   else
6761     CFLAGS=
6762   fi
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6766 if ${ac_cv_prog_cc_c89+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   ac_cv_prog_cc_c89=no
6770 ac_save_CC=$CC
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h.  */
6773 #include <stdarg.h>
6774 #include <stdio.h>
6775 struct stat;
6776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6777 struct buf { int x; };
6778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6779 static char *e (p, i)
6780      char **p;
6781      int i;
6782 {
6783   return p[i];
6784 }
6785 static char *f (char * (*g) (char **, int), char **p, ...)
6786 {
6787   char *s;
6788   va_list v;
6789   va_start (v,p);
6790   s = g (p, va_arg (v,int));
6791   va_end (v);
6792   return s;
6793 }
6794
6795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6796    function prototypes and stuff, but not '\xHH' hex character constants.
6797    These don't provoke an error unfortunately, instead are silently treated
6798    as 'x'.  The following induces an error, until -std is added to get
6799    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6800    array size at least.  It's necessary to write '\x00'==0 to get something
6801    that's true only with -std.  */
6802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6803
6804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6805    inside strings and character constants.  */
6806 #define FOO(x) 'x'
6807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6808
6809 int test (int i, double x);
6810 struct s1 {int (*f) (int a);};
6811 struct s2 {int (*f) (double a);};
6812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6813 int argc;
6814 char **argv;
6815 int
6816 main ()
6817 {
6818 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6819   ;
6820   return 0;
6821 }
6822 _ACEOF
6823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6824         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6825 do
6826   CC="$ac_save_CC $ac_arg"
6827   if ac_fn_c_try_compile "$LINENO"; then :
6828   ac_cv_prog_cc_c89=$ac_arg
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext
6831   test "x$ac_cv_prog_cc_c89" != "xno" && break
6832 done
6833 rm -f conftest.$ac_ext
6834 CC=$ac_save_CC
6835
6836 fi
6837 # AC_CACHE_VAL
6838 case "x$ac_cv_prog_cc_c89" in
6839   x)
6840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6841 $as_echo "none needed" >&6; } ;;
6842   xno)
6843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6844 $as_echo "unsupported" >&6; } ;;
6845   *)
6846     CC="$CC $ac_cv_prog_cc_c89"
6847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6849 esac
6850 if test "x$ac_cv_prog_cc_c89" != xno; then :
6851
6852 fi
6853
6854 ac_ext=c
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6866 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6867 if ${am_cv_prog_cc_c_o+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872
6873 int
6874 main ()
6875 {
6876
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881   # Make sure it works both with $CC and with simple cc.
6882   # Following AC_PROG_CC_C_O, we do the test twice because some
6883   # compilers refuse to overwrite an existing .o file with -o,
6884   # though they will create one.
6885   am_cv_prog_cc_c_o=yes
6886   for am_i in 1 2; do
6887     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6888    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6889    ac_status=$?
6890    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891    (exit $ac_status); } \
6892          && test -f conftest2.$ac_objext; then
6893       : OK
6894     else
6895       am_cv_prog_cc_c_o=no
6896       break
6897     fi
6898   done
6899   rm -f core conftest*
6900   unset am_i
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6903 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6904 if test "$am_cv_prog_cc_c_o" != yes; then
6905    # Losing compiler, so override with the script.
6906    # FIXME: It is wrong to rewrite CC.
6907    # But if we don't then we get into trouble of one sort or another.
6908    # A longer-term fix would be to have automake use am__CC in this case,
6909    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6910    CC="$am_aux_dir/compile $CC"
6911 fi
6912 ac_ext=c
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917
6918
6919 depcc="$CC"   am_compiler_list=
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6922 $as_echo_n "checking dependency style of $depcc... " >&6; }
6923 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6927   # We make a subdir and do the tests there.  Otherwise we can end up
6928   # making bogus files that we don't know about and never remove.  For
6929   # instance it was reported that on HP-UX the gcc test will end up
6930   # making a dummy file named 'D' -- because '-MD' means "put the output
6931   # in D".
6932   rm -rf conftest.dir
6933   mkdir conftest.dir
6934   # Copy depcomp to subdir because otherwise we won't find it if we're
6935   # using a relative directory.
6936   cp "$am_depcomp" conftest.dir
6937   cd conftest.dir
6938   # We will build objects and dependencies in a subdirectory because
6939   # it helps to detect inapplicable dependency modes.  For instance
6940   # both Tru64's cc and ICC support -MD to output dependencies as a
6941   # side effect of compilation, but ICC will put the dependencies in
6942   # the current directory while Tru64 will put them in the object
6943   # directory.
6944   mkdir sub
6945
6946   am_cv_CC_dependencies_compiler_type=none
6947   if test "$am_compiler_list" = ""; then
6948      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6949   fi
6950   am__universal=false
6951   case " $depcc " in #(
6952      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6953      esac
6954
6955   for depmode in $am_compiler_list; do
6956     # Setup a source with many dependencies, because some compilers
6957     # like to wrap large dependency lists on column 80 (with \), and
6958     # we should not choose a depcomp mode which is confused by this.
6959     #
6960     # We need to recreate these files for each test, as the compiler may
6961     # overwrite some of them when testing with obscure command lines.
6962     # This happens at least with the AIX C compiler.
6963     : > sub/conftest.c
6964     for i in 1 2 3 4 5 6; do
6965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6966       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6967       # Solaris 10 /bin/sh.
6968       echo '/* dummy */' > sub/conftst$i.h
6969     done
6970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6971
6972     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6973     # mode.  It turns out that the SunPro C++ compiler does not properly
6974     # handle '-M -o', and we need to detect this.  Also, some Intel
6975     # versions had trouble with output in subdirs.
6976     am__obj=sub/conftest.${OBJEXT-o}
6977     am__minus_obj="-o $am__obj"
6978     case $depmode in
6979     gcc)
6980       # This depmode causes a compiler race in universal mode.
6981       test "$am__universal" = false || continue
6982       ;;
6983     nosideeffect)
6984       # After this tag, mechanisms are not by side-effect, so they'll
6985       # only be used when explicitly requested.
6986       if test "x$enable_dependency_tracking" = xyes; then
6987         continue
6988       else
6989         break
6990       fi
6991       ;;
6992     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6993       # This compiler won't grok '-c -o', but also, the minuso test has
6994       # not run yet.  These depmodes are late enough in the game, and
6995       # so weak that their functioning should not be impacted.
6996       am__obj=conftest.${OBJEXT-o}
6997       am__minus_obj=
6998       ;;
6999     none) break ;;
7000     esac
7001     if depmode=$depmode \
7002        source=sub/conftest.c object=$am__obj \
7003        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7004        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7005          >/dev/null 2>conftest.err &&
7006        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7007        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7008        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7009        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7010       # icc doesn't choke on unknown options, it will just issue warnings
7011       # or remarks (even with -Werror).  So we grep stderr for any message
7012       # that says an option was ignored or not supported.
7013       # When given -MP, icc 7.0 and 7.1 complain thusly:
7014       #   icc: Command line warning: ignoring option '-M'; no argument required
7015       # The diagnosis changed in icc 8.0:
7016       #   icc: Command line remark: option '-MP' not supported
7017       if (grep 'ignoring option' conftest.err ||
7018           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7019         am_cv_CC_dependencies_compiler_type=$depmode
7020         break
7021       fi
7022     fi
7023   done
7024
7025   cd ..
7026   rm -rf conftest.dir
7027 else
7028   am_cv_CC_dependencies_compiler_type=none
7029 fi
7030
7031 fi
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7035
7036  if
7037   test "x$enable_dependency_tracking" != xno \
7038   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7039   am__fastdepCC_TRUE=
7040   am__fastdepCC_FALSE='#'
7041 else
7042   am__fastdepCC_TRUE='#'
7043   am__fastdepCC_FALSE=
7044 fi
7045
7046
7047 ac_ext=c
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7054 # On Suns, sometimes $CPP names a directory.
7055 if test -n "$CPP" && test -d "$CPP"; then
7056   CPP=
7057 fi
7058 if test -z "$CPP"; then
7059   if ${ac_cv_prog_CPP+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062       # Double quotes because CPP needs to be expanded
7063     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7064     do
7065       ac_preproc_ok=false
7066 for ac_c_preproc_warn_flag in '' yes
7067 do
7068   # Use a header file that comes with gcc, so configuring glibc
7069   # with a fresh cross-compiler works.
7070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071   # <limits.h> exists even on freestanding compilers.
7072   # On the NeXT, cc -E runs the code through the compiler's parser,
7073   # not just through cpp. "Syntax error" is here to catch this case.
7074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076 #ifdef __STDC__
7077 # include <limits.h>
7078 #else
7079 # include <assert.h>
7080 #endif
7081                      Syntax error
7082 _ACEOF
7083 if ac_fn_c_try_cpp "$LINENO"; then :
7084
7085 else
7086   # Broken: fails on valid input.
7087 continue
7088 fi
7089 rm -f conftest.err conftest.i conftest.$ac_ext
7090
7091   # OK, works on sane cases.  Now check whether nonexistent headers
7092   # can be detected and how.
7093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h.  */
7095 #include <ac_nonexistent.h>
7096 _ACEOF
7097 if ac_fn_c_try_cpp "$LINENO"; then :
7098   # Broken: success on invalid input.
7099 continue
7100 else
7101   # Passes both tests.
7102 ac_preproc_ok=:
7103 break
7104 fi
7105 rm -f conftest.err conftest.i conftest.$ac_ext
7106
7107 done
7108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7109 rm -f conftest.i conftest.err conftest.$ac_ext
7110 if $ac_preproc_ok; then :
7111   break
7112 fi
7113
7114     done
7115     ac_cv_prog_CPP=$CPP
7116
7117 fi
7118   CPP=$ac_cv_prog_CPP
7119 else
7120   ac_cv_prog_CPP=$CPP
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7123 $as_echo "$CPP" >&6; }
7124 ac_preproc_ok=false
7125 for ac_c_preproc_warn_flag in '' yes
7126 do
7127   # Use a header file that comes with gcc, so configuring glibc
7128   # with a fresh cross-compiler works.
7129   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130   # <limits.h> exists even on freestanding compilers.
7131   # On the NeXT, cc -E runs the code through the compiler's parser,
7132   # not just through cpp. "Syntax error" is here to catch this case.
7133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h.  */
7135 #ifdef __STDC__
7136 # include <limits.h>
7137 #else
7138 # include <assert.h>
7139 #endif
7140                      Syntax error
7141 _ACEOF
7142 if ac_fn_c_try_cpp "$LINENO"; then :
7143
7144 else
7145   # Broken: fails on valid input.
7146 continue
7147 fi
7148 rm -f conftest.err conftest.i conftest.$ac_ext
7149
7150   # OK, works on sane cases.  Now check whether nonexistent headers
7151   # can be detected and how.
7152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h.  */
7154 #include <ac_nonexistent.h>
7155 _ACEOF
7156 if ac_fn_c_try_cpp "$LINENO"; then :
7157   # Broken: success on invalid input.
7158 continue
7159 else
7160   # Passes both tests.
7161 ac_preproc_ok=:
7162 break
7163 fi
7164 rm -f conftest.err conftest.i conftest.$ac_ext
7165
7166 done
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.i conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then :
7170
7171 else
7172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7175 See \`config.log' for more details" "$LINENO" 5; }
7176 fi
7177
7178 ac_ext=c
7179 ac_cpp='$CPP $CPPFLAGS'
7180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183
7184
7185 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7186   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7187 fi
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7190 $as_echo_n "checking whether ln -s works... " >&6; }
7191 LN_S=$as_ln_s
7192 if test "$LN_S" = "ln -s"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7194 $as_echo "yes" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7197 $as_echo "no, using $LN_S" >&6; }
7198 fi
7199
7200 if test -n "$ac_tool_prefix"; then
7201   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_RANLIB+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$RANLIB"; then
7209   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223   done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 RANLIB=$ac_cv_prog_RANLIB
7229 if test -n "$RANLIB"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7231 $as_echo "$RANLIB" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238 fi
7239 if test -z "$ac_cv_prog_RANLIB"; then
7240   ac_ct_RANLIB=$RANLIB
7241   # Extract the first word of "ranlib", so it can be a program name with args.
7242 set dummy ranlib; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$ac_ct_RANLIB"; then
7249   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_ac_ct_RANLIB="ranlib"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7269 if test -n "$ac_ct_RANLIB"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7271 $as_echo "$ac_ct_RANLIB" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277   if test "x$ac_ct_RANLIB" = x; then
7278     RANLIB=":"
7279   else
7280     case $cross_compiling:$ac_tool_warned in
7281 yes:)
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286     RANLIB=$ac_ct_RANLIB
7287   fi
7288 else
7289   RANLIB="$ac_cv_prog_RANLIB"
7290 fi
7291
7292 if test -n "$ac_tool_prefix"; then
7293   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}ar; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_AR+:} false; then :
7298   $as_echo_n "(cached) " >&6
7299 else
7300   if test -n "$AR"; then
7301   ac_cv_prog_AR="$AR" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310     ac_cv_prog_AR="${ac_tool_prefix}ar"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 AR=$ac_cv_prog_AR
7321 if test -n "$AR"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7323 $as_echo "$AR" >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330 fi
7331 if test -z "$ac_cv_prog_AR"; then
7332   ac_ct_AR=$AR
7333   # Extract the first word of "ar", so it can be a program name with args.
7334 set dummy ar; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$ac_ct_AR"; then
7341   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_prog_ac_ct_AR="ar"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7361 if test -n "$ac_ct_AR"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7363 $as_echo "$ac_ct_AR" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369   if test "x$ac_ct_AR" = x; then
7370     AR=":"
7371   else
7372     case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378     AR=$ac_ct_AR
7379   fi
7380 else
7381   AR="$ac_cv_prog_AR"
7382 fi
7383
7384 # Extract the first word of ""perl"", so it can be a program name with args.
7385 set dummy "perl"; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_path_PERL+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   case $PERL in
7392   [\\/]* | ?:[\\/]*)
7393   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7394   ;;
7395   *)
7396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411   ;;
7412 esac
7413 fi
7414 PERL=$ac_cv_path_PERL
7415 if test -n "$PERL"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7417 $as_echo "$PERL" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 if test -n "$ac_tool_prefix"; then
7425   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}windres; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_WINDRES+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if test -n "$WINDRES"; then
7433   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 WINDRES=$ac_cv_prog_WINDRES
7453 if test -n "$WINDRES"; then
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7455 $as_echo "$WINDRES" >&6; }
7456 else
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_WINDRES"; then
7464   ac_ct_WINDRES=$WINDRES
7465   # Extract the first word of "windres", so it can be a program name with args.
7466 set dummy windres; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   if test -n "$ac_ct_WINDRES"; then
7473   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480     for ac_exec_ext in '' $ac_executable_extensions; do
7481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482     ac_cv_prog_ac_ct_WINDRES="windres"
7483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487   done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7493 if test -n "$ac_ct_WINDRES"; then
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7495 $as_echo "$ac_ct_WINDRES" >&6; }
7496 else
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501   if test "x$ac_ct_WINDRES" = x; then
7502     WINDRES=":"
7503   else
7504     case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510     WINDRES=$ac_ct_WINDRES
7511   fi
7512 else
7513   WINDRES="$ac_cv_prog_WINDRES"
7514 fi
7515
7516
7517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7518 $as_echo_n "checking for strerror in -lcposix... " >&6; }
7519 if ${ac_cv_lib_cposix_strerror+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   ac_check_lib_save_LIBS=$LIBS
7523 LIBS="-lcposix  $LIBS"
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h.  */
7526
7527 /* Override any GCC internal prototype to avoid an error.
7528    Use char because int might match the return type of a GCC
7529    builtin and then its argument prototype would still apply.  */
7530 #ifdef __cplusplus
7531 extern "C"
7532 #endif
7533 char strerror ();
7534 int
7535 main ()
7536 {
7537 return strerror ();
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 if ac_fn_c_try_link "$LINENO"; then :
7543   ac_cv_lib_cposix_strerror=yes
7544 else
7545   ac_cv_lib_cposix_strerror=no
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext \
7548     conftest$ac_exeext conftest.$ac_ext
7549 LIBS=$ac_check_lib_save_LIBS
7550 fi
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7552 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7553 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
7554   LIBS="$LIBS -lcposix"
7555 fi
7556
7557
7558
7559 # Check whether --enable-largefile was given.
7560 if test "${enable_largefile+set}" = set; then :
7561   enableval=$enable_largefile;
7562 fi
7563
7564 if test "$enable_largefile" != no; then
7565
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7567 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7568 if ${ac_cv_sys_largefile_CC+:} false; then :
7569   $as_echo_n "(cached) " >&6
7570 else
7571   ac_cv_sys_largefile_CC=no
7572      if test "$GCC" != yes; then
7573        ac_save_CC=$CC
7574        while :; do
7575          # IRIX 6.2 and later do not support large files by default,
7576          # so use the C compiler's -n32 option if that helps.
7577          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h.  */
7579 #include <sys/types.h>
7580  /* Check that off_t can represent 2**63 - 1 correctly.
7581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7582     since some C++ compilers masquerading as C compilers
7583     incorrectly reject 9223372036854775807.  */
7584 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7586                        && LARGE_OFF_T % 2147483647 == 1)
7587                       ? 1 : -1];
7588 int
7589 main ()
7590 {
7591
7592   ;
7593   return 0;
7594 }
7595 _ACEOF
7596          if ac_fn_c_try_compile "$LINENO"; then :
7597   break
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext
7600          CC="$CC -n32"
7601          if ac_fn_c_try_compile "$LINENO"; then :
7602   ac_cv_sys_largefile_CC=' -n32'; break
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext
7605          break
7606        done
7607        CC=$ac_save_CC
7608        rm -f conftest.$ac_ext
7609     fi
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7612 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7613   if test "$ac_cv_sys_largefile_CC" != no; then
7614     CC=$CC$ac_cv_sys_largefile_CC
7615   fi
7616
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7618 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7619 if ${ac_cv_sys_file_offset_bits+:} false; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622   while :; do
7623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h.  */
7625 #include <sys/types.h>
7626  /* Check that off_t can represent 2**63 - 1 correctly.
7627     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7628     since some C++ compilers masquerading as C compilers
7629     incorrectly reject 9223372036854775807.  */
7630 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7631   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7632                        && LARGE_OFF_T % 2147483647 == 1)
7633                       ? 1 : -1];
7634 int
7635 main ()
7636 {
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643   ac_cv_sys_file_offset_bits=no; break
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h.  */
7648 #define _FILE_OFFSET_BITS 64
7649 #include <sys/types.h>
7650  /* Check that off_t can represent 2**63 - 1 correctly.
7651     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7652     since some C++ compilers masquerading as C compilers
7653     incorrectly reject 9223372036854775807.  */
7654 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7655   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7656                        && LARGE_OFF_T % 2147483647 == 1)
7657                       ? 1 : -1];
7658 int
7659 main ()
7660 {
7661
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667   ac_cv_sys_file_offset_bits=64; break
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670   ac_cv_sys_file_offset_bits=unknown
7671   break
7672 done
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7675 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7676 case $ac_cv_sys_file_offset_bits in #(
7677   no | unknown) ;;
7678   *)
7679 cat >>confdefs.h <<_ACEOF
7680 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7681 _ACEOF
7682 ;;
7683 esac
7684 rm -rf conftest*
7685   if test $ac_cv_sys_file_offset_bits = unknown; then
7686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7687 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7688 if ${ac_cv_sys_large_files+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   while :; do
7692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h.  */
7694 #include <sys/types.h>
7695  /* Check that off_t can represent 2**63 - 1 correctly.
7696     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7697     since some C++ compilers masquerading as C compilers
7698     incorrectly reject 9223372036854775807.  */
7699 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7700   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7701                        && LARGE_OFF_T % 2147483647 == 1)
7702                       ? 1 : -1];
7703 int
7704 main ()
7705 {
7706
7707   ;
7708   return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712   ac_cv_sys_large_files=no; break
7713 fi
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h.  */
7717 #define _LARGE_FILES 1
7718 #include <sys/types.h>
7719  /* Check that off_t can represent 2**63 - 1 correctly.
7720     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7721     since some C++ compilers masquerading as C compilers
7722     incorrectly reject 9223372036854775807.  */
7723 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7724   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7725                        && LARGE_OFF_T % 2147483647 == 1)
7726                       ? 1 : -1];
7727 int
7728 main ()
7729 {
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736   ac_cv_sys_large_files=1; break
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739   ac_cv_sys_large_files=unknown
7740   break
7741 done
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7744 $as_echo "$ac_cv_sys_large_files" >&6; }
7745 case $ac_cv_sys_large_files in #(
7746   no | unknown) ;;
7747   *)
7748 cat >>confdefs.h <<_ACEOF
7749 #define _LARGE_FILES $ac_cv_sys_large_files
7750 _ACEOF
7751 ;;
7752 esac
7753 rm -rf conftest*
7754   fi
7755
7756
7757 fi
7758
7759
7760
7761 # Check whether --with-tar was given.
7762 if test "${with_tar+set}" = set; then :
7763   withval=$with_tar; _do_tar=$withval
7764 fi
7765
7766
7767   if test x$_do_tar != xno ; then
7768
7769      if test x$_do_tar = x ; then
7770         # Extract the first word of ""tar"", so it can be a program name with args.
7771 set dummy "tar"; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_path_TAR+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   case $TAR in
7778   [\\/]* | ?:[\\/]*)
7779   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7780   ;;
7781   *)
7782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797   ;;
7798 esac
7799 fi
7800 TAR=$ac_cv_path_TAR
7801 if test -n "$TAR"; then
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7803 $as_echo "$TAR" >&6; }
7804 else
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809
7810         _mytar=$ac_cv_path_TAR
7811      fi
7812
7813      # Check if our tar is ustar format.  If so, it's good.  TODO: Add some
7814      # code to check various options, etc, to try and create ustar
7815      # format.
7816
7817      if test x$_mytar != x ; then
7818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5
7819 $as_echo_n "checking whether $_mytar speaks USTAR... " >&6; }
7820         echo hithere > conftest.txt
7821         $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
7822         _tar_bad=$?
7823         rm conftest.txt
7824
7825         if test x$_tar_bad = x0 ; then
7826            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7827 $as_echo "yes" >&6; }
7828         else
7829            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831         fi
7832      fi
7833   fi
7834
7835    if test x$_tar_bad = x0; then
7836   HAVE_USTAR_TRUE=
7837   HAVE_USTAR_FALSE='#'
7838 else
7839   HAVE_USTAR_TRUE='#'
7840   HAVE_USTAR_FALSE=
7841 fi
7842
7843
7844
7845
7846 # We need to compile and run a program on the build machine.  A
7847 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7848 # the AC archive is broken for autoconf 2.57.  Given that there is no
7849 # newer version of that macro, we assume that it is also broken for
7850 # autoconf 2.61 and thus we use a simple but usually sufficient
7851 # approach.
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7853 $as_echo_n "checking for cc for build... " >&6; }
7854 if test "$cross_compiling" = "yes"; then
7855   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7856 else
7857   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7860 $as_echo "$CC_FOR_BUILD" >&6; }
7861
7862
7863 # We need to call this macro because other pkg-config macros are
7864 # not always used.
7865
7866
7867
7868
7869
7870
7871
7872 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7873         if test -n "$ac_tool_prefix"; then
7874   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   case $PKG_CONFIG in
7882   [\\/]* | ?:[\\/]*)
7883   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7884   ;;
7885   *)
7886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891     for ac_exec_ext in '' $ac_executable_extensions; do
7892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898   done
7899 IFS=$as_save_IFS
7900
7901   ;;
7902 esac
7903 fi
7904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7905 if test -n "$PKG_CONFIG"; then
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7907 $as_echo "$PKG_CONFIG" >&6; }
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914 fi
7915 if test -z "$ac_cv_path_PKG_CONFIG"; then
7916   ac_pt_PKG_CONFIG=$PKG_CONFIG
7917   # Extract the first word of "pkg-config", so it can be a program name with args.
7918 set dummy pkg-config; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   case $ac_pt_PKG_CONFIG in
7925   [\\/]* | ?:[\\/]*)
7926   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7927   ;;
7928   *)
7929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934     for ac_exec_ext in '' $ac_executable_extensions; do
7935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941   done
7942 IFS=$as_save_IFS
7943
7944   ;;
7945 esac
7946 fi
7947 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7948 if test -n "$ac_pt_PKG_CONFIG"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7950 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956   if test "x$ac_pt_PKG_CONFIG" = x; then
7957     PKG_CONFIG=""
7958   else
7959     case $cross_compiling:$ac_tool_warned in
7960 yes:)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963 ac_tool_warned=yes ;;
7964 esac
7965     PKG_CONFIG=$ac_pt_PKG_CONFIG
7966   fi
7967 else
7968   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7969 fi
7970
7971 fi
7972 if test -n "$PKG_CONFIG"; then
7973         _pkg_min_version=0.9.0
7974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7975 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7976         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7977                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978 $as_echo "yes" >&6; }
7979         else
7980                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982                 PKG_CONFIG=""
7983         fi
7984 fi
7985
7986
7987 try_gettext=yes
7988 require_iconv=yes
7989 have_dosish_system=no
7990 have_w32_system=no
7991 have_w32ce_system=no
7992 have_android_system=no
7993 use_simple_gettext=no
7994 use_ldapwrapper=yes
7995 mmap_needed=yes
7996 case "${host}" in
7997     *-mingw32*)
7998         # special stuff for Windoze NT
7999         ac_cv_have_dev_random=no
8000
8001 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8002
8003
8004 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8005
8006         have_dosish_system=yes
8007         have_w32_system=yes
8008         require_iconv=no
8009         use_ldapwrapper=no  # Fixme: Do this only for CE.
8010         case "${host}" in
8011           *-mingw32ce*)
8012             have_w32ce_system=yes
8013             ;;
8014           *)
8015
8016 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8017
8018             ;;
8019         esac
8020         try_gettext="no"
8021         use_simple_gettext=yes
8022         mmap_needed=no
8023         ;;
8024     i?86-emx-os2 | i?86-*-os2*emx )
8025         # OS/2 with the EMX environment
8026         ac_cv_have_dev_random=no
8027         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8028
8029         have_dosish_system=yes
8030         try_gettext="no"
8031         ;;
8032
8033     i?86-*-msdosdjgpp*)
8034         # DOS with the DJGPP environment
8035         ac_cv_have_dev_random=no
8036         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8037
8038         have_dosish_system=yes
8039         try_gettext="no"
8040         ;;
8041
8042     *-*-hpux*)
8043         if test -z "$GCC" ; then
8044             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8045         fi
8046         ;;
8047     *-dec-osf4*)
8048         if test -z "$GCC" ; then
8049             # Suppress all warnings
8050             # to get rid of the unsigned/signed char mismatch warnings.
8051             CFLAGS="-w $CFLAGS"
8052         fi
8053         ;;
8054     *-dec-osf5*)
8055         if test -z "$GCC" ; then
8056             # Use the newer compiler `-msg_disable ptrmismatch1' to
8057             # get rid of the unsigned/signed char mismatch warnings.
8058             # Using this may hide other pointer mismatch warnings, but
8059             # it at least lets other warning classes through
8060             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8061         fi
8062         ;;
8063     m68k-atari-mint)
8064         ;;
8065     *-linux-android*)
8066         have_android_system=yes
8067         # Android is fully utf-8 and we do not want to use iconv to
8068         # keeps things simple
8069         require_iconv=no
8070         ;;
8071     *)
8072        ;;
8073 esac
8074
8075 if test "$have_dosish_system" = yes; then
8076
8077 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8078
8079 fi
8080  if test "$have_dosish_system" = yes; then
8081   HAVE_DOSISH_SYSTEM_TRUE=
8082   HAVE_DOSISH_SYSTEM_FALSE='#'
8083 else
8084   HAVE_DOSISH_SYSTEM_TRUE='#'
8085   HAVE_DOSISH_SYSTEM_FALSE=
8086 fi
8087
8088
8089  if test x"$use_simple_gettext" = xyes; then
8090   USE_SIMPLE_GETTEXT_TRUE=
8091   USE_SIMPLE_GETTEXT_FALSE='#'
8092 else
8093   USE_SIMPLE_GETTEXT_TRUE='#'
8094   USE_SIMPLE_GETTEXT_FALSE=
8095 fi
8096
8097
8098 if test "$have_w32_system" = yes; then
8099
8100 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8101
8102    if test "$have_w32ce_system" = yes; then
8103
8104 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8105
8106    fi
8107 fi
8108  if test "$have_w32_system" = yes; then
8109   HAVE_W32_SYSTEM_TRUE=
8110   HAVE_W32_SYSTEM_FALSE='#'
8111 else
8112   HAVE_W32_SYSTEM_TRUE='#'
8113   HAVE_W32_SYSTEM_FALSE=
8114 fi
8115
8116  if test "$have_w32ce_system" = yes; then
8117   HAVE_W32CE_SYSTEM_TRUE=
8118   HAVE_W32CE_SYSTEM_FALSE='#'
8119 else
8120   HAVE_W32CE_SYSTEM_TRUE='#'
8121   HAVE_W32CE_SYSTEM_FALSE=
8122 fi
8123
8124
8125 if test "$have_android_system" = yes; then
8126
8127 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8128
8129 fi
8130  if test "$have_android_system" = yes; then
8131   HAVE_ANDROID_SYSTEM_TRUE=
8132   HAVE_ANDROID_SYSTEM_FALSE='#'
8133 else
8134   HAVE_ANDROID_SYSTEM_TRUE='#'
8135   HAVE_ANDROID_SYSTEM_FALSE=
8136 fi
8137
8138
8139
8140 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8141
8142 cat >>confdefs.h <<_ACEOF
8143 #define EXEEXT "$EXEEXT"
8144 _ACEOF
8145
8146
8147
8148 #
8149 # Checks for libraries.
8150 #
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8152 $as_echo "$as_me: checking for libraries" >&6;}
8153
8154
8155 #
8156 # libgpg-error is a library with error codes shared between GnuPG
8157 # related projects.
8158 #
8159
8160   gpg_error_config_prefix=""
8161
8162 # Check whether --with-libgpg-error-prefix was given.
8163 if test "${with_libgpg_error_prefix+set}" = set; then :
8164   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8165 fi
8166
8167
8168
8169 # Check whether --with-gpg-error-prefix was given.
8170 if test "${with_gpg_error_prefix+set}" = set; then :
8171   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8172 fi
8173
8174
8175   if test x"${GPG_ERROR_CONFIG}" = x ; then
8176      if test x"${gpg_error_config_prefix}" != x ; then
8177         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8178      else
8179        case "${SYSROOT}" in
8180          /*)
8181            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8182              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8183            fi
8184            ;;
8185          '')
8186            ;;
8187           *)
8188            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8189 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8190            ;;
8191        esac
8192      fi
8193   fi
8194
8195   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8196 set dummy gpg-error-config; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8200   $as_echo_n "(cached) " >&6
8201 else
8202   case $GPG_ERROR_CONFIG in
8203   [\\/]* | ?:[\\/]*)
8204   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8205   ;;
8206   *)
8207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210   IFS=$as_save_IFS
8211   test -z "$as_dir" && as_dir=.
8212     for ac_exec_ext in '' $ac_executable_extensions; do
8213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216     break 2
8217   fi
8218 done
8219   done
8220 IFS=$as_save_IFS
8221
8222   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8223   ;;
8224 esac
8225 fi
8226 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8227 if test -n "$GPG_ERROR_CONFIG"; then
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8229 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8230 else
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8238 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8239   ok=no
8240   if test "$GPG_ERROR_CONFIG" != "no" \
8241      && test -f "$GPG_ERROR_CONFIG" ; then
8242     req_major=`echo $min_gpg_error_version | \
8243                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8244     req_minor=`echo $min_gpg_error_version | \
8245                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8246     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
8247     major=`echo $gpg_error_config_version | \
8248                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8249     minor=`echo $gpg_error_config_version | \
8250                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8251     if test "$major" -gt "$req_major"; then
8252         ok=yes
8253     else
8254         if test "$major" -eq "$req_major"; then
8255             if test "$minor" -ge "$req_minor"; then
8256                ok=yes
8257             fi
8258         fi
8259     fi
8260   fi
8261   if test $ok = yes; then
8262     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
8263     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
8264     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
8265     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
8266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8267 $as_echo "yes ($gpg_error_config_version)" >&6; }
8268     have_gpg_error=yes
8269     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
8270     if test x"$gpg_error_config_host" != xnone ; then
8271       if test x"$gpg_error_config_host" != x"$host" ; then
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8273 ***
8274 *** The config script $GPG_ERROR_CONFIG was
8275 *** built for $gpg_error_config_host and thus may not match the
8276 *** used host $host.
8277 *** You may want to use the configure option --with-gpg-error-prefix
8278 *** to specify a matching config script or use \$SYSROOT.
8279 ***" >&5
8280 $as_echo "$as_me: WARNING:
8281 ***
8282 *** The config script $GPG_ERROR_CONFIG was
8283 *** built for $gpg_error_config_host and thus may not match the
8284 *** used host $host.
8285 *** You may want to use the configure option --with-gpg-error-prefix
8286 *** to specify a matching config script or use \$SYSROOT.
8287 ***" >&2;}
8288         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8289       fi
8290     fi
8291   else
8292     GPG_ERROR_CFLAGS=""
8293     GPG_ERROR_LIBS=""
8294     GPG_ERROR_MT_CFLAGS=""
8295     GPG_ERROR_MT_LIBS=""
8296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298     have_gpg_error=no
8299   fi
8300
8301
8302
8303
8304
8305
8306
8307 #
8308 # Libgcrypt is our generic crypto library
8309 #
8310
8311
8312 # Check whether --with-libgcrypt-prefix was given.
8313 if test "${with_libgcrypt_prefix+set}" = set; then :
8314   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8315 else
8316   libgcrypt_config_prefix=""
8317 fi
8318
8319   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8320      if test x"${libgcrypt_config_prefix}" != x ; then
8321         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8322      else
8323        case "${SYSROOT}" in
8324          /*)
8325            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8326              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8327            fi
8328            ;;
8329          '')
8330            ;;
8331           *)
8332            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8333 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8334            ;;
8335        esac
8336      fi
8337   fi
8338
8339   # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8340 set dummy libgcrypt-config; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   case $LIBGCRYPT_CONFIG in
8347   [\\/]* | ?:[\\/]*)
8348   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8349   ;;
8350   *)
8351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356     for ac_exec_ext in '' $ac_executable_extensions; do
8357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363   done
8364 IFS=$as_save_IFS
8365
8366   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8367   ;;
8368 esac
8369 fi
8370 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8371 if test -n "$LIBGCRYPT_CONFIG"; then
8372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8373 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8374 else
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8381   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8382      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8383      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8384   else
8385      req_libgcrypt_api=0
8386      min_libgcrypt_version="$tmp"
8387   fi
8388
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8390 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8391   ok=no
8392   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8393     req_major=`echo $min_libgcrypt_version | \
8394                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8395     req_minor=`echo $min_libgcrypt_version | \
8396                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8397     req_micro=`echo $min_libgcrypt_version | \
8398                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8399     libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8400     major=`echo $libgcrypt_config_version | \
8401                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8402     minor=`echo $libgcrypt_config_version | \
8403                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8404     micro=`echo $libgcrypt_config_version | \
8405                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8406     if test "$major" -gt "$req_major"; then
8407         ok=yes
8408     else
8409         if test "$major" -eq "$req_major"; then
8410             if test "$minor" -gt "$req_minor"; then
8411                ok=yes
8412             else
8413                if test "$minor" -eq "$req_minor"; then
8414                    if test "$micro" -ge "$req_micro"; then
8415                      ok=yes
8416                    fi
8417                fi
8418             fi
8419         fi
8420     fi
8421   fi
8422   if test $ok = yes; then
8423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8424 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8425   else
8426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428   fi
8429   if test $ok = yes; then
8430      # If we have a recent libgcrypt, we should also check that the
8431      # API is compatible
8432      if test "$req_libgcrypt_api" -gt 0 ; then
8433         tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8434         if test "$tmp" -gt 0 ; then
8435            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8436 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8437            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8438              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8439 $as_echo "okay" >&6; }
8440            else
8441              ok=no
8442              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8443 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8444            fi
8445         fi
8446      fi
8447   fi
8448   if test $ok = yes; then
8449     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8450     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8451     have_libgcrypt=yes
8452     libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8453     if test x"$libgcrypt_config_host" != xnone ; then
8454       if test x"$libgcrypt_config_host" != x"$host" ; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8456 ***
8457 *** The config script $LIBGCRYPT_CONFIG was
8458 *** built for $libgcrypt_config_host and thus may not match the
8459 *** used host $host.
8460 *** You may want to use the configure option --with-libgcrypt-prefix
8461 *** to specify a matching config script or use \$SYSROOT.
8462 ***" >&5
8463 $as_echo "$as_me: WARNING:
8464 ***
8465 *** The config script $LIBGCRYPT_CONFIG was
8466 *** built for $libgcrypt_config_host and thus may not match the
8467 *** used host $host.
8468 *** You may want to use the configure option --with-libgcrypt-prefix
8469 *** to specify a matching config script or use \$SYSROOT.
8470 ***" >&2;}
8471         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8472       fi
8473     fi
8474   else
8475     LIBGCRYPT_CFLAGS=""
8476     LIBGCRYPT_LIBS=""
8477     have_libgcrypt=no
8478   fi
8479
8480
8481
8482
8483
8484 #
8485 # libassuan is used for IPC
8486 #
8487
8488 # Check whether --with-libassuan-prefix was given.
8489 if test "${with_libassuan_prefix+set}" = set; then :
8490   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8491 else
8492   libassuan_config_prefix=""
8493 fi
8494
8495   if test x$libassuan_config_prefix != x ; then
8496     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8497     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8498       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8499     fi
8500   fi
8501   # Extract the first word of "libassuan-config", so it can be a program name with args.
8502 set dummy libassuan-config; ac_word=$2
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504 $as_echo_n "checking for $ac_word... " >&6; }
8505 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8506   $as_echo_n "(cached) " >&6
8507 else
8508   case $LIBASSUAN_CONFIG in
8509   [\\/]* | ?:[\\/]*)
8510   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8511   ;;
8512   *)
8513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516   IFS=$as_save_IFS
8517   test -z "$as_dir" && as_dir=.
8518     for ac_exec_ext in '' $ac_executable_extensions; do
8519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522     break 2
8523   fi
8524 done
8525   done
8526 IFS=$as_save_IFS
8527
8528   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8529   ;;
8530 esac
8531 fi
8532 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8533 if test -n "$LIBASSUAN_CONFIG"; then
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8535 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8536 else
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540
8541
8542
8543   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8544   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8545     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8546     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8547   else
8548     req_libassuan_api=0
8549     min_libassuan_version="$tmp"
8550   fi
8551
8552   if test "$LIBASSUAN_CONFIG" != "no" ; then
8553     libassuan_version=`$LIBASSUAN_CONFIG --version`
8554   fi
8555   libassuan_version_major=`echo $libassuan_version | \
8556                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8557   libassuan_version_minor=`echo $libassuan_version | \
8558                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8559   libassuan_version_micro=`echo $libassuan_version | \
8560                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8561
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8563 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8564   ok=no
8565   if test "$LIBASSUAN_CONFIG" != "no" ; then
8566
8567     req_major=`echo $min_libassuan_version | \
8568                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8569     req_minor=`echo $min_libassuan_version | \
8570                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8571     req_micro=`echo $min_libassuan_version | \
8572                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8573     if test "$libassuan_version_major" -gt "$req_major"; then
8574         ok=yes
8575     else
8576         if test "$libassuan_version_major" -eq "$req_major"; then
8577             if test "$libassuan_version_minor" -gt "$req_minor"; then
8578                ok=yes
8579             else
8580                if test "$libassuan_version_minor" -eq "$req_minor"; then
8581                    if test "$libassuan_version_micro" -ge "$req_micro"; then
8582                      ok=yes
8583                    fi
8584                fi
8585             fi
8586         fi
8587     fi
8588
8589   fi
8590
8591   if test $ok = yes; then
8592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_version)" >&5
8593 $as_echo "yes ($libassuan_version)" >&6; }
8594   else
8595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597   fi
8598
8599   if test $ok = yes; then
8600     if test "$req_libassuan_api" -gt 0 ; then
8601       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8602       if test "$tmp" -gt 0 ; then
8603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8604 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8605         if test "$req_libassuan_api" -eq "$tmp" ; then
8606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8607 $as_echo "okay" >&6; }
8608         else
8609           ok=no
8610           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8611 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8612         fi
8613       fi
8614     fi
8615   fi
8616
8617
8618   if test $ok = yes; then
8619     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8620     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8621     have_libassuan=yes
8622   else
8623     LIBASSUAN_CFLAGS=""
8624     LIBASSUAN_LIBS=""
8625     have_libassuan=no
8626   fi
8627
8628
8629
8630 if test "$have_libassuan" = "yes"; then
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
8634 _ACEOF
8635
8636   show_tor_support="only .onion"
8637 fi
8638
8639
8640 #
8641 # libksba is our X.509 support library
8642 #
8643
8644
8645 # Check whether --with-ksba-prefix was given.
8646 if test "${with_ksba_prefix+set}" = set; then :
8647   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8648 else
8649   ksba_config_prefix=""
8650 fi
8651
8652   if test x$ksba_config_prefix != x ; then
8653      ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8654      if test x${KSBA_CONFIG+set} != xset ; then
8655         KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8656      fi
8657   fi
8658
8659   # Extract the first word of "ksba-config", so it can be a program name with args.
8660 set dummy ksba-config; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666   case $KSBA_CONFIG in
8667   [\\/]* | ?:[\\/]*)
8668   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8669   ;;
8670   *)
8671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8673 do
8674   IFS=$as_save_IFS
8675   test -z "$as_dir" && as_dir=.
8676     for ac_exec_ext in '' $ac_executable_extensions; do
8677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8678     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680     break 2
8681   fi
8682 done
8683   done
8684 IFS=$as_save_IFS
8685
8686   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8687   ;;
8688 esac
8689 fi
8690 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8691 if test -n "$KSBA_CONFIG"; then
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8693 $as_echo "$KSBA_CONFIG" >&6; }
8694 else
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 fi
8698
8699
8700   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8701   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8702      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8703      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8704   else
8705      req_ksba_api=0
8706      min_ksba_version="$tmp"
8707   fi
8708
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8710 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8711   ok=no
8712   if test "$KSBA_CONFIG" != "no" ; then
8713     req_major=`echo $min_ksba_version | \
8714                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8715     req_minor=`echo $min_ksba_version | \
8716                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8717     req_micro=`echo $min_ksba_version | \
8718                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8719     ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8720     major=`echo $ksba_config_version | \
8721                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8722     minor=`echo $ksba_config_version | \
8723                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8724     micro=`echo $ksba_config_version | \
8725                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8726     if test "$major" -gt "$req_major"; then
8727         ok=yes
8728     else
8729         if test "$major" -eq "$req_major"; then
8730             if test "$minor" -gt "$req_minor"; then
8731                ok=yes
8732             else
8733                if test "$minor" -eq "$req_minor"; then
8734                    if test "$micro" -ge "$req_micro"; then
8735                      ok=yes
8736                    fi
8737                fi
8738             fi
8739         fi
8740     fi
8741   fi
8742   if test $ok = yes; then
8743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
8744 $as_echo "yes ($ksba_config_version)" >&6; }
8745   else
8746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8748   fi
8749   if test $ok = yes; then
8750      # Even if we have a recent libksba, we should check that the
8751      # API is compatible.
8752      if test "$req_ksba_api" -gt 0 ; then
8753         tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8754         if test "$tmp" -gt 0 ; then
8755            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8756 $as_echo_n "checking KSBA API version... " >&6; }
8757            if test "$req_ksba_api" -eq "$tmp" ; then
8758              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8759 $as_echo "okay" >&6; }
8760            else
8761              ok=no
8762              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
8763 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
8764            fi
8765         fi
8766      fi
8767   fi
8768   if test $ok = yes; then
8769     KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8770     KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8771     have_ksba=yes
8772     libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
8773     if test x"$libksba_config_host" != xnone ; then
8774       if test x"$libksba_config_host" != x"$host" ; then
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8776 ***
8777 *** The config script $LIBKSBA_CONFIG was
8778 *** built for $libksba_config_host and thus may not match the
8779 *** used host $host.
8780 *** You may want to use the configure option --with-libksba-prefix
8781 *** to specify a matching config script.
8782 ***" >&5
8783 $as_echo "$as_me: WARNING:
8784 ***
8785 *** The config script $LIBKSBA_CONFIG was
8786 *** built for $libksba_config_host and thus may not match the
8787 *** used host $host.
8788 *** You may want to use the configure option --with-libksba-prefix
8789 *** to specify a matching config script.
8790 ***" >&2;}
8791       fi
8792     fi
8793   else
8794     KSBA_CFLAGS=""
8795     KSBA_LIBS=""
8796     have_ksba=no
8797   fi
8798
8799
8800
8801
8802
8803 #
8804 # libusb allows us to use the integrated CCID smartcard reader driver.
8805 #
8806 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
8807 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
8808    case "${host}" in
8809      *-mingw32*)
8810        LIBUSB_NAME=
8811        LIBUSB_LIBS=
8812        LIBUSB_CPPFLAGS=
8813        ;;
8814      *-*-darwin*)
8815        LIBUSB_NAME=usb-1.0
8816        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
8817        ;;
8818      *-*-freebsd*)
8819        # FreeBSD has a native 1.0 compatible library by -lusb.
8820        LIBUSB_NAME=usb
8821        LIBUSB_LIBS=
8822        ;;
8823      *)
8824        LIBUSB_NAME=usb-1.0
8825        LIBUSB_LIBS=
8826        ;;
8827    esac
8828 fi
8829 if test x"$LIBUSB_NAME" != x ; then
8830    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
8832 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
8833 if eval \${$as_ac_Lib+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   ac_check_lib_save_LIBS=$LIBS
8837 LIBS="-l$LIBUSB_NAME  $LIBS"
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h.  */
8840
8841 /* Override any GCC internal prototype to avoid an error.
8842    Use char because int might match the return type of a GCC
8843    builtin and then its argument prototype would still apply.  */
8844 #ifdef __cplusplus
8845 extern "C"
8846 #endif
8847 char libusb_init ();
8848 int
8849 main ()
8850 {
8851 return libusb_init ();
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_link "$LINENO"; then :
8857   eval "$as_ac_Lib=yes"
8858 else
8859   eval "$as_ac_Lib=no"
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862     conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8864 fi
8865 eval ac_res=\$$as_ac_Lib
8866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8867 $as_echo "$ac_res" >&6; }
8868 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8869    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
8870                   have_libusb=yes
8871 fi
8872
8873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
8874 $as_echo_n "checking libusb include dir... " >&6; }
8875    usb_incdir_found="no"
8876    for _incdir in "" "/usr/include/libusb-1.0" "/usr/local/include/libusb-1.0"; do
8877      _libusb_save_cppflags=$CPPFLAGS
8878      if test -n "${_incdir}"; then
8879        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
8880      fi
8881      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h.  */
8883 #include <libusb.h>
8884 _ACEOF
8885 if ac_fn_c_try_cpp "$LINENO"; then :
8886   usb_incdir=${_incdir}; usb_incdir_found="yes"
8887 fi
8888 rm -f conftest.err conftest.i conftest.$ac_ext
8889      CPPFLAGS=${_libusb_save_cppflags}
8890      if test "$usb_incdir_found" = "yes"; then
8891        break
8892      fi
8893    done
8894    if test "$usb_incdir_found" = "yes"; then
8895      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
8896 $as_echo "${usb_incdir}" >&6; }
8897    else
8898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8899 $as_echo "not found" >&6; }
8900      usb_incdir=""
8901      have_libusb=no
8902      if test "$use_ccid_driver" != yes; then
8903        use_ccid_driver=no
8904      fi
8905      LIBUSB_LIBS=""
8906    fi
8907
8908    if test "$have_libusb" = yes; then
8909
8910 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
8911
8912    fi
8913    if test x"$usb_incdir" = x; then
8914      LIBUSB_CPPFLAGS=""
8915    else
8916      LIBUSB_CPPFLAGS="-I${usb_incdir}"
8917    fi
8918 fi
8919
8920
8921
8922 #
8923 # Check wether it is necessary to link against libdl.
8924 # (For example to load libpcsclite)
8925 #
8926 gnupg_dlopen_save_libs="$LIBS"
8927 LIBS=""
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8929 $as_echo_n "checking for library containing dlopen... " >&6; }
8930 if ${ac_cv_search_dlopen+:} false; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   ac_func_search_save_LIBS=$LIBS
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936
8937 /* Override any GCC internal prototype to avoid an error.
8938    Use char because int might match the return type of a GCC
8939    builtin and then its argument prototype would still apply.  */
8940 #ifdef __cplusplus
8941 extern "C"
8942 #endif
8943 char dlopen ();
8944 int
8945 main ()
8946 {
8947 return dlopen ();
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 for ac_lib in '' c dl; do
8953   if test -z "$ac_lib"; then
8954     ac_res="none required"
8955   else
8956     ac_res=-l$ac_lib
8957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8958   fi
8959   if ac_fn_c_try_link "$LINENO"; then :
8960   ac_cv_search_dlopen=$ac_res
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext \
8963     conftest$ac_exeext
8964   if ${ac_cv_search_dlopen+:} false; then :
8965   break
8966 fi
8967 done
8968 if ${ac_cv_search_dlopen+:} false; then :
8969
8970 else
8971   ac_cv_search_dlopen=no
8972 fi
8973 rm conftest.$ac_ext
8974 LIBS=$ac_func_search_save_LIBS
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8977 $as_echo "$ac_cv_search_dlopen" >&6; }
8978 ac_res=$ac_cv_search_dlopen
8979 if test "$ac_res" != no; then :
8980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8981
8982 fi
8983
8984 DL_LIBS=$LIBS
8985
8986 LIBS="$gnupg_dlopen_save_libs"
8987
8988
8989 # Checks for g10
8990
8991 # Check whether --enable-sqlite was given.
8992 if test "${enable_sqlite+set}" = set; then :
8993   enableval=$enable_sqlite; try_sqlite=$enableval
8994 else
8995   try_sqlite=yes
8996 fi
8997
8998
8999 if test x"$use_tofu" = xyes ; then
9000   if test x"$try_sqlite" = xyes ; then
9001
9002 pkg_failed=no
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9004 $as_echo_n "checking for SQLITE3... " >&6; }
9005
9006 if test -n "$SQLITE3_CFLAGS"; then
9007     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9008  elif test -n "$PKG_CONFIG"; then
9009     if test -n "$PKG_CONFIG" && \
9010     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9011   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9012   ac_status=$?
9013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9014   test $ac_status = 0; }; then
9015   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9016                       test "x$?" != "x0" && pkg_failed=yes
9017 else
9018   pkg_failed=yes
9019 fi
9020  else
9021     pkg_failed=untried
9022 fi
9023 if test -n "$SQLITE3_LIBS"; then
9024     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9025  elif test -n "$PKG_CONFIG"; then
9026     if test -n "$PKG_CONFIG" && \
9027     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9028   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9029   ac_status=$?
9030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9031   test $ac_status = 0; }; then
9032   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9033                       test "x$?" != "x0" && pkg_failed=yes
9034 else
9035   pkg_failed=yes
9036 fi
9037  else
9038     pkg_failed=untried
9039 fi
9040
9041
9042
9043 if test $pkg_failed = yes; then
9044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9046
9047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9048         _pkg_short_errors_supported=yes
9049 else
9050         _pkg_short_errors_supported=no
9051 fi
9052         if test $_pkg_short_errors_supported = yes; then
9053                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9054         else
9055                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9056         fi
9057         # Put the nasty error message in config.log where it belongs
9058         echo "$SQLITE3_PKG_ERRORS" >&5
9059
9060         have_sqlite=no
9061 elif test $pkg_failed = untried; then
9062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9064         have_sqlite=no
9065 else
9066         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9067         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9069 $as_echo "yes" >&6; }
9070         have_sqlite=yes
9071 fi
9072   fi
9073   if test "$have_sqlite" = "yes"; then
9074     :
9075
9076
9077   else
9078     use_tofu=no
9079     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9081 ***
9082 *** Building without SQLite support - TOFU disabled
9083 ***
9084 *** $tmp" >&5
9085 $as_echo "$as_me: WARNING:
9086 ***
9087 *** Building without SQLite support - TOFU disabled
9088 ***
9089 *** $tmp" >&2;}
9090   fi
9091 fi
9092
9093  if test "$have_sqlite" = "yes"; then
9094   SQLITE3_TRUE=
9095   SQLITE3_FALSE='#'
9096 else
9097   SQLITE3_TRUE='#'
9098   SQLITE3_FALSE=
9099 fi
9100
9101
9102 if test x"$use_tofu" = xyes ; then
9103
9104 $as_echo "#define USE_TOFU 1" >>confdefs.h
9105
9106 fi
9107
9108
9109 # Checks for g13
9110
9111 # Extract the first word of "encfs", so it can be a program name with args.
9112 set dummy encfs; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_path_ENCFS+:} false; then :
9116   $as_echo_n "(cached) " >&6
9117 else
9118   case $ENCFS in
9119   [\\/]* | ?:[\\/]*)
9120   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9121   ;;
9122   *)
9123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9125 do
9126   IFS=$as_save_IFS
9127   test -z "$as_dir" && as_dir=.
9128     for ac_exec_ext in '' $ac_executable_extensions; do
9129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132     break 2
9133   fi
9134 done
9135   done
9136 IFS=$as_save_IFS
9137
9138   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9139   ;;
9140 esac
9141 fi
9142 ENCFS=$ac_cv_path_ENCFS
9143 if test -n "$ENCFS"; then
9144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9145 $as_echo "$ENCFS" >&6; }
9146 else
9147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9149 fi
9150
9151
9152
9153 cat >>confdefs.h <<_ACEOF
9154 #define ENCFS "${ENCFS}"
9155 _ACEOF
9156
9157
9158 # Extract the first word of "fusermount", so it can be a program name with args.
9159 set dummy fusermount; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9163   $as_echo_n "(cached) " >&6
9164 else
9165   case $FUSERMOUNT in
9166   [\\/]* | ?:[\\/]*)
9167   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9168   ;;
9169   *)
9170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9172 do
9173   IFS=$as_save_IFS
9174   test -z "$as_dir" && as_dir=.
9175     for ac_exec_ext in '' $ac_executable_extensions; do
9176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179     break 2
9180   fi
9181 done
9182   done
9183 IFS=$as_save_IFS
9184
9185   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9186   ;;
9187 esac
9188 fi
9189 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9190 if test -n "$FUSERMOUNT"; then
9191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9192 $as_echo "$FUSERMOUNT" >&6; }
9193 else
9194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9196 fi
9197
9198
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define FUSERMOUNT "${FUSERMOUNT}"
9202 _ACEOF
9203
9204
9205
9206 # Checks for dirmngr
9207
9208
9209 #
9210 # Checks for symcryptrun:
9211 #
9212
9213 # libutil has openpty() and login_tty().
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9215 $as_echo_n "checking for openpty in -lutil... " >&6; }
9216 if ${ac_cv_lib_util_openpty+:} false; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   ac_check_lib_save_LIBS=$LIBS
9220 LIBS="-lutil  $LIBS"
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h.  */
9223
9224 /* Override any GCC internal prototype to avoid an error.
9225    Use char because int might match the return type of a GCC
9226    builtin and then its argument prototype would still apply.  */
9227 #ifdef __cplusplus
9228 extern "C"
9229 #endif
9230 char openpty ();
9231 int
9232 main ()
9233 {
9234 return openpty ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240   ac_cv_lib_util_openpty=yes
9241 else
9242   ac_cv_lib_util_openpty=no
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext \
9245     conftest$ac_exeext conftest.$ac_ext
9246 LIBS=$ac_check_lib_save_LIBS
9247 fi
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
9249 $as_echo "$ac_cv_lib_util_openpty" >&6; }
9250 if test "x$ac_cv_lib_util_openpty" = xyes; then :
9251    LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
9252
9253 $as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
9254
9255
9256 fi
9257
9258
9259
9260 # shred is used to clean temporary plain text files.
9261 # Extract the first word of "shred", so it can be a program name with args.
9262 set dummy shred; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_SHRED+:} false; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   case $SHRED in
9269   [\\/]* | ?:[\\/]*)
9270   ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
9271   ;;
9272   *)
9273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276   IFS=$as_save_IFS
9277   test -z "$as_dir" && as_dir=.
9278     for ac_exec_ext in '' $ac_executable_extensions; do
9279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280     ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
9281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282     break 2
9283   fi
9284 done
9285   done
9286 IFS=$as_save_IFS
9287
9288   test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
9289   ;;
9290 esac
9291 fi
9292 SHRED=$ac_cv_path_SHRED
9293 if test -n "$SHRED"; then
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHRED" >&5
9295 $as_echo "$SHRED" >&6; }
9296 else
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9299 fi
9300
9301
9302
9303 cat >>confdefs.h <<_ACEOF
9304 #define SHRED "${SHRED}"
9305 _ACEOF
9306
9307
9308
9309 #
9310 # Check whether the nPth library is available
9311 #
9312
9313 # Check whether --with-npth-prefix was given.
9314 if test "${with_npth_prefix+set}" = set; then :
9315   withval=$with_npth_prefix; npth_config_prefix="$withval"
9316 else
9317   npth_config_prefix=""
9318 fi
9319
9320   if test "x$npth_config_prefix" != x ; then
9321       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9322   fi
9323   # Extract the first word of "npth-config", so it can be a program name with args.
9324 set dummy npth-config; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9328   $as_echo_n "(cached) " >&6
9329 else
9330   case $NPTH_CONFIG in
9331   [\\/]* | ?:[\\/]*)
9332   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9333   ;;
9334   *)
9335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9337 do
9338   IFS=$as_save_IFS
9339   test -z "$as_dir" && as_dir=.
9340     for ac_exec_ext in '' $ac_executable_extensions; do
9341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9342     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344     break 2
9345   fi
9346 done
9347   done
9348 IFS=$as_save_IFS
9349
9350   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9351   ;;
9352 esac
9353 fi
9354 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9355 if test -n "$NPTH_CONFIG"; then
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9357 $as_echo "$NPTH_CONFIG" >&6; }
9358 else
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 fi
9362
9363
9364
9365   if test "$NPTH_CONFIG" != "no" ; then
9366     npth_version=`$NPTH_CONFIG --version`
9367   fi
9368   npth_version_major=`echo $npth_version | \
9369                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9370   npth_version_minor=`echo $npth_version | \
9371                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9372
9373    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9374   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9375      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9376      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9377   else
9378      req_npth_api=1
9379      min_npth_version="$tmp"
9380   fi
9381
9382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9383 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9384   ok=no
9385   if test "$NPTH_CONFIG" != "no" ; then
9386     req_major=`echo $min_npth_version | \
9387                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9388     req_minor=`echo $min_npth_version | \
9389                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9390     if test "$npth_version_major" -gt "$req_major"; then
9391         ok=yes
9392     else
9393         if test "$npth_version_major" -eq "$req_major"; then
9394             if test "$npth_version_minor" -gt "$req_minor"; then
9395                ok=yes
9396             else
9397                if test "$npth_version_minor" -eq "$req_minor"; then
9398                   ok=yes
9399                fi
9400             fi
9401         fi
9402     fi
9403   fi
9404   if test $ok = yes; then
9405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9406 $as_echo "yes ($npth_version)" >&6; }
9407   else
9408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409 $as_echo "no" >&6; }
9410   fi
9411   if test $ok = yes; then
9412      # If we have a recent NPTH, we should also check that the
9413      # API is compatible.
9414      if test "$req_npth_api" -gt 0 ; then
9415         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9416         if test "$tmp" -gt 0 ; then
9417            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9418 $as_echo_n "checking NPTH API version... " >&6; }
9419            if test "$req_npth_api" -eq "$tmp" ; then
9420              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9421 $as_echo "okay" >&6; }
9422            else
9423              ok=no
9424              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9425 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9426            fi
9427         fi
9428      fi
9429   fi
9430   if test $ok = yes; then
9431     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9432     NPTH_LIBS=`$NPTH_CONFIG --libs`
9433     have_npth=yes
9434     npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9435     if test x"$npth_config_host" != xnone ; then
9436       if test x"$npth_config_host" != x"$host" ; then
9437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9438 ***
9439 *** The config script $NPTH_CONFIG was
9440 *** built for $npth_config_host and thus may not match the
9441 *** used host $host.
9442 *** You may want to use the configure option --with-npth-prefix
9443 *** to specify a matching config script.
9444 ***" >&5
9445 $as_echo "$as_me: WARNING:
9446 ***
9447 *** The config script $NPTH_CONFIG was
9448 *** built for $npth_config_host and thus may not match the
9449 *** used host $host.
9450 *** You may want to use the configure option --with-npth-prefix
9451 *** to specify a matching config script.
9452 ***" >&2;}
9453       fi
9454     fi
9455   else
9456     NPTH_CFLAGS=""
9457     NPTH_LIBS=""
9458     have_npth=no
9459   fi
9460
9461
9462
9463 if test "$have_npth" = "yes"; then
9464
9465 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9466
9467
9468 $as_echo "#define USE_NPTH 1" >>confdefs.h
9469
9470 else
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9472 ***
9473 *** To support concurrent access for example in gpg-agent and the SCdaemon
9474 *** we need the support of the New Portable Threads Library.
9475 ***" >&5
9476 $as_echo "$as_me: WARNING:
9477 ***
9478 *** To support concurrent access for example in gpg-agent and the SCdaemon
9479 *** we need the support of the New Portable Threads Library.
9480 ***" >&2;}
9481 fi
9482
9483
9484 #
9485 # NTBTLS is our TLS library.  If it is not available fallback to
9486 # GNUTLS.
9487 #
9488 # Check whether --enable-ntbtls was given.
9489 if test "${enable_ntbtls+set}" = set; then :
9490   enableval=$enable_ntbtls; try_ntbtls=$enableval
9491 else
9492   try_ntbtls=yes
9493 fi
9494
9495 if test x"$try_ntbtls" = xyes ; then
9496
9497
9498 # Check whether --with-ntbtls-prefix was given.
9499 if test "${with_ntbtls_prefix+set}" = set; then :
9500   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9501 else
9502   ntbtls_config_prefix=""
9503 fi
9504
9505   if test x"${NTBTLS_CONFIG}" = x ; then
9506      if test x"${ntbtls_config_prefix}" != x ; then
9507         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9508      else
9509        case "${SYSROOT}" in
9510          /*)
9511            if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9512              NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9513            fi
9514            ;;
9515          '')
9516            ;;
9517           *)
9518            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9519 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9520            ;;
9521        esac
9522      fi
9523   fi
9524
9525   # Extract the first word of "ntbtls-config", so it can be a program name with args.
9526 set dummy ntbtls-config; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   case $NTBTLS_CONFIG in
9533   [\\/]* | ?:[\\/]*)
9534   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9535   ;;
9536   *)
9537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540   IFS=$as_save_IFS
9541   test -z "$as_dir" && as_dir=.
9542     for ac_exec_ext in '' $ac_executable_extensions; do
9543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546     break 2
9547   fi
9548 done
9549   done
9550 IFS=$as_save_IFS
9551
9552   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9553   ;;
9554 esac
9555 fi
9556 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9557 if test -n "$NTBTLS_CONFIG"; then
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9559 $as_echo "$NTBTLS_CONFIG" >&6; }
9560 else
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 fi
9564
9565
9566   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9567   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9568      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9569      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9570   else
9571      req_ntbtls_api=0
9572      min_ntbtls_version="$tmp"
9573   fi
9574
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9576 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9577   ok=no
9578   if test "$NTBTLS_CONFIG" != "no" ; then
9579     req_major=`echo $min_ntbtls_version | \
9580                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9581     req_minor=`echo $min_ntbtls_version | \
9582                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9583     req_micro=`echo $min_ntbtls_version | \
9584                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9585     ntbtls_config_version=`$NTBTLS_CONFIG --version`
9586     major=`echo $ntbtls_config_version | \
9587                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9588     minor=`echo $ntbtls_config_version | \
9589                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9590     micro=`echo $ntbtls_config_version | \
9591                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9592     if test "$major" -gt "$req_major"; then
9593         ok=yes
9594     else
9595         if test "$major" -eq "$req_major"; then
9596             if test "$minor" -gt "$req_minor"; then
9597                ok=yes
9598             else
9599                if test "$minor" -eq "$req_minor"; then
9600                    if test "$micro" -ge "$req_micro"; then
9601                      ok=yes
9602                    fi
9603                fi
9604             fi
9605         fi
9606     fi
9607   fi
9608   if test $ok = yes; then
9609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9610 $as_echo "yes ($ntbtls_config_version)" >&6; }
9611   else
9612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614   fi
9615   if test $ok = yes; then
9616      # If we have a recent ntbtls, we should also check that the
9617      # API is compatible
9618      if test "$req_ntbtls_api" -gt 0 ; then
9619         tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9620         if test "$tmp" -gt 0 ; then
9621            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9622 $as_echo_n "checking NTBTLS API version... " >&6; }
9623            if test "$req_ntbtls_api" -eq "$tmp" ; then
9624              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9625 $as_echo "okay" >&6; }
9626            else
9627              ok=no
9628              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9629 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9630            fi
9631         fi
9632      fi
9633   fi
9634   if test $ok = yes; then
9635     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9636     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9637     have_ntbtls=yes
9638     ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
9639     if test x"$ntbtls_config_host" != xnone ; then
9640       if test x"$ntbtls_config_host" != x"$host" ; then
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9642 ***
9643 *** The config script $NTBTLS_CONFIG was
9644 *** built for $ntbtls_config_host and thus may not match the
9645 *** used host $host.
9646 *** You may want to use the configure option --with-ntbtls-prefix
9647 *** to specify a matching config script or use \$SYSROOT.
9648 ***" >&5
9649 $as_echo "$as_me: WARNING:
9650 ***
9651 *** The config script $NTBTLS_CONFIG was
9652 *** built for $ntbtls_config_host and thus may not match the
9653 *** used host $host.
9654 *** You may want to use the configure option --with-ntbtls-prefix
9655 *** to specify a matching config script or use \$SYSROOT.
9656 ***" >&2;}
9657         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
9658       fi
9659     fi
9660   else
9661     NTBTLS_CFLAGS=""
9662     NTBTLS_LIBS=""
9663     have_ntbtls=no
9664   fi
9665
9666
9667
9668 fi
9669 if test "$have_ntbtls" = yes ; then
9670    use_tls_library=ntbtls
9671
9672 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
9673
9674 else
9675   # Check whether --enable-gnutls was given.
9676 if test "${enable_gnutls+set}" = set; then :
9677   enableval=$enable_gnutls; try_gnutls=$enableval
9678 else
9679   try_gnutls=yes
9680 fi
9681
9682   if test x"$try_gnutls" = xyes ; then
9683
9684 pkg_failed=no
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
9686 $as_echo_n "checking for LIBGNUTLS... " >&6; }
9687
9688 if test -n "$LIBGNUTLS_CFLAGS"; then
9689     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
9690  elif test -n "$PKG_CONFIG"; then
9691     if test -n "$PKG_CONFIG" && \
9692     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9693   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9694   ac_status=$?
9695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9696   test $ac_status = 0; }; then
9697   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9698                       test "x$?" != "x0" && pkg_failed=yes
9699 else
9700   pkg_failed=yes
9701 fi
9702  else
9703     pkg_failed=untried
9704 fi
9705 if test -n "$LIBGNUTLS_LIBS"; then
9706     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
9707  elif test -n "$PKG_CONFIG"; then
9708     if test -n "$PKG_CONFIG" && \
9709     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9710   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9711   ac_status=$?
9712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9713   test $ac_status = 0; }; then
9714   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9715                       test "x$?" != "x0" && pkg_failed=yes
9716 else
9717   pkg_failed=yes
9718 fi
9719  else
9720     pkg_failed=untried
9721 fi
9722
9723
9724
9725 if test $pkg_failed = yes; then
9726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9728
9729 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9730         _pkg_short_errors_supported=yes
9731 else
9732         _pkg_short_errors_supported=no
9733 fi
9734         if test $_pkg_short_errors_supported = yes; then
9735                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9736         else
9737                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9738         fi
9739         # Put the nasty error message in config.log where it belongs
9740         echo "$LIBGNUTLS_PKG_ERRORS" >&5
9741
9742         have_gnutls=no
9743 elif test $pkg_failed = untried; then
9744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746         have_gnutls=no
9747 else
9748         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
9749         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
9750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9751 $as_echo "yes" >&6; }
9752         have_gnutls=yes
9753 fi
9754   fi
9755   if test "$have_gnutls" = "yes"; then
9756
9757
9758     use_tls_library=gnutls
9759
9760 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
9761
9762   else
9763     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9765 ***
9766 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9767 ***
9768 *** $tmp" >&5
9769 $as_echo "$as_me: WARNING:
9770 ***
9771 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9772 ***
9773 *** $tmp" >&2;}
9774   fi
9775 fi
9776
9777
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
9779 $as_echo "$as_me: checking for networking options" >&6;}
9780
9781 #
9782 # Must check for network library requirements before doing link tests
9783 # for ldap, for example. If ldap libs are static (or dynamic and without
9784 # ELF runtime link paths), then link will fail and LDAP support won't
9785 # be detected.
9786 #
9787 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9788 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9789
9790 else
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9792 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9793 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796   ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-lnsl  $LIBS"
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h.  */
9800
9801 /* Override any GCC internal prototype to avoid an error.
9802    Use char because int might match the return type of a GCC
9803    builtin and then its argument prototype would still apply.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char gethostbyname ();
9808 int
9809 main ()
9810 {
9811 return gethostbyname ();
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817   ac_cv_lib_nsl_gethostbyname=yes
9818 else
9819   ac_cv_lib_nsl_gethostbyname=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822     conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9826 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9827 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9828   NETLIBS="-lnsl $NETLIBS"
9829 fi
9830
9831 fi
9832
9833 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
9834 if test "x$ac_cv_func_setsockopt" = xyes; then :
9835
9836 else
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
9838 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
9839 if ${ac_cv_lib_socket_setsockopt+:} false; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-lsocket  $LIBS"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char setsockopt ();
9854 int
9855 main ()
9856 {
9857 return setsockopt ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9863   ac_cv_lib_socket_setsockopt=yes
9864 else
9865   ac_cv_lib_socket_setsockopt=no
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext \
9868     conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
9872 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
9873 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
9874   NETLIBS="-lsocket $NETLIBS"
9875 fi
9876
9877 fi
9878
9879
9880
9881 #
9882 # Check standard resolver functions.
9883 #
9884 if test "$build_dirmngr" = "yes"; then
9885   _dns_save_libs=$LIBS
9886   LIBS=""
9887
9888   # Find the system resolver which can always be enabled with
9889   # the dirmngr option --standard-resolver.
9890
9891   # the double underscore thing is a glibc-ism?
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
9893 $as_echo_n "checking for library containing res_query... " >&6; }
9894 if ${ac_cv_search_res_query+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   ac_func_search_save_LIBS=$LIBS
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h.  */
9900
9901 /* Override any GCC internal prototype to avoid an error.
9902    Use char because int might match the return type of a GCC
9903    builtin and then its argument prototype would still apply.  */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 char res_query ();
9908 int
9909 main ()
9910 {
9911 return res_query ();
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 for ac_lib in '' resolv bind; do
9917   if test -z "$ac_lib"; then
9918     ac_res="none required"
9919   else
9920     ac_res=-l$ac_lib
9921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9922   fi
9923   if ac_fn_c_try_link "$LINENO"; then :
9924   ac_cv_search_res_query=$ac_res
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext \
9927     conftest$ac_exeext
9928   if ${ac_cv_search_res_query+:} false; then :
9929   break
9930 fi
9931 done
9932 if ${ac_cv_search_res_query+:} false; then :
9933
9934 else
9935   ac_cv_search_res_query=no
9936 fi
9937 rm conftest.$ac_ext
9938 LIBS=$ac_func_search_save_LIBS
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
9941 $as_echo "$ac_cv_search_res_query" >&6; }
9942 ac_res=$ac_cv_search_res_query
9943 if test "$ac_res" != no; then :
9944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9945
9946 else
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
9948 $as_echo_n "checking for library containing __res_query... " >&6; }
9949 if ${ac_cv_search___res_query+:} false; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   ac_func_search_save_LIBS=$LIBS
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h.  */
9955
9956 /* Override any GCC internal prototype to avoid an error.
9957    Use char because int might match the return type of a GCC
9958    builtin and then its argument prototype would still apply.  */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char __res_query ();
9963 int
9964 main ()
9965 {
9966 return __res_query ();
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 for ac_lib in '' resolv bind; do
9972   if test -z "$ac_lib"; then
9973     ac_res="none required"
9974   else
9975     ac_res=-l$ac_lib
9976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9977   fi
9978   if ac_fn_c_try_link "$LINENO"; then :
9979   ac_cv_search___res_query=$ac_res
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982     conftest$ac_exeext
9983   if ${ac_cv_search___res_query+:} false; then :
9984   break
9985 fi
9986 done
9987 if ${ac_cv_search___res_query+:} false; then :
9988
9989 else
9990   ac_cv_search___res_query=no
9991 fi
9992 rm conftest.$ac_ext
9993 LIBS=$ac_func_search_save_LIBS
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
9996 $as_echo "$ac_cv_search___res_query" >&6; }
9997 ac_res=$ac_cv_search___res_query
9998 if test "$ac_res" != no; then :
9999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10000
10001 else
10002   have_resolver=no
10003 fi
10004
10005 fi
10006
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10008 $as_echo_n "checking for library containing dn_expand... " >&6; }
10009 if ${ac_cv_search_dn_expand+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   ac_func_search_save_LIBS=$LIBS
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h.  */
10015
10016 /* Override any GCC internal prototype to avoid an error.
10017    Use char because int might match the return type of a GCC
10018    builtin and then its argument prototype would still apply.  */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 char dn_expand ();
10023 int
10024 main ()
10025 {
10026 return dn_expand ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 for ac_lib in '' resolv bind; do
10032   if test -z "$ac_lib"; then
10033     ac_res="none required"
10034   else
10035     ac_res=-l$ac_lib
10036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10037   fi
10038   if ac_fn_c_try_link "$LINENO"; then :
10039   ac_cv_search_dn_expand=$ac_res
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042     conftest$ac_exeext
10043   if ${ac_cv_search_dn_expand+:} false; then :
10044   break
10045 fi
10046 done
10047 if ${ac_cv_search_dn_expand+:} false; then :
10048
10049 else
10050   ac_cv_search_dn_expand=no
10051 fi
10052 rm conftest.$ac_ext
10053 LIBS=$ac_func_search_save_LIBS
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10056 $as_echo "$ac_cv_search_dn_expand" >&6; }
10057 ac_res=$ac_cv_search_dn_expand
10058 if test "$ac_res" != no; then :
10059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10060
10061 else
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10063 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10064 if ${ac_cv_search___dn_expand+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   ac_func_search_save_LIBS=$LIBS
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h.  */
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072    Use char because int might match the return type of a GCC
10073    builtin and then its argument prototype would still apply.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char __dn_expand ();
10078 int
10079 main ()
10080 {
10081 return __dn_expand ();
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 for ac_lib in '' resolv bind; do
10087   if test -z "$ac_lib"; then
10088     ac_res="none required"
10089   else
10090     ac_res=-l$ac_lib
10091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10092   fi
10093   if ac_fn_c_try_link "$LINENO"; then :
10094   ac_cv_search___dn_expand=$ac_res
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext \
10097     conftest$ac_exeext
10098   if ${ac_cv_search___dn_expand+:} false; then :
10099   break
10100 fi
10101 done
10102 if ${ac_cv_search___dn_expand+:} false; then :
10103
10104 else
10105   ac_cv_search___dn_expand=no
10106 fi
10107 rm conftest.$ac_ext
10108 LIBS=$ac_func_search_save_LIBS
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10111 $as_echo "$ac_cv_search___dn_expand" >&6; }
10112 ac_res=$ac_cv_search___dn_expand
10113 if test "$ac_res" != no; then :
10114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10115
10116 else
10117   have_resolver=no
10118 fi
10119
10120 fi
10121
10122
10123   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10124   # and for some reason fools us into believing we don't need
10125   # -lresolv even if we do.  Since the test program checking for the
10126   # symbol does not include <resolv.h>, we need to check for the
10127   # renamed symbol explicitly.
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10129 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10130 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   ac_func_search_save_LIBS=$LIBS
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h.  */
10136
10137 /* Override any GCC internal prototype to avoid an error.
10138    Use char because int might match the return type of a GCC
10139    builtin and then its argument prototype would still apply.  */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char res_9_dn_skipname ();
10144 int
10145 main ()
10146 {
10147 return res_9_dn_skipname ();
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 for ac_lib in '' resolv bind; do
10153   if test -z "$ac_lib"; then
10154     ac_res="none required"
10155   else
10156     ac_res=-l$ac_lib
10157     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10158   fi
10159   if ac_fn_c_try_link "$LINENO"; then :
10160   ac_cv_search_res_9_dn_skipname=$ac_res
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163     conftest$ac_exeext
10164   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10165   break
10166 fi
10167 done
10168 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10169
10170 else
10171   ac_cv_search_res_9_dn_skipname=no
10172 fi
10173 rm conftest.$ac_ext
10174 LIBS=$ac_func_search_save_LIBS
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10177 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10178 ac_res=$ac_cv_search_res_9_dn_skipname
10179 if test "$ac_res" != no; then :
10180   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10181
10182 else
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10184 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10185 if ${ac_cv_search_dn_skipname+:} false; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   ac_func_search_save_LIBS=$LIBS
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h.  */
10191
10192 /* Override any GCC internal prototype to avoid an error.
10193    Use char because int might match the return type of a GCC
10194    builtin and then its argument prototype would still apply.  */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char dn_skipname ();
10199 int
10200 main ()
10201 {
10202 return dn_skipname ();
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 for ac_lib in '' resolv bind; do
10208   if test -z "$ac_lib"; then
10209     ac_res="none required"
10210   else
10211     ac_res=-l$ac_lib
10212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10213   fi
10214   if ac_fn_c_try_link "$LINENO"; then :
10215   ac_cv_search_dn_skipname=$ac_res
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext \
10218     conftest$ac_exeext
10219   if ${ac_cv_search_dn_skipname+:} false; then :
10220   break
10221 fi
10222 done
10223 if ${ac_cv_search_dn_skipname+:} false; then :
10224
10225 else
10226   ac_cv_search_dn_skipname=no
10227 fi
10228 rm conftest.$ac_ext
10229 LIBS=$ac_func_search_save_LIBS
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10232 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10233 ac_res=$ac_cv_search_dn_skipname
10234 if test "$ac_res" != no; then :
10235   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10236
10237 else
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10239 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10240 if ${ac_cv_search___dn_skipname+:} false; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   ac_func_search_save_LIBS=$LIBS
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h.  */
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char __dn_skipname ();
10254 int
10255 main ()
10256 {
10257 return __dn_skipname ();
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 for ac_lib in '' resolv bind; do
10263   if test -z "$ac_lib"; then
10264     ac_res="none required"
10265   else
10266     ac_res=-l$ac_lib
10267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10268   fi
10269   if ac_fn_c_try_link "$LINENO"; then :
10270   ac_cv_search___dn_skipname=$ac_res
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273     conftest$ac_exeext
10274   if ${ac_cv_search___dn_skipname+:} false; then :
10275   break
10276 fi
10277 done
10278 if ${ac_cv_search___dn_skipname+:} false; then :
10279
10280 else
10281   ac_cv_search___dn_skipname=no
10282 fi
10283 rm conftest.$ac_ext
10284 LIBS=$ac_func_search_save_LIBS
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10287 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10288 ac_res=$ac_cv_search___dn_skipname
10289 if test "$ac_res" != no; then :
10290   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10291
10292 else
10293   have_resolver=no
10294 fi
10295
10296 fi
10297
10298 fi
10299
10300
10301   if test x"$have_resolver" != xno ; then
10302
10303       # Make sure that the BIND 4 resolver interface is workable before
10304       # enabling any code that calls it.  At some point I'll rewrite the
10305       # code to use the BIND 8 resolver API.
10306       # We might also want to use libdns instead.
10307
10308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10309 $as_echo_n "checking whether the resolver is usable... " >&6; }
10310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h.  */
10312 #include <sys/types.h>
10313 #include <netinet/in.h>
10314 #include <arpa/nameser.h>
10315 #include <resolv.h>
10316 int
10317 main ()
10318 {
10319 unsigned char answer[PACKETSZ];
10320   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10321   dn_skipname(0,0);
10322   dn_expand(0,0,0,0,0);
10323
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329   have_resolver=yes
10330 else
10331   have_resolver=no
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext \
10334     conftest$ac_exeext conftest.$ac_ext
10335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10336 $as_echo "$have_resolver" >&6; }
10337
10338     # This is Apple-specific and somewhat bizarre as they changed the
10339     # define in bind 8 for some reason.
10340
10341     if test x"$have_resolver" != xyes ; then
10342       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10343 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10344       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h.  */
10346 #define BIND_8_COMPAT
10347 #include <sys/types.h>
10348 #include <netinet/in.h>
10349 #include <arpa/nameser.h>
10350 #include <resolv.h>
10351 int
10352 main ()
10353 {
10354 unsigned char answer[PACKETSZ];
10355   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10356   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10357
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 if ac_fn_c_try_link "$LINENO"; then :
10363   have_resolver=yes ; need_compat=yes
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366     conftest$ac_exeext conftest.$ac_ext
10367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10368 $as_echo "$have_resolver" >&6; }
10369     fi
10370   fi
10371
10372   if test x"$have_resolver" = xyes ; then
10373
10374 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10375
10376     DNSLIBS="$DNSLIBS $LIBS"
10377     if test x"$need_compat" = xyes ; then
10378
10379 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10380
10381     fi
10382     if test "$use_libdns" = yes; then
10383      show_tor_support=yes
10384     fi
10385   elif test "$use_libdns" = yes; then
10386     show_tor_support=yes
10387   else
10388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10389 ***
10390 *** The system's DNS resolver is not usable.
10391 *** Dirmngr functionality is limited.
10392 ***" >&5
10393 $as_echo "$as_me: WARNING:
10394 ***
10395 *** The system's DNS resolver is not usable.
10396 *** Dirmngr functionality is limited.
10397 ***" >&2;}
10398     show_tor_support="${show_tor_support} (no system resolver)"
10399   fi
10400
10401   if test "$have_w32_system" = yes; then
10402     if test "$use_libdns" = yes; then
10403       DNSLIBS="$DNSLIBS -liphlpapi"
10404     fi
10405   fi
10406
10407   LIBS=$_dns_save_libs
10408 fi
10409
10410
10411
10412
10413 #
10414 # Check for LDAP
10415 #
10416 # Note that running the check changes the variable
10417 # gnupg_have_ldap from "n/a" to "no" or "yes".
10418
10419 # Check whether --enable-ldap was given.
10420 if test "${enable_ldap+set}" = set; then :
10421   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10422 fi
10423
10424
10425 if test "$gnupg_have_ldap" != "no" ; then
10426   if test "$build_dirmngr" = "yes" ; then
10427
10428 # Try and link a LDAP test program to weed out unusable LDAP
10429 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10430 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10431 # If all else fails, the user can play guess-the-dependency by using
10432 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10433 gnupg_have_ldap=no
10434
10435 # Check whether --with-ldap was given.
10436 if test "${with_ldap+set}" = set; then :
10437   withval=$with_ldap; _ldap_with=$withval
10438 fi
10439
10440
10441 if test x$_ldap_with != xno ; then
10442
10443   if test -d "$withval" ; then
10444      LDAP_CPPFLAGS="-I$withval/include"
10445      LDAP_LDFLAGS="-L$withval/lib"
10446   fi
10447
10448   _ldap_save_cppflags=$CPPFLAGS
10449   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10450   _ldap_save_ldflags=$LDFLAGS
10451   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10452
10453   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10454     _ldap_save_libs=$LIBS
10455     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10456
10457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10458 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h.  */
10461
10462 #ifdef _WIN32
10463 #include <winsock2.h>
10464 #include <winldap.h>
10465 #else
10466 #include <ldap.h>
10467 #endif
10468
10469 int
10470 main ()
10471 {
10472 ldap_open("foobar",1234);
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478   gnupg_cv_func_ldap_init=yes
10479 else
10480   gnupg_cv_func_ldap_init=no
10481 fi
10482 rm -f core conftest.err conftest.$ac_objext \
10483     conftest$ac_exeext conftest.$ac_ext
10484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10485 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10486
10487     if test $gnupg_cv_func_ldap_init = no; then
10488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10489 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h.  */
10492 #include <lber.h>
10493 #include <ldap.h>
10494 int
10495 main ()
10496 {
10497 ldap_open("foobar",1234);
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"; then :
10503   gnupg_cv_func_ldaplber_init=yes
10504 else
10505   gnupg_cv_func_ldaplber_init=no
10506 fi
10507 rm -f core conftest.err conftest.$ac_objext \
10508     conftest$ac_exeext conftest.$ac_ext
10509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10510 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10511     fi
10512
10513     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10514
10515 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10516
10517     fi
10518
10519     if test "$gnupg_cv_func_ldap_init" = yes || \
10520         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10521        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10522        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10523        gnupg_have_ldap=yes
10524
10525        for ac_func in ldap_get_option ldap_set_option
10526 do :
10527   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10530   cat >>confdefs.h <<_ACEOF
10531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10532 _ACEOF
10533
10534 fi
10535 done
10536
10537        # The extra test for ldap_start_tls_sA is for W32 because
10538        # that is the actual function in the library.
10539        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10540 do :
10541   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10544   cat >>confdefs.h <<_ACEOF
10545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10546 _ACEOF
10547
10548 fi
10549 done
10550
10551
10552        if test "$ac_cv_func_ldap_get_option" != yes ; then
10553           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10554 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10555           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h.  */
10557 #include <ldap.h>
10558 int
10559 main ()
10560 {
10561 LDAP *ldap; ldap->ld_errno;
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567   gnupg_cv_func_ldap_ld_errno=yes
10568 else
10569   gnupg_cv_func_ldap_ld_errno=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572     conftest$ac_exeext conftest.$ac_ext
10573           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10574 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10575
10576           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10577
10578 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10579
10580           fi
10581        fi
10582     fi
10583
10584     LIBS=$_ldap_save_libs
10585
10586     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10587   done
10588
10589
10590
10591
10592
10593   CPPFLAGS=$_ldap_save_cppflags
10594   LDFLAGS=$_ldap_save_ldflags
10595 fi
10596
10597      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10598 $as_echo_n "checking for ber_free in -llber... " >&6; }
10599 if ${ac_cv_lib_lber_ber_free+:} false; then :
10600   $as_echo_n "(cached) " >&6
10601 else
10602   ac_check_lib_save_LIBS=$LIBS
10603 LIBS="-llber  $LIBS"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h.  */
10606
10607 /* Override any GCC internal prototype to avoid an error.
10608    Use char because int might match the return type of a GCC
10609    builtin and then its argument prototype would still apply.  */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char ber_free ();
10614 int
10615 main ()
10616 {
10617 return ber_free ();
10618   ;
10619   return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623   ac_cv_lib_lber_ber_free=yes
10624 else
10625   ac_cv_lib_lber_ber_free=no
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628     conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
10632 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
10633 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
10634    LBER_LIBS="$LBER_LIBS -llber"
10635
10636 $as_echo "#define HAVE_LBER 1" >>confdefs.h
10637
10638                     have_lber=yes
10639
10640 fi
10641
10642   fi
10643 fi
10644
10645 if test "$gnupg_have_ldap" = "no"; then
10646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10647 ***
10648 *** Building without LDAP support.
10649 *** No CRL access or X.509 certificate search available.
10650 ***" >&5
10651 $as_echo "$as_me: WARNING:
10652 ***
10653 *** Building without LDAP support.
10654 *** No CRL access or X.509 certificate search available.
10655 ***" >&2;}
10656 fi
10657
10658  if test "$gnupg_have_ldap" = yes; then
10659   USE_LDAP_TRUE=
10660   USE_LDAP_FALSE='#'
10661 else
10662   USE_LDAP_TRUE='#'
10663   USE_LDAP_FALSE=
10664 fi
10665
10666 if test "$gnupg_have_ldap" = yes ; then
10667
10668 $as_echo "#define USE_LDAP 1" >>confdefs.h
10669
10670 else
10671  use_ldapwrapper=no
10672 fi
10673
10674 if test "$use_ldapwrapper" = yes; then
10675
10676 $as_echo "#define USE_LDAPWRAPPER 1" >>confdefs.h
10677
10678 fi
10679  if test "$use_ldapwrapper" = yes; then
10680   USE_LDAPWRAPPER_TRUE=
10681   USE_LDAPWRAPPER_FALSE='#'
10682 else
10683   USE_LDAPWRAPPER_TRUE='#'
10684   USE_LDAPWRAPPER_FALSE=
10685 fi
10686
10687
10688
10689
10690
10691 #
10692 # Check for sendmail
10693 #
10694 # This isn't necessarily sendmail itself, but anything that gives a
10695 # sendmail-ish interface to the outside world.  That includes Exim,
10696 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
10697
10698 # Check whether --with-mailprog was given.
10699 if test "${with_mailprog+set}" = set; then :
10700   withval=$with_mailprog;
10701 else
10702   with_mailprog=yes
10703 fi
10704
10705 if test x"$with_mailprog" = xyes ; then
10706     # Extract the first word of "sendmail", so it can be a program name with args.
10707 set dummy sendmail; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_SENDMAIL+:} false; then :
10711   $as_echo_n "(cached) " >&6
10712 else
10713   case $SENDMAIL in
10714   [\\/]* | ?:[\\/]*)
10715   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
10716   ;;
10717   *)
10718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 as_dummy="$PATH:/usr/sbin:/usr/libexec:/usr/lib"
10720 for as_dir in $as_dummy
10721 do
10722   IFS=$as_save_IFS
10723   test -z "$as_dir" && as_dir=.
10724     for ac_exec_ext in '' $ac_executable_extensions; do
10725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
10727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728     break 2
10729   fi
10730 done
10731   done
10732 IFS=$as_save_IFS
10733
10734   ;;
10735 esac
10736 fi
10737 SENDMAIL=$ac_cv_path_SENDMAIL
10738 if test -n "$SENDMAIL"; then
10739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
10740 $as_echo "$SENDMAIL" >&6; }
10741 else
10742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744 fi
10745
10746
10747 elif test x"$with_mailprog" != xno ; then
10748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
10749 $as_echo_n "checking for a mail transport program... " >&6; }
10750     SENDMAIL=$with_mailprog
10751
10752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
10753 $as_echo "$with_mailprog" >&6; }
10754 fi
10755
10756
10757 #
10758 # Construct a printable name of the OS
10759 #
10760 case "${host}" in
10761     *-mingw32ce*)
10762         PRINTABLE_OS_NAME="W32CE"
10763         ;;
10764     *-mingw32*)
10765         PRINTABLE_OS_NAME="MingW32"
10766         ;;
10767     *-*-cygwin*)
10768         PRINTABLE_OS_NAME="Cygwin"
10769         ;;
10770     i?86-emx-os2 | i?86-*-os2*emx )
10771         PRINTABLE_OS_NAME="OS/2"
10772         ;;
10773     i?86-*-msdosdjgpp*)
10774         PRINTABLE_OS_NAME="MSDOS/DJGPP"
10775         try_dynload=no
10776         ;;
10777     *-linux*)
10778         PRINTABLE_OS_NAME="GNU/Linux"
10779         ;;
10780     *)
10781         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
10782         ;;
10783 esac
10784
10785 cat >>confdefs.h <<_ACEOF
10786 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
10787 _ACEOF
10788
10789
10790
10791 #
10792 # Checking for iconv
10793 #
10794 if test "$require_iconv" = yes; then
10795
10796       if test "X$prefix" = "XNONE"; then
10797     acl_final_prefix="$ac_default_prefix"
10798   else
10799     acl_final_prefix="$prefix"
10800   fi
10801   if test "X$exec_prefix" = "XNONE"; then
10802     acl_final_exec_prefix='${prefix}'
10803   else
10804     acl_final_exec_prefix="$exec_prefix"
10805   fi
10806   acl_save_prefix="$prefix"
10807   prefix="$acl_final_prefix"
10808   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10809   prefix="$acl_save_prefix"
10810
10811
10812 # Check whether --with-gnu-ld was given.
10813 if test "${with_gnu_ld+set}" = set; then :
10814   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10815 else
10816   with_gnu_ld=no
10817 fi
10818
10819 # Prepare PATH_SEPARATOR.
10820 # The user is always right.
10821 if test "${PATH_SEPARATOR+set}" != set; then
10822   echo "#! /bin/sh" >conf$$.sh
10823   echo  "exit 0"   >>conf$$.sh
10824   chmod +x conf$$.sh
10825   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10826     PATH_SEPARATOR=';'
10827   else
10828     PATH_SEPARATOR=:
10829   fi
10830   rm -f conf$$.sh
10831 fi
10832 ac_prog=ld
10833 if test "$GCC" = yes; then
10834   # Check if gcc -print-prog-name=ld gives a path.
10835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10836 $as_echo_n "checking for ld used by GCC... " >&6; }
10837   case $host in
10838   *-*-mingw*)
10839     # gcc leaves a trailing carriage return which upsets mingw
10840     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10841   *)
10842     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10843   esac
10844   case $ac_prog in
10845     # Accept absolute paths.
10846     [\\/]* | [A-Za-z]:[\\/]*)
10847       re_direlt='/[^/][^/]*/\.\./'
10848       # Canonicalize the path of ld
10849       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10850       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10851         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10852       done
10853       test -z "$LD" && LD="$ac_prog"
10854       ;;
10855   "")
10856     # If it fails, then pretend we aren't using GCC.
10857     ac_prog=ld
10858     ;;
10859   *)
10860     # If it is relative, then search for the first ld in PATH.
10861     with_gnu_ld=unknown
10862     ;;
10863   esac
10864 elif test "$with_gnu_ld" = yes; then
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10866 $as_echo_n "checking for GNU ld... " >&6; }
10867 else
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10869 $as_echo_n "checking for non-GNU ld... " >&6; }
10870 fi
10871 if ${acl_cv_path_LD+:} false; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   if test -z "$LD"; then
10875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10876   for ac_dir in $PATH; do
10877     test -z "$ac_dir" && ac_dir=.
10878     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10879       acl_cv_path_LD="$ac_dir/$ac_prog"
10880       # Check to see if the program is GNU ld.  I'd rather use --version,
10881       # but apparently some GNU ld's only accept -v.
10882       # Break only if it was the GNU/non-GNU ld that we prefer.
10883       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10884       *GNU* | *'with BFD'*)
10885         test "$with_gnu_ld" != no && break ;;
10886       *)
10887         test "$with_gnu_ld" != yes && break ;;
10888       esac
10889     fi
10890   done
10891   IFS="$ac_save_ifs"
10892 else
10893   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10894 fi
10895 fi
10896
10897 LD="$acl_cv_path_LD"
10898 if test -n "$LD"; then
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10900 $as_echo "$LD" >&6; }
10901 else
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10907 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10908 if ${acl_cv_prog_gnu_ld+:} false; then :
10909   $as_echo_n "(cached) " >&6
10910 else
10911   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10912 case `$LD -v 2>&1 </dev/null` in
10913 *GNU* | *'with BFD'*)
10914   acl_cv_prog_gnu_ld=yes ;;
10915 *)
10916   acl_cv_prog_gnu_ld=no ;;
10917 esac
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10921 with_gnu_ld=$acl_cv_prog_gnu_ld
10922
10923
10924
10925
10926                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10927 $as_echo_n "checking for shared library run path origin... " >&6; }
10928 if ${acl_cv_rpath+:} false; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931
10932     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10933     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10934     . ./conftest.sh
10935     rm -f ./conftest.sh
10936     acl_cv_rpath=done
10937
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10940 $as_echo "$acl_cv_rpath" >&6; }
10941   wl="$acl_cv_wl"
10942   acl_libext="$acl_cv_libext"
10943   acl_shlibext="$acl_cv_shlibext"
10944   acl_libname_spec="$acl_cv_libname_spec"
10945   acl_library_names_spec="$acl_cv_library_names_spec"
10946   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10947   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10948   acl_hardcode_direct="$acl_cv_hardcode_direct"
10949   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10950     # Check whether --enable-rpath was given.
10951 if test "${enable_rpath+set}" = set; then :
10952   enableval=$enable_rpath; :
10953 else
10954   enable_rpath=yes
10955 fi
10956
10957
10958
10959                   acl_libdirstem=lib
10960   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10961   if test -n "$searchpath"; then
10962     acl_save_IFS="${IFS=        }"; IFS=":"
10963     for searchdir in $searchpath; do
10964       if test -d "$searchdir"; then
10965         case "$searchdir" in
10966           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10967           *) searchdir=`cd "$searchdir" && pwd`
10968              case "$searchdir" in
10969                */lib64 ) acl_libdirstem=lib64 ;;
10970              esac ;;
10971         esac
10972       fi
10973     done
10974     IFS="$acl_save_IFS"
10975   fi
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985     use_additional=yes
10986
10987   acl_save_prefix="$prefix"
10988   prefix="$acl_final_prefix"
10989   acl_save_exec_prefix="$exec_prefix"
10990   exec_prefix="$acl_final_exec_prefix"
10991
10992     eval additional_includedir=\"$includedir\"
10993     eval additional_libdir=\"$libdir\"
10994
10995   exec_prefix="$acl_save_exec_prefix"
10996   prefix="$acl_save_prefix"
10997
10998
10999 # Check whether --with-libiconv-prefix was given.
11000 if test "${with_libiconv_prefix+set}" = set; then :
11001   withval=$with_libiconv_prefix;
11002     if test "X$withval" = "Xno"; then
11003       use_additional=no
11004     else
11005       if test "X$withval" = "X"; then
11006
11007   acl_save_prefix="$prefix"
11008   prefix="$acl_final_prefix"
11009   acl_save_exec_prefix="$exec_prefix"
11010   exec_prefix="$acl_final_exec_prefix"
11011
11012           eval additional_includedir=\"$includedir\"
11013           eval additional_libdir=\"$libdir\"
11014
11015   exec_prefix="$acl_save_exec_prefix"
11016   prefix="$acl_save_prefix"
11017
11018       else
11019         additional_includedir="$withval/include"
11020         additional_libdir="$withval/$acl_libdirstem"
11021       fi
11022     fi
11023
11024 fi
11025
11026       LIBICONV=
11027   LTLIBICONV=
11028   INCICONV=
11029   LIBICONV_PREFIX=
11030   rpathdirs=
11031   ltrpathdirs=
11032   names_already_handled=
11033   names_next_round='iconv '
11034   while test -n "$names_next_round"; do
11035     names_this_round="$names_next_round"
11036     names_next_round=
11037     for name in $names_this_round; do
11038       already_handled=
11039       for n in $names_already_handled; do
11040         if test "$n" = "$name"; then
11041           already_handled=yes
11042           break
11043         fi
11044       done
11045       if test -z "$already_handled"; then
11046         names_already_handled="$names_already_handled $name"
11047                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11048         eval value=\"\$HAVE_LIB$uppername\"
11049         if test -n "$value"; then
11050           if test "$value" = yes; then
11051             eval value=\"\$LIB$uppername\"
11052             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11053             eval value=\"\$LTLIB$uppername\"
11054             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11055           else
11056                                     :
11057           fi
11058         else
11059                               found_dir=
11060           found_la=
11061           found_so=
11062           found_a=
11063           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11064           if test -n "$acl_shlibext"; then
11065             shrext=".$acl_shlibext"             # typically: shrext=.so
11066           else
11067             shrext=
11068           fi
11069           if test $use_additional = yes; then
11070             dir="$additional_libdir"
11071                                     if test -n "$acl_shlibext"; then
11072               if test -f "$dir/$libname$shrext"; then
11073                 found_dir="$dir"
11074                 found_so="$dir/$libname$shrext"
11075               else
11076                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11077                   ver=`(cd "$dir" && \
11078                         for f in "$libname$shrext".*; do echo "$f"; done \
11079                         | sed -e "s,^$libname$shrext\\\\.,," \
11080                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11081                         | sed 1q ) 2>/dev/null`
11082                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11083                     found_dir="$dir"
11084                     found_so="$dir/$libname$shrext.$ver"
11085                   fi
11086                 else
11087                   eval library_names=\"$acl_library_names_spec\"
11088                   for f in $library_names; do
11089                     if test -f "$dir/$f"; then
11090                       found_dir="$dir"
11091                       found_so="$dir/$f"
11092                       break
11093                     fi
11094                   done
11095                 fi
11096               fi
11097             fi
11098                         if test "X$found_dir" = "X"; then
11099               if test -f "$dir/$libname.$acl_libext"; then
11100                 found_dir="$dir"
11101                 found_a="$dir/$libname.$acl_libext"
11102               fi
11103             fi
11104             if test "X$found_dir" != "X"; then
11105               if test -f "$dir/$libname.la"; then
11106                 found_la="$dir/$libname.la"
11107               fi
11108             fi
11109           fi
11110           if test "X$found_dir" = "X"; then
11111             for x in $LDFLAGS $LTLIBICONV; do
11112
11113   acl_save_prefix="$prefix"
11114   prefix="$acl_final_prefix"
11115   acl_save_exec_prefix="$exec_prefix"
11116   exec_prefix="$acl_final_exec_prefix"
11117   eval x=\"$x\"
11118   exec_prefix="$acl_save_exec_prefix"
11119   prefix="$acl_save_prefix"
11120
11121               case "$x" in
11122                 -L*)
11123                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11124                                     if test -n "$acl_shlibext"; then
11125                     if test -f "$dir/$libname$shrext"; then
11126                       found_dir="$dir"
11127                       found_so="$dir/$libname$shrext"
11128                     else
11129                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11130                         ver=`(cd "$dir" && \
11131                               for f in "$libname$shrext".*; do echo "$f"; done \
11132                               | sed -e "s,^$libname$shrext\\\\.,," \
11133                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11134                               | sed 1q ) 2>/dev/null`
11135                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11136                           found_dir="$dir"
11137                           found_so="$dir/$libname$shrext.$ver"
11138                         fi
11139                       else
11140                         eval library_names=\"$acl_library_names_spec\"
11141                         for f in $library_names; do
11142                           if test -f "$dir/$f"; then
11143                             found_dir="$dir"
11144                             found_so="$dir/$f"
11145                             break
11146                           fi
11147                         done
11148                       fi
11149                     fi
11150                   fi
11151                                     if test "X$found_dir" = "X"; then
11152                     if test -f "$dir/$libname.$acl_libext"; then
11153                       found_dir="$dir"
11154                       found_a="$dir/$libname.$acl_libext"
11155                     fi
11156                   fi
11157                   if test "X$found_dir" != "X"; then
11158                     if test -f "$dir/$libname.la"; then
11159                       found_la="$dir/$libname.la"
11160                     fi
11161                   fi
11162                   ;;
11163               esac
11164               if test "X$found_dir" != "X"; then
11165                 break
11166               fi
11167             done
11168           fi
11169           if test "X$found_dir" != "X"; then
11170                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11171             if test "X$found_so" != "X"; then
11172                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11173                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11174               else
11175                                                                                 haveit=
11176                 for x in $ltrpathdirs; do
11177                   if test "X$x" = "X$found_dir"; then
11178                     haveit=yes
11179                     break
11180                   fi
11181                 done
11182                 if test -z "$haveit"; then
11183                   ltrpathdirs="$ltrpathdirs $found_dir"
11184                 fi
11185                                 if test "$acl_hardcode_direct" = yes; then
11186                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11187                 else
11188                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11189                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11190                                                             haveit=
11191                     for x in $rpathdirs; do
11192                       if test "X$x" = "X$found_dir"; then
11193                         haveit=yes
11194                         break
11195                       fi
11196                     done
11197                     if test -z "$haveit"; then
11198                       rpathdirs="$rpathdirs $found_dir"
11199                     fi
11200                   else
11201                                                                                 haveit=
11202                     for x in $LDFLAGS $LIBICONV; do
11203
11204   acl_save_prefix="$prefix"
11205   prefix="$acl_final_prefix"
11206   acl_save_exec_prefix="$exec_prefix"
11207   exec_prefix="$acl_final_exec_prefix"
11208   eval x=\"$x\"
11209   exec_prefix="$acl_save_exec_prefix"
11210   prefix="$acl_save_prefix"
11211
11212                       if test "X$x" = "X-L$found_dir"; then
11213                         haveit=yes
11214                         break
11215                       fi
11216                     done
11217                     if test -z "$haveit"; then
11218                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11219                     fi
11220                     if test "$acl_hardcode_minus_L" != no; then
11221                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11222                     else
11223                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11224                     fi
11225                   fi
11226                 fi
11227               fi
11228             else
11229               if test "X$found_a" != "X"; then
11230                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11231               else
11232                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11233               fi
11234             fi
11235                         additional_includedir=
11236             case "$found_dir" in
11237               */$acl_libdirstem | */$acl_libdirstem/)
11238                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11239                 LIBICONV_PREFIX="$basedir"
11240                 additional_includedir="$basedir/include"
11241                 ;;
11242             esac
11243             if test "X$additional_includedir" != "X"; then
11244                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11245                 haveit=
11246                 if test "X$additional_includedir" = "X/usr/local/include"; then
11247                   if test -n "$GCC"; then
11248                     case $host_os in
11249                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11250                     esac
11251                   fi
11252                 fi
11253                 if test -z "$haveit"; then
11254                   for x in $CPPFLAGS $INCICONV; do
11255
11256   acl_save_prefix="$prefix"
11257   prefix="$acl_final_prefix"
11258   acl_save_exec_prefix="$exec_prefix"
11259   exec_prefix="$acl_final_exec_prefix"
11260   eval x=\"$x\"
11261   exec_prefix="$acl_save_exec_prefix"
11262   prefix="$acl_save_prefix"
11263
11264                     if test "X$x" = "X-I$additional_includedir"; then
11265                       haveit=yes
11266                       break
11267                     fi
11268                   done
11269                   if test -z "$haveit"; then
11270                     if test -d "$additional_includedir"; then
11271                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11272                     fi
11273                   fi
11274                 fi
11275               fi
11276             fi
11277                         if test -n "$found_la"; then
11278                                                         save_libdir="$libdir"
11279               case "$found_la" in
11280                 */* | *\\*) . "$found_la" ;;
11281                 *) . "./$found_la" ;;
11282               esac
11283               libdir="$save_libdir"
11284                             for dep in $dependency_libs; do
11285                 case "$dep" in
11286                   -L*)
11287                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11288                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11289                       haveit=
11290                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11291                         if test -n "$GCC"; then
11292                           case $host_os in
11293                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11294                           esac
11295                         fi
11296                       fi
11297                       if test -z "$haveit"; then
11298                         haveit=
11299                         for x in $LDFLAGS $LIBICONV; do
11300
11301   acl_save_prefix="$prefix"
11302   prefix="$acl_final_prefix"
11303   acl_save_exec_prefix="$exec_prefix"
11304   exec_prefix="$acl_final_exec_prefix"
11305   eval x=\"$x\"
11306   exec_prefix="$acl_save_exec_prefix"
11307   prefix="$acl_save_prefix"
11308
11309                           if test "X$x" = "X-L$additional_libdir"; then
11310                             haveit=yes
11311                             break
11312                           fi
11313                         done
11314                         if test -z "$haveit"; then
11315                           if test -d "$additional_libdir"; then
11316                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11317                           fi
11318                         fi
11319                         haveit=
11320                         for x in $LDFLAGS $LTLIBICONV; do
11321
11322   acl_save_prefix="$prefix"
11323   prefix="$acl_final_prefix"
11324   acl_save_exec_prefix="$exec_prefix"
11325   exec_prefix="$acl_final_exec_prefix"
11326   eval x=\"$x\"
11327   exec_prefix="$acl_save_exec_prefix"
11328   prefix="$acl_save_prefix"
11329
11330                           if test "X$x" = "X-L$additional_libdir"; then
11331                             haveit=yes
11332                             break
11333                           fi
11334                         done
11335                         if test -z "$haveit"; then
11336                           if test -d "$additional_libdir"; then
11337                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11338                           fi
11339                         fi
11340                       fi
11341                     fi
11342                     ;;
11343                   -R*)
11344                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11345                     if test "$enable_rpath" != no; then
11346                                                                   haveit=
11347                       for x in $rpathdirs; do
11348                         if test "X$x" = "X$dir"; then
11349                           haveit=yes
11350                           break
11351                         fi
11352                       done
11353                       if test -z "$haveit"; then
11354                         rpathdirs="$rpathdirs $dir"
11355                       fi
11356                                                                   haveit=
11357                       for x in $ltrpathdirs; do
11358                         if test "X$x" = "X$dir"; then
11359                           haveit=yes
11360                           break
11361                         fi
11362                       done
11363                       if test -z "$haveit"; then
11364                         ltrpathdirs="$ltrpathdirs $dir"
11365                       fi
11366                     fi
11367                     ;;
11368                   -l*)
11369                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11370                     ;;
11371                   *.la)
11372                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11373                     ;;
11374                   *)
11375                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11376                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11377                     ;;
11378                 esac
11379               done
11380             fi
11381           else
11382                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11383             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11384           fi
11385         fi
11386       fi
11387     done
11388   done
11389   if test "X$rpathdirs" != "X"; then
11390     if test -n "$acl_hardcode_libdir_separator"; then
11391                         alldirs=
11392       for found_dir in $rpathdirs; do
11393         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11394       done
11395             acl_save_libdir="$libdir"
11396       libdir="$alldirs"
11397       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11398       libdir="$acl_save_libdir"
11399       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11400     else
11401             for found_dir in $rpathdirs; do
11402         acl_save_libdir="$libdir"
11403         libdir="$found_dir"
11404         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11405         libdir="$acl_save_libdir"
11406         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11407       done
11408     fi
11409   fi
11410   if test "X$ltrpathdirs" != "X"; then
11411             for found_dir in $ltrpathdirs; do
11412       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11413     done
11414   fi
11415
11416
11417
11418
11419
11420
11421
11422           am_save_CPPFLAGS="$CPPFLAGS"
11423
11424   for element in $INCICONV; do
11425     haveit=
11426     for x in $CPPFLAGS; do
11427
11428   acl_save_prefix="$prefix"
11429   prefix="$acl_final_prefix"
11430   acl_save_exec_prefix="$exec_prefix"
11431   exec_prefix="$acl_final_exec_prefix"
11432   eval x=\"$x\"
11433   exec_prefix="$acl_save_exec_prefix"
11434   prefix="$acl_save_prefix"
11435
11436       if test "X$x" = "X$element"; then
11437         haveit=yes
11438         break
11439       fi
11440     done
11441     if test -z "$haveit"; then
11442       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11443     fi
11444   done
11445
11446
11447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11448 $as_echo_n "checking for iconv... " >&6; }
11449 if ${am_cv_func_iconv+:} false; then :
11450   $as_echo_n "(cached) " >&6
11451 else
11452
11453     am_cv_func_iconv="no, consider installing GNU libiconv"
11454     am_cv_lib_iconv=no
11455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h.  */
11457 #include <stdlib.h>
11458 #include <iconv.h>
11459 int
11460 main ()
11461 {
11462 iconv_t cd = iconv_open("","");
11463        iconv(cd,NULL,NULL,NULL,NULL);
11464        iconv_close(cd);
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470   am_cv_func_iconv=yes
11471 fi
11472 rm -f core conftest.err conftest.$ac_objext \
11473     conftest$ac_exeext conftest.$ac_ext
11474     if test "$am_cv_func_iconv" != yes; then
11475       am_save_LIBS="$LIBS"
11476       LIBS="$LIBS $LIBICONV"
11477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479 #include <stdlib.h>
11480 #include <iconv.h>
11481 int
11482 main ()
11483 {
11484 iconv_t cd = iconv_open("","");
11485          iconv(cd,NULL,NULL,NULL,NULL);
11486          iconv_close(cd);
11487   ;
11488   return 0;
11489 }
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"; then :
11492   am_cv_lib_iconv=yes
11493         am_cv_func_iconv=yes
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497       LIBS="$am_save_LIBS"
11498     fi
11499
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11502 $as_echo "$am_cv_func_iconv" >&6; }
11503   if test "$am_cv_func_iconv" = yes; then
11504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11505 $as_echo_n "checking for working iconv... " >&6; }
11506 if ${am_cv_func_iconv_works+:} false; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509
11510             am_save_LIBS="$LIBS"
11511       if test $am_cv_lib_iconv = yes; then
11512         LIBS="$LIBS $LIBICONV"
11513       fi
11514       if test "$cross_compiling" = yes; then :
11515   case "$host_os" in
11516            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11517            *)            am_cv_func_iconv_works="guessing yes" ;;
11518          esac
11519 else
11520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h.  */
11522
11523 #include <iconv.h>
11524 #include <string.h>
11525 int main ()
11526 {
11527   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11528      returns.  */
11529   {
11530     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11531     if (cd_utf8_to_88591 != (iconv_t)(-1))
11532       {
11533         static const char input[] = "\342\202\254"; /* EURO SIGN */
11534         char buf[10];
11535         const char *inptr = input;
11536         size_t inbytesleft = strlen (input);
11537         char *outptr = buf;
11538         size_t outbytesleft = sizeof (buf);
11539         size_t res = iconv (cd_utf8_to_88591,
11540                             (char **) &inptr, &inbytesleft,
11541                             &outptr, &outbytesleft);
11542         if (res == 0)
11543           return 1;
11544       }
11545   }
11546 #if 0 /* This bug could be worked around by the caller.  */
11547   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11548   {
11549     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11550     if (cd_88591_to_utf8 != (iconv_t)(-1))
11551       {
11552         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11553         char buf[50];
11554         const char *inptr = input;
11555         size_t inbytesleft = strlen (input);
11556         char *outptr = buf;
11557         size_t outbytesleft = sizeof (buf);
11558         size_t res = iconv (cd_88591_to_utf8,
11559                             (char **) &inptr, &inbytesleft,
11560                             &outptr, &outbytesleft);
11561         if ((int)res > 0)
11562           return 1;
11563       }
11564   }
11565 #endif
11566   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11567      provided.  */
11568   if (/* Try standardized names.  */
11569       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11570       /* Try IRIX, OSF/1 names.  */
11571       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11572       /* Try AIX names.  */
11573       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11574       /* Try HP-UX names.  */
11575       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11576     return 1;
11577   return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_run "$LINENO"; then :
11581   am_cv_func_iconv_works=yes
11582 else
11583   am_cv_func_iconv_works=no
11584 fi
11585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11586   conftest.$ac_objext conftest.beam conftest.$ac_ext
11587 fi
11588
11589       LIBS="$am_save_LIBS"
11590
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11593 $as_echo "$am_cv_func_iconv_works" >&6; }
11594     case "$am_cv_func_iconv_works" in
11595       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11596       *)   am_func_iconv=yes ;;
11597     esac
11598   else
11599     am_func_iconv=no am_cv_lib_iconv=no
11600   fi
11601   if test "$am_func_iconv" = yes; then
11602
11603 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11604
11605   fi
11606   if test "$am_cv_lib_iconv" = yes; then
11607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11608 $as_echo_n "checking how to link with libiconv... " >&6; }
11609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11610 $as_echo "$LIBICONV" >&6; }
11611   else
11612             CPPFLAGS="$am_save_CPPFLAGS"
11613     LIBICONV=
11614     LTLIBICONV=
11615   fi
11616
11617
11618
11619   if test "$am_cv_func_iconv" = yes; then
11620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11621 $as_echo_n "checking for iconv declaration... " >&6; }
11622     if ${am_cv_proto_iconv+:} false; then :
11623   $as_echo_n "(cached) " >&6
11624 else
11625
11626       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h.  */
11628
11629 #include <stdlib.h>
11630 #include <iconv.h>
11631 extern
11632 #ifdef __cplusplus
11633 "C"
11634 #endif
11635 #if defined(__STDC__) || defined(__cplusplus)
11636 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11637 #else
11638 size_t iconv();
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650   am_cv_proto_iconv_arg1=""
11651 else
11652   am_cv_proto_iconv_arg1="const"
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655       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);"
11656 fi
11657
11658     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11660          }$am_cv_proto_iconv" >&5
11661 $as_echo "${ac_t:-
11662          }$am_cv_proto_iconv" >&6; }
11663
11664 cat >>confdefs.h <<_ACEOF
11665 #define ICONV_CONST $am_cv_proto_iconv_arg1
11666 _ACEOF
11667
11668   fi
11669
11670 else
11671   LIBICONV=
11672   LTLIBICONV=
11673
11674
11675 fi
11676
11677
11678 #
11679 # Check for gettext
11680 #
11681 # This is "GNU gnupg" - The project-id script from gettext
11682 #                       needs this string
11683 #
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
11685 $as_echo "$as_me: checking for gettext" >&6;}
11686
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11688 $as_echo_n "checking whether NLS is requested... " >&6; }
11689     # Check whether --enable-nls was given.
11690 if test "${enable_nls+set}" = set; then :
11691   enableval=$enable_nls; USE_NLS=$enableval
11692 else
11693   USE_NLS=yes
11694 fi
11695
11696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11697 $as_echo "$USE_NLS" >&6; }
11698
11699
11700
11701
11702       GETTEXT_MACRO_VERSION=0.17
11703
11704
11705
11706
11707 # Prepare PATH_SEPARATOR.
11708 # The user is always right.
11709 if test "${PATH_SEPARATOR+set}" != set; then
11710   echo "#! /bin/sh" >conf$$.sh
11711   echo  "exit 0"   >>conf$$.sh
11712   chmod +x conf$$.sh
11713   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11714     PATH_SEPARATOR=';'
11715   else
11716     PATH_SEPARATOR=:
11717   fi
11718   rm -f conf$$.sh
11719 fi
11720
11721 # Find out how to test for executable files. Don't use a zero-byte file,
11722 # as systems may use methods other than mode bits to determine executability.
11723 cat >conf$$.file <<_ASEOF
11724 #! /bin/sh
11725 exit 0
11726 _ASEOF
11727 chmod +x conf$$.file
11728 if test -x conf$$.file >/dev/null 2>&1; then
11729   ac_executable_p="test -x"
11730 else
11731   ac_executable_p="test -f"
11732 fi
11733 rm -f conf$$.file
11734
11735 # Extract the first word of "msgfmt", so it can be a program name with args.
11736 set dummy msgfmt; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_path_MSGFMT+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   case "$MSGFMT" in
11743   [\\/]* | ?:[\\/]*)
11744     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11745     ;;
11746   *)
11747     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11748     for ac_dir in $PATH; do
11749       IFS="$ac_save_IFS"
11750       test -z "$ac_dir" && ac_dir=.
11751       for ac_exec_ext in '' $ac_executable_extensions; do
11752         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11753           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11754           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11755      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11756             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11757             break 2
11758           fi
11759         fi
11760       done
11761     done
11762     IFS="$ac_save_IFS"
11763   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11764     ;;
11765 esac
11766 fi
11767 MSGFMT="$ac_cv_path_MSGFMT"
11768 if test "$MSGFMT" != ":"; then
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11770 $as_echo "$MSGFMT" >&6; }
11771 else
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11777 set dummy gmsgfmt; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_GMSGFMT+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   case $GMSGFMT in
11784   [\\/]* | ?:[\\/]*)
11785   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11786   ;;
11787   *)
11788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793     for ac_exec_ext in '' $ac_executable_extensions; do
11794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800   done
11801 IFS=$as_save_IFS
11802
11803   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11804   ;;
11805 esac
11806 fi
11807 GMSGFMT=$ac_cv_path_GMSGFMT
11808 if test -n "$GMSGFMT"; then
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11810 $as_echo "$GMSGFMT" >&6; }
11811 else
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814 fi
11815
11816
11817
11818     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11819     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11820     *) MSGFMT_015=$MSGFMT ;;
11821   esac
11822
11823   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11824     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11825     *) GMSGFMT_015=$GMSGFMT ;;
11826   esac
11827
11828
11829
11830 # Prepare PATH_SEPARATOR.
11831 # The user is always right.
11832 if test "${PATH_SEPARATOR+set}" != set; then
11833   echo "#! /bin/sh" >conf$$.sh
11834   echo  "exit 0"   >>conf$$.sh
11835   chmod +x conf$$.sh
11836   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11837     PATH_SEPARATOR=';'
11838   else
11839     PATH_SEPARATOR=:
11840   fi
11841   rm -f conf$$.sh
11842 fi
11843
11844 # Find out how to test for executable files. Don't use a zero-byte file,
11845 # as systems may use methods other than mode bits to determine executability.
11846 cat >conf$$.file <<_ASEOF
11847 #! /bin/sh
11848 exit 0
11849 _ASEOF
11850 chmod +x conf$$.file
11851 if test -x conf$$.file >/dev/null 2>&1; then
11852   ac_executable_p="test -x"
11853 else
11854   ac_executable_p="test -f"
11855 fi
11856 rm -f conf$$.file
11857
11858 # Extract the first word of "xgettext", so it can be a program name with args.
11859 set dummy xgettext; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_path_XGETTEXT+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   case "$XGETTEXT" in
11866   [\\/]* | ?:[\\/]*)
11867     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11868     ;;
11869   *)
11870     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11871     for ac_dir in $PATH; do
11872       IFS="$ac_save_IFS"
11873       test -z "$ac_dir" && ac_dir=.
11874       for ac_exec_ext in '' $ac_executable_extensions; do
11875         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11876           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11877           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11878      (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
11879             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11880             break 2
11881           fi
11882         fi
11883       done
11884     done
11885     IFS="$ac_save_IFS"
11886   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11887     ;;
11888 esac
11889 fi
11890 XGETTEXT="$ac_cv_path_XGETTEXT"
11891 if test "$XGETTEXT" != ":"; then
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11893 $as_echo "$XGETTEXT" >&6; }
11894 else
11895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898
11899     rm -f messages.po
11900
11901     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11902     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11903     *) XGETTEXT_015=$XGETTEXT ;;
11904   esac
11905
11906
11907
11908 # Prepare PATH_SEPARATOR.
11909 # The user is always right.
11910 if test "${PATH_SEPARATOR+set}" != set; then
11911   echo "#! /bin/sh" >conf$$.sh
11912   echo  "exit 0"   >>conf$$.sh
11913   chmod +x conf$$.sh
11914   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11915     PATH_SEPARATOR=';'
11916   else
11917     PATH_SEPARATOR=:
11918   fi
11919   rm -f conf$$.sh
11920 fi
11921
11922 # Find out how to test for executable files. Don't use a zero-byte file,
11923 # as systems may use methods other than mode bits to determine executability.
11924 cat >conf$$.file <<_ASEOF
11925 #! /bin/sh
11926 exit 0
11927 _ASEOF
11928 chmod +x conf$$.file
11929 if test -x conf$$.file >/dev/null 2>&1; then
11930   ac_executable_p="test -x"
11931 else
11932   ac_executable_p="test -f"
11933 fi
11934 rm -f conf$$.file
11935
11936 # Extract the first word of "msgmerge", so it can be a program name with args.
11937 set dummy msgmerge; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if ${ac_cv_path_MSGMERGE+:} false; then :
11941   $as_echo_n "(cached) " >&6
11942 else
11943   case "$MSGMERGE" in
11944   [\\/]* | ?:[\\/]*)
11945     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11946     ;;
11947   *)
11948     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11949     for ac_dir in $PATH; do
11950       IFS="$ac_save_IFS"
11951       test -z "$ac_dir" && ac_dir=.
11952       for ac_exec_ext in '' $ac_executable_extensions; do
11953         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11954           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11955           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11956             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11957             break 2
11958           fi
11959         fi
11960       done
11961     done
11962     IFS="$ac_save_IFS"
11963   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11964     ;;
11965 esac
11966 fi
11967 MSGMERGE="$ac_cv_path_MSGMERGE"
11968 if test "$MSGMERGE" != ":"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11970 $as_echo "$MSGMERGE" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975
11976
11977         test -n "$localedir" || localedir='${datadir}/locale'
11978
11979
11980     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11981
11982
11983   ac_config_commands="$ac_config_commands po-directories"
11984
11985
11986
11987 if test "$try_gettext" = yes; then
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12012 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12013 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   gt_save_LIBS="$LIBS"
12017      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12018      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h.  */
12020 #include <CoreFoundation/CFPreferences.h>
12021 int
12022 main ()
12023 {
12024 CFPreferencesCopyAppValue(NULL, NULL)
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_link "$LINENO"; then :
12030   gt_cv_func_CFPreferencesCopyAppValue=yes
12031 else
12032   gt_cv_func_CFPreferencesCopyAppValue=no
12033 fi
12034 rm -f core conftest.err conftest.$ac_objext \
12035     conftest$ac_exeext conftest.$ac_ext
12036      LIBS="$gt_save_LIBS"
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12039 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12040   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12041
12042 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12043
12044   fi
12045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12046 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12047 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12048   $as_echo_n "(cached) " >&6
12049 else
12050   gt_save_LIBS="$LIBS"
12051      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12052      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h.  */
12054 #include <CoreFoundation/CFLocale.h>
12055 int
12056 main ()
12057 {
12058 CFLocaleCopyCurrent();
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064   gt_cv_func_CFLocaleCopyCurrent=yes
12065 else
12066   gt_cv_func_CFLocaleCopyCurrent=no
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext \
12069     conftest$ac_exeext conftest.$ac_ext
12070      LIBS="$gt_save_LIBS"
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12073 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12074   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12075
12076 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12077
12078   fi
12079   INTL_MACOSX_LIBS=
12080   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12081     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12082   fi
12083
12084
12085
12086
12087
12088
12089   LIBINTL=
12090   LTLIBINTL=
12091   POSUB=
12092
12093     case " $gt_needs " in
12094     *" need-formatstring-macros "*) gt_api_version=3 ;;
12095     *" need-ngettext "*) gt_api_version=2 ;;
12096     *) gt_api_version=1 ;;
12097   esac
12098   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12099   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12100
12101     if test "$USE_NLS" = "yes"; then
12102     gt_use_preinstalled_gnugettext=no
12103
12104
12105         if test $gt_api_version -ge 3; then
12106           gt_revision_test_code='
12107 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12108 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12109 #endif
12110 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12111 '
12112         else
12113           gt_revision_test_code=
12114         fi
12115         if test $gt_api_version -ge 2; then
12116           gt_expression_test_code=' + * ngettext ("", "", 0)'
12117         else
12118           gt_expression_test_code=
12119         fi
12120
12121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12122 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12123 if eval \${$gt_func_gnugettext_libc+:} false; then :
12124   $as_echo_n "(cached) " >&6
12125 else
12126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h.  */
12128 #include <libintl.h>
12129 $gt_revision_test_code
12130 extern int _nl_msg_cat_cntr;
12131 extern int *_nl_domain_bindings;
12132 int
12133 main ()
12134 {
12135 bindtextdomain ("", "");
12136 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"; then :
12142   eval "$gt_func_gnugettext_libc=yes"
12143 else
12144   eval "$gt_func_gnugettext_libc=no"
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext \
12147     conftest$ac_exeext conftest.$ac_ext
12148 fi
12149 eval ac_res=\$$gt_func_gnugettext_libc
12150                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12151 $as_echo "$ac_res" >&6; }
12152
12153         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12154
12155
12156
12157
12158
12159           am_save_CPPFLAGS="$CPPFLAGS"
12160
12161   for element in $INCICONV; do
12162     haveit=
12163     for x in $CPPFLAGS; do
12164
12165   acl_save_prefix="$prefix"
12166   prefix="$acl_final_prefix"
12167   acl_save_exec_prefix="$exec_prefix"
12168   exec_prefix="$acl_final_exec_prefix"
12169   eval x=\"$x\"
12170   exec_prefix="$acl_save_exec_prefix"
12171   prefix="$acl_save_prefix"
12172
12173       if test "X$x" = "X$element"; then
12174         haveit=yes
12175         break
12176       fi
12177     done
12178     if test -z "$haveit"; then
12179       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12180     fi
12181   done
12182
12183
12184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12185 $as_echo_n "checking for iconv... " >&6; }
12186 if ${am_cv_func_iconv+:} false; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189
12190     am_cv_func_iconv="no, consider installing GNU libiconv"
12191     am_cv_lib_iconv=no
12192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h.  */
12194 #include <stdlib.h>
12195 #include <iconv.h>
12196 int
12197 main ()
12198 {
12199 iconv_t cd = iconv_open("","");
12200        iconv(cd,NULL,NULL,NULL,NULL);
12201        iconv_close(cd);
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207   am_cv_func_iconv=yes
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210     conftest$ac_exeext conftest.$ac_ext
12211     if test "$am_cv_func_iconv" != yes; then
12212       am_save_LIBS="$LIBS"
12213       LIBS="$LIBS $LIBICONV"
12214       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216 #include <stdlib.h>
12217 #include <iconv.h>
12218 int
12219 main ()
12220 {
12221 iconv_t cd = iconv_open("","");
12222          iconv(cd,NULL,NULL,NULL,NULL);
12223          iconv_close(cd);
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_c_try_link "$LINENO"; then :
12229   am_cv_lib_iconv=yes
12230         am_cv_func_iconv=yes
12231 fi
12232 rm -f core conftest.err conftest.$ac_objext \
12233     conftest$ac_exeext conftest.$ac_ext
12234       LIBS="$am_save_LIBS"
12235     fi
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12239 $as_echo "$am_cv_func_iconv" >&6; }
12240   if test "$am_cv_func_iconv" = yes; then
12241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12242 $as_echo_n "checking for working iconv... " >&6; }
12243 if ${am_cv_func_iconv_works+:} false; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246
12247             am_save_LIBS="$LIBS"
12248       if test $am_cv_lib_iconv = yes; then
12249         LIBS="$LIBS $LIBICONV"
12250       fi
12251       if test "$cross_compiling" = yes; then :
12252   case "$host_os" in
12253            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12254            *)            am_cv_func_iconv_works="guessing yes" ;;
12255          esac
12256 else
12257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 #include <iconv.h>
12261 #include <string.h>
12262 int main ()
12263 {
12264   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12265      returns.  */
12266   {
12267     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12268     if (cd_utf8_to_88591 != (iconv_t)(-1))
12269       {
12270         static const char input[] = "\342\202\254"; /* EURO SIGN */
12271         char buf[10];
12272         const char *inptr = input;
12273         size_t inbytesleft = strlen (input);
12274         char *outptr = buf;
12275         size_t outbytesleft = sizeof (buf);
12276         size_t res = iconv (cd_utf8_to_88591,
12277                             (char **) &inptr, &inbytesleft,
12278                             &outptr, &outbytesleft);
12279         if (res == 0)
12280           return 1;
12281       }
12282   }
12283 #if 0 /* This bug could be worked around by the caller.  */
12284   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12285   {
12286     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12287     if (cd_88591_to_utf8 != (iconv_t)(-1))
12288       {
12289         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12290         char buf[50];
12291         const char *inptr = input;
12292         size_t inbytesleft = strlen (input);
12293         char *outptr = buf;
12294         size_t outbytesleft = sizeof (buf);
12295         size_t res = iconv (cd_88591_to_utf8,
12296                             (char **) &inptr, &inbytesleft,
12297                             &outptr, &outbytesleft);
12298         if ((int)res > 0)
12299           return 1;
12300       }
12301   }
12302 #endif
12303   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12304      provided.  */
12305   if (/* Try standardized names.  */
12306       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12307       /* Try IRIX, OSF/1 names.  */
12308       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12309       /* Try AIX names.  */
12310       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12311       /* Try HP-UX names.  */
12312       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12313     return 1;
12314   return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_run "$LINENO"; then :
12318   am_cv_func_iconv_works=yes
12319 else
12320   am_cv_func_iconv_works=no
12321 fi
12322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12323   conftest.$ac_objext conftest.beam conftest.$ac_ext
12324 fi
12325
12326       LIBS="$am_save_LIBS"
12327
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12330 $as_echo "$am_cv_func_iconv_works" >&6; }
12331     case "$am_cv_func_iconv_works" in
12332       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12333       *)   am_func_iconv=yes ;;
12334     esac
12335   else
12336     am_func_iconv=no am_cv_lib_iconv=no
12337   fi
12338   if test "$am_func_iconv" = yes; then
12339
12340 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12341
12342   fi
12343   if test "$am_cv_lib_iconv" = yes; then
12344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12345 $as_echo_n "checking how to link with libiconv... " >&6; }
12346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12347 $as_echo "$LIBICONV" >&6; }
12348   else
12349             CPPFLAGS="$am_save_CPPFLAGS"
12350     LIBICONV=
12351     LTLIBICONV=
12352   fi
12353
12354
12355
12356
12357
12358
12359
12360
12361     use_additional=yes
12362
12363   acl_save_prefix="$prefix"
12364   prefix="$acl_final_prefix"
12365   acl_save_exec_prefix="$exec_prefix"
12366   exec_prefix="$acl_final_exec_prefix"
12367
12368     eval additional_includedir=\"$includedir\"
12369     eval additional_libdir=\"$libdir\"
12370
12371   exec_prefix="$acl_save_exec_prefix"
12372   prefix="$acl_save_prefix"
12373
12374
12375 # Check whether --with-libintl-prefix was given.
12376 if test "${with_libintl_prefix+set}" = set; then :
12377   withval=$with_libintl_prefix;
12378     if test "X$withval" = "Xno"; then
12379       use_additional=no
12380     else
12381       if test "X$withval" = "X"; then
12382
12383   acl_save_prefix="$prefix"
12384   prefix="$acl_final_prefix"
12385   acl_save_exec_prefix="$exec_prefix"
12386   exec_prefix="$acl_final_exec_prefix"
12387
12388           eval additional_includedir=\"$includedir\"
12389           eval additional_libdir=\"$libdir\"
12390
12391   exec_prefix="$acl_save_exec_prefix"
12392   prefix="$acl_save_prefix"
12393
12394       else
12395         additional_includedir="$withval/include"
12396         additional_libdir="$withval/$acl_libdirstem"
12397       fi
12398     fi
12399
12400 fi
12401
12402       LIBINTL=
12403   LTLIBINTL=
12404   INCINTL=
12405   LIBINTL_PREFIX=
12406   rpathdirs=
12407   ltrpathdirs=
12408   names_already_handled=
12409   names_next_round='intl '
12410   while test -n "$names_next_round"; do
12411     names_this_round="$names_next_round"
12412     names_next_round=
12413     for name in $names_this_round; do
12414       already_handled=
12415       for n in $names_already_handled; do
12416         if test "$n" = "$name"; then
12417           already_handled=yes
12418           break
12419         fi
12420       done
12421       if test -z "$already_handled"; then
12422         names_already_handled="$names_already_handled $name"
12423                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12424         eval value=\"\$HAVE_LIB$uppername\"
12425         if test -n "$value"; then
12426           if test "$value" = yes; then
12427             eval value=\"\$LIB$uppername\"
12428             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12429             eval value=\"\$LTLIB$uppername\"
12430             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12431           else
12432                                     :
12433           fi
12434         else
12435                               found_dir=
12436           found_la=
12437           found_so=
12438           found_a=
12439           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12440           if test -n "$acl_shlibext"; then
12441             shrext=".$acl_shlibext"             # typically: shrext=.so
12442           else
12443             shrext=
12444           fi
12445           if test $use_additional = yes; then
12446             dir="$additional_libdir"
12447                                     if test -n "$acl_shlibext"; then
12448               if test -f "$dir/$libname$shrext"; then
12449                 found_dir="$dir"
12450                 found_so="$dir/$libname$shrext"
12451               else
12452                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12453                   ver=`(cd "$dir" && \
12454                         for f in "$libname$shrext".*; do echo "$f"; done \
12455                         | sed -e "s,^$libname$shrext\\\\.,," \
12456                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12457                         | sed 1q ) 2>/dev/null`
12458                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12459                     found_dir="$dir"
12460                     found_so="$dir/$libname$shrext.$ver"
12461                   fi
12462                 else
12463                   eval library_names=\"$acl_library_names_spec\"
12464                   for f in $library_names; do
12465                     if test -f "$dir/$f"; then
12466                       found_dir="$dir"
12467                       found_so="$dir/$f"
12468                       break
12469                     fi
12470                   done
12471                 fi
12472               fi
12473             fi
12474                         if test "X$found_dir" = "X"; then
12475               if test -f "$dir/$libname.$acl_libext"; then
12476                 found_dir="$dir"
12477                 found_a="$dir/$libname.$acl_libext"
12478               fi
12479             fi
12480             if test "X$found_dir" != "X"; then
12481               if test -f "$dir/$libname.la"; then
12482                 found_la="$dir/$libname.la"
12483               fi
12484             fi
12485           fi
12486           if test "X$found_dir" = "X"; then
12487             for x in $LDFLAGS $LTLIBINTL; do
12488
12489   acl_save_prefix="$prefix"
12490   prefix="$acl_final_prefix"
12491   acl_save_exec_prefix="$exec_prefix"
12492   exec_prefix="$acl_final_exec_prefix"
12493   eval x=\"$x\"
12494   exec_prefix="$acl_save_exec_prefix"
12495   prefix="$acl_save_prefix"
12496
12497               case "$x" in
12498                 -L*)
12499                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12500                                     if test -n "$acl_shlibext"; then
12501                     if test -f "$dir/$libname$shrext"; then
12502                       found_dir="$dir"
12503                       found_so="$dir/$libname$shrext"
12504                     else
12505                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12506                         ver=`(cd "$dir" && \
12507                               for f in "$libname$shrext".*; do echo "$f"; done \
12508                               | sed -e "s,^$libname$shrext\\\\.,," \
12509                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12510                               | sed 1q ) 2>/dev/null`
12511                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12512                           found_dir="$dir"
12513                           found_so="$dir/$libname$shrext.$ver"
12514                         fi
12515                       else
12516                         eval library_names=\"$acl_library_names_spec\"
12517                         for f in $library_names; do
12518                           if test -f "$dir/$f"; then
12519                             found_dir="$dir"
12520                             found_so="$dir/$f"
12521                             break
12522                           fi
12523                         done
12524                       fi
12525                     fi
12526                   fi
12527                                     if test "X$found_dir" = "X"; then
12528                     if test -f "$dir/$libname.$acl_libext"; then
12529                       found_dir="$dir"
12530                       found_a="$dir/$libname.$acl_libext"
12531                     fi
12532                   fi
12533                   if test "X$found_dir" != "X"; then
12534                     if test -f "$dir/$libname.la"; then
12535                       found_la="$dir/$libname.la"
12536                     fi
12537                   fi
12538                   ;;
12539               esac
12540               if test "X$found_dir" != "X"; then
12541                 break
12542               fi
12543             done
12544           fi
12545           if test "X$found_dir" != "X"; then
12546                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12547             if test "X$found_so" != "X"; then
12548                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12549                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12550               else
12551                                                                                 haveit=
12552                 for x in $ltrpathdirs; do
12553                   if test "X$x" = "X$found_dir"; then
12554                     haveit=yes
12555                     break
12556                   fi
12557                 done
12558                 if test -z "$haveit"; then
12559                   ltrpathdirs="$ltrpathdirs $found_dir"
12560                 fi
12561                                 if test "$acl_hardcode_direct" = yes; then
12562                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12563                 else
12564                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12565                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12566                                                             haveit=
12567                     for x in $rpathdirs; do
12568                       if test "X$x" = "X$found_dir"; then
12569                         haveit=yes
12570                         break
12571                       fi
12572                     done
12573                     if test -z "$haveit"; then
12574                       rpathdirs="$rpathdirs $found_dir"
12575                     fi
12576                   else
12577                                                                                 haveit=
12578                     for x in $LDFLAGS $LIBINTL; do
12579
12580   acl_save_prefix="$prefix"
12581   prefix="$acl_final_prefix"
12582   acl_save_exec_prefix="$exec_prefix"
12583   exec_prefix="$acl_final_exec_prefix"
12584   eval x=\"$x\"
12585   exec_prefix="$acl_save_exec_prefix"
12586   prefix="$acl_save_prefix"
12587
12588                       if test "X$x" = "X-L$found_dir"; then
12589                         haveit=yes
12590                         break
12591                       fi
12592                     done
12593                     if test -z "$haveit"; then
12594                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12595                     fi
12596                     if test "$acl_hardcode_minus_L" != no; then
12597                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12598                     else
12599                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12600                     fi
12601                   fi
12602                 fi
12603               fi
12604             else
12605               if test "X$found_a" != "X"; then
12606                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12607               else
12608                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12609               fi
12610             fi
12611                         additional_includedir=
12612             case "$found_dir" in
12613               */$acl_libdirstem | */$acl_libdirstem/)
12614                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12615                 LIBINTL_PREFIX="$basedir"
12616                 additional_includedir="$basedir/include"
12617                 ;;
12618             esac
12619             if test "X$additional_includedir" != "X"; then
12620                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12621                 haveit=
12622                 if test "X$additional_includedir" = "X/usr/local/include"; then
12623                   if test -n "$GCC"; then
12624                     case $host_os in
12625                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12626                     esac
12627                   fi
12628                 fi
12629                 if test -z "$haveit"; then
12630                   for x in $CPPFLAGS $INCINTL; do
12631
12632   acl_save_prefix="$prefix"
12633   prefix="$acl_final_prefix"
12634   acl_save_exec_prefix="$exec_prefix"
12635   exec_prefix="$acl_final_exec_prefix"
12636   eval x=\"$x\"
12637   exec_prefix="$acl_save_exec_prefix"
12638   prefix="$acl_save_prefix"
12639
12640                     if test "X$x" = "X-I$additional_includedir"; then
12641                       haveit=yes
12642                       break
12643                     fi
12644                   done
12645                   if test -z "$haveit"; then
12646                     if test -d "$additional_includedir"; then
12647                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12648                     fi
12649                   fi
12650                 fi
12651               fi
12652             fi
12653                         if test -n "$found_la"; then
12654                                                         save_libdir="$libdir"
12655               case "$found_la" in
12656                 */* | *\\*) . "$found_la" ;;
12657                 *) . "./$found_la" ;;
12658               esac
12659               libdir="$save_libdir"
12660                             for dep in $dependency_libs; do
12661                 case "$dep" in
12662                   -L*)
12663                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12664                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12665                       haveit=
12666                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12667                         if test -n "$GCC"; then
12668                           case $host_os in
12669                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12670                           esac
12671                         fi
12672                       fi
12673                       if test -z "$haveit"; then
12674                         haveit=
12675                         for x in $LDFLAGS $LIBINTL; do
12676
12677   acl_save_prefix="$prefix"
12678   prefix="$acl_final_prefix"
12679   acl_save_exec_prefix="$exec_prefix"
12680   exec_prefix="$acl_final_exec_prefix"
12681   eval x=\"$x\"
12682   exec_prefix="$acl_save_exec_prefix"
12683   prefix="$acl_save_prefix"
12684
12685                           if test "X$x" = "X-L$additional_libdir"; then
12686                             haveit=yes
12687                             break
12688                           fi
12689                         done
12690                         if test -z "$haveit"; then
12691                           if test -d "$additional_libdir"; then
12692                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12693                           fi
12694                         fi
12695                         haveit=
12696                         for x in $LDFLAGS $LTLIBINTL; do
12697
12698   acl_save_prefix="$prefix"
12699   prefix="$acl_final_prefix"
12700   acl_save_exec_prefix="$exec_prefix"
12701   exec_prefix="$acl_final_exec_prefix"
12702   eval x=\"$x\"
12703   exec_prefix="$acl_save_exec_prefix"
12704   prefix="$acl_save_prefix"
12705
12706                           if test "X$x" = "X-L$additional_libdir"; then
12707                             haveit=yes
12708                             break
12709                           fi
12710                         done
12711                         if test -z "$haveit"; then
12712                           if test -d "$additional_libdir"; then
12713                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12714                           fi
12715                         fi
12716                       fi
12717                     fi
12718                     ;;
12719                   -R*)
12720                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12721                     if test "$enable_rpath" != no; then
12722                                                                   haveit=
12723                       for x in $rpathdirs; do
12724                         if test "X$x" = "X$dir"; then
12725                           haveit=yes
12726                           break
12727                         fi
12728                       done
12729                       if test -z "$haveit"; then
12730                         rpathdirs="$rpathdirs $dir"
12731                       fi
12732                                                                   haveit=
12733                       for x in $ltrpathdirs; do
12734                         if test "X$x" = "X$dir"; then
12735                           haveit=yes
12736                           break
12737                         fi
12738                       done
12739                       if test -z "$haveit"; then
12740                         ltrpathdirs="$ltrpathdirs $dir"
12741                       fi
12742                     fi
12743                     ;;
12744                   -l*)
12745                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12746                     ;;
12747                   *.la)
12748                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12749                     ;;
12750                   *)
12751                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12752                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12753                     ;;
12754                 esac
12755               done
12756             fi
12757           else
12758                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12759             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12760           fi
12761         fi
12762       fi
12763     done
12764   done
12765   if test "X$rpathdirs" != "X"; then
12766     if test -n "$acl_hardcode_libdir_separator"; then
12767                         alldirs=
12768       for found_dir in $rpathdirs; do
12769         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12770       done
12771             acl_save_libdir="$libdir"
12772       libdir="$alldirs"
12773       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12774       libdir="$acl_save_libdir"
12775       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12776     else
12777             for found_dir in $rpathdirs; do
12778         acl_save_libdir="$libdir"
12779         libdir="$found_dir"
12780         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12781         libdir="$acl_save_libdir"
12782         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12783       done
12784     fi
12785   fi
12786   if test "X$ltrpathdirs" != "X"; then
12787             for found_dir in $ltrpathdirs; do
12788       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12789     done
12790   fi
12791
12792           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12793 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12794 if eval \${$gt_func_gnugettext_libintl+:} false; then :
12795   $as_echo_n "(cached) " >&6
12796 else
12797   gt_save_CPPFLAGS="$CPPFLAGS"
12798             CPPFLAGS="$CPPFLAGS $INCINTL"
12799             gt_save_LIBS="$LIBS"
12800             LIBS="$LIBS $LIBINTL"
12801                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h.  */
12803 #include <libintl.h>
12804 $gt_revision_test_code
12805 extern int _nl_msg_cat_cntr;
12806 extern
12807 #ifdef __cplusplus
12808 "C"
12809 #endif
12810 const char *_nl_expand_alias (const char *);
12811 int
12812 main ()
12813 {
12814 bindtextdomain ("", "");
12815 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821   eval "$gt_func_gnugettext_libintl=yes"
12822 else
12823   eval "$gt_func_gnugettext_libintl=no"
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext \
12826     conftest$ac_exeext conftest.$ac_ext
12827                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12828               LIBS="$LIBS $LIBICONV"
12829               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h.  */
12831 #include <libintl.h>
12832 $gt_revision_test_code
12833 extern int _nl_msg_cat_cntr;
12834 extern
12835 #ifdef __cplusplus
12836 "C"
12837 #endif
12838 const char *_nl_expand_alias (const char *);
12839 int
12840 main ()
12841 {
12842 bindtextdomain ("", "");
12843 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_link "$LINENO"; then :
12849   LIBINTL="$LIBINTL $LIBICONV"
12850                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12851                 eval "$gt_func_gnugettext_libintl=yes"
12852
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext \
12855     conftest$ac_exeext conftest.$ac_ext
12856             fi
12857             CPPFLAGS="$gt_save_CPPFLAGS"
12858             LIBS="$gt_save_LIBS"
12859 fi
12860 eval ac_res=\$$gt_func_gnugettext_libintl
12861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12862 $as_echo "$ac_res" >&6; }
12863         fi
12864
12865                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12866            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12867                 && test "$PACKAGE" != gettext-runtime \
12868                 && test "$PACKAGE" != gettext-tools; }; then
12869           gt_use_preinstalled_gnugettext=yes
12870         else
12871                     LIBINTL=
12872           LTLIBINTL=
12873           INCINTL=
12874         fi
12875
12876
12877
12878     if test -n "$INTL_MACOSX_LIBS"; then
12879       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12880          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12881                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12882         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12883       fi
12884     fi
12885
12886     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12887        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12888
12889 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12890
12891     else
12892       USE_NLS=no
12893     fi
12894   fi
12895
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12897 $as_echo_n "checking whether to use NLS... " >&6; }
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12899 $as_echo "$USE_NLS" >&6; }
12900   if test "$USE_NLS" = "yes"; then
12901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12902 $as_echo_n "checking where the gettext function comes from... " >&6; }
12903     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12904       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12905         gt_source="external libintl"
12906       else
12907         gt_source="libc"
12908       fi
12909     else
12910       gt_source="included intl directory"
12911     fi
12912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12913 $as_echo "$gt_source" >&6; }
12914   fi
12915
12916   if test "$USE_NLS" = "yes"; then
12917
12918     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12919       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12921 $as_echo_n "checking how to link with libintl... " >&6; }
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12923 $as_echo "$LIBINTL" >&6; }
12924
12925   for element in $INCINTL; do
12926     haveit=
12927     for x in $CPPFLAGS; do
12928
12929   acl_save_prefix="$prefix"
12930   prefix="$acl_final_prefix"
12931   acl_save_exec_prefix="$exec_prefix"
12932   exec_prefix="$acl_final_exec_prefix"
12933   eval x=\"$x\"
12934   exec_prefix="$acl_save_exec_prefix"
12935   prefix="$acl_save_prefix"
12936
12937       if test "X$x" = "X$element"; then
12938         haveit=yes
12939         break
12940       fi
12941     done
12942     if test -z "$haveit"; then
12943       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12944     fi
12945   done
12946
12947       fi
12948
12949
12950 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12951
12952
12953 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12954
12955     fi
12956
12957         POSUB=po
12958   fi
12959
12960
12961
12962     INTLLIBS="$LIBINTL"
12963
12964
12965
12966
12967
12968
12969
12970   # gettext requires some extra checks.  These really should be part of
12971   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
12972   # function checks to here.
12973
12974   for ac_func in strchr
12975 do :
12976   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
12977 if test "x$ac_cv_func_strchr" = xyes; then :
12978   cat >>confdefs.h <<_ACEOF
12979 #define HAVE_STRCHR 1
12980 _ACEOF
12981
12982 fi
12983 done
12984
12985 else
12986   USE_NLS=no
12987   USE_INCLUDED_LIBINTL=no
12988   BUILD_INCLUDED_LIBINTL=no
12989   POSUB=po
12990
12991
12992
12993
12994 fi
12995
12996 # We use HAVE_LANGINFO_CODESET in a couple of places.
12997
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12999 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13000 if ${am_cv_langinfo_codeset+:} false; then :
13001   $as_echo_n "(cached) " >&6
13002 else
13003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h.  */
13005 #include <langinfo.h>
13006 int
13007 main ()
13008 {
13009 char* cs = nl_langinfo(CODESET); return !cs;
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015   am_cv_langinfo_codeset=yes
13016 else
13017   am_cv_langinfo_codeset=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020     conftest$ac_exeext conftest.$ac_ext
13021
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13024 $as_echo "$am_cv_langinfo_codeset" >&6; }
13025   if test $am_cv_langinfo_codeset = yes; then
13026
13027 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13028
13029   fi
13030
13031
13032 # Checks required for our use of locales
13033
13034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13035 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13036 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13037   $as_echo_n "(cached) " >&6
13038 else
13039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041 #include <locale.h>
13042 int
13043 main ()
13044 {
13045 return LC_MESSAGES
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051   gt_cv_val_LC_MESSAGES=yes
13052 else
13053   gt_cv_val_LC_MESSAGES=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056     conftest$ac_exeext conftest.$ac_ext
13057 fi
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13059 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13060   if test $gt_cv_val_LC_MESSAGES = yes; then
13061
13062 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13063
13064   fi
13065
13066
13067
13068 #
13069 # SELinux support
13070 #
13071 if test "$selinux_support" = yes ; then
13072
13073 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13074
13075 fi
13076
13077
13078 #
13079 # Checks for header files.
13080 #
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13082 $as_echo "$as_me: checking for header files" >&6;}
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13084 $as_echo_n "checking for ANSI C header files... " >&6; }
13085 if ${ac_cv_header_stdc+:} false; then :
13086   $as_echo_n "(cached) " >&6
13087 else
13088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h.  */
13090 #include <stdlib.h>
13091 #include <stdarg.h>
13092 #include <string.h>
13093 #include <float.h>
13094
13095 int
13096 main ()
13097 {
13098
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104   ac_cv_header_stdc=yes
13105 else
13106   ac_cv_header_stdc=no
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109
13110 if test $ac_cv_header_stdc = yes; then
13111   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h.  */
13114 #include <string.h>
13115
13116 _ACEOF
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118   $EGREP "memchr" >/dev/null 2>&1; then :
13119
13120 else
13121   ac_cv_header_stdc=no
13122 fi
13123 rm -f conftest*
13124
13125 fi
13126
13127 if test $ac_cv_header_stdc = yes; then
13128   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h.  */
13131 #include <stdlib.h>
13132
13133 _ACEOF
13134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13135   $EGREP "free" >/dev/null 2>&1; then :
13136
13137 else
13138   ac_cv_header_stdc=no
13139 fi
13140 rm -f conftest*
13141
13142 fi
13143
13144 if test $ac_cv_header_stdc = yes; then
13145   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13146   if test "$cross_compiling" = yes; then :
13147   :
13148 else
13149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h.  */
13151 #include <ctype.h>
13152 #include <stdlib.h>
13153 #if ((' ' & 0x0FF) == 0x020)
13154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13156 #else
13157 # define ISLOWER(c) \
13158                    (('a' <= (c) && (c) <= 'i') \
13159                      || ('j' <= (c) && (c) <= 'r') \
13160                      || ('s' <= (c) && (c) <= 'z'))
13161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13162 #endif
13163
13164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13165 int
13166 main ()
13167 {
13168   int i;
13169   for (i = 0; i < 256; i++)
13170     if (XOR (islower (i), ISLOWER (i))
13171         || toupper (i) != TOUPPER (i))
13172       return 2;
13173   return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_run "$LINENO"; then :
13177
13178 else
13179   ac_cv_header_stdc=no
13180 fi
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13182   conftest.$ac_objext conftest.beam conftest.$ac_ext
13183 fi
13184
13185 fi
13186 fi
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13188 $as_echo "$ac_cv_header_stdc" >&6; }
13189 if test $ac_cv_header_stdc = yes; then
13190
13191 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13192
13193 fi
13194
13195 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13196                   pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h     \
13197                   signal.h
13198 do :
13199   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13202   cat >>confdefs.h <<_ACEOF
13203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13204 _ACEOF
13205
13206 fi
13207
13208 done
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13211 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13212 if ${ac_cv_header_time+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h.  */
13217 #include <sys/types.h>
13218 #include <sys/time.h>
13219 #include <time.h>
13220
13221 int
13222 main ()
13223 {
13224 if ((struct tm *) 0)
13225 return 0;
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231   ac_cv_header_time=yes
13232 else
13233   ac_cv_header_time=no
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13238 $as_echo "$ac_cv_header_time" >&6; }
13239 if test $ac_cv_header_time = yes; then
13240
13241 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13242
13243 fi
13244
13245
13246
13247 #
13248 # Checks for typedefs, structures, and compiler characteristics.
13249 #
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13251 $as_echo "$as_me: checking for system characteristics" >&6;}
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13253 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13254 if ${ac_cv_c_const+:} false; then :
13255   $as_echo_n "(cached) " >&6
13256 else
13257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h.  */
13259
13260 int
13261 main ()
13262 {
13263
13264 #ifndef __cplusplus
13265   /* Ultrix mips cc rejects this sort of thing.  */
13266   typedef int charset[2];
13267   const charset cs = { 0, 0 };
13268   /* SunOS 4.1.1 cc rejects this.  */
13269   char const *const *pcpcc;
13270   char **ppc;
13271   /* NEC SVR4.0.2 mips cc rejects this.  */
13272   struct point {int x, y;};
13273   static struct point const zero = {0,0};
13274   /* AIX XL C 1.02.0.0 rejects this.
13275      It does not let you subtract one const X* pointer from another in
13276      an arm of an if-expression whose if-part is not a constant
13277      expression */
13278   const char *g = "string";
13279   pcpcc = &g + (g ? g-g : 0);
13280   /* HPUX 7.0 cc rejects these. */
13281   ++pcpcc;
13282   ppc = (char**) pcpcc;
13283   pcpcc = (char const *const *) ppc;
13284   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13285     char tx;
13286     char *t = &tx;
13287     char const *s = 0 ? (char *) 0 : (char const *) 0;
13288
13289     *t++ = 0;
13290     if (s) return 0;
13291   }
13292   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13293     int x[] = {25, 17};
13294     const int *foo = &x[0];
13295     ++foo;
13296   }
13297   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13298     typedef const int *iptr;
13299     iptr p = 0;
13300     ++p;
13301   }
13302   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13303        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13304     struct s { int j; const int *ap[3]; } bx;
13305     struct s *b = &bx; b->j = 5;
13306   }
13307   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13308     const int foo = 10;
13309     if (!foo) return 0;
13310   }
13311   return !cs[0] && !zero.x;
13312 #endif
13313
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_compile "$LINENO"; then :
13319   ac_cv_c_const=yes
13320 else
13321   ac_cv_c_const=no
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13326 $as_echo "$ac_cv_c_const" >&6; }
13327 if test $ac_cv_c_const = no; then
13328
13329 $as_echo "#define const /**/" >>confdefs.h
13330
13331 fi
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13334 $as_echo_n "checking for inline... " >&6; }
13335 if ${ac_cv_c_inline+:} false; then :
13336   $as_echo_n "(cached) " >&6
13337 else
13338   ac_cv_c_inline=no
13339 for ac_kw in inline __inline__ __inline; do
13340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h.  */
13342 #ifndef __cplusplus
13343 typedef int foo_t;
13344 static $ac_kw foo_t static_foo () {return 0; }
13345 $ac_kw foo_t foo () {return 0; }
13346 #endif
13347
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350   ac_cv_c_inline=$ac_kw
13351 fi
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353   test "$ac_cv_c_inline" != no && break
13354 done
13355
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13358 $as_echo "$ac_cv_c_inline" >&6; }
13359
13360 case $ac_cv_c_inline in
13361   inline | yes) ;;
13362   *)
13363     case $ac_cv_c_inline in
13364       no) ac_val=;;
13365       *) ac_val=$ac_cv_c_inline;;
13366     esac
13367     cat >>confdefs.h <<_ACEOF
13368 #ifndef __cplusplus
13369 #define inline $ac_val
13370 #endif
13371 _ACEOF
13372     ;;
13373 esac
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13376 $as_echo_n "checking for working volatile... " >&6; }
13377 if ${ac_cv_c_volatile+:} false; then :
13378   $as_echo_n "(cached) " >&6
13379 else
13380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h.  */
13382
13383 int
13384 main ()
13385 {
13386
13387 volatile int x;
13388 int * volatile y = (int *) 0;
13389 return !x && !y;
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_compile "$LINENO"; then :
13395   ac_cv_c_volatile=yes
13396 else
13397   ac_cv_c_volatile=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13402 $as_echo "$ac_cv_c_volatile" >&6; }
13403 if test $ac_cv_c_volatile = no; then
13404
13405 $as_echo "#define volatile /**/" >>confdefs.h
13406
13407 fi
13408
13409 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13410 if test "x$ac_cv_type_size_t" = xyes; then :
13411
13412 else
13413
13414 cat >>confdefs.h <<_ACEOF
13415 #define size_t unsigned int
13416 _ACEOF
13417
13418 fi
13419
13420 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13421 if test "x$ac_cv_type_mode_t" = xyes; then :
13422
13423 else
13424
13425 cat >>confdefs.h <<_ACEOF
13426 #define mode_t int
13427 _ACEOF
13428
13429 fi
13430
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13432 $as_echo_n "checking return type of signal handlers... " >&6; }
13433 if ${ac_cv_type_signal+:} false; then :
13434   $as_echo_n "(cached) " >&6
13435 else
13436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h.  */
13438 #include <sys/types.h>
13439 #include <signal.h>
13440
13441 int
13442 main ()
13443 {
13444 return *(signal (0, 0)) (0) == 1;
13445   ;
13446   return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450   ac_cv_type_signal=int
13451 else
13452   ac_cv_type_signal=void
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13457 $as_echo "$ac_cv_type_signal" >&6; }
13458
13459 cat >>confdefs.h <<_ACEOF
13460 #define RETSIGTYPE $ac_cv_type_signal
13461 _ACEOF
13462
13463
13464 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13465 /* NetBSD declares sys_siglist in unistd.h.  */
13466 #ifdef HAVE_UNISTD_H
13467 # include <unistd.h>
13468 #endif
13469
13470 "
13471 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13472   ac_have_decl=1
13473 else
13474   ac_have_decl=0
13475 fi
13476
13477 cat >>confdefs.h <<_ACEOF
13478 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13479 _ACEOF
13480
13481
13482
13483
13484
13485
13486   for ac_header in $ac_header_list
13487 do :
13488   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13490 "
13491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13492   cat >>confdefs.h <<_ACEOF
13493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13494 _ACEOF
13495
13496 fi
13497
13498 done
13499
13500
13501
13502
13503
13504   if test $ac_cv_header_sys_socket_h = yes; then
13505     SYS_SOCKET_H=''
13506   else
13507                     for ac_header in winsock2.h ws2tcpip.h
13508 do :
13509   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13512   cat >>confdefs.h <<_ACEOF
13513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13514 _ACEOF
13515
13516 fi
13517
13518 done
13519
13520     SYS_SOCKET_H='sys/socket.h'
13521   fi
13522
13523
13524    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13525       #if HAVE_SYS_SOCKET_H
13526       # include <sys/socket.h>
13527       #elif HAVE_WS2TCPIP_H
13528       # include <ws2tcpip.h>
13529       #endif
13530 "
13531 if test "x$ac_cv_type_socklen_t" = xyes; then :
13532
13533 else
13534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13535 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13536       if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   # Systems have either "struct sockaddr *" or
13540          # "void *" as the second argument to getpeername
13541          gl_cv_socklen_t_equiv=
13542          for arg2 in "struct sockaddr" void; do
13543            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13544              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h.  */
13546 #include <sys/types.h>
13547                 #include <sys/socket.h>
13548
13549                 int getpeername (int, $arg2 *, $t *);
13550 int
13551 main ()
13552 {
13553 $t len;
13554                 getpeername (0, 0, &len);
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_compile "$LINENO"; then :
13560   gl_cv_socklen_t_equiv="$t"
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563              test "$gl_cv_socklen_t_equiv" != "" && break
13564            done
13565            test "$gl_cv_socklen_t_equiv" != "" && break
13566          done
13567
13568 fi
13569
13570       if test "$gl_cv_socklen_t_equiv" = ""; then
13571         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13572       fi
13573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13574 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13575
13576 cat >>confdefs.h <<_ACEOF
13577 #define socklen_t $gl_cv_socklen_t_equiv
13578 _ACEOF
13579
13580 fi
13581
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13584 $as_echo_n "checking for library containing inet_addr... " >&6; }
13585 if ${ac_cv_search_inet_addr+:} false; then :
13586   $as_echo_n "(cached) " >&6
13587 else
13588   ac_func_search_save_LIBS=$LIBS
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h.  */
13591
13592 /* Override any GCC internal prototype to avoid an error.
13593    Use char because int might match the return type of a GCC
13594    builtin and then its argument prototype would still apply.  */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char inet_addr ();
13599 int
13600 main ()
13601 {
13602 return inet_addr ();
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 for ac_lib in '' nsl; do
13608   if test -z "$ac_lib"; then
13609     ac_res="none required"
13610   else
13611     ac_res=-l$ac_lib
13612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13613   fi
13614   if ac_fn_c_try_link "$LINENO"; then :
13615   ac_cv_search_inet_addr=$ac_res
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext \
13618     conftest$ac_exeext
13619   if ${ac_cv_search_inet_addr+:} false; then :
13620   break
13621 fi
13622 done
13623 if ${ac_cv_search_inet_addr+:} false; then :
13624
13625 else
13626   ac_cv_search_inet_addr=no
13627 fi
13628 rm conftest.$ac_ext
13629 LIBS=$ac_func_search_save_LIBS
13630 fi
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
13632 $as_echo "$ac_cv_search_inet_addr" >&6; }
13633 ac_res=$ac_cv_search_inet_addr
13634 if test "$ac_res" != no; then :
13635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13636
13637 fi
13638
13639
13640 # Check whether --enable-endian-check was given.
13641 if test "${enable_endian_check+set}" = set; then :
13642   enableval=$enable_endian_check; endiancheck=$enableval
13643 else
13644   endiancheck=yes
13645 fi
13646
13647
13648 if test x"$endiancheck" = xyes ; then
13649
13650     tmp_assumed_endian=big
13651     tmp_assume_warn=""
13652     if test "$cross_compiling" = yes; then
13653       case "$host_cpu" in
13654          i[345678]* )
13655             tmp_assumed_endian=little
13656             ;;
13657          *)
13658             ;;
13659       esac
13660     fi
13661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
13662 $as_echo_n "checking endianness... " >&6; }
13663     if ${gnupg_cv_c_endian+:} false; then :
13664   $as_echo_n "(cached) " >&6
13665 else
13666    gnupg_cv_c_endian=unknown
13667         # See if sys/param.h defines the BYTE_ORDER macro.
13668         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h.  */
13670 #include <sys/types.h>
13671         #include <sys/param.h>
13672 int
13673 main ()
13674 {
13675
13676         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13677          bogus endian macros
13678         #endif
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684   # It does; now see whether it defined to BIG_ENDIAN or not.
13685         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687 #include <sys/types.h>
13688         #include <sys/param.h>
13689 int
13690 main ()
13691 {
13692
13693         #if BYTE_ORDER != BIG_ENDIAN
13694          not big endian
13695         #endif
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_compile "$LINENO"; then :
13701   gnupg_cv_c_endian=big
13702 else
13703   gnupg_cv_c_endian=little
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708         if test "$gnupg_cv_c_endian" = unknown; then
13709             if test "$cross_compiling" = yes; then :
13710   gnupg_cv_c_endian=$tmp_assumed_endian
13711               tmp_assumed_warn=" (assumed)"
13712
13713 else
13714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716 main () {
13717               /* Are we little or big endian?  From Harbison&Steele.  */
13718               union
13719               {
13720                 long l;
13721                 char c[sizeof (long)];
13722               } u;
13723               u.l = 1;
13724               exit (u.c[sizeof (long) - 1] == 1);
13725               }
13726 _ACEOF
13727 if ac_fn_c_try_run "$LINENO"; then :
13728   gnupg_cv_c_endian=little
13729 else
13730   gnupg_cv_c_endian=big
13731 fi
13732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13733   conftest.$ac_objext conftest.beam conftest.$ac_ext
13734 fi
13735
13736         fi
13737
13738 fi
13739
13740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
13741 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
13742     if test "$gnupg_cv_c_endian" = little; then
13743
13744 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
13745
13746     else
13747
13748 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
13749
13750     fi
13751
13752 fi
13753
13754 # fixme: we should get rid of the byte type
13755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
13756 $as_echo_n "checking for byte typedef... " >&6; }
13757     if ${gnupg_cv_typedef_byte+:} false; then :
13758   $as_echo_n "(cached) " >&6
13759 else
13760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h.  */
13762 #define _GNU_SOURCE 1
13763     #include <stdlib.h>
13764     #include <sys/types.h>
13765 int
13766 main ()
13767 {
13768
13769     #undef byte
13770     int a = sizeof(byte);
13771
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777   gnupg_cv_typedef_byte=yes
13778 else
13779   gnupg_cv_typedef_byte=no
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 fi
13783
13784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
13785 $as_echo "$gnupg_cv_typedef_byte" >&6; }
13786     if test "$gnupg_cv_typedef_byte" = yes; then
13787
13788 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
13789
13790     fi
13791
13792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
13793 $as_echo_n "checking for ushort typedef... " >&6; }
13794     if ${gnupg_cv_typedef_ushort+:} false; then :
13795   $as_echo_n "(cached) " >&6
13796 else
13797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h.  */
13799 #define _GNU_SOURCE 1
13800     #include <stdlib.h>
13801     #include <sys/types.h>
13802 int
13803 main ()
13804 {
13805
13806     #undef ushort
13807     int a = sizeof(ushort);
13808
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_compile "$LINENO"; then :
13814   gnupg_cv_typedef_ushort=yes
13815 else
13816   gnupg_cv_typedef_ushort=no
13817 fi
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 fi
13820
13821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
13822 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
13823     if test "$gnupg_cv_typedef_ushort" = yes; then
13824
13825 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
13826
13827     fi
13828
13829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
13830 $as_echo_n "checking for ulong typedef... " >&6; }
13831     if ${gnupg_cv_typedef_ulong+:} false; then :
13832   $as_echo_n "(cached) " >&6
13833 else
13834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h.  */
13836 #define _GNU_SOURCE 1
13837     #include <stdlib.h>
13838     #include <sys/types.h>
13839 int
13840 main ()
13841 {
13842
13843     #undef ulong
13844     int a = sizeof(ulong);
13845
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851   gnupg_cv_typedef_ulong=yes
13852 else
13853   gnupg_cv_typedef_ulong=no
13854 fi
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 fi
13857
13858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
13859 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
13860     if test "$gnupg_cv_typedef_ulong" = yes; then
13861
13862 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
13863
13864     fi
13865
13866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
13867 $as_echo_n "checking for u16 typedef... " >&6; }
13868     if ${gnupg_cv_typedef_u16+:} false; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #define _GNU_SOURCE 1
13874     #include <stdlib.h>
13875     #include <sys/types.h>
13876 int
13877 main ()
13878 {
13879
13880     #undef u16
13881     int a = sizeof(u16);
13882
13883   ;
13884   return 0;
13885 }
13886 _ACEOF
13887 if ac_fn_c_try_compile "$LINENO"; then :
13888   gnupg_cv_typedef_u16=yes
13889 else
13890   gnupg_cv_typedef_u16=no
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 fi
13894
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
13896 $as_echo "$gnupg_cv_typedef_u16" >&6; }
13897     if test "$gnupg_cv_typedef_u16" = yes; then
13898
13899 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
13900
13901     fi
13902
13903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
13904 $as_echo_n "checking for u32 typedef... " >&6; }
13905     if ${gnupg_cv_typedef_u32+:} false; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h.  */
13910 #define _GNU_SOURCE 1
13911     #include <stdlib.h>
13912     #include <sys/types.h>
13913 int
13914 main ()
13915 {
13916
13917     #undef u32
13918     int a = sizeof(u32);
13919
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925   gnupg_cv_typedef_u32=yes
13926 else
13927   gnupg_cv_typedef_u32=no
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930 fi
13931
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
13933 $as_echo "$gnupg_cv_typedef_u32" >&6; }
13934     if test "$gnupg_cv_typedef_u32" = yes; then
13935
13936 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
13937
13938     fi
13939
13940
13941 # The cast to long int works around a bug in the HP C Compiler
13942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13944 # This bug is HP SR number 8606223364.
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13946 $as_echo_n "checking size of unsigned short... " >&6; }
13947 if ${ac_cv_sizeof_unsigned_short+:} false; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
13951
13952 else
13953   if test "$ac_cv_type_unsigned_short" = yes; then
13954      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13956 as_fn_error 77 "cannot compute sizeof (unsigned short)
13957 See \`config.log' for more details" "$LINENO" 5; }
13958    else
13959      ac_cv_sizeof_unsigned_short=0
13960    fi
13961 fi
13962
13963 fi
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13965 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13966
13967
13968
13969 cat >>confdefs.h <<_ACEOF
13970 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13971 _ACEOF
13972
13973
13974 # The cast to long int works around a bug in the HP C Compiler
13975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13977 # This bug is HP SR number 8606223364.
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13979 $as_echo_n "checking size of unsigned int... " >&6; }
13980 if ${ac_cv_sizeof_unsigned_int+:} false; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
13984
13985 else
13986   if test "$ac_cv_type_unsigned_int" = yes; then
13987      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13989 as_fn_error 77 "cannot compute sizeof (unsigned int)
13990 See \`config.log' for more details" "$LINENO" 5; }
13991    else
13992      ac_cv_sizeof_unsigned_int=0
13993    fi
13994 fi
13995
13996 fi
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13998 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13999
14000
14001
14002 cat >>confdefs.h <<_ACEOF
14003 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14004 _ACEOF
14005
14006
14007 # The cast to long int works around a bug in the HP C Compiler
14008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14010 # This bug is HP SR number 8606223364.
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14012 $as_echo_n "checking size of unsigned long... " >&6; }
14013 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14014   $as_echo_n "(cached) " >&6
14015 else
14016   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14017
14018 else
14019   if test "$ac_cv_type_unsigned_long" = yes; then
14020      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14022 as_fn_error 77 "cannot compute sizeof (unsigned long)
14023 See \`config.log' for more details" "$LINENO" 5; }
14024    else
14025      ac_cv_sizeof_unsigned_long=0
14026    fi
14027 fi
14028
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14031 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14032
14033
14034
14035 cat >>confdefs.h <<_ACEOF
14036 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14037 _ACEOF
14038
14039
14040 # The cast to long int works around a bug in the HP C Compiler
14041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14043 # This bug is HP SR number 8606223364.
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14045 $as_echo_n "checking size of unsigned long long... " >&6; }
14046 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14047   $as_echo_n "(cached) " >&6
14048 else
14049   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14050
14051 else
14052   if test "$ac_cv_type_unsigned_long_long" = yes; then
14053      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14055 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14056 See \`config.log' for more details" "$LINENO" 5; }
14057    else
14058      ac_cv_sizeof_unsigned_long_long=0
14059    fi
14060 fi
14061
14062 fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14064 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14065
14066
14067
14068 cat >>confdefs.h <<_ACEOF
14069 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14070 _ACEOF
14071
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14074 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14075 if ${ac_cv_header_time+:} false; then :
14076   $as_echo_n "(cached) " >&6
14077 else
14078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h.  */
14080 #include <sys/types.h>
14081 #include <sys/time.h>
14082 #include <time.h>
14083
14084 int
14085 main ()
14086 {
14087 if ((struct tm *) 0)
14088 return 0;
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094   ac_cv_header_time=yes
14095 else
14096   ac_cv_header_time=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14101 $as_echo "$ac_cv_header_time" >&6; }
14102 if test $ac_cv_header_time = yes; then
14103
14104 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14105
14106 fi
14107
14108 # The cast to long int works around a bug in the HP C Compiler
14109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14111 # This bug is HP SR number 8606223364.
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14113 $as_echo_n "checking size of time_t... " >&6; }
14114 if ${ac_cv_sizeof_time_t+:} false; then :
14115   $as_echo_n "(cached) " >&6
14116 else
14117   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14118 #include <stdio.h>
14119 #if TIME_WITH_SYS_TIME
14120 # include <sys/time.h>
14121 # include <time.h>
14122 #else
14123 # if HAVE_SYS_TIME_H
14124 #  include <sys/time.h>
14125 # else
14126 #  include <time.h>
14127 # endif
14128 #endif
14129
14130 "; then :
14131
14132 else
14133   if test "$ac_cv_type_time_t" = yes; then
14134      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14136 as_fn_error 77 "cannot compute sizeof (time_t)
14137 See \`config.log' for more details" "$LINENO" 5; }
14138    else
14139      ac_cv_sizeof_time_t=0
14140    fi
14141 fi
14142
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14145 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14146
14147
14148
14149 cat >>confdefs.h <<_ACEOF
14150 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14151 _ACEOF
14152
14153
14154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14155 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14156 if ${gnupg_cv_time_t_unsigned+:} false; then :
14157   $as_echo_n "(cached) " >&6
14158 else
14159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h.  */
14161 $ac_includes_default
14162 #if TIME_WITH_SYS_TIME
14163 # include <sys/time.h>
14164 # include <time.h>
14165 #else
14166 # if HAVE_SYS_TIME_H
14167 #  include <sys/time.h>
14168 # else
14169 #  include <time.h>
14170 # endif
14171 #endif
14172
14173 int
14174 main ()
14175 {
14176 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14177 test_array [0] = 0;
14178 return test_array [0];
14179
14180   ;
14181   return 0;
14182 }
14183 _ACEOF
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185   gnupg_cv_time_t_unsigned=no
14186 else
14187   gnupg_cv_time_t_unsigned=yes
14188 fi
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14192 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14193     if test $gnupg_cv_time_t_unsigned = yes; then
14194
14195 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14196
14197     fi
14198
14199
14200
14201 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14202    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14203    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14205 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14206 fi
14207
14208
14209 #
14210 # Checks for library functions.
14211 #
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14213 $as_echo "$as_me: checking for library functions" >&6;}
14214 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14215 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14216   ac_have_decl=1
14217 else
14218   ac_have_decl=0
14219 fi
14220
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14223 _ACEOF
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14226 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14227 if ${ac_cv_sys_largefile_source+:} false; then :
14228   $as_echo_n "(cached) " >&6
14229 else
14230   while :; do
14231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h.  */
14233 #include <sys/types.h> /* for off_t */
14234      #include <stdio.h>
14235 int
14236 main ()
14237 {
14238 int (*fp) (FILE *, off_t, int) = fseeko;
14239      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245   ac_cv_sys_largefile_source=no; break
14246 fi
14247 rm -f core conftest.err conftest.$ac_objext \
14248     conftest$ac_exeext conftest.$ac_ext
14249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h.  */
14251 #define _LARGEFILE_SOURCE 1
14252 #include <sys/types.h> /* for off_t */
14253      #include <stdio.h>
14254 int
14255 main ()
14256 {
14257 int (*fp) (FILE *, off_t, int) = fseeko;
14258      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 if ac_fn_c_try_link "$LINENO"; then :
14264   ac_cv_sys_largefile_source=1; break
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267     conftest$ac_exeext conftest.$ac_ext
14268   ac_cv_sys_largefile_source=unknown
14269   break
14270 done
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14273 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14274 case $ac_cv_sys_largefile_source in #(
14275   no | unknown) ;;
14276   *)
14277 cat >>confdefs.h <<_ACEOF
14278 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14279 _ACEOF
14280 ;;
14281 esac
14282 rm -rf conftest*
14283
14284 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14285 # in glibc 2.1.3, but that breaks too many other things.
14286 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14287 if test $ac_cv_sys_largefile_source != unknown; then
14288
14289 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14290
14291 fi
14292
14293 for ac_func in vprintf
14294 do :
14295   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14296 if test "x$ac_cv_func_vprintf" = xyes; then :
14297   cat >>confdefs.h <<_ACEOF
14298 #define HAVE_VPRINTF 1
14299 _ACEOF
14300
14301 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14302 if test "x$ac_cv_func__doprnt" = xyes; then :
14303
14304 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14305
14306 fi
14307
14308 fi
14309 done
14310
14311
14312 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14313 if test "x$ac_cv_type_pid_t" = xyes; then :
14314
14315 else
14316
14317 cat >>confdefs.h <<_ACEOF
14318 #define pid_t int
14319 _ACEOF
14320
14321 fi
14322
14323 for ac_header in vfork.h
14324 do :
14325   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14326 if test "x$ac_cv_header_vfork_h" = xyes; then :
14327   cat >>confdefs.h <<_ACEOF
14328 #define HAVE_VFORK_H 1
14329 _ACEOF
14330
14331 fi
14332
14333 done
14334
14335 for ac_func in fork vfork
14336 do :
14337   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14340   cat >>confdefs.h <<_ACEOF
14341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14342 _ACEOF
14343
14344 fi
14345 done
14346
14347 if test "x$ac_cv_func_fork" = xyes; then
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14349 $as_echo_n "checking for working fork... " >&6; }
14350 if ${ac_cv_func_fork_works+:} false; then :
14351   $as_echo_n "(cached) " >&6
14352 else
14353   if test "$cross_compiling" = yes; then :
14354   ac_cv_func_fork_works=cross
14355 else
14356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h.  */
14358 $ac_includes_default
14359 int
14360 main ()
14361 {
14362
14363           /* By Ruediger Kuhlmann. */
14364           return fork () < 0;
14365
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_run "$LINENO"; then :
14371   ac_cv_func_fork_works=yes
14372 else
14373   ac_cv_func_fork_works=no
14374 fi
14375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14376   conftest.$ac_objext conftest.beam conftest.$ac_ext
14377 fi
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14381 $as_echo "$ac_cv_func_fork_works" >&6; }
14382
14383 else
14384   ac_cv_func_fork_works=$ac_cv_func_fork
14385 fi
14386 if test "x$ac_cv_func_fork_works" = xcross; then
14387   case $host in
14388     *-*-amigaos* | *-*-msdosdjgpp*)
14389       # Override, as these systems have only a dummy fork() stub
14390       ac_cv_func_fork_works=no
14391       ;;
14392     *)
14393       ac_cv_func_fork_works=yes
14394       ;;
14395   esac
14396   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14397 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14398 fi
14399 ac_cv_func_vfork_works=$ac_cv_func_vfork
14400 if test "x$ac_cv_func_vfork" = xyes; then
14401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14402 $as_echo_n "checking for working vfork... " >&6; }
14403 if ${ac_cv_func_vfork_works+:} false; then :
14404   $as_echo_n "(cached) " >&6
14405 else
14406   if test "$cross_compiling" = yes; then :
14407   ac_cv_func_vfork_works=cross
14408 else
14409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h.  */
14411 /* Thanks to Paul Eggert for this test.  */
14412 $ac_includes_default
14413 #include <sys/wait.h>
14414 #ifdef HAVE_VFORK_H
14415 # include <vfork.h>
14416 #endif
14417 /* On some sparc systems, changes by the child to local and incoming
14418    argument registers are propagated back to the parent.  The compiler
14419    is told about this with #include <vfork.h>, but some compilers
14420    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14421    static variable whose address is put into a register that is
14422    clobbered by the vfork.  */
14423 static void
14424 #ifdef __cplusplus
14425 sparc_address_test (int arg)
14426 # else
14427 sparc_address_test (arg) int arg;
14428 #endif
14429 {
14430   static pid_t child;
14431   if (!child) {
14432     child = vfork ();
14433     if (child < 0) {
14434       perror ("vfork");
14435       _exit(2);
14436     }
14437     if (!child) {
14438       arg = getpid();
14439       write(-1, "", 0);
14440       _exit (arg);
14441     }
14442   }
14443 }
14444
14445 int
14446 main ()
14447 {
14448   pid_t parent = getpid ();
14449   pid_t child;
14450
14451   sparc_address_test (0);
14452
14453   child = vfork ();
14454
14455   if (child == 0) {
14456     /* Here is another test for sparc vfork register problems.  This
14457        test uses lots of local variables, at least as many local
14458        variables as main has allocated so far including compiler
14459        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14460        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14461        reuse the register of parent for one of the local variables,
14462        since it will think that parent can't possibly be used any more
14463        in this routine.  Assigning to the local variable will thus
14464        munge parent in the parent process.  */
14465     pid_t
14466       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14467       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14468     /* Convince the compiler that p..p7 are live; otherwise, it might
14469        use the same hardware register for all 8 local variables.  */
14470     if (p != p1 || p != p2 || p != p3 || p != p4
14471         || p != p5 || p != p6 || p != p7)
14472       _exit(1);
14473
14474     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14475        from child file descriptors.  If the child closes a descriptor
14476        before it execs or exits, this munges the parent's descriptor
14477        as well.  Test for this by closing stdout in the child.  */
14478     _exit(close(fileno(stdout)) != 0);
14479   } else {
14480     int status;
14481     struct stat st;
14482
14483     while (wait(&status) != child)
14484       ;
14485     return (
14486          /* Was there some problem with vforking?  */
14487          child < 0
14488
14489          /* Did the child fail?  (This shouldn't happen.)  */
14490          || status
14491
14492          /* Did the vfork/compiler bug occur?  */
14493          || parent != getpid()
14494
14495          /* Did the file descriptor bug occur?  */
14496          || fstat(fileno(stdout), &st) != 0
14497          );
14498   }
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_run "$LINENO"; then :
14502   ac_cv_func_vfork_works=yes
14503 else
14504   ac_cv_func_vfork_works=no
14505 fi
14506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14507   conftest.$ac_objext conftest.beam conftest.$ac_ext
14508 fi
14509
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14512 $as_echo "$ac_cv_func_vfork_works" >&6; }
14513
14514 fi;
14515 if test "x$ac_cv_func_fork_works" = xcross; then
14516   ac_cv_func_vfork_works=$ac_cv_func_vfork
14517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14518 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14519 fi
14520
14521 if test "x$ac_cv_func_vfork_works" = xyes; then
14522
14523 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14524
14525 else
14526
14527 $as_echo "#define vfork fork" >>confdefs.h
14528
14529 fi
14530 if test "x$ac_cv_func_fork_works" = xyes; then
14531
14532 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14533
14534 fi
14535
14536 for ac_func in strerror strlwr tcgetattr mmap canonicalize_file_name
14537 do :
14538   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14541   cat >>confdefs.h <<_ACEOF
14542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14543 _ACEOF
14544
14545 fi
14546 done
14547
14548 for ac_func in strcasecmp strncasecmp ctermid times gmtime_r strtoull
14549 do :
14550   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14552 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14553   cat >>confdefs.h <<_ACEOF
14554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14555 _ACEOF
14556
14557 fi
14558 done
14559
14560 for ac_func in setenv unsetenv fcntl ftruncate inet_ntop
14561 do :
14562   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14563 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14564 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14565   cat >>confdefs.h <<_ACEOF
14566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14567 _ACEOF
14568
14569 fi
14570 done
14571
14572 for ac_func in canonicalize_file_name
14573 do :
14574   ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
14575 if test "x$ac_cv_func_canonicalize_file_name" = xyes; then :
14576   cat >>confdefs.h <<_ACEOF
14577 #define HAVE_CANONICALIZE_FILE_NAME 1
14578 _ACEOF
14579
14580 fi
14581 done
14582
14583 for ac_func in gettimeofday getrusage getrlimit setrlimit clock_gettime
14584 do :
14585   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14587 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14588   cat >>confdefs.h <<_ACEOF
14589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14590 _ACEOF
14591
14592 fi
14593 done
14594
14595 for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
14596 do :
14597   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14600   cat >>confdefs.h <<_ACEOF
14601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604 fi
14605 done
14606
14607 for ac_func in waitpid wait4 sigaction sigprocmask pipe getaddrinfo
14608 do :
14609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14612   cat >>confdefs.h <<_ACEOF
14613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14614 _ACEOF
14615
14616 fi
14617 done
14618
14619 for ac_func in ttyname rand ftello fsync stat lstat
14620 do :
14621   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14624   cat >>confdefs.h <<_ACEOF
14625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14626 _ACEOF
14627
14628 fi
14629 done
14630
14631 for ac_func in memicmp stpcpy strsep strlwr strtoul memmove stricmp strtol \
14632                 memrchr isascii timegm getrusage setrlimit stat setlocale   \
14633                 flockfile funlockfile getpwnam getpwuid \
14634                 getenv inet_pton strpbrk
14635 do :
14636   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14639   cat >>confdefs.h <<_ACEOF
14640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14641 _ACEOF
14642
14643 fi
14644 done
14645
14646
14647 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14648 # Given that we use nanosleep only as an optimization over a select
14649 # based wait function we want it only if it is available in libc.
14650 _save_libs="$LIBS"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14652 $as_echo_n "checking for library containing nanosleep... " >&6; }
14653 if ${ac_cv_search_nanosleep+:} false; then :
14654   $as_echo_n "(cached) " >&6
14655 else
14656   ac_func_search_save_LIBS=$LIBS
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h.  */
14659
14660 /* Override any GCC internal prototype to avoid an error.
14661    Use char because int might match the return type of a GCC
14662    builtin and then its argument prototype would still apply.  */
14663 #ifdef __cplusplus
14664 extern "C"
14665 #endif
14666 char nanosleep ();
14667 int
14668 main ()
14669 {
14670 return nanosleep ();
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 for ac_lib in '' ; do
14676   if test -z "$ac_lib"; then
14677     ac_res="none required"
14678   else
14679     ac_res=-l$ac_lib
14680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14681   fi
14682   if ac_fn_c_try_link "$LINENO"; then :
14683   ac_cv_search_nanosleep=$ac_res
14684 fi
14685 rm -f core conftest.err conftest.$ac_objext \
14686     conftest$ac_exeext
14687   if ${ac_cv_search_nanosleep+:} false; then :
14688   break
14689 fi
14690 done
14691 if ${ac_cv_search_nanosleep+:} false; then :
14692
14693 else
14694   ac_cv_search_nanosleep=no
14695 fi
14696 rm conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14700 $as_echo "$ac_cv_search_nanosleep" >&6; }
14701 ac_res=$ac_cv_search_nanosleep
14702 if test "$ac_res" != no; then :
14703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704
14705 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14706
14707 fi
14708
14709 LIBS="$_save_libs"
14710
14711
14712 # See whether libc supports the Linux inotify interface
14713 case "${host}" in
14714     *-*-linux*)
14715         for ac_func in inotify_init
14716 do :
14717   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14718 if test "x$ac_cv_func_inotify_init" = xyes; then :
14719   cat >>confdefs.h <<_ACEOF
14720 #define HAVE_INOTIFY_INIT 1
14721 _ACEOF
14722
14723 fi
14724 done
14725
14726         ;;
14727 esac
14728
14729
14730 if test "$have_android_system" = yes; then
14731    # On Android ttyname is a stub but prints an error message.
14732
14733 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14734
14735 fi
14736
14737 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14738 "
14739 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14740
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_STRUCT_SIGACTION 1
14743 _ACEOF
14744
14745
14746 fi
14747 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14748 "
14749 if test "x$ac_cv_type_sigset_t" = xyes; then :
14750
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_SIGSET_T 1
14753 _ACEOF
14754
14755
14756 fi
14757
14758
14759 # Dirmngr requires mmap on Unix systems.
14760 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14761   as_fn_error $? "Sorry, the current implemenation requires mmap." "$LINENO" 5
14762 fi
14763
14764 #
14765 # W32 specific test
14766 #
14767 for ac_header in sys/stat.h unistd.h direct.h
14768 do :
14769   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14770 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14772   cat >>confdefs.h <<_ACEOF
14773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14774 _ACEOF
14775
14776 fi
14777
14778 done
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
14781 $as_echo_n "checking if mkdir takes one argument... " >&6; }
14782 if ${gnupg_cv_mkdir_takes_one_arg+:} false; then :
14783   $as_echo_n "(cached) " >&6
14784 else
14785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h.  */
14787
14788 #include <sys/types.h>
14789 #ifdef HAVE_SYS_STAT_H
14790 # include <sys/stat.h>
14791 #endif
14792 #ifdef HAVE_UNISTD_H
14793 # include <unistd.h>
14794 #endif
14795 #ifdef HAVE_DIRECT_H
14796 # include <direct.h>
14797 #endif
14798 int
14799 main ()
14800 {
14801 mkdir ("foo", 0);
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 if ac_fn_c_try_compile "$LINENO"; then :
14807   gnupg_cv_mkdir_takes_one_arg=no
14808 else
14809   gnupg_cv_mkdir_takes_one_arg=yes
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812 fi
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
14814 $as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
14815 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
14816
14817 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
14818
14819 fi
14820
14821
14822 #
14823 # Sanity check regex.  Tests adapted from mutt.
14824 #
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether regular expression support is requested" >&5
14826 $as_echo_n "checking whether regular expression support is requested... " >&6; }
14827 # Check whether --enable-regex was given.
14828 if test "${enable_regex+set}" = set; then :
14829   enableval=$enable_regex; use_regex=$enableval
14830 else
14831   use_regex=yes
14832 fi
14833
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_regex" >&5
14835 $as_echo "$use_regex" >&6; }
14836
14837 if test "$use_regex" = yes ; then
14838   _cppflags="${CPPFLAGS}"
14839   _ldflags="${LDFLAGS}"
14840
14841 # Check whether --with-regex was given.
14842 if test "${with_regex+set}" = set; then :
14843   withval=$with_regex;
14844       if test -d "$withval" ; then
14845         CPPFLAGS="${CPPFLAGS} -I$withval/include"
14846         LDFLAGS="${LDFLAGS} -L$withval/lib"
14847       fi
14848
14849 else
14850   withval=""
14851 fi
14852
14853
14854   # Does the system have regex functions at all?
14855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
14856 $as_echo_n "checking for library containing regcomp... " >&6; }
14857 if ${ac_cv_search_regcomp+:} false; then :
14858   $as_echo_n "(cached) " >&6
14859 else
14860   ac_func_search_save_LIBS=$LIBS
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863
14864 /* Override any GCC internal prototype to avoid an error.
14865    Use char because int might match the return type of a GCC
14866    builtin and then its argument prototype would still apply.  */
14867 #ifdef __cplusplus
14868 extern "C"
14869 #endif
14870 char regcomp ();
14871 int
14872 main ()
14873 {
14874 return regcomp ();
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 for ac_lib in '' regex; do
14880   if test -z "$ac_lib"; then
14881     ac_res="none required"
14882   else
14883     ac_res=-l$ac_lib
14884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14885   fi
14886   if ac_fn_c_try_link "$LINENO"; then :
14887   ac_cv_search_regcomp=$ac_res
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext \
14890     conftest$ac_exeext
14891   if ${ac_cv_search_regcomp+:} false; then :
14892   break
14893 fi
14894 done
14895 if ${ac_cv_search_regcomp+:} false; then :
14896
14897 else
14898   ac_cv_search_regcomp=no
14899 fi
14900 rm conftest.$ac_ext
14901 LIBS=$ac_func_search_save_LIBS
14902 fi
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
14904 $as_echo "$ac_cv_search_regcomp" >&6; }
14905 ac_res=$ac_cv_search_regcomp
14906 if test "$ac_res" != no; then :
14907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14908
14909 fi
14910
14911   ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
14912 if test "x$ac_cv_func_regcomp" = xyes; then :
14913   gnupg_cv_have_regex=yes
14914 else
14915   gnupg_cv_have_regex=no
14916 fi
14917
14918
14919   if test $gnupg_cv_have_regex = no; then
14920     use_regex=no
14921   else
14922     if test x"$cross_compiling" = xyes; then
14923       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling; assuming regexp libray is not broken" >&5
14924 $as_echo "$as_me: WARNING: cross compiling; assuming regexp libray is not broken" >&2;}
14925     else
14926       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system's regexp library is broken" >&5
14927 $as_echo_n "checking whether your system's regexp library is broken... " >&6; }
14928 if ${gnupg_cv_regex_broken+:} false; then :
14929   $as_echo_n "(cached) " >&6
14930 else
14931   if test "$cross_compiling" = yes; then :
14932   gnupg_cv_regex_broken=yes
14933 else
14934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h.  */
14936
14937 #include <unistd.h>
14938 #include <regex.h>
14939 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
14940 _ACEOF
14941 if ac_fn_c_try_run "$LINENO"; then :
14942   gnupg_cv_regex_broken=no
14943 else
14944   gnupg_cv_regex_broken=yes
14945 fi
14946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14947   conftest.$ac_objext conftest.beam conftest.$ac_ext
14948 fi
14949
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_regex_broken" >&5
14952 $as_echo "$gnupg_cv_regex_broken" >&6; }
14953
14954       if test $gnupg_cv_regex_broken = yes; then
14955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your regex is broken - disabling regex use" >&5
14956 $as_echo "$as_me: WARNING: your regex is broken - disabling regex use" >&2;}
14957         use_regex=no
14958       fi
14959     fi
14960   fi
14961   CPPFLAGS="${_cppflags}"
14962   LDFLAGS="${_ldflags}"
14963 fi
14964
14965 if test "$use_regex" != yes ; then
14966
14967 $as_echo "#define DISABLE_REGEX 1" >>confdefs.h
14968
14969 fi
14970  if test x"$use_regex" != xyes; then
14971   DISABLE_REGEX_TRUE=
14972   DISABLE_REGEX_FALSE='#'
14973 else
14974   DISABLE_REGEX_TRUE='#'
14975   DISABLE_REGEX_FALSE=
14976 fi
14977
14978
14979
14980
14981 #
14982 # Do we have zlib? Must do it here because Solaris failed
14983 # when compiling a conftest (due to the "-lz" from LIBS).
14984 # Note that we combine zlib and bzlib2 in ZLIBS.
14985 #
14986 if test "$use_zip" = yes ; then
14987   _cppflags="${CPPFLAGS}"
14988   _ldflags="${LDFLAGS}"
14989
14990 # Check whether --with-zlib was given.
14991 if test "${with_zlib+set}" = set; then :
14992   withval=$with_zlib;
14993       if test -d "$withval"; then
14994         CPPFLAGS="${CPPFLAGS} -I$withval/include"
14995         LDFLAGS="${LDFLAGS} -L$withval/lib"
14996       fi
14997
14998 fi
14999
15000
15001   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15002 if test "x$ac_cv_header_zlib_h" = xyes; then :
15003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15004 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15005 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15006   $as_echo_n "(cached) " >&6
15007 else
15008   ac_check_lib_save_LIBS=$LIBS
15009 LIBS="-lz  $LIBS"
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h.  */
15012
15013 /* Override any GCC internal prototype to avoid an error.
15014    Use char because int might match the return type of a GCC
15015    builtin and then its argument prototype would still apply.  */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 char deflateInit2_ ();
15020 int
15021 main ()
15022 {
15023 return deflateInit2_ ();
15024   ;
15025   return 0;
15026 }
15027 _ACEOF
15028 if ac_fn_c_try_link "$LINENO"; then :
15029   ac_cv_lib_z_deflateInit2_=yes
15030 else
15031   ac_cv_lib_z_deflateInit2_=no
15032 fi
15033 rm -f core conftest.err conftest.$ac_objext \
15034     conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15036 fi
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15038 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15039 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15040
15041        ZLIBS="-lz"
15042
15043 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15044
15045
15046 else
15047   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15048 fi
15049
15050 else
15051   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15052 fi
15053
15054
15055 fi
15056
15057
15058 #
15059 # Check whether we can support bzip2
15060 #
15061 if test "$use_bzip2" = yes ; then
15062   _cppflags="${CPPFLAGS}"
15063   _ldflags="${LDFLAGS}"
15064
15065 # Check whether --with-bzip2 was given.
15066 if test "${with_bzip2+set}" = set; then :
15067   withval=$with_bzip2;
15068       if test -d "$withval" ; then
15069         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15070         LDFLAGS="${LDFLAGS} -L$withval/lib"
15071       fi
15072
15073 else
15074   withval=""
15075 fi
15076
15077
15078   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15079   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15080   # woefully out of date.
15081   if test "$withval" != no ; then
15082      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15083 "
15084 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15086 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15087 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15088   $as_echo_n "(cached) " >&6
15089 else
15090   ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lbz2  $LIBS"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h.  */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096    Use char because int might match the return type of a GCC
15097    builtin and then its argument prototype would still apply.  */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char BZ2_bzCompressInit ();
15102 int
15103 main ()
15104 {
15105 return BZ2_bzCompressInit ();
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15112 else
15113   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext \
15116     conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15120 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15121 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15122
15123           have_bz2=yes
15124           ZLIBS="$ZLIBS -lbz2"
15125
15126 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15127
15128
15129 else
15130   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15131 fi
15132
15133 else
15134   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15135 fi
15136
15137
15138   fi
15139 fi
15140  if test x"$have_bz2" = "xyes"; then
15141   ENABLE_BZIP2_SUPPORT_TRUE=
15142   ENABLE_BZIP2_SUPPORT_FALSE='#'
15143 else
15144   ENABLE_BZIP2_SUPPORT_TRUE='#'
15145   ENABLE_BZIP2_SUPPORT_FALSE=
15146 fi
15147
15148
15149
15150
15151 # Check for readline support
15152
15153
15154 # Check whether --with-readline was given.
15155 if test "${with_readline+set}" = set; then :
15156   withval=$with_readline; _do_readline=$withval
15157 else
15158   _do_readline=yes
15159 fi
15160
15161
15162   gnupg_cv_have_readline=no
15163   if test "$_do_readline" != "no" ; then
15164      if test -d "$withval" ; then
15165         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15166         LDFLAGS="${LDFLAGS} -L$withval/lib"
15167      fi
15168
15169      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15170         _readline_save_libs=$LIBS
15171         _combo="-lreadline${_termcap:+ $_termcap}"
15172         LIBS="$LIBS $_combo"
15173
15174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15175 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15176
15177         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h.  */
15179
15180 #include <stdio.h>
15181 #include <readline/readline.h>
15182 #include <readline/history.h>
15183
15184 int
15185 main ()
15186 {
15187
15188 rl_completion_func_t *completer;
15189 add_history("foobar");
15190 rl_catch_signals=0;
15191 rl_inhibit_completion=0;
15192 rl_attempted_completion_function=NULL;
15193 rl_completion_matches(NULL,NULL);
15194
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_c_try_link "$LINENO"; then :
15200   _found_readline=yes
15201 else
15202   _found_readline=no
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205     conftest$ac_exeext conftest.$ac_ext
15206
15207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15208 $as_echo "$_found_readline" >&6; }
15209
15210         LIBS=$_readline_save_libs
15211
15212         if test $_found_readline = yes ; then
15213
15214 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15215
15216            LIBREADLINE=$_combo
15217
15218            gnupg_cv_have_readline=yes
15219            break
15220         fi
15221      done
15222
15223      unset _termcap
15224      unset _readline_save_libs
15225      unset _combo
15226      unset _found_readline
15227   fi
15228
15229
15230
15231 if test "$development_version" = yes; then
15232
15233 $as_echo "#define IS_DEVELOPMENT_VERSION 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 # Setup gcc specific options
15286 #
15287 USE_C99_CFLAGS=
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15289 $as_echo "$as_me: checking for cc features" >&6;}
15290 if test "$GCC" = yes; then
15291     mycflags=
15292     mycflags_save=$CFLAGS
15293
15294     # Check whether gcc does not emit a diagnositc for unknow -Wno-*
15295     # options.  This is the case for gcc >= 4.6
15296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15297 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15298     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h.  */
15300
15301 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15302 #kickerror
15303 #endif
15304 int
15305 main ()
15306 {
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_compile "$LINENO"; then :
15313   _gcc_silent_wno=yes
15314 else
15315   _gcc_silent_wno=no
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15319 $as_echo "$_gcc_silent_wno" >&6; }
15320
15321     # Note that it is okay to use CFLAGS here because these are just
15322     # warning options and the user should have a chance of overriding
15323     # them.
15324     if test "$USE_MAINTAINER_MODE" = "yes"; then
15325         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15326         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15327         if test x"$_gcc_silent_wno" = xyes ; then
15328           _gcc_wopt=yes
15329         else
15330           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15331 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15332           CFLAGS="-Wno-missing-field-initializers"
15333           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h.  */
15335
15336 int
15337 main ()
15338 {
15339
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 if ac_fn_c_try_compile "$LINENO"; then :
15345   _gcc_wopt=yes
15346 else
15347   _gcc_wopt=no
15348 fi
15349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15351 $as_echo "$_gcc_wopt" >&6; }
15352         fi
15353         if test x"$_gcc_wopt" = xyes ; then
15354           mycflags="$mycflags -W -Wno-sign-compare"
15355           mycflags="$mycflags -Wno-missing-field-initializers"
15356         fi
15357
15358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15359 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15360         CFLAGS="-Wdeclaration-after-statement"
15361         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363
15364 int
15365 main ()
15366 {
15367
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 if ac_fn_c_try_compile "$LINENO"; then :
15373   _gcc_wopt=yes
15374 else
15375   _gcc_wopt=no
15376 fi
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15379 $as_echo "$_gcc_wopt" >&6; }
15380         if test x"$_gcc_wopt" = xyes ; then
15381           mycflags="$mycflags -Wdeclaration-after-statement"
15382         fi
15383     else
15384         mycflags="$mycflags -Wall"
15385     fi
15386
15387     if test x"$_gcc_silent_wno" = xyes ; then
15388       _gcc_psign=yes
15389     else
15390       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15391 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15392       CFLAGS="-Wno-pointer-sign"
15393       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h.  */
15395
15396 int
15397 main ()
15398 {
15399
15400   ;
15401   return 0;
15402 }
15403 _ACEOF
15404 if ac_fn_c_try_compile "$LINENO"; then :
15405   _gcc_psign=yes
15406 else
15407   _gcc_psign=no
15408 fi
15409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15411 $as_echo "$_gcc_psign" >&6; }
15412     fi
15413     if test x"$_gcc_psign" = xyes ; then
15414        mycflags="$mycflags -Wno-pointer-sign"
15415     fi
15416
15417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15418 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15419     CFLAGS="-Wpointer-arith"
15420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h.  */
15422
15423 int
15424 main ()
15425 {
15426
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_compile "$LINENO"; then :
15432   _gcc_psign=yes
15433 else
15434   _gcc_psign=no
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15438 $as_echo "$_gcc_psign" >&6; }
15439     if test x"$_gcc_psign" = xyes ; then
15440        mycflags="$mycflags -Wpointer-arith"
15441     fi
15442
15443     CFLAGS="$mycflags $mycflags_save"
15444     if test "$use_libdns" = yes; then
15445        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
15446        USE_C99_CFLAGS="-std=gnu99"
15447     fi
15448 fi
15449
15450
15451
15452
15453 #
15454 # This is handy for debugging so the compiler doesn't rearrange
15455 # things and eliminate variables.
15456 #
15457 # Check whether --enable-optimization was given.
15458 if test "${enable_optimization+set}" = set; then :
15459   enableval=$enable_optimization; if test $enableval = no ; then
15460                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
15461                    fi
15462 fi
15463
15464
15465 #
15466 # Add user CFLAGS.
15467 #
15468 CFLAGS="$CFLAGS $CFLAGS_orig"
15469
15470 #
15471 # Decide what to build
15472 #
15473
15474 build_scdaemon_extra=""
15475 if test "$build_scdaemon" = "yes"; then
15476   if test $have_libusb = no; then
15477      build_scdaemon_extra="without internal CCID driver"
15478   fi
15479   if test -n "$build_scdaemon_extra"; then
15480      build_scdaemon_extra="(${build_scdaemon_extra})"
15481   fi
15482 fi
15483
15484
15485 #
15486 # Set variables for use by automake makefiles.
15487 #
15488  if test "$build_gpg" = "yes"; then
15489   BUILD_GPG_TRUE=
15490   BUILD_GPG_FALSE='#'
15491 else
15492   BUILD_GPG_TRUE='#'
15493   BUILD_GPG_FALSE=
15494 fi
15495
15496  if test "$build_gpgsm" = "yes"; then
15497   BUILD_GPGSM_TRUE=
15498   BUILD_GPGSM_FALSE='#'
15499 else
15500   BUILD_GPGSM_TRUE='#'
15501   BUILD_GPGSM_FALSE=
15502 fi
15503
15504  if test "$build_agent" = "yes"; then
15505   BUILD_AGENT_TRUE=
15506   BUILD_AGENT_FALSE='#'
15507 else
15508   BUILD_AGENT_TRUE='#'
15509   BUILD_AGENT_FALSE=
15510 fi
15511
15512  if test "$build_scdaemon" = "yes"; then
15513   BUILD_SCDAEMON_TRUE=
15514   BUILD_SCDAEMON_FALSE='#'
15515 else
15516   BUILD_SCDAEMON_TRUE='#'
15517   BUILD_SCDAEMON_FALSE=
15518 fi
15519
15520  if test "$build_g13" = "yes"; then
15521   BUILD_G13_TRUE=
15522   BUILD_G13_FALSE='#'
15523 else
15524   BUILD_G13_TRUE='#'
15525   BUILD_G13_FALSE=
15526 fi
15527
15528  if test "$build_dirmngr" = "yes"; then
15529   BUILD_DIRMNGR_TRUE=
15530   BUILD_DIRMNGR_FALSE='#'
15531 else
15532   BUILD_DIRMNGR_TRUE='#'
15533   BUILD_DIRMNGR_FALSE=
15534 fi
15535
15536  if test "$build_tools" = "yes"; then
15537   BUILD_TOOLS_TRUE=
15538   BUILD_TOOLS_FALSE='#'
15539 else
15540   BUILD_TOOLS_TRUE='#'
15541   BUILD_TOOLS_FALSE=
15542 fi
15543
15544  if test "$build_doc" = "yes"; then
15545   BUILD_DOC_TRUE=
15546   BUILD_DOC_FALSE='#'
15547 else
15548   BUILD_DOC_TRUE='#'
15549   BUILD_DOC_FALSE=
15550 fi
15551
15552  if test "$build_symcryptrun" = "yes"; then
15553   BUILD_SYMCRYPTRUN_TRUE=
15554   BUILD_SYMCRYPTRUN_FALSE='#'
15555 else
15556   BUILD_SYMCRYPTRUN_TRUE='#'
15557   BUILD_SYMCRYPTRUN_FALSE=
15558 fi
15559
15560  if test "$build_gpgtar" = "yes"; then
15561   BUILD_GPGTAR_TRUE=
15562   BUILD_GPGTAR_FALSE='#'
15563 else
15564   BUILD_GPGTAR_TRUE='#'
15565   BUILD_GPGTAR_FALSE=
15566 fi
15567
15568  if test "$build_wks_tools" = "yes"; then
15569   BUILD_WKS_TOOLS_TRUE=
15570   BUILD_WKS_TOOLS_FALSE='#'
15571 else
15572   BUILD_WKS_TOOLS_TRUE='#'
15573   BUILD_WKS_TOOLS_FALSE=
15574 fi
15575
15576
15577  if test "$card_support" = yes; then
15578   ENABLE_CARD_SUPPORT_TRUE=
15579   ENABLE_CARD_SUPPORT_FALSE='#'
15580 else
15581   ENABLE_CARD_SUPPORT_TRUE='#'
15582   ENABLE_CARD_SUPPORT_FALSE=
15583 fi
15584
15585  if test "$use_trust_models" = no; then
15586   NO_TRUST_MODELS_TRUE=
15587   NO_TRUST_MODELS_FALSE='#'
15588 else
15589   NO_TRUST_MODELS_TRUE='#'
15590   NO_TRUST_MODELS_FALSE=
15591 fi
15592
15593  if test "$use_tofu" = yes; then
15594   USE_TOFU_TRUE=
15595   USE_TOFU_FALSE='#'
15596 else
15597   USE_TOFU_TRUE='#'
15598   USE_TOFU_FALSE=
15599 fi
15600
15601
15602 #
15603 # Set some defines for use gpgconf.
15604 #
15605 if test "$build_gpg" = yes ; then
15606
15607 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
15608
15609 fi
15610 if test "$build_gpgsm" = yes ; then
15611
15612 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
15613
15614 fi
15615 if test "$build_agent" = yes ; then
15616
15617 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
15618
15619 fi
15620 if test "$build_scdaemon" = yes ; then
15621
15622 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
15623
15624 fi
15625 if test "$build_dirmngr" = yes ; then
15626
15627 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
15628
15629 fi
15630 if test "$build_g13" = yes ; then
15631
15632 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
15633
15634 fi
15635
15636
15637 #
15638 # Define Name strings
15639 #
15640
15641 cat >>confdefs.h <<_ACEOF
15642 #define GNUPG_NAME "GnuPG"
15643 _ACEOF
15644
15645
15646
15647 cat >>confdefs.h <<_ACEOF
15648 #define GPG_NAME "gpg"
15649 _ACEOF
15650
15651
15652 cat >>confdefs.h <<_ACEOF
15653 #define GPG_DISP_NAME "GnuPG"
15654 _ACEOF
15655
15656
15657
15658 cat >>confdefs.h <<_ACEOF
15659 #define GPGSM_NAME "gpgsm"
15660 _ACEOF
15661
15662
15663 cat >>confdefs.h <<_ACEOF
15664 #define GPGSM_DISP_NAME "GPGSM"
15665 _ACEOF
15666
15667
15668
15669 cat >>confdefs.h <<_ACEOF
15670 #define GPG_AGENT_NAME "gpg-agent"
15671 _ACEOF
15672
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define GPG_AGENT_DISP_NAME "GPG Agent"
15676 _ACEOF
15677
15678
15679
15680 cat >>confdefs.h <<_ACEOF
15681 #define SCDAEMON_NAME "scdaemon"
15682 _ACEOF
15683
15684
15685 cat >>confdefs.h <<_ACEOF
15686 #define SCDAEMON_DISP_NAME "SCDaemon"
15687 _ACEOF
15688
15689
15690
15691 cat >>confdefs.h <<_ACEOF
15692 #define DIRMNGR_NAME "dirmngr"
15693 _ACEOF
15694
15695
15696 cat >>confdefs.h <<_ACEOF
15697 #define DIRMNGR_DISP_NAME "DirMngr"
15698 _ACEOF
15699
15700
15701
15702 cat >>confdefs.h <<_ACEOF
15703 #define G13_NAME "g13"
15704 _ACEOF
15705
15706
15707 cat >>confdefs.h <<_ACEOF
15708 #define G13_DISP_NAME "G13"
15709 _ACEOF
15710
15711
15712
15713 cat >>confdefs.h <<_ACEOF
15714 #define GPGCONF_NAME "gpgconf"
15715 _ACEOF
15716
15717
15718 cat >>confdefs.h <<_ACEOF
15719 #define GPGCONF_DISP_NAME "GPGConf"
15720 _ACEOF
15721
15722
15723
15724 cat >>confdefs.h <<_ACEOF
15725 #define GPGTAR_NAME "gpgtar"
15726 _ACEOF
15727
15728
15729
15730 cat >>confdefs.h <<_ACEOF
15731 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
15732 _ACEOF
15733
15734
15735 cat >>confdefs.h <<_ACEOF
15736 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
15737 _ACEOF
15738
15739
15740 cat >>confdefs.h <<_ACEOF
15741 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
15742 _ACEOF
15743
15744
15745 cat >>confdefs.h <<_ACEOF
15746 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
15747 _ACEOF
15748
15749
15750 cat >>confdefs.h <<_ACEOF
15751 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
15752 _ACEOF
15753
15754
15755 cat >>confdefs.h <<_ACEOF
15756 #define SCDAEMON_SOCK_NAME "S.scdaemon"
15757 _ACEOF
15758
15759
15760 cat >>confdefs.h <<_ACEOF
15761 #define DIRMNGR_SOCK_NAME "S.dirmngr"
15762 _ACEOF
15763
15764
15765 cat >>confdefs.h <<_ACEOF
15766 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
15767 _ACEOF
15768
15769
15770
15771 cat >>confdefs.h <<_ACEOF
15772 #define GPGEXT_GPG "gpg"
15773 _ACEOF
15774
15775
15776 if test "$have_w32_system" = yes; then
15777
15778 cat >>confdefs.h <<_ACEOF
15779 #define GNUPG_REGISTRY_DIR "\\\\Software\\\\GNU\\\\GnuPG"
15780 _ACEOF
15781
15782 fi
15783
15784
15785 #
15786 # Provide information about the build.
15787 #
15788 BUILD_REVISION="ade3246"
15789
15790
15791 cat >>confdefs.h <<_ACEOF
15792 #define BUILD_REVISION "$BUILD_REVISION"
15793 _ACEOF
15794
15795
15796 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
15797 BUILD_VERSION="${BUILD_VERSION}44515"
15798 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
15799
15800
15801
15802 # Check whether --enable-build-timestamp was given.
15803 if test "${enable_build_timestamp+set}" = set; then :
15804   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
15805         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
15806       else
15807         BUILD_TIMESTAMP="$enableval"
15808       fi
15809       BUILD_HOSTNAME="$ac_hostname"
15810 else
15811   BUILD_TIMESTAMP="<none>"
15812       BUILD_HOSTNAME="<anon>"
15813 fi
15814
15815
15816
15817 cat >>confdefs.h <<_ACEOF
15818 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
15819 _ACEOF
15820
15821
15822
15823
15824 #
15825 # Print errors here so that they are visible all
15826 # together and the user can acquire them all together.
15827 #
15828 die=no
15829 if test "$have_gpg_error" = "no"; then
15830    die=yes
15831    { $as_echo "$as_me:${as_lineno-$LINENO}:
15832 ***
15833 *** You need libgpg-error to build this program.
15834 **  This library is for example available at
15835 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
15836 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
15837 ***" >&5
15838 $as_echo "$as_me:
15839 ***
15840 *** You need libgpg-error to build this program.
15841 **  This library is for example available at
15842 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
15843 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
15844 ***" >&6;}
15845 fi
15846 if test "$have_libgcrypt" = "no"; then
15847    die=yes
15848    { $as_echo "$as_me:${as_lineno-$LINENO}:
15849 ***
15850 *** You need libgcrypt to build this program.
15851 **  This library is for example available at
15852 ***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
15853 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
15854 ***" >&5
15855 $as_echo "$as_me:
15856 ***
15857 *** You need libgcrypt to build this program.
15858 **  This library is for example available at
15859 ***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
15860 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
15861 ***" >&6;}
15862 fi
15863 if test "$have_libassuan" = "no"; then
15864    die=yes
15865    { $as_echo "$as_me:${as_lineno-$LINENO}:
15866 ***
15867 *** You need libassuan to build this program.
15868 *** This library is for example available at
15869 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
15870 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
15871 ***" >&5
15872 $as_echo "$as_me:
15873 ***
15874 *** You need libassuan to build this program.
15875 *** This library is for example available at
15876 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
15877 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
15878 ***" >&6;}
15879 fi
15880 if test "$have_ksba" = "no"; then
15881     die=yes
15882     { $as_echo "$as_me:${as_lineno-$LINENO}:
15883 ***
15884 *** You need libksba to build this program.
15885 *** This library is for example available at
15886 ***   ftp://ftp.gnupg.org/gcrypt/libksba/
15887 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
15888 ***" >&5
15889 $as_echo "$as_me:
15890 ***
15891 *** You need libksba to build this program.
15892 *** This library is for example available at
15893 ***   ftp://ftp.gnupg.org/gcrypt/libksba/
15894 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
15895 ***" >&6;}
15896 fi
15897 if test "$gnupg_have_ldap" = yes; then
15898   if test "$have_w32ce_system" = yes; then
15899     { $as_echo "$as_me:${as_lineno-$LINENO}:
15900 *** Note that CeGCC might be broken, a package fixing this is:
15901 ***    http://files.kolab.org/local/windows-ce/
15902 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
15903 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
15904 ***" >&5
15905 $as_echo "$as_me:
15906 *** Note that CeGCC might be broken, a package fixing this is:
15907 ***    http://files.kolab.org/local/windows-ce/
15908 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
15909 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
15910 ***" >&6;}
15911    fi
15912 fi
15913 if test "$have_npth" = "no"; then
15914     die=yes
15915     { $as_echo "$as_me:${as_lineno-$LINENO}:
15916 ***
15917 *** It is now required to build with support for the
15918 *** New Portable Threads Library (nPth). Please install this
15919 *** library first.  The library is for example available at
15920 ***   ftp://ftp.gnupg.org/gcrypt/npth/
15921 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
15922 ***" >&5
15923 $as_echo "$as_me:
15924 ***
15925 *** It is now required to build with support for the
15926 *** New Portable Threads Library (nPth). Please install this
15927 *** library first.  The library is for example available at
15928 ***   ftp://ftp.gnupg.org/gcrypt/npth/
15929 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
15930 ***" >&6;}
15931 fi
15932
15933 if test "$require_iconv" = yes; then
15934   if test "$am_func_iconv" != yes; then
15935     die=yes
15936     { $as_echo "$as_me:${as_lineno-$LINENO}:
15937 ***
15938 *** The system does not provide a working iconv function.  Please
15939 *** install a suitable library; for example GNU Libiconv which is
15940 *** available at:
15941 ***   http://ftp.gnu.org/gnu/libiconv/
15942 ***" >&5
15943 $as_echo "$as_me:
15944 ***
15945 *** The system does not provide a working iconv function.  Please
15946 *** install a suitable library; for example GNU Libiconv which is
15947 *** available at:
15948 ***   http://ftp.gnu.org/gnu/libiconv/
15949 ***" >&6;}
15950   fi
15951 fi
15952
15953 if test "$use_ccid_driver" = yes; then
15954   if test "$have_libusb" != yes; then
15955     die=yes
15956     { $as_echo "$as_me:${as_lineno-$LINENO}:
15957 ***
15958 *** You need libusb to build the internal ccid driver.  Please
15959 *** install a libusb suitable for your system.
15960 ***" >&5
15961 $as_echo "$as_me:
15962 ***
15963 *** You need libusb to build the internal ccid driver.  Please
15964 *** install a libusb suitable for your system.
15965 ***" >&6;}
15966   fi
15967 fi
15968
15969 if test "$die" = "yes"; then
15970     as_fn_error $? "
15971 ***
15972 *** Required libraries not found. Please consult the above messages
15973 *** and install them before running configure again.
15974 ***" "$LINENO" 5
15975 fi
15976
15977
15978
15979 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile g13/Makefile dirmngr/Makefile tools/gpg-zip tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/migrations/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest"
15980
15981
15982
15983 cat >confcache <<\_ACEOF
15984 # This file is a shell script that caches the results of configure
15985 # tests run on this system so they can be shared between configure
15986 # scripts and configure runs, see configure's option --config-cache.
15987 # It is not useful on other systems.  If it contains results you don't
15988 # want to keep, you may remove or edit it.
15989 #
15990 # config.status only pays attention to the cache file if you give it
15991 # the --recheck option to rerun configure.
15992 #
15993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15995 # following values.
15996
15997 _ACEOF
15998
15999 # The following way of writing the cache mishandles newlines in values,
16000 # but we know of no workaround that is simple, portable, and efficient.
16001 # So, we kill variables containing newlines.
16002 # Ultrix sh set writes to stderr and can't be redirected directly,
16003 # and sets the high bit in the cache file unless we assign to the vars.
16004 (
16005   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16006     eval ac_val=\$$ac_var
16007     case $ac_val in #(
16008     *${as_nl}*)
16009       case $ac_var in #(
16010       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16012       esac
16013       case $ac_var in #(
16014       _ | IFS | as_nl) ;; #(
16015       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16016       *) { eval $ac_var=; unset $ac_var;} ;;
16017       esac ;;
16018     esac
16019   done
16020
16021   (set) 2>&1 |
16022     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16023     *${as_nl}ac_space=\ *)
16024       # `set' does not quote correctly, so add quotes: double-quote
16025       # substitution turns \\\\ into \\, and sed turns \\ into \.
16026       sed -n \
16027         "s/'/'\\\\''/g;
16028           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16029       ;; #(
16030     *)
16031       # `set' quotes correctly as required by POSIX, so do not add quotes.
16032       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16033       ;;
16034     esac |
16035     sort
16036 ) |
16037   sed '
16038      /^ac_cv_env_/b end
16039      t clear
16040      :clear
16041      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16042      t end
16043      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16044      :end' >>confcache
16045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16046   if test -w "$cache_file"; then
16047     if test "x$cache_file" != "x/dev/null"; then
16048       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16049 $as_echo "$as_me: updating cache $cache_file" >&6;}
16050       if test ! -f "$cache_file" || test -h "$cache_file"; then
16051         cat confcache >"$cache_file"
16052       else
16053         case $cache_file in #(
16054         */* | ?:*)
16055           mv -f confcache "$cache_file"$$ &&
16056           mv -f "$cache_file"$$ "$cache_file" ;; #(
16057         *)
16058           mv -f confcache "$cache_file" ;;
16059         esac
16060       fi
16061     fi
16062   else
16063     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16064 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16065   fi
16066 fi
16067 rm -f confcache
16068
16069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16070 # Let make expand exec_prefix.
16071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16072
16073 DEFS=-DHAVE_CONFIG_H
16074
16075 ac_libobjs=
16076 ac_ltlibobjs=
16077 U=
16078 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16079   # 1. Remove the extension, and $U if already installed.
16080   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16081   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16082   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16083   #    will be set to the directory where LIBOBJS objects are built.
16084   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16085   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16086 done
16087 LIBOBJS=$ac_libobjs
16088
16089 LTLIBOBJS=$ac_ltlibobjs
16090
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16093 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16094    if test -n "$am_sleep_pid"; then
16095      # Hide warnings about reused PIDs.
16096      wait $am_sleep_pid 2>/dev/null
16097    fi
16098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16099 $as_echo "done" >&6; }
16100  if test -n "$EXEEXT"; then
16101   am__EXEEXT_TRUE=
16102   am__EXEEXT_FALSE='#'
16103 else
16104   am__EXEEXT_TRUE='#'
16105   am__EXEEXT_FALSE=
16106 fi
16107
16108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16109   as_fn_error $? "conditional \"AMDEP\" was never defined.
16110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16111 fi
16112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16113   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16115 fi
16116 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16117   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16119 fi
16120 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16121   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16123 fi
16124 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16125   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16127 fi
16128 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16129   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16131 fi
16132 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16133   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16135 fi
16136 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16137   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16139 fi
16140 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16141   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16143 fi
16144 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16145   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16147 fi
16148 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16149   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16151 fi
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16153 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16154    if test -n "$am_sleep_pid"; then
16155      # Hide warnings about reused PIDs.
16156      wait $am_sleep_pid 2>/dev/null
16157    fi
16158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16159 $as_echo "done" >&6; }
16160 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16161   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16163 fi
16164 if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
16165   as_fn_error $? "conditional \"HAVE_USTAR\" was never defined.
16166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16167 fi
16168 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16169   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16171 fi
16172 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16173   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16175 fi
16176 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16177   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16179 fi
16180 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16181   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16183 fi
16184 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16185   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16187 fi
16188 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16189   as_fn_error $? "conditional \"SQLITE3\" was never defined.
16190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16191 fi
16192 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16193   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16195 fi
16196 if test -z "${USE_LDAPWRAPPER_TRUE}" && test -z "${USE_LDAPWRAPPER_FALSE}"; then
16197   as_fn_error $? "conditional \"USE_LDAPWRAPPER\" was never defined.
16198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16199 fi
16200 if test -z "${DISABLE_REGEX_TRUE}" && test -z "${DISABLE_REGEX_FALSE}"; then
16201   as_fn_error $? "conditional \"DISABLE_REGEX\" was never defined.
16202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16203 fi
16204 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16205   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16207 fi
16208 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16209   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16211 fi
16212 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16213   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16215 fi
16216 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16217   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16219 fi
16220 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16221   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16223 fi
16224 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16225   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16227 fi
16228 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16229   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16231 fi
16232 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16233   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16235 fi
16236 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
16237   as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
16238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16239 fi
16240 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16241   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16243 fi
16244 if test -z "${BUILD_SYMCRYPTRUN_TRUE}" && test -z "${BUILD_SYMCRYPTRUN_FALSE}"; then
16245   as_fn_error $? "conditional \"BUILD_SYMCRYPTRUN\" was never defined.
16246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16247 fi
16248 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16249   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16251 fi
16252 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16253   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16255 fi
16256 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16257   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16259 fi
16260 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16261   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16263 fi
16264 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16265   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16267 fi
16268
16269 : "${CONFIG_STATUS=./config.status}"
16270 ac_write_fail=0
16271 ac_clean_files_save=$ac_clean_files
16272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16275 as_write_fail=0
16276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16277 #! $SHELL
16278 # Generated by $as_me.
16279 # Run this file to recreate the current configuration.
16280 # Compiler output produced by configure, useful for debugging
16281 # configure, is in config.log if it exists.
16282
16283 debug=false
16284 ac_cs_recheck=false
16285 ac_cs_silent=false
16286
16287 SHELL=\${CONFIG_SHELL-$SHELL}
16288 export SHELL
16289 _ASEOF
16290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16291 ## -------------------- ##
16292 ## M4sh Initialization. ##
16293 ## -------------------- ##
16294
16295 # Be more Bourne compatible
16296 DUALCASE=1; export DUALCASE # for MKS sh
16297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16298   emulate sh
16299   NULLCMD=:
16300   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16301   # is contrary to our usage.  Disable this feature.
16302   alias -g '${1+"$@"}'='"$@"'
16303   setopt NO_GLOB_SUBST
16304 else
16305   case `(set -o) 2>/dev/null` in #(
16306   *posix*) :
16307     set -o posix ;; #(
16308   *) :
16309      ;;
16310 esac
16311 fi
16312
16313
16314 as_nl='
16315 '
16316 export as_nl
16317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16321 # Prefer a ksh shell builtin over an external printf program on Solaris,
16322 # but without wasting forks for bash or zsh.
16323 if test -z "$BASH_VERSION$ZSH_VERSION" \
16324     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16325   as_echo='print -r --'
16326   as_echo_n='print -rn --'
16327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16328   as_echo='printf %s\n'
16329   as_echo_n='printf %s'
16330 else
16331   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16332     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16333     as_echo_n='/usr/ucb/echo -n'
16334   else
16335     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16336     as_echo_n_body='eval
16337       arg=$1;
16338       case $arg in #(
16339       *"$as_nl"*)
16340         expr "X$arg" : "X\\(.*\\)$as_nl";
16341         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16342       esac;
16343       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16344     '
16345     export as_echo_n_body
16346     as_echo_n='sh -c $as_echo_n_body as_echo'
16347   fi
16348   export as_echo_body
16349   as_echo='sh -c $as_echo_body as_echo'
16350 fi
16351
16352 # The user is always right.
16353 if test "${PATH_SEPARATOR+set}" != set; then
16354   PATH_SEPARATOR=:
16355   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16356     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16357       PATH_SEPARATOR=';'
16358   }
16359 fi
16360
16361
16362 # IFS
16363 # We need space, tab and new line, in precisely that order.  Quoting is
16364 # there to prevent editors from complaining about space-tab.
16365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16366 # splitting by setting IFS to empty value.)
16367 IFS=" ""        $as_nl"
16368
16369 # Find who we are.  Look in the path if we contain no directory separator.
16370 as_myself=
16371 case $0 in #((
16372   *[\\/]* ) as_myself=$0 ;;
16373   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16375 do
16376   IFS=$as_save_IFS
16377   test -z "$as_dir" && as_dir=.
16378     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16379   done
16380 IFS=$as_save_IFS
16381
16382      ;;
16383 esac
16384 # We did not find ourselves, most probably we were run as `sh COMMAND'
16385 # in which case we are not to be found in the path.
16386 if test "x$as_myself" = x; then
16387   as_myself=$0
16388 fi
16389 if test ! -f "$as_myself"; then
16390   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16391   exit 1
16392 fi
16393
16394 # Unset variables that we do not need and which cause bugs (e.g. in
16395 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16396 # suppresses any "Segmentation fault" message there.  '((' could
16397 # trigger a bug in pdksh 5.2.14.
16398 for as_var in BASH_ENV ENV MAIL MAILPATH
16399 do eval test x\${$as_var+set} = xset \
16400   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16401 done
16402 PS1='$ '
16403 PS2='> '
16404 PS4='+ '
16405
16406 # NLS nuisances.
16407 LC_ALL=C
16408 export LC_ALL
16409 LANGUAGE=C
16410 export LANGUAGE
16411
16412 # CDPATH.
16413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16414
16415
16416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16417 # ----------------------------------------
16418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16420 # script with STATUS, using 1 if that was 0.
16421 as_fn_error ()
16422 {
16423   as_status=$1; test $as_status -eq 0 && as_status=1
16424   if test "$4"; then
16425     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16426     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16427   fi
16428   $as_echo "$as_me: error: $2" >&2
16429   as_fn_exit $as_status
16430 } # as_fn_error
16431
16432
16433 # as_fn_set_status STATUS
16434 # -----------------------
16435 # Set $? to STATUS, without forking.
16436 as_fn_set_status ()
16437 {
16438   return $1
16439 } # as_fn_set_status
16440
16441 # as_fn_exit STATUS
16442 # -----------------
16443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16444 as_fn_exit ()
16445 {
16446   set +e
16447   as_fn_set_status $1
16448   exit $1
16449 } # as_fn_exit
16450
16451 # as_fn_unset VAR
16452 # ---------------
16453 # Portably unset VAR.
16454 as_fn_unset ()
16455 {
16456   { eval $1=; unset $1;}
16457 }
16458 as_unset=as_fn_unset
16459 # as_fn_append VAR VALUE
16460 # ----------------------
16461 # Append the text in VALUE to the end of the definition contained in VAR. Take
16462 # advantage of any shell optimizations that allow amortized linear growth over
16463 # repeated appends, instead of the typical quadratic growth present in naive
16464 # implementations.
16465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16466   eval 'as_fn_append ()
16467   {
16468     eval $1+=\$2
16469   }'
16470 else
16471   as_fn_append ()
16472   {
16473     eval $1=\$$1\$2
16474   }
16475 fi # as_fn_append
16476
16477 # as_fn_arith ARG...
16478 # ------------------
16479 # Perform arithmetic evaluation on the ARGs, and store the result in the
16480 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16481 # must be portable across $(()) and expr.
16482 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16483   eval 'as_fn_arith ()
16484   {
16485     as_val=$(( $* ))
16486   }'
16487 else
16488   as_fn_arith ()
16489   {
16490     as_val=`expr "$@" || test $? -eq 1`
16491   }
16492 fi # as_fn_arith
16493
16494
16495 if expr a : '\(a\)' >/dev/null 2>&1 &&
16496    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16497   as_expr=expr
16498 else
16499   as_expr=false
16500 fi
16501
16502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16503   as_basename=basename
16504 else
16505   as_basename=false
16506 fi
16507
16508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16509   as_dirname=dirname
16510 else
16511   as_dirname=false
16512 fi
16513
16514 as_me=`$as_basename -- "$0" ||
16515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16516          X"$0" : 'X\(//\)$' \| \
16517          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16518 $as_echo X/"$0" |
16519     sed '/^.*\/\([^/][^/]*\)\/*$/{
16520             s//\1/
16521             q
16522           }
16523           /^X\/\(\/\/\)$/{
16524             s//\1/
16525             q
16526           }
16527           /^X\/\(\/\).*/{
16528             s//\1/
16529             q
16530           }
16531           s/.*/./; q'`
16532
16533 # Avoid depending upon Character Ranges.
16534 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16535 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16536 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16537 as_cr_digits='0123456789'
16538 as_cr_alnum=$as_cr_Letters$as_cr_digits
16539
16540 ECHO_C= ECHO_N= ECHO_T=
16541 case `echo -n x` in #(((((
16542 -n*)
16543   case `echo 'xy\c'` in
16544   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16545   xy)  ECHO_C='\c';;
16546   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16547        ECHO_T=' ';;
16548   esac;;
16549 *)
16550   ECHO_N='-n';;
16551 esac
16552
16553 rm -f conf$$ conf$$.exe conf$$.file
16554 if test -d conf$$.dir; then
16555   rm -f conf$$.dir/conf$$.file
16556 else
16557   rm -f conf$$.dir
16558   mkdir conf$$.dir 2>/dev/null
16559 fi
16560 if (echo >conf$$.file) 2>/dev/null; then
16561   if ln -s conf$$.file conf$$ 2>/dev/null; then
16562     as_ln_s='ln -s'
16563     # ... but there are two gotchas:
16564     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16565     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16566     # In both cases, we have to default to `cp -pR'.
16567     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16568       as_ln_s='cp -pR'
16569   elif ln conf$$.file conf$$ 2>/dev/null; then
16570     as_ln_s=ln
16571   else
16572     as_ln_s='cp -pR'
16573   fi
16574 else
16575   as_ln_s='cp -pR'
16576 fi
16577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16578 rmdir conf$$.dir 2>/dev/null
16579
16580
16581 # as_fn_mkdir_p
16582 # -------------
16583 # Create "$as_dir" as a directory, including parents if necessary.
16584 as_fn_mkdir_p ()
16585 {
16586
16587   case $as_dir in #(
16588   -*) as_dir=./$as_dir;;
16589   esac
16590   test -d "$as_dir" || eval $as_mkdir_p || {
16591     as_dirs=
16592     while :; do
16593       case $as_dir in #(
16594       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16595       *) as_qdir=$as_dir;;
16596       esac
16597       as_dirs="'$as_qdir' $as_dirs"
16598       as_dir=`$as_dirname -- "$as_dir" ||
16599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16600          X"$as_dir" : 'X\(//\)[^/]' \| \
16601          X"$as_dir" : 'X\(//\)$' \| \
16602          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16603 $as_echo X"$as_dir" |
16604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16605             s//\1/
16606             q
16607           }
16608           /^X\(\/\/\)[^/].*/{
16609             s//\1/
16610             q
16611           }
16612           /^X\(\/\/\)$/{
16613             s//\1/
16614             q
16615           }
16616           /^X\(\/\).*/{
16617             s//\1/
16618             q
16619           }
16620           s/.*/./; q'`
16621       test -d "$as_dir" && break
16622     done
16623     test -z "$as_dirs" || eval "mkdir $as_dirs"
16624   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16625
16626
16627 } # as_fn_mkdir_p
16628 if mkdir -p . 2>/dev/null; then
16629   as_mkdir_p='mkdir -p "$as_dir"'
16630 else
16631   test -d ./-p && rmdir ./-p
16632   as_mkdir_p=false
16633 fi
16634
16635
16636 # as_fn_executable_p FILE
16637 # -----------------------
16638 # Test if FILE is an executable regular file.
16639 as_fn_executable_p ()
16640 {
16641   test -f "$1" && test -x "$1"
16642 } # as_fn_executable_p
16643 as_test_x='test -x'
16644 as_executable_p=as_fn_executable_p
16645
16646 # Sed expression to map a string onto a valid CPP name.
16647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16648
16649 # Sed expression to map a string onto a valid variable name.
16650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16651
16652
16653 exec 6>&1
16654 ## ----------------------------------- ##
16655 ## Main body of $CONFIG_STATUS script. ##
16656 ## ----------------------------------- ##
16657 _ASEOF
16658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16659
16660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16661 # Save the log message, to keep $0 and so on meaningful, and to
16662 # report actual input values of CONFIG_FILES etc. instead of their
16663 # values after options handling.
16664 ac_log="
16665 This file was extended by gnupg $as_me 2.1.17, which was
16666 generated by GNU Autoconf 2.69.  Invocation command line was
16667
16668   CONFIG_FILES    = $CONFIG_FILES
16669   CONFIG_HEADERS  = $CONFIG_HEADERS
16670   CONFIG_LINKS    = $CONFIG_LINKS
16671   CONFIG_COMMANDS = $CONFIG_COMMANDS
16672   $ $0 $@
16673
16674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16675 "
16676
16677 _ACEOF
16678
16679 case $ac_config_files in *"
16680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16681 esac
16682
16683 case $ac_config_headers in *"
16684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16685 esac
16686
16687
16688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689 # Files that config.status was made for.
16690 config_files="$ac_config_files"
16691 config_headers="$ac_config_headers"
16692 config_commands="$ac_config_commands"
16693
16694 _ACEOF
16695
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16697 ac_cs_usage="\
16698 \`$as_me' instantiates files and other configuration actions
16699 from templates according to the current configuration.  Unless the files
16700 and actions are specified as TAGs, all are instantiated by default.
16701
16702 Usage: $0 [OPTION]... [TAG]...
16703
16704   -h, --help       print this help, then exit
16705   -V, --version    print version number and configuration settings, then exit
16706       --config     print configuration, then exit
16707   -q, --quiet, --silent
16708                    do not print progress messages
16709   -d, --debug      don't remove temporary files
16710       --recheck    update $as_me by reconfiguring in the same conditions
16711       --file=FILE[:TEMPLATE]
16712                    instantiate the configuration file FILE
16713       --header=FILE[:TEMPLATE]
16714                    instantiate the configuration header FILE
16715
16716 Configuration files:
16717 $config_files
16718
16719 Configuration headers:
16720 $config_headers
16721
16722 Configuration commands:
16723 $config_commands
16724
16725 Report bugs to <https://bugs.gnupg.org>."
16726
16727 _ACEOF
16728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16730 ac_cs_version="\\
16731 gnupg config.status 2.1.17
16732 configured by $0, generated by GNU Autoconf 2.69,
16733   with options \\"\$ac_cs_config\\"
16734
16735 Copyright (C) 2012 Free Software Foundation, Inc.
16736 This config.status script is free software; the Free Software Foundation
16737 gives unlimited permission to copy, distribute and modify it."
16738
16739 ac_pwd='$ac_pwd'
16740 srcdir='$srcdir'
16741 INSTALL='$INSTALL'
16742 MKDIR_P='$MKDIR_P'
16743 AWK='$AWK'
16744 test -n "\$AWK" || AWK=awk
16745 _ACEOF
16746
16747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16748 # The default lists apply if the user does not specify any file.
16749 ac_need_defaults=:
16750 while test $# != 0
16751 do
16752   case $1 in
16753   --*=?*)
16754     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16755     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16756     ac_shift=:
16757     ;;
16758   --*=)
16759     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16760     ac_optarg=
16761     ac_shift=:
16762     ;;
16763   *)
16764     ac_option=$1
16765     ac_optarg=$2
16766     ac_shift=shift
16767     ;;
16768   esac
16769
16770   case $ac_option in
16771   # Handling of the options.
16772   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16773     ac_cs_recheck=: ;;
16774   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16775     $as_echo "$ac_cs_version"; exit ;;
16776   --config | --confi | --conf | --con | --co | --c )
16777     $as_echo "$ac_cs_config"; exit ;;
16778   --debug | --debu | --deb | --de | --d | -d )
16779     debug=: ;;
16780   --file | --fil | --fi | --f )
16781     $ac_shift
16782     case $ac_optarg in
16783     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16784     '') as_fn_error $? "missing file argument" ;;
16785     esac
16786     as_fn_append CONFIG_FILES " '$ac_optarg'"
16787     ac_need_defaults=false;;
16788   --header | --heade | --head | --hea )
16789     $ac_shift
16790     case $ac_optarg in
16791     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16792     esac
16793     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16794     ac_need_defaults=false;;
16795   --he | --h)
16796     # Conflict between --help and --header
16797     as_fn_error $? "ambiguous option: \`$1'
16798 Try \`$0 --help' for more information.";;
16799   --help | --hel | -h )
16800     $as_echo "$ac_cs_usage"; exit ;;
16801   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16802   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16803     ac_cs_silent=: ;;
16804
16805   # This is an error.
16806   -*) as_fn_error $? "unrecognized option: \`$1'
16807 Try \`$0 --help' for more information." ;;
16808
16809   *) as_fn_append ac_config_targets " $1"
16810      ac_need_defaults=false ;;
16811
16812   esac
16813   shift
16814 done
16815
16816 ac_configure_extra_args=
16817
16818 if $ac_cs_silent; then
16819   exec 6>/dev/null
16820   ac_configure_extra_args="$ac_configure_extra_args --silent"
16821 fi
16822
16823 _ACEOF
16824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825 if \$ac_cs_recheck; then
16826   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16827   shift
16828   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16829   CONFIG_SHELL='$SHELL'
16830   export CONFIG_SHELL
16831   exec "\$@"
16832 fi
16833
16834 _ACEOF
16835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 exec 5>>config.log
16837 {
16838   echo
16839   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16840 ## Running $as_me. ##
16841 _ASBOX
16842   $as_echo "$ac_log"
16843 } >&5
16844
16845 _ACEOF
16846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16847 #
16848 # INIT-COMMANDS
16849 #
16850 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16851 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16852     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16853     # from automake < 1.5.
16854     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16855     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16856     LINGUAS="${LINGUAS-%UNSET%}"
16857
16858
16859 _ACEOF
16860
16861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16862
16863 # Handling of arguments.
16864 for ac_config_target in $ac_config_targets
16865 do
16866   case $ac_config_target in
16867     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16868     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16869     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16870     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16871     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16872     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16873     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
16874     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
16875     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
16876     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
16877     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
16878     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
16879     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
16880     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
16881     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
16882     "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
16883     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16884     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16885     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16886     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
16887     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
16888     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
16889     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
16890     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
16891     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
16892
16893   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16894   esac
16895 done
16896
16897
16898 # If the user did not use the arguments to specify the items to instantiate,
16899 # then the envvar interface is used.  Set only those that are not.
16900 # We use the long form for the default assignment because of an extremely
16901 # bizarre bug on SunOS 4.1.3.
16902 if $ac_need_defaults; then
16903   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16904   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16905   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16906 fi
16907
16908 # Have a temporary directory for convenience.  Make it in the build tree
16909 # simply because there is no reason against having it here, and in addition,
16910 # creating and moving files from /tmp can sometimes cause problems.
16911 # Hook for its removal unless debugging.
16912 # Note that there is a small window in which the directory will not be cleaned:
16913 # after its creation but before its name has been assigned to `$tmp'.
16914 $debug ||
16915 {
16916   tmp= ac_tmp=
16917   trap 'exit_status=$?
16918   : "${ac_tmp:=$tmp}"
16919   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16920 ' 0
16921   trap 'as_fn_exit 1' 1 2 13 15
16922 }
16923 # Create a (secure) tmp directory for tmp files.
16924
16925 {
16926   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16927   test -d "$tmp"
16928 }  ||
16929 {
16930   tmp=./conf$$-$RANDOM
16931   (umask 077 && mkdir "$tmp")
16932 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16933 ac_tmp=$tmp
16934
16935 # Set up the scripts for CONFIG_FILES section.
16936 # No need to generate them if there are no CONFIG_FILES.
16937 # This happens for instance with `./config.status config.h'.
16938 if test -n "$CONFIG_FILES"; then
16939
16940
16941 ac_cr=`echo X | tr X '\015'`
16942 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16943 # But we know of no other shell where ac_cr would be empty at this
16944 # point, so we can use a bashism as a fallback.
16945 if test "x$ac_cr" = x; then
16946   eval ac_cr=\$\'\\r\'
16947 fi
16948 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16949 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16950   ac_cs_awk_cr='\\r'
16951 else
16952   ac_cs_awk_cr=$ac_cr
16953 fi
16954
16955 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16956 _ACEOF
16957
16958
16959 {
16960   echo "cat >conf$$subs.awk <<_ACEOF" &&
16961   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16962   echo "_ACEOF"
16963 } >conf$$subs.sh ||
16964   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16966 ac_delim='%!_!# '
16967 for ac_last_try in false false false false false :; do
16968   . ./conf$$subs.sh ||
16969     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16970
16971   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16972   if test $ac_delim_n = $ac_delim_num; then
16973     break
16974   elif $ac_last_try; then
16975     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16976   else
16977     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16978   fi
16979 done
16980 rm -f conf$$subs.sh
16981
16982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16983 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16984 _ACEOF
16985 sed -n '
16986 h
16987 s/^/S["/; s/!.*/"]=/
16988 p
16989 g
16990 s/^[^!]*!//
16991 :repl
16992 t repl
16993 s/'"$ac_delim"'$//
16994 t delim
16995 :nl
16996 h
16997 s/\(.\{148\}\)..*/\1/
16998 t more1
16999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17000 p
17001 n
17002 b repl
17003 :more1
17004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17005 p
17006 g
17007 s/.\{148\}//
17008 t nl
17009 :delim
17010 h
17011 s/\(.\{148\}\)..*/\1/
17012 t more2
17013 s/["\\]/\\&/g; s/^/"/; s/$/"/
17014 p
17015 b
17016 :more2
17017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17018 p
17019 g
17020 s/.\{148\}//
17021 t delim
17022 ' <conf$$subs.awk | sed '
17023 /^[^""]/{
17024   N
17025   s/\n//
17026 }
17027 ' >>$CONFIG_STATUS || ac_write_fail=1
17028 rm -f conf$$subs.awk
17029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17030 _ACAWK
17031 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17032   for (key in S) S_is_set[key] = 1
17033   FS = "\a"
17034
17035 }
17036 {
17037   line = $ 0
17038   nfields = split(line, field, "@")
17039   substed = 0
17040   len = length(field[1])
17041   for (i = 2; i < nfields; i++) {
17042     key = field[i]
17043     keylen = length(key)
17044     if (S_is_set[key]) {
17045       value = S[key]
17046       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17047       len += length(value) + length(field[++i])
17048       substed = 1
17049     } else
17050       len += 1 + keylen
17051   }
17052
17053   print line
17054 }
17055
17056 _ACAWK
17057 _ACEOF
17058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17060   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17061 else
17062   cat
17063 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17064   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17065 _ACEOF
17066
17067 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17068 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17069 # trailing colons and then remove the whole line if VPATH becomes empty
17070 # (actually we leave an empty line to preserve line numbers).
17071 if test "x$srcdir" = x.; then
17072   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17073 h
17074 s///
17075 s/^/:/
17076 s/[      ]*$/:/
17077 s/:\$(srcdir):/:/g
17078 s/:\${srcdir}:/:/g
17079 s/:@srcdir@:/:/g
17080 s/^:*//
17081 s/:*$//
17082 x
17083 s/\(=[   ]*\).*/\1/
17084 G
17085 s/\n//
17086 s/^[^=]*=[       ]*$//
17087 }'
17088 fi
17089
17090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17091 fi # test -n "$CONFIG_FILES"
17092
17093 # Set up the scripts for CONFIG_HEADERS section.
17094 # No need to generate them if there are no CONFIG_HEADERS.
17095 # This happens for instance with `./config.status Makefile'.
17096 if test -n "$CONFIG_HEADERS"; then
17097 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17098 BEGIN {
17099 _ACEOF
17100
17101 # Transform confdefs.h into an awk script `defines.awk', embedded as
17102 # here-document in config.status, that substitutes the proper values into
17103 # config.h.in to produce config.h.
17104
17105 # Create a delimiter string that does not exist in confdefs.h, to ease
17106 # handling of long lines.
17107 ac_delim='%!_!# '
17108 for ac_last_try in false false :; do
17109   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17110   if test -z "$ac_tt"; then
17111     break
17112   elif $ac_last_try; then
17113     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17114   else
17115     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17116   fi
17117 done
17118
17119 # For the awk script, D is an array of macro values keyed by name,
17120 # likewise P contains macro parameters if any.  Preserve backslash
17121 # newline sequences.
17122
17123 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17124 sed -n '
17125 s/.\{148\}/&'"$ac_delim"'/g
17126 t rset
17127 :rset
17128 s/^[     ]*#[    ]*define[       ][      ]*/ /
17129 t def
17130 d
17131 :def
17132 s/\\$//
17133 t bsnl
17134 s/["\\]/\\&/g
17135 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17136 D["\1"]=" \3"/p
17137 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17138 d
17139 :bsnl
17140 s/["\\]/\\&/g
17141 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17142 D["\1"]=" \3\\\\\\n"\\/p
17143 t cont
17144 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17145 t cont
17146 d
17147 :cont
17148 n
17149 s/.\{148\}/&'"$ac_delim"'/g
17150 t clear
17151 :clear
17152 s/\\$//
17153 t bsnlc
17154 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17155 d
17156 :bsnlc
17157 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17158 b cont
17159 ' <confdefs.h | sed '
17160 s/'"$ac_delim"'/"\\\
17161 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17162
17163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17164   for (key in D) D_is_set[key] = 1
17165   FS = "\a"
17166 }
17167 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17168   line = \$ 0
17169   split(line, arg, " ")
17170   if (arg[1] == "#") {
17171     defundef = arg[2]
17172     mac1 = arg[3]
17173   } else {
17174     defundef = substr(arg[1], 2)
17175     mac1 = arg[2]
17176   }
17177   split(mac1, mac2, "(") #)
17178   macro = mac2[1]
17179   prefix = substr(line, 1, index(line, defundef) - 1)
17180   if (D_is_set[macro]) {
17181     # Preserve the white space surrounding the "#".
17182     print prefix "define", macro P[macro] D[macro]
17183     next
17184   } else {
17185     # Replace #undef with comments.  This is necessary, for example,
17186     # in the case of _POSIX_SOURCE, which is predefined and required
17187     # on some systems where configure will not decide to define it.
17188     if (defundef == "undef") {
17189       print "/*", prefix defundef, macro, "*/"
17190       next
17191     }
17192   }
17193 }
17194 { print }
17195 _ACAWK
17196 _ACEOF
17197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17198   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17199 fi # test -n "$CONFIG_HEADERS"
17200
17201
17202 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17203 shift
17204 for ac_tag
17205 do
17206   case $ac_tag in
17207   :[FHLC]) ac_mode=$ac_tag; continue;;
17208   esac
17209   case $ac_mode$ac_tag in
17210   :[FHL]*:*);;
17211   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17212   :[FH]-) ac_tag=-:-;;
17213   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17214   esac
17215   ac_save_IFS=$IFS
17216   IFS=:
17217   set x $ac_tag
17218   IFS=$ac_save_IFS
17219   shift
17220   ac_file=$1
17221   shift
17222
17223   case $ac_mode in
17224   :L) ac_source=$1;;
17225   :[FH])
17226     ac_file_inputs=
17227     for ac_f
17228     do
17229       case $ac_f in
17230       -) ac_f="$ac_tmp/stdin";;
17231       *) # Look for the file first in the build tree, then in the source tree
17232          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17233          # because $ac_f cannot contain `:'.
17234          test -f "$ac_f" ||
17235            case $ac_f in
17236            [\\/$]*) false;;
17237            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17238            esac ||
17239            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17240       esac
17241       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17242       as_fn_append ac_file_inputs " '$ac_f'"
17243     done
17244
17245     # Let's still pretend it is `configure' which instantiates (i.e., don't
17246     # use $as_me), people would be surprised to read:
17247     #    /* config.h.  Generated by config.status.  */
17248     configure_input='Generated from '`
17249           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17250         `' by configure.'
17251     if test x"$ac_file" != x-; then
17252       configure_input="$ac_file.  $configure_input"
17253       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17254 $as_echo "$as_me: creating $ac_file" >&6;}
17255     fi
17256     # Neutralize special characters interpreted by sed in replacement strings.
17257     case $configure_input in #(
17258     *\&* | *\|* | *\\* )
17259        ac_sed_conf_input=`$as_echo "$configure_input" |
17260        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17261     *) ac_sed_conf_input=$configure_input;;
17262     esac
17263
17264     case $ac_tag in
17265     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17266       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17267     esac
17268     ;;
17269   esac
17270
17271   ac_dir=`$as_dirname -- "$ac_file" ||
17272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17273          X"$ac_file" : 'X\(//\)[^/]' \| \
17274          X"$ac_file" : 'X\(//\)$' \| \
17275          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17276 $as_echo X"$ac_file" |
17277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17278             s//\1/
17279             q
17280           }
17281           /^X\(\/\/\)[^/].*/{
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   as_dir="$ac_dir"; as_fn_mkdir_p
17295   ac_builddir=.
17296
17297 case "$ac_dir" in
17298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17299 *)
17300   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17301   # A ".." for each directory in $ac_dir_suffix.
17302   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17303   case $ac_top_builddir_sub in
17304   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17305   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17306   esac ;;
17307 esac
17308 ac_abs_top_builddir=$ac_pwd
17309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17310 # for backward compatibility:
17311 ac_top_builddir=$ac_top_build_prefix
17312
17313 case $srcdir in
17314   .)  # We are building in place.
17315     ac_srcdir=.
17316     ac_top_srcdir=$ac_top_builddir_sub
17317     ac_abs_top_srcdir=$ac_pwd ;;
17318   [\\/]* | ?:[\\/]* )  # Absolute name.
17319     ac_srcdir=$srcdir$ac_dir_suffix;
17320     ac_top_srcdir=$srcdir
17321     ac_abs_top_srcdir=$srcdir ;;
17322   *) # Relative name.
17323     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17324     ac_top_srcdir=$ac_top_build_prefix$srcdir
17325     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17326 esac
17327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17328
17329
17330   case $ac_mode in
17331   :F)
17332   #
17333   # CONFIG_FILE
17334   #
17335
17336   case $INSTALL in
17337   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17338   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17339   esac
17340   ac_MKDIR_P=$MKDIR_P
17341   case $MKDIR_P in
17342   [\\/$]* | ?:[\\/]* ) ;;
17343   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17344   esac
17345 _ACEOF
17346
17347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348 # If the template does not know about datarootdir, expand it.
17349 # FIXME: This hack should be removed a few years after 2.60.
17350 ac_datarootdir_hack=; ac_datarootdir_seen=
17351 ac_sed_dataroot='
17352 /datarootdir/ {
17353   p
17354   q
17355 }
17356 /@datadir@/p
17357 /@docdir@/p
17358 /@infodir@/p
17359 /@localedir@/p
17360 /@mandir@/p'
17361 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17362 *datarootdir*) ac_datarootdir_seen=yes;;
17363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17365 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17366 _ACEOF
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368   ac_datarootdir_hack='
17369   s&@datadir@&$datadir&g
17370   s&@docdir@&$docdir&g
17371   s&@infodir@&$infodir&g
17372   s&@localedir@&$localedir&g
17373   s&@mandir@&$mandir&g
17374   s&\\\${datarootdir}&$datarootdir&g' ;;
17375 esac
17376 _ACEOF
17377
17378 # Neutralize VPATH when `$srcdir' = `.'.
17379 # Shell code in configure.ac might set extrasub.
17380 # FIXME: do we really want to maintain this feature?
17381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17382 ac_sed_extra="$ac_vpsub
17383 $extrasub
17384 _ACEOF
17385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17386 :t
17387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17388 s|@configure_input@|$ac_sed_conf_input|;t t
17389 s&@top_builddir@&$ac_top_builddir_sub&;t t
17390 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17391 s&@srcdir@&$ac_srcdir&;t t
17392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17393 s&@top_srcdir@&$ac_top_srcdir&;t t
17394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17395 s&@builddir@&$ac_builddir&;t t
17396 s&@abs_builddir@&$ac_abs_builddir&;t t
17397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17398 s&@INSTALL@&$ac_INSTALL&;t t
17399 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17400 $ac_datarootdir_hack
17401 "
17402 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17403   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17404
17405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17406   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17407   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17408       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17409   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17410 which seems to be undefined.  Please make sure it is defined" >&5
17411 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17412 which seems to be undefined.  Please make sure it is defined" >&2;}
17413
17414   rm -f "$ac_tmp/stdin"
17415   case $ac_file in
17416   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17417   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17418   esac \
17419   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17420  ;;
17421   :H)
17422   #
17423   # CONFIG_HEADER
17424   #
17425   if test x"$ac_file" != x-; then
17426     {
17427       $as_echo "/* $configure_input  */" \
17428       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17429     } >"$ac_tmp/config.h" \
17430       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17431     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17432       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17433 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17434     else
17435       rm -f "$ac_file"
17436       mv "$ac_tmp/config.h" "$ac_file" \
17437         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17438     fi
17439   else
17440     $as_echo "/* $configure_input  */" \
17441       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17442       || as_fn_error $? "could not create -" "$LINENO" 5
17443   fi
17444 # Compute "$ac_file"'s index in $config_headers.
17445 _am_arg="$ac_file"
17446 _am_stamp_count=1
17447 for _am_header in $config_headers :; do
17448   case $_am_header in
17449     $_am_arg | $_am_arg:* )
17450       break ;;
17451     * )
17452       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17453   esac
17454 done
17455 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17456 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17457          X"$_am_arg" : 'X\(//\)[^/]' \| \
17458          X"$_am_arg" : 'X\(//\)$' \| \
17459          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17460 $as_echo X"$_am_arg" |
17461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17462             s//\1/
17463             q
17464           }
17465           /^X\(\/\/\)[^/].*/{
17466             s//\1/
17467             q
17468           }
17469           /^X\(\/\/\)$/{
17470             s//\1/
17471             q
17472           }
17473           /^X\(\/\).*/{
17474             s//\1/
17475             q
17476           }
17477           s/.*/./; q'`/stamp-h$_am_stamp_count
17478  ;;
17479
17480   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17481 $as_echo "$as_me: executing $ac_file commands" >&6;}
17482  ;;
17483   esac
17484
17485
17486   case $ac_file$ac_mode in
17487     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17488   # Older Autoconf quotes --file arguments for eval, but not when files
17489   # are listed without --file.  Let's play safe and only enable the eval
17490   # if we detect the quoting.
17491   case $CONFIG_FILES in
17492   *\'*) eval set x "$CONFIG_FILES" ;;
17493   *)   set x $CONFIG_FILES ;;
17494   esac
17495   shift
17496   for mf
17497   do
17498     # Strip MF so we end up with the name of the file.
17499     mf=`echo "$mf" | sed -e 's/:.*$//'`
17500     # Check whether this is an Automake generated Makefile or not.
17501     # We used to match only the files named 'Makefile.in', but
17502     # some people rename them; so instead we look at the file content.
17503     # Grep'ing the first line is not enough: some people post-process
17504     # each Makefile.in and add a new line on top of each file to say so.
17505     # Grep'ing the whole file is not good either: AIX grep has a line
17506     # limit of 2048, but all sed's we know have understand at least 4000.
17507     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17508       dirpart=`$as_dirname -- "$mf" ||
17509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17510          X"$mf" : 'X\(//\)[^/]' \| \
17511          X"$mf" : 'X\(//\)$' \| \
17512          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17513 $as_echo X"$mf" |
17514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17515             s//\1/
17516             q
17517           }
17518           /^X\(\/\/\)[^/].*/{
17519             s//\1/
17520             q
17521           }
17522           /^X\(\/\/\)$/{
17523             s//\1/
17524             q
17525           }
17526           /^X\(\/\).*/{
17527             s//\1/
17528             q
17529           }
17530           s/.*/./; q'`
17531     else
17532       continue
17533     fi
17534     # Extract the definition of DEPDIR, am__include, and am__quote
17535     # from the Makefile without running 'make'.
17536     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17537     test -z "$DEPDIR" && continue
17538     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17539     test -z "$am__include" && continue
17540     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17541     # Find all dependency output files, they are included files with
17542     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17543     # simplest approach to changing $(DEPDIR) to its actual value in the
17544     # expansion.
17545     for file in `sed -n "
17546       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17547          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17548       # Make sure the directory exists.
17549       test -f "$dirpart/$file" && continue
17550       fdir=`$as_dirname -- "$file" ||
17551 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17552          X"$file" : 'X\(//\)[^/]' \| \
17553          X"$file" : 'X\(//\)$' \| \
17554          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17555 $as_echo X"$file" |
17556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17557             s//\1/
17558             q
17559           }
17560           /^X\(\/\/\)[^/].*/{
17561             s//\1/
17562             q
17563           }
17564           /^X\(\/\/\)$/{
17565             s//\1/
17566             q
17567           }
17568           /^X\(\/\).*/{
17569             s//\1/
17570             q
17571           }
17572           s/.*/./; q'`
17573       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17574       # echo "creating $dirpart/$file"
17575       echo '# dummy' > "$dirpart/$file"
17576     done
17577   done
17578 }
17579  ;;
17580     "po-directories":C)
17581     for ac_file in $CONFIG_FILES; do
17582       # Support "outfile[:infile[:infile...]]"
17583       case "$ac_file" in
17584         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17585       esac
17586       # PO directories have a Makefile.in generated from Makefile.in.in.
17587       case "$ac_file" in */Makefile.in)
17588         # Adjust a relative srcdir.
17589         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17590         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17591         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17592         # In autoconf-2.13 it is called $ac_given_srcdir.
17593         # In autoconf-2.50 it is called $srcdir.
17594         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17595         case "$ac_given_srcdir" in
17596           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17597           /*) top_srcdir="$ac_given_srcdir" ;;
17598           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17599         esac
17600         # Treat a directory as a PO directory if and only if it has a
17601         # POTFILES.in file. This allows packages to have multiple PO
17602         # directories under different names or in different locations.
17603         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17604           rm -f "$ac_dir/POTFILES"
17605           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17606           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17607           POMAKEFILEDEPS="POTFILES.in"
17608           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17609           # on $ac_dir but don't depend on user-specified configuration
17610           # parameters.
17611           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17612             # The LINGUAS file contains the set of available languages.
17613             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17614               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17615             fi
17616             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17617             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17618             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17619             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17620           else
17621             # The set of available languages was given in configure.in.
17622             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17623             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17624           fi
17625           # Compute POFILES
17626           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17627           # Compute UPDATEPOFILES
17628           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17629           # Compute DUMMYPOFILES
17630           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17631           # Compute GMOFILES
17632           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17633           case "$ac_given_srcdir" in
17634             .) srcdirpre= ;;
17635             *) srcdirpre='$(srcdir)/' ;;
17636           esac
17637           POFILES=
17638           UPDATEPOFILES=
17639           DUMMYPOFILES=
17640           GMOFILES=
17641           for lang in $ALL_LINGUAS; do
17642             POFILES="$POFILES $srcdirpre$lang.po"
17643             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17644             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17645             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17646           done
17647           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17648           # environment variable.
17649           INST_LINGUAS=
17650           if test -n "$ALL_LINGUAS"; then
17651             for presentlang in $ALL_LINGUAS; do
17652               useit=no
17653               if test "%UNSET%" != "$LINGUAS"; then
17654                 desiredlanguages="$LINGUAS"
17655               else
17656                 desiredlanguages="$ALL_LINGUAS"
17657               fi
17658               for desiredlang in $desiredlanguages; do
17659                 # Use the presentlang catalog if desiredlang is
17660                 #   a. equal to presentlang, or
17661                 #   b. a variant of presentlang (because in this case,
17662                 #      presentlang can be used as a fallback for messages
17663                 #      which are not translated in the desiredlang catalog).
17664                 case "$desiredlang" in
17665                   "$presentlang"*) useit=yes;;
17666                 esac
17667               done
17668               if test $useit = yes; then
17669                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17670               fi
17671             done
17672           fi
17673           CATALOGS=
17674           if test -n "$INST_LINGUAS"; then
17675             for lang in $INST_LINGUAS; do
17676               CATALOGS="$CATALOGS $lang.gmo"
17677             done
17678           fi
17679           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17680           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"
17681           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17682             if test -f "$f"; then
17683               case "$f" in
17684                 *.orig | *.bak | *~) ;;
17685                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17686               esac
17687             fi
17688           done
17689         fi
17690         ;;
17691       esac
17692     done ;;
17693
17694   esac
17695 done # for ac_tag
17696
17697
17698 as_fn_exit 0
17699 _ACEOF
17700 ac_clean_files=$ac_clean_files_save
17701
17702 test $ac_write_fail = 0 ||
17703   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17704
17705
17706 # configure is writing to config.log, and then calls config.status.
17707 # config.status does its own redirection, appending to config.log.
17708 # Unfortunately, on DOS this fails, as config.log is still kept open
17709 # by configure, so config.status won't be able to write to it; its
17710 # output is simply discarded.  So we exec the FD to /dev/null,
17711 # effectively closing config.log, so it can be properly (re)opened and
17712 # appended to by config.status.  When coming back to configure, we
17713 # need to make the FD available again.
17714 if test "$no_create" != yes; then
17715   ac_cs_success=:
17716   ac_config_status_args=
17717   test "$silent" = yes &&
17718     ac_config_status_args="$ac_config_status_args --quiet"
17719   exec 5>/dev/null
17720   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17721   exec 5>>config.log
17722   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17723   # would make configure fail if this is the last instruction.
17724   $ac_cs_success || as_fn_exit 1
17725 fi
17726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17729 fi
17730
17731
17732
17733 echo "
17734         GnuPG v${VERSION} has been configured as follows:
17735
17736         Revision:  ade3246  (44515)
17737         Platform:  $PRINTABLE_OS_NAME ($host)
17738
17739         OpenPGP:   $build_gpg
17740         S/MIME:    $build_gpgsm
17741         Agent:     $build_agent
17742         Smartcard: $build_scdaemon $build_scdaemon_extra
17743         G13:       $build_g13
17744         Dirmngr:   $build_dirmngr
17745         Gpgtar:    $build_gpgtar
17746         WKS tools: $build_wks_tools
17747
17748         Protect tool:      $show_gnupg_protect_tool_pgm
17749         LDAP wrapper:      $show_gnupg_dirmngr_ldap_pgm
17750         Default agent:     $show_gnupg_agent_pgm
17751         Default pinentry:  $show_gnupg_pinentry_pgm
17752         Default scdaemon:  $show_gnupg_scdaemon_pgm
17753         Default dirmngr:   $show_gnupg_dirmngr_pgm
17754
17755         Dirmngr auto start:  $dirmngr_auto_start
17756         Readline support:    $gnupg_cv_have_readline
17757         LDAP support:        $gnupg_have_ldap
17758         TLS support:         $use_tls_library
17759         TOFU support:        $use_tofu
17760         Tor support:         $show_tor_support
17761 "
17762 if test x"$use_regex" != xyes ; then
17763 echo "
17764         Warning: No regular expression support available.
17765                  OpenPGP trust signatures won't work.
17766                  gpg-check-pattern will not be built.
17767 "
17768 fi
17769 if test "x${gpg_config_script_warn}" != x; then
17770 cat <<G10EOF
17771         Warning: Mismatches between the target platform and the
17772                  to be used libraries have been detected for:
17773                   ${gpg_config_script_warn}
17774                  Please check above for more warning messages.
17775
17776 G10EOF
17777 fi