1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pinentry 1.1.1.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='pinentry'
582PACKAGE_TARNAME='pinentry'
583PACKAGE_VERSION='1.1.1'
584PACKAGE_STRING='pinentry 1.1.1'
585PACKAGE_BUGREPORT='https://bugs.gnupg.org'
586PACKAGE_URL=''
587
588ac_unique_file="pinentry/pinentry.h"
589# Factoring default headers for most tests.
590ac_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
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629BUILD_DOC_FALSE
630BUILD_DOC_TRUE
631PINENTRY_DEFAULT
632BUILD_PINENTRY_FLTK_FALSE
633BUILD_PINENTRY_FLTK_TRUE
634FLTKLIBS
635FLTKCXXFLAGS
636FLTKCFLAGS
637FLTK_CONFIG
638BUILD_PINENTRY_W32_FALSE
639BUILD_PINENTRY_W32_TRUE
640BUILD_PINENTRY_TQT_FALSE
641BUILD_PINENTRY_TQT_TRUE
642TQT_MOC
643PINENTRY_TQT_LIBS
644PINENTRY_TQT_CFLAGS
645BUILD_PINENTRY_QT_FALSE
646BUILD_PINENTRY_QT_TRUE
647PINENTRY_QT_LDFLAGS
648QTCHOOSER
649MOC2
650MOC
651PINENTRY_QT_REQUIRE_CPP11_LIBS
652PINENTRY_QT_REQUIRE_CPP11_CFLAGS
653PINENTRY_QT_LIBS
654PINENTRY_QT_CFLAGS
655BUILD_WITH_LIBSECRET_FALSE
656BUILD_WITH_LIBSECRET_TRUE
657LIBSECRET_LIBS
658LIBSECRET_CFLAGS
659BUILD_PINENTRY_GNOME_3_FALSE
660BUILD_PINENTRY_GNOME_3_TRUE
661GNOME3_LIBS
662GNOME3_CFLAGS
663BUILD_PINENTRY_GTK_2_FALSE
664BUILD_PINENTRY_GTK_2_TRUE
665GTK2_LIBS
666GTK2_CFLAGS
667BUILD_PINENTRY_EFL_FALSE
668BUILD_PINENTRY_EFL_TRUE
669EFL_LIBS
670EFL_CFLAGS
671INSIDE_EMACS_FALSE
672INSIDE_EMACS_TRUE
673BUILD_PINENTRY_EMACS_FALSE
674BUILD_PINENTRY_EMACS_TRUE
675BUILD_LIBPINENTRY_EMACS_FALSE
676BUILD_LIBPINENTRY_EMACS_TRUE
677LTLIBICONV
678LIBICONV
679BUILD_PINENTRY_TTY_FALSE
680BUILD_PINENTRY_TTY_TRUE
681FALLBACK_CURSES_FALSE
682FALLBACK_CURSES_TRUE
683BUILD_PINENTRY_CURSES_FALSE
684BUILD_PINENTRY_CURSES_TRUE
685BUILD_LIBPINENTRY_CURSES_FALSE
686BUILD_LIBPINENTRY_CURSES_TRUE
687LIBCURSES
688LIBTERMCAP
689LIBNCURSES
690NCURSES_INCLUDE
691NCURSES_LIBS
692NCURSES_CFLAGS
693LIBCAP
694SETCAP
695LIBASSUAN_LIBS
696LIBASSUAN_CFLAGS
697LIBASSUAN_CONFIG
698GPG_ERROR_MT_LIBS
699GPG_ERROR_MT_CFLAGS
700GPG_ERROR_LIBS
701GPG_ERROR_CFLAGS
702GPGRT_CONFIG
703GPG_ERROR_CONFIG
704COMMON_LIBS
705COMMON_CFLAGS
706HAVE_W32CE_SYSTEM_FALSE
707HAVE_W32CE_SYSTEM_TRUE
708HAVE_W32_SYSTEM_FALSE
709HAVE_W32_SYSTEM_TRUE
710HAVE_DOSISH_SYSTEM_FALSE
711HAVE_DOSISH_SYSTEM_TRUE
712GITLOG_TO_CHANGELOG
713WINDRES
714PKG_CONFIG
715LN_S
716am__fastdepCXX_FALSE
717am__fastdepCXX_TRUE
718CXXDEPMODE
719ac_ct_CXX
720CXXFLAGS
721CXX
722RANLIB
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731MAINT
732MAINTAINER_MODE_FALSE
733MAINTAINER_MODE_TRUE
734EGREP
735GREP
736CPP
737am__fastdepCC_FALSE
738am__fastdepCC_TRUE
739CCDEPMODE
740am__nodep
741AMDEPBACKSLASH
742AMDEP_FALSE
743AMDEP_TRUE
744am__include
745DEPDIR
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
753AM_BACKSLASH
754AM_DEFAULT_VERBOSITY
755AM_DEFAULT_V
756AM_V
757am__untar
758am__tar
759AMTAR
760am__leading_dot
761SET_MAKE
762AWK
763mkdir_p
764MKDIR_P
765INSTALL_STRIP_PROGRAM
766STRIP
767install_sh
768MAKEINFO
769AUTOHEADER
770AUTOMAKE
771AUTOCONF
772ACLOCAL
773VERSION
774PACKAGE
775CYGPATH_W
776am__isrc
777INSTALL_DATA
778INSTALL_SCRIPT
779INSTALL_PROGRAM
780target_alias
781host_alias
782build_alias
783LIBS
784ECHO_T
785ECHO_N
786ECHO_C
787DEFS
788mandir
789localedir
790libdir
791psdir
792pdfdir
793dvidir
794htmldir
795infodir
796docdir
797oldincludedir
798includedir
799localstatedir
800sharedstatedir
801sysconfdir
802datadir
803datarootdir
804libexecdir
805sbindir
806bindir
807program_transform_name
808prefix
809exec_prefix
810PACKAGE_URL
811PACKAGE_BUGREPORT
812PACKAGE_STRING
813PACKAGE_VERSION
814PACKAGE_TARNAME
815PACKAGE_NAME
816PATH_SEPARATOR
817SHELL
818am__quote'
819ac_subst_files=''
820ac_user_opts='
821enable_option_checking
822enable_silent_rules
823enable_dependency_tracking
824enable_maintainer_mode
825with_libgpg_error_prefix
826with_gpg_error_prefix
827with_libassuan_prefix
828with_libcap
829enable_pinentry_curses
830enable_fallback_curses
831enable_ncurses
832with_ncurses_include_dir
833enable_pinentry_tty
834with_gnu_ld
835enable_rpath
836with_libiconv_prefix
837enable_pinentry_emacs
838enable_inside_emacs
839enable_pinentry_efl
840enable_pinentry_gtk2
841enable_pinentry_gnome3
842enable_libsecret
843enable_pinentry_qt
844enable_pinentry_qt5
845enable_pinentry_tqt
846enable_pinentry_fltk
847enable_doc
848'
849      ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
858CXX
859CXXFLAGS
860CCC
861PKG_CONFIG
862NCURSES_CFLAGS
863NCURSES_LIBS
864GTK2_CFLAGS
865GTK2_LIBS
866GNOME3_CFLAGS
867GNOME3_LIBS
868LIBSECRET_CFLAGS
869LIBSECRET_LIBS
870PINENTRY_QT_CFLAGS
871PINENTRY_QT_LIBS
872PINENTRY_QT_REQUIRE_CPP11_CFLAGS
873PINENTRY_QT_REQUIRE_CPP11_LIBS
874PINENTRY_TQT_CFLAGS
875PINENTRY_TQT_LIBS'
876
877
878# Initialize some variables set by options.
879ac_init_help=
880ac_init_version=false
881ac_unrecognized_opts=
882ac_unrecognized_sep=
883# The variables have the same names as the options, with
884# dashes changed to underlines.
885cache_file=/dev/null
886exec_prefix=NONE
887no_create=
888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
896verbose=
897x_includes=NONE
898x_libraries=NONE
899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
905# (The list follows the same order as the GNU Coding Standards.)
906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
914includedir='${prefix}/include'
915oldincludedir='/usr/include'
916docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
925
926ac_prev=
927ac_dashdash=
928for ac_option
929do
930  # If the previous option needs an argument, assign it.
931  if test -n "$ac_prev"; then
932    eval $ac_prev=\$ac_option
933    ac_prev=
934    continue
935  fi
936
937  case $ac_option in
938  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939  *=)   ac_optarg= ;;
940  *)    ac_optarg=yes ;;
941  esac
942
943  # Accept the important Cygnus configure options, so we can diagnose typos.
944
945  case $ac_dashdash$ac_option in
946  --)
947    ac_dashdash=yes ;;
948
949  -bindir | --bindir | --bindi | --bind | --bin | --bi)
950    ac_prev=bindir ;;
951  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952    bindir=$ac_optarg ;;
953
954  -build | --build | --buil | --bui | --bu)
955    ac_prev=build_alias ;;
956  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957    build_alias=$ac_optarg ;;
958
959  -cache-file | --cache-file | --cache-fil | --cache-fi \
960  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961    ac_prev=cache_file ;;
962  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964    cache_file=$ac_optarg ;;
965
966  --config-cache | -C)
967    cache_file=config.cache ;;
968
969  -datadir | --datadir | --datadi | --datad)
970    ac_prev=datadir ;;
971  -datadir=* | --datadir=* | --datadi=* | --datad=*)
972    datadir=$ac_optarg ;;
973
974  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975  | --dataroo | --dataro | --datar)
976    ac_prev=datarootdir ;;
977  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979    datarootdir=$ac_optarg ;;
980
981  -disable-* | --disable-*)
982    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983    # Reject names that are not valid shell variable names.
984    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985      as_fn_error $? "invalid feature name: $ac_useropt"
986    ac_useropt_orig=$ac_useropt
987    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988    case $ac_user_opts in
989      *"
990"enable_$ac_useropt"
991"*) ;;
992      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993	 ac_unrecognized_sep=', ';;
994    esac
995    eval enable_$ac_useropt=no ;;
996
997  -docdir | --docdir | --docdi | --doc | --do)
998    ac_prev=docdir ;;
999  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000    docdir=$ac_optarg ;;
1001
1002  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003    ac_prev=dvidir ;;
1004  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005    dvidir=$ac_optarg ;;
1006
1007  -enable-* | --enable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      as_fn_error $? "invalid feature name: $ac_useropt"
1012    ac_useropt_orig=$ac_useropt
1013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014    case $ac_user_opts in
1015      *"
1016"enable_$ac_useropt"
1017"*) ;;
1018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019	 ac_unrecognized_sep=', ';;
1020    esac
1021    eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error $? "invalid package name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"with_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239	 ac_unrecognized_sep=', ';;
1240    esac
1241    eval with_$ac_useropt=no ;;
1242
1243  --x)
1244    # Obsolete; use --with-x.
1245    with_x=yes ;;
1246
1247  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248  | --x-incl | --x-inc | --x-in | --x-i)
1249    ac_prev=x_includes ;;
1250  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252    x_includes=$ac_optarg ;;
1253
1254  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256    ac_prev=x_libraries ;;
1257  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259    x_libraries=$ac_optarg ;;
1260
1261  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262Try \`$0 --help' for more information"
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    case $ac_envvar in #(
1269      '' | [0-9]* | *[!_$as_cr_alnum]* )
1270      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271    esac
1272    eval $ac_envvar=\$ac_optarg
1273    export $ac_envvar ;;
1274
1275  *)
1276    # FIXME: should be removed in autoconf 3.0.
1277    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281    ;;
1282
1283  esac
1284done
1285
1286if test -n "$ac_prev"; then
1287  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288  as_fn_error $? "missing argument to $ac_option"
1289fi
1290
1291if test -n "$ac_unrecognized_opts"; then
1292  case $enable_option_checking in
1293    no) ;;
1294    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296  esac
1297fi
1298
1299# Check all directory arguments for consistency.
1300for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301		datadir sysconfdir sharedstatedir localstatedir includedir \
1302		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303		libdir localedir mandir
1304do
1305  eval ac_val=\$$ac_var
1306  # Remove trailing slashes.
1307  case $ac_val in
1308    */ )
1309      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310      eval $ac_var=\$ac_val;;
1311  esac
1312  # Be sure to have absolute directory names.
1313  case $ac_val in
1314    [\\/$]* | ?:[\\/]* )  continue;;
1315    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316  esac
1317  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329  if test "x$build_alias" = x; then
1330    cross_compiling=maybe
1331  elif test "x$build_alias" != "x$host_alias"; then
1332    cross_compiling=yes
1333  fi
1334fi
1335
1336ac_tool_prefix=
1337test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339test "$silent" = yes && exec 6>/dev/null
1340
1341
1342ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343ac_ls_di=`ls -di .` &&
1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345  as_fn_error $? "working directory cannot be determined"
1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347  as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350# Find the source files, if location was not specified.
1351if test -z "$srcdir"; then
1352  ac_srcdir_defaulted=yes
1353  # Try the directory containing this script, then the parent directory.
1354  ac_confdir=`$as_dirname -- "$as_myself" ||
1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356	 X"$as_myself" : 'X\(//\)[^/]' \| \
1357	 X"$as_myself" : 'X\(//\)$' \| \
1358	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359$as_echo X"$as_myself" |
1360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\/\)[^/].*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)$/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\).*/{
1373	    s//\1/
1374	    q
1375	  }
1376	  s/.*/./; q'`
1377  srcdir=$ac_confdir
1378  if test ! -r "$srcdir/$ac_unique_file"; then
1379    srcdir=..
1380  fi
1381else
1382  ac_srcdir_defaulted=no
1383fi
1384if test ! -r "$srcdir/$ac_unique_file"; then
1385  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387fi
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
1390	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391	pwd)`
1392# When building in place, set srcdir=.
1393if test "$ac_abs_confdir" = "$ac_pwd"; then
1394  srcdir=.
1395fi
1396# Remove unnecessary trailing slashes from srcdir.
1397# Double slashes in file names in object file debugging info
1398# mess up M-x gdb in Emacs.
1399case $srcdir in
1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401esac
1402for ac_var in $ac_precious_vars; do
1403  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404  eval ac_env_${ac_var}_value=\$${ac_var}
1405  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407done
1408
1409#
1410# Report the --help message.
1411#
1412if test "$ac_init_help" = "long"; then
1413  # Omit some internal or obsolete options to make the list less imposing.
1414  # This message is too long to be a string in the A/UX 3.1 sh.
1415  cat <<_ACEOF
1416\`configure' configures pinentry 1.1.1 to adapt to many kinds of systems.
1417
1418Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423Defaults for the options are specified in brackets.
1424
1425Configuration:
1426  -h, --help              display this help and exit
1427      --help=short        display options specific to this package
1428      --help=recursive    display the short help of all the included packages
1429  -V, --version           display version information and exit
1430  -q, --quiet, --silent   do not print \`checking ...' messages
1431      --cache-file=FILE   cache test results in FILE [disabled]
1432  -C, --config-cache      alias for \`--cache-file=config.cache'
1433  -n, --no-create         do not create output files
1434      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436Installation directories:
1437  --prefix=PREFIX         install architecture-independent files in PREFIX
1438                          [$ac_default_prefix]
1439  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                          [PREFIX]
1441
1442By default, \`make install' will install all the files in
1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445for instance \`--prefix=\$HOME'.
1446
1447For better control, use the options below.
1448
1449Fine tuning of the installation directories:
1450  --bindir=DIR            user executables [EPREFIX/bin]
1451  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452  --libexecdir=DIR        program executables [EPREFIX/libexec]
1453  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456  --libdir=DIR            object code libraries [EPREFIX/lib]
1457  --includedir=DIR        C header files [PREFIX/include]
1458  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461  --infodir=DIR           info documentation [DATAROOTDIR/info]
1462  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463  --mandir=DIR            man documentation [DATAROOTDIR/man]
1464  --docdir=DIR            documentation root [DATAROOTDIR/doc/pinentry]
1465  --htmldir=DIR           html documentation [DOCDIR]
1466  --dvidir=DIR            dvi documentation [DOCDIR]
1467  --pdfdir=DIR            pdf documentation [DOCDIR]
1468  --psdir=DIR             ps documentation [DOCDIR]
1469_ACEOF
1470
1471  cat <<\_ACEOF
1472
1473Program names:
1474  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of pinentry 1.1.1:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-silent-rules   less verbose build output (undo: "make V=1")
1495  --disable-silent-rules  verbose build output (undo: "make V=0")
1496  --enable-dependency-tracking
1497                          do not reject slow dependency extractors
1498  --disable-dependency-tracking
1499                          speeds up one-time build
1500  --enable-maintainer-mode
1501                          enable make rules and dependencies not useful (and
1502                          sometimes confusing) to the casual installer
1503  --enable-pinentry-curses
1504                          build curses pinentry
1505  --enable-fallback-curses
1506                          include curses fallback
1507  --disable-ncurses       don't prefer -lncurses over -lcurses
1508  --enable-pinentry-tty   build tty pinentry
1509  --disable-rpath         do not hardcode runtime library paths
1510  --enable-pinentry-emacs build emacs pinentry
1511  --enable-inside-emacs   include emacs hack
1512  --enable-pinentry-efl   build EFL pinentry
1513  --enable-pinentry-gtk2  build GTK+-2 pinentry
1514  --enable-pinentry-gnome3
1515                          build GNOME 3 pinentry
1516  --enable-libsecret      optionally cache passphrases using libsecret
1517  --enable-pinentry-qt    build qt pinentry
1518  --disable-pinentry-qt5  Don't use qt5 even if it is available.
1519  --enable-pinentry-tqt   build tqt pinentry
1520  --enable-pinentry-fltk  build FLTK 1.3 pinentry
1521  --disable-doc           do not build the documentation
1522
1523Optional Packages:
1524  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526  --with-libgpg-error-prefix=PFX
1527                          prefix where GPG Error is installed (optional)
1528
1529  --with-libassuan-prefix=PFX
1530                          prefix where LIBASSUAN is installed (optional)
1531  --without-libcap        Disable support for capabilities library
1532  --with-ncurses-include-dir=DIR
1533                          Set directory containing the include files for
1534                          use with -lncurses, when it isn't installed as
1535                          the default curses library.  If DIR is "none",
1536                          then no special ncurses include files are used.
1537  --without-ncurses-include-dir
1538                          Equivalent to --with-ncurses-include-dir=none
1539  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1540  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1541  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1542
1543Some influential environment variables:
1544  CC          C compiler command
1545  CFLAGS      C compiler flags
1546  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1547              nonstandard directory <lib dir>
1548  LIBS        libraries to pass to the linker, e.g. -l<library>
1549  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550              you have headers in a nonstandard directory <include dir>
1551  CPP         C preprocessor
1552  CXX         C++ compiler command
1553  CXXFLAGS    C++ compiler flags
1554  PKG_CONFIG  path to pkg-config utility
1555  NCURSES_CFLAGS
1556              C compiler flags for NCURSES, overriding pkg-config
1557  NCURSES_LIBS
1558              linker flags for NCURSES, overriding pkg-config
1559  GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1560  GTK2_LIBS   linker flags for GTK2, overriding pkg-config
1561  GNOME3_CFLAGS
1562              C compiler flags for GNOME3, overriding pkg-config
1563  GNOME3_LIBS linker flags for GNOME3, overriding pkg-config
1564  LIBSECRET_CFLAGS
1565              C compiler flags for LIBSECRET, overriding pkg-config
1566  LIBSECRET_LIBS
1567              linker flags for LIBSECRET, overriding pkg-config
1568  PINENTRY_QT_CFLAGS
1569              C compiler flags for PINENTRY_QT, overriding pkg-config
1570  PINENTRY_QT_LIBS
1571              linker flags for PINENTRY_QT, overriding pkg-config
1572  PINENTRY_QT_REQUIRE_CPP11_CFLAGS
1573              C compiler flags for PINENTRY_QT_REQUIRE_CPP11, overriding
1574              pkg-config
1575  PINENTRY_QT_REQUIRE_CPP11_LIBS
1576              linker flags for PINENTRY_QT_REQUIRE_CPP11, overriding
1577              pkg-config
1578  PINENTRY_TQT_CFLAGS
1579              C compiler flags for PINENTRY_TQT, overriding pkg-config
1580  PINENTRY_TQT_LIBS
1581              linker flags for PINENTRY_TQT, overriding pkg-config
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586Report bugs to <https://bugs.gnupg.org>.
1587_ACEOF
1588ac_status=$?
1589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592  # If there are subdirs, report their specific --help.
1593  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594    test -d "$ac_dir" ||
1595      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596      continue
1597    ac_builddir=.
1598
1599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
1602  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603  # A ".." for each directory in $ac_dir_suffix.
1604  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605  case $ac_top_builddir_sub in
1606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608  esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
1614
1615case $srcdir in
1616  .)  # We are building in place.
1617    ac_srcdir=.
1618    ac_top_srcdir=$ac_top_builddir_sub
1619    ac_abs_top_srcdir=$ac_pwd ;;
1620  [\\/]* | ?:[\\/]* )  # Absolute name.
1621    ac_srcdir=$srcdir$ac_dir_suffix;
1622    ac_top_srcdir=$srcdir
1623    ac_abs_top_srcdir=$srcdir ;;
1624  *) # Relative name.
1625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626    ac_top_srcdir=$ac_top_build_prefix$srcdir
1627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628esac
1629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631    cd "$ac_dir" || { ac_status=$?; continue; }
1632    # Check for guested configure.
1633    if test -f "$ac_srcdir/configure.gnu"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636    elif test -f "$ac_srcdir/configure"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure" --help=recursive
1639    else
1640      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641    fi || ac_status=$?
1642    cd "$ac_pwd" || { ac_status=$?; break; }
1643  done
1644fi
1645
1646test -n "$ac_init_help" && exit $ac_status
1647if $ac_init_version; then
1648  cat <<\_ACEOF
1649pinentry configure 1.1.1
1650generated by GNU Autoconf 2.69
1651
1652Copyright (C) 2012 Free Software Foundation, Inc.
1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655_ACEOF
1656  exit
1657fi
1658
1659## ------------------------ ##
1660## Autoconf initialization. ##
1661## ------------------------ ##
1662
1663# ac_fn_c_try_compile LINENO
1664# --------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  rm -f conftest.$ac_objext
1670  if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_compile") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } && {
1686	 test -z "$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       } && test -s conftest.$ac_objext; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_compile
1700
1701# ac_fn_c_try_cpp LINENO
1702# ----------------------
1703# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_cpp ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  if { { ac_try="$ac_cpp conftest.$ac_ext"
1708case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715  ac_status=$?
1716  if test -s conftest.err; then
1717    grep -v '^ *+' conftest.err >conftest.er1
1718    cat conftest.er1 >&5
1719    mv -f conftest.er1 conftest.err
1720  fi
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; } > conftest.i && {
1723	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724	 test ! -s conftest.err
1725       }; then :
1726  ac_retval=0
1727else
1728  $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731    ac_retval=1
1732fi
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_cpp
1737
1738# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739# -------------------------------------------------------
1740# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741# the include files in INCLUDES and setting the cache variable VAR
1742# accordingly.
1743ac_fn_c_check_header_mongrel ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if eval \${$3+:} false; then :
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755else
1756  # Is the header compilable?
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758$as_echo_n "checking $2 usability... " >&6; }
1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765  ac_header_compiler=yes
1766else
1767  ac_header_compiler=no
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771$as_echo "$ac_header_compiler" >&6; }
1772
1773# Is the header present?
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775$as_echo_n "checking $2 presence... " >&6; }
1776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_cpp "$LINENO"; then :
1781  ac_header_preproc=yes
1782else
1783  ac_header_preproc=no
1784fi
1785rm -f conftest.err conftest.i conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787$as_echo "$ac_header_preproc" >&6; }
1788
1789# So?  What about this header?
1790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791  yes:no: )
1792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796    ;;
1797  no:yes:* )
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1801$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1805$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808( $as_echo "## ------------------------------------- ##
1809## Report this to https://bugs.gnupg.org ##
1810## ------------------------------------- ##"
1811     ) | sed "s/^/$as_me: WARNING:     /" >&2
1812    ;;
1813esac
1814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if eval \${$3+:} false; then :
1817  $as_echo_n "(cached) " >&6
1818else
1819  eval "$3=\$ac_header_compiler"
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824fi
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827} # ac_fn_c_check_header_mongrel
1828
1829# ac_fn_c_try_run LINENO
1830# ----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832# that executables *can* be run.
1833ac_fn_c_try_run ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_link") 2>&5
1844  ac_status=$?
1845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847  { { case "(($ac_try" in
1848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849  *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853  (eval "$ac_try") 2>&5
1854  ac_status=$?
1855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856  test $ac_status = 0; }; }; then :
1857  ac_retval=0
1858else
1859  $as_echo "$as_me: program exited with status $ac_status" >&5
1860       $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863       ac_retval=$ac_status
1864fi
1865  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867  as_fn_set_status $ac_retval
1868
1869} # ac_fn_c_try_run
1870
1871# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1872# -------------------------------------------------------
1873# Tests whether HEADER exists and can be compiled using the include files in
1874# INCLUDES, setting the cache variable VAR accordingly.
1875ac_fn_c_check_header_compile ()
1876{
1877  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
1880if eval \${$3+:} false; then :
1881  $as_echo_n "(cached) " >&6
1882else
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885$4
1886#include <$2>
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889  eval "$3=yes"
1890else
1891  eval "$3=no"
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_header_compile
1901
1902# ac_fn_cxx_try_compile LINENO
1903# ----------------------------
1904# Try to compile conftest.$ac_ext, and return whether this succeeded.
1905ac_fn_cxx_try_compile ()
1906{
1907  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908  rm -f conftest.$ac_objext
1909  if { { ac_try="$ac_compile"
1910case "(($ac_try" in
1911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912  *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916  (eval "$ac_compile") 2>conftest.err
1917  ac_status=$?
1918  if test -s conftest.err; then
1919    grep -v '^ *+' conftest.err >conftest.er1
1920    cat conftest.er1 >&5
1921    mv -f conftest.er1 conftest.err
1922  fi
1923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924  test $ac_status = 0; } && {
1925	 test -z "$ac_cxx_werror_flag" ||
1926	 test ! -s conftest.err
1927       } && test -s conftest.$ac_objext; then :
1928  ac_retval=0
1929else
1930  $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933	ac_retval=1
1934fi
1935  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936  as_fn_set_status $ac_retval
1937
1938} # ac_fn_cxx_try_compile
1939
1940# ac_fn_c_try_link LINENO
1941# -----------------------
1942# Try to link conftest.$ac_ext, and return whether this succeeded.
1943ac_fn_c_try_link ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  rm -f conftest.$ac_objext conftest$ac_exeext
1947  if { { ac_try="$ac_link"
1948case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954  (eval "$ac_link") 2>conftest.err
1955  ac_status=$?
1956  if test -s conftest.err; then
1957    grep -v '^ *+' conftest.err >conftest.er1
1958    cat conftest.er1 >&5
1959    mv -f conftest.er1 conftest.err
1960  fi
1961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962  test $ac_status = 0; } && {
1963	 test -z "$ac_c_werror_flag" ||
1964	 test ! -s conftest.err
1965       } && test -s conftest$ac_exeext && {
1966	 test "$cross_compiling" = yes ||
1967	 test -x conftest$ac_exeext
1968       }; then :
1969  ac_retval=0
1970else
1971  $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974	ac_retval=1
1975fi
1976  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978  # interfere with the next link command; also delete a directory that is
1979  # left behind by Apple's compiler.  We do this before executing the actions.
1980  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_c_try_link
1985
1986# ac_fn_c_check_func LINENO FUNC VAR
1987# ----------------------------------
1988# Tests whether FUNC exists, setting the cache variable VAR accordingly
1989ac_fn_c_check_func ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if eval \${$3+:} false; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2001#define $2 innocuous_$2
2002
2003/* System header to define __stub macros and hopefully few prototypes,
2004    which can conflict with char $2 (); below.
2005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2006    <limits.h> exists even on freestanding compilers.  */
2007
2008#ifdef __STDC__
2009# include <limits.h>
2010#else
2011# include <assert.h>
2012#endif
2013
2014#undef $2
2015
2016/* Override any GCC internal prototype to avoid an error.
2017   Use char because int might match the return type of a GCC
2018   builtin and then its argument prototype would still apply.  */
2019#ifdef __cplusplus
2020extern "C"
2021#endif
2022char $2 ();
2023/* The GNU C library defines this for functions which it implements
2024    to always fail with ENOSYS.  Some functions are actually named
2025    something starting with __ and the normal name is an alias.  */
2026#if defined __stub_$2 || defined __stub___$2
2027choke me
2028#endif
2029
2030int
2031main ()
2032{
2033return $2 ();
2034  ;
2035  return 0;
2036}
2037_ACEOF
2038if ac_fn_c_try_link "$LINENO"; then :
2039  eval "$3=yes"
2040else
2041  eval "$3=no"
2042fi
2043rm -f core conftest.err conftest.$ac_objext \
2044    conftest$ac_exeext conftest.$ac_ext
2045fi
2046eval ac_res=\$$3
2047	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051} # ac_fn_c_check_func
2052
2053# ac_fn_c_find_uintX_t LINENO BITS VAR
2054# ------------------------------------
2055# Finds an unsigned integer type with width BITS, setting cache variable VAR
2056# accordingly.
2057ac_fn_c_find_uintX_t ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2061$as_echo_n "checking for uint$2_t... " >&6; }
2062if eval \${$3+:} false; then :
2063  $as_echo_n "(cached) " >&6
2064else
2065  eval "$3=no"
2066     # Order is important - never check a type that is potentially smaller
2067     # than half of the expected target width.
2068     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2069	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2070       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$ac_includes_default
2073int
2074main ()
2075{
2076static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2077test_array [0] = 0;
2078return test_array [0];
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085  case $ac_type in #(
2086  uint$2_t) :
2087    eval "$3=yes" ;; #(
2088  *) :
2089    eval "$3=\$ac_type" ;;
2090esac
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093       if eval test \"x\$"$3"\" = x"no"; then :
2094
2095else
2096  break
2097fi
2098     done
2099fi
2100eval ac_res=\$$3
2101	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105} # ac_fn_c_find_uintX_t
2106cat >config.log <<_ACEOF
2107This file contains any messages produced by compilers while
2108running configure, to aid debugging if configure makes a mistake.
2109
2110It was created by pinentry $as_me 1.1.1, which was
2111generated by GNU Autoconf 2.69.  Invocation command line was
2112
2113  $ $0 $@
2114
2115_ACEOF
2116exec 5>>config.log
2117{
2118cat <<_ASUNAME
2119## --------- ##
2120## Platform. ##
2121## --------- ##
2122
2123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2131
2132/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2133/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2136/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2137/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2138/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2139
2140_ASUNAME
2141
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147    $as_echo "PATH: $as_dir"
2148  done
2149IFS=$as_save_IFS
2150
2151} >&5
2152
2153cat >&5 <<_ACEOF
2154
2155
2156## ----------- ##
2157## Core tests. ##
2158## ----------- ##
2159
2160_ACEOF
2161
2162
2163# Keep a trace of the command line.
2164# Strip out --no-create and --no-recursion so they do not pile up.
2165# Strip out --silent because we don't want to record it for future runs.
2166# Also quote any args containing shell meta-characters.
2167# Make two passes to allow for proper duplicate-argument suppression.
2168ac_configure_args=
2169ac_configure_args0=
2170ac_configure_args1=
2171ac_must_keep_next=false
2172for ac_pass in 1 2
2173do
2174  for ac_arg
2175  do
2176    case $ac_arg in
2177    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179    | -silent | --silent | --silen | --sile | --sil)
2180      continue ;;
2181    *\'*)
2182      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183    esac
2184    case $ac_pass in
2185    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186    2)
2187      as_fn_append ac_configure_args1 " '$ac_arg'"
2188      if test $ac_must_keep_next = true; then
2189	ac_must_keep_next=false # Got value, back to normal.
2190      else
2191	case $ac_arg in
2192	  *=* | --config-cache | -C | -disable-* | --disable-* \
2193	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195	  | -with-* | --with-* | -without-* | --without-* | --x)
2196	    case "$ac_configure_args0 " in
2197	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198	    esac
2199	    ;;
2200	  -* ) ac_must_keep_next=true ;;
2201	esac
2202      fi
2203      as_fn_append ac_configure_args " '$ac_arg'"
2204      ;;
2205    esac
2206  done
2207done
2208{ ac_configure_args0=; unset ac_configure_args0;}
2209{ ac_configure_args1=; unset ac_configure_args1;}
2210
2211# When interrupted or exit'd, cleanup temporary files, and complete
2212# config.log.  We remove comments because anyway the quotes in there
2213# would cause problems or look ugly.
2214# WARNING: Use '\'' to represent an apostrophe within the trap.
2215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216trap 'exit_status=$?
2217  # Save into config.log some information that might help in debugging.
2218  {
2219    echo
2220
2221    $as_echo "## ---------------- ##
2222## Cache variables. ##
2223## ---------------- ##"
2224    echo
2225    # The following way of writing the cache mishandles newlines in values,
2226(
2227  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228    eval ac_val=\$$ac_var
2229    case $ac_val in #(
2230    *${as_nl}*)
2231      case $ac_var in #(
2232      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234      esac
2235      case $ac_var in #(
2236      _ | IFS | as_nl) ;; #(
2237      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238      *) { eval $ac_var=; unset $ac_var;} ;;
2239      esac ;;
2240    esac
2241  done
2242  (set) 2>&1 |
2243    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244    *${as_nl}ac_space=\ *)
2245      sed -n \
2246	"s/'\''/'\''\\\\'\'''\''/g;
2247	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248      ;; #(
2249    *)
2250      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251      ;;
2252    esac |
2253    sort
2254)
2255    echo
2256
2257    $as_echo "## ----------------- ##
2258## Output variables. ##
2259## ----------------- ##"
2260    echo
2261    for ac_var in $ac_subst_vars
2262    do
2263      eval ac_val=\$$ac_var
2264      case $ac_val in
2265      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266      esac
2267      $as_echo "$ac_var='\''$ac_val'\''"
2268    done | sort
2269    echo
2270
2271    if test -n "$ac_subst_files"; then
2272      $as_echo "## ------------------- ##
2273## File substitutions. ##
2274## ------------------- ##"
2275      echo
2276      for ac_var in $ac_subst_files
2277      do
2278	eval ac_val=\$$ac_var
2279	case $ac_val in
2280	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281	esac
2282	$as_echo "$ac_var='\''$ac_val'\''"
2283      done | sort
2284      echo
2285    fi
2286
2287    if test -s confdefs.h; then
2288      $as_echo "## ----------- ##
2289## confdefs.h. ##
2290## ----------- ##"
2291      echo
2292      cat confdefs.h
2293      echo
2294    fi
2295    test "$ac_signal" != 0 &&
2296      $as_echo "$as_me: caught signal $ac_signal"
2297    $as_echo "$as_me: exit $exit_status"
2298  } >&5
2299  rm -f core *.core core.conftest.* &&
2300    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301    exit $exit_status
2302' 0
2303for ac_signal in 1 2 13 15; do
2304  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
2309rm -f -r conftest* confdefs.h
2310
2311$as_echo "/* confdefs.h */" > confdefs.h
2312
2313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
2339
2340# Let the site file select an alternate cache file if it wants to.
2341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
2344if test -n "$CONFIG_SITE"; then
2345  # We do not want a PATH search for config.site.
2346  case $CONFIG_SITE in #((
2347    -*)  ac_site_file1=./$CONFIG_SITE;;
2348    */*) ac_site_file1=$CONFIG_SITE;;
2349    *)   ac_site_file1=./$CONFIG_SITE;;
2350  esac
2351elif test "x$prefix" != xNONE; then
2352  ac_site_file1=$prefix/share/config.site
2353  ac_site_file2=$prefix/etc/config.site
2354else
2355  ac_site_file1=$ac_default_prefix/share/config.site
2356  ac_site_file2=$ac_default_prefix/etc/config.site
2357fi
2358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359do
2360  test "x$ac_site_file" = xNONE && continue
2361  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364    sed 's/^/| /' "$ac_site_file" >&5
2365    . "$ac_site_file" \
2366      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368as_fn_error $? "failed to load site script $ac_site_file
2369See \`config.log' for more details" "$LINENO" 5; }
2370  fi
2371done
2372
2373if test -r "$cache_file"; then
2374  # Some versions of bash will fail to source /dev/null (special files
2375  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2376  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378$as_echo "$as_me: loading cache $cache_file" >&6;}
2379    case $cache_file in
2380      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381      *)                      . "./$cache_file";;
2382    esac
2383  fi
2384else
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386$as_echo "$as_me: creating cache $cache_file" >&6;}
2387  >$cache_file
2388fi
2389
2390# Check that the precious variables saved in the cache have kept the same
2391# value.
2392ac_cache_corrupted=false
2393for ac_var in $ac_precious_vars; do
2394  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395  eval ac_new_set=\$ac_env_${ac_var}_set
2396  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397  eval ac_new_val=\$ac_env_${ac_var}_value
2398  case $ac_old_set,$ac_new_set in
2399    set,)
2400      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402      ac_cache_corrupted=: ;;
2403    ,set)
2404      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406      ac_cache_corrupted=: ;;
2407    ,);;
2408    *)
2409      if test "x$ac_old_val" != "x$ac_new_val"; then
2410	# differences in whitespace do not lead to failure.
2411	ac_old_val_w=`echo x $ac_old_val`
2412	ac_new_val_w=`echo x $ac_new_val`
2413	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416	  ac_cache_corrupted=:
2417	else
2418	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420	  eval $ac_var=\$ac_old_val
2421	fi
2422	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2423$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2424	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2425$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2426      fi;;
2427  esac
2428  # Pass precious variables to config.status.
2429  if test "$ac_new_set" = set; then
2430    case $ac_new_val in
2431    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432    *) ac_arg=$ac_var=$ac_new_val ;;
2433    esac
2434    case " $ac_configure_args " in
2435      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2436      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437    esac
2438  fi
2439done
2440if $ac_cache_corrupted; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446fi
2447## -------------------- ##
2448## Main body of script. ##
2449## -------------------- ##
2450
2451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459ac_aux_dir=
2460for ac_dir in build-aux "$srcdir"/build-aux; do
2461  if test -f "$ac_dir/install-sh"; then
2462    ac_aux_dir=$ac_dir
2463    ac_install_sh="$ac_aux_dir/install-sh -c"
2464    break
2465  elif test -f "$ac_dir/install.sh"; then
2466    ac_aux_dir=$ac_dir
2467    ac_install_sh="$ac_aux_dir/install.sh -c"
2468    break
2469  elif test -f "$ac_dir/shtool"; then
2470    ac_aux_dir=$ac_dir
2471    ac_install_sh="$ac_aux_dir/shtool install -c"
2472    break
2473  fi
2474done
2475if test -z "$ac_aux_dir"; then
2476  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2477fi
2478
2479# These three variables are undocumented and unsupported,
2480# and are intended to be withdrawn in a future Autoconf release.
2481# They can cause serious problems if a builder's source tree is in a directory
2482# whose full name contains unusual characters.
2483ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2484ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2485ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2486
2487
2488ac_config_headers="$ac_config_headers config.h"
2489
2490
2491am__api_version='1.16'
2492
2493# Find a good install program.  We prefer a C program (faster),
2494# so one script is as good as another.  But avoid the broken or
2495# incompatible versions:
2496# SysV /etc/install, /usr/sbin/install
2497# SunOS /usr/etc/install
2498# IRIX /sbin/install
2499# AIX /bin/install
2500# AmigaOS /C/install, which installs bootblocks on floppy discs
2501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504# OS/2's system install, which has a completely different semantic
2505# ./install, which can be erroneously created by make from ./install.sh.
2506# Reject install programs that cannot install multiple files.
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2508$as_echo_n "checking for a BSD-compatible install... " >&6; }
2509if test -z "$INSTALL"; then
2510if ${ac_cv_path_install+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518    # Account for people who put trailing slashes in PATH elements.
2519case $as_dir/ in #((
2520  ./ | .// | /[cC]/* | \
2521  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2523  /usr/ucb/* ) ;;
2524  *)
2525    # OSF1 and SCO ODT 3.0 have their own names for install.
2526    # Don't use installbsd from OSF since it installs stuff as root
2527    # by default.
2528    for ac_prog in ginstall scoinst install; do
2529      for ac_exec_ext in '' $ac_executable_extensions; do
2530	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2531	  if test $ac_prog = install &&
2532	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533	    # AIX install.  It has an incompatible calling convention.
2534	    :
2535	  elif test $ac_prog = install &&
2536	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537	    # program-specific install script used by HP pwplus--don't use.
2538	    :
2539	  else
2540	    rm -rf conftest.one conftest.two conftest.dir
2541	    echo one > conftest.one
2542	    echo two > conftest.two
2543	    mkdir conftest.dir
2544	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2545	      test -s conftest.one && test -s conftest.two &&
2546	      test -s conftest.dir/conftest.one &&
2547	      test -s conftest.dir/conftest.two
2548	    then
2549	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550	      break 3
2551	    fi
2552	  fi
2553	fi
2554      done
2555    done
2556    ;;
2557esac
2558
2559  done
2560IFS=$as_save_IFS
2561
2562rm -rf conftest.one conftest.two conftest.dir
2563
2564fi
2565  if test "${ac_cv_path_install+set}" = set; then
2566    INSTALL=$ac_cv_path_install
2567  else
2568    # As a last resort, use the slow shell script.  Don't cache a
2569    # value for INSTALL within a source directory, because that will
2570    # break other packages using the cache if that directory is
2571    # removed, or if the value is a relative name.
2572    INSTALL=$ac_install_sh
2573  fi
2574fi
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2576$as_echo "$INSTALL" >&6; }
2577
2578# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2579# It thinks the first close brace ends the variable substitution.
2580test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581
2582test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583
2584test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2587$as_echo_n "checking whether build environment is sane... " >&6; }
2588# Reject unsafe characters in $srcdir or the absolute working directory
2589# name.  Accept space and tab only in the latter.
2590am_lf='
2591'
2592case `pwd` in
2593  *[\\\"\#\$\&\'\`$am_lf]*)
2594    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2595esac
2596case $srcdir in
2597  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2598    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2599esac
2600
2601# Do 'set' in a subshell so we don't clobber the current shell's
2602# arguments.  Must try -L first in case configure is actually a
2603# symlink; some systems play weird games with the mod time of symlinks
2604# (eg FreeBSD returns the mod time of the symlink's containing
2605# directory).
2606if (
2607   am_has_slept=no
2608   for am_try in 1 2; do
2609     echo "timestamp, slept: $am_has_slept" > conftest.file
2610     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2611     if test "$*" = "X"; then
2612	# -L didn't work.
2613	set X `ls -t "$srcdir/configure" conftest.file`
2614     fi
2615     if test "$*" != "X $srcdir/configure conftest.file" \
2616	&& test "$*" != "X conftest.file $srcdir/configure"; then
2617
2618	# If neither matched, then we have a broken ls.  This can happen
2619	# if, for instance, CONFIG_SHELL is bash and it inherits a
2620	# broken ls alias from the environment.  This has actually
2621	# happened.  Such a system could not be considered "sane".
2622	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2623  alias in your environment" "$LINENO" 5
2624     fi
2625     if test "$2" = conftest.file || test $am_try -eq 2; then
2626       break
2627     fi
2628     # Just in case.
2629     sleep 1
2630     am_has_slept=yes
2631   done
2632   test "$2" = conftest.file
2633   )
2634then
2635   # Ok.
2636   :
2637else
2638   as_fn_error $? "newly created file is older than distributed files!
2639Check your system clock" "$LINENO" 5
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642$as_echo "yes" >&6; }
2643# If we didn't sleep, we still need to ensure time stamps of config.status and
2644# generated files are strictly newer.
2645am_sleep_pid=
2646if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2647  ( sleep 1 ) &
2648  am_sleep_pid=$!
2649fi
2650
2651rm -f conftest.file
2652
2653test "$program_prefix" != NONE &&
2654  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655# Use a double $ so make ignores it.
2656test "$program_suffix" != NONE &&
2657  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658# Double any \ or $.
2659# By default was `s,x,x', remove it if useless.
2660ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2662
2663# Expand $ac_aux_dir to an absolute path.
2664am_aux_dir=`cd "$ac_aux_dir" && pwd`
2665
2666if test x"${MISSING+set}" != xset; then
2667  case $am_aux_dir in
2668  *\ * | *\	*)
2669    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670  *)
2671    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672  esac
2673fi
2674# Use eval to expand $SHELL
2675if eval "$MISSING --is-lightweight"; then
2676  am_missing_run="$MISSING "
2677else
2678  am_missing_run=
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2680$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2681fi
2682
2683if test x"${install_sh+set}" != xset; then
2684  case $am_aux_dir in
2685  *\ * | *\	*)
2686    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687  *)
2688    install_sh="\${SHELL} $am_aux_dir/install-sh"
2689  esac
2690fi
2691
2692# Installed binaries are usually stripped using 'strip' when the user
2693# run "make install-strip".  However 'strip' might not be the right
2694# tool to use in cross-compilation environments, therefore Automake
2695# will honor the 'STRIP' environment variable to overrule this program.
2696if test "$cross_compiling" != no; then
2697  if test -n "$ac_tool_prefix"; then
2698  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699set dummy ${ac_tool_prefix}strip; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if ${ac_cv_prog_STRIP+:} false; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  if test -n "$STRIP"; then
2706  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    for ac_exec_ext in '' $ac_executable_extensions; do
2714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720  done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725STRIP=$ac_cv_prog_STRIP
2726if test -n "$STRIP"; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2728$as_echo "$STRIP" >&6; }
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735fi
2736if test -z "$ac_cv_prog_STRIP"; then
2737  ac_ct_STRIP=$STRIP
2738  # Extract the first word of "strip", so it can be a program name with args.
2739set dummy strip; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if test -n "$ac_ct_STRIP"; then
2746  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751  IFS=$as_save_IFS
2752  test -z "$as_dir" && as_dir=.
2753    for ac_exec_ext in '' $ac_executable_extensions; do
2754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755    ac_cv_prog_ac_ct_STRIP="strip"
2756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757    break 2
2758  fi
2759done
2760  done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766if test -n "$ac_ct_STRIP"; then
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2768$as_echo "$ac_ct_STRIP" >&6; }
2769else
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774  if test "x$ac_ct_STRIP" = x; then
2775    STRIP=":"
2776  else
2777    case $cross_compiling:$ac_tool_warned in
2778yes:)
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781ac_tool_warned=yes ;;
2782esac
2783    STRIP=$ac_ct_STRIP
2784  fi
2785else
2786  STRIP="$ac_cv_prog_STRIP"
2787fi
2788
2789fi
2790INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2793$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794if test -z "$MKDIR_P"; then
2795  if ${ac_cv_path_mkdir+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803    for ac_prog in mkdir gmkdir; do
2804	 for ac_exec_ext in '' $ac_executable_extensions; do
2805	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2806	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807	     'mkdir (GNU coreutils) '* | \
2808	     'mkdir (coreutils) '* | \
2809	     'mkdir (fileutils) '4.1*)
2810	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811	       break 3;;
2812	   esac
2813	 done
2814       done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819
2820  test -d ./--version && rmdir ./--version
2821  if test "${ac_cv_path_mkdir+set}" = set; then
2822    MKDIR_P="$ac_cv_path_mkdir -p"
2823  else
2824    # As a last resort, use the slow shell script.  Don't cache a
2825    # value for MKDIR_P within a source directory, because that will
2826    # break other packages using the cache if that directory is
2827    # removed, or if the value is a relative name.
2828    MKDIR_P="$ac_install_sh -d"
2829  fi
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2832$as_echo "$MKDIR_P" >&6; }
2833
2834for ac_prog in gawk mawk nawk awk
2835do
2836  # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if ${ac_cv_prog_AWK+:} false; then :
2841  $as_echo_n "(cached) " >&6
2842else
2843  if test -n "$AWK"; then
2844  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851    for ac_exec_ext in '' $ac_executable_extensions; do
2852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853    ac_cv_prog_AWK="$ac_prog"
2854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858  done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863AWK=$ac_cv_prog_AWK
2864if test -n "$AWK"; then
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2866$as_echo "$AWK" >&6; }
2867else
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872
2873  test -n "$AWK" && break
2874done
2875
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2877$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2878set x ${MAKE-make}
2879ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2880if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  cat >conftest.make <<\_ACEOF
2884SHELL = /bin/sh
2885all:
2886	@echo '@@@%%%=$(MAKE)=@@@%%%'
2887_ACEOF
2888# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2889case `${MAKE-make} -f conftest.make 2>/dev/null` in
2890  *@@@%%%=?*=@@@%%%*)
2891    eval ac_cv_prog_make_${ac_make}_set=yes;;
2892  *)
2893    eval ac_cv_prog_make_${ac_make}_set=no;;
2894esac
2895rm -f conftest.make
2896fi
2897if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899$as_echo "yes" >&6; }
2900  SET_MAKE=
2901else
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903$as_echo "no" >&6; }
2904  SET_MAKE="MAKE=${MAKE-make}"
2905fi
2906
2907rm -rf .tst 2>/dev/null
2908mkdir .tst 2>/dev/null
2909if test -d .tst; then
2910  am__leading_dot=.
2911else
2912  am__leading_dot=_
2913fi
2914rmdir .tst 2>/dev/null
2915
2916# Check whether --enable-silent-rules was given.
2917if test "${enable_silent_rules+set}" = set; then :
2918  enableval=$enable_silent_rules;
2919fi
2920
2921case $enable_silent_rules in # (((
2922  yes) AM_DEFAULT_VERBOSITY=0;;
2923   no) AM_DEFAULT_VERBOSITY=1;;
2924    *) AM_DEFAULT_VERBOSITY=1;;
2925esac
2926am_make=${MAKE-make}
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2928$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2929if ${am_cv_make_support_nested_variables+:} false; then :
2930  $as_echo_n "(cached) " >&6
2931else
2932  if $as_echo 'TRUE=$(BAR$(V))
2933BAR0=false
2934BAR1=true
2935V=1
2936am__doit:
2937	@$(TRUE)
2938.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2939  am_cv_make_support_nested_variables=yes
2940else
2941  am_cv_make_support_nested_variables=no
2942fi
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2945$as_echo "$am_cv_make_support_nested_variables" >&6; }
2946if test $am_cv_make_support_nested_variables = yes; then
2947    AM_V='$(V)'
2948  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2949else
2950  AM_V=$AM_DEFAULT_VERBOSITY
2951  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2952fi
2953AM_BACKSLASH='\'
2954
2955if test "`cd $srcdir && pwd`" != "`pwd`"; then
2956  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2957  # is not polluted with repeated "-I."
2958  am__isrc=' -I$(srcdir)'
2959  # test to see if srcdir already configured
2960  if test -f $srcdir/config.status; then
2961    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2962  fi
2963fi
2964
2965# test whether we have cygpath
2966if test -z "$CYGPATH_W"; then
2967  if (cygpath --version) >/dev/null 2>/dev/null; then
2968    CYGPATH_W='cygpath -w'
2969  else
2970    CYGPATH_W=echo
2971  fi
2972fi
2973
2974
2975# Define the identity of the package.
2976 PACKAGE='pinentry'
2977 VERSION='1.1.1'
2978
2979
2980cat >>confdefs.h <<_ACEOF
2981#define PACKAGE "$PACKAGE"
2982_ACEOF
2983
2984
2985cat >>confdefs.h <<_ACEOF
2986#define VERSION "$VERSION"
2987_ACEOF
2988
2989# Some tools Automake needs.
2990
2991ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2992
2993
2994AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2995
2996
2997AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2998
2999
3000AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3001
3002
3003MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3004
3005# For better backward compatibility.  To be removed once Automake 1.9.x
3006# dies out for good.  For more background, see:
3007# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3008# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3009mkdir_p='$(MKDIR_P)'
3010
3011# We need awk for the "check" target (and possibly the TAP driver).  The
3012# system "awk" is bad on some platforms.
3013# Always define AMTAR for backward compatibility.  Yes, it's still used
3014# in the wild :-(  We should find a proper way to deprecate it ...
3015AMTAR='$${TAR-tar}'
3016
3017
3018# We'll loop over all known methods to create a tar archive until one works.
3019_am_tools='gnutar  pax cpio none'
3020
3021am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3022
3023
3024
3025
3026
3027
3028# POSIX will say in a future version that running "rm -f" with no argument
3029# is OK; and we want to be able to make that assumption in our Makefile
3030# recipes.  So use an aggressive probe to check that the usage we want is
3031# actually supported "in the wild" to an acceptable degree.
3032# See automake bug#10828.
3033# To make any issue more visible, cause the running configure to be aborted
3034# by default if the 'rm' program in use doesn't match our expectations; the
3035# user can still override this though.
3036if rm -f && rm -fr && rm -rf; then : OK; else
3037  cat >&2 <<'END'
3038Oops!
3039
3040Your 'rm' program seems unable to run without file operands specified
3041on the command line, even when the '-f' option is present.  This is contrary
3042to the behaviour of most rm programs out there, and not conforming with
3043the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3044
3045Please tell bug-automake@gnu.org about your system, including the value
3046of your $PATH and any error possibly output before this message.  This
3047can help us improve future automake versions.
3048
3049END
3050  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3051    echo 'Configuration will proceed anyway, since you have set the' >&2
3052    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3053    echo >&2
3054  else
3055    cat >&2 <<'END'
3056Aborting the configuration process, to ensure you take notice of the issue.
3057
3058You can download and install GNU coreutils to get an 'rm' implementation
3059that behaves properly: <https://www.gnu.org/software/coreutils/>.
3060
3061If you want to complete the configuration process using your problematic
3062'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3063to "yes", and re-run configure.
3064
3065END
3066    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3067  fi
3068fi
3069
3070
3071DEPDIR="${am__leading_dot}deps"
3072
3073ac_config_commands="$ac_config_commands depfiles"
3074
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3076$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3077cat > confinc.mk << 'END'
3078am__doit:
3079	@echo this is the am__doit target >confinc.out
3080.PHONY: am__doit
3081END
3082am__include="#"
3083am__quote=
3084# BSD make does it like this.
3085echo '.include "confinc.mk" # ignored' > confmf.BSD
3086# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3087echo 'include confinc.mk # ignored' > confmf.GNU
3088_am_result=no
3089for s in GNU BSD; do
3090  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3091   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }
3095  case $?:`cat confinc.out 2>/dev/null` in #(
3096  '0:this is the am__doit target') :
3097    case $s in #(
3098  BSD) :
3099    am__include='.include' am__quote='"' ;; #(
3100  *) :
3101    am__include='include' am__quote='' ;;
3102esac ;; #(
3103  *) :
3104     ;;
3105esac
3106  if test "$am__include" != "#"; then
3107    _am_result="yes ($s style)"
3108    break
3109  fi
3110done
3111rm -f confinc.* confmf.*
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3113$as_echo "${_am_result}" >&6; }
3114
3115# Check whether --enable-dependency-tracking was given.
3116if test "${enable_dependency_tracking+set}" = set; then :
3117  enableval=$enable_dependency_tracking;
3118fi
3119
3120if test "x$enable_dependency_tracking" != xno; then
3121  am_depcomp="$ac_aux_dir/depcomp"
3122  AMDEPBACKSLASH='\'
3123  am__nodep='_no'
3124fi
3125 if test "x$enable_dependency_tracking" != xno; then
3126  AMDEP_TRUE=
3127  AMDEP_FALSE='#'
3128else
3129  AMDEP_TRUE='#'
3130  AMDEP_FALSE=
3131fi
3132
3133
3134ac_ext=c
3135ac_cpp='$CPP $CPPFLAGS'
3136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139if test -n "$ac_tool_prefix"; then
3140  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if ${ac_cv_prog_CC+:} false; then :
3145  $as_echo_n "(cached) " >&6
3146else
3147  if test -n "$CC"; then
3148  ac_cv_prog_CC="$CC" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_exec_ext in '' $ac_executable_extensions; do
3156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161done
3162  done
3163IFS=$as_save_IFS
3164
3165fi
3166fi
3167CC=$ac_cv_prog_CC
3168if test -n "$CC"; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170$as_echo "$CC" >&6; }
3171else
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177fi
3178if test -z "$ac_cv_prog_CC"; then
3179  ac_ct_CC=$CC
3180  # Extract the first word of "gcc", so it can be a program name with args.
3181set dummy gcc; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$ac_ct_CC"; then
3188  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195    for ac_exec_ext in '' $ac_executable_extensions; do
3196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_ac_ct_CC="gcc"
3198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202  done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208if test -n "$ac_ct_CC"; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210$as_echo "$ac_ct_CC" >&6; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216  if test "x$ac_ct_CC" = x; then
3217    CC=""
3218  else
3219    case $cross_compiling:$ac_tool_warned in
3220yes:)
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223ac_tool_warned=yes ;;
3224esac
3225    CC=$ac_ct_CC
3226  fi
3227else
3228  CC="$ac_cv_prog_CC"
3229fi
3230
3231if test -z "$CC"; then
3232          if test -n "$ac_tool_prefix"; then
3233    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}cc; ac_word=$2
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
3237if ${ac_cv_prog_CC+:} false; then :
3238  $as_echo_n "(cached) " >&6
3239else
3240  if test -n "$CC"; then
3241  ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248    for ac_exec_ext in '' $ac_executable_extensions; do
3249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    ac_cv_prog_CC="${ac_tool_prefix}cc"
3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255  done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
3264else
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
3270  fi
3271fi
3272if test -z "$CC"; then
3273  # Extract the first word of "cc", so it can be a program name with args.
3274set dummy cc; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_CC+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -n "$CC"; then
3281  ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283  ac_prog_rejected=no
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287  IFS=$as_save_IFS
3288  test -z "$as_dir" && as_dir=.
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292       ac_prog_rejected=yes
3293       continue
3294     fi
3295    ac_cv_prog_CC="cc"
3296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297    break 2
3298  fi
3299done
3300  done
3301IFS=$as_save_IFS
3302
3303if test $ac_prog_rejected = yes; then
3304  # We found a bogon in the path, so make sure we never use it.
3305  set dummy $ac_cv_prog_CC
3306  shift
3307  if test $# != 0; then
3308    # We chose a different compiler from the bogus one.
3309    # However, it has the same basename, so the bogon will be chosen
3310    # first if we set CC to just the basename; use the full file name.
3311    shift
3312    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313  fi
3314fi
3315fi
3316fi
3317CC=$ac_cv_prog_CC
3318if test -n "$CC"; then
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320$as_echo "$CC" >&6; }
3321else
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
3327fi
3328if test -z "$CC"; then
3329  if test -n "$ac_tool_prefix"; then
3330  for ac_prog in cl.exe
3331  do
3332    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335$as_echo_n "checking for $ac_word... " >&6; }
3336if ${ac_cv_prog_CC+:} false; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  if test -n "$CC"; then
3340  ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345  IFS=$as_save_IFS
3346  test -z "$as_dir" && as_dir=.
3347    for ac_exec_ext in '' $ac_executable_extensions; do
3348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351    break 2
3352  fi
3353done
3354  done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362$as_echo "$CC" >&6; }
3363else
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369    test -n "$CC" && break
3370  done
3371fi
3372if test -z "$CC"; then
3373  ac_ct_CC=$CC
3374  for ac_prog in cl.exe
3375do
3376  # Extract the first word of "$ac_prog", so it can be a program name with args.
3377set dummy $ac_prog; ac_word=$2
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379$as_echo_n "checking for $ac_word... " >&6; }
3380if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  if test -n "$ac_ct_CC"; then
3384  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385else
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389  IFS=$as_save_IFS
3390  test -z "$as_dir" && as_dir=.
3391    for ac_exec_ext in '' $ac_executable_extensions; do
3392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393    ac_cv_prog_ac_ct_CC="$ac_prog"
3394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395    break 2
3396  fi
3397done
3398  done
3399IFS=$as_save_IFS
3400
3401fi
3402fi
3403ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404if test -n "$ac_ct_CC"; then
3405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406$as_echo "$ac_ct_CC" >&6; }
3407else
3408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3410fi
3411
3412
3413  test -n "$ac_ct_CC" && break
3414done
3415
3416  if test "x$ac_ct_CC" = x; then
3417    CC=""
3418  else
3419    case $cross_compiling:$ac_tool_warned in
3420yes:)
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423ac_tool_warned=yes ;;
3424esac
3425    CC=$ac_ct_CC
3426  fi
3427fi
3428
3429fi
3430
3431
3432test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434as_fn_error $? "no acceptable C compiler found in \$PATH
3435See \`config.log' for more details" "$LINENO" 5; }
3436
3437# Provide some information about the compiler.
3438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439set X $ac_compile
3440ac_compiler=$2
3441for ac_option in --version -v -V -qversion; do
3442  { { ac_try="$ac_compiler $ac_option >&5"
3443case "(($ac_try" in
3444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445  *) ac_try_echo=$ac_try;;
3446esac
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
3449  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450  ac_status=$?
3451  if test -s conftest.err; then
3452    sed '10a\
3453... rest of stderr output deleted ...
3454         10q' conftest.err >conftest.er1
3455    cat conftest.er1 >&5
3456  fi
3457  rm -f conftest.er1 conftest.err
3458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459  test $ac_status = 0; }
3460done
3461
3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464
3465int
3466main ()
3467{
3468
3469  ;
3470  return 0;
3471}
3472_ACEOF
3473ac_clean_files_save=$ac_clean_files
3474ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3475# Try to create an executable without -o first, disregard a.out.
3476# It will help us diagnose broken compilers, and finding out an intuition
3477# of exeext.
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479$as_echo_n "checking whether the C compiler works... " >&6; }
3480ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3481
3482# The possible output files:
3483ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484
3485ac_rmfiles=
3486for ac_file in $ac_files
3487do
3488  case $ac_file in
3489    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3491  esac
3492done
3493rm -f $ac_rmfiles
3494
3495if { { ac_try="$ac_link_default"
3496case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo"; } >&5
3502  (eval "$ac_link_default") 2>&5
3503  ac_status=$?
3504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505  test $ac_status = 0; }; then :
3506  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3507# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3508# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3509# so that the user can short-circuit this test for compilers unknown to
3510# Autoconf.
3511for ac_file in $ac_files ''
3512do
3513  test -f "$ac_file" || continue
3514  case $ac_file in
3515    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516	;;
3517    [ab].out )
3518	# We found the default executable, but exeext='' is most
3519	# certainly right.
3520	break;;
3521    *.* )
3522	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3523	then :; else
3524	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525	fi
3526	# We set ac_cv_exeext here because the later test for it is not
3527	# safe: cross compilers may not add the suffix if given an `-o'
3528	# argument, so we may need to know it at that point already.
3529	# Even if this section looks crufty: it has the advantage of
3530	# actually working.
3531	break;;
3532    * )
3533	break;;
3534  esac
3535done
3536test "$ac_cv_exeext" = no && ac_cv_exeext=
3537
3538else
3539  ac_file=''
3540fi
3541if test -z "$ac_file"; then :
3542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543$as_echo "no" >&6; }
3544$as_echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549as_fn_error 77 "C compiler cannot create executables
3550See \`config.log' for more details" "$LINENO" 5; }
3551else
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553$as_echo "yes" >&6; }
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3556$as_echo_n "checking for C compiler default output file name... " >&6; }
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558$as_echo "$ac_file" >&6; }
3559ac_exeext=$ac_cv_exeext
3560
3561rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3562ac_clean_files=$ac_clean_files_save
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564$as_echo_n "checking for suffix of executables... " >&6; }
3565if { { ac_try="$ac_link"
3566case "(($ac_try" in
3567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568  *) ac_try_echo=$ac_try;;
3569esac
3570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571$as_echo "$ac_try_echo"; } >&5
3572  (eval "$ac_link") 2>&5
3573  ac_status=$?
3574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575  test $ac_status = 0; }; then :
3576  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3578# work properly (i.e., refer to `conftest.exe'), while it won't with
3579# `rm'.
3580for ac_file in conftest.exe conftest conftest.*; do
3581  test -f "$ac_file" || continue
3582  case $ac_file in
3583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585	  break;;
3586    * ) break;;
3587  esac
3588done
3589else
3590  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3593See \`config.log' for more details" "$LINENO" 5; }
3594fi
3595rm -f conftest conftest$ac_cv_exeext
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597$as_echo "$ac_cv_exeext" >&6; }
3598
3599rm -f conftest.$ac_ext
3600EXEEXT=$ac_cv_exeext
3601ac_exeext=$EXEEXT
3602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604#include <stdio.h>
3605int
3606main ()
3607{
3608FILE *f = fopen ("conftest.out", "w");
3609 return ferror (f) || fclose (f) != 0;
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615ac_clean_files="$ac_clean_files conftest.out"
3616# Check that the compiler produces executables we can run.  If not, either
3617# the compiler is broken, or we cross compile.
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3619$as_echo_n "checking whether we are cross compiling... " >&6; }
3620if test "$cross_compiling" != yes; then
3621  { { ac_try="$ac_link"
3622case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
3628  (eval "$ac_link") 2>&5
3629  ac_status=$?
3630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631  test $ac_status = 0; }
3632  if { ac_try='./conftest$ac_cv_exeext'
3633  { { case "(($ac_try" in
3634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635  *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638$as_echo "$ac_try_echo"; } >&5
3639  (eval "$ac_try") 2>&5
3640  ac_status=$?
3641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642  test $ac_status = 0; }; }; then
3643    cross_compiling=no
3644  else
3645    if test "$cross_compiling" = maybe; then
3646	cross_compiling=yes
3647    else
3648	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650as_fn_error $? "cannot run C compiled programs.
3651If you meant to cross compile, use \`--host'.
3652See \`config.log' for more details" "$LINENO" 5; }
3653    fi
3654  fi
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3657$as_echo "$cross_compiling" >&6; }
3658
3659rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3660ac_clean_files=$ac_clean_files_save
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662$as_echo_n "checking for suffix of object files... " >&6; }
3663if ${ac_cv_objext+:} false; then :
3664  $as_echo_n "(cached) " >&6
3665else
3666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668
3669int
3670main ()
3671{
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677rm -f conftest.o conftest.obj
3678if { { ac_try="$ac_compile"
3679case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684$as_echo "$ac_try_echo"; } >&5
3685  (eval "$ac_compile") 2>&5
3686  ac_status=$?
3687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688  test $ac_status = 0; }; then :
3689  for ac_file in conftest.o conftest.obj conftest.*; do
3690  test -f "$ac_file" || continue;
3691  case $ac_file in
3692    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694       break;;
3695  esac
3696done
3697else
3698  $as_echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703as_fn_error $? "cannot compute suffix of object files: cannot compile
3704See \`config.log' for more details" "$LINENO" 5; }
3705fi
3706rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709$as_echo "$ac_cv_objext" >&6; }
3710OBJEXT=$ac_cv_objext
3711ac_objext=$OBJEXT
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3713$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3714if ${ac_cv_c_compiler_gnu+:} false; then :
3715  $as_echo_n "(cached) " >&6
3716else
3717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h.  */
3719
3720int
3721main ()
3722{
3723#ifndef __GNUC__
3724       choke me
3725#endif
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"; then :
3732  ac_compiler_gnu=yes
3733else
3734  ac_compiler_gnu=no
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3741$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3742if test $ac_compiler_gnu = yes; then
3743  GCC=yes
3744else
3745  GCC=
3746fi
3747ac_test_CFLAGS=${CFLAGS+set}
3748ac_save_CFLAGS=$CFLAGS
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3750$as_echo_n "checking whether $CC accepts -g... " >&6; }
3751if ${ac_cv_prog_cc_g+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  ac_save_c_werror_flag=$ac_c_werror_flag
3755   ac_c_werror_flag=yes
3756   ac_cv_prog_cc_g=no
3757   CFLAGS="-g"
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760
3761int
3762main ()
3763{
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770  ac_cv_prog_cc_g=yes
3771else
3772  CFLAGS=""
3773      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784if ac_fn_c_try_compile "$LINENO"; then :
3785
3786else
3787  ac_c_werror_flag=$ac_save_c_werror_flag
3788	 CFLAGS="-g"
3789	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791
3792int
3793main ()
3794{
3795
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800if ac_fn_c_try_compile "$LINENO"; then :
3801  ac_cv_prog_cc_g=yes
3802fi
3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804fi
3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806fi
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808   ac_c_werror_flag=$ac_save_c_werror_flag
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3811$as_echo "$ac_cv_prog_cc_g" >&6; }
3812if test "$ac_test_CFLAGS" = set; then
3813  CFLAGS=$ac_save_CFLAGS
3814elif test $ac_cv_prog_cc_g = yes; then
3815  if test "$GCC" = yes; then
3816    CFLAGS="-g -O2"
3817  else
3818    CFLAGS="-g"
3819  fi
3820else
3821  if test "$GCC" = yes; then
3822    CFLAGS="-O2"
3823  else
3824    CFLAGS=
3825  fi
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3828$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3829if ${ac_cv_prog_cc_c89+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  ac_cv_prog_cc_c89=no
3833ac_save_CC=$CC
3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836#include <stdarg.h>
3837#include <stdio.h>
3838struct stat;
3839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3840struct buf { int x; };
3841FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842static char *e (p, i)
3843     char **p;
3844     int i;
3845{
3846  return p[i];
3847}
3848static char *f (char * (*g) (char **, int), char **p, ...)
3849{
3850  char *s;
3851  va_list v;
3852  va_start (v,p);
3853  s = g (p, va_arg (v,int));
3854  va_end (v);
3855  return s;
3856}
3857
3858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3859   function prototypes and stuff, but not '\xHH' hex character constants.
3860   These don't provoke an error unfortunately, instead are silently treated
3861   as 'x'.  The following induces an error, until -std is added to get
3862   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3863   array size at least.  It's necessary to write '\x00'==0 to get something
3864   that's true only with -std.  */
3865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866
3867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3868   inside strings and character constants.  */
3869#define FOO(x) 'x'
3870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871
3872int test (int i, double x);
3873struct s1 {int (*f) (int a);};
3874struct s2 {int (*f) (double a);};
3875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876int argc;
3877char **argv;
3878int
3879main ()
3880{
3881return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3887	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888do
3889  CC="$ac_save_CC $ac_arg"
3890  if ac_fn_c_try_compile "$LINENO"; then :
3891  ac_cv_prog_cc_c89=$ac_arg
3892fi
3893rm -f core conftest.err conftest.$ac_objext
3894  test "x$ac_cv_prog_cc_c89" != "xno" && break
3895done
3896rm -f conftest.$ac_ext
3897CC=$ac_save_CC
3898
3899fi
3900# AC_CACHE_VAL
3901case "x$ac_cv_prog_cc_c89" in
3902  x)
3903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904$as_echo "none needed" >&6; } ;;
3905  xno)
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907$as_echo "unsupported" >&6; } ;;
3908  *)
3909    CC="$CC $ac_cv_prog_cc_c89"
3910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3911$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912esac
3913if test "x$ac_cv_prog_cc_c89" != xno; then :
3914
3915fi
3916
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923ac_ext=c
3924ac_cpp='$CPP $CPPFLAGS'
3925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3929$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3930if ${am_cv_prog_cc_c_o+:} false; then :
3931  $as_echo_n "(cached) " >&6
3932else
3933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935
3936int
3937main ()
3938{
3939
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944  # Make sure it works both with $CC and with simple cc.
3945  # Following AC_PROG_CC_C_O, we do the test twice because some
3946  # compilers refuse to overwrite an existing .o file with -o,
3947  # though they will create one.
3948  am_cv_prog_cc_c_o=yes
3949  for am_i in 1 2; do
3950    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3951   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); } \
3955         && test -f conftest2.$ac_objext; then
3956      : OK
3957    else
3958      am_cv_prog_cc_c_o=no
3959      break
3960    fi
3961  done
3962  rm -f core conftest*
3963  unset am_i
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3966$as_echo "$am_cv_prog_cc_c_o" >&6; }
3967if test "$am_cv_prog_cc_c_o" != yes; then
3968   # Losing compiler, so override with the script.
3969   # FIXME: It is wrong to rewrite CC.
3970   # But if we don't then we get into trouble of one sort or another.
3971   # A longer-term fix would be to have automake use am__CC in this case,
3972   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3973   CC="$am_aux_dir/compile $CC"
3974fi
3975ac_ext=c
3976ac_cpp='$CPP $CPPFLAGS'
3977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
3981
3982depcc="$CC"   am_compiler_list=
3983
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3985$as_echo_n "checking dependency style of $depcc... " >&6; }
3986if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3990  # We make a subdir and do the tests there.  Otherwise we can end up
3991  # making bogus files that we don't know about and never remove.  For
3992  # instance it was reported that on HP-UX the gcc test will end up
3993  # making a dummy file named 'D' -- because '-MD' means "put the output
3994  # in D".
3995  rm -rf conftest.dir
3996  mkdir conftest.dir
3997  # Copy depcomp to subdir because otherwise we won't find it if we're
3998  # using a relative directory.
3999  cp "$am_depcomp" conftest.dir
4000  cd conftest.dir
4001  # We will build objects and dependencies in a subdirectory because
4002  # it helps to detect inapplicable dependency modes.  For instance
4003  # both Tru64's cc and ICC support -MD to output dependencies as a
4004  # side effect of compilation, but ICC will put the dependencies in
4005  # the current directory while Tru64 will put them in the object
4006  # directory.
4007  mkdir sub
4008
4009  am_cv_CC_dependencies_compiler_type=none
4010  if test "$am_compiler_list" = ""; then
4011     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4012  fi
4013  am__universal=false
4014  case " $depcc " in #(
4015     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4016     esac
4017
4018  for depmode in $am_compiler_list; do
4019    # Setup a source with many dependencies, because some compilers
4020    # like to wrap large dependency lists on column 80 (with \), and
4021    # we should not choose a depcomp mode which is confused by this.
4022    #
4023    # We need to recreate these files for each test, as the compiler may
4024    # overwrite some of them when testing with obscure command lines.
4025    # This happens at least with the AIX C compiler.
4026    : > sub/conftest.c
4027    for i in 1 2 3 4 5 6; do
4028      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4030      # Solaris 10 /bin/sh.
4031      echo '/* dummy */' > sub/conftst$i.h
4032    done
4033    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4034
4035    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4036    # mode.  It turns out that the SunPro C++ compiler does not properly
4037    # handle '-M -o', and we need to detect this.  Also, some Intel
4038    # versions had trouble with output in subdirs.
4039    am__obj=sub/conftest.${OBJEXT-o}
4040    am__minus_obj="-o $am__obj"
4041    case $depmode in
4042    gcc)
4043      # This depmode causes a compiler race in universal mode.
4044      test "$am__universal" = false || continue
4045      ;;
4046    nosideeffect)
4047      # After this tag, mechanisms are not by side-effect, so they'll
4048      # only be used when explicitly requested.
4049      if test "x$enable_dependency_tracking" = xyes; then
4050	continue
4051      else
4052	break
4053      fi
4054      ;;
4055    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4056      # This compiler won't grok '-c -o', but also, the minuso test has
4057      # not run yet.  These depmodes are late enough in the game, and
4058      # so weak that their functioning should not be impacted.
4059      am__obj=conftest.${OBJEXT-o}
4060      am__minus_obj=
4061      ;;
4062    none) break ;;
4063    esac
4064    if depmode=$depmode \
4065       source=sub/conftest.c object=$am__obj \
4066       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4067       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4068         >/dev/null 2>conftest.err &&
4069       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4070       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4071       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4072       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4073      # icc doesn't choke on unknown options, it will just issue warnings
4074      # or remarks (even with -Werror).  So we grep stderr for any message
4075      # that says an option was ignored or not supported.
4076      # When given -MP, icc 7.0 and 7.1 complain thusly:
4077      #   icc: Command line warning: ignoring option '-M'; no argument required
4078      # The diagnosis changed in icc 8.0:
4079      #   icc: Command line remark: option '-MP' not supported
4080      if (grep 'ignoring option' conftest.err ||
4081          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4082        am_cv_CC_dependencies_compiler_type=$depmode
4083        break
4084      fi
4085    fi
4086  done
4087
4088  cd ..
4089  rm -rf conftest.dir
4090else
4091  am_cv_CC_dependencies_compiler_type=none
4092fi
4093
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4096$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4097CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4098
4099 if
4100  test "x$enable_dependency_tracking" != xno \
4101  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4102  am__fastdepCC_TRUE=
4103  am__fastdepCC_FALSE='#'
4104else
4105  am__fastdepCC_TRUE='#'
4106  am__fastdepCC_FALSE=
4107fi
4108
4109
4110
4111ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4117$as_echo_n "checking how to run the C preprocessor... " >&6; }
4118# On Suns, sometimes $CPP names a directory.
4119if test -n "$CPP" && test -d "$CPP"; then
4120  CPP=
4121fi
4122if test -z "$CPP"; then
4123  if ${ac_cv_prog_CPP+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126      # Double quotes because CPP needs to be expanded
4127    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4128    do
4129      ac_preproc_ok=false
4130for ac_c_preproc_warn_flag in '' yes
4131do
4132  # Use a header file that comes with gcc, so configuring glibc
4133  # with a fresh cross-compiler works.
4134  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135  # <limits.h> exists even on freestanding compilers.
4136  # On the NeXT, cc -E runs the code through the compiler's parser,
4137  # not just through cpp. "Syntax error" is here to catch this case.
4138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h.  */
4140#ifdef __STDC__
4141# include <limits.h>
4142#else
4143# include <assert.h>
4144#endif
4145		     Syntax error
4146_ACEOF
4147if ac_fn_c_try_cpp "$LINENO"; then :
4148
4149else
4150  # Broken: fails on valid input.
4151continue
4152fi
4153rm -f conftest.err conftest.i conftest.$ac_ext
4154
4155  # OK, works on sane cases.  Now check whether nonexistent headers
4156  # can be detected and how.
4157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159#include <ac_nonexistent.h>
4160_ACEOF
4161if ac_fn_c_try_cpp "$LINENO"; then :
4162  # Broken: success on invalid input.
4163continue
4164else
4165  # Passes both tests.
4166ac_preproc_ok=:
4167break
4168fi
4169rm -f conftest.err conftest.i conftest.$ac_ext
4170
4171done
4172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173rm -f conftest.i conftest.err conftest.$ac_ext
4174if $ac_preproc_ok; then :
4175  break
4176fi
4177
4178    done
4179    ac_cv_prog_CPP=$CPP
4180
4181fi
4182  CPP=$ac_cv_prog_CPP
4183else
4184  ac_cv_prog_CPP=$CPP
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4187$as_echo "$CPP" >&6; }
4188ac_preproc_ok=false
4189for ac_c_preproc_warn_flag in '' yes
4190do
4191  # Use a header file that comes with gcc, so configuring glibc
4192  # with a fresh cross-compiler works.
4193  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194  # <limits.h> exists even on freestanding compilers.
4195  # On the NeXT, cc -E runs the code through the compiler's parser,
4196  # not just through cpp. "Syntax error" is here to catch this case.
4197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h.  */
4199#ifdef __STDC__
4200# include <limits.h>
4201#else
4202# include <assert.h>
4203#endif
4204		     Syntax error
4205_ACEOF
4206if ac_fn_c_try_cpp "$LINENO"; then :
4207
4208else
4209  # Broken: fails on valid input.
4210continue
4211fi
4212rm -f conftest.err conftest.i conftest.$ac_ext
4213
4214  # OK, works on sane cases.  Now check whether nonexistent headers
4215  # can be detected and how.
4216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h.  */
4218#include <ac_nonexistent.h>
4219_ACEOF
4220if ac_fn_c_try_cpp "$LINENO"; then :
4221  # Broken: success on invalid input.
4222continue
4223else
4224  # Passes both tests.
4225ac_preproc_ok=:
4226break
4227fi
4228rm -f conftest.err conftest.i conftest.$ac_ext
4229
4230done
4231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4232rm -f conftest.i conftest.err conftest.$ac_ext
4233if $ac_preproc_ok; then :
4234
4235else
4236  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4239See \`config.log' for more details" "$LINENO" 5; }
4240fi
4241
4242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4250$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4251if ${ac_cv_path_GREP+:} false; then :
4252  $as_echo_n "(cached) " >&6
4253else
4254  if test -z "$GREP"; then
4255  ac_path_GREP_found=false
4256  # Loop through the user's path and test for each of PROGNAME-LIST
4257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262    for ac_prog in grep ggrep; do
4263    for ac_exec_ext in '' $ac_executable_extensions; do
4264      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4265      as_fn_executable_p "$ac_path_GREP" || continue
4266# Check for GNU ac_path_GREP and select it if it is found.
4267  # Check for GNU $ac_path_GREP
4268case `"$ac_path_GREP" --version 2>&1` in
4269*GNU*)
4270  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4271*)
4272  ac_count=0
4273  $as_echo_n 0123456789 >"conftest.in"
4274  while :
4275  do
4276    cat "conftest.in" "conftest.in" >"conftest.tmp"
4277    mv "conftest.tmp" "conftest.in"
4278    cp "conftest.in" "conftest.nl"
4279    $as_echo 'GREP' >> "conftest.nl"
4280    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282    as_fn_arith $ac_count + 1 && ac_count=$as_val
4283    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4284      # Best one so far, save it but keep looking for a better one
4285      ac_cv_path_GREP="$ac_path_GREP"
4286      ac_path_GREP_max=$ac_count
4287    fi
4288    # 10*(2^10) chars as input seems more than enough
4289    test $ac_count -gt 10 && break
4290  done
4291  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292esac
4293
4294      $ac_path_GREP_found && break 3
4295    done
4296  done
4297  done
4298IFS=$as_save_IFS
4299  if test -z "$ac_cv_path_GREP"; then
4300    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301  fi
4302else
4303  ac_cv_path_GREP=$GREP
4304fi
4305
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4308$as_echo "$ac_cv_path_GREP" >&6; }
4309 GREP="$ac_cv_path_GREP"
4310
4311
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4313$as_echo_n "checking for egrep... " >&6; }
4314if ${ac_cv_path_EGREP+:} false; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4318   then ac_cv_path_EGREP="$GREP -E"
4319   else
4320     if test -z "$EGREP"; then
4321  ac_path_EGREP_found=false
4322  # Loop through the user's path and test for each of PROGNAME-LIST
4323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325do
4326  IFS=$as_save_IFS
4327  test -z "$as_dir" && as_dir=.
4328    for ac_prog in egrep; do
4329    for ac_exec_ext in '' $ac_executable_extensions; do
4330      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4331      as_fn_executable_p "$ac_path_EGREP" || continue
4332# Check for GNU ac_path_EGREP and select it if it is found.
4333  # Check for GNU $ac_path_EGREP
4334case `"$ac_path_EGREP" --version 2>&1` in
4335*GNU*)
4336  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4337*)
4338  ac_count=0
4339  $as_echo_n 0123456789 >"conftest.in"
4340  while :
4341  do
4342    cat "conftest.in" "conftest.in" >"conftest.tmp"
4343    mv "conftest.tmp" "conftest.in"
4344    cp "conftest.in" "conftest.nl"
4345    $as_echo 'EGREP' >> "conftest.nl"
4346    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348    as_fn_arith $ac_count + 1 && ac_count=$as_val
4349    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4350      # Best one so far, save it but keep looking for a better one
4351      ac_cv_path_EGREP="$ac_path_EGREP"
4352      ac_path_EGREP_max=$ac_count
4353    fi
4354    # 10*(2^10) chars as input seems more than enough
4355    test $ac_count -gt 10 && break
4356  done
4357  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358esac
4359
4360      $ac_path_EGREP_found && break 3
4361    done
4362  done
4363  done
4364IFS=$as_save_IFS
4365  if test -z "$ac_cv_path_EGREP"; then
4366    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367  fi
4368else
4369  ac_cv_path_EGREP=$EGREP
4370fi
4371
4372   fi
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4375$as_echo "$ac_cv_path_EGREP" >&6; }
4376 EGREP="$ac_cv_path_EGREP"
4377
4378
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4380$as_echo_n "checking for ANSI C header files... " >&6; }
4381if ${ac_cv_header_stdc+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386#include <stdlib.h>
4387#include <stdarg.h>
4388#include <string.h>
4389#include <float.h>
4390
4391int
4392main ()
4393{
4394
4395  ;
4396  return 0;
4397}
4398_ACEOF
4399if ac_fn_c_try_compile "$LINENO"; then :
4400  ac_cv_header_stdc=yes
4401else
4402  ac_cv_header_stdc=no
4403fi
4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405
4406if test $ac_cv_header_stdc = yes; then
4407  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h.  */
4410#include <string.h>
4411
4412_ACEOF
4413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414  $EGREP "memchr" >/dev/null 2>&1; then :
4415
4416else
4417  ac_cv_header_stdc=no
4418fi
4419rm -f conftest*
4420
4421fi
4422
4423if test $ac_cv_header_stdc = yes; then
4424  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h.  */
4427#include <stdlib.h>
4428
4429_ACEOF
4430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4431  $EGREP "free" >/dev/null 2>&1; then :
4432
4433else
4434  ac_cv_header_stdc=no
4435fi
4436rm -f conftest*
4437
4438fi
4439
4440if test $ac_cv_header_stdc = yes; then
4441  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4442  if test "$cross_compiling" = yes; then :
4443  :
4444else
4445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h.  */
4447#include <ctype.h>
4448#include <stdlib.h>
4449#if ((' ' & 0x0FF) == 0x020)
4450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4452#else
4453# define ISLOWER(c) \
4454		   (('a' <= (c) && (c) <= 'i') \
4455		     || ('j' <= (c) && (c) <= 'r') \
4456		     || ('s' <= (c) && (c) <= 'z'))
4457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4458#endif
4459
4460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461int
4462main ()
4463{
4464  int i;
4465  for (i = 0; i < 256; i++)
4466    if (XOR (islower (i), ISLOWER (i))
4467	|| toupper (i) != TOUPPER (i))
4468      return 2;
4469  return 0;
4470}
4471_ACEOF
4472if ac_fn_c_try_run "$LINENO"; then :
4473
4474else
4475  ac_cv_header_stdc=no
4476fi
4477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4478  conftest.$ac_objext conftest.beam conftest.$ac_ext
4479fi
4480
4481fi
4482fi
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4484$as_echo "$ac_cv_header_stdc" >&6; }
4485if test $ac_cv_header_stdc = yes; then
4486
4487$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4488
4489fi
4490
4491# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4492for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4493		  inttypes.h stdint.h unistd.h
4494do :
4495  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4497"
4498if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4499  cat >>confdefs.h <<_ACEOF
4500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4501_ACEOF
4502
4503fi
4504
4505done
4506
4507
4508
4509  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4510if test "x$ac_cv_header_minix_config_h" = xyes; then :
4511  MINIX=yes
4512else
4513  MINIX=
4514fi
4515
4516
4517  if test "$MINIX" = yes; then
4518
4519$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4520
4521
4522$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4523
4524
4525$as_echo "#define _MINIX 1" >>confdefs.h
4526
4527  fi
4528
4529
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4531$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4532if ${ac_cv_safe_to_define___extensions__+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537
4538#         define __EXTENSIONS__ 1
4539          $ac_includes_default
4540int
4541main ()
4542{
4543
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549  ac_cv_safe_to_define___extensions__=yes
4550else
4551  ac_cv_safe_to_define___extensions__=no
4552fi
4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4556$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4557  test $ac_cv_safe_to_define___extensions__ = yes &&
4558    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4559
4560  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4561
4562  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4563
4564  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4565
4566  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4567
4568
4569
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4572$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4573    # Check whether --enable-maintainer-mode was given.
4574if test "${enable_maintainer_mode+set}" = set; then :
4575  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4576else
4577  USE_MAINTAINER_MODE=no
4578fi
4579
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4581$as_echo "$USE_MAINTAINER_MODE" >&6; }
4582   if test $USE_MAINTAINER_MODE = yes; then
4583  MAINTAINER_MODE_TRUE=
4584  MAINTAINER_MODE_FALSE='#'
4585else
4586  MAINTAINER_MODE_TRUE='#'
4587  MAINTAINER_MODE_FALSE=
4588fi
4589
4590  MAINT=$MAINTAINER_MODE_TRUE
4591
4592
4593
4594# Make sure we can run config.sub.
4595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599$as_echo_n "checking build system type... " >&6; }
4600if ${ac_cv_build+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  ac_build_alias=$build_alias
4604test "x$ac_build_alias" = x &&
4605  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606test "x$ac_build_alias" = x &&
4607  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613$as_echo "$ac_cv_build" >&6; }
4614case $ac_cv_build in
4615*-*-*) ;;
4616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4617esac
4618build=$ac_cv_build
4619ac_save_IFS=$IFS; IFS='-'
4620set x $ac_cv_build
4621shift
4622build_cpu=$1
4623build_vendor=$2
4624shift; shift
4625# Remember, the first character of IFS is used to create $*,
4626# except with old shells:
4627build_os=$*
4628IFS=$ac_save_IFS
4629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633$as_echo_n "checking host system type... " >&6; }
4634if ${ac_cv_host+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  if test "x$host_alias" = x; then
4638  ac_cv_host=$ac_cv_build
4639else
4640  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642fi
4643
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646$as_echo "$ac_cv_host" >&6; }
4647case $ac_cv_host in
4648*-*-*) ;;
4649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4650esac
4651host=$ac_cv_host
4652ac_save_IFS=$IFS; IFS='-'
4653set x $ac_cv_host
4654shift
4655host_cpu=$1
4656host_vendor=$2
4657shift; shift
4658# Remember, the first character of IFS is used to create $*,
4659# except with old shells:
4660host_os=$*
4661IFS=$ac_save_IFS
4662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4663
4664
4665
4666
4667
4668
4669
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4672$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4673set x ${MAKE-make}
4674ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4675if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  cat >conftest.make <<\_ACEOF
4679SHELL = /bin/sh
4680all:
4681	@echo '@@@%%%=$(MAKE)=@@@%%%'
4682_ACEOF
4683# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4684case `${MAKE-make} -f conftest.make 2>/dev/null` in
4685  *@@@%%%=?*=@@@%%%*)
4686    eval ac_cv_prog_make_${ac_make}_set=yes;;
4687  *)
4688    eval ac_cv_prog_make_${ac_make}_set=no;;
4689esac
4690rm -f conftest.make
4691fi
4692if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694$as_echo "yes" >&6; }
4695  SET_MAKE=
4696else
4697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699  SET_MAKE="MAKE=${MAKE-make}"
4700fi
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4703$as_echo_n "checking whether build environment is sane... " >&6; }
4704# Reject unsafe characters in $srcdir or the absolute working directory
4705# name.  Accept space and tab only in the latter.
4706am_lf='
4707'
4708case `pwd` in
4709  *[\\\"\#\$\&\'\`$am_lf]*)
4710    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4711esac
4712case $srcdir in
4713  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4714    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4715esac
4716
4717# Do 'set' in a subshell so we don't clobber the current shell's
4718# arguments.  Must try -L first in case configure is actually a
4719# symlink; some systems play weird games with the mod time of symlinks
4720# (eg FreeBSD returns the mod time of the symlink's containing
4721# directory).
4722if (
4723   am_has_slept=no
4724   for am_try in 1 2; do
4725     echo "timestamp, slept: $am_has_slept" > conftest.file
4726     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4727     if test "$*" = "X"; then
4728	# -L didn't work.
4729	set X `ls -t "$srcdir/configure" conftest.file`
4730     fi
4731     if test "$*" != "X $srcdir/configure conftest.file" \
4732	&& test "$*" != "X conftest.file $srcdir/configure"; then
4733
4734	# If neither matched, then we have a broken ls.  This can happen
4735	# if, for instance, CONFIG_SHELL is bash and it inherits a
4736	# broken ls alias from the environment.  This has actually
4737	# happened.  Such a system could not be considered "sane".
4738	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4739  alias in your environment" "$LINENO" 5
4740     fi
4741     if test "$2" = conftest.file || test $am_try -eq 2; then
4742       break
4743     fi
4744     # Just in case.
4745     sleep 1
4746     am_has_slept=yes
4747   done
4748   test "$2" = conftest.file
4749   )
4750then
4751   # Ok.
4752   :
4753else
4754   as_fn_error $? "newly created file is older than distributed files!
4755Check your system clock" "$LINENO" 5
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758$as_echo "yes" >&6; }
4759# If we didn't sleep, we still need to ensure time stamps of config.status and
4760# generated files are strictly newer.
4761am_sleep_pid=
4762if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4763  ( sleep 1 ) &
4764  am_sleep_pid=$!
4765fi
4766
4767rm -f conftest.file
4768
4769missing_dir=`cd $ac_aux_dir && pwd`
4770
4771ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
4772
4773
4774AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4775
4776
4777AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
4778
4779
4780AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4781
4782
4783MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4784
4785ac_ext=c
4786ac_cpp='$CPP $CPPFLAGS'
4787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790if test -n "$ac_tool_prefix"; then
4791  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4792set dummy ${ac_tool_prefix}gcc; ac_word=$2
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
4795if ${ac_cv_prog_CC+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  if test -n "$CC"; then
4799  ac_cv_prog_CC="$CC" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810    break 2
4811  fi
4812done
4813  done
4814IFS=$as_save_IFS
4815
4816fi
4817fi
4818CC=$ac_cv_prog_CC
4819if test -n "$CC"; then
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4821$as_echo "$CC" >&6; }
4822else
4823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
4825fi
4826
4827
4828fi
4829if test -z "$ac_cv_prog_CC"; then
4830  ac_ct_CC=$CC
4831  # Extract the first word of "gcc", so it can be a program name with args.
4832set dummy gcc; ac_word=$2
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834$as_echo_n "checking for $ac_word... " >&6; }
4835if ${ac_cv_prog_ac_ct_CC+:} false; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838  if test -n "$ac_ct_CC"; then
4839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4840else
4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844  IFS=$as_save_IFS
4845  test -z "$as_dir" && as_dir=.
4846    for ac_exec_ext in '' $ac_executable_extensions; do
4847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4848    ac_cv_prog_ac_ct_CC="gcc"
4849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850    break 2
4851  fi
4852done
4853  done
4854IFS=$as_save_IFS
4855
4856fi
4857fi
4858ac_ct_CC=$ac_cv_prog_ac_ct_CC
4859if test -n "$ac_ct_CC"; then
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4861$as_echo "$ac_ct_CC" >&6; }
4862else
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
4865fi
4866
4867  if test "x$ac_ct_CC" = x; then
4868    CC=""
4869  else
4870    case $cross_compiling:$ac_tool_warned in
4871yes:)
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4874ac_tool_warned=yes ;;
4875esac
4876    CC=$ac_ct_CC
4877  fi
4878else
4879  CC="$ac_cv_prog_CC"
4880fi
4881
4882if test -z "$CC"; then
4883          if test -n "$ac_tool_prefix"; then
4884    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4885set dummy ${ac_tool_prefix}cc; ac_word=$2
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
4888if ${ac_cv_prog_CC+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  if test -n "$CC"; then
4892  ac_cv_prog_CC="$CC" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897  IFS=$as_save_IFS
4898  test -z "$as_dir" && as_dir=.
4899    for ac_exec_ext in '' $ac_executable_extensions; do
4900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901    ac_cv_prog_CC="${ac_tool_prefix}cc"
4902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903    break 2
4904  fi
4905done
4906  done
4907IFS=$as_save_IFS
4908
4909fi
4910fi
4911CC=$ac_cv_prog_CC
4912if test -n "$CC"; then
4913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4914$as_echo "$CC" >&6; }
4915else
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
4918fi
4919
4920
4921  fi
4922fi
4923if test -z "$CC"; then
4924  # Extract the first word of "cc", so it can be a program name with args.
4925set dummy cc; ac_word=$2
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if ${ac_cv_prog_CC+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  if test -n "$CC"; then
4932  ac_cv_prog_CC="$CC" # Let the user override the test.
4933else
4934  ac_prog_rejected=no
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938  IFS=$as_save_IFS
4939  test -z "$as_dir" && as_dir=.
4940    for ac_exec_ext in '' $ac_executable_extensions; do
4941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4943       ac_prog_rejected=yes
4944       continue
4945     fi
4946    ac_cv_prog_CC="cc"
4947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948    break 2
4949  fi
4950done
4951  done
4952IFS=$as_save_IFS
4953
4954if test $ac_prog_rejected = yes; then
4955  # We found a bogon in the path, so make sure we never use it.
4956  set dummy $ac_cv_prog_CC
4957  shift
4958  if test $# != 0; then
4959    # We chose a different compiler from the bogus one.
4960    # However, it has the same basename, so the bogon will be chosen
4961    # first if we set CC to just the basename; use the full file name.
4962    shift
4963    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4964  fi
4965fi
4966fi
4967fi
4968CC=$ac_cv_prog_CC
4969if test -n "$CC"; then
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4971$as_echo "$CC" >&6; }
4972else
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978fi
4979if test -z "$CC"; then
4980  if test -n "$ac_tool_prefix"; then
4981  for ac_prog in cl.exe
4982  do
4983    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
4987if ${ac_cv_prog_CC+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  if test -n "$CC"; then
4991  ac_cv_prog_CC="$CC" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010CC=$ac_cv_prog_CC
5011if test -n "$CC"; then
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5013$as_echo "$CC" >&6; }
5014else
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017fi
5018
5019
5020    test -n "$CC" && break
5021  done
5022fi
5023if test -z "$CC"; then
5024  ac_ct_CC=$CC
5025  for ac_prog in cl.exe
5026do
5027  # Extract the first word of "$ac_prog", so it can be a program name with args.
5028set dummy $ac_prog; ac_word=$2
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
5031if ${ac_cv_prog_ac_ct_CC+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  if test -n "$ac_ct_CC"; then
5035  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  test -z "$as_dir" && as_dir=.
5042    for ac_exec_ext in '' $ac_executable_extensions; do
5043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044    ac_cv_prog_ac_ct_CC="$ac_prog"
5045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046    break 2
5047  fi
5048done
5049  done
5050IFS=$as_save_IFS
5051
5052fi
5053fi
5054ac_ct_CC=$ac_cv_prog_ac_ct_CC
5055if test -n "$ac_ct_CC"; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5057$as_echo "$ac_ct_CC" >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062
5063
5064  test -n "$ac_ct_CC" && break
5065done
5066
5067  if test "x$ac_ct_CC" = x; then
5068    CC=""
5069  else
5070    case $cross_compiling:$ac_tool_warned in
5071yes:)
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074ac_tool_warned=yes ;;
5075esac
5076    CC=$ac_ct_CC
5077  fi
5078fi
5079
5080fi
5081
5082
5083test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5085as_fn_error $? "no acceptable C compiler found in \$PATH
5086See \`config.log' for more details" "$LINENO" 5; }
5087
5088# Provide some information about the compiler.
5089$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5090set X $ac_compile
5091ac_compiler=$2
5092for ac_option in --version -v -V -qversion; do
5093  { { ac_try="$ac_compiler $ac_option >&5"
5094case "(($ac_try" in
5095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096  *) ac_try_echo=$ac_try;;
5097esac
5098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5099$as_echo "$ac_try_echo"; } >&5
5100  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5101  ac_status=$?
5102  if test -s conftest.err; then
5103    sed '10a\
5104... rest of stderr output deleted ...
5105         10q' conftest.err >conftest.er1
5106    cat conftest.er1 >&5
5107  fi
5108  rm -f conftest.er1 conftest.err
5109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110  test $ac_status = 0; }
5111done
5112
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5114$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5115if ${ac_cv_c_compiler_gnu+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120
5121int
5122main ()
5123{
5124#ifndef __GNUC__
5125       choke me
5126#endif
5127
5128  ;
5129  return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"; then :
5133  ac_compiler_gnu=yes
5134else
5135  ac_compiler_gnu=no
5136fi
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138ac_cv_c_compiler_gnu=$ac_compiler_gnu
5139
5140fi
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5142$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5143if test $ac_compiler_gnu = yes; then
5144  GCC=yes
5145else
5146  GCC=
5147fi
5148ac_test_CFLAGS=${CFLAGS+set}
5149ac_save_CFLAGS=$CFLAGS
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5151$as_echo_n "checking whether $CC accepts -g... " >&6; }
5152if ${ac_cv_prog_cc_g+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  ac_save_c_werror_flag=$ac_c_werror_flag
5156   ac_c_werror_flag=yes
5157   ac_cv_prog_cc_g=no
5158   CFLAGS="-g"
5159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160/* end confdefs.h.  */
5161
5162int
5163main ()
5164{
5165
5166  ;
5167  return 0;
5168}
5169_ACEOF
5170if ac_fn_c_try_compile "$LINENO"; then :
5171  ac_cv_prog_cc_g=yes
5172else
5173  CFLAGS=""
5174      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176
5177int
5178main ()
5179{
5180
5181  ;
5182  return 0;
5183}
5184_ACEOF
5185if ac_fn_c_try_compile "$LINENO"; then :
5186
5187else
5188  ac_c_werror_flag=$ac_save_c_werror_flag
5189	 CFLAGS="-g"
5190	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192
5193int
5194main ()
5195{
5196
5197  ;
5198  return 0;
5199}
5200_ACEOF
5201if ac_fn_c_try_compile "$LINENO"; then :
5202  ac_cv_prog_cc_g=yes
5203fi
5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205fi
5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209   ac_c_werror_flag=$ac_save_c_werror_flag
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5212$as_echo "$ac_cv_prog_cc_g" >&6; }
5213if test "$ac_test_CFLAGS" = set; then
5214  CFLAGS=$ac_save_CFLAGS
5215elif test $ac_cv_prog_cc_g = yes; then
5216  if test "$GCC" = yes; then
5217    CFLAGS="-g -O2"
5218  else
5219    CFLAGS="-g"
5220  fi
5221else
5222  if test "$GCC" = yes; then
5223    CFLAGS="-O2"
5224  else
5225    CFLAGS=
5226  fi
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5230if ${ac_cv_prog_cc_c89+:} false; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  ac_cv_prog_cc_c89=no
5234ac_save_CC=$CC
5235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h.  */
5237#include <stdarg.h>
5238#include <stdio.h>
5239struct stat;
5240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5241struct buf { int x; };
5242FILE * (*rcsopen) (struct buf *, struct stat *, int);
5243static char *e (p, i)
5244     char **p;
5245     int i;
5246{
5247  return p[i];
5248}
5249static char *f (char * (*g) (char **, int), char **p, ...)
5250{
5251  char *s;
5252  va_list v;
5253  va_start (v,p);
5254  s = g (p, va_arg (v,int));
5255  va_end (v);
5256  return s;
5257}
5258
5259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5260   function prototypes and stuff, but not '\xHH' hex character constants.
5261   These don't provoke an error unfortunately, instead are silently treated
5262   as 'x'.  The following induces an error, until -std is added to get
5263   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5264   array size at least.  It's necessary to write '\x00'==0 to get something
5265   that's true only with -std.  */
5266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5267
5268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5269   inside strings and character constants.  */
5270#define FOO(x) 'x'
5271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5272
5273int test (int i, double x);
5274struct s1 {int (*f) (int a);};
5275struct s2 {int (*f) (double a);};
5276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5277int argc;
5278char **argv;
5279int
5280main ()
5281{
5282return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5283  ;
5284  return 0;
5285}
5286_ACEOF
5287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5288	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5289do
5290  CC="$ac_save_CC $ac_arg"
5291  if ac_fn_c_try_compile "$LINENO"; then :
5292  ac_cv_prog_cc_c89=$ac_arg
5293fi
5294rm -f core conftest.err conftest.$ac_objext
5295  test "x$ac_cv_prog_cc_c89" != "xno" && break
5296done
5297rm -f conftest.$ac_ext
5298CC=$ac_save_CC
5299
5300fi
5301# AC_CACHE_VAL
5302case "x$ac_cv_prog_cc_c89" in
5303  x)
5304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5305$as_echo "none needed" >&6; } ;;
5306  xno)
5307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5308$as_echo "unsupported" >&6; } ;;
5309  *)
5310    CC="$CC $ac_cv_prog_cc_c89"
5311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5312$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5313esac
5314if test "x$ac_cv_prog_cc_c89" != xno; then :
5315
5316fi
5317
5318ac_ext=c
5319ac_cpp='$CPP $CPPFLAGS'
5320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323
5324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5330$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5331if ${am_cv_prog_cc_c_o+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336
5337int
5338main ()
5339{
5340
5341  ;
5342  return 0;
5343}
5344_ACEOF
5345  # Make sure it works both with $CC and with simple cc.
5346  # Following AC_PROG_CC_C_O, we do the test twice because some
5347  # compilers refuse to overwrite an existing .o file with -o,
5348  # though they will create one.
5349  am_cv_prog_cc_c_o=yes
5350  for am_i in 1 2; do
5351    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5352   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } \
5356         && test -f conftest2.$ac_objext; then
5357      : OK
5358    else
5359      am_cv_prog_cc_c_o=no
5360      break
5361    fi
5362  done
5363  rm -f core conftest*
5364  unset am_i
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5367$as_echo "$am_cv_prog_cc_c_o" >&6; }
5368if test "$am_cv_prog_cc_c_o" != yes; then
5369   # Losing compiler, so override with the script.
5370   # FIXME: It is wrong to rewrite CC.
5371   # But if we don't then we get into trouble of one sort or another.
5372   # A longer-term fix would be to have automake use am__CC in this case,
5373   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5374   CC="$am_aux_dir/compile $CC"
5375fi
5376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
5382
5383depcc="$CC"   am_compiler_list=
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5386$as_echo_n "checking dependency style of $depcc... " >&6; }
5387if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5391  # We make a subdir and do the tests there.  Otherwise we can end up
5392  # making bogus files that we don't know about and never remove.  For
5393  # instance it was reported that on HP-UX the gcc test will end up
5394  # making a dummy file named 'D' -- because '-MD' means "put the output
5395  # in D".
5396  rm -rf conftest.dir
5397  mkdir conftest.dir
5398  # Copy depcomp to subdir because otherwise we won't find it if we're
5399  # using a relative directory.
5400  cp "$am_depcomp" conftest.dir
5401  cd conftest.dir
5402  # We will build objects and dependencies in a subdirectory because
5403  # it helps to detect inapplicable dependency modes.  For instance
5404  # both Tru64's cc and ICC support -MD to output dependencies as a
5405  # side effect of compilation, but ICC will put the dependencies in
5406  # the current directory while Tru64 will put them in the object
5407  # directory.
5408  mkdir sub
5409
5410  am_cv_CC_dependencies_compiler_type=none
5411  if test "$am_compiler_list" = ""; then
5412     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5413  fi
5414  am__universal=false
5415  case " $depcc " in #(
5416     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5417     esac
5418
5419  for depmode in $am_compiler_list; do
5420    # Setup a source with many dependencies, because some compilers
5421    # like to wrap large dependency lists on column 80 (with \), and
5422    # we should not choose a depcomp mode which is confused by this.
5423    #
5424    # We need to recreate these files for each test, as the compiler may
5425    # overwrite some of them when testing with obscure command lines.
5426    # This happens at least with the AIX C compiler.
5427    : > sub/conftest.c
5428    for i in 1 2 3 4 5 6; do
5429      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5430      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5431      # Solaris 10 /bin/sh.
5432      echo '/* dummy */' > sub/conftst$i.h
5433    done
5434    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5435
5436    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5437    # mode.  It turns out that the SunPro C++ compiler does not properly
5438    # handle '-M -o', and we need to detect this.  Also, some Intel
5439    # versions had trouble with output in subdirs.
5440    am__obj=sub/conftest.${OBJEXT-o}
5441    am__minus_obj="-o $am__obj"
5442    case $depmode in
5443    gcc)
5444      # This depmode causes a compiler race in universal mode.
5445      test "$am__universal" = false || continue
5446      ;;
5447    nosideeffect)
5448      # After this tag, mechanisms are not by side-effect, so they'll
5449      # only be used when explicitly requested.
5450      if test "x$enable_dependency_tracking" = xyes; then
5451	continue
5452      else
5453	break
5454      fi
5455      ;;
5456    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5457      # This compiler won't grok '-c -o', but also, the minuso test has
5458      # not run yet.  These depmodes are late enough in the game, and
5459      # so weak that their functioning should not be impacted.
5460      am__obj=conftest.${OBJEXT-o}
5461      am__minus_obj=
5462      ;;
5463    none) break ;;
5464    esac
5465    if depmode=$depmode \
5466       source=sub/conftest.c object=$am__obj \
5467       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5468       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5469         >/dev/null 2>conftest.err &&
5470       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5471       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5472       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5473       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5474      # icc doesn't choke on unknown options, it will just issue warnings
5475      # or remarks (even with -Werror).  So we grep stderr for any message
5476      # that says an option was ignored or not supported.
5477      # When given -MP, icc 7.0 and 7.1 complain thusly:
5478      #   icc: Command line warning: ignoring option '-M'; no argument required
5479      # The diagnosis changed in icc 8.0:
5480      #   icc: Command line remark: option '-MP' not supported
5481      if (grep 'ignoring option' conftest.err ||
5482          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5483        am_cv_CC_dependencies_compiler_type=$depmode
5484        break
5485      fi
5486    fi
5487  done
5488
5489  cd ..
5490  rm -rf conftest.dir
5491else
5492  am_cv_CC_dependencies_compiler_type=none
5493fi
5494
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5497$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5498CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5499
5500 if
5501  test "x$enable_dependency_tracking" != xno \
5502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5503  am__fastdepCC_TRUE=
5504  am__fastdepCC_FALSE='#'
5505else
5506  am__fastdepCC_TRUE='#'
5507  am__fastdepCC_FALSE=
5508fi
5509
5510
5511ac_ext=c
5512ac_cpp='$CPP $CPPFLAGS'
5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5517$as_echo_n "checking how to run the C preprocessor... " >&6; }
5518# On Suns, sometimes $CPP names a directory.
5519if test -n "$CPP" && test -d "$CPP"; then
5520  CPP=
5521fi
5522if test -z "$CPP"; then
5523  if ${ac_cv_prog_CPP+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526      # Double quotes because CPP needs to be expanded
5527    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5528    do
5529      ac_preproc_ok=false
5530for ac_c_preproc_warn_flag in '' yes
5531do
5532  # Use a header file that comes with gcc, so configuring glibc
5533  # with a fresh cross-compiler works.
5534  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535  # <limits.h> exists even on freestanding compilers.
5536  # On the NeXT, cc -E runs the code through the compiler's parser,
5537  # not just through cpp. "Syntax error" is here to catch this case.
5538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539/* end confdefs.h.  */
5540#ifdef __STDC__
5541# include <limits.h>
5542#else
5543# include <assert.h>
5544#endif
5545		     Syntax error
5546_ACEOF
5547if ac_fn_c_try_cpp "$LINENO"; then :
5548
5549else
5550  # Broken: fails on valid input.
5551continue
5552fi
5553rm -f conftest.err conftest.i conftest.$ac_ext
5554
5555  # OK, works on sane cases.  Now check whether nonexistent headers
5556  # can be detected and how.
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559#include <ac_nonexistent.h>
5560_ACEOF
5561if ac_fn_c_try_cpp "$LINENO"; then :
5562  # Broken: success on invalid input.
5563continue
5564else
5565  # Passes both tests.
5566ac_preproc_ok=:
5567break
5568fi
5569rm -f conftest.err conftest.i conftest.$ac_ext
5570
5571done
5572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5573rm -f conftest.i conftest.err conftest.$ac_ext
5574if $ac_preproc_ok; then :
5575  break
5576fi
5577
5578    done
5579    ac_cv_prog_CPP=$CPP
5580
5581fi
5582  CPP=$ac_cv_prog_CPP
5583else
5584  ac_cv_prog_CPP=$CPP
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5587$as_echo "$CPP" >&6; }
5588ac_preproc_ok=false
5589for ac_c_preproc_warn_flag in '' yes
5590do
5591  # Use a header file that comes with gcc, so configuring glibc
5592  # with a fresh cross-compiler works.
5593  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594  # <limits.h> exists even on freestanding compilers.
5595  # On the NeXT, cc -E runs the code through the compiler's parser,
5596  # not just through cpp. "Syntax error" is here to catch this case.
5597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599#ifdef __STDC__
5600# include <limits.h>
5601#else
5602# include <assert.h>
5603#endif
5604		     Syntax error
5605_ACEOF
5606if ac_fn_c_try_cpp "$LINENO"; then :
5607
5608else
5609  # Broken: fails on valid input.
5610continue
5611fi
5612rm -f conftest.err conftest.i conftest.$ac_ext
5613
5614  # OK, works on sane cases.  Now check whether nonexistent headers
5615  # can be detected and how.
5616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h.  */
5618#include <ac_nonexistent.h>
5619_ACEOF
5620if ac_fn_c_try_cpp "$LINENO"; then :
5621  # Broken: success on invalid input.
5622continue
5623else
5624  # Passes both tests.
5625ac_preproc_ok=:
5626break
5627fi
5628rm -f conftest.err conftest.i conftest.$ac_ext
5629
5630done
5631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5632rm -f conftest.i conftest.err conftest.$ac_ext
5633if $ac_preproc_ok; then :
5634
5635else
5636  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5638as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5639See \`config.log' for more details" "$LINENO" 5; }
5640fi
5641
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648
5649if test -n "$ac_tool_prefix"; then
5650  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5651set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if ${ac_cv_prog_RANLIB+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  if test -n "$RANLIB"; then
5658  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665    for ac_exec_ext in '' $ac_executable_extensions; do
5666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669    break 2
5670  fi
5671done
5672  done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677RANLIB=$ac_cv_prog_RANLIB
5678if test -n "$RANLIB"; then
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5680$as_echo "$RANLIB" >&6; }
5681else
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686
5687fi
5688if test -z "$ac_cv_prog_RANLIB"; then
5689  ac_ct_RANLIB=$RANLIB
5690  # Extract the first word of "ranlib", so it can be a program name with args.
5691set dummy ranlib; ac_word=$2
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693$as_echo_n "checking for $ac_word... " >&6; }
5694if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  if test -n "$ac_ct_RANLIB"; then
5698  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703  IFS=$as_save_IFS
5704  test -z "$as_dir" && as_dir=.
5705    for ac_exec_ext in '' $ac_executable_extensions; do
5706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707    ac_cv_prog_ac_ct_RANLIB="ranlib"
5708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709    break 2
5710  fi
5711done
5712  done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718if test -n "$ac_ct_RANLIB"; then
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5720$as_echo "$ac_ct_RANLIB" >&6; }
5721else
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725
5726  if test "x$ac_ct_RANLIB" = x; then
5727    RANLIB=":"
5728  else
5729    case $cross_compiling:$ac_tool_warned in
5730yes:)
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733ac_tool_warned=yes ;;
5734esac
5735    RANLIB=$ac_ct_RANLIB
5736  fi
5737else
5738  RANLIB="$ac_cv_prog_RANLIB"
5739fi
5740
5741# We need to check for cplusplus here because we may not do the test
5742# for Qt and autoconf does does not allow that.
5743ac_ext=cpp
5744ac_cpp='$CXXCPP $CPPFLAGS'
5745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748if test -z "$CXX"; then
5749  if test -n "$CCC"; then
5750    CXX=$CCC
5751  else
5752    if test -n "$ac_tool_prefix"; then
5753  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5754  do
5755    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5756set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if ${ac_cv_prog_CXX+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  if test -n "$CXX"; then
5763  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770    for ac_exec_ext in '' $ac_executable_extensions; do
5771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777  done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782CXX=$ac_cv_prog_CXX
5783if test -n "$CXX"; then
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5785$as_echo "$CXX" >&6; }
5786else
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791
5792    test -n "$CXX" && break
5793  done
5794fi
5795if test -z "$CXX"; then
5796  ac_ct_CXX=$CXX
5797  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5798do
5799  # Extract the first word of "$ac_prog", so it can be a program name with args.
5800set dummy $ac_prog; ac_word=$2
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802$as_echo_n "checking for $ac_word... " >&6; }
5803if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  if test -n "$ac_ct_CXX"; then
5807  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814    for ac_exec_ext in '' $ac_executable_extensions; do
5815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816    ac_cv_prog_ac_ct_CXX="$ac_prog"
5817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821  done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5827if test -n "$ac_ct_CXX"; then
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5829$as_echo "$ac_ct_CXX" >&6; }
5830else
5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833fi
5834
5835
5836  test -n "$ac_ct_CXX" && break
5837done
5838
5839  if test "x$ac_ct_CXX" = x; then
5840    CXX="g++"
5841  else
5842    case $cross_compiling:$ac_tool_warned in
5843yes:)
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5846ac_tool_warned=yes ;;
5847esac
5848    CXX=$ac_ct_CXX
5849  fi
5850fi
5851
5852  fi
5853fi
5854# Provide some information about the compiler.
5855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5856set X $ac_compile
5857ac_compiler=$2
5858for ac_option in --version -v -V -qversion; do
5859  { { ac_try="$ac_compiler $ac_option >&5"
5860case "(($ac_try" in
5861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862  *) ac_try_echo=$ac_try;;
5863esac
5864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5865$as_echo "$ac_try_echo"; } >&5
5866  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5867  ac_status=$?
5868  if test -s conftest.err; then
5869    sed '10a\
5870... rest of stderr output deleted ...
5871         10q' conftest.err >conftest.er1
5872    cat conftest.er1 >&5
5873  fi
5874  rm -f conftest.er1 conftest.err
5875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876  test $ac_status = 0; }
5877done
5878
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5880$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5881if ${ac_cv_cxx_compiler_gnu+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886
5887int
5888main ()
5889{
5890#ifndef __GNUC__
5891       choke me
5892#endif
5893
5894  ;
5895  return 0;
5896}
5897_ACEOF
5898if ac_fn_cxx_try_compile "$LINENO"; then :
5899  ac_compiler_gnu=yes
5900else
5901  ac_compiler_gnu=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5905
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5908$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5909if test $ac_compiler_gnu = yes; then
5910  GXX=yes
5911else
5912  GXX=
5913fi
5914ac_test_CXXFLAGS=${CXXFLAGS+set}
5915ac_save_CXXFLAGS=$CXXFLAGS
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5917$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5918if ${ac_cv_prog_cxx_g+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5922   ac_cxx_werror_flag=yes
5923   ac_cv_prog_cxx_g=no
5924   CXXFLAGS="-g"
5925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927
5928int
5929main ()
5930{
5931
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_cxx_try_compile "$LINENO"; then :
5937  ac_cv_prog_cxx_g=yes
5938else
5939  CXXFLAGS=""
5940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942
5943int
5944main ()
5945{
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_cxx_try_compile "$LINENO"; then :
5952
5953else
5954  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5955	 CXXFLAGS="-g"
5956	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958
5959int
5960main ()
5961{
5962
5963  ;
5964  return 0;
5965}
5966_ACEOF
5967if ac_fn_cxx_try_compile "$LINENO"; then :
5968  ac_cv_prog_cxx_g=yes
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971fi
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5976fi
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5978$as_echo "$ac_cv_prog_cxx_g" >&6; }
5979if test "$ac_test_CXXFLAGS" = set; then
5980  CXXFLAGS=$ac_save_CXXFLAGS
5981elif test $ac_cv_prog_cxx_g = yes; then
5982  if test "$GXX" = yes; then
5983    CXXFLAGS="-g -O2"
5984  else
5985    CXXFLAGS="-g"
5986  fi
5987else
5988  if test "$GXX" = yes; then
5989    CXXFLAGS="-O2"
5990  else
5991    CXXFLAGS=
5992  fi
5993fi
5994ac_ext=c
5995ac_cpp='$CPP $CPPFLAGS'
5996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999
6000depcc="$CXX"  am_compiler_list=
6001
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6003$as_echo_n "checking dependency style of $depcc... " >&6; }
6004if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6008  # We make a subdir and do the tests there.  Otherwise we can end up
6009  # making bogus files that we don't know about and never remove.  For
6010  # instance it was reported that on HP-UX the gcc test will end up
6011  # making a dummy file named 'D' -- because '-MD' means "put the output
6012  # in D".
6013  rm -rf conftest.dir
6014  mkdir conftest.dir
6015  # Copy depcomp to subdir because otherwise we won't find it if we're
6016  # using a relative directory.
6017  cp "$am_depcomp" conftest.dir
6018  cd conftest.dir
6019  # We will build objects and dependencies in a subdirectory because
6020  # it helps to detect inapplicable dependency modes.  For instance
6021  # both Tru64's cc and ICC support -MD to output dependencies as a
6022  # side effect of compilation, but ICC will put the dependencies in
6023  # the current directory while Tru64 will put them in the object
6024  # directory.
6025  mkdir sub
6026
6027  am_cv_CXX_dependencies_compiler_type=none
6028  if test "$am_compiler_list" = ""; then
6029     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6030  fi
6031  am__universal=false
6032  case " $depcc " in #(
6033     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6034     esac
6035
6036  for depmode in $am_compiler_list; do
6037    # Setup a source with many dependencies, because some compilers
6038    # like to wrap large dependency lists on column 80 (with \), and
6039    # we should not choose a depcomp mode which is confused by this.
6040    #
6041    # We need to recreate these files for each test, as the compiler may
6042    # overwrite some of them when testing with obscure command lines.
6043    # This happens at least with the AIX C compiler.
6044    : > sub/conftest.c
6045    for i in 1 2 3 4 5 6; do
6046      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6047      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6048      # Solaris 10 /bin/sh.
6049      echo '/* dummy */' > sub/conftst$i.h
6050    done
6051    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6052
6053    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6054    # mode.  It turns out that the SunPro C++ compiler does not properly
6055    # handle '-M -o', and we need to detect this.  Also, some Intel
6056    # versions had trouble with output in subdirs.
6057    am__obj=sub/conftest.${OBJEXT-o}
6058    am__minus_obj="-o $am__obj"
6059    case $depmode in
6060    gcc)
6061      # This depmode causes a compiler race in universal mode.
6062      test "$am__universal" = false || continue
6063      ;;
6064    nosideeffect)
6065      # After this tag, mechanisms are not by side-effect, so they'll
6066      # only be used when explicitly requested.
6067      if test "x$enable_dependency_tracking" = xyes; then
6068	continue
6069      else
6070	break
6071      fi
6072      ;;
6073    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6074      # This compiler won't grok '-c -o', but also, the minuso test has
6075      # not run yet.  These depmodes are late enough in the game, and
6076      # so weak that their functioning should not be impacted.
6077      am__obj=conftest.${OBJEXT-o}
6078      am__minus_obj=
6079      ;;
6080    none) break ;;
6081    esac
6082    if depmode=$depmode \
6083       source=sub/conftest.c object=$am__obj \
6084       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6085       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6086         >/dev/null 2>conftest.err &&
6087       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6088       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6089       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6090       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6091      # icc doesn't choke on unknown options, it will just issue warnings
6092      # or remarks (even with -Werror).  So we grep stderr for any message
6093      # that says an option was ignored or not supported.
6094      # When given -MP, icc 7.0 and 7.1 complain thusly:
6095      #   icc: Command line warning: ignoring option '-M'; no argument required
6096      # The diagnosis changed in icc 8.0:
6097      #   icc: Command line remark: option '-MP' not supported
6098      if (grep 'ignoring option' conftest.err ||
6099          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6100        am_cv_CXX_dependencies_compiler_type=$depmode
6101        break
6102      fi
6103    fi
6104  done
6105
6106  cd ..
6107  rm -rf conftest.dir
6108else
6109  am_cv_CXX_dependencies_compiler_type=none
6110fi
6111
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6114$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6115CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6116
6117 if
6118  test "x$enable_dependency_tracking" != xno \
6119  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6120  am__fastdepCXX_TRUE=
6121  am__fastdepCXX_FALSE='#'
6122else
6123  am__fastdepCXX_TRUE='#'
6124  am__fastdepCXX_FALSE=
6125fi
6126
6127
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6129$as_echo_n "checking whether ln -s works... " >&6; }
6130LN_S=$as_ln_s
6131if test "$LN_S" = "ln -s"; then
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6133$as_echo "yes" >&6; }
6134else
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6136$as_echo "no, using $LN_S" >&6; }
6137fi
6138
6139
6140
6141if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6142	if test -n "$ac_tool_prefix"; then
6143  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if ${ac_cv_path_PKG_CONFIG+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  case $PKG_CONFIG in
6151  [\\/]* | ?:[\\/]*)
6152  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6153  ;;
6154  *)
6155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158  IFS=$as_save_IFS
6159  test -z "$as_dir" && as_dir=.
6160    for ac_exec_ext in '' $ac_executable_extensions; do
6161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164    break 2
6165  fi
6166done
6167  done
6168IFS=$as_save_IFS
6169
6170  ;;
6171esac
6172fi
6173PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6174if test -n "$PKG_CONFIG"; then
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6176$as_echo "$PKG_CONFIG" >&6; }
6177else
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180fi
6181
6182
6183fi
6184if test -z "$ac_cv_path_PKG_CONFIG"; then
6185  ac_pt_PKG_CONFIG=$PKG_CONFIG
6186  # Extract the first word of "pkg-config", so it can be a program name with args.
6187set dummy pkg-config; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
6190if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  case $ac_pt_PKG_CONFIG in
6194  [\\/]* | ?:[\\/]*)
6195  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6196  ;;
6197  *)
6198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213  ;;
6214esac
6215fi
6216ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6217if test -n "$ac_pt_PKG_CONFIG"; then
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6219$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6220else
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222$as_echo "no" >&6; }
6223fi
6224
6225  if test "x$ac_pt_PKG_CONFIG" = x; then
6226    PKG_CONFIG=""
6227  else
6228    case $cross_compiling:$ac_tool_warned in
6229yes:)
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232ac_tool_warned=yes ;;
6233esac
6234    PKG_CONFIG=$ac_pt_PKG_CONFIG
6235  fi
6236else
6237  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6238fi
6239
6240fi
6241if test -n "$PKG_CONFIG"; then
6242	_pkg_min_version=0.9.0
6243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6244$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6245	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6247$as_echo "yes" >&6; }
6248	else
6249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
6251		PKG_CONFIG=""
6252	fi
6253
6254fi
6255if test -n "$ac_tool_prefix"; then
6256  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6257set dummy ${ac_tool_prefix}windres; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
6260if ${ac_cv_prog_WINDRES+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  if test -n "$WINDRES"; then
6264  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269  IFS=$as_save_IFS
6270  test -z "$as_dir" && as_dir=.
6271    for ac_exec_ext in '' $ac_executable_extensions; do
6272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275    break 2
6276  fi
6277done
6278  done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283WINDRES=$ac_cv_prog_WINDRES
6284if test -n "$WINDRES"; then
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6286$as_echo "$WINDRES" >&6; }
6287else
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292
6293fi
6294if test -z "$ac_cv_prog_WINDRES"; then
6295  ac_ct_WINDRES=$WINDRES
6296  # Extract the first word of "windres", so it can be a program name with args.
6297set dummy windres; ac_word=$2
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299$as_echo_n "checking for $ac_word... " >&6; }
6300if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  if test -n "$ac_ct_WINDRES"; then
6304  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311    for ac_exec_ext in '' $ac_executable_extensions; do
6312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_ac_ct_WINDRES="windres"
6314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318  done
6319IFS=$as_save_IFS
6320
6321fi
6322fi
6323ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6324if test -n "$ac_ct_WINDRES"; then
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6326$as_echo "$ac_ct_WINDRES" >&6; }
6327else
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329$as_echo "no" >&6; }
6330fi
6331
6332  if test "x$ac_ct_WINDRES" = x; then
6333    WINDRES=":"
6334  else
6335    case $cross_compiling:$ac_tool_warned in
6336yes:)
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339ac_tool_warned=yes ;;
6340esac
6341    WINDRES=$ac_ct_WINDRES
6342  fi
6343else
6344  WINDRES="$ac_cv_prog_WINDRES"
6345fi
6346
6347for ac_prog in gitlog-to-changelog
6348do
6349  # Extract the first word of "$ac_prog", so it can be a program name with args.
6350set dummy $ac_prog; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
6353if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6354  $as_echo_n "(cached) " >&6
6355else
6356  if test -n "$GITLOG_TO_CHANGELOG"; then
6357  ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366    ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6377if test -n "$GITLOG_TO_CHANGELOG"; then
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6379$as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6380else
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386  test -n "$GITLOG_TO_CHANGELOG" && break
6387done
6388test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="build-aux/gitlog-to-changelog"
6389
6390
6391
6392have_dosish_system=no
6393have_w32_system=no
6394have_w32ce_system=no
6395case "${host}" in
6396    *-mingw32*)
6397
6398$as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
6399
6400        have_dosish_system=yes
6401        have_w32_system=yes
6402        case "${host}" in
6403          *-mingw32ce*)
6404            have_w32ce_system=yes
6405            ;;
6406          *)
6407
6408$as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
6409
6410            ;;
6411        esac
6412        ;;
6413    i?86-emx-os2 | i?86-*-os2*emx )
6414        # OS/2 with the EMX environment
6415        $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
6416
6417        have_dosish_system=yes
6418        ;;
6419
6420    i?86-*-msdosdjgpp*)
6421        # DOS with the DJGPP environment
6422        $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
6423
6424        have_dosish_system=yes
6425        ;;
6426esac
6427
6428if test "$have_dosish_system" = yes; then
6429
6430$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
6431
6432fi
6433 if test "$have_dosish_system" = yes; then
6434  HAVE_DOSISH_SYSTEM_TRUE=
6435  HAVE_DOSISH_SYSTEM_FALSE='#'
6436else
6437  HAVE_DOSISH_SYSTEM_TRUE='#'
6438  HAVE_DOSISH_SYSTEM_FALSE=
6439fi
6440
6441
6442if test "$have_w32_system" = yes; then
6443
6444$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
6445
6446   if test "$have_w32ce_system" = yes; then
6447
6448$as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
6449
6450   fi
6451fi
6452 if test "$have_w32_system" = yes; then
6453  HAVE_W32_SYSTEM_TRUE=
6454  HAVE_W32_SYSTEM_FALSE='#'
6455else
6456  HAVE_W32_SYSTEM_TRUE='#'
6457  HAVE_W32_SYSTEM_FALSE=
6458fi
6459
6460 if test "$have_w32ce_system" = yes; then
6461  HAVE_W32CE_SYSTEM_TRUE=
6462  HAVE_W32CE_SYSTEM_FALSE='#'
6463else
6464  HAVE_W32CE_SYSTEM_TRUE='#'
6465  HAVE_W32CE_SYSTEM_FALSE=
6466fi
6467
6468
6469
6470
6471
6472if test "$GCC" = yes; then
6473    # Check whether gcc does not emit a diagnositc for unknown -Wno-*
6474    # options.  This is the case for gcc >= 4.6
6475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
6476$as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
6477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479
6480#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
6481#kickerror
6482#endif
6483int
6484main ()
6485{
6486
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491if ac_fn_c_try_compile "$LINENO"; then :
6492  _gcc_silent_wno=yes
6493else
6494  _gcc_silent_wno=no
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
6498$as_echo "$_gcc_silent_wno" >&6; }
6499
6500    if test "$USE_MAINTAINER_MODE" = "yes"; then
6501        CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
6502        CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
6503
6504        if test x"$_gcc_silent_wno" = xyes ; then
6505          _gcc_warn=yes
6506        else
6507          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
6508$as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
6509          _gcc_cflags_save=$CFLAGS
6510          CFLAGS="-Wno-missing-field-initializers"
6511          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513
6514int
6515main ()
6516{
6517
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_compile "$LINENO"; then :
6523  _gcc_warn=yes
6524else
6525  _gcc_warn=no
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_warn" >&5
6529$as_echo "$_gcc_warn" >&6; }
6530          CFLAGS=$_gcc_cflags_save;
6531        fi
6532        if test x"$_gcc_warn" = xyes ; then
6533          CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
6534        fi
6535
6536        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
6537$as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
6538        _gcc_cflags_save=$CFLAGS
6539        CFLAGS="-Wdeclaration-after-statement"
6540        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542
6543int
6544main ()
6545{
6546
6547  ;
6548  return 0;
6549}
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"; then :
6552  _gcc_warn=yes
6553else
6554  _gcc_warn=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_warn" >&5
6558$as_echo "$_gcc_warn" >&6; }
6559        CFLAGS=$_gcc_cflags_save;
6560        if test x"$_gcc_warn" = xyes ; then
6561          CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6562        fi
6563
6564    else
6565        # Not in maintainer mode: Use standard warnings.
6566        CFLAGS="$CFLAGS -Wall"
6567    fi
6568
6569    CPPFLAGS="$CPPFLAGS -Wall"
6570
6571    if test x"$_gcc_silent_wno" = xyes ; then
6572      _gcc_warn=yes
6573    else
6574      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
6575$as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
6576      _gcc_cflags_save=$CFLAGS
6577      CFLAGS="-Wno-pointer-sign"
6578      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580
6581int
6582main ()
6583{
6584
6585  ;
6586  return 0;
6587}
6588_ACEOF
6589if ac_fn_c_try_compile "$LINENO"; then :
6590  _gcc_warn=yes
6591else
6592  _gcc_warn=no
6593fi
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_warn" >&5
6596$as_echo "$_gcc_warn" >&6; }
6597      CFLAGS=$_gcc_cflags_save;
6598    fi
6599    if test x"$_gcc_warn" = xyes ; then
6600       CFLAGS="$CFLAGS -Wno-pointer-sign"
6601    fi
6602
6603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
6604$as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
6605    _gcc_cflags_save=$CFLAGS
6606    CFLAGS="-Wpointer-arith"
6607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h.  */
6609
6610int
6611main ()
6612{
6613
6614  ;
6615  return 0;
6616}
6617_ACEOF
6618if ac_fn_c_try_compile "$LINENO"; then :
6619  _gcc_warn=yes
6620else
6621  _gcc_warn=no
6622fi
6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_warn" >&5
6625$as_echo "$_gcc_warn" >&6; }
6626    CFLAGS=$_gcc_cflags_save;
6627    if test x"$_gcc_warn" = xyes ; then
6628       CFLAGS="$CFLAGS -Wpointer-arith"
6629    fi
6630fi
6631
6632
6633# Checks for header files.
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6635$as_echo_n "checking for ANSI C header files... " >&6; }
6636if ${ac_cv_header_stdc+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641#include <stdlib.h>
6642#include <stdarg.h>
6643#include <string.h>
6644#include <float.h>
6645
6646int
6647main ()
6648{
6649
6650  ;
6651  return 0;
6652}
6653_ACEOF
6654if ac_fn_c_try_compile "$LINENO"; then :
6655  ac_cv_header_stdc=yes
6656else
6657  ac_cv_header_stdc=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660
6661if test $ac_cv_header_stdc = yes; then
6662  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665#include <string.h>
6666
6667_ACEOF
6668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6669  $EGREP "memchr" >/dev/null 2>&1; then :
6670
6671else
6672  ac_cv_header_stdc=no
6673fi
6674rm -f conftest*
6675
6676fi
6677
6678if test $ac_cv_header_stdc = yes; then
6679  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682#include <stdlib.h>
6683
6684_ACEOF
6685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6686  $EGREP "free" >/dev/null 2>&1; then :
6687
6688else
6689  ac_cv_header_stdc=no
6690fi
6691rm -f conftest*
6692
6693fi
6694
6695if test $ac_cv_header_stdc = yes; then
6696  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6697  if test "$cross_compiling" = yes; then :
6698  :
6699else
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702#include <ctype.h>
6703#include <stdlib.h>
6704#if ((' ' & 0x0FF) == 0x020)
6705# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6706# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6707#else
6708# define ISLOWER(c) \
6709		   (('a' <= (c) && (c) <= 'i') \
6710		     || ('j' <= (c) && (c) <= 'r') \
6711		     || ('s' <= (c) && (c) <= 'z'))
6712# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6713#endif
6714
6715#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6716int
6717main ()
6718{
6719  int i;
6720  for (i = 0; i < 256; i++)
6721    if (XOR (islower (i), ISLOWER (i))
6722	|| toupper (i) != TOUPPER (i))
6723      return 2;
6724  return 0;
6725}
6726_ACEOF
6727if ac_fn_c_try_run "$LINENO"; then :
6728
6729else
6730  ac_cv_header_stdc=no
6731fi
6732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6733  conftest.$ac_objext conftest.beam conftest.$ac_ext
6734fi
6735
6736fi
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6739$as_echo "$ac_cv_header_stdc" >&6; }
6740if test $ac_cv_header_stdc = yes; then
6741
6742$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6743
6744fi
6745
6746for ac_header in string.h unistd.h langinfo.h termio.h locale.h utime.h wchar.h
6747do :
6748  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6749ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6751  cat >>confdefs.h <<_ACEOF
6752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6753_ACEOF
6754
6755fi
6756
6757done
6758
6759
6760for ac_func in seteuid stpcpy mmap stat
6761do :
6762  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6763ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6764if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6765  cat >>confdefs.h <<_ACEOF
6766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6767_ACEOF
6768
6769fi
6770done
6771
6772 for ac_func in mlock
6773do :
6774  ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
6775if test "x$ac_cv_func_mlock" = xyes; then :
6776  cat >>confdefs.h <<_ACEOF
6777#define HAVE_MLOCK 1
6778_ACEOF
6779
6780fi
6781done
6782
6783    if test "$ac_cv_func_mlock" = "no"; then
6784        for ac_header in sys/mman.h
6785do :
6786  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6787if test "x$ac_cv_header_sys_mman_h" = xyes; then :
6788  cat >>confdefs.h <<_ACEOF
6789#define HAVE_SYS_MMAN_H 1
6790_ACEOF
6791
6792fi
6793
6794done
6795
6796        if test "$ac_cv_header_sys_mman_h" = "yes"; then
6797            # Add librt to LIBS:
6798            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
6799$as_echo_n "checking for memlk in -lrt... " >&6; }
6800if ${ac_cv_lib_rt_memlk+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  ac_check_lib_save_LIBS=$LIBS
6804LIBS="-lrt  $LIBS"
6805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807
6808/* Override any GCC internal prototype to avoid an error.
6809   Use char because int might match the return type of a GCC
6810   builtin and then its argument prototype would still apply.  */
6811#ifdef __cplusplus
6812extern "C"
6813#endif
6814char memlk ();
6815int
6816main ()
6817{
6818return memlk ();
6819  ;
6820  return 0;
6821}
6822_ACEOF
6823if ac_fn_c_try_link "$LINENO"; then :
6824  ac_cv_lib_rt_memlk=yes
6825else
6826  ac_cv_lib_rt_memlk=no
6827fi
6828rm -f core conftest.err conftest.$ac_objext \
6829    conftest$ac_exeext conftest.$ac_ext
6830LIBS=$ac_check_lib_save_LIBS
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
6833$as_echo "$ac_cv_lib_rt_memlk" >&6; }
6834if test "x$ac_cv_lib_rt_memlk" = xyes; then :
6835  cat >>confdefs.h <<_ACEOF
6836#define HAVE_LIBRT 1
6837_ACEOF
6838
6839  LIBS="-lrt $LIBS"
6840
6841fi
6842
6843            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
6844$as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
6845if ${gnupg_cv_mlock_is_in_sys_mman+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850
6851                    #include <assert.h>
6852                    #ifdef HAVE_SYS_MMAN_H
6853                    #include <sys/mman.h>
6854                    #endif
6855
6856int
6857main ()
6858{
6859
6860                    int i;
6861
6862                    /* glibc defines this for functions which it implements
6863                     * to always fail with ENOSYS.  Some functions are actually
6864                     * named something starting with __ and the normal name
6865                     * is an alias.  */
6866                    #if defined (__stub_mlock) || defined (__stub___mlock)
6867                    choke me
6868                    #else
6869                    mlock(&i, 4);
6870                    #endif
6871                    ; return 0;
6872
6873  ;
6874  return 0;
6875}
6876_ACEOF
6877if ac_fn_c_try_link "$LINENO"; then :
6878  gnupg_cv_mlock_is_in_sys_mman=yes
6879else
6880  gnupg_cv_mlock_is_in_sys_mman=no
6881fi
6882rm -f core conftest.err conftest.$ac_objext \
6883    conftest$ac_exeext conftest.$ac_ext
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
6886$as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
6887            if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
6888
6889$as_echo "#define HAVE_MLOCK 1" >>confdefs.h
6890
6891            fi
6892        fi
6893    fi
6894    if test "$ac_cv_func_mlock" = "yes"; then
6895        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
6896$as_echo_n "checking whether mlock is broken... " >&6; }
6897          if ${gnupg_cv_have_broken_mlock+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  if test "$cross_compiling" = yes; then :
6901  gnupg_cv_have_broken_mlock="assume-no"
6902
6903else
6904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905/* end confdefs.h.  */
6906
6907                #include <stdlib.h>
6908                #include <unistd.h>
6909                #include <errno.h>
6910                #include <sys/mman.h>
6911                #include <sys/types.h>
6912                #include <fcntl.h>
6913
6914                int main()
6915                {
6916                    char *pool;
6917                    int err;
6918                    long int pgsize = getpagesize();
6919
6920                    pool = malloc( 4096 + pgsize );
6921                    if( !pool )
6922                        return 2;
6923                    pool += (pgsize - ((long int)pool % pgsize));
6924
6925                    err = mlock( pool, 4096 );
6926                    if( !err || errno == EPERM )
6927                        return 0; /* okay */
6928
6929                    return 1;  /* hmmm */
6930                }
6931
6932
6933_ACEOF
6934if ac_fn_c_try_run "$LINENO"; then :
6935  gnupg_cv_have_broken_mlock="no"
6936else
6937  gnupg_cv_have_broken_mlock="yes"
6938fi
6939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6940  conftest.$ac_objext conftest.beam conftest.$ac_ext
6941fi
6942
6943
6944fi
6945
6946         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
6947
6948$as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
6949
6950             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6951$as_echo "yes" >&6; }
6952             for ac_func in plock
6953do :
6954  ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
6955if test "x$ac_cv_func_plock" = xyes; then :
6956  cat >>confdefs.h <<_ACEOF
6957#define HAVE_PLOCK 1
6958_ACEOF
6959
6960fi
6961done
6962
6963         else
6964            if test "$gnupg_cv_have_broken_mlock" = "no"; then
6965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
6967            else
6968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
6969$as_echo "assuming no" >&6; }
6970            fi
6971         fi
6972    fi
6973
6974
6975ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6976case $ac_cv_c_uint32_t in #(
6977  no|yes) ;; #(
6978  *)
6979
6980$as_echo "#define _UINT32_T 1" >>confdefs.h
6981
6982
6983cat >>confdefs.h <<_ACEOF
6984#define uint32_t $ac_cv_c_uint32_t
6985_ACEOF
6986;;
6987  esac
6988
6989
6990# Common libraries and cflags.
6991COMMON_CFLAGS=
6992COMMON_LIBS=
6993
6994
6995
6996#
6997# libgpg-error is a library with error codes shared between GnuPG
6998# related projects.
6999#
7000NEED_GPG_ERROR_VERSION=1.16
7001have_gpg_error=no
7002
7003
7004  gpg_error_config_prefix=""
7005
7006# Check whether --with-libgpg-error-prefix was given.
7007if test "${with_libgpg_error_prefix+set}" = set; then :
7008  withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
7009fi
7010
7011
7012
7013# Check whether --with-gpg-error-prefix was given.
7014if test "${with_gpg_error_prefix+set}" = set; then :
7015  withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
7016fi
7017
7018
7019  if test x"${GPG_ERROR_CONFIG}" = x ; then
7020     if test x"${gpg_error_config_prefix}" != x ; then
7021        GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
7022     else
7023       case "${SYSROOT}" in
7024         /*)
7025           if test -x "${SYSROOT}/bin/gpg-error-config" ; then
7026             GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
7027           fi
7028           ;;
7029         '')
7030           ;;
7031          *)
7032           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
7033$as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
7034           ;;
7035       esac
7036     fi
7037  fi
7038
7039  # Extract the first word of "gpg-error-config", so it can be a program name with args.
7040set dummy gpg-error-config; ac_word=$2
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042$as_echo_n "checking for $ac_word... " >&6; }
7043if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
7044  $as_echo_n "(cached) " >&6
7045else
7046  case $GPG_ERROR_CONFIG in
7047  [\\/]* | ?:[\\/]*)
7048  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
7049  ;;
7050  *)
7051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054  IFS=$as_save_IFS
7055  test -z "$as_dir" && as_dir=.
7056    for ac_exec_ext in '' $ac_executable_extensions; do
7057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060    break 2
7061  fi
7062done
7063  done
7064IFS=$as_save_IFS
7065
7066  test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
7067  ;;
7068esac
7069fi
7070GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
7071if test -n "$GPG_ERROR_CONFIG"; then
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
7073$as_echo "$GPG_ERROR_CONFIG" >&6; }
7074else
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079
7080  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
7081  ok=no
7082
7083  if test "$prefix" = NONE ; then
7084    prefix_option_expanded=/usr/local
7085  else
7086    prefix_option_expanded="$prefix"
7087  fi
7088  if test "$exec_prefix" = NONE ; then
7089    exec_prefix_option_expanded=$prefix_option_expanded
7090  else
7091    exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
7092  fi
7093  libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
7094
7095  if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
7096    gpgrt_libdir=$libdir_option_expanded
7097  else
7098    if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
7099      if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
7100        if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
7101          gpgrt_libdir=$possible_libdir
7102        fi
7103      fi
7104    fi
7105  fi
7106
7107  if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
7108    # Extract the first word of "gpgrt-config", so it can be a program name with args.
7109set dummy gpgrt-config; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  case $GPGRT_CONFIG in
7116  [\\/]* | ?:[\\/]*)
7117  ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
7118  ;;
7119  *)
7120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123  IFS=$as_save_IFS
7124  test -z "$as_dir" && as_dir=.
7125    for ac_exec_ext in '' $ac_executable_extensions; do
7126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127    ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129    break 2
7130  fi
7131done
7132  done
7133IFS=$as_save_IFS
7134
7135  test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
7136  ;;
7137esac
7138fi
7139GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
7140if test -n "$GPGRT_CONFIG"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
7142$as_echo "$GPGRT_CONFIG" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148
7149    if test "$GPGRT_CONFIG" = "no"; then
7150      unset GPGRT_CONFIG
7151    else
7152      GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
7153      if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
7154        GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
7155        { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
7156$as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
7157        gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
7158      else
7159        unset GPGRT_CONFIG
7160      fi
7161    fi
7162  else
7163    gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
7164  fi
7165  if test "$GPG_ERROR_CONFIG" != "no"; then
7166    req_major=`echo $min_gpg_error_version | \
7167               sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
7168    req_minor=`echo $min_gpg_error_version | \
7169               sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
7170    major=`echo $gpg_error_config_version | \
7171               sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7172    minor=`echo $gpg_error_config_version | \
7173               sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7174    if test "$major" -gt "$req_major"; then
7175        ok=yes
7176    else
7177        if test "$major" -eq "$req_major"; then
7178            if test "$minor" -ge "$req_minor"; then
7179               ok=yes
7180            fi
7181        fi
7182    fi
7183    if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
7184      if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
7185        # Extract the first word of "gpgrt-config", so it can be a program name with args.
7186set dummy gpgrt-config; ac_word=$2
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188$as_echo_n "checking for $ac_word... " >&6; }
7189if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  case $GPGRT_CONFIG in
7193  [\\/]* | ?:[\\/]*)
7194  ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
7195  ;;
7196  *)
7197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202    for ac_exec_ext in '' $ac_executable_extensions; do
7203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204    ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209  done
7210IFS=$as_save_IFS
7211
7212  test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
7213  ;;
7214esac
7215fi
7216GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
7217if test -n "$GPGRT_CONFIG"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
7219$as_echo "$GPGRT_CONFIG" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226        if test "$GPGRT_CONFIG" = "no"; then
7227          unset GPGRT_CONFIG
7228        else
7229          GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
7230          if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
7231            GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
7232            { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
7233$as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
7234          else
7235            unset GPGRT_CONFIG
7236          fi
7237        fi
7238      fi
7239    fi
7240  fi
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
7242$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
7243  if test $ok = yes; then
7244    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
7245    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
7246    if test -z "$GPGRT_CONFIG"; then
7247      GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
7248      GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
7249    else
7250      GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
7251      GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
7252      GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
7253      GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
7254    fi
7255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
7256$as_echo "yes ($gpg_error_config_version)" >&6; }
7257    have_gpg_error=yes
7258    if test -z "$GPGRT_CONFIG"; then
7259      gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
7260    else
7261      gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
7262    fi
7263    if test x"$gpg_error_config_host" != xnone ; then
7264      if test x"$gpg_error_config_host" != x"$host" ; then
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7266***
7267*** The config script \"$GPG_ERROR_CONFIG\" was
7268*** built for $gpg_error_config_host and thus may not match the
7269*** used host $host.
7270*** You may want to use the configure option --with-libgpg-error-prefix
7271*** to specify a matching config script or use \$SYSROOT.
7272***" >&5
7273$as_echo "$as_me: WARNING:
7274***
7275*** The config script \"$GPG_ERROR_CONFIG\" was
7276*** built for $gpg_error_config_host and thus may not match the
7277*** used host $host.
7278*** You may want to use the configure option --with-libgpg-error-prefix
7279*** to specify a matching config script or use \$SYSROOT.
7280***" >&2;}
7281        gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
7282      fi
7283    fi
7284  else
7285    GPG_ERROR_CFLAGS=""
7286    GPG_ERROR_LIBS=""
7287    GPG_ERROR_MT_CFLAGS=""
7288    GPG_ERROR_MT_LIBS=""
7289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291    have_gpg_error=no
7292  fi
7293
7294
7295
7296
7297
7298COMMON_CFLAGS="$GPG_ERROR_CFLAGS $COMMON_CFLAGS"
7299COMMON_LIBS="$GPG_ERROR_LIBS $COMMON_LIBS"
7300
7301
7302cat >>confdefs.h <<_ACEOF
7303#define GPG_ERR_ENABLE_GETTEXT_MACROS 1
7304_ACEOF
7305
7306
7307
7308cat >>confdefs.h <<_ACEOF
7309#define GPG_ERR_ENABLE_ERRNO_MACROS 1
7310_ACEOF
7311
7312
7313
7314#
7315# libassuan is used for IPC
7316#
7317NEED_LIBASSUAN_API=2
7318NEED_LIBASSUAN_VERSION=2.1.0
7319have_libassuan=no
7320
7321
7322# Check whether --with-libassuan-prefix was given.
7323if test "${with_libassuan_prefix+set}" = set; then :
7324  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
7325else
7326  libassuan_config_prefix=""
7327fi
7328
7329  if test x$libassuan_config_prefix != x ; then
7330    if test x${LIBASSUAN_CONFIG+set} != xset ; then
7331      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
7332    fi
7333  fi
7334
7335  use_gpgrt_config=""
7336  if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
7337    if $GPGRT_CONFIG libassuan --exists; then
7338      LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
7339      { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
7340$as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
7341      use_gpgrt_config=yes
7342    fi
7343  fi
7344  if test -z "$use_gpgrt_config"; then
7345    # Extract the first word of "libassuan-config", so it can be a program name with args.
7346set dummy libassuan-config; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  case $LIBASSUAN_CONFIG in
7353  [\\/]* | ?:[\\/]*)
7354  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
7355  ;;
7356  *)
7357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
7373  ;;
7374esac
7375fi
7376LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
7377if test -n "$LIBASSUAN_CONFIG"; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
7379$as_echo "$LIBASSUAN_CONFIG" >&6; }
7380else
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385
7386  fi
7387
7388  tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
7389  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
7390    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
7391    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
7392  else
7393    req_libassuan_api=0
7394    min_libassuan_version="$tmp"
7395  fi
7396
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
7398$as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
7399  ok=no
7400  if test "$LIBASSUAN_CONFIG" != "no"; then
7401    req_major=`echo $min_libassuan_version | \
7402               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7403    req_minor=`echo $min_libassuan_version | \
7404               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7405    req_micro=`echo $min_libassuan_version | \
7406               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7407
7408    if test -z "$use_gpgrt_config"; then
7409      libassuan_config_version=`$LIBASSUAN_CONFIG --version`
7410    else
7411      libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
7412    fi
7413    major=`echo $libassuan_config_version | \
7414               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7415    minor=`echo $libassuan_config_version | \
7416               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7417    micro=`echo $libassuan_config_version | \
7418               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7419
7420    if test "$major" -gt "$req_major"; then
7421        ok=yes
7422    else
7423        if test "$major" -eq "$req_major"; then
7424            if test "$minor" -gt "$req_minor"; then
7425               ok=yes
7426            else
7427               if test "$minor" -eq "$req_minor"; then
7428                   if test "$micro" -ge "$req_micro"; then
7429                     ok=yes
7430                   fi
7431               fi
7432            fi
7433        fi
7434    fi
7435  fi
7436
7437  if test $ok = yes; then
7438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
7439$as_echo "yes ($libassuan_config_version)" >&6; }
7440  else
7441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443  fi
7444
7445  if test $ok = yes; then
7446    if test "$req_libassuan_api" -gt 0 ; then
7447      if test -z "$use_gpgrt_config"; then
7448        tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
7449      else
7450        tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
7451      fi
7452      if test "$tmp" -gt 0 ; then
7453        { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
7454$as_echo_n "checking LIBASSUAN API version... " >&6; }
7455        if test "$req_libassuan_api" -eq "$tmp" ; then
7456          { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
7457$as_echo "okay" >&6; }
7458        else
7459          ok=no
7460          { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
7461$as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
7462        fi
7463      fi
7464    fi
7465  fi
7466
7467  if test $ok = yes; then
7468    if test x"$host" != x ; then
7469      if test -z "$use_gpgrt_config"; then
7470        libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
7471      else
7472        libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
7473      fi
7474      if test x"$libassuan_config_host" != xnone ; then
7475        if test x"$libassuan_config_host" != x"$host" ; then
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7477***
7478*** The config script \"$LIBASSUAN_CONFIG\" was
7479*** built for $libassuan_config_host and thus may not match the
7480*** used host $host.
7481*** You may want to use the configure option --with-libassuan-prefix
7482*** to specify a matching config script.
7483***" >&5
7484$as_echo "$as_me: WARNING:
7485***
7486*** The config script \"$LIBASSUAN_CONFIG\" was
7487*** built for $libassuan_config_host and thus may not match the
7488*** used host $host.
7489*** You may want to use the configure option --with-libassuan-prefix
7490*** to specify a matching config script.
7491***" >&2;}
7492        fi
7493      fi
7494    fi
7495  fi
7496
7497  if test $ok = yes; then
7498    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
7499    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
7500    have_libassuan=yes
7501  else
7502    LIBASSUAN_CFLAGS=""
7503    LIBASSUAN_LIBS=""
7504    have_libassuan=no
7505  fi
7506
7507
7508
7509if test "$have_libassuan" = "yes"; then
7510
7511cat >>confdefs.h <<_ACEOF
7512#define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
7513_ACEOF
7514
7515fi
7516
7517COMMON_CFLAGS="$LIBASSUAN_CFLAGS $COMMON_CFLAGS"
7518COMMON_LIBS="$LIBASSUAN_LIBS $COMMON_LIBS"
7519
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
7522$as_echo_n "checking for byte typedef... " >&6; }
7523    if ${gnupg_cv_typedef_byte+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h.  */
7528#define _GNU_SOURCE 1
7529    #include <stdlib.h>
7530    #include <sys/types.h>
7531int
7532main ()
7533{
7534
7535    #undef byte
7536    int a = sizeof(byte);
7537
7538  ;
7539  return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  gnupg_cv_typedef_byte=yes
7544else
7545  gnupg_cv_typedef_byte=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549
7550    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
7551$as_echo "$gnupg_cv_typedef_byte" >&6; }
7552    if test "$gnupg_cv_typedef_byte" = yes; then
7553
7554$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
7555
7556    fi
7557
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
7559$as_echo_n "checking for ulong typedef... " >&6; }
7560    if ${gnupg_cv_typedef_ulong+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h.  */
7565#define _GNU_SOURCE 1
7566    #include <stdlib.h>
7567    #include <sys/types.h>
7568int
7569main ()
7570{
7571
7572    #undef ulong
7573    int a = sizeof(ulong);
7574
7575  ;
7576  return 0;
7577}
7578_ACEOF
7579if ac_fn_c_try_compile "$LINENO"; then :
7580  gnupg_cv_typedef_ulong=yes
7581else
7582  gnupg_cv_typedef_ulong=no
7583fi
7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585fi
7586
7587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
7588$as_echo "$gnupg_cv_typedef_ulong" >&6; }
7589    if test "$gnupg_cv_typedef_ulong" = yes; then
7590
7591$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
7592
7593    fi
7594
7595
7596
7597# Check whether --with-libcap was given.
7598if test "${with_libcap+set}" = set; then :
7599  withval=$with_libcap;
7600fi
7601
7602
7603if test "x$with_libcap" != "xno"; then
7604  # Extract the first word of "setcap", so it can be a program name with args.
7605set dummy setcap; ac_word=$2
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607$as_echo_n "checking for $ac_word... " >&6; }
7608if ${ac_cv_path_SETCAP+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  case $SETCAP in
7612  [\\/]* | ?:[\\/]*)
7613  ac_cv_path_SETCAP="$SETCAP" # Let the user override the test with a path.
7614  ;;
7615  *)
7616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617as_dummy=""$PATH:/sbin:/usr/sbin""
7618for as_dir in $as_dummy
7619do
7620  IFS=$as_save_IFS
7621  test -z "$as_dir" && as_dir=.
7622    for ac_exec_ext in '' $ac_executable_extensions; do
7623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624    ac_cv_path_SETCAP="$as_dir/$ac_word$ac_exec_ext"
7625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629  done
7630IFS=$as_save_IFS
7631
7632  test -z "$ac_cv_path_SETCAP" && ac_cv_path_SETCAP=":"
7633  ;;
7634esac
7635fi
7636SETCAP=$ac_cv_path_SETCAP
7637if test -n "$SETCAP"; then
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETCAP" >&5
7639$as_echo "$SETCAP" >&6; }
7640else
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642$as_echo "no" >&6; }
7643fi
7644
7645
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
7647$as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
7648if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  ac_check_lib_save_LIBS=$LIBS
7652LIBS="-lcap  $LIBS"
7653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h.  */
7655
7656/* Override any GCC internal prototype to avoid an error.
7657   Use char because int might match the return type of a GCC
7658   builtin and then its argument prototype would still apply.  */
7659#ifdef __cplusplus
7660extern "C"
7661#endif
7662char cap_set_proc ();
7663int
7664main ()
7665{
7666return cap_set_proc ();
7667  ;
7668  return 0;
7669}
7670_ACEOF
7671if ac_fn_c_try_link "$LINENO"; then :
7672  ac_cv_lib_cap_cap_set_proc=yes
7673else
7674  ac_cv_lib_cap_cap_set_proc=no
7675fi
7676rm -f core conftest.err conftest.$ac_objext \
7677    conftest$ac_exeext conftest.$ac_ext
7678LIBS=$ac_check_lib_save_LIBS
7679fi
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
7681$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
7682if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
7683
7684
7685$as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
7686
7687    LIBCAP=-lcap
7688
7689fi
7690
7691fi
7692
7693
7694# Check whether --enable-pinentry-curses was given.
7695if test "${enable_pinentry_curses+set}" = set; then :
7696  enableval=$enable_pinentry_curses; pinentry_curses=$enableval
7697else
7698  pinentry_curses=maybe
7699fi
7700
7701# Check whether --enable-fallback-curses was given.
7702if test "${enable_fallback_curses+set}" = set; then :
7703  enableval=$enable_fallback_curses; fallback_curses=$enableval
7704else
7705  fallback_curses=maybe
7706fi
7707
7708
7709if test "$pinentry_curses" != "no" -o "$fallback_curses" != "no"; then
7710
7711  # Check whether --enable-ncurses was given.
7712if test "${enable_ncurses+set}" = set; then :
7713  enableval=$enable_ncurses;
7714else
7715  enable_ncurses=yes
7716fi
7717
7718  if test "$enable_ncurses" = yes; then
7719
7720pkg_failed=no
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
7722$as_echo_n "checking for ncursesw... " >&6; }
7723
7724if test -n "$PKG_CONFIG"; then
7725    if test -n "$NCURSES_CFLAGS"; then
7726        pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
7727    else
7728        if test -n "$PKG_CONFIG" && \
7729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7730  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7731  ac_status=$?
7732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733  test $ac_status = 0; }; then
7734  pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
7735else
7736  pkg_failed=yes
7737fi
7738    fi
7739else
7740	pkg_failed=untried
7741fi
7742if test -n "$PKG_CONFIG"; then
7743    if test -n "$NCURSES_LIBS"; then
7744        pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
7745    else
7746        if test -n "$PKG_CONFIG" && \
7747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7748  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7749  ac_status=$?
7750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7751  test $ac_status = 0; }; then
7752  pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
7753else
7754  pkg_failed=yes
7755fi
7756    fi
7757else
7758	pkg_failed=untried
7759fi
7760
7761
7762
7763if test $pkg_failed = yes; then
7764
7765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7766        _pkg_short_errors_supported=yes
7767else
7768        _pkg_short_errors_supported=no
7769fi
7770        if test $_pkg_short_errors_supported = yes; then
7771	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ncursesw"`
7772        else
7773	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ncursesw"`
7774        fi
7775	# Put the nasty error message in config.log where it belongs
7776	echo "$NCURSES_PKG_ERRORS" >&5
7777
7778	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779$as_echo "no" >&6; }
7780
7781
7782pkg_failed=no
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
7784$as_echo_n "checking for ncurses... " >&6; }
7785
7786if test -n "$PKG_CONFIG"; then
7787    if test -n "$NCURSES_CFLAGS"; then
7788        pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
7789    else
7790        if test -n "$PKG_CONFIG" && \
7791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
7792  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
7793  ac_status=$?
7794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795  test $ac_status = 0; }; then
7796  pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
7797else
7798  pkg_failed=yes
7799fi
7800    fi
7801else
7802	pkg_failed=untried
7803fi
7804if test -n "$PKG_CONFIG"; then
7805    if test -n "$NCURSES_LIBS"; then
7806        pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
7807    else
7808        if test -n "$PKG_CONFIG" && \
7809    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
7810  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
7811  ac_status=$?
7812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813  test $ac_status = 0; }; then
7814  pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
7815else
7816  pkg_failed=yes
7817fi
7818    fi
7819else
7820	pkg_failed=untried
7821fi
7822
7823
7824
7825if test $pkg_failed = yes; then
7826
7827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7828        _pkg_short_errors_supported=yes
7829else
7830        _pkg_short_errors_supported=no
7831fi
7832        if test $_pkg_short_errors_supported = yes; then
7833	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ncurses"`
7834        else
7835	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ncurses"`
7836        fi
7837	# Put the nasty error message in config.log where it belongs
7838	echo "$NCURSES_PKG_ERRORS" >&5
7839
7840	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
7842
7843            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7844$as_echo_n "checking for initscr in -lncursesw... " >&6; }
7845if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  ac_check_lib_save_LIBS=$LIBS
7849LIBS="-lncursesw  $LIBS"
7850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852
7853/* Override any GCC internal prototype to avoid an error.
7854   Use char because int might match the return type of a GCC
7855   builtin and then its argument prototype would still apply.  */
7856#ifdef __cplusplus
7857extern "C"
7858#endif
7859char initscr ();
7860int
7861main ()
7862{
7863return initscr ();
7864  ;
7865  return 0;
7866}
7867_ACEOF
7868if ac_fn_c_try_link "$LINENO"; then :
7869  ac_cv_lib_ncursesw_initscr=yes
7870else
7871  ac_cv_lib_ncursesw_initscr=no
7872fi
7873rm -f core conftest.err conftest.$ac_objext \
7874    conftest$ac_exeext conftest.$ac_ext
7875LIBS=$ac_check_lib_save_LIBS
7876fi
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7878$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7879if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7880  LIBNCURSES="-lncursesw"
7881else
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7883$as_echo_n "checking for initscr in -lncurses... " >&6; }
7884if ${ac_cv_lib_ncurses_initscr+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  ac_check_lib_save_LIBS=$LIBS
7888LIBS="-lncurses  $LIBS"
7889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893   Use char because int might match the return type of a GCC
7894   builtin and then its argument prototype would still apply.  */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char initscr ();
7899int
7900main ()
7901{
7902return initscr ();
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then :
7908  ac_cv_lib_ncurses_initscr=yes
7909else
7910  ac_cv_lib_ncurses_initscr=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext \
7913    conftest$ac_exeext conftest.$ac_ext
7914LIBS=$ac_check_lib_save_LIBS
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7917$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7918if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7919  LIBNCURSES="-lncurses"
7920fi
7921
7922fi
7923
7924            if test "$ac_cv_lib_ncursesw_initscr" = yes; then
7925              have_ncursesw=yes
7926            else
7927              have_ncursesw=no
7928            fi
7929
7930elif test $pkg_failed = untried; then
7931
7932            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7933$as_echo_n "checking for initscr in -lncursesw... " >&6; }
7934if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  ac_check_lib_save_LIBS=$LIBS
7938LIBS="-lncursesw  $LIBS"
7939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h.  */
7941
7942/* Override any GCC internal prototype to avoid an error.
7943   Use char because int might match the return type of a GCC
7944   builtin and then its argument prototype would still apply.  */
7945#ifdef __cplusplus
7946extern "C"
7947#endif
7948char initscr ();
7949int
7950main ()
7951{
7952return initscr ();
7953  ;
7954  return 0;
7955}
7956_ACEOF
7957if ac_fn_c_try_link "$LINENO"; then :
7958  ac_cv_lib_ncursesw_initscr=yes
7959else
7960  ac_cv_lib_ncursesw_initscr=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext \
7963    conftest$ac_exeext conftest.$ac_ext
7964LIBS=$ac_check_lib_save_LIBS
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7967$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7968if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7969  LIBNCURSES="-lncursesw"
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7972$as_echo_n "checking for initscr in -lncurses... " >&6; }
7973if ${ac_cv_lib_ncurses_initscr+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  ac_check_lib_save_LIBS=$LIBS
7977LIBS="-lncurses  $LIBS"
7978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979/* end confdefs.h.  */
7980
7981/* Override any GCC internal prototype to avoid an error.
7982   Use char because int might match the return type of a GCC
7983   builtin and then its argument prototype would still apply.  */
7984#ifdef __cplusplus
7985extern "C"
7986#endif
7987char initscr ();
7988int
7989main ()
7990{
7991return initscr ();
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996if ac_fn_c_try_link "$LINENO"; then :
7997  ac_cv_lib_ncurses_initscr=yes
7998else
7999  ac_cv_lib_ncurses_initscr=no
8000fi
8001rm -f core conftest.err conftest.$ac_objext \
8002    conftest$ac_exeext conftest.$ac_ext
8003LIBS=$ac_check_lib_save_LIBS
8004fi
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8006$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8007if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8008  LIBNCURSES="-lncurses"
8009fi
8010
8011fi
8012
8013            if test "$ac_cv_lib_ncursesw_initscr" = yes; then
8014              have_ncursesw=yes
8015            else
8016              have_ncursesw=no
8017            fi
8018
8019else
8020	NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
8021	NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
8022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8023$as_echo "yes" >&6; }
8024	LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=no
8025fi
8026
8027elif test $pkg_failed = untried; then
8028
8029
8030pkg_failed=no
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
8032$as_echo_n "checking for ncurses... " >&6; }
8033
8034if test -n "$PKG_CONFIG"; then
8035    if test -n "$NCURSES_CFLAGS"; then
8036        pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
8037    else
8038        if test -n "$PKG_CONFIG" && \
8039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
8040  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
8041  ac_status=$?
8042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043  test $ac_status = 0; }; then
8044  pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
8045else
8046  pkg_failed=yes
8047fi
8048    fi
8049else
8050	pkg_failed=untried
8051fi
8052if test -n "$PKG_CONFIG"; then
8053    if test -n "$NCURSES_LIBS"; then
8054        pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
8055    else
8056        if test -n "$PKG_CONFIG" && \
8057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
8058  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
8059  ac_status=$?
8060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061  test $ac_status = 0; }; then
8062  pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
8063else
8064  pkg_failed=yes
8065fi
8066    fi
8067else
8068	pkg_failed=untried
8069fi
8070
8071
8072
8073if test $pkg_failed = yes; then
8074
8075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8076        _pkg_short_errors_supported=yes
8077else
8078        _pkg_short_errors_supported=no
8079fi
8080        if test $_pkg_short_errors_supported = yes; then
8081	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ncurses"`
8082        else
8083	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ncurses"`
8084        fi
8085	# Put the nasty error message in config.log where it belongs
8086	echo "$NCURSES_PKG_ERRORS" >&5
8087
8088	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090
8091            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
8092$as_echo_n "checking for initscr in -lncursesw... " >&6; }
8093if ${ac_cv_lib_ncursesw_initscr+:} false; then :
8094  $as_echo_n "(cached) " >&6
8095else
8096  ac_check_lib_save_LIBS=$LIBS
8097LIBS="-lncursesw  $LIBS"
8098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100
8101/* Override any GCC internal prototype to avoid an error.
8102   Use char because int might match the return type of a GCC
8103   builtin and then its argument prototype would still apply.  */
8104#ifdef __cplusplus
8105extern "C"
8106#endif
8107char initscr ();
8108int
8109main ()
8110{
8111return initscr ();
8112  ;
8113  return 0;
8114}
8115_ACEOF
8116if ac_fn_c_try_link "$LINENO"; then :
8117  ac_cv_lib_ncursesw_initscr=yes
8118else
8119  ac_cv_lib_ncursesw_initscr=no
8120fi
8121rm -f core conftest.err conftest.$ac_objext \
8122    conftest$ac_exeext conftest.$ac_ext
8123LIBS=$ac_check_lib_save_LIBS
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
8126$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
8127if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
8128  LIBNCURSES="-lncursesw"
8129else
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
8131$as_echo_n "checking for initscr in -lncurses... " >&6; }
8132if ${ac_cv_lib_ncurses_initscr+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  ac_check_lib_save_LIBS=$LIBS
8136LIBS="-lncurses  $LIBS"
8137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138/* end confdefs.h.  */
8139
8140/* Override any GCC internal prototype to avoid an error.
8141   Use char because int might match the return type of a GCC
8142   builtin and then its argument prototype would still apply.  */
8143#ifdef __cplusplus
8144extern "C"
8145#endif
8146char initscr ();
8147int
8148main ()
8149{
8150return initscr ();
8151  ;
8152  return 0;
8153}
8154_ACEOF
8155if ac_fn_c_try_link "$LINENO"; then :
8156  ac_cv_lib_ncurses_initscr=yes
8157else
8158  ac_cv_lib_ncurses_initscr=no
8159fi
8160rm -f core conftest.err conftest.$ac_objext \
8161    conftest$ac_exeext conftest.$ac_ext
8162LIBS=$ac_check_lib_save_LIBS
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8165$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8166if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8167  LIBNCURSES="-lncurses"
8168fi
8169
8170fi
8171
8172            if test "$ac_cv_lib_ncursesw_initscr" = yes; then
8173              have_ncursesw=yes
8174            else
8175              have_ncursesw=no
8176            fi
8177
8178elif test $pkg_failed = untried; then
8179
8180            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
8181$as_echo_n "checking for initscr in -lncursesw... " >&6; }
8182if ${ac_cv_lib_ncursesw_initscr+:} false; then :
8183  $as_echo_n "(cached) " >&6
8184else
8185  ac_check_lib_save_LIBS=$LIBS
8186LIBS="-lncursesw  $LIBS"
8187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188/* end confdefs.h.  */
8189
8190/* Override any GCC internal prototype to avoid an error.
8191   Use char because int might match the return type of a GCC
8192   builtin and then its argument prototype would still apply.  */
8193#ifdef __cplusplus
8194extern "C"
8195#endif
8196char initscr ();
8197int
8198main ()
8199{
8200return initscr ();
8201  ;
8202  return 0;
8203}
8204_ACEOF
8205if ac_fn_c_try_link "$LINENO"; then :
8206  ac_cv_lib_ncursesw_initscr=yes
8207else
8208  ac_cv_lib_ncursesw_initscr=no
8209fi
8210rm -f core conftest.err conftest.$ac_objext \
8211    conftest$ac_exeext conftest.$ac_ext
8212LIBS=$ac_check_lib_save_LIBS
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
8215$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
8216if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
8217  LIBNCURSES="-lncursesw"
8218else
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
8220$as_echo_n "checking for initscr in -lncurses... " >&6; }
8221if ${ac_cv_lib_ncurses_initscr+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  ac_check_lib_save_LIBS=$LIBS
8225LIBS="-lncurses  $LIBS"
8226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228
8229/* Override any GCC internal prototype to avoid an error.
8230   Use char because int might match the return type of a GCC
8231   builtin and then its argument prototype would still apply.  */
8232#ifdef __cplusplus
8233extern "C"
8234#endif
8235char initscr ();
8236int
8237main ()
8238{
8239return initscr ();
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_link "$LINENO"; then :
8245  ac_cv_lib_ncurses_initscr=yes
8246else
8247  ac_cv_lib_ncurses_initscr=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext \
8250    conftest$ac_exeext conftest.$ac_ext
8251LIBS=$ac_check_lib_save_LIBS
8252fi
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8254$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8255if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8256  LIBNCURSES="-lncurses"
8257fi
8258
8259fi
8260
8261            if test "$ac_cv_lib_ncursesw_initscr" = yes; then
8262              have_ncursesw=yes
8263            else
8264              have_ncursesw=no
8265            fi
8266
8267else
8268	NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
8269	NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
8270        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271$as_echo "yes" >&6; }
8272	LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=no
8273fi
8274
8275else
8276	NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
8277	NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
8278        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8279$as_echo "yes" >&6; }
8280	LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=yes
8281fi
8282    if test "$LIBNCURSES"; then
8283      # Use ncurses header files instead of the ordinary ones, if possible;
8284      # is there a better way of doing this, that avoids looking in specific
8285      # directories?
8286
8287# Check whether --with-ncurses-include-dir was given.
8288if test "${with_ncurses_include_dir+set}" = set; then :
8289  withval=$with_ncurses_include_dir;
8290fi
8291      if test "${with_ncurses_include_dir+set}" = set; then
8292        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses include dir" >&5
8293$as_echo_n "checking for ncurses include dir... " >&6; }
8294	case "$with_ncurses_include_dir" in
8295	  no|none)
8296	    inetutils_cv_includedir_ncurses=none;;
8297	  *)
8298	    inetutils_cv_includedir_ncurses="$with_ncurses_include_dir";;
8299	esac
8300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $inetutils_cv_includedir_ncurses" >&5
8301$as_echo "$inetutils_cv_includedir_ncurses" >&6; }
8302      else
8303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses include dir" >&5
8304$as_echo_n "checking for ncurses include dir... " >&6; }
8305if ${inetutils_cv_includedir_ncurses+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  if test "$have_ncursesw" = yes; then
8309            ncursesdir=ncursesw
8310          else
8311            ncursesdir=ncurses
8312          fi
8313	  for D in $includedir $prefix/include /local/include /usr/local/include /include /usr/include; do
8314	    if test -d $D/$ncursesdir; then
8315	      inetutils_cv_includedir_ncurses="$D/$ncursesdir"
8316	      break
8317	    fi
8318	    test "$inetutils_cv_includedir_ncurses" \
8319	      || inetutils_cv_includedir_ncurses=none
8320	  done
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $inetutils_cv_includedir_ncurses" >&5
8323$as_echo "$inetutils_cv_includedir_ncurses" >&6; }
8324      fi
8325      if test "$inetutils_cv_includedir_ncurses" = none; then
8326        NCURSES_INCLUDE=""
8327      else
8328        NCURSES_INCLUDE="-I$inetutils_cv_includedir_ncurses"
8329      fi
8330    fi
8331    if test $have_ncursesw = yes; then
8332
8333$as_echo "#define HAVE_NCURSESW 1" >>confdefs.h
8334
8335    fi
8336  fi
8337
8338
8339
8340
8341  if test "$LIBNCURSES"; then
8342    LIBTERMCAP="$LIBNCURSES"
8343  else
8344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
8345$as_echo_n "checking for tgetent in -lcurses... " >&6; }
8346if ${ac_cv_lib_curses_tgetent+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  ac_check_lib_save_LIBS=$LIBS
8350LIBS="-lcurses  $LIBS"
8351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h.  */
8353
8354/* Override any GCC internal prototype to avoid an error.
8355   Use char because int might match the return type of a GCC
8356   builtin and then its argument prototype would still apply.  */
8357#ifdef __cplusplus
8358extern "C"
8359#endif
8360char tgetent ();
8361int
8362main ()
8363{
8364return tgetent ();
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369if ac_fn_c_try_link "$LINENO"; then :
8370  ac_cv_lib_curses_tgetent=yes
8371else
8372  ac_cv_lib_curses_tgetent=no
8373fi
8374rm -f core conftest.err conftest.$ac_objext \
8375    conftest$ac_exeext conftest.$ac_ext
8376LIBS=$ac_check_lib_save_LIBS
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
8379$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
8380if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
8381  LIBTERMCAP=-lcurses
8382fi
8383
8384    if test "$ac_cv_lib_curses_tgetent" = no; then
8385      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
8386$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
8387if ${ac_cv_lib_termcap_tgetent+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  ac_check_lib_save_LIBS=$LIBS
8391LIBS="-ltermcap  $LIBS"
8392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394
8395/* Override any GCC internal prototype to avoid an error.
8396   Use char because int might match the return type of a GCC
8397   builtin and then its argument prototype would still apply.  */
8398#ifdef __cplusplus
8399extern "C"
8400#endif
8401char tgetent ();
8402int
8403main ()
8404{
8405return tgetent ();
8406  ;
8407  return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_link "$LINENO"; then :
8411  ac_cv_lib_termcap_tgetent=yes
8412else
8413  ac_cv_lib_termcap_tgetent=no
8414fi
8415rm -f core conftest.err conftest.$ac_objext \
8416    conftest$ac_exeext conftest.$ac_ext
8417LIBS=$ac_check_lib_save_LIBS
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
8420$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
8421if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
8422  LIBTERMCAP=-ltermcap
8423fi
8424
8425    fi
8426    if test "$ac_cv_lib_termcap_tgetent" = no; then
8427      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
8428$as_echo_n "checking for tgetent in -ltermlib... " >&6; }
8429if ${ac_cv_lib_termlib_tgetent+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  ac_check_lib_save_LIBS=$LIBS
8433LIBS="-ltermlib  $LIBS"
8434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435/* end confdefs.h.  */
8436
8437/* Override any GCC internal prototype to avoid an error.
8438   Use char because int might match the return type of a GCC
8439   builtin and then its argument prototype would still apply.  */
8440#ifdef __cplusplus
8441extern "C"
8442#endif
8443char tgetent ();
8444int
8445main ()
8446{
8447return tgetent ();
8448  ;
8449  return 0;
8450}
8451_ACEOF
8452if ac_fn_c_try_link "$LINENO"; then :
8453  ac_cv_lib_termlib_tgetent=yes
8454else
8455  ac_cv_lib_termlib_tgetent=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext \
8458    conftest$ac_exeext conftest.$ac_ext
8459LIBS=$ac_check_lib_save_LIBS
8460fi
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
8462$as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
8463if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
8464  LIBTERMCAP=-ltermlib
8465fi
8466
8467    fi
8468  fi
8469
8470
8471
8472
8473  if test "$LIBNCURSES"; then
8474    LIBCURSES="$LIBNCURSES"	# ncurses doesn't require termcap
8475  else
8476    _IU_SAVE_LIBS="$LIBS"
8477    LIBS="$LIBTERMCAP"
8478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
8479$as_echo_n "checking for initscr in -lcurses... " >&6; }
8480if ${ac_cv_lib_curses_initscr+:} false; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483  ac_check_lib_save_LIBS=$LIBS
8484LIBS="-lcurses  $LIBS"
8485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487
8488/* Override any GCC internal prototype to avoid an error.
8489   Use char because int might match the return type of a GCC
8490   builtin and then its argument prototype would still apply.  */
8491#ifdef __cplusplus
8492extern "C"
8493#endif
8494char initscr ();
8495int
8496main ()
8497{
8498return initscr ();
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503if ac_fn_c_try_link "$LINENO"; then :
8504  ac_cv_lib_curses_initscr=yes
8505else
8506  ac_cv_lib_curses_initscr=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext \
8509    conftest$ac_exeext conftest.$ac_ext
8510LIBS=$ac_check_lib_save_LIBS
8511fi
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
8513$as_echo "$ac_cv_lib_curses_initscr" >&6; }
8514if test "x$ac_cv_lib_curses_initscr" = xyes; then :
8515  LIBCURSES="-lcurses"
8516fi
8517
8518    if test "$LIBCURSES" -a "$LIBTERMCAP" -a "$LIBCURSES" != "$LIBTERMCAP"; then
8519      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses needs $LIBTERMCAP" >&5
8520$as_echo_n "checking whether curses needs $LIBTERMCAP... " >&6; }
8521if ${inetutils_cv_curses_needs_termcap+:} false; then :
8522  $as_echo_n "(cached) " >&6
8523else
8524  LIBS="$LIBCURSES"
8525	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h.  */
8527#include <curses.h>
8528int
8529main ()
8530{
8531initscr ();
8532  ;
8533  return 0;
8534}
8535_ACEOF
8536if ac_fn_c_try_link "$LINENO"; then :
8537  inetutils_cv_curses_needs_termcap=no
8538else
8539  inetutils_cv_curses_needs_termcap=yes
8540fi
8541rm -f core conftest.err conftest.$ac_objext \
8542    conftest$ac_exeext conftest.$ac_ext
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $inetutils_cv_curses_needs_termcap" >&5
8545$as_echo "$inetutils_cv_curses_needs_termcap" >&6; }
8546      if test $inetutils_cv_curses_needs_termcap = yes; then
8547	  LIBCURSES="$LIBCURSES $LIBTERMCAP"
8548      fi
8549    fi
8550    LIBS="$_IU_SAVE_LIBS"
8551  fi
8552
8553fi
8554if test "$LIBCURSES"; then
8555  if test "$pinentry_curses" != "no"; then
8556    pinentry_curses=yes
8557  fi
8558  if test "$fallback_curses" != "no"; then
8559    fallback_curses=yes
8560
8561$as_echo "#define FALLBACK_CURSES 1" >>confdefs.h
8562
8563  fi
8564else
8565  if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
8566    as_fn_error $? "
8567***
8568*** The curses library is required. The latest version of
8569*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
8570***" "$LINENO" 5
8571  fi
8572  pinentry_curses=no
8573  fallback_curses=no
8574fi
8575 if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
8576  BUILD_LIBPINENTRY_CURSES_TRUE=
8577  BUILD_LIBPINENTRY_CURSES_FALSE='#'
8578else
8579  BUILD_LIBPINENTRY_CURSES_TRUE='#'
8580  BUILD_LIBPINENTRY_CURSES_FALSE=
8581fi
8582
8583 if test "$pinentry_curses" = "yes"; then
8584  BUILD_PINENTRY_CURSES_TRUE=
8585  BUILD_PINENTRY_CURSES_FALSE='#'
8586else
8587  BUILD_PINENTRY_CURSES_TRUE='#'
8588  BUILD_PINENTRY_CURSES_FALSE=
8589fi
8590
8591 if test "$fallback_curses" = "yes"; then
8592  FALLBACK_CURSES_TRUE=
8593  FALLBACK_CURSES_FALSE='#'
8594else
8595  FALLBACK_CURSES_TRUE='#'
8596  FALLBACK_CURSES_FALSE=
8597fi
8598
8599
8600if test "$pinentry_curses" = "yes"; then
8601
8602$as_echo "#define PINENTRY_CURSES 1" >>confdefs.h
8603
8604fi
8605
8606
8607# Check whether --enable-pinentry-tty was given.
8608if test "${enable_pinentry_tty+set}" = set; then :
8609  enableval=$enable_pinentry_tty; pinentry_tty=$enableval
8610else
8611  pinentry_tty=maybe
8612fi
8613
8614 if test "$pinentry_tty" = "yes"; then
8615  BUILD_PINENTRY_TTY_TRUE=
8616  BUILD_PINENTRY_TTY_FALSE='#'
8617else
8618  BUILD_PINENTRY_TTY_TRUE='#'
8619  BUILD_PINENTRY_TTY_FALSE=
8620fi
8621
8622
8623if test "$pinentry_tty" = "yes"; then
8624
8625$as_echo "#define PINENTRY_TTY 1" >>confdefs.h
8626
8627fi
8628
8629
8630if test "$pinentry_curses" = "yes" \
8631        -o "$fallback_curses" = "yes" ; then
8632
8633      if test "X$prefix" = "XNONE"; then
8634    acl_final_prefix="$ac_default_prefix"
8635  else
8636    acl_final_prefix="$prefix"
8637  fi
8638  if test "X$exec_prefix" = "XNONE"; then
8639    acl_final_exec_prefix='${prefix}'
8640  else
8641    acl_final_exec_prefix="$exec_prefix"
8642  fi
8643  acl_save_prefix="$prefix"
8644  prefix="$acl_final_prefix"
8645  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8646  prefix="$acl_save_prefix"
8647
8648
8649
8650# Check whether --with-gnu-ld was given.
8651if test "${with_gnu_ld+set}" = set; then :
8652  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8653else
8654  with_gnu_ld=no
8655fi
8656
8657# Prepare PATH_SEPARATOR.
8658# The user is always right.
8659if test "${PATH_SEPARATOR+set}" != set; then
8660  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8661  # contains only /bin. Note that ksh looks also at the FPATH variable,
8662  # so we have to set that as well for the test.
8663  PATH_SEPARATOR=:
8664  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8665    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8666           || PATH_SEPARATOR=';'
8667       }
8668fi
8669
8670if test -n "$LD"; then
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8672$as_echo_n "checking for ld... " >&6; }
8673elif test "$GCC" = yes; then
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8675$as_echo_n "checking for ld used by $CC... " >&6; }
8676elif test "$with_gnu_ld" = yes; then
8677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8678$as_echo_n "checking for GNU ld... " >&6; }
8679else
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8681$as_echo_n "checking for non-GNU ld... " >&6; }
8682fi
8683if test -n "$LD"; then
8684  # Let the user override the test with a path.
8685  :
8686else
8687  if ${acl_cv_path_LD+:} false; then :
8688  $as_echo_n "(cached) " >&6
8689else
8690
8691    acl_cv_path_LD= # Final result of this test
8692    ac_prog=ld # Program to search in $PATH
8693    if test "$GCC" = yes; then
8694      # Check if gcc -print-prog-name=ld gives a path.
8695      case $host in
8696        *-*-mingw*)
8697          # gcc leaves a trailing carriage return which upsets mingw
8698          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8699        *)
8700          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8701      esac
8702      case $acl_output in
8703        # Accept absolute paths.
8704        [\\/]* | ?:[\\/]*)
8705          re_direlt='/[^/][^/]*/\.\./'
8706          # Canonicalize the pathname of ld
8707          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8708          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8709            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8710          done
8711          # Got the pathname. No search in PATH is needed.
8712          acl_cv_path_LD="$acl_output"
8713          ac_prog=
8714          ;;
8715        "")
8716          # If it fails, then pretend we aren't using GCC.
8717          ;;
8718        *)
8719          # If it is relative, then search for the first ld in PATH.
8720          with_gnu_ld=unknown
8721          ;;
8722      esac
8723    fi
8724    if test -n "$ac_prog"; then
8725      # Search for $ac_prog in $PATH.
8726      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8727      for ac_dir in $PATH; do
8728        IFS="$acl_save_ifs"
8729        test -z "$ac_dir" && ac_dir=.
8730        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8731          acl_cv_path_LD="$ac_dir/$ac_prog"
8732          # Check to see if the program is GNU ld.  I'd rather use --version,
8733          # but apparently some variants of GNU ld only accept -v.
8734          # Break only if it was the GNU/non-GNU ld that we prefer.
8735          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8736            *GNU* | *'with BFD'*)
8737              test "$with_gnu_ld" != no && break
8738              ;;
8739            *)
8740              test "$with_gnu_ld" != yes && break
8741              ;;
8742          esac
8743        fi
8744      done
8745      IFS="$acl_save_ifs"
8746    fi
8747    case $host in
8748      *-*-aix*)
8749        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751#if defined __powerpc64__ || defined _ARCH_PPC64
8752                int ok;
8753               #else
8754                error fail
8755               #endif
8756
8757_ACEOF
8758if ac_fn_c_try_compile "$LINENO"; then :
8759  # The compiler produces 64-bit code. Add option '-b64' so that the
8760           # linker groks 64-bit object files.
8761           case "$acl_cv_path_LD " in
8762             *" -b64 "*) ;;
8763             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8764           esac
8765
8766fi
8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768        ;;
8769      sparc64-*-netbsd*)
8770        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772#if defined __sparcv9 || defined __arch64__
8773                int ok;
8774               #else
8775                error fail
8776               #endif
8777
8778_ACEOF
8779if ac_fn_c_try_compile "$LINENO"; then :
8780
8781else
8782  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8783           # so that the linker groks 32-bit object files.
8784           case "$acl_cv_path_LD " in
8785             *" -m elf32_sparc "*) ;;
8786             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8787           esac
8788
8789fi
8790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791        ;;
8792    esac
8793
8794fi
8795
8796  LD="$acl_cv_path_LD"
8797fi
8798if test -n "$LD"; then
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8800$as_echo "$LD" >&6; }
8801else
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
8804  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8807$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8808if ${acl_cv_prog_gnu_ld+:} false; then :
8809  $as_echo_n "(cached) " >&6
8810else
8811  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8812case `$LD -v 2>&1 </dev/null` in
8813*GNU* | *'with BFD'*)
8814  acl_cv_prog_gnu_ld=yes
8815  ;;
8816*)
8817  acl_cv_prog_gnu_ld=no
8818  ;;
8819esac
8820fi
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8822$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8823with_gnu_ld=$acl_cv_prog_gnu_ld
8824
8825
8826
8827
8828                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8829$as_echo_n "checking for shared library run path origin... " >&6; }
8830if ${acl_cv_rpath+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833
8834    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8835    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8836    . ./conftest.sh
8837    rm -f ./conftest.sh
8838    acl_cv_rpath=done
8839
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8842$as_echo "$acl_cv_rpath" >&6; }
8843  wl="$acl_cv_wl"
8844  acl_libext="$acl_cv_libext"
8845  acl_shlibext="$acl_cv_shlibext"
8846  acl_libname_spec="$acl_cv_libname_spec"
8847  acl_library_names_spec="$acl_cv_library_names_spec"
8848  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8849  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8850  acl_hardcode_direct="$acl_cv_hardcode_direct"
8851  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8852    # Check whether --enable-rpath was given.
8853if test "${enable_rpath+set}" = set; then :
8854  enableval=$enable_rpath; :
8855else
8856  enable_rpath=yes
8857fi
8858
8859
8860
8861
8862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8863$as_echo_n "checking 32-bit host C ABI... " >&6; }
8864if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
8865  $as_echo_n "(cached) " >&6
8866else
8867  if test -n "$gl_cv_host_cpu_c_abi"; then
8868       case "$gl_cv_host_cpu_c_abi" in
8869         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8870           gl_cv_host_cpu_c_abi_32bit=yes ;;
8871         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8872           gl_cv_host_cpu_c_abi_32bit=no ;;
8873         *)
8874           gl_cv_host_cpu_c_abi_32bit=unknown ;;
8875       esac
8876     else
8877       case "$host_cpu" in
8878
8879         # CPUs that only support a 32-bit ABI.
8880         arc \
8881         | bfin \
8882         | cris* \
8883         | csky \
8884         | epiphany \
8885         | ft32 \
8886         | h8300 \
8887         | m68k \
8888         | microblaze | microblazeel \
8889         | nds32 | nds32le | nds32be \
8890         | nios2 | nios2eb | nios2el \
8891         | or1k* \
8892         | or32 \
8893         | sh | sh1234 | sh1234elb \
8894         | tic6x \
8895         | xtensa* )
8896           gl_cv_host_cpu_c_abi_32bit=yes
8897           ;;
8898
8899         # CPUs that only support a 64-bit ABI.
8900         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8901         | mmix )
8902           gl_cv_host_cpu_c_abi_32bit=no
8903           ;;
8904
8905         i[34567]86 )
8906           gl_cv_host_cpu_c_abi_32bit=yes
8907           ;;
8908
8909         x86_64 )
8910           # On x86_64 systems, the C compiler may be generating code in one of
8911           # these ABIs:
8912           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8913           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8914           #   with native Windows (mingw, MSVC).
8915           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8916           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8917           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919#if (defined __x86_64__ || defined __amd64__ \
8920                       || defined _M_X64 || defined _M_AMD64) \
8921                      && !(defined __ILP32__ || defined _ILP32)
8922                   int ok;
8923                  #else
8924                   error fail
8925                  #endif
8926
8927_ACEOF
8928if ac_fn_c_try_compile "$LINENO"; then :
8929  gl_cv_host_cpu_c_abi_32bit=no
8930else
8931  gl_cv_host_cpu_c_abi_32bit=yes
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934           ;;
8935
8936         arm* | aarch64 )
8937           # Assume arm with EABI.
8938           # On arm64 systems, the C compiler may be generating code in one of
8939           # these ABIs:
8940           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8941           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8942           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8943           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8946                   int ok;
8947                  #else
8948                   error fail
8949                  #endif
8950
8951_ACEOF
8952if ac_fn_c_try_compile "$LINENO"; then :
8953  gl_cv_host_cpu_c_abi_32bit=no
8954else
8955  gl_cv_host_cpu_c_abi_32bit=yes
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958           ;;
8959
8960         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8961           # On hppa, the C compiler may be generating 32-bit code or 64-bit
8962           # code. In the latter case, it defines _LP64 and __LP64__.
8963           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965#ifdef __LP64__
8966                   int ok;
8967                  #else
8968                   error fail
8969                  #endif
8970
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973  gl_cv_host_cpu_c_abi_32bit=no
8974else
8975  gl_cv_host_cpu_c_abi_32bit=yes
8976fi
8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978           ;;
8979
8980         ia64* )
8981           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8982           # 32-bit code. In the latter case, it defines _ILP32.
8983           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985#ifdef _ILP32
8986                   int ok;
8987                  #else
8988                   error fail
8989                  #endif
8990
8991_ACEOF
8992if ac_fn_c_try_compile "$LINENO"; then :
8993  gl_cv_host_cpu_c_abi_32bit=yes
8994else
8995  gl_cv_host_cpu_c_abi_32bit=no
8996fi
8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998           ;;
8999
9000         mips* )
9001           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
9002           # at 32.
9003           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
9006                   int ok;
9007                  #else
9008                   error fail
9009                  #endif
9010
9011_ACEOF
9012if ac_fn_c_try_compile "$LINENO"; then :
9013  gl_cv_host_cpu_c_abi_32bit=no
9014else
9015  gl_cv_host_cpu_c_abi_32bit=yes
9016fi
9017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018           ;;
9019
9020         powerpc* )
9021           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
9022           # No need to distinguish them here; the caller may distinguish
9023           # them based on the OS.
9024           # On powerpc64 systems, the C compiler may still be generating
9025           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
9026           # be generating 64-bit code.
9027           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029#if defined __powerpc64__ || defined _ARCH_PPC64
9030                   int ok;
9031                  #else
9032                   error fail
9033                  #endif
9034
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"; then :
9037  gl_cv_host_cpu_c_abi_32bit=no
9038else
9039  gl_cv_host_cpu_c_abi_32bit=yes
9040fi
9041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042           ;;
9043
9044         rs6000 )
9045           gl_cv_host_cpu_c_abi_32bit=yes
9046           ;;
9047
9048         riscv32 | riscv64 )
9049           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9050           # Size of 'long' and 'void *':
9051           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h.  */
9053#if defined __LP64__
9054                    int ok;
9055                  #else
9056                    error fail
9057                  #endif
9058
9059_ACEOF
9060if ac_fn_c_try_compile "$LINENO"; then :
9061  gl_cv_host_cpu_c_abi_32bit=no
9062else
9063  gl_cv_host_cpu_c_abi_32bit=yes
9064fi
9065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066           ;;
9067
9068         s390* )
9069           # On s390x, the C compiler may be generating 64-bit (= s390x) code
9070           # or 31-bit (= s390) code.
9071           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h.  */
9073#if defined __LP64__ || defined __s390x__
9074                    int ok;
9075                  #else
9076                    error fail
9077                  #endif
9078
9079_ACEOF
9080if ac_fn_c_try_compile "$LINENO"; then :
9081  gl_cv_host_cpu_c_abi_32bit=no
9082else
9083  gl_cv_host_cpu_c_abi_32bit=yes
9084fi
9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086           ;;
9087
9088         sparc | sparc64 )
9089           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9090           # C compiler still generates 32-bit code.
9091           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h.  */
9093#if defined __sparcv9 || defined __arch64__
9094                   int ok;
9095                  #else
9096                   error fail
9097                  #endif
9098
9099_ACEOF
9100if ac_fn_c_try_compile "$LINENO"; then :
9101  gl_cv_host_cpu_c_abi_32bit=no
9102else
9103  gl_cv_host_cpu_c_abi_32bit=yes
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106           ;;
9107
9108         *)
9109           gl_cv_host_cpu_c_abi_32bit=unknown
9110           ;;
9111       esac
9112     fi
9113
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9116$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9117
9118  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9119
9120
9121
9122
9123
9124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9125$as_echo_n "checking for ELF binary format... " >&6; }
9126if ${gl_cv_elf+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h.  */
9131#ifdef __ELF__
9132        Extensible Linking Format
9133        #endif
9134
9135_ACEOF
9136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9137  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9138  gl_cv_elf=yes
9139else
9140  gl_cv_elf=no
9141fi
9142rm -f conftest*
9143
9144
9145fi
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9147$as_echo "$gl_cv_elf" >&6; }
9148  if test $gl_cv_elf; then
9149    # Extract the ELF class of a file (5th byte) in decimal.
9150    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9151    if od -A x < /dev/null >/dev/null 2>/dev/null; then
9152      # Use POSIX od.
9153      func_elfclass ()
9154      {
9155        od -A n -t d1 -j 4 -N 1
9156      }
9157    else
9158      # Use BSD hexdump.
9159      func_elfclass ()
9160      {
9161        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9162        echo
9163      }
9164    fi
9165    case $HOST_CPU_C_ABI_32BIT in
9166      yes)
9167        # 32-bit ABI.
9168        acl_is_expected_elfclass ()
9169        {
9170          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
9171        }
9172        ;;
9173      no)
9174        # 64-bit ABI.
9175        acl_is_expected_elfclass ()
9176        {
9177          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
9178        }
9179        ;;
9180      *)
9181        # Unknown.
9182        acl_is_expected_elfclass ()
9183        {
9184          :
9185        }
9186        ;;
9187    esac
9188  else
9189    acl_is_expected_elfclass ()
9190    {
9191      :
9192    }
9193  fi
9194
9195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9196$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
9197if ${acl_cv_libdirstems+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200            acl_libdirstem=lib
9201     acl_libdirstem2=
9202     acl_libdirstem3=
9203     case "$host_os" in
9204       solaris*)
9205                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
9206           acl_libdirstem2=lib/64
9207           case "$host_cpu" in
9208             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9209             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9210           esac
9211         fi
9212         ;;
9213       *)
9214                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9215                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9216         if test $HOST_CPU_C_ABI_32BIT != no; then
9217           # 32-bit or unknown ABI.
9218           if test -d /usr/lib32; then
9219             acl_libdirstem2=lib32
9220           fi
9221         fi
9222         if test $HOST_CPU_C_ABI_32BIT != yes; then
9223           # 64-bit or unknown ABI.
9224           if test -d /usr/lib64; then
9225             acl_libdirstem3=lib64
9226           fi
9227         fi
9228         if test -n "$searchpath"; then
9229           acl_save_IFS="${IFS= 	}"; IFS=":"
9230           for searchdir in $searchpath; do
9231             if test -d "$searchdir"; then
9232               case "$searchdir" in
9233                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9234                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9235                 */../ | */.. )
9236                   # Better ignore directories of this form. They are misleading.
9237                   ;;
9238                 *) searchdir=`cd "$searchdir" && pwd`
9239                    case "$searchdir" in
9240                      */lib32 ) acl_libdirstem2=lib32 ;;
9241                      */lib64 ) acl_libdirstem3=lib64 ;;
9242                    esac ;;
9243               esac
9244             fi
9245           done
9246           IFS="$acl_save_IFS"
9247           if test $HOST_CPU_C_ABI_32BIT = yes; then
9248             # 32-bit ABI.
9249             acl_libdirstem3=
9250           fi
9251           if test $HOST_CPU_C_ABI_32BIT = no; then
9252             # 64-bit ABI.
9253             acl_libdirstem2=
9254           fi
9255         fi
9256         ;;
9257     esac
9258     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9259     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9260     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9261
9262fi
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9264$as_echo "$acl_cv_libdirstems" >&6; }
9265      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9266  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9267  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279    use_additional=yes
9280
9281  acl_save_prefix="$prefix"
9282  prefix="$acl_final_prefix"
9283  acl_save_exec_prefix="$exec_prefix"
9284  exec_prefix="$acl_final_exec_prefix"
9285
9286    eval additional_includedir=\"$includedir\"
9287    eval additional_libdir=\"$libdir\"
9288    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9289    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9290
9291  exec_prefix="$acl_save_exec_prefix"
9292  prefix="$acl_save_prefix"
9293
9294
9295# Check whether --with-libiconv-prefix was given.
9296if test "${with_libiconv_prefix+set}" = set; then :
9297  withval=$with_libiconv_prefix;
9298    if test "X$withval" = "Xno"; then
9299      use_additional=no
9300    else
9301      if test "X$withval" = "X"; then
9302
9303  acl_save_prefix="$prefix"
9304  prefix="$acl_final_prefix"
9305  acl_save_exec_prefix="$exec_prefix"
9306  exec_prefix="$acl_final_exec_prefix"
9307
9308          eval additional_includedir=\"$includedir\"
9309          eval additional_libdir=\"$libdir\"
9310          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9311          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9312
9313  exec_prefix="$acl_save_exec_prefix"
9314  prefix="$acl_save_prefix"
9315
9316      else
9317        additional_includedir="$withval/include"
9318        additional_libdir="$withval/$acl_libdirstem"
9319        additional_libdir2="$withval/$acl_libdirstem2"
9320        additional_libdir3="$withval/$acl_libdirstem3"
9321      fi
9322    fi
9323
9324fi
9325
9326  if test "X$additional_libdir2" = "X$additional_libdir"; then
9327    additional_libdir2=
9328  fi
9329  if test "X$additional_libdir3" = "X$additional_libdir"; then
9330    additional_libdir3=
9331  fi
9332      LIBICONV=
9333  LTLIBICONV=
9334  INCICONV=
9335  LIBICONV_PREFIX=
9336      HAVE_LIBICONV=
9337  rpathdirs=
9338  ltrpathdirs=
9339  names_already_handled=
9340  names_next_round='iconv '
9341  while test -n "$names_next_round"; do
9342    names_this_round="$names_next_round"
9343    names_next_round=
9344    for name in $names_this_round; do
9345      already_handled=
9346      for n in $names_already_handled; do
9347        if test "$n" = "$name"; then
9348          already_handled=yes
9349          break
9350        fi
9351      done
9352      if test -z "$already_handled"; then
9353        names_already_handled="$names_already_handled $name"
9354                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9355        eval value=\"\$HAVE_LIB$uppername\"
9356        if test -n "$value"; then
9357          if test "$value" = yes; then
9358            eval value=\"\$LIB$uppername\"
9359            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9360            eval value=\"\$LTLIB$uppername\"
9361            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9362          else
9363                                    :
9364          fi
9365        else
9366                              found_dir=
9367          found_la=
9368          found_so=
9369          found_a=
9370          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9371          if test -n "$acl_shlibext"; then
9372            shrext=".$acl_shlibext"             # typically: shrext=.so
9373          else
9374            shrext=
9375          fi
9376          if test $use_additional = yes; then
9377            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9378              if test "X$found_dir" = "X"; then
9379                eval dir=\$$additional_libdir_variable
9380                if test -n "$dir"; then
9381                                                      if test -n "$acl_shlibext"; then
9382                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9383                      found_dir="$dir"
9384                      found_so="$dir/$libname$shrext"
9385                    else
9386                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9387                        ver=`(cd "$dir" && \
9388                              for f in "$libname$shrext".*; do echo "$f"; done \
9389                              | sed -e "s,^$libname$shrext\\\\.,," \
9390                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9391                              | sed 1q ) 2>/dev/null`
9392                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9393                          found_dir="$dir"
9394                          found_so="$dir/$libname$shrext.$ver"
9395                        fi
9396                      else
9397                        eval library_names=\"$acl_library_names_spec\"
9398                        for f in $library_names; do
9399                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9400                            found_dir="$dir"
9401                            found_so="$dir/$f"
9402                            break
9403                          fi
9404                        done
9405                      fi
9406                    fi
9407                  fi
9408                                    if test "X$found_dir" = "X"; then
9409                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9410                      found_dir="$dir"
9411                      found_a="$dir/$libname.$acl_libext"
9412                    fi
9413                  fi
9414                  if test "X$found_dir" != "X"; then
9415                    if test -f "$dir/$libname.la"; then
9416                      found_la="$dir/$libname.la"
9417                    fi
9418                  fi
9419                fi
9420              fi
9421            done
9422          fi
9423          if test "X$found_dir" = "X"; then
9424            for x in $LDFLAGS $LTLIBICONV; do
9425
9426  acl_save_prefix="$prefix"
9427  prefix="$acl_final_prefix"
9428  acl_save_exec_prefix="$exec_prefix"
9429  exec_prefix="$acl_final_exec_prefix"
9430  eval x=\"$x\"
9431  exec_prefix="$acl_save_exec_prefix"
9432  prefix="$acl_save_prefix"
9433
9434              case "$x" in
9435                -L*)
9436                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9437                                    if test -n "$acl_shlibext"; then
9438                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9439                      found_dir="$dir"
9440                      found_so="$dir/$libname$shrext"
9441                    else
9442                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9443                        ver=`(cd "$dir" && \
9444                              for f in "$libname$shrext".*; do echo "$f"; done \
9445                              | sed -e "s,^$libname$shrext\\\\.,," \
9446                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9447                              | sed 1q ) 2>/dev/null`
9448                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9449                          found_dir="$dir"
9450                          found_so="$dir/$libname$shrext.$ver"
9451                        fi
9452                      else
9453                        eval library_names=\"$acl_library_names_spec\"
9454                        for f in $library_names; do
9455                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9456                            found_dir="$dir"
9457                            found_so="$dir/$f"
9458                            break
9459                          fi
9460                        done
9461                      fi
9462                    fi
9463                  fi
9464                                    if test "X$found_dir" = "X"; then
9465                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9466                      found_dir="$dir"
9467                      found_a="$dir/$libname.$acl_libext"
9468                    fi
9469                  fi
9470                  if test "X$found_dir" != "X"; then
9471                    if test -f "$dir/$libname.la"; then
9472                      found_la="$dir/$libname.la"
9473                    fi
9474                  fi
9475                  ;;
9476              esac
9477              if test "X$found_dir" != "X"; then
9478                break
9479              fi
9480            done
9481          fi
9482          if test "X$found_dir" != "X"; then
9483                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9484            if test "X$found_so" != "X"; then
9485                                                        if test "$enable_rpath" = no \
9486                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9487                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9488                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9489                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9490              else
9491                                                                                haveit=
9492                for x in $ltrpathdirs; do
9493                  if test "X$x" = "X$found_dir"; then
9494                    haveit=yes
9495                    break
9496                  fi
9497                done
9498                if test -z "$haveit"; then
9499                  ltrpathdirs="$ltrpathdirs $found_dir"
9500                fi
9501                                if test "$acl_hardcode_direct" = yes; then
9502                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9503                else
9504                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9505                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9506                                                            haveit=
9507                    for x in $rpathdirs; do
9508                      if test "X$x" = "X$found_dir"; then
9509                        haveit=yes
9510                        break
9511                      fi
9512                    done
9513                    if test -z "$haveit"; then
9514                      rpathdirs="$rpathdirs $found_dir"
9515                    fi
9516                  else
9517                                                                                haveit=
9518                    for x in $LDFLAGS $LIBICONV; do
9519
9520  acl_save_prefix="$prefix"
9521  prefix="$acl_final_prefix"
9522  acl_save_exec_prefix="$exec_prefix"
9523  exec_prefix="$acl_final_exec_prefix"
9524  eval x=\"$x\"
9525  exec_prefix="$acl_save_exec_prefix"
9526  prefix="$acl_save_prefix"
9527
9528                      if test "X$x" = "X-L$found_dir"; then
9529                        haveit=yes
9530                        break
9531                      fi
9532                    done
9533                    if test -z "$haveit"; then
9534                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9535                    fi
9536                    if test "$acl_hardcode_minus_L" != no; then
9537                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9538                    else
9539                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9540                    fi
9541                  fi
9542                fi
9543              fi
9544            else
9545              if test "X$found_a" != "X"; then
9546                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9547              else
9548                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9549              fi
9550            fi
9551                        additional_includedir=
9552            case "$found_dir" in
9553              */$acl_libdirstem | */$acl_libdirstem/)
9554                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9555                if test "$name" = 'iconv'; then
9556                  LIBICONV_PREFIX="$basedir"
9557                fi
9558                additional_includedir="$basedir/include"
9559                ;;
9560              */$acl_libdirstem2 | */$acl_libdirstem2/)
9561                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9562                if test "$name" = 'iconv'; then
9563                  LIBICONV_PREFIX="$basedir"
9564                fi
9565                additional_includedir="$basedir/include"
9566                ;;
9567              */$acl_libdirstem3 | */$acl_libdirstem3/)
9568                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9569                if test "$name" = 'iconv'; then
9570                  LIBICONV_PREFIX="$basedir"
9571                fi
9572                additional_includedir="$basedir/include"
9573                ;;
9574            esac
9575            if test "X$additional_includedir" != "X"; then
9576                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9577                haveit=
9578                if test "X$additional_includedir" = "X/usr/local/include"; then
9579                  if test -n "$GCC"; then
9580                    case $host_os in
9581                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9582                    esac
9583                  fi
9584                fi
9585                if test -z "$haveit"; then
9586                  for x in $CPPFLAGS $INCICONV; do
9587
9588  acl_save_prefix="$prefix"
9589  prefix="$acl_final_prefix"
9590  acl_save_exec_prefix="$exec_prefix"
9591  exec_prefix="$acl_final_exec_prefix"
9592  eval x=\"$x\"
9593  exec_prefix="$acl_save_exec_prefix"
9594  prefix="$acl_save_prefix"
9595
9596                    if test "X$x" = "X-I$additional_includedir"; then
9597                      haveit=yes
9598                      break
9599                    fi
9600                  done
9601                  if test -z "$haveit"; then
9602                    if test -d "$additional_includedir"; then
9603                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9604                    fi
9605                  fi
9606                fi
9607              fi
9608            fi
9609                        if test -n "$found_la"; then
9610                                                        save_libdir="$libdir"
9611              case "$found_la" in
9612                */* | *\\*) . "$found_la" ;;
9613                *) . "./$found_la" ;;
9614              esac
9615              libdir="$save_libdir"
9616                            for dep in $dependency_libs; do
9617                case "$dep" in
9618                  -L*)
9619                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9620                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9621                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9622                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9623                      haveit=
9624                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9625                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9626                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9627                        if test -n "$GCC"; then
9628                          case $host_os in
9629                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9630                          esac
9631                        fi
9632                      fi
9633                      if test -z "$haveit"; then
9634                        haveit=
9635                        for x in $LDFLAGS $LIBICONV; do
9636
9637  acl_save_prefix="$prefix"
9638  prefix="$acl_final_prefix"
9639  acl_save_exec_prefix="$exec_prefix"
9640  exec_prefix="$acl_final_exec_prefix"
9641  eval x=\"$x\"
9642  exec_prefix="$acl_save_exec_prefix"
9643  prefix="$acl_save_prefix"
9644
9645                          if test "X$x" = "X-L$dependency_libdir"; then
9646                            haveit=yes
9647                            break
9648                          fi
9649                        done
9650                        if test -z "$haveit"; then
9651                          if test -d "$dependency_libdir"; then
9652                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9653                          fi
9654                        fi
9655                        haveit=
9656                        for x in $LDFLAGS $LTLIBICONV; do
9657
9658  acl_save_prefix="$prefix"
9659  prefix="$acl_final_prefix"
9660  acl_save_exec_prefix="$exec_prefix"
9661  exec_prefix="$acl_final_exec_prefix"
9662  eval x=\"$x\"
9663  exec_prefix="$acl_save_exec_prefix"
9664  prefix="$acl_save_prefix"
9665
9666                          if test "X$x" = "X-L$dependency_libdir"; then
9667                            haveit=yes
9668                            break
9669                          fi
9670                        done
9671                        if test -z "$haveit"; then
9672                          if test -d "$dependency_libdir"; then
9673                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9674                          fi
9675                        fi
9676                      fi
9677                    fi
9678                    ;;
9679                  -R*)
9680                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9681                    if test "$enable_rpath" != no; then
9682                                                                  haveit=
9683                      for x in $rpathdirs; do
9684                        if test "X$x" = "X$dir"; then
9685                          haveit=yes
9686                          break
9687                        fi
9688                      done
9689                      if test -z "$haveit"; then
9690                        rpathdirs="$rpathdirs $dir"
9691                      fi
9692                                                                  haveit=
9693                      for x in $ltrpathdirs; do
9694                        if test "X$x" = "X$dir"; then
9695                          haveit=yes
9696                          break
9697                        fi
9698                      done
9699                      if test -z "$haveit"; then
9700                        ltrpathdirs="$ltrpathdirs $dir"
9701                      fi
9702                    fi
9703                    ;;
9704                  -l*)
9705                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9706                    ;;
9707                  *.la)
9708                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9709                    ;;
9710                  *)
9711                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9712                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9713                    ;;
9714                esac
9715              done
9716            fi
9717          else
9718                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9719            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9720          fi
9721        fi
9722      fi
9723    done
9724  done
9725  if test "X$rpathdirs" != "X"; then
9726    if test -n "$acl_hardcode_libdir_separator"; then
9727                        alldirs=
9728      for found_dir in $rpathdirs; do
9729        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9730      done
9731            acl_save_libdir="$libdir"
9732      libdir="$alldirs"
9733      eval flag=\"$acl_hardcode_libdir_flag_spec\"
9734      libdir="$acl_save_libdir"
9735      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9736    else
9737            for found_dir in $rpathdirs; do
9738        acl_save_libdir="$libdir"
9739        libdir="$found_dir"
9740        eval flag=\"$acl_hardcode_libdir_flag_spec\"
9741        libdir="$acl_save_libdir"
9742        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9743      done
9744    fi
9745  fi
9746  if test "X$ltrpathdirs" != "X"; then
9747            for found_dir in $ltrpathdirs; do
9748      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9749    done
9750  fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762          am_save_CPPFLAGS="$CPPFLAGS"
9763
9764  for element in $INCICONV; do
9765    haveit=
9766    for x in $CPPFLAGS; do
9767
9768  acl_save_prefix="$prefix"
9769  prefix="$acl_final_prefix"
9770  acl_save_exec_prefix="$exec_prefix"
9771  exec_prefix="$acl_final_exec_prefix"
9772  eval x=\"$x\"
9773  exec_prefix="$acl_save_exec_prefix"
9774  prefix="$acl_save_prefix"
9775
9776      if test "X$x" = "X$element"; then
9777        haveit=yes
9778        break
9779      fi
9780    done
9781    if test -z "$haveit"; then
9782      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9783    fi
9784  done
9785
9786
9787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9788$as_echo_n "checking for iconv... " >&6; }
9789if ${am_cv_func_iconv+:} false; then :
9790  $as_echo_n "(cached) " >&6
9791else
9792
9793    am_cv_func_iconv="no, consider installing GNU libiconv"
9794    am_cv_lib_iconv=no
9795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h.  */
9797
9798#include <stdlib.h>
9799#include <iconv.h>
9800
9801int
9802main ()
9803{
9804iconv_t cd = iconv_open("","");
9805           iconv(cd,NULL,NULL,NULL,NULL);
9806           iconv_close(cd);
9807  ;
9808  return 0;
9809}
9810_ACEOF
9811if ac_fn_c_try_link "$LINENO"; then :
9812  am_cv_func_iconv=yes
9813fi
9814rm -f core conftest.err conftest.$ac_objext \
9815    conftest$ac_exeext conftest.$ac_ext
9816    if test "$am_cv_func_iconv" != yes; then
9817      am_save_LIBS="$LIBS"
9818      LIBS="$LIBS $LIBICONV"
9819      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h.  */
9821
9822#include <stdlib.h>
9823#include <iconv.h>
9824
9825int
9826main ()
9827{
9828iconv_t cd = iconv_open("","");
9829             iconv(cd,NULL,NULL,NULL,NULL);
9830             iconv_close(cd);
9831  ;
9832  return 0;
9833}
9834_ACEOF
9835if ac_fn_c_try_link "$LINENO"; then :
9836  am_cv_lib_iconv=yes
9837        am_cv_func_iconv=yes
9838fi
9839rm -f core conftest.err conftest.$ac_objext \
9840    conftest$ac_exeext conftest.$ac_ext
9841      LIBS="$am_save_LIBS"
9842    fi
9843
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9846$as_echo "$am_cv_func_iconv" >&6; }
9847  if test "$am_cv_func_iconv" = yes; then
9848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9849$as_echo_n "checking for working iconv... " >&6; }
9850if ${am_cv_func_iconv_works+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853
9854                  am_save_LIBS="$LIBS"
9855      if test $am_cv_lib_iconv = yes; then
9856        LIBS="$LIBS $LIBICONV"
9857      fi
9858      am_cv_func_iconv_works=no
9859      for ac_iconv_const in '' 'const'; do
9860        if test "$cross_compiling" = yes; then :
9861  case "$host_os" in
9862             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9863             *)            am_cv_func_iconv_works="guessing yes" ;;
9864           esac
9865else
9866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868
9869#include <iconv.h>
9870#include <string.h>
9871
9872#ifndef ICONV_CONST
9873# define ICONV_CONST $ac_iconv_const
9874#endif
9875
9876int
9877main ()
9878{
9879int result = 0;
9880  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9881     returns.  */
9882  {
9883    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9884    if (cd_utf8_to_88591 != (iconv_t)(-1))
9885      {
9886        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
9887        char buf[10];
9888        ICONV_CONST char *inptr = input;
9889        size_t inbytesleft = strlen (input);
9890        char *outptr = buf;
9891        size_t outbytesleft = sizeof (buf);
9892        size_t res = iconv (cd_utf8_to_88591,
9893                            &inptr, &inbytesleft,
9894                            &outptr, &outbytesleft);
9895        if (res == 0)
9896          result |= 1;
9897        iconv_close (cd_utf8_to_88591);
9898      }
9899  }
9900  /* Test against Solaris 10 bug: Failures are not distinguishable from
9901     successful returns.  */
9902  {
9903    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9904    if (cd_ascii_to_88591 != (iconv_t)(-1))
9905      {
9906        static ICONV_CONST char input[] = "\263";
9907        char buf[10];
9908        ICONV_CONST char *inptr = input;
9909        size_t inbytesleft = strlen (input);
9910        char *outptr = buf;
9911        size_t outbytesleft = sizeof (buf);
9912        size_t res = iconv (cd_ascii_to_88591,
9913                            &inptr, &inbytesleft,
9914                            &outptr, &outbytesleft);
9915        if (res == 0)
9916          result |= 2;
9917        iconv_close (cd_ascii_to_88591);
9918      }
9919  }
9920  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9921  {
9922    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9923    if (cd_88591_to_utf8 != (iconv_t)(-1))
9924      {
9925        static ICONV_CONST char input[] = "\304";
9926        static char buf[2] = { (char)0xDE, (char)0xAD };
9927        ICONV_CONST char *inptr = input;
9928        size_t inbytesleft = 1;
9929        char *outptr = buf;
9930        size_t outbytesleft = 1;
9931        size_t res = iconv (cd_88591_to_utf8,
9932                            &inptr, &inbytesleft,
9933                            &outptr, &outbytesleft);
9934        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9935          result |= 4;
9936        iconv_close (cd_88591_to_utf8);
9937      }
9938  }
9939#if 0 /* This bug could be worked around by the caller.  */
9940  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9941  {
9942    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9943    if (cd_88591_to_utf8 != (iconv_t)(-1))
9944      {
9945        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9946        char buf[50];
9947        ICONV_CONST char *inptr = input;
9948        size_t inbytesleft = strlen (input);
9949        char *outptr = buf;
9950        size_t outbytesleft = sizeof (buf);
9951        size_t res = iconv (cd_88591_to_utf8,
9952                            &inptr, &inbytesleft,
9953                            &outptr, &outbytesleft);
9954        if ((int)res > 0)
9955          result |= 8;
9956        iconv_close (cd_88591_to_utf8);
9957      }
9958  }
9959#endif
9960  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9961     provided.  */
9962  {
9963    /* Try standardized names.  */
9964    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
9965    /* Try IRIX, OSF/1 names.  */
9966    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
9967    /* Try AIX names.  */
9968    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
9969    /* Try HP-UX names.  */
9970    iconv_t cd4 = iconv_open ("utf8", "eucJP");
9971    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
9972        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
9973      result |= 16;
9974    if (cd1 != (iconv_t)(-1))
9975      iconv_close (cd1);
9976    if (cd2 != (iconv_t)(-1))
9977      iconv_close (cd2);
9978    if (cd3 != (iconv_t)(-1))
9979      iconv_close (cd3);
9980    if (cd4 != (iconv_t)(-1))
9981      iconv_close (cd4);
9982  }
9983  return result;
9984
9985  ;
9986  return 0;
9987}
9988_ACEOF
9989if ac_fn_c_try_run "$LINENO"; then :
9990  am_cv_func_iconv_works=yes
9991fi
9992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9993  conftest.$ac_objext conftest.beam conftest.$ac_ext
9994fi
9995
9996        test "$am_cv_func_iconv_works" = no || break
9997      done
9998      LIBS="$am_save_LIBS"
9999
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10002$as_echo "$am_cv_func_iconv_works" >&6; }
10003    case "$am_cv_func_iconv_works" in
10004      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10005      *)   am_func_iconv=yes ;;
10006    esac
10007  else
10008    am_func_iconv=no am_cv_lib_iconv=no
10009  fi
10010  if test "$am_func_iconv" = yes; then
10011
10012$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10013
10014  fi
10015  if test "$am_cv_lib_iconv" = yes; then
10016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10017$as_echo_n "checking how to link with libiconv... " >&6; }
10018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10019$as_echo "$LIBICONV" >&6; }
10020  else
10021            CPPFLAGS="$am_save_CPPFLAGS"
10022    LIBICONV=
10023    LTLIBICONV=
10024  fi
10025
10026
10027
10028  if test "$am_cv_func_iconv" = yes; then
10029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10030$as_echo_n "checking for iconv declaration... " >&6; }
10031    if ${am_cv_proto_iconv+:} false; then :
10032  $as_echo_n "(cached) " >&6
10033else
10034
10035      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037
10038#include <stdlib.h>
10039#include <iconv.h>
10040extern
10041#ifdef __cplusplus
10042"C"
10043#endif
10044#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
10045size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10046#else
10047size_t iconv();
10048#endif
10049
10050int
10051main ()
10052{
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_compile "$LINENO"; then :
10059  am_cv_proto_iconv_arg1=""
10060else
10061  am_cv_proto_iconv_arg1="const"
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064      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);"
10065fi
10066
10067    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10068    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
10069         $am_cv_proto_iconv" >&5
10070$as_echo "
10071         $am_cv_proto_iconv" >&6; }
10072  else
10073            am_cv_proto_iconv_arg1=""
10074  fi
10075
10076cat >>confdefs.h <<_ACEOF
10077#define ICONV_CONST $am_cv_proto_iconv_arg1
10078_ACEOF
10079
10080
10081
10082  if test "$am_cv_func_iconv" != "yes"; then
10083    as_fn_error $? "
10084***
10085*** The iconv function is required.  You can specify its location
10086*** using the --with-libiconv-prefix=PREFIX option to configure.
10087***" "$LINENO" 5
10088  fi
10089fi
10090
10091# Check whether --enable-pinentry-emacs was given.
10092if test "${enable_pinentry_emacs+set}" = set; then :
10093  enableval=$enable_pinentry_emacs; pinentry_emacs=$enableval
10094else
10095  pinentry_emacs=no
10096fi
10097
10098# Check whether --enable-inside-emacs was given.
10099if test "${enable_inside_emacs+set}" = set; then :
10100  enableval=$enable_inside_emacs; inside_emacs=$enableval
10101else
10102  inside_emacs=maybe
10103fi
10104
10105
10106if test "$pinentry_emacs" != "no" -o "$inside_emacs" != "no"; then
10107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Unix domain socket is supported" >&5
10108$as_echo_n "checking if Unix domain socket is supported... " >&6; }
10109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h.  */
10111
10112#include <sys/socket.h>
10113#include <sys/un.h>
10114
10115int
10116main ()
10117{
10118int s = socket (AF_UNIX, SOCK_STREAM, 0);
10119  ;
10120  return 0;
10121}
10122_ACEOF
10123if ac_fn_c_try_compile "$LINENO"; then :
10124  _unixsock_works=yes
10125else
10126  _unixsock_works=no
10127fi
10128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_unixsock_works" >&5
10130$as_echo "$_unixsock_works" >&6; }
10131  if test "$_unixsock_works" = "yes"; then
10132    if test "$pinentry_emacs" != "no"; then
10133      pinentry_emacs=yes
10134    fi
10135    if test "$inside_emacs" != "no"; then
10136      inside_emacs=yes
10137
10138$as_echo "#define INSIDE_EMACS 1" >>confdefs.h
10139
10140    fi
10141  else
10142    if test "$pinentry_emacs" = "yes" -o "$inside_emacs" = "yes"; then
10143      as_fn_error $? "
10144***
10145*** Support for Unix domain sockets is required.
10146***" "$LINENO" 5
10147    fi
10148    pinentry_emacs=no
10149    inside_emacs=no
10150  fi
10151fi
10152
10153 if test "$pinentry_emacs" = "yes" -o "$inside_emacs" = "yes"; then
10154  BUILD_LIBPINENTRY_EMACS_TRUE=
10155  BUILD_LIBPINENTRY_EMACS_FALSE='#'
10156else
10157  BUILD_LIBPINENTRY_EMACS_TRUE='#'
10158  BUILD_LIBPINENTRY_EMACS_FALSE=
10159fi
10160
10161 if test "$pinentry_emacs" = "yes"; then
10162  BUILD_PINENTRY_EMACS_TRUE=
10163  BUILD_PINENTRY_EMACS_FALSE='#'
10164else
10165  BUILD_PINENTRY_EMACS_TRUE='#'
10166  BUILD_PINENTRY_EMACS_FALSE=
10167fi
10168
10169 if test "$inside_emacs" = "yes"; then
10170  INSIDE_EMACS_TRUE=
10171  INSIDE_EMACS_FALSE='#'
10172else
10173  INSIDE_EMACS_TRUE='#'
10174  INSIDE_EMACS_FALSE=
10175fi
10176
10177
10178if test "$pinentry_emacs" = "yes"; then
10179
10180$as_echo "#define PINENTRY_EMACS 1" >>confdefs.h
10181
10182fi
10183
10184
10185
10186# Check whether --enable-pinentry-efl was given.
10187if test "${enable_pinentry_efl+set}" = set; then :
10188  enableval=$enable_pinentry_efl; pinentry_efl=$enableval
10189else
10190  pinentry_efl=maybe
10191fi
10192
10193
10194if test "$pinentry_efl" != "no"; then
10195	# Extract the first word of "pkg-config", so it can be a program name with args.
10196set dummy pkg-config; ac_word=$2
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if ${ac_cv_path_PKG_CONFIG+:} false; then :
10200  $as_echo_n "(cached) " >&6
10201else
10202  case $PKG_CONFIG in
10203  [\\/]* | ?:[\\/]*)
10204  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10205  ;;
10206  *)
10207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210  IFS=$as_save_IFS
10211  test -z "$as_dir" && as_dir=.
10212    for ac_exec_ext in '' $ac_executable_extensions; do
10213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216    break 2
10217  fi
10218done
10219  done
10220IFS=$as_save_IFS
10221
10222  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10223  ;;
10224esac
10225fi
10226PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10227if test -n "$PKG_CONFIG"; then
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10229$as_echo "$PKG_CONFIG" >&6; }
10230else
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235
10236	if test x"${PKG_CONFIG}" = xno ; then
10237		pinentry_efl=no
10238	fi
10239fi
10240
10241if test "$pinentry_efl" != "no"; then
10242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for efl" >&5
10243$as_echo_n "checking for efl... " >&6; }
10244	"${PKG_CONFIG}" --exists 'elementary >= 1.18'
10245	if test $? -ne 0 ; then
10246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247$as_echo "no" >&6; }
10248		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: efl >= 1.18 is required for efl pinentry" >&5
10249$as_echo "$as_me: WARNING: efl >= 1.18 is required for efl pinentry" >&2;}
10250		pinentry_efl=no
10251	else
10252		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10253$as_echo "yes" >&6; }
10254		EFL_CFLAGS=`"${PKG_CONFIG}" --cflags ecore-x elementary`
10255		EFL_LIBS=`"${PKG_CONFIG}" --libs ecore-x elementary`
10256
10257
10258		if test "$pinentry_efl" != "no"
10259		then
10260			pinentry_efl=yes
10261		fi
10262	fi
10263fi
10264 if test "$pinentry_efl" = "yes"; then
10265  BUILD_PINENTRY_EFL_TRUE=
10266  BUILD_PINENTRY_EFL_FALSE='#'
10267else
10268  BUILD_PINENTRY_EFL_TRUE='#'
10269  BUILD_PINENTRY_EFL_FALSE=
10270fi
10271
10272
10273# Check whether --enable-pinentry-gtk2 was given.
10274if test "${enable_pinentry_gtk2+set}" = set; then :
10275  enableval=$enable_pinentry_gtk2; pinentry_gtk_2=$enableval
10276else
10277  pinentry_gtk_2=maybe
10278fi
10279
10280
10281# Check whether --enable-pinentry-gnome3 was given.
10282if test "${enable_pinentry_gnome3+set}" = set; then :
10283  enableval=$enable_pinentry_gnome3; pinentry_gnome_3=$enableval
10284else
10285  pinentry_gnome_3=maybe
10286fi
10287
10288
10289if test "$pinentry_gtk_2" != "no"; then
10290
10291pkg_failed=no
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.12.0" >&5
10293$as_echo_n "checking for gtk+-2.0 >= 2.12.0... " >&6; }
10294
10295if test -n "$PKG_CONFIG"; then
10296    if test -n "$GTK2_CFLAGS"; then
10297        pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
10298    else
10299        if test -n "$PKG_CONFIG" && \
10300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.12.0\""; } >&5
10301  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.12.0") 2>&5
10302  ac_status=$?
10303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10304  test $ac_status = 0; }; then
10305  pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.12.0" 2>/dev/null`
10306else
10307  pkg_failed=yes
10308fi
10309    fi
10310else
10311	pkg_failed=untried
10312fi
10313if test -n "$PKG_CONFIG"; then
10314    if test -n "$GTK2_LIBS"; then
10315        pkg_cv_GTK2_LIBS="$GTK2_LIBS"
10316    else
10317        if test -n "$PKG_CONFIG" && \
10318    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.12.0\""; } >&5
10319  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.12.0") 2>&5
10320  ac_status=$?
10321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10322  test $ac_status = 0; }; then
10323  pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.12.0" 2>/dev/null`
10324else
10325  pkg_failed=yes
10326fi
10327    fi
10328else
10329	pkg_failed=untried
10330fi
10331
10332
10333
10334if test $pkg_failed = yes; then
10335
10336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10337        _pkg_short_errors_supported=yes
10338else
10339        _pkg_short_errors_supported=no
10340fi
10341        if test $_pkg_short_errors_supported = yes; then
10342	        GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.12.0"`
10343        else
10344	        GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.12.0"`
10345        fi
10346	# Put the nasty error message in config.log where it belongs
10347	echo "$GTK2_PKG_ERRORS" >&5
10348
10349	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
10351
10352			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config could not find the module gtk+-2.0" >&5
10353$as_echo "$as_me: WARNING: pkg-config could not find the module gtk+-2.0" >&2;}
10354			pinentry_gtk_2=no
10355
10356
10357elif test $pkg_failed = untried; then
10358
10359			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config could not find the module gtk+-2.0" >&5
10360$as_echo "$as_me: WARNING: pkg-config could not find the module gtk+-2.0" >&2;}
10361			pinentry_gtk_2=no
10362
10363
10364else
10365	GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
10366	GTK2_LIBS=$pkg_cv_GTK2_LIBS
10367        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10368$as_echo "yes" >&6; }
10369
10370			test "$pinentry_gtk_2" != "no" && pinentry_gtk_2=yes
10371			test "$pinentry_gnome_3" != "no" && pinentry_gnome_3=yes
10372
10373fi
10374fi
10375 if test "$pinentry_gtk_2" = "yes"; then
10376  BUILD_PINENTRY_GTK_2_TRUE=
10377  BUILD_PINENTRY_GTK_2_FALSE='#'
10378else
10379  BUILD_PINENTRY_GTK_2_TRUE='#'
10380  BUILD_PINENTRY_GTK_2_FALSE=
10381fi
10382
10383
10384if test "$pinentry_gnome_3" != "no"; then
10385
10386pkg_failed=no
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcr-3,gcr-base-3" >&5
10388$as_echo_n "checking for gcr-3,gcr-base-3... " >&6; }
10389
10390if test -n "$PKG_CONFIG"; then
10391    if test -n "$GNOME3_CFLAGS"; then
10392        pkg_cv_GNOME3_CFLAGS="$GNOME3_CFLAGS"
10393    else
10394        if test -n "$PKG_CONFIG" && \
10395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcr-3,gcr-base-3\""; } >&5
10396  ($PKG_CONFIG --exists --print-errors "gcr-3,gcr-base-3") 2>&5
10397  ac_status=$?
10398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10399  test $ac_status = 0; }; then
10400  pkg_cv_GNOME3_CFLAGS=`$PKG_CONFIG --cflags "gcr-3,gcr-base-3" 2>/dev/null`
10401else
10402  pkg_failed=yes
10403fi
10404    fi
10405else
10406	pkg_failed=untried
10407fi
10408if test -n "$PKG_CONFIG"; then
10409    if test -n "$GNOME3_LIBS"; then
10410        pkg_cv_GNOME3_LIBS="$GNOME3_LIBS"
10411    else
10412        if test -n "$PKG_CONFIG" && \
10413    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcr-3,gcr-base-3\""; } >&5
10414  ($PKG_CONFIG --exists --print-errors "gcr-3,gcr-base-3") 2>&5
10415  ac_status=$?
10416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10417  test $ac_status = 0; }; then
10418  pkg_cv_GNOME3_LIBS=`$PKG_CONFIG --libs "gcr-3,gcr-base-3" 2>/dev/null`
10419else
10420  pkg_failed=yes
10421fi
10422    fi
10423else
10424	pkg_failed=untried
10425fi
10426
10427
10428
10429if test $pkg_failed = yes; then
10430
10431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10432        _pkg_short_errors_supported=yes
10433else
10434        _pkg_short_errors_supported=no
10435fi
10436        if test $_pkg_short_errors_supported = yes; then
10437	        GNOME3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gcr-3,gcr-base-3"`
10438        else
10439	        GNOME3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gcr-3,gcr-base-3"`
10440        fi
10441	# Put the nasty error message in config.log where it belongs
10442	echo "$GNOME3_PKG_ERRORS" >&5
10443
10444	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445$as_echo "no" >&6; }
10446
10447			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config could not find the module gcr-3,gcr-base-3" >&5
10448$as_echo "$as_me: WARNING: pkg-config could not find the module gcr-3,gcr-base-3" >&2;}
10449			pinentry_gnome_3=no
10450
10451
10452elif test $pkg_failed = untried; then
10453
10454			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config could not find the module gcr-3,gcr-base-3" >&5
10455$as_echo "$as_me: WARNING: pkg-config could not find the module gcr-3,gcr-base-3" >&2;}
10456			pinentry_gnome_3=no
10457
10458
10459else
10460	GNOME3_CFLAGS=$pkg_cv_GNOME3_CFLAGS
10461	GNOME3_LIBS=$pkg_cv_GNOME3_LIBS
10462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10463$as_echo "yes" >&6; }
10464
10465			pinentry_gnome_3=yes
10466
10467$as_echo "#define GCR_API_SUBJECT_TO_CHANGE 1" >>confdefs.h
10468
10469
10470fi
10471fi
10472
10473 if test "$pinentry_gnome_3" = "yes"; then
10474  BUILD_PINENTRY_GNOME_3_TRUE=
10475  BUILD_PINENTRY_GNOME_3_FALSE='#'
10476else
10477  BUILD_PINENTRY_GNOME_3_TRUE='#'
10478  BUILD_PINENTRY_GNOME_3_FALSE=
10479fi
10480
10481
10482# Check whether --enable-libsecret was given.
10483if test "${enable_libsecret+set}" = set; then :
10484  enableval=$enable_libsecret; libsecret=$enableval
10485else
10486  libsecret=maybe
10487fi
10488
10489
10490if test "$libsecret" != "no"; then
10491
10492pkg_failed=no
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsecret-1" >&5
10494$as_echo_n "checking for libsecret-1... " >&6; }
10495
10496if test -n "$PKG_CONFIG"; then
10497    if test -n "$LIBSECRET_CFLAGS"; then
10498        pkg_cv_LIBSECRET_CFLAGS="$LIBSECRET_CFLAGS"
10499    else
10500        if test -n "$PKG_CONFIG" && \
10501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1\""; } >&5
10502  ($PKG_CONFIG --exists --print-errors "libsecret-1") 2>&5
10503  ac_status=$?
10504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505  test $ac_status = 0; }; then
10506  pkg_cv_LIBSECRET_CFLAGS=`$PKG_CONFIG --cflags "libsecret-1" 2>/dev/null`
10507else
10508  pkg_failed=yes
10509fi
10510    fi
10511else
10512	pkg_failed=untried
10513fi
10514if test -n "$PKG_CONFIG"; then
10515    if test -n "$LIBSECRET_LIBS"; then
10516        pkg_cv_LIBSECRET_LIBS="$LIBSECRET_LIBS"
10517    else
10518        if test -n "$PKG_CONFIG" && \
10519    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1\""; } >&5
10520  ($PKG_CONFIG --exists --print-errors "libsecret-1") 2>&5
10521  ac_status=$?
10522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523  test $ac_status = 0; }; then
10524  pkg_cv_LIBSECRET_LIBS=`$PKG_CONFIG --libs "libsecret-1" 2>/dev/null`
10525else
10526  pkg_failed=yes
10527fi
10528    fi
10529else
10530	pkg_failed=untried
10531fi
10532
10533
10534
10535if test $pkg_failed = yes; then
10536
10537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10538        _pkg_short_errors_supported=yes
10539else
10540        _pkg_short_errors_supported=no
10541fi
10542        if test $_pkg_short_errors_supported = yes; then
10543	        LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsecret-1"`
10544        else
10545	        LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsecret-1"`
10546        fi
10547	# Put the nasty error message in config.log where it belongs
10548	echo "$LIBSECRET_PKG_ERRORS" >&5
10549
10550	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551$as_echo "no" >&6; }
10552
10553			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config could not find the module libsecret-1" >&5
10554$as_echo "$as_me: WARNING: pkg-config could not find the module libsecret-1" >&2;}
10555			libsecret=no
10556
10557
10558elif test $pkg_failed = untried; then
10559
10560			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config could not find the module libsecret-1" >&5
10561$as_echo "$as_me: WARNING: pkg-config could not find the module libsecret-1" >&2;}
10562			libsecret=no
10563
10564
10565else
10566	LIBSECRET_CFLAGS=$pkg_cv_LIBSECRET_CFLAGS
10567	LIBSECRET_LIBS=$pkg_cv_LIBSECRET_LIBS
10568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10569$as_echo "yes" >&6; }
10570	libsecret=yes
10571fi
10572fi
10573 if test "$libsecret" = "yes"; then
10574  BUILD_WITH_LIBSECRET_TRUE=
10575  BUILD_WITH_LIBSECRET_FALSE='#'
10576else
10577  BUILD_WITH_LIBSECRET_TRUE='#'
10578  BUILD_WITH_LIBSECRET_FALSE=
10579fi
10580
10581if test "$libsecret" = "yes"; then
10582
10583$as_echo "#define HAVE_LIBSECRET 1" >>confdefs.h
10584
10585
10586  COMMON_CFLAGS="$LIBSECRET_CFLAGS $COMMON_CFLAGS"
10587  COMMON_LIBS="$LIBSECRET_LIBS $COMMON_LIBS"
10588fi
10589
10590# Check whether --enable-pinentry-qt was given.
10591if test "${enable_pinentry_qt+set}" = set; then :
10592  enableval=$enable_pinentry_qt; pinentry_qt=$enableval
10593else
10594  pinentry_qt=maybe
10595fi
10596
10597
10598
10599if test "$pinentry_qt" != "no"; then
10600
10601  # Check whether --enable-pinentry-qt5 was given.
10602if test "${enable_pinentry_qt5+set}" = set; then :
10603  enableval=$enable_pinentry_qt5; enable_pinentry_qt5=$enableval
10604else
10605  enable_pinentry_qt5="try"
10606fi
10607
10608
10609  have_qt5_libs="no";
10610  require_qt_cpp11="no";
10611
10612  if test "$enable_pinentry_qt5" != "no"; then
10613
10614pkg_failed=no
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0" >&5
10616$as_echo_n "checking for Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0... " >&6; }
10617
10618if test -n "$PKG_CONFIG"; then
10619    if test -n "$PINENTRY_QT_CFLAGS"; then
10620        pkg_cv_PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS"
10621    else
10622        if test -n "$PKG_CONFIG" && \
10623    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0\""; } >&5
10624  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0") 2>&5
10625  ac_status=$?
10626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10627  test $ac_status = 0; }; then
10628  pkg_cv_PINENTRY_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0" 2>/dev/null`
10629else
10630  pkg_failed=yes
10631fi
10632    fi
10633else
10634	pkg_failed=untried
10635fi
10636if test -n "$PKG_CONFIG"; then
10637    if test -n "$PINENTRY_QT_LIBS"; then
10638        pkg_cv_PINENTRY_QT_LIBS="$PINENTRY_QT_LIBS"
10639    else
10640        if test -n "$PKG_CONFIG" && \
10641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0\""; } >&5
10642  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0") 2>&5
10643  ac_status=$?
10644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10645  test $ac_status = 0; }; then
10646  pkg_cv_PINENTRY_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0" 2>/dev/null`
10647else
10648  pkg_failed=yes
10649fi
10650    fi
10651else
10652	pkg_failed=untried
10653fi
10654
10655
10656
10657if test $pkg_failed = yes; then
10658
10659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10660        _pkg_short_errors_supported=yes
10661else
10662        _pkg_short_errors_supported=no
10663fi
10664        if test $_pkg_short_errors_supported = yes; then
10665	        PINENTRY_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0"`
10666        else
10667	        PINENTRY_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0"`
10668        fi
10669	# Put the nasty error message in config.log where it belongs
10670	echo "$PINENTRY_QT_PKG_ERRORS" >&5
10671
10672	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673$as_echo "no" >&6; }
10674                have_qt5_libs="no"
10675elif test $pkg_failed = untried; then
10676	have_qt5_libs="no"
10677else
10678	PINENTRY_QT_CFLAGS=$pkg_cv_PINENTRY_QT_CFLAGS
10679	PINENTRY_QT_LIBS=$pkg_cv_PINENTRY_QT_LIBS
10680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681$as_echo "yes" >&6; }
10682	have_qt5_libs="yes"
10683fi
10684
10685    if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
10686      PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS -fpic"
10687    fi
10688  fi
10689  if test "$have_qt5_libs" = "yes"; then
10690
10691pkg_failed=no
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5Core >= 5.7.0" >&5
10693$as_echo_n "checking for Qt5Core >= 5.7.0... " >&6; }
10694
10695if test -n "$PKG_CONFIG"; then
10696    if test -n "$PINENTRY_QT_REQUIRE_CPP11_CFLAGS"; then
10697        pkg_cv_PINENTRY_QT_REQUIRE_CPP11_CFLAGS="$PINENTRY_QT_REQUIRE_CPP11_CFLAGS"
10698    else
10699        if test -n "$PKG_CONFIG" && \
10700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.7.0\""; } >&5
10701  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.7.0") 2>&5
10702  ac_status=$?
10703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10704  test $ac_status = 0; }; then
10705  pkg_cv_PINENTRY_QT_REQUIRE_CPP11_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.7.0" 2>/dev/null`
10706else
10707  pkg_failed=yes
10708fi
10709    fi
10710else
10711	pkg_failed=untried
10712fi
10713if test -n "$PKG_CONFIG"; then
10714    if test -n "$PINENTRY_QT_REQUIRE_CPP11_LIBS"; then
10715        pkg_cv_PINENTRY_QT_REQUIRE_CPP11_LIBS="$PINENTRY_QT_REQUIRE_CPP11_LIBS"
10716    else
10717        if test -n "$PKG_CONFIG" && \
10718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.7.0\""; } >&5
10719  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.7.0") 2>&5
10720  ac_status=$?
10721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10722  test $ac_status = 0; }; then
10723  pkg_cv_PINENTRY_QT_REQUIRE_CPP11_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.7.0" 2>/dev/null`
10724else
10725  pkg_failed=yes
10726fi
10727    fi
10728else
10729	pkg_failed=untried
10730fi
10731
10732
10733
10734if test $pkg_failed = yes; then
10735
10736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10737        _pkg_short_errors_supported=yes
10738else
10739        _pkg_short_errors_supported=no
10740fi
10741        if test $_pkg_short_errors_supported = yes; then
10742	        PINENTRY_QT_REQUIRE_CPP11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.7.0"`
10743        else
10744	        PINENTRY_QT_REQUIRE_CPP11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.7.0"`
10745        fi
10746	# Put the nasty error message in config.log where it belongs
10747	echo "$PINENTRY_QT_REQUIRE_CPP11_PKG_ERRORS" >&5
10748
10749	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750$as_echo "no" >&6; }
10751                require_qt_cpp11="no"
10752elif test $pkg_failed = untried; then
10753	require_qt_cpp11="no"
10754else
10755	PINENTRY_QT_REQUIRE_CPP11_CFLAGS=$pkg_cv_PINENTRY_QT_REQUIRE_CPP11_CFLAGS
10756	PINENTRY_QT_REQUIRE_CPP11_LIBS=$pkg_cv_PINENTRY_QT_REQUIRE_CPP11_LIBS
10757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758$as_echo "yes" >&6; }
10759	require_qt_cpp11="yes"
10760fi
10761
10762    if test "${require_qt_cpp11}" = "yes"; then
10763      PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS -std=c++11"
10764    fi
10765
10766    qtlibdir=`"$PKG_CONFIG" --variable libdir Qt5Core`
10767    if test -n "$qtlibdir"; then
10768        PINENTRY_QT_LDFLAGS="$PINENTRY_QT_LDFLAGS -Wl,-rpath \"$qtlibdir\""
10769    fi
10770
10771    if test -n "$ac_tool_prefix"; then
10772  # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
10773set dummy ${ac_tool_prefix}moc; ac_word=$2
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775$as_echo_n "checking for $ac_word... " >&6; }
10776if ${ac_cv_prog_MOC+:} false; then :
10777  $as_echo_n "(cached) " >&6
10778else
10779  if test -n "$MOC"; then
10780  ac_cv_prog_MOC="$MOC" # Let the user override the test.
10781else
10782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783for as_dir in $PATH
10784do
10785  IFS=$as_save_IFS
10786  test -z "$as_dir" && as_dir=.
10787    for ac_exec_ext in '' $ac_executable_extensions; do
10788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10789    ac_cv_prog_MOC="${ac_tool_prefix}moc"
10790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791    break 2
10792  fi
10793done
10794  done
10795IFS=$as_save_IFS
10796
10797fi
10798fi
10799MOC=$ac_cv_prog_MOC
10800if test -n "$MOC"; then
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
10802$as_echo "$MOC" >&6; }
10803else
10804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
10806fi
10807
10808
10809fi
10810if test -z "$ac_cv_prog_MOC"; then
10811  ac_ct_MOC=$MOC
10812  # Extract the first word of "moc", so it can be a program name with args.
10813set dummy moc; ac_word=$2
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815$as_echo_n "checking for $ac_word... " >&6; }
10816if ${ac_cv_prog_ac_ct_MOC+:} false; then :
10817  $as_echo_n "(cached) " >&6
10818else
10819  if test -n "$ac_ct_MOC"; then
10820  ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
10821else
10822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825  IFS=$as_save_IFS
10826  test -z "$as_dir" && as_dir=.
10827    for ac_exec_ext in '' $ac_executable_extensions; do
10828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829    ac_cv_prog_ac_ct_MOC="moc"
10830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831    break 2
10832  fi
10833done
10834  done
10835IFS=$as_save_IFS
10836
10837fi
10838fi
10839ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
10840if test -n "$ac_ct_MOC"; then
10841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
10842$as_echo "$ac_ct_MOC" >&6; }
10843else
10844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
10846fi
10847
10848  if test "x$ac_ct_MOC" = x; then
10849    MOC=""
10850  else
10851    case $cross_compiling:$ac_tool_warned in
10852yes:)
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10855ac_tool_warned=yes ;;
10856esac
10857    MOC=$ac_ct_MOC
10858  fi
10859else
10860  MOC="$ac_cv_prog_MOC"
10861fi
10862
10863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
10864$as_echo_n "checking moc version... " >&6; }
10865    mocversion=`$MOC -v 2>&1`
10866    mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
10867    if test x"$mocversiongrep" != x"$mocversion"; then
10868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869$as_echo "no" >&6; }
10870      # moc was not the qt5 one, try with moc-qt5
10871      if test -n "$ac_tool_prefix"; then
10872  # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
10873set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875$as_echo_n "checking for $ac_word... " >&6; }
10876if ${ac_cv_prog_MOC2+:} false; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  if test -n "$MOC2"; then
10880  ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
10881else
10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH
10884do
10885  IFS=$as_save_IFS
10886  test -z "$as_dir" && as_dir=.
10887    for ac_exec_ext in '' $ac_executable_extensions; do
10888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889    ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
10890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891    break 2
10892  fi
10893done
10894  done
10895IFS=$as_save_IFS
10896
10897fi
10898fi
10899MOC2=$ac_cv_prog_MOC2
10900if test -n "$MOC2"; then
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
10902$as_echo "$MOC2" >&6; }
10903else
10904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905$as_echo "no" >&6; }
10906fi
10907
10908
10909fi
10910if test -z "$ac_cv_prog_MOC2"; then
10911  ac_ct_MOC2=$MOC2
10912  # Extract the first word of "moc-qt5", so it can be a program name with args.
10913set dummy moc-qt5; ac_word=$2
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915$as_echo_n "checking for $ac_word... " >&6; }
10916if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
10917  $as_echo_n "(cached) " >&6
10918else
10919  if test -n "$ac_ct_MOC2"; then
10920  ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925  IFS=$as_save_IFS
10926  test -z "$as_dir" && as_dir=.
10927    for ac_exec_ext in '' $ac_executable_extensions; do
10928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929    ac_cv_prog_ac_ct_MOC2="moc-qt5"
10930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931    break 2
10932  fi
10933done
10934  done
10935IFS=$as_save_IFS
10936
10937fi
10938fi
10939ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
10940if test -n "$ac_ct_MOC2"; then
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
10942$as_echo "$ac_ct_MOC2" >&6; }
10943else
10944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
10946fi
10947
10948  if test "x$ac_ct_MOC2" = x; then
10949    MOC2=""
10950  else
10951    case $cross_compiling:$ac_tool_warned in
10952yes:)
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10955ac_tool_warned=yes ;;
10956esac
10957    MOC2=$ac_ct_MOC2
10958  fi
10959else
10960  MOC2="$ac_cv_prog_MOC2"
10961fi
10962
10963      mocversion=`$MOC2 -v 2>&1`
10964      mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
10965      if test x"$mocversiongrep" != x"$mocversion"; then
10966        if test -n "$ac_tool_prefix"; then
10967  # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
10968set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
10971if ${ac_cv_prog_QTCHOOSER+:} false; then :
10972  $as_echo_n "(cached) " >&6
10973else
10974  if test -n "$QTCHOOSER"; then
10975  ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980  IFS=$as_save_IFS
10981  test -z "$as_dir" && as_dir=.
10982    for ac_exec_ext in '' $ac_executable_extensions; do
10983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984    ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
10985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986    break 2
10987  fi
10988done
10989  done
10990IFS=$as_save_IFS
10991
10992fi
10993fi
10994QTCHOOSER=$ac_cv_prog_QTCHOOSER
10995if test -n "$QTCHOOSER"; then
10996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
10997$as_echo "$QTCHOOSER" >&6; }
10998else
10999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
11001fi
11002
11003
11004fi
11005if test -z "$ac_cv_prog_QTCHOOSER"; then
11006  ac_ct_QTCHOOSER=$QTCHOOSER
11007  # Extract the first word of "qtchooser", so it can be a program name with args.
11008set dummy qtchooser; ac_word=$2
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
11011if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
11012  $as_echo_n "(cached) " >&6
11013else
11014  if test -n "$ac_ct_QTCHOOSER"; then
11015  ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020  IFS=$as_save_IFS
11021  test -z "$as_dir" && as_dir=.
11022    for ac_exec_ext in '' $ac_executable_extensions; do
11023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024    ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
11025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026    break 2
11027  fi
11028done
11029  done
11030IFS=$as_save_IFS
11031
11032fi
11033fi
11034ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
11035if test -n "$ac_ct_QTCHOOSER"; then
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
11037$as_echo "$ac_ct_QTCHOOSER" >&6; }
11038else
11039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
11041fi
11042
11043  if test "x$ac_ct_QTCHOOSER" = x; then
11044    QTCHOOSER=""
11045  else
11046    case $cross_compiling:$ac_tool_warned in
11047yes:)
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11050ac_tool_warned=yes ;;
11051esac
11052    QTCHOOSER=$ac_ct_QTCHOOSER
11053  fi
11054else
11055  QTCHOOSER="$ac_cv_prog_QTCHOOSER"
11056fi
11057
11058        qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
11059        mocversion=`$qt5tooldir/moc -v 2>&1`
11060        mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
11061        if test x"$mocversiongrep" != x"$mocversion"; then
11062          # no valid moc found
11063          have_qt5_libs="no";
11064        else
11065          MOC=$qt5tooldir/moc
11066        fi
11067      else
11068        MOC=$MOC2
11069      fi
11070    fi
11071  fi
11072  if test "$have_qt5_libs" != "yes"; then
11073
11074pkg_failed=no
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore >= 4.6.0 QtGui >= 4.6.0" >&5
11076$as_echo_n "checking for QtCore >= 4.6.0 QtGui >= 4.6.0... " >&6; }
11077
11078if test -n "$PKG_CONFIG"; then
11079    if test -n "$PINENTRY_QT_CFLAGS"; then
11080        pkg_cv_PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS"
11081    else
11082        if test -n "$PKG_CONFIG" && \
11083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.6.0 QtGui >= 4.6.0\""; } >&5
11084  ($PKG_CONFIG --exists --print-errors "QtCore >= 4.6.0 QtGui >= 4.6.0") 2>&5
11085  ac_status=$?
11086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11087  test $ac_status = 0; }; then
11088  pkg_cv_PINENTRY_QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.6.0 QtGui >= 4.6.0" 2>/dev/null`
11089else
11090  pkg_failed=yes
11091fi
11092    fi
11093else
11094	pkg_failed=untried
11095fi
11096if test -n "$PKG_CONFIG"; then
11097    if test -n "$PINENTRY_QT_LIBS"; then
11098        pkg_cv_PINENTRY_QT_LIBS="$PINENTRY_QT_LIBS"
11099    else
11100        if test -n "$PKG_CONFIG" && \
11101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.6.0 QtGui >= 4.6.0\""; } >&5
11102  ($PKG_CONFIG --exists --print-errors "QtCore >= 4.6.0 QtGui >= 4.6.0") 2>&5
11103  ac_status=$?
11104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105  test $ac_status = 0; }; then
11106  pkg_cv_PINENTRY_QT_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.6.0 QtGui >= 4.6.0" 2>/dev/null`
11107else
11108  pkg_failed=yes
11109fi
11110    fi
11111else
11112	pkg_failed=untried
11113fi
11114
11115
11116
11117if test $pkg_failed = yes; then
11118
11119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11120        _pkg_short_errors_supported=yes
11121else
11122        _pkg_short_errors_supported=no
11123fi
11124        if test $_pkg_short_errors_supported = yes; then
11125	        PINENTRY_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore >= 4.6.0 QtGui >= 4.6.0"`
11126        else
11127	        PINENTRY_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore >= 4.6.0 QtGui >= 4.6.0"`
11128        fi
11129	# Put the nasty error message in config.log where it belongs
11130	echo "$PINENTRY_QT_PKG_ERRORS" >&5
11131
11132	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134                have_qt4_libs="no"
11135elif test $pkg_failed = untried; then
11136	have_qt4_libs="no"
11137else
11138	PINENTRY_QT_CFLAGS=$pkg_cv_PINENTRY_QT_CFLAGS
11139	PINENTRY_QT_LIBS=$pkg_cv_PINENTRY_QT_LIBS
11140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141$as_echo "yes" >&6; }
11142	have_qt4_libs="yes"
11143fi
11144    if test "$have_qt4_libs" = "yes"; then
11145      if test -n "$ac_tool_prefix"; then
11146  # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
11147set dummy ${ac_tool_prefix}moc; ac_word=$2
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149$as_echo_n "checking for $ac_word... " >&6; }
11150if ${ac_cv_prog_MOC+:} false; then :
11151  $as_echo_n "(cached) " >&6
11152else
11153  if test -n "$MOC"; then
11154  ac_cv_prog_MOC="$MOC" # Let the user override the test.
11155else
11156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157for as_dir in $PATH
11158do
11159  IFS=$as_save_IFS
11160  test -z "$as_dir" && as_dir=.
11161    for ac_exec_ext in '' $ac_executable_extensions; do
11162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163    ac_cv_prog_MOC="${ac_tool_prefix}moc"
11164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165    break 2
11166  fi
11167done
11168  done
11169IFS=$as_save_IFS
11170
11171fi
11172fi
11173MOC=$ac_cv_prog_MOC
11174if test -n "$MOC"; then
11175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
11176$as_echo "$MOC" >&6; }
11177else
11178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179$as_echo "no" >&6; }
11180fi
11181
11182
11183fi
11184if test -z "$ac_cv_prog_MOC"; then
11185  ac_ct_MOC=$MOC
11186  # Extract the first word of "moc", so it can be a program name with args.
11187set dummy moc; ac_word=$2
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189$as_echo_n "checking for $ac_word... " >&6; }
11190if ${ac_cv_prog_ac_ct_MOC+:} false; then :
11191  $as_echo_n "(cached) " >&6
11192else
11193  if test -n "$ac_ct_MOC"; then
11194  ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
11195else
11196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197for as_dir in $PATH
11198do
11199  IFS=$as_save_IFS
11200  test -z "$as_dir" && as_dir=.
11201    for ac_exec_ext in '' $ac_executable_extensions; do
11202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11203    ac_cv_prog_ac_ct_MOC="moc"
11204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205    break 2
11206  fi
11207done
11208  done
11209IFS=$as_save_IFS
11210
11211fi
11212fi
11213ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
11214if test -n "$ac_ct_MOC"; then
11215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
11216$as_echo "$ac_ct_MOC" >&6; }
11217else
11218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219$as_echo "no" >&6; }
11220fi
11221
11222  if test "x$ac_ct_MOC" = x; then
11223    MOC=""
11224  else
11225    case $cross_compiling:$ac_tool_warned in
11226yes:)
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11229ac_tool_warned=yes ;;
11230esac
11231    MOC=$ac_ct_MOC
11232  fi
11233else
11234  MOC="$ac_cv_prog_MOC"
11235fi
11236
11237      { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
11238$as_echo_n "checking moc version... " >&6; }
11239      mocversion=`$MOC -v 2>&1`
11240      mocversiongrep=`echo $mocversion | grep "Qt 4"`
11241      if test x"$mocversiongrep" != x"$mocversion"; then
11242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
11244        # moc was not the qt4 one, try with moc-qt4
11245        if test -n "$ac_tool_prefix"; then
11246  # Extract the first word of "${ac_tool_prefix}moc-qt4", so it can be a program name with args.
11247set dummy ${ac_tool_prefix}moc-qt4; ac_word=$2
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249$as_echo_n "checking for $ac_word... " >&6; }
11250if ${ac_cv_prog_MOC2+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  if test -n "$MOC2"; then
11254  ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259  IFS=$as_save_IFS
11260  test -z "$as_dir" && as_dir=.
11261    for ac_exec_ext in '' $ac_executable_extensions; do
11262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263    ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt4"
11264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265    break 2
11266  fi
11267done
11268  done
11269IFS=$as_save_IFS
11270
11271fi
11272fi
11273MOC2=$ac_cv_prog_MOC2
11274if test -n "$MOC2"; then
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
11276$as_echo "$MOC2" >&6; }
11277else
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279$as_echo "no" >&6; }
11280fi
11281
11282
11283fi
11284if test -z "$ac_cv_prog_MOC2"; then
11285  ac_ct_MOC2=$MOC2
11286  # Extract the first word of "moc-qt4", so it can be a program name with args.
11287set dummy moc-qt4; ac_word=$2
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289$as_echo_n "checking for $ac_word... " >&6; }
11290if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
11291  $as_echo_n "(cached) " >&6
11292else
11293  if test -n "$ac_ct_MOC2"; then
11294  ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299  IFS=$as_save_IFS
11300  test -z "$as_dir" && as_dir=.
11301    for ac_exec_ext in '' $ac_executable_extensions; do
11302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303    ac_cv_prog_ac_ct_MOC2="moc-qt4"
11304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305    break 2
11306  fi
11307done
11308  done
11309IFS=$as_save_IFS
11310
11311fi
11312fi
11313ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
11314if test -n "$ac_ct_MOC2"; then
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
11316$as_echo "$ac_ct_MOC2" >&6; }
11317else
11318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
11320fi
11321
11322  if test "x$ac_ct_MOC2" = x; then
11323    MOC2=""
11324  else
11325    case $cross_compiling:$ac_tool_warned in
11326yes:)
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11329ac_tool_warned=yes ;;
11330esac
11331    MOC2=$ac_ct_MOC2
11332  fi
11333else
11334  MOC2="$ac_cv_prog_MOC2"
11335fi
11336
11337        mocversion=`$MOC2 -v 2>&1`
11338        mocversiongrep=`echo $mocversion | grep "Qt 4"`
11339        if test x"$mocversiongrep" != x"$mocversion"; then
11340          # no valid moc found
11341          have_qt4_libs="no";
11342          MOC="not found"
11343        else
11344          MOC=$MOC2
11345        fi
11346      fi
11347    fi
11348  fi
11349
11350  if test "$have_qt4_libs" != "yes" -a "$have_qt5_libs" != "yes"; then
11351    if test "$pinentry_qt" = "yes"; then
11352        as_fn_error $? "
11353    ***
11354    *** Qt4 (QtCore, QtGui) or Qt5 (Qt5Core, Qt5Gui, Qt5Widgets) is required.
11355    ***" "$LINENO" 5
11356    else
11357        pinentry_qt=no
11358    fi
11359  fi
11360fi
11361
11362
11363
11364
11365
11366
11367if test "$pinentry_qt" != "no"; then
11368    pinentry_qt=yes
11369fi
11370 if test "$pinentry_qt" = "yes"; then
11371  BUILD_PINENTRY_QT_TRUE=
11372  BUILD_PINENTRY_QT_FALSE='#'
11373else
11374  BUILD_PINENTRY_QT_TRUE='#'
11375  BUILD_PINENTRY_QT_FALSE=
11376fi
11377
11378if test "$pinentry_qt" = "yes"; then
11379
11380$as_echo "#define PINENTRY_QT 1" >>confdefs.h
11381
11382  if test "$have_qt4_libs" = "yes"; then
11383    pinentry_qt_lib_version="(Qt4)"
11384  else
11385    pinentry_qt_lib_version="(Qt5)"
11386  fi
11387fi
11388
11389# Check whether --enable-pinentry-tqt was given.
11390if test "${enable_pinentry_tqt+set}" = set; then :
11391  enableval=$enable_pinentry_tqt; pinentry_tqt=$enableval
11392else
11393  pinentry_tqt=no
11394fi
11395
11396
11397if test "$pinentry_tqt" != "no"; then
11398
11399  if test "$pinentry_qt" = "yes"; then
11400    as_fn_error $? "
11401    ***
11402    *** Building both Qt and TQt pinentries is not supported.
11403    *** Use --disable-pinentry-qt if you want the TQt pinentry.
11404    ***" "$LINENO" 5
11405  fi
11406
11407
11408pkg_failed=no
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tqt" >&5
11410$as_echo_n "checking for tqt... " >&6; }
11411
11412if test -n "$PKG_CONFIG"; then
11413    if test -n "$PINENTRY_TQT_CFLAGS"; then
11414        pkg_cv_PINENTRY_TQT_CFLAGS="$PINENTRY_TQT_CFLAGS"
11415    else
11416        if test -n "$PKG_CONFIG" && \
11417    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tqt\""; } >&5
11418  ($PKG_CONFIG --exists --print-errors "tqt") 2>&5
11419  ac_status=$?
11420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421  test $ac_status = 0; }; then
11422  pkg_cv_PINENTRY_TQT_CFLAGS=`$PKG_CONFIG --cflags "tqt" 2>/dev/null`
11423else
11424  pkg_failed=yes
11425fi
11426    fi
11427else
11428	pkg_failed=untried
11429fi
11430if test -n "$PKG_CONFIG"; then
11431    if test -n "$PINENTRY_TQT_LIBS"; then
11432        pkg_cv_PINENTRY_TQT_LIBS="$PINENTRY_TQT_LIBS"
11433    else
11434        if test -n "$PKG_CONFIG" && \
11435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tqt\""; } >&5
11436  ($PKG_CONFIG --exists --print-errors "tqt") 2>&5
11437  ac_status=$?
11438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439  test $ac_status = 0; }; then
11440  pkg_cv_PINENTRY_TQT_LIBS=`$PKG_CONFIG --libs "tqt" 2>/dev/null`
11441else
11442  pkg_failed=yes
11443fi
11444    fi
11445else
11446	pkg_failed=untried
11447fi
11448
11449
11450
11451if test $pkg_failed = yes; then
11452
11453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11454        _pkg_short_errors_supported=yes
11455else
11456        _pkg_short_errors_supported=no
11457fi
11458        if test $_pkg_short_errors_supported = yes; then
11459	        PINENTRY_TQT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tqt"`
11460        else
11461	        PINENTRY_TQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tqt"`
11462        fi
11463	# Put the nasty error message in config.log where it belongs
11464	echo "$PINENTRY_TQT_PKG_ERRORS" >&5
11465
11466	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
11468
11469pkg_failed=no
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tqt-mt" >&5
11471$as_echo_n "checking for tqt-mt... " >&6; }
11472
11473if test -n "$PKG_CONFIG"; then
11474    if test -n "$PINENTRY_TQT_CFLAGS"; then
11475        pkg_cv_PINENTRY_TQT_CFLAGS="$PINENTRY_TQT_CFLAGS"
11476    else
11477        if test -n "$PKG_CONFIG" && \
11478    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tqt-mt\""; } >&5
11479  ($PKG_CONFIG --exists --print-errors "tqt-mt") 2>&5
11480  ac_status=$?
11481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482  test $ac_status = 0; }; then
11483  pkg_cv_PINENTRY_TQT_CFLAGS=`$PKG_CONFIG --cflags "tqt-mt" 2>/dev/null`
11484else
11485  pkg_failed=yes
11486fi
11487    fi
11488else
11489	pkg_failed=untried
11490fi
11491if test -n "$PKG_CONFIG"; then
11492    if test -n "$PINENTRY_TQT_LIBS"; then
11493        pkg_cv_PINENTRY_TQT_LIBS="$PINENTRY_TQT_LIBS"
11494    else
11495        if test -n "$PKG_CONFIG" && \
11496    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tqt-mt\""; } >&5
11497  ($PKG_CONFIG --exists --print-errors "tqt-mt") 2>&5
11498  ac_status=$?
11499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500  test $ac_status = 0; }; then
11501  pkg_cv_PINENTRY_TQT_LIBS=`$PKG_CONFIG --libs "tqt-mt" 2>/dev/null`
11502else
11503  pkg_failed=yes
11504fi
11505    fi
11506else
11507	pkg_failed=untried
11508fi
11509
11510
11511
11512if test $pkg_failed = yes; then
11513
11514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11515        _pkg_short_errors_supported=yes
11516else
11517        _pkg_short_errors_supported=no
11518fi
11519        if test $_pkg_short_errors_supported = yes; then
11520	        PINENTRY_TQT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tqt-mt"`
11521        else
11522	        PINENTRY_TQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tqt-mt"`
11523        fi
11524	# Put the nasty error message in config.log where it belongs
11525	echo "$PINENTRY_TQT_PKG_ERRORS" >&5
11526
11527	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528$as_echo "no" >&6; }
11529                have_tqt_libs=no
11530elif test $pkg_failed = untried; then
11531	have_tqt_libs=no
11532else
11533	PINENTRY_TQT_CFLAGS=$pkg_cv_PINENTRY_TQT_CFLAGS
11534	PINENTRY_TQT_LIBS=$pkg_cv_PINENTRY_TQT_LIBS
11535        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536$as_echo "yes" >&6; }
11537	have_tqt_libs=yes
11538fi
11539elif test $pkg_failed = untried; then
11540
11541pkg_failed=no
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tqt-mt" >&5
11543$as_echo_n "checking for tqt-mt... " >&6; }
11544
11545if test -n "$PKG_CONFIG"; then
11546    if test -n "$PINENTRY_TQT_CFLAGS"; then
11547        pkg_cv_PINENTRY_TQT_CFLAGS="$PINENTRY_TQT_CFLAGS"
11548    else
11549        if test -n "$PKG_CONFIG" && \
11550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tqt-mt\""; } >&5
11551  ($PKG_CONFIG --exists --print-errors "tqt-mt") 2>&5
11552  ac_status=$?
11553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11554  test $ac_status = 0; }; then
11555  pkg_cv_PINENTRY_TQT_CFLAGS=`$PKG_CONFIG --cflags "tqt-mt" 2>/dev/null`
11556else
11557  pkg_failed=yes
11558fi
11559    fi
11560else
11561	pkg_failed=untried
11562fi
11563if test -n "$PKG_CONFIG"; then
11564    if test -n "$PINENTRY_TQT_LIBS"; then
11565        pkg_cv_PINENTRY_TQT_LIBS="$PINENTRY_TQT_LIBS"
11566    else
11567        if test -n "$PKG_CONFIG" && \
11568    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tqt-mt\""; } >&5
11569  ($PKG_CONFIG --exists --print-errors "tqt-mt") 2>&5
11570  ac_status=$?
11571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11572  test $ac_status = 0; }; then
11573  pkg_cv_PINENTRY_TQT_LIBS=`$PKG_CONFIG --libs "tqt-mt" 2>/dev/null`
11574else
11575  pkg_failed=yes
11576fi
11577    fi
11578else
11579	pkg_failed=untried
11580fi
11581
11582
11583
11584if test $pkg_failed = yes; then
11585
11586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11587        _pkg_short_errors_supported=yes
11588else
11589        _pkg_short_errors_supported=no
11590fi
11591        if test $_pkg_short_errors_supported = yes; then
11592	        PINENTRY_TQT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tqt-mt"`
11593        else
11594	        PINENTRY_TQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tqt-mt"`
11595        fi
11596	# Put the nasty error message in config.log where it belongs
11597	echo "$PINENTRY_TQT_PKG_ERRORS" >&5
11598
11599	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600$as_echo "no" >&6; }
11601                have_tqt_libs=no
11602elif test $pkg_failed = untried; then
11603	have_tqt_libs=no
11604else
11605	PINENTRY_TQT_CFLAGS=$pkg_cv_PINENTRY_TQT_CFLAGS
11606	PINENTRY_TQT_LIBS=$pkg_cv_PINENTRY_TQT_LIBS
11607        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608$as_echo "yes" >&6; }
11609	have_tqt_libs=yes
11610fi
11611else
11612	PINENTRY_TQT_CFLAGS=$pkg_cv_PINENTRY_TQT_CFLAGS
11613	PINENTRY_TQT_LIBS=$pkg_cv_PINENTRY_TQT_LIBS
11614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11615$as_echo "yes" >&6; }
11616	have_tqt_libs=yes
11617fi
11618
11619  if test "$have_tqt_libs" = "yes"; then
11620    if test -n "$ac_tool_prefix"; then
11621  # Extract the first word of "${ac_tool_prefix}tqmoc", so it can be a program name with args.
11622set dummy ${ac_tool_prefix}tqmoc; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if ${ac_cv_prog_TQT_MOC+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  if test -n "$TQT_MOC"; then
11629  ac_cv_prog_TQT_MOC="$TQT_MOC" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634  IFS=$as_save_IFS
11635  test -z "$as_dir" && as_dir=.
11636    for ac_exec_ext in '' $ac_executable_extensions; do
11637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638    ac_cv_prog_TQT_MOC="${ac_tool_prefix}tqmoc"
11639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640    break 2
11641  fi
11642done
11643  done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648TQT_MOC=$ac_cv_prog_TQT_MOC
11649if test -n "$TQT_MOC"; then
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TQT_MOC" >&5
11651$as_echo "$TQT_MOC" >&6; }
11652else
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657
11658fi
11659if test -z "$ac_cv_prog_TQT_MOC"; then
11660  ac_ct_TQT_MOC=$TQT_MOC
11661  # Extract the first word of "tqmoc", so it can be a program name with args.
11662set dummy tqmoc; ac_word=$2
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if ${ac_cv_prog_ac_ct_TQT_MOC+:} false; then :
11666  $as_echo_n "(cached) " >&6
11667else
11668  if test -n "$ac_ct_TQT_MOC"; then
11669  ac_cv_prog_ac_ct_TQT_MOC="$ac_ct_TQT_MOC" # Let the user override the test.
11670else
11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674  IFS=$as_save_IFS
11675  test -z "$as_dir" && as_dir=.
11676    for ac_exec_ext in '' $ac_executable_extensions; do
11677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11678    ac_cv_prog_ac_ct_TQT_MOC="tqmoc"
11679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680    break 2
11681  fi
11682done
11683  done
11684IFS=$as_save_IFS
11685
11686fi
11687fi
11688ac_ct_TQT_MOC=$ac_cv_prog_ac_ct_TQT_MOC
11689if test -n "$ac_ct_TQT_MOC"; then
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TQT_MOC" >&5
11691$as_echo "$ac_ct_TQT_MOC" >&6; }
11692else
11693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
11695fi
11696
11697  if test "x$ac_ct_TQT_MOC" = x; then
11698    TQT_MOC=""no""
11699  else
11700    case $cross_compiling:$ac_tool_warned in
11701yes:)
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11704ac_tool_warned=yes ;;
11705esac
11706    TQT_MOC=$ac_ct_TQT_MOC
11707  fi
11708else
11709  TQT_MOC="$ac_cv_prog_TQT_MOC"
11710fi
11711
11712  fi
11713
11714  if test "$have_tqt_libs" = "yes" -a "$TQT_MOC" != "no"; then
11715    pinentry_tqt=yes
11716  else
11717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TQt is not found" >&5
11718$as_echo "$as_me: WARNING: TQt is not found" >&2;}
11719    pinentry_tqt=no
11720  fi
11721
11722fi
11723 if test "$pinentry_tqt" = "yes"; then
11724  BUILD_PINENTRY_TQT_TRUE=
11725  BUILD_PINENTRY_TQT_FALSE='#'
11726else
11727  BUILD_PINENTRY_TQT_TRUE='#'
11728  BUILD_PINENTRY_TQT_FALSE=
11729fi
11730
11731
11732#
11733# Check whether we should build the W32 pinentry.  This is actually
11734# the simplest check as we do this only for that platform.
11735#
11736pinentry_w32=no
11737test $have_w32_system = yes && pinentry_w32=yes
11738 if test "$pinentry_w32" = "yes"; then
11739  BUILD_PINENTRY_W32_TRUE=
11740  BUILD_PINENTRY_W32_FALSE='#'
11741else
11742  BUILD_PINENTRY_W32_TRUE='#'
11743  BUILD_PINENTRY_W32_FALSE=
11744fi
11745
11746
11747# Check whether --enable-pinentry-fltk was given.
11748if test "${enable_pinentry_fltk+set}" = set; then :
11749  enableval=$enable_pinentry_fltk; pinentry_fltk=$enableval
11750else
11751  pinentry_fltk=maybe
11752fi
11753
11754
11755if test "$pinentry_fltk" != "no"; then
11756   # Extract the first word of "fltk-config", so it can be a program name with args.
11757set dummy fltk-config; ac_word=$2
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759$as_echo_n "checking for $ac_word... " >&6; }
11760if ${ac_cv_path_FLTK_CONFIG+:} false; then :
11761  $as_echo_n "(cached) " >&6
11762else
11763  case $FLTK_CONFIG in
11764  [\\/]* | ?:[\\/]*)
11765  ac_cv_path_FLTK_CONFIG="$FLTK_CONFIG" # Let the user override the test with a path.
11766  ;;
11767  *)
11768  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769for as_dir in $PATH
11770do
11771  IFS=$as_save_IFS
11772  test -z "$as_dir" && as_dir=.
11773    for ac_exec_ext in '' $ac_executable_extensions; do
11774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775    ac_cv_path_FLTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11777    break 2
11778  fi
11779done
11780  done
11781IFS=$as_save_IFS
11782
11783  test -z "$ac_cv_path_FLTK_CONFIG" && ac_cv_path_FLTK_CONFIG="no"
11784  ;;
11785esac
11786fi
11787FLTK_CONFIG=$ac_cv_path_FLTK_CONFIG
11788if test -n "$FLTK_CONFIG"; then
11789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLTK_CONFIG" >&5
11790$as_echo "$FLTK_CONFIG" >&6; }
11791else
11792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793$as_echo "no" >&6; }
11794fi
11795
11796
11797   if test x"${FLTK_CONFIG}" = xno ; then
11798       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fltk-config is not found" >&5
11799$as_echo "$as_me: WARNING: fltk-config is not found" >&2;}
11800       pinentry_fltk=no
11801   fi
11802fi
11803
11804if test "$pinentry_fltk" != "no"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLTK 1.3" >&5
11806$as_echo_n "checking for FLTK 1.3... " >&6; }
11807   FLTK_VERSION=`${FLTK_CONFIG} --api-version`
11808   if test ${FLTK_VERSION} != "1.3" ; then
11809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
11811       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FLTK 1.3 not found (available $FLTK_VERSION)" >&5
11812$as_echo "$as_me: WARNING: FLTK 1.3 not found (available $FLTK_VERSION)" >&2;}
11813       pinentry_fltk=no
11814   else
11815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11816$as_echo "yes" >&6; }
11817       FLTKCFLAGS=`${FLTK_CONFIG} --cflags`
11818       FLTKCXXFLAGS=`${FLTK_CONFIG} --cxxflags`
11819       FLTKLIBS=`${FLTK_CONFIG} --ldflags`
11820
11821
11822
11823       pinentry_fltk=yes
11824   fi
11825fi
11826 if test "$pinentry_fltk" = "yes"; then
11827  BUILD_PINENTRY_FLTK_TRUE=
11828  BUILD_PINENTRY_FLTK_FALSE='#'
11829else
11830  BUILD_PINENTRY_FLTK_TRUE='#'
11831  BUILD_PINENTRY_FLTK_FALSE=
11832fi
11833
11834
11835# Figure out the default pinentry.  We are very conservative here.
11836# Please change the order only after verifying that the preferred
11837# pinentry really is better (more feature-complete and more secure).
11838
11839if test "$pinentry_gtk_2" = "yes"; then
11840  PINENTRY_DEFAULT=pinentry-gtk-2
11841else
11842  if test "$pinentry_qt" = "yes"; then
11843    PINENTRY_DEFAULT=pinentry-qt
11844  else
11845    if test "$pinentry_gnome_3" = "yes"; then
11846      PINENTRY_DEFAULT=pinentry-gnome3
11847    else
11848      if test "$pinentry_curses" = "yes"; then
11849        PINENTRY_DEFAULT=pinentry-curses
11850      else
11851        if test "$pinentry_tty" = "yes"; then
11852          PINENTRY_DEFAULT=pinentry-tty
11853        else
11854          if test "$pinentry_w32" = "yes"; then
11855            PINENTRY_DEFAULT=pinentry-w32
11856          else
11857            if test "$pinentry_fltk" = "yes"; then
11858              PINENTRY_DEFAULT=pinentry-fltk
11859            else
11860              if test "$pinentry_tqt" = "yes"; then
11861                PINENTRY_DEFAULT=pinentry-tqt
11862              else
11863                if test "$pinentry_efl" = "yes"; then
11864                  PINENTRY_DEFAULT=pinentry-efl
11865                else
11866                  as_fn_error $? "No pinentry enabled." "$LINENO" 5
11867                fi
11868              fi
11869            fi
11870          fi
11871        fi
11872      fi
11873    fi
11874  fi
11875fi
11876
11877
11878#
11879# Print errors here so that they are visible all
11880# together and the user can acquire them all together.
11881#
11882die=no
11883if test "$have_gpg_error" = "no"; then
11884   die=yes
11885   { $as_echo "$as_me:${as_lineno-$LINENO}:
11886***
11887*** You need libgpg-error to build this program.
11888**  This library is for example available at
11889***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
11890*** (at least version $NEED_GPG_ERROR_VERSION is required.)
11891***" >&5
11892$as_echo "$as_me:
11893***
11894*** You need libgpg-error to build this program.
11895**  This library is for example available at
11896***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
11897*** (at least version $NEED_GPG_ERROR_VERSION is required.)
11898***" >&6;}
11899fi
11900
11901if test "$have_libassuan" = "no"; then
11902   die=yes
11903   { $as_echo "$as_me:${as_lineno-$LINENO}:
11904***
11905*** You need libassuan to build this program.
11906*** This library is for example available at
11907***   ftp://ftp.gnupg.org/gcrypt/libassuan/
11908*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
11909***" >&5
11910$as_echo "$as_me:
11911***
11912*** You need libassuan to build this program.
11913*** This library is for example available at
11914***   ftp://ftp.gnupg.org/gcrypt/libassuan/
11915*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
11916***" >&6;}
11917fi
11918
11919if test "$die" = "yes"; then
11920    as_fn_error $? "
11921***
11922*** Required libraries not found. Please consult the above messages
11923*** and install them before running configure again.
11924***" "$LINENO" 5
11925fi
11926
11927
11928
11929#
11930# To avoid double inclusion of config.h which might happen at some
11931# places, we add the usual double inclusion protection at the top of
11932# config.h.
11933#
11934
11935
11936#
11937# Stuff which goes at the bottom of config.h.
11938#
11939
11940
11941build_doc=yes
11942# Check whether --enable-doc was given.
11943if test "${enable_doc+set}" = set; then :
11944  enableval=$enable_doc; build_doc=$enableval
11945else
11946  build_doc=yes
11947fi
11948
11949 if test "x$build_doc" != xno; then
11950  BUILD_DOC_TRUE=
11951  BUILD_DOC_FALSE='#'
11952else
11953  BUILD_DOC_TRUE='#'
11954  BUILD_DOC_FALSE=
11955fi
11956
11957
11958
11959ac_config_files="$ac_config_files m4/Makefile secmem/Makefile pinentry/Makefile curses/Makefile tty/Makefile efl/Makefile emacs/Makefile gtk+-2/Makefile gnome3/Makefile qt/Makefile tqt/Makefile w32/Makefile fltk/Makefile doc/Makefile Makefile"
11960
11961
11962cat >confcache <<\_ACEOF
11963# This file is a shell script that caches the results of configure
11964# tests run on this system so they can be shared between configure
11965# scripts and configure runs, see configure's option --config-cache.
11966# It is not useful on other systems.  If it contains results you don't
11967# want to keep, you may remove or edit it.
11968#
11969# config.status only pays attention to the cache file if you give it
11970# the --recheck option to rerun configure.
11971#
11972# `ac_cv_env_foo' variables (set or unset) will be overridden when
11973# loading this file, other *unset* `ac_cv_foo' will be assigned the
11974# following values.
11975
11976_ACEOF
11977
11978# The following way of writing the cache mishandles newlines in values,
11979# but we know of no workaround that is simple, portable, and efficient.
11980# So, we kill variables containing newlines.
11981# Ultrix sh set writes to stderr and can't be redirected directly,
11982# and sets the high bit in the cache file unless we assign to the vars.
11983(
11984  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11985    eval ac_val=\$$ac_var
11986    case $ac_val in #(
11987    *${as_nl}*)
11988      case $ac_var in #(
11989      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11991      esac
11992      case $ac_var in #(
11993      _ | IFS | as_nl) ;; #(
11994      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11995      *) { eval $ac_var=; unset $ac_var;} ;;
11996      esac ;;
11997    esac
11998  done
11999
12000  (set) 2>&1 |
12001    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12002    *${as_nl}ac_space=\ *)
12003      # `set' does not quote correctly, so add quotes: double-quote
12004      # substitution turns \\\\ into \\, and sed turns \\ into \.
12005      sed -n \
12006	"s/'/'\\\\''/g;
12007	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12008      ;; #(
12009    *)
12010      # `set' quotes correctly as required by POSIX, so do not add quotes.
12011      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12012      ;;
12013    esac |
12014    sort
12015) |
12016  sed '
12017     /^ac_cv_env_/b end
12018     t clear
12019     :clear
12020     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12021     t end
12022     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12023     :end' >>confcache
12024if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12025  if test -w "$cache_file"; then
12026    if test "x$cache_file" != "x/dev/null"; then
12027      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12028$as_echo "$as_me: updating cache $cache_file" >&6;}
12029      if test ! -f "$cache_file" || test -h "$cache_file"; then
12030	cat confcache >"$cache_file"
12031      else
12032        case $cache_file in #(
12033        */* | ?:*)
12034	  mv -f confcache "$cache_file"$$ &&
12035	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12036        *)
12037	  mv -f confcache "$cache_file" ;;
12038	esac
12039      fi
12040    fi
12041  else
12042    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12043$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12044  fi
12045fi
12046rm -f confcache
12047
12048test "x$prefix" = xNONE && prefix=$ac_default_prefix
12049# Let make expand exec_prefix.
12050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12051
12052DEFS=-DHAVE_CONFIG_H
12053
12054ac_libobjs=
12055ac_ltlibobjs=
12056for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12057  # 1. Remove the extension, and $U if already installed.
12058  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12059  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12060  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12061  #    will be set to the directory where LIBOBJS objects are built.
12062  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12063  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12064done
12065LIBOBJS=$ac_libobjs
12066
12067LTLIBOBJS=$ac_ltlibobjs
12068
12069
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12071$as_echo_n "checking that generated files are newer than configure... " >&6; }
12072   if test -n "$am_sleep_pid"; then
12073     # Hide warnings about reused PIDs.
12074     wait $am_sleep_pid 2>/dev/null
12075   fi
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12077$as_echo "done" >&6; }
12078 if test -n "$EXEEXT"; then
12079  am__EXEEXT_TRUE=
12080  am__EXEEXT_FALSE='#'
12081else
12082  am__EXEEXT_TRUE='#'
12083  am__EXEEXT_FALSE=
12084fi
12085
12086if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12087  as_fn_error $? "conditional \"AMDEP\" was never defined.
12088Usually this means the macro was only invoked conditionally." "$LINENO" 5
12089fi
12090if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12091  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12092Usually this means the macro was only invoked conditionally." "$LINENO" 5
12093fi
12094if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12095  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12096Usually this means the macro was only invoked conditionally." "$LINENO" 5
12097fi
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12099$as_echo_n "checking that generated files are newer than configure... " >&6; }
12100   if test -n "$am_sleep_pid"; then
12101     # Hide warnings about reused PIDs.
12102     wait $am_sleep_pid 2>/dev/null
12103   fi
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12105$as_echo "done" >&6; }
12106if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12107  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12108Usually this means the macro was only invoked conditionally." "$LINENO" 5
12109fi
12110if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12111  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
12112Usually this means the macro was only invoked conditionally." "$LINENO" 5
12113fi
12114if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
12115  as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
12116Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117fi
12118if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
12119  as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
12120Usually this means the macro was only invoked conditionally." "$LINENO" 5
12121fi
12122if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
12123  as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
12124Usually this means the macro was only invoked conditionally." "$LINENO" 5
12125fi
12126if test -z "${BUILD_LIBPINENTRY_CURSES_TRUE}" && test -z "${BUILD_LIBPINENTRY_CURSES_FALSE}"; then
12127  as_fn_error $? "conditional \"BUILD_LIBPINENTRY_CURSES\" was never defined.
12128Usually this means the macro was only invoked conditionally." "$LINENO" 5
12129fi
12130if test -z "${BUILD_PINENTRY_CURSES_TRUE}" && test -z "${BUILD_PINENTRY_CURSES_FALSE}"; then
12131  as_fn_error $? "conditional \"BUILD_PINENTRY_CURSES\" was never defined.
12132Usually this means the macro was only invoked conditionally." "$LINENO" 5
12133fi
12134if test -z "${FALLBACK_CURSES_TRUE}" && test -z "${FALLBACK_CURSES_FALSE}"; then
12135  as_fn_error $? "conditional \"FALLBACK_CURSES\" was never defined.
12136Usually this means the macro was only invoked conditionally." "$LINENO" 5
12137fi
12138if test -z "${BUILD_PINENTRY_TTY_TRUE}" && test -z "${BUILD_PINENTRY_TTY_FALSE}"; then
12139  as_fn_error $? "conditional \"BUILD_PINENTRY_TTY\" was never defined.
12140Usually this means the macro was only invoked conditionally." "$LINENO" 5
12141fi
12142if test -z "${BUILD_LIBPINENTRY_EMACS_TRUE}" && test -z "${BUILD_LIBPINENTRY_EMACS_FALSE}"; then
12143  as_fn_error $? "conditional \"BUILD_LIBPINENTRY_EMACS\" was never defined.
12144Usually this means the macro was only invoked conditionally." "$LINENO" 5
12145fi
12146if test -z "${BUILD_PINENTRY_EMACS_TRUE}" && test -z "${BUILD_PINENTRY_EMACS_FALSE}"; then
12147  as_fn_error $? "conditional \"BUILD_PINENTRY_EMACS\" was never defined.
12148Usually this means the macro was only invoked conditionally." "$LINENO" 5
12149fi
12150if test -z "${INSIDE_EMACS_TRUE}" && test -z "${INSIDE_EMACS_FALSE}"; then
12151  as_fn_error $? "conditional \"INSIDE_EMACS\" was never defined.
12152Usually this means the macro was only invoked conditionally." "$LINENO" 5
12153fi
12154if test -z "${BUILD_PINENTRY_EFL_TRUE}" && test -z "${BUILD_PINENTRY_EFL_FALSE}"; then
12155  as_fn_error $? "conditional \"BUILD_PINENTRY_EFL\" was never defined.
12156Usually this means the macro was only invoked conditionally." "$LINENO" 5
12157fi
12158if test -z "${BUILD_PINENTRY_GTK_2_TRUE}" && test -z "${BUILD_PINENTRY_GTK_2_FALSE}"; then
12159  as_fn_error $? "conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
12160Usually this means the macro was only invoked conditionally." "$LINENO" 5
12161fi
12162if test -z "${BUILD_PINENTRY_GNOME_3_TRUE}" && test -z "${BUILD_PINENTRY_GNOME_3_FALSE}"; then
12163  as_fn_error $? "conditional \"BUILD_PINENTRY_GNOME_3\" was never defined.
12164Usually this means the macro was only invoked conditionally." "$LINENO" 5
12165fi
12166if test -z "${BUILD_WITH_LIBSECRET_TRUE}" && test -z "${BUILD_WITH_LIBSECRET_FALSE}"; then
12167  as_fn_error $? "conditional \"BUILD_WITH_LIBSECRET\" was never defined.
12168Usually this means the macro was only invoked conditionally." "$LINENO" 5
12169fi
12170if test -z "${BUILD_PINENTRY_QT_TRUE}" && test -z "${BUILD_PINENTRY_QT_FALSE}"; then
12171  as_fn_error $? "conditional \"BUILD_PINENTRY_QT\" was never defined.
12172Usually this means the macro was only invoked conditionally." "$LINENO" 5
12173fi
12174if test -z "${BUILD_PINENTRY_TQT_TRUE}" && test -z "${BUILD_PINENTRY_TQT_FALSE}"; then
12175  as_fn_error $? "conditional \"BUILD_PINENTRY_TQT\" was never defined.
12176Usually this means the macro was only invoked conditionally." "$LINENO" 5
12177fi
12178if test -z "${BUILD_PINENTRY_W32_TRUE}" && test -z "${BUILD_PINENTRY_W32_FALSE}"; then
12179  as_fn_error $? "conditional \"BUILD_PINENTRY_W32\" was never defined.
12180Usually this means the macro was only invoked conditionally." "$LINENO" 5
12181fi
12182if test -z "${BUILD_PINENTRY_FLTK_TRUE}" && test -z "${BUILD_PINENTRY_FLTK_FALSE}"; then
12183  as_fn_error $? "conditional \"BUILD_PINENTRY_FLTK\" was never defined.
12184Usually this means the macro was only invoked conditionally." "$LINENO" 5
12185fi
12186if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
12187  as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
12188Usually this means the macro was only invoked conditionally." "$LINENO" 5
12189fi
12190
12191: "${CONFIG_STATUS=./config.status}"
12192ac_write_fail=0
12193ac_clean_files_save=$ac_clean_files
12194ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12196$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12197as_write_fail=0
12198cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12199#! $SHELL
12200# Generated by $as_me.
12201# Run this file to recreate the current configuration.
12202# Compiler output produced by configure, useful for debugging
12203# configure, is in config.log if it exists.
12204
12205debug=false
12206ac_cs_recheck=false
12207ac_cs_silent=false
12208
12209SHELL=\${CONFIG_SHELL-$SHELL}
12210export SHELL
12211_ASEOF
12212cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12213## -------------------- ##
12214## M4sh Initialization. ##
12215## -------------------- ##
12216
12217# Be more Bourne compatible
12218DUALCASE=1; export DUALCASE # for MKS sh
12219if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12220  emulate sh
12221  NULLCMD=:
12222  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12223  # is contrary to our usage.  Disable this feature.
12224  alias -g '${1+"$@"}'='"$@"'
12225  setopt NO_GLOB_SUBST
12226else
12227  case `(set -o) 2>/dev/null` in #(
12228  *posix*) :
12229    set -o posix ;; #(
12230  *) :
12231     ;;
12232esac
12233fi
12234
12235
12236as_nl='
12237'
12238export as_nl
12239# Printing a long string crashes Solaris 7 /usr/bin/printf.
12240as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12241as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12243# Prefer a ksh shell builtin over an external printf program on Solaris,
12244# but without wasting forks for bash or zsh.
12245if test -z "$BASH_VERSION$ZSH_VERSION" \
12246    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12247  as_echo='print -r --'
12248  as_echo_n='print -rn --'
12249elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12250  as_echo='printf %s\n'
12251  as_echo_n='printf %s'
12252else
12253  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12254    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12255    as_echo_n='/usr/ucb/echo -n'
12256  else
12257    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12258    as_echo_n_body='eval
12259      arg=$1;
12260      case $arg in #(
12261      *"$as_nl"*)
12262	expr "X$arg" : "X\\(.*\\)$as_nl";
12263	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12264      esac;
12265      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12266    '
12267    export as_echo_n_body
12268    as_echo_n='sh -c $as_echo_n_body as_echo'
12269  fi
12270  export as_echo_body
12271  as_echo='sh -c $as_echo_body as_echo'
12272fi
12273
12274# The user is always right.
12275if test "${PATH_SEPARATOR+set}" != set; then
12276  PATH_SEPARATOR=:
12277  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12278    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12279      PATH_SEPARATOR=';'
12280  }
12281fi
12282
12283
12284# IFS
12285# We need space, tab and new line, in precisely that order.  Quoting is
12286# there to prevent editors from complaining about space-tab.
12287# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12288# splitting by setting IFS to empty value.)
12289IFS=" ""	$as_nl"
12290
12291# Find who we are.  Look in the path if we contain no directory separator.
12292as_myself=
12293case $0 in #((
12294  *[\\/]* ) as_myself=$0 ;;
12295  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296for as_dir in $PATH
12297do
12298  IFS=$as_save_IFS
12299  test -z "$as_dir" && as_dir=.
12300    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12301  done
12302IFS=$as_save_IFS
12303
12304     ;;
12305esac
12306# We did not find ourselves, most probably we were run as `sh COMMAND'
12307# in which case we are not to be found in the path.
12308if test "x$as_myself" = x; then
12309  as_myself=$0
12310fi
12311if test ! -f "$as_myself"; then
12312  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12313  exit 1
12314fi
12315
12316# Unset variables that we do not need and which cause bugs (e.g. in
12317# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12318# suppresses any "Segmentation fault" message there.  '((' could
12319# trigger a bug in pdksh 5.2.14.
12320for as_var in BASH_ENV ENV MAIL MAILPATH
12321do eval test x\${$as_var+set} = xset \
12322  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12323done
12324PS1='$ '
12325PS2='> '
12326PS4='+ '
12327
12328# NLS nuisances.
12329LC_ALL=C
12330export LC_ALL
12331LANGUAGE=C
12332export LANGUAGE
12333
12334# CDPATH.
12335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12336
12337
12338# as_fn_error STATUS ERROR [LINENO LOG_FD]
12339# ----------------------------------------
12340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12342# script with STATUS, using 1 if that was 0.
12343as_fn_error ()
12344{
12345  as_status=$1; test $as_status -eq 0 && as_status=1
12346  if test "$4"; then
12347    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12348    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12349  fi
12350  $as_echo "$as_me: error: $2" >&2
12351  as_fn_exit $as_status
12352} # as_fn_error
12353
12354
12355# as_fn_set_status STATUS
12356# -----------------------
12357# Set $? to STATUS, without forking.
12358as_fn_set_status ()
12359{
12360  return $1
12361} # as_fn_set_status
12362
12363# as_fn_exit STATUS
12364# -----------------
12365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12366as_fn_exit ()
12367{
12368  set +e
12369  as_fn_set_status $1
12370  exit $1
12371} # as_fn_exit
12372
12373# as_fn_unset VAR
12374# ---------------
12375# Portably unset VAR.
12376as_fn_unset ()
12377{
12378  { eval $1=; unset $1;}
12379}
12380as_unset=as_fn_unset
12381# as_fn_append VAR VALUE
12382# ----------------------
12383# Append the text in VALUE to the end of the definition contained in VAR. Take
12384# advantage of any shell optimizations that allow amortized linear growth over
12385# repeated appends, instead of the typical quadratic growth present in naive
12386# implementations.
12387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12388  eval 'as_fn_append ()
12389  {
12390    eval $1+=\$2
12391  }'
12392else
12393  as_fn_append ()
12394  {
12395    eval $1=\$$1\$2
12396  }
12397fi # as_fn_append
12398
12399# as_fn_arith ARG...
12400# ------------------
12401# Perform arithmetic evaluation on the ARGs, and store the result in the
12402# global $as_val. Take advantage of shells that can avoid forks. The arguments
12403# must be portable across $(()) and expr.
12404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12405  eval 'as_fn_arith ()
12406  {
12407    as_val=$(( $* ))
12408  }'
12409else
12410  as_fn_arith ()
12411  {
12412    as_val=`expr "$@" || test $? -eq 1`
12413  }
12414fi # as_fn_arith
12415
12416
12417if expr a : '\(a\)' >/dev/null 2>&1 &&
12418   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12419  as_expr=expr
12420else
12421  as_expr=false
12422fi
12423
12424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12425  as_basename=basename
12426else
12427  as_basename=false
12428fi
12429
12430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12431  as_dirname=dirname
12432else
12433  as_dirname=false
12434fi
12435
12436as_me=`$as_basename -- "$0" ||
12437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12438	 X"$0" : 'X\(//\)$' \| \
12439	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12440$as_echo X/"$0" |
12441    sed '/^.*\/\([^/][^/]*\)\/*$/{
12442	    s//\1/
12443	    q
12444	  }
12445	  /^X\/\(\/\/\)$/{
12446	    s//\1/
12447	    q
12448	  }
12449	  /^X\/\(\/\).*/{
12450	    s//\1/
12451	    q
12452	  }
12453	  s/.*/./; q'`
12454
12455# Avoid depending upon Character Ranges.
12456as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12458as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12459as_cr_digits='0123456789'
12460as_cr_alnum=$as_cr_Letters$as_cr_digits
12461
12462ECHO_C= ECHO_N= ECHO_T=
12463case `echo -n x` in #(((((
12464-n*)
12465  case `echo 'xy\c'` in
12466  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12467  xy)  ECHO_C='\c';;
12468  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12469       ECHO_T='	';;
12470  esac;;
12471*)
12472  ECHO_N='-n';;
12473esac
12474
12475rm -f conf$$ conf$$.exe conf$$.file
12476if test -d conf$$.dir; then
12477  rm -f conf$$.dir/conf$$.file
12478else
12479  rm -f conf$$.dir
12480  mkdir conf$$.dir 2>/dev/null
12481fi
12482if (echo >conf$$.file) 2>/dev/null; then
12483  if ln -s conf$$.file conf$$ 2>/dev/null; then
12484    as_ln_s='ln -s'
12485    # ... but there are two gotchas:
12486    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12487    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12488    # In both cases, we have to default to `cp -pR'.
12489    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12490      as_ln_s='cp -pR'
12491  elif ln conf$$.file conf$$ 2>/dev/null; then
12492    as_ln_s=ln
12493  else
12494    as_ln_s='cp -pR'
12495  fi
12496else
12497  as_ln_s='cp -pR'
12498fi
12499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12500rmdir conf$$.dir 2>/dev/null
12501
12502
12503# as_fn_mkdir_p
12504# -------------
12505# Create "$as_dir" as a directory, including parents if necessary.
12506as_fn_mkdir_p ()
12507{
12508
12509  case $as_dir in #(
12510  -*) as_dir=./$as_dir;;
12511  esac
12512  test -d "$as_dir" || eval $as_mkdir_p || {
12513    as_dirs=
12514    while :; do
12515      case $as_dir in #(
12516      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12517      *) as_qdir=$as_dir;;
12518      esac
12519      as_dirs="'$as_qdir' $as_dirs"
12520      as_dir=`$as_dirname -- "$as_dir" ||
12521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522	 X"$as_dir" : 'X\(//\)[^/]' \| \
12523	 X"$as_dir" : 'X\(//\)$' \| \
12524	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12525$as_echo X"$as_dir" |
12526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12527	    s//\1/
12528	    q
12529	  }
12530	  /^X\(\/\/\)[^/].*/{
12531	    s//\1/
12532	    q
12533	  }
12534	  /^X\(\/\/\)$/{
12535	    s//\1/
12536	    q
12537	  }
12538	  /^X\(\/\).*/{
12539	    s//\1/
12540	    q
12541	  }
12542	  s/.*/./; q'`
12543      test -d "$as_dir" && break
12544    done
12545    test -z "$as_dirs" || eval "mkdir $as_dirs"
12546  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12547
12548
12549} # as_fn_mkdir_p
12550if mkdir -p . 2>/dev/null; then
12551  as_mkdir_p='mkdir -p "$as_dir"'
12552else
12553  test -d ./-p && rmdir ./-p
12554  as_mkdir_p=false
12555fi
12556
12557
12558# as_fn_executable_p FILE
12559# -----------------------
12560# Test if FILE is an executable regular file.
12561as_fn_executable_p ()
12562{
12563  test -f "$1" && test -x "$1"
12564} # as_fn_executable_p
12565as_test_x='test -x'
12566as_executable_p=as_fn_executable_p
12567
12568# Sed expression to map a string onto a valid CPP name.
12569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12570
12571# Sed expression to map a string onto a valid variable name.
12572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12573
12574
12575exec 6>&1
12576## ----------------------------------- ##
12577## Main body of $CONFIG_STATUS script. ##
12578## ----------------------------------- ##
12579_ASEOF
12580test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12581
12582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12583# Save the log message, to keep $0 and so on meaningful, and to
12584# report actual input values of CONFIG_FILES etc. instead of their
12585# values after options handling.
12586ac_log="
12587This file was extended by pinentry $as_me 1.1.1, which was
12588generated by GNU Autoconf 2.69.  Invocation command line was
12589
12590  CONFIG_FILES    = $CONFIG_FILES
12591  CONFIG_HEADERS  = $CONFIG_HEADERS
12592  CONFIG_LINKS    = $CONFIG_LINKS
12593  CONFIG_COMMANDS = $CONFIG_COMMANDS
12594  $ $0 $@
12595
12596on `(hostname || uname -n) 2>/dev/null | sed 1q`
12597"
12598
12599_ACEOF
12600
12601case $ac_config_files in *"
12602"*) set x $ac_config_files; shift; ac_config_files=$*;;
12603esac
12604
12605case $ac_config_headers in *"
12606"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12607esac
12608
12609
12610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12611# Files that config.status was made for.
12612config_files="$ac_config_files"
12613config_headers="$ac_config_headers"
12614config_commands="$ac_config_commands"
12615
12616_ACEOF
12617
12618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12619ac_cs_usage="\
12620\`$as_me' instantiates files and other configuration actions
12621from templates according to the current configuration.  Unless the files
12622and actions are specified as TAGs, all are instantiated by default.
12623
12624Usage: $0 [OPTION]... [TAG]...
12625
12626  -h, --help       print this help, then exit
12627  -V, --version    print version number and configuration settings, then exit
12628      --config     print configuration, then exit
12629  -q, --quiet, --silent
12630                   do not print progress messages
12631  -d, --debug      don't remove temporary files
12632      --recheck    update $as_me by reconfiguring in the same conditions
12633      --file=FILE[:TEMPLATE]
12634                   instantiate the configuration file FILE
12635      --header=FILE[:TEMPLATE]
12636                   instantiate the configuration header FILE
12637
12638Configuration files:
12639$config_files
12640
12641Configuration headers:
12642$config_headers
12643
12644Configuration commands:
12645$config_commands
12646
12647Report bugs to <https://bugs.gnupg.org>."
12648
12649_ACEOF
12650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12652ac_cs_version="\\
12653pinentry config.status 1.1.1
12654configured by $0, generated by GNU Autoconf 2.69,
12655  with options \\"\$ac_cs_config\\"
12656
12657Copyright (C) 2012 Free Software Foundation, Inc.
12658This config.status script is free software; the Free Software Foundation
12659gives unlimited permission to copy, distribute and modify it."
12660
12661ac_pwd='$ac_pwd'
12662srcdir='$srcdir'
12663INSTALL='$INSTALL'
12664MKDIR_P='$MKDIR_P'
12665AWK='$AWK'
12666test -n "\$AWK" || AWK=awk
12667_ACEOF
12668
12669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12670# The default lists apply if the user does not specify any file.
12671ac_need_defaults=:
12672while test $# != 0
12673do
12674  case $1 in
12675  --*=?*)
12676    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12677    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12678    ac_shift=:
12679    ;;
12680  --*=)
12681    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12682    ac_optarg=
12683    ac_shift=:
12684    ;;
12685  *)
12686    ac_option=$1
12687    ac_optarg=$2
12688    ac_shift=shift
12689    ;;
12690  esac
12691
12692  case $ac_option in
12693  # Handling of the options.
12694  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12695    ac_cs_recheck=: ;;
12696  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12697    $as_echo "$ac_cs_version"; exit ;;
12698  --config | --confi | --conf | --con | --co | --c )
12699    $as_echo "$ac_cs_config"; exit ;;
12700  --debug | --debu | --deb | --de | --d | -d )
12701    debug=: ;;
12702  --file | --fil | --fi | --f )
12703    $ac_shift
12704    case $ac_optarg in
12705    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12706    '') as_fn_error $? "missing file argument" ;;
12707    esac
12708    as_fn_append CONFIG_FILES " '$ac_optarg'"
12709    ac_need_defaults=false;;
12710  --header | --heade | --head | --hea )
12711    $ac_shift
12712    case $ac_optarg in
12713    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12714    esac
12715    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12716    ac_need_defaults=false;;
12717  --he | --h)
12718    # Conflict between --help and --header
12719    as_fn_error $? "ambiguous option: \`$1'
12720Try \`$0 --help' for more information.";;
12721  --help | --hel | -h )
12722    $as_echo "$ac_cs_usage"; exit ;;
12723  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12724  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12725    ac_cs_silent=: ;;
12726
12727  # This is an error.
12728  -*) as_fn_error $? "unrecognized option: \`$1'
12729Try \`$0 --help' for more information." ;;
12730
12731  *) as_fn_append ac_config_targets " $1"
12732     ac_need_defaults=false ;;
12733
12734  esac
12735  shift
12736done
12737
12738ac_configure_extra_args=
12739
12740if $ac_cs_silent; then
12741  exec 6>/dev/null
12742  ac_configure_extra_args="$ac_configure_extra_args --silent"
12743fi
12744
12745_ACEOF
12746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12747if \$ac_cs_recheck; then
12748  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12749  shift
12750  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12751  CONFIG_SHELL='$SHELL'
12752  export CONFIG_SHELL
12753  exec "\$@"
12754fi
12755
12756_ACEOF
12757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758exec 5>>config.log
12759{
12760  echo
12761  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12762## Running $as_me. ##
12763_ASBOX
12764  $as_echo "$ac_log"
12765} >&5
12766
12767_ACEOF
12768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12769#
12770# INIT-COMMANDS
12771#
12772AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12773
12774_ACEOF
12775
12776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12777
12778# Handling of arguments.
12779for ac_config_target in $ac_config_targets
12780do
12781  case $ac_config_target in
12782    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12783    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12784    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
12785    "secmem/Makefile") CONFIG_FILES="$CONFIG_FILES secmem/Makefile" ;;
12786    "pinentry/Makefile") CONFIG_FILES="$CONFIG_FILES pinentry/Makefile" ;;
12787    "curses/Makefile") CONFIG_FILES="$CONFIG_FILES curses/Makefile" ;;
12788    "tty/Makefile") CONFIG_FILES="$CONFIG_FILES tty/Makefile" ;;
12789    "efl/Makefile") CONFIG_FILES="$CONFIG_FILES efl/Makefile" ;;
12790    "emacs/Makefile") CONFIG_FILES="$CONFIG_FILES emacs/Makefile" ;;
12791    "gtk+-2/Makefile") CONFIG_FILES="$CONFIG_FILES gtk+-2/Makefile" ;;
12792    "gnome3/Makefile") CONFIG_FILES="$CONFIG_FILES gnome3/Makefile" ;;
12793    "qt/Makefile") CONFIG_FILES="$CONFIG_FILES qt/Makefile" ;;
12794    "tqt/Makefile") CONFIG_FILES="$CONFIG_FILES tqt/Makefile" ;;
12795    "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12796    "fltk/Makefile") CONFIG_FILES="$CONFIG_FILES fltk/Makefile" ;;
12797    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12798    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12799
12800  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12801  esac
12802done
12803
12804
12805# If the user did not use the arguments to specify the items to instantiate,
12806# then the envvar interface is used.  Set only those that are not.
12807# We use the long form for the default assignment because of an extremely
12808# bizarre bug on SunOS 4.1.3.
12809if $ac_need_defaults; then
12810  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12811  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12812  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12813fi
12814
12815# Have a temporary directory for convenience.  Make it in the build tree
12816# simply because there is no reason against having it here, and in addition,
12817# creating and moving files from /tmp can sometimes cause problems.
12818# Hook for its removal unless debugging.
12819# Note that there is a small window in which the directory will not be cleaned:
12820# after its creation but before its name has been assigned to `$tmp'.
12821$debug ||
12822{
12823  tmp= ac_tmp=
12824  trap 'exit_status=$?
12825  : "${ac_tmp:=$tmp}"
12826  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12827' 0
12828  trap 'as_fn_exit 1' 1 2 13 15
12829}
12830# Create a (secure) tmp directory for tmp files.
12831
12832{
12833  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12834  test -d "$tmp"
12835}  ||
12836{
12837  tmp=./conf$$-$RANDOM
12838  (umask 077 && mkdir "$tmp")
12839} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12840ac_tmp=$tmp
12841
12842# Set up the scripts for CONFIG_FILES section.
12843# No need to generate them if there are no CONFIG_FILES.
12844# This happens for instance with `./config.status config.h'.
12845if test -n "$CONFIG_FILES"; then
12846
12847
12848ac_cr=`echo X | tr X '\015'`
12849# On cygwin, bash can eat \r inside `` if the user requested igncr.
12850# But we know of no other shell where ac_cr would be empty at this
12851# point, so we can use a bashism as a fallback.
12852if test "x$ac_cr" = x; then
12853  eval ac_cr=\$\'\\r\'
12854fi
12855ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12856if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12857  ac_cs_awk_cr='\\r'
12858else
12859  ac_cs_awk_cr=$ac_cr
12860fi
12861
12862echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12863_ACEOF
12864
12865
12866{
12867  echo "cat >conf$$subs.awk <<_ACEOF" &&
12868  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12869  echo "_ACEOF"
12870} >conf$$subs.sh ||
12871  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12872ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12873ac_delim='%!_!# '
12874for ac_last_try in false false false false false :; do
12875  . ./conf$$subs.sh ||
12876    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12877
12878  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12879  if test $ac_delim_n = $ac_delim_num; then
12880    break
12881  elif $ac_last_try; then
12882    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12883  else
12884    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12885  fi
12886done
12887rm -f conf$$subs.sh
12888
12889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12890cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12891_ACEOF
12892sed -n '
12893h
12894s/^/S["/; s/!.*/"]=/
12895p
12896g
12897s/^[^!]*!//
12898:repl
12899t repl
12900s/'"$ac_delim"'$//
12901t delim
12902:nl
12903h
12904s/\(.\{148\}\)..*/\1/
12905t more1
12906s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12907p
12908n
12909b repl
12910:more1
12911s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12912p
12913g
12914s/.\{148\}//
12915t nl
12916:delim
12917h
12918s/\(.\{148\}\)..*/\1/
12919t more2
12920s/["\\]/\\&/g; s/^/"/; s/$/"/
12921p
12922b
12923:more2
12924s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12925p
12926g
12927s/.\{148\}//
12928t delim
12929' <conf$$subs.awk | sed '
12930/^[^""]/{
12931  N
12932  s/\n//
12933}
12934' >>$CONFIG_STATUS || ac_write_fail=1
12935rm -f conf$$subs.awk
12936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12937_ACAWK
12938cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12939  for (key in S) S_is_set[key] = 1
12940  FS = ""
12941
12942}
12943{
12944  line = $ 0
12945  nfields = split(line, field, "@")
12946  substed = 0
12947  len = length(field[1])
12948  for (i = 2; i < nfields; i++) {
12949    key = field[i]
12950    keylen = length(key)
12951    if (S_is_set[key]) {
12952      value = S[key]
12953      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12954      len += length(value) + length(field[++i])
12955      substed = 1
12956    } else
12957      len += 1 + keylen
12958  }
12959
12960  print line
12961}
12962
12963_ACAWK
12964_ACEOF
12965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12966if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12967  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12968else
12969  cat
12970fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12971  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12972_ACEOF
12973
12974# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12975# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12976# trailing colons and then remove the whole line if VPATH becomes empty
12977# (actually we leave an empty line to preserve line numbers).
12978if test "x$srcdir" = x.; then
12979  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12980h
12981s///
12982s/^/:/
12983s/[	 ]*$/:/
12984s/:\$(srcdir):/:/g
12985s/:\${srcdir}:/:/g
12986s/:@srcdir@:/:/g
12987s/^:*//
12988s/:*$//
12989x
12990s/\(=[	 ]*\).*/\1/
12991G
12992s/\n//
12993s/^[^=]*=[	 ]*$//
12994}'
12995fi
12996
12997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12998fi # test -n "$CONFIG_FILES"
12999
13000# Set up the scripts for CONFIG_HEADERS section.
13001# No need to generate them if there are no CONFIG_HEADERS.
13002# This happens for instance with `./config.status Makefile'.
13003if test -n "$CONFIG_HEADERS"; then
13004cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13005BEGIN {
13006_ACEOF
13007
13008# Transform confdefs.h into an awk script `defines.awk', embedded as
13009# here-document in config.status, that substitutes the proper values into
13010# config.h.in to produce config.h.
13011
13012# Create a delimiter string that does not exist in confdefs.h, to ease
13013# handling of long lines.
13014ac_delim='%!_!# '
13015for ac_last_try in false false :; do
13016  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13017  if test -z "$ac_tt"; then
13018    break
13019  elif $ac_last_try; then
13020    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13021  else
13022    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13023  fi
13024done
13025
13026# For the awk script, D is an array of macro values keyed by name,
13027# likewise P contains macro parameters if any.  Preserve backslash
13028# newline sequences.
13029
13030ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13031sed -n '
13032s/.\{148\}/&'"$ac_delim"'/g
13033t rset
13034:rset
13035s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13036t def
13037d
13038:def
13039s/\\$//
13040t bsnl
13041s/["\\]/\\&/g
13042s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13043D["\1"]=" \3"/p
13044s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13045d
13046:bsnl
13047s/["\\]/\\&/g
13048s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13049D["\1"]=" \3\\\\\\n"\\/p
13050t cont
13051s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13052t cont
13053d
13054:cont
13055n
13056s/.\{148\}/&'"$ac_delim"'/g
13057t clear
13058:clear
13059s/\\$//
13060t bsnlc
13061s/["\\]/\\&/g; s/^/"/; s/$/"/p
13062d
13063:bsnlc
13064s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13065b cont
13066' <confdefs.h | sed '
13067s/'"$ac_delim"'/"\\\
13068"/g' >>$CONFIG_STATUS || ac_write_fail=1
13069
13070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13071  for (key in D) D_is_set[key] = 1
13072  FS = ""
13073}
13074/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13075  line = \$ 0
13076  split(line, arg, " ")
13077  if (arg[1] == "#") {
13078    defundef = arg[2]
13079    mac1 = arg[3]
13080  } else {
13081    defundef = substr(arg[1], 2)
13082    mac1 = arg[2]
13083  }
13084  split(mac1, mac2, "(") #)
13085  macro = mac2[1]
13086  prefix = substr(line, 1, index(line, defundef) - 1)
13087  if (D_is_set[macro]) {
13088    # Preserve the white space surrounding the "#".
13089    print prefix "define", macro P[macro] D[macro]
13090    next
13091  } else {
13092    # Replace #undef with comments.  This is necessary, for example,
13093    # in the case of _POSIX_SOURCE, which is predefined and required
13094    # on some systems where configure will not decide to define it.
13095    if (defundef == "undef") {
13096      print "/*", prefix defundef, macro, "*/"
13097      next
13098    }
13099  }
13100}
13101{ print }
13102_ACAWK
13103_ACEOF
13104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13106fi # test -n "$CONFIG_HEADERS"
13107
13108
13109eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13110shift
13111for ac_tag
13112do
13113  case $ac_tag in
13114  :[FHLC]) ac_mode=$ac_tag; continue;;
13115  esac
13116  case $ac_mode$ac_tag in
13117  :[FHL]*:*);;
13118  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13119  :[FH]-) ac_tag=-:-;;
13120  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13121  esac
13122  ac_save_IFS=$IFS
13123  IFS=:
13124  set x $ac_tag
13125  IFS=$ac_save_IFS
13126  shift
13127  ac_file=$1
13128  shift
13129
13130  case $ac_mode in
13131  :L) ac_source=$1;;
13132  :[FH])
13133    ac_file_inputs=
13134    for ac_f
13135    do
13136      case $ac_f in
13137      -) ac_f="$ac_tmp/stdin";;
13138      *) # Look for the file first in the build tree, then in the source tree
13139	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13140	 # because $ac_f cannot contain `:'.
13141	 test -f "$ac_f" ||
13142	   case $ac_f in
13143	   [\\/$]*) false;;
13144	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13145	   esac ||
13146	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13147      esac
13148      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13149      as_fn_append ac_file_inputs " '$ac_f'"
13150    done
13151
13152    # Let's still pretend it is `configure' which instantiates (i.e., don't
13153    # use $as_me), people would be surprised to read:
13154    #    /* config.h.  Generated by config.status.  */
13155    configure_input='Generated from '`
13156	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13157	`' by configure.'
13158    if test x"$ac_file" != x-; then
13159      configure_input="$ac_file.  $configure_input"
13160      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13161$as_echo "$as_me: creating $ac_file" >&6;}
13162    fi
13163    # Neutralize special characters interpreted by sed in replacement strings.
13164    case $configure_input in #(
13165    *\&* | *\|* | *\\* )
13166       ac_sed_conf_input=`$as_echo "$configure_input" |
13167       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13168    *) ac_sed_conf_input=$configure_input;;
13169    esac
13170
13171    case $ac_tag in
13172    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13173      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13174    esac
13175    ;;
13176  esac
13177
13178  ac_dir=`$as_dirname -- "$ac_file" ||
13179$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180	 X"$ac_file" : 'X\(//\)[^/]' \| \
13181	 X"$ac_file" : 'X\(//\)$' \| \
13182	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13183$as_echo X"$ac_file" |
13184    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13185	    s//\1/
13186	    q
13187	  }
13188	  /^X\(\/\/\)[^/].*/{
13189	    s//\1/
13190	    q
13191	  }
13192	  /^X\(\/\/\)$/{
13193	    s//\1/
13194	    q
13195	  }
13196	  /^X\(\/\).*/{
13197	    s//\1/
13198	    q
13199	  }
13200	  s/.*/./; q'`
13201  as_dir="$ac_dir"; as_fn_mkdir_p
13202  ac_builddir=.
13203
13204case "$ac_dir" in
13205.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13206*)
13207  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13208  # A ".." for each directory in $ac_dir_suffix.
13209  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13210  case $ac_top_builddir_sub in
13211  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13212  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13213  esac ;;
13214esac
13215ac_abs_top_builddir=$ac_pwd
13216ac_abs_builddir=$ac_pwd$ac_dir_suffix
13217# for backward compatibility:
13218ac_top_builddir=$ac_top_build_prefix
13219
13220case $srcdir in
13221  .)  # We are building in place.
13222    ac_srcdir=.
13223    ac_top_srcdir=$ac_top_builddir_sub
13224    ac_abs_top_srcdir=$ac_pwd ;;
13225  [\\/]* | ?:[\\/]* )  # Absolute name.
13226    ac_srcdir=$srcdir$ac_dir_suffix;
13227    ac_top_srcdir=$srcdir
13228    ac_abs_top_srcdir=$srcdir ;;
13229  *) # Relative name.
13230    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13231    ac_top_srcdir=$ac_top_build_prefix$srcdir
13232    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13233esac
13234ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13235
13236
13237  case $ac_mode in
13238  :F)
13239  #
13240  # CONFIG_FILE
13241  #
13242
13243  case $INSTALL in
13244  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13245  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13246  esac
13247  ac_MKDIR_P=$MKDIR_P
13248  case $MKDIR_P in
13249  [\\/$]* | ?:[\\/]* ) ;;
13250  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13251  esac
13252_ACEOF
13253
13254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255# If the template does not know about datarootdir, expand it.
13256# FIXME: This hack should be removed a few years after 2.60.
13257ac_datarootdir_hack=; ac_datarootdir_seen=
13258ac_sed_dataroot='
13259/datarootdir/ {
13260  p
13261  q
13262}
13263/@datadir@/p
13264/@docdir@/p
13265/@infodir@/p
13266/@localedir@/p
13267/@mandir@/p'
13268case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13269*datarootdir*) ac_datarootdir_seen=yes;;
13270*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13271  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13272$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13273_ACEOF
13274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13275  ac_datarootdir_hack='
13276  s&@datadir@&$datadir&g
13277  s&@docdir@&$docdir&g
13278  s&@infodir@&$infodir&g
13279  s&@localedir@&$localedir&g
13280  s&@mandir@&$mandir&g
13281  s&\\\${datarootdir}&$datarootdir&g' ;;
13282esac
13283_ACEOF
13284
13285# Neutralize VPATH when `$srcdir' = `.'.
13286# Shell code in configure.ac might set extrasub.
13287# FIXME: do we really want to maintain this feature?
13288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13289ac_sed_extra="$ac_vpsub
13290$extrasub
13291_ACEOF
13292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13293:t
13294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13295s|@configure_input@|$ac_sed_conf_input|;t t
13296s&@top_builddir@&$ac_top_builddir_sub&;t t
13297s&@top_build_prefix@&$ac_top_build_prefix&;t t
13298s&@srcdir@&$ac_srcdir&;t t
13299s&@abs_srcdir@&$ac_abs_srcdir&;t t
13300s&@top_srcdir@&$ac_top_srcdir&;t t
13301s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13302s&@builddir@&$ac_builddir&;t t
13303s&@abs_builddir@&$ac_abs_builddir&;t t
13304s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13305s&@INSTALL@&$ac_INSTALL&;t t
13306s&@MKDIR_P@&$ac_MKDIR_P&;t t
13307$ac_datarootdir_hack
13308"
13309eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13310  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13311
13312test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13313  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13314  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13315      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13316  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13317which seems to be undefined.  Please make sure it is defined" >&5
13318$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13319which seems to be undefined.  Please make sure it is defined" >&2;}
13320
13321  rm -f "$ac_tmp/stdin"
13322  case $ac_file in
13323  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13324  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13325  esac \
13326  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13327 ;;
13328  :H)
13329  #
13330  # CONFIG_HEADER
13331  #
13332  if test x"$ac_file" != x-; then
13333    {
13334      $as_echo "/* $configure_input  */" \
13335      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13336    } >"$ac_tmp/config.h" \
13337      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13338    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13339      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13340$as_echo "$as_me: $ac_file is unchanged" >&6;}
13341    else
13342      rm -f "$ac_file"
13343      mv "$ac_tmp/config.h" "$ac_file" \
13344	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13345    fi
13346  else
13347    $as_echo "/* $configure_input  */" \
13348      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13349      || as_fn_error $? "could not create -" "$LINENO" 5
13350  fi
13351# Compute "$ac_file"'s index in $config_headers.
13352_am_arg="$ac_file"
13353_am_stamp_count=1
13354for _am_header in $config_headers :; do
13355  case $_am_header in
13356    $_am_arg | $_am_arg:* )
13357      break ;;
13358    * )
13359      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13360  esac
13361done
13362echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13363$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13364	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13365	 X"$_am_arg" : 'X\(//\)$' \| \
13366	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13367$as_echo X"$_am_arg" |
13368    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13369	    s//\1/
13370	    q
13371	  }
13372	  /^X\(\/\/\)[^/].*/{
13373	    s//\1/
13374	    q
13375	  }
13376	  /^X\(\/\/\)$/{
13377	    s//\1/
13378	    q
13379	  }
13380	  /^X\(\/\).*/{
13381	    s//\1/
13382	    q
13383	  }
13384	  s/.*/./; q'`/stamp-h$_am_stamp_count
13385 ;;
13386
13387  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13388$as_echo "$as_me: executing $ac_file commands" >&6;}
13389 ;;
13390  esac
13391
13392
13393  case $ac_file$ac_mode in
13394    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13395  # Older Autoconf quotes --file arguments for eval, but not when files
13396  # are listed without --file.  Let's play safe and only enable the eval
13397  # if we detect the quoting.
13398  # TODO: see whether this extra hack can be removed once we start
13399  # requiring Autoconf 2.70 or later.
13400  case $CONFIG_FILES in #(
13401  *\'*) :
13402    eval set x "$CONFIG_FILES" ;; #(
13403  *) :
13404    set x $CONFIG_FILES ;; #(
13405  *) :
13406     ;;
13407esac
13408  shift
13409  # Used to flag and report bootstrapping failures.
13410  am_rc=0
13411  for am_mf
13412  do
13413    # Strip MF so we end up with the name of the file.
13414    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
13415    # Check whether this is an Automake generated Makefile which includes
13416    # dependency-tracking related rules and includes.
13417    # Grep'ing the whole file directly is not great: AIX grep has a line
13418    # limit of 2048, but all sed's we know have understand at least 4000.
13419    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13420      || continue
13421    am_dirpart=`$as_dirname -- "$am_mf" ||
13422$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13423	 X"$am_mf" : 'X\(//\)[^/]' \| \
13424	 X"$am_mf" : 'X\(//\)$' \| \
13425	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13426$as_echo X"$am_mf" |
13427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13428	    s//\1/
13429	    q
13430	  }
13431	  /^X\(\/\/\)[^/].*/{
13432	    s//\1/
13433	    q
13434	  }
13435	  /^X\(\/\/\)$/{
13436	    s//\1/
13437	    q
13438	  }
13439	  /^X\(\/\).*/{
13440	    s//\1/
13441	    q
13442	  }
13443	  s/.*/./; q'`
13444    am_filepart=`$as_basename -- "$am_mf" ||
13445$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13446	 X"$am_mf" : 'X\(//\)$' \| \
13447	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13448$as_echo X/"$am_mf" |
13449    sed '/^.*\/\([^/][^/]*\)\/*$/{
13450	    s//\1/
13451	    q
13452	  }
13453	  /^X\/\(\/\/\)$/{
13454	    s//\1/
13455	    q
13456	  }
13457	  /^X\/\(\/\).*/{
13458	    s//\1/
13459	    q
13460	  }
13461	  s/.*/./; q'`
13462    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13463      && sed -e '/# am--include-marker/d' "$am_filepart" \
13464        | $MAKE -f - am--depfiles" >&5
13465   (cd "$am_dirpart" \
13466      && sed -e '/# am--include-marker/d' "$am_filepart" \
13467        | $MAKE -f - am--depfiles) >&5 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } || am_rc=$?
13471  done
13472  if test $am_rc -ne 0; then
13473    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13475as_fn_error $? "Something went wrong bootstrapping makefile fragments
13476    for automatic dependency tracking.  If GNU make was not used, consider
13477    re-running the configure script with MAKE=\"gmake\" (or whatever is
13478    necessary).  You can also try re-running configure with the
13479    '--disable-dependency-tracking' option to at least be able to build
13480    the package (albeit without support for automatic dependency tracking).
13481See \`config.log' for more details" "$LINENO" 5; }
13482  fi
13483  { am_dirpart=; unset am_dirpart;}
13484  { am_filepart=; unset am_filepart;}
13485  { am_mf=; unset am_mf;}
13486  { am_rc=; unset am_rc;}
13487  rm -f conftest-deps.mk
13488}
13489 ;;
13490
13491  esac
13492done # for ac_tag
13493
13494
13495as_fn_exit 0
13496_ACEOF
13497ac_clean_files=$ac_clean_files_save
13498
13499test $ac_write_fail = 0 ||
13500  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13501
13502
13503# configure is writing to config.log, and then calls config.status.
13504# config.status does its own redirection, appending to config.log.
13505# Unfortunately, on DOS this fails, as config.log is still kept open
13506# by configure, so config.status won't be able to write to it; its
13507# output is simply discarded.  So we exec the FD to /dev/null,
13508# effectively closing config.log, so it can be properly (re)opened and
13509# appended to by config.status.  When coming back to configure, we
13510# need to make the FD available again.
13511if test "$no_create" != yes; then
13512  ac_cs_success=:
13513  ac_config_status_args=
13514  test "$silent" = yes &&
13515    ac_config_status_args="$ac_config_status_args --quiet"
13516  exec 5>/dev/null
13517  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13518  exec 5>>config.log
13519  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13520  # would make configure fail if this is the last instruction.
13521  $ac_cs_success || as_fn_exit 1
13522fi
13523if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13524  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13525$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13526fi
13527
13528
13529{ $as_echo "$as_me:${as_lineno-$LINENO}:
13530
13531	Pinentry v${VERSION} has been configured as follows:
13532
13533	Revision:  c6202b2  (50720)
13534	Platform:  $host
13535
13536	Curses Pinentry ..: $pinentry_curses
13537	TTY Pinentry .....: $pinentry_tty
13538	Emacs Pinentry ...: $pinentry_emacs
13539	EFL Pinentry .....: $pinentry_efl
13540	GTK+-2 Pinentry ..: $pinentry_gtk_2
13541	GNOME 3 Pinentry .: $pinentry_gnome_3
13542	Qt Pinentry ......: $pinentry_qt $pinentry_qt_lib_version
13543	TQt Pinentry .....: $pinentry_tqt
13544	W32 Pinentry .....: $pinentry_w32
13545	FLTK Pinentry ....: $pinentry_fltk
13546
13547	Fallback to Curses: $fallback_curses
13548	Emacs integration : $inside_emacs
13549
13550	libsecret ........: $libsecret
13551
13552	Default Pinentry .: $PINENTRY_DEFAULT
13553" >&5
13554$as_echo "$as_me:
13555
13556	Pinentry v${VERSION} has been configured as follows:
13557
13558	Revision:  c6202b2  (50720)
13559	Platform:  $host
13560
13561	Curses Pinentry ..: $pinentry_curses
13562	TTY Pinentry .....: $pinentry_tty
13563	Emacs Pinentry ...: $pinentry_emacs
13564	EFL Pinentry .....: $pinentry_efl
13565	GTK+-2 Pinentry ..: $pinentry_gtk_2
13566	GNOME 3 Pinentry .: $pinentry_gnome_3
13567	Qt Pinentry ......: $pinentry_qt $pinentry_qt_lib_version
13568	TQt Pinentry .....: $pinentry_tqt
13569	W32 Pinentry .....: $pinentry_w32
13570	FLTK Pinentry ....: $pinentry_fltk
13571
13572	Fallback to Curses: $fallback_curses
13573	Emacs integration : $inside_emacs
13574
13575	libsecret ........: $libsecret
13576
13577	Default Pinentry .: $PINENTRY_DEFAULT
13578" >&6;}
13579