1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for dirmngr 1.1.0.
4#
5# Report bugs to <bug-dirmngr@gnupg.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: bug-dirmngr@gnupg.org about your system, including any
233$0: error possibly output before this message. Then install
234$0: a modern shell, or manually run the script under such a
235$0: shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296	 X"$as_dir" : 'X\(//\)[^/]' \| \
297	 X"$as_dir" : 'X\(//\)$' \| \
298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301	    s//\1/
302	    q
303	  }
304	  /^X\(\/\/\)[^/].*/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\).*/{
313	    s//\1/
314	    q
315	  }
316	  s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397	 X"$0" : 'X\(//\)$' \| \
398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\/\)$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\).*/{
409	    s//\1/
410	    q
411	  }
412	  s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439      t loop
440      s/-\n.*//
441    ' >$as_me.lineno &&
442  chmod +x "$as_me.lineno" ||
443    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T='	';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      if test -d "$1"; then
511	test -d "$1/.";
512      else
513	case $1 in #(
514	-*)set "./$1";;
515	esac;
516	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517	???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530exec 7<&0 </dev/null 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='dirmngr'
551PACKAGE_TARNAME='dirmngr'
552PACKAGE_VERSION='1.1.0'
553PACKAGE_STRING='dirmngr 1.1.0'
554PACKAGE_BUGREPORT='bug-dirmngr@gnupg.org'
555PACKAGE_URL=''
556
557ac_unique_file="src/dirmngr.c"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572#  include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577#  include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_subst_vars='LTLIBOBJS
595LDAPLIBS
596KSBA_LIBS
597KSBA_CFLAGS
598KSBA_CONFIG
599LIBASSUAN_LIBS
600LIBASSUAN_CFLAGS
601LIBASSUAN_CONFIG
602LIBGCRYPT_LIBS
603LIBGCRYPT_CFLAGS
604LIBGCRYPT_CONFIG
605GPG_ERROR_LIBS
606GPG_ERROR_CFLAGS
607GPG_ERROR_CONFIG
608PTH_LIBS
609PTH_CFLAGS
610PTH_CONFIG
611LIBOBJS
612POSUB
613LTLIBINTL
614LIBINTL
615INTLLIBS
616LTLIBICONV
617LIBICONV
618INTL_MACOSX_LIBS
619MSGMERGE
620XGETTEXT_015
621XGETTEXT
622GMSGFMT_015
623MSGFMT_015
624GMSGFMT
625MSGFMT
626USE_NLS
627HAVE_W32_SYSTEM_FALSE
628HAVE_W32_SYSTEM_TRUE
629CC_FOR_BUILD
630RANLIB
631LN_S
632MAINT
633MAINTAINER_MODE_FALSE
634MAINTAINER_MODE_TRUE
635EGREP
636GREP
637CPP
638am__fastdepCC_FALSE
639am__fastdepCC_TRUE
640CCDEPMODE
641AMDEPBACKSLASH
642AMDEP_FALSE
643AMDEP_TRUE
644am__quote
645am__include
646DEPDIR
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
654host_os
655host_vendor
656host_cpu
657host
658build_os
659build_vendor
660build_cpu
661build
662am__untar
663am__tar
664AMTAR
665am__leading_dot
666SET_MAKE
667AWK
668mkdir_p
669MKDIR_P
670INSTALL_STRIP_PROGRAM
671STRIP
672install_sh
673MAKEINFO
674AUTOHEADER
675AUTOMAKE
676AUTOCONF
677ACLOCAL
678VERSION
679PACKAGE
680CYGPATH_W
681am__isrc
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_alias
686host_alias
687build_alias
688LIBS
689ECHO_T
690ECHO_N
691ECHO_C
692DEFS
693mandir
694localedir
695libdir
696psdir
697pdfdir
698dvidir
699htmldir
700infodir
701docdir
702oldincludedir
703includedir
704localstatedir
705sharedstatedir
706sysconfdir
707datadir
708datarootdir
709libexecdir
710sbindir
711bindir
712program_transform_name
713prefix
714exec_prefix
715PACKAGE_URL
716PACKAGE_BUGREPORT
717PACKAGE_STRING
718PACKAGE_VERSION
719PACKAGE_TARNAME
720PACKAGE_NAME
721PATH_SEPARATOR
722SHELL'
723ac_subst_files=''
724ac_user_opts='
725enable_option_checking
726enable_dependency_tracking
727enable_maintainer_mode
728enable_largefile
729enable_gcc_warnings
730enable_nls
731with_gnu_ld
732enable_rpath
733with_libiconv_prefix
734with_libintl_prefix
735with_pth_prefix
736with_gpg_error_prefix
737with_libgcrypt_prefix
738with_libassuan_prefix
739with_ksba_prefix
740'
741      ac_precious_vars='build_alias
742host_alias
743target_alias
744CC
745CFLAGS
746LDFLAGS
747LIBS
748CPPFLAGS
749CPP
750CC_FOR_BUILD'
751
752
753# Initialize some variables set by options.
754ac_init_help=
755ac_init_version=false
756ac_unrecognized_opts=
757ac_unrecognized_sep=
758# The variables have the same names as the options, with
759# dashes changed to underlines.
760cache_file=/dev/null
761exec_prefix=NONE
762no_create=
763no_recursion=
764prefix=NONE
765program_prefix=NONE
766program_suffix=NONE
767program_transform_name=s,x,x,
768silent=
769site=
770srcdir=
771verbose=
772x_includes=NONE
773x_libraries=NONE
774
775# Installation directory options.
776# These are left unexpanded so users can "make install exec_prefix=/foo"
777# and all the variables that are supposed to be based on exec_prefix
778# by default will actually change.
779# Use braces instead of parens because sh, perl, etc. also accept them.
780# (The list follows the same order as the GNU Coding Standards.)
781bindir='${exec_prefix}/bin'
782sbindir='${exec_prefix}/sbin'
783libexecdir='${exec_prefix}/libexec'
784datarootdir='${prefix}/share'
785datadir='${datarootdir}'
786sysconfdir='${prefix}/etc'
787sharedstatedir='${prefix}/com'
788localstatedir='${prefix}/var'
789includedir='${prefix}/include'
790oldincludedir='/usr/include'
791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792infodir='${datarootdir}/info'
793htmldir='${docdir}'
794dvidir='${docdir}'
795pdfdir='${docdir}'
796psdir='${docdir}'
797libdir='${exec_prefix}/lib'
798localedir='${datarootdir}/locale'
799mandir='${datarootdir}/man'
800
801ac_prev=
802ac_dashdash=
803for ac_option
804do
805  # If the previous option needs an argument, assign it.
806  if test -n "$ac_prev"; then
807    eval $ac_prev=\$ac_option
808    ac_prev=
809    continue
810  fi
811
812  case $ac_option in
813  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814  *)	ac_optarg=yes ;;
815  esac
816
817  # Accept the important Cygnus configure options, so we can diagnose typos.
818
819  case $ac_dashdash$ac_option in
820  --)
821    ac_dashdash=yes ;;
822
823  -bindir | --bindir | --bindi | --bind | --bin | --bi)
824    ac_prev=bindir ;;
825  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826    bindir=$ac_optarg ;;
827
828  -build | --build | --buil | --bui | --bu)
829    ac_prev=build_alias ;;
830  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831    build_alias=$ac_optarg ;;
832
833  -cache-file | --cache-file | --cache-fil | --cache-fi \
834  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835    ac_prev=cache_file ;;
836  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838    cache_file=$ac_optarg ;;
839
840  --config-cache | -C)
841    cache_file=config.cache ;;
842
843  -datadir | --datadir | --datadi | --datad)
844    ac_prev=datadir ;;
845  -datadir=* | --datadir=* | --datadi=* | --datad=*)
846    datadir=$ac_optarg ;;
847
848  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849  | --dataroo | --dataro | --datar)
850    ac_prev=datarootdir ;;
851  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853    datarootdir=$ac_optarg ;;
854
855  -disable-* | --disable-*)
856    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857    # Reject names that are not valid shell variable names.
858    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859      as_fn_error "invalid feature name: $ac_useropt"
860    ac_useropt_orig=$ac_useropt
861    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862    case $ac_user_opts in
863      *"
864"enable_$ac_useropt"
865"*) ;;
866      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867	 ac_unrecognized_sep=', ';;
868    esac
869    eval enable_$ac_useropt=no ;;
870
871  -docdir | --docdir | --docdi | --doc | --do)
872    ac_prev=docdir ;;
873  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874    docdir=$ac_optarg ;;
875
876  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877    ac_prev=dvidir ;;
878  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879    dvidir=$ac_optarg ;;
880
881  -enable-* | --enable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=\$ac_optarg ;;
896
897  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899  | --exec | --exe | --ex)
900    ac_prev=exec_prefix ;;
901  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903  | --exec=* | --exe=* | --ex=*)
904    exec_prefix=$ac_optarg ;;
905
906  -gas | --gas | --ga | --g)
907    # Obsolete; use --with-gas.
908    with_gas=yes ;;
909
910  -help | --help | --hel | --he | -h)
911    ac_init_help=long ;;
912  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913    ac_init_help=recursive ;;
914  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915    ac_init_help=short ;;
916
917  -host | --host | --hos | --ho)
918    ac_prev=host_alias ;;
919  -host=* | --host=* | --hos=* | --ho=*)
920    host_alias=$ac_optarg ;;
921
922  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923    ac_prev=htmldir ;;
924  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925  | --ht=*)
926    htmldir=$ac_optarg ;;
927
928  -includedir | --includedir | --includedi | --included | --include \
929  | --includ | --inclu | --incl | --inc)
930    ac_prev=includedir ;;
931  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932  | --includ=* | --inclu=* | --incl=* | --inc=*)
933    includedir=$ac_optarg ;;
934
935  -infodir | --infodir | --infodi | --infod | --info | --inf)
936    ac_prev=infodir ;;
937  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938    infodir=$ac_optarg ;;
939
940  -libdir | --libdir | --libdi | --libd)
941    ac_prev=libdir ;;
942  -libdir=* | --libdir=* | --libdi=* | --libd=*)
943    libdir=$ac_optarg ;;
944
945  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946  | --libexe | --libex | --libe)
947    ac_prev=libexecdir ;;
948  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949  | --libexe=* | --libex=* | --libe=*)
950    libexecdir=$ac_optarg ;;
951
952  -localedir | --localedir | --localedi | --localed | --locale)
953    ac_prev=localedir ;;
954  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955    localedir=$ac_optarg ;;
956
957  -localstatedir | --localstatedir | --localstatedi | --localstated \
958  | --localstate | --localstat | --localsta | --localst | --locals)
959    ac_prev=localstatedir ;;
960  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962    localstatedir=$ac_optarg ;;
963
964  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965    ac_prev=mandir ;;
966  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967    mandir=$ac_optarg ;;
968
969  -nfp | --nfp | --nf)
970    # Obsolete; use --without-fp.
971    with_fp=no ;;
972
973  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974  | --no-cr | --no-c | -n)
975    no_create=yes ;;
976
977  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979    no_recursion=yes ;;
980
981  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983  | --oldin | --oldi | --old | --ol | --o)
984    ac_prev=oldincludedir ;;
985  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988    oldincludedir=$ac_optarg ;;
989
990  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991    ac_prev=prefix ;;
992  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993    prefix=$ac_optarg ;;
994
995  -program-prefix | --program-prefix | --program-prefi | --program-pref \
996  | --program-pre | --program-pr | --program-p)
997    ac_prev=program_prefix ;;
998  -program-prefix=* | --program-prefix=* | --program-prefi=* \
999  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000    program_prefix=$ac_optarg ;;
1001
1002  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003  | --program-suf | --program-su | --program-s)
1004    ac_prev=program_suffix ;;
1005  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007    program_suffix=$ac_optarg ;;
1008
1009  -program-transform-name | --program-transform-name \
1010  | --program-transform-nam | --program-transform-na \
1011  | --program-transform-n | --program-transform- \
1012  | --program-transform | --program-transfor \
1013  | --program-transfo | --program-transf \
1014  | --program-trans | --program-tran \
1015  | --progr-tra | --program-tr | --program-t)
1016    ac_prev=program_transform_name ;;
1017  -program-transform-name=* | --program-transform-name=* \
1018  | --program-transform-nam=* | --program-transform-na=* \
1019  | --program-transform-n=* | --program-transform-=* \
1020  | --program-transform=* | --program-transfor=* \
1021  | --program-transfo=* | --program-transf=* \
1022  | --program-trans=* | --program-tran=* \
1023  | --progr-tra=* | --program-tr=* | --program-t=*)
1024    program_transform_name=$ac_optarg ;;
1025
1026  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027    ac_prev=pdfdir ;;
1028  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029    pdfdir=$ac_optarg ;;
1030
1031  -psdir | --psdir | --psdi | --psd | --ps)
1032    ac_prev=psdir ;;
1033  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034    psdir=$ac_optarg ;;
1035
1036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037  | -silent | --silent | --silen | --sile | --sil)
1038    silent=yes ;;
1039
1040  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041    ac_prev=sbindir ;;
1042  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043  | --sbi=* | --sb=*)
1044    sbindir=$ac_optarg ;;
1045
1046  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048  | --sharedst | --shareds | --shared | --share | --shar \
1049  | --sha | --sh)
1050    ac_prev=sharedstatedir ;;
1051  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054  | --sha=* | --sh=*)
1055    sharedstatedir=$ac_optarg ;;
1056
1057  -site | --site | --sit)
1058    ac_prev=site ;;
1059  -site=* | --site=* | --sit=*)
1060    site=$ac_optarg ;;
1061
1062  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063    ac_prev=srcdir ;;
1064  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065    srcdir=$ac_optarg ;;
1066
1067  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068  | --syscon | --sysco | --sysc | --sys | --sy)
1069    ac_prev=sysconfdir ;;
1070  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072    sysconfdir=$ac_optarg ;;
1073
1074  -target | --target | --targe | --targ | --tar | --ta | --t)
1075    ac_prev=target_alias ;;
1076  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077    target_alias=$ac_optarg ;;
1078
1079  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080    verbose=yes ;;
1081
1082  -version | --version | --versio | --versi | --vers | -V)
1083    ac_init_version=: ;;
1084
1085  -with-* | --with-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      as_fn_error "invalid package name: $ac_useropt"
1090    ac_useropt_orig=$ac_useropt
1091    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092    case $ac_user_opts in
1093      *"
1094"with_$ac_useropt"
1095"*) ;;
1096      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097	 ac_unrecognized_sep=', ';;
1098    esac
1099    eval with_$ac_useropt=\$ac_optarg ;;
1100
1101  -without-* | --without-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error "invalid package name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"with_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval with_$ac_useropt=no ;;
1116
1117  --x)
1118    # Obsolete; use --with-x.
1119    with_x=yes ;;
1120
1121  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122  | --x-incl | --x-inc | --x-in | --x-i)
1123    ac_prev=x_includes ;;
1124  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126    x_includes=$ac_optarg ;;
1127
1128  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130    ac_prev=x_libraries ;;
1131  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133    x_libraries=$ac_optarg ;;
1134
1135  -*) as_fn_error "unrecognized option: \`$ac_option'
1136Try \`$0 --help' for more information."
1137    ;;
1138
1139  *=*)
1140    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141    # Reject names that are not valid shell variable names.
1142    case $ac_envvar in #(
1143      '' | [0-9]* | *[!_$as_cr_alnum]* )
1144      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1145    esac
1146    eval $ac_envvar=\$ac_optarg
1147    export $ac_envvar ;;
1148
1149  *)
1150    # FIXME: should be removed in autoconf 3.0.
1151    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155    ;;
1156
1157  esac
1158done
1159
1160if test -n "$ac_prev"; then
1161  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162  as_fn_error "missing argument to $ac_option"
1163fi
1164
1165if test -n "$ac_unrecognized_opts"; then
1166  case $enable_option_checking in
1167    no) ;;
1168    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1169    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170  esac
1171fi
1172
1173# Check all directory arguments for consistency.
1174for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175		datadir sysconfdir sharedstatedir localstatedir includedir \
1176		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177		libdir localedir mandir
1178do
1179  eval ac_val=\$$ac_var
1180  # Remove trailing slashes.
1181  case $ac_val in
1182    */ )
1183      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184      eval $ac_var=\$ac_val;;
1185  esac
1186  # Be sure to have absolute directory names.
1187  case $ac_val in
1188    [\\/$]* | ?:[\\/]* )  continue;;
1189    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190  esac
1191  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1192done
1193
1194# There might be people who depend on the old broken behavior: `$host'
1195# used to hold the argument of --host etc.
1196# FIXME: To remove some day.
1197build=$build_alias
1198host=$host_alias
1199target=$target_alias
1200
1201# FIXME: To remove some day.
1202if test "x$host_alias" != x; then
1203  if test "x$build_alias" = x; then
1204    cross_compiling=maybe
1205    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206    If a cross compiler is detected then cross compile mode will be used." >&2
1207  elif test "x$build_alias" != "x$host_alias"; then
1208    cross_compiling=yes
1209  fi
1210fi
1211
1212ac_tool_prefix=
1213test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215test "$silent" = yes && exec 6>/dev/null
1216
1217
1218ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219ac_ls_di=`ls -di .` &&
1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221  as_fn_error "working directory cannot be determined"
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223  as_fn_error "pwd does not report name of working directory"
1224
1225
1226# Find the source files, if location was not specified.
1227if test -z "$srcdir"; then
1228  ac_srcdir_defaulted=yes
1229  # Try the directory containing this script, then the parent directory.
1230  ac_confdir=`$as_dirname -- "$as_myself" ||
1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232	 X"$as_myself" : 'X\(//\)[^/]' \| \
1233	 X"$as_myself" : 'X\(//\)$' \| \
1234	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235$as_echo X"$as_myself" |
1236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237	    s//\1/
1238	    q
1239	  }
1240	  /^X\(\/\/\)[^/].*/{
1241	    s//\1/
1242	    q
1243	  }
1244	  /^X\(\/\/\)$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\).*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  s/.*/./; q'`
1253  srcdir=$ac_confdir
1254  if test ! -r "$srcdir/$ac_unique_file"; then
1255    srcdir=..
1256  fi
1257else
1258  ac_srcdir_defaulted=no
1259fi
1260if test ! -r "$srcdir/$ac_unique_file"; then
1261  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1263fi
1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265ac_abs_confdir=`(
1266	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1267	pwd)`
1268# When building in place, set srcdir=.
1269if test "$ac_abs_confdir" = "$ac_pwd"; then
1270  srcdir=.
1271fi
1272# Remove unnecessary trailing slashes from srcdir.
1273# Double slashes in file names in object file debugging info
1274# mess up M-x gdb in Emacs.
1275case $srcdir in
1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277esac
1278for ac_var in $ac_precious_vars; do
1279  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280  eval ac_env_${ac_var}_value=\$${ac_var}
1281  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283done
1284
1285#
1286# Report the --help message.
1287#
1288if test "$ac_init_help" = "long"; then
1289  # Omit some internal or obsolete options to make the list less imposing.
1290  # This message is too long to be a string in the A/UX 3.1 sh.
1291  cat <<_ACEOF
1292\`configure' configures dirmngr 1.1.0 to adapt to many kinds of systems.
1293
1294Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
1299Defaults for the options are specified in brackets.
1300
1301Configuration:
1302  -h, --help              display this help and exit
1303      --help=short        display options specific to this package
1304      --help=recursive    display the short help of all the included packages
1305  -V, --version           display version information and exit
1306  -q, --quiet, --silent   do not print \`checking...' messages
1307      --cache-file=FILE   cache test results in FILE [disabled]
1308  -C, --config-cache      alias for \`--cache-file=config.cache'
1309  -n, --no-create         do not create output files
1310      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
1312Installation directories:
1313  --prefix=PREFIX         install architecture-independent files in PREFIX
1314                          [$ac_default_prefix]
1315  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316                          [PREFIX]
1317
1318By default, \`make install' will install all the files in
1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321for instance \`--prefix=\$HOME'.
1322
1323For better control, use the options below.
1324
1325Fine tuning of the installation directories:
1326  --bindir=DIR            user executables [EPREFIX/bin]
1327  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1328  --libexecdir=DIR        program executables [EPREFIX/libexec]
1329  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1330  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1331  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1332  --libdir=DIR            object code libraries [EPREFIX/lib]
1333  --includedir=DIR        C header files [PREFIX/include]
1334  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1335  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1336  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1337  --infodir=DIR           info documentation [DATAROOTDIR/info]
1338  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1339  --mandir=DIR            man documentation [DATAROOTDIR/man]
1340  --docdir=DIR            documentation root [DATAROOTDIR/doc/dirmngr]
1341  --htmldir=DIR           html documentation [DOCDIR]
1342  --dvidir=DIR            dvi documentation [DOCDIR]
1343  --pdfdir=DIR            pdf documentation [DOCDIR]
1344  --psdir=DIR             ps documentation [DOCDIR]
1345_ACEOF
1346
1347  cat <<\_ACEOF
1348
1349Program names:
1350  --program-prefix=PREFIX            prepend PREFIX to installed program names
1351  --program-suffix=SUFFIX            append SUFFIX to installed program names
1352  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1353
1354System types:
1355  --build=BUILD     configure for building on BUILD [guessed]
1356  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1357_ACEOF
1358fi
1359
1360if test -n "$ac_init_help"; then
1361  case $ac_init_help in
1362     short | recursive ) echo "Configuration of dirmngr 1.1.0:";;
1363   esac
1364  cat <<\_ACEOF
1365
1366Optional Features:
1367  --disable-option-checking  ignore unrecognized --enable/--with options
1368  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1369  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1370  --disable-dependency-tracking  speeds up one-time build
1371  --enable-dependency-tracking   do not reject slow dependency extractors
1372  --enable-maintainer-mode  enable make rules and dependencies not useful
1373			  (and sometimes confusing) to the casual installer
1374  --disable-largefile     omit support for large files
1375  --enable-gcc-warnings   enable more verbose gcc warnings
1376  --disable-nls           do not use Native Language Support
1377  --disable-rpath         do not hardcode runtime library paths
1378
1379Optional Packages:
1380  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1381  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1382  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1383  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1384  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1385  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1386  --without-libintl-prefix     don't search for libintl in includedir and libdir
1387  --with-pth-prefix=PFX   prefix where GNU Pth is installed (optional)
1388  --with-gpg-error-prefix=PFX
1389                          prefix where GPG Error is installed (optional)
1390  --with-libgcrypt-prefix=PFX
1391                          prefix where LIBGCRYPT is installed (optional)
1392  --with-libassuan-prefix=PFX
1393                          prefix where LIBASSUAN is installed (optional)
1394  --with-ksba-prefix=PFX  prefix where KSBA is installed (optional)
1395
1396Some influential environment variables:
1397  CC          C compiler command
1398  CFLAGS      C compiler flags
1399  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400              nonstandard directory <lib dir>
1401  LIBS        libraries to pass to the linker, e.g. -l<library>
1402  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403              you have headers in a nonstandard directory <include dir>
1404  CPP         C preprocessor
1405  CC_FOR_BUILD
1406              build system C compiler
1407
1408Use these variables to override the choices made by `configure' or to help
1409it to find libraries and programs with nonstandard names/locations.
1410
1411Report bugs to <bug-dirmngr@gnupg.org>.
1412_ACEOF
1413ac_status=$?
1414fi
1415
1416if test "$ac_init_help" = "recursive"; then
1417  # If there are subdirs, report their specific --help.
1418  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419    test -d "$ac_dir" ||
1420      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421      continue
1422    ac_builddir=.
1423
1424case "$ac_dir" in
1425.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426*)
1427  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428  # A ".." for each directory in $ac_dir_suffix.
1429  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430  case $ac_top_builddir_sub in
1431  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433  esac ;;
1434esac
1435ac_abs_top_builddir=$ac_pwd
1436ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437# for backward compatibility:
1438ac_top_builddir=$ac_top_build_prefix
1439
1440case $srcdir in
1441  .)  # We are building in place.
1442    ac_srcdir=.
1443    ac_top_srcdir=$ac_top_builddir_sub
1444    ac_abs_top_srcdir=$ac_pwd ;;
1445  [\\/]* | ?:[\\/]* )  # Absolute name.
1446    ac_srcdir=$srcdir$ac_dir_suffix;
1447    ac_top_srcdir=$srcdir
1448    ac_abs_top_srcdir=$srcdir ;;
1449  *) # Relative name.
1450    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451    ac_top_srcdir=$ac_top_build_prefix$srcdir
1452    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453esac
1454ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456    cd "$ac_dir" || { ac_status=$?; continue; }
1457    # Check for guested configure.
1458    if test -f "$ac_srcdir/configure.gnu"; then
1459      echo &&
1460      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461    elif test -f "$ac_srcdir/configure"; then
1462      echo &&
1463      $SHELL "$ac_srcdir/configure" --help=recursive
1464    else
1465      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466    fi || ac_status=$?
1467    cd "$ac_pwd" || { ac_status=$?; break; }
1468  done
1469fi
1470
1471test -n "$ac_init_help" && exit $ac_status
1472if $ac_init_version; then
1473  cat <<\_ACEOF
1474dirmngr configure 1.1.0
1475generated by GNU Autoconf 2.64
1476
1477Copyright (C) 2009 Free Software Foundation, Inc.
1478This configure script is free software; the Free Software Foundation
1479gives unlimited permission to copy, distribute and modify it.
1480_ACEOF
1481  exit
1482fi
1483
1484## ------------------------ ##
1485## Autoconf initialization. ##
1486## ------------------------ ##
1487
1488# ac_fn_c_try_compile LINENO
1489# --------------------------
1490# Try to compile conftest.$ac_ext, and return whether this succeeded.
1491ac_fn_c_try_compile ()
1492{
1493  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494  rm -f conftest.$ac_objext
1495  if { { ac_try="$ac_compile"
1496case "(($ac_try" in
1497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498  *) ac_try_echo=$ac_try;;
1499esac
1500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501$as_echo "$ac_try_echo"; } >&5
1502  (eval "$ac_compile") 2>conftest.err
1503  ac_status=$?
1504  if test -s conftest.err; then
1505    grep -v '^ *+' conftest.err >conftest.er1
1506    cat conftest.er1 >&5
1507    mv -f conftest.er1 conftest.err
1508  fi
1509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510  test $ac_status = 0; } && {
1511	 test -z "$ac_c_werror_flag" ||
1512	 test ! -s conftest.err
1513       } && test -s conftest.$ac_objext; then :
1514  ac_retval=0
1515else
1516  $as_echo "$as_me: failed program was:" >&5
1517sed 's/^/| /' conftest.$ac_ext >&5
1518
1519	ac_retval=1
1520fi
1521  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1522  return $ac_retval
1523
1524} # ac_fn_c_try_compile
1525
1526# ac_fn_c_try_cpp LINENO
1527# ----------------------
1528# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_cpp ()
1530{
1531  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532  if { { ac_try="$ac_cpp conftest.$ac_ext"
1533case "(($ac_try" in
1534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535  *) ac_try_echo=$ac_try;;
1536esac
1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538$as_echo "$ac_try_echo"; } >&5
1539  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1540  ac_status=$?
1541  if test -s conftest.err; then
1542    grep -v '^ *+' conftest.err >conftest.er1
1543    cat conftest.er1 >&5
1544    mv -f conftest.er1 conftest.err
1545  fi
1546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547  test $ac_status = 0; } >/dev/null && {
1548	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1549	 test ! -s conftest.err
1550       }; then :
1551  ac_retval=0
1552else
1553  $as_echo "$as_me: failed program was:" >&5
1554sed 's/^/| /' conftest.$ac_ext >&5
1555
1556    ac_retval=1
1557fi
1558  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559  return $ac_retval
1560
1561} # ac_fn_c_try_cpp
1562
1563# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1564# -------------------------------------------------------
1565# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1566# the include files in INCLUDES and setting the cache variable VAR
1567# accordingly.
1568ac_fn_c_check_header_mongrel ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573$as_echo_n "checking for $2... " >&6; }
1574if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575  $as_echo_n "(cached) " >&6
1576fi
1577eval ac_res=\$$3
1578	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579$as_echo "$ac_res" >&6; }
1580else
1581  # Is the header compilable?
1582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1583$as_echo_n "checking $2 usability... " >&6; }
1584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585/* end confdefs.h.  */
1586$4
1587#include <$2>
1588_ACEOF
1589if ac_fn_c_try_compile "$LINENO"; then :
1590  ac_header_compiler=yes
1591else
1592  ac_header_compiler=no
1593fi
1594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1596$as_echo "$ac_header_compiler" >&6; }
1597
1598# Is the header present?
1599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1600$as_echo_n "checking $2 presence... " >&6; }
1601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602/* end confdefs.h.  */
1603#include <$2>
1604_ACEOF
1605if ac_fn_c_try_cpp "$LINENO"; then :
1606  ac_header_preproc=yes
1607else
1608  ac_header_preproc=no
1609fi
1610rm -f conftest.err conftest.$ac_ext
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1612$as_echo "$ac_header_preproc" >&6; }
1613
1614# So?  What about this header?
1615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1616  yes:no: )
1617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1618$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1620$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1621    ;;
1622  no:yes:* )
1623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1624$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1625    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1626$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1628$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1630$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633( cat <<\_ASBOX
1634## ------------------------------------ ##
1635## Report this to bug-dirmngr@gnupg.org ##
1636## ------------------------------------ ##
1637_ASBOX
1638     ) | sed "s/^/$as_me: WARNING:     /" >&2
1639    ;;
1640esac
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  eval "$3=\$ac_header_compiler"
1647fi
1648eval ac_res=\$$3
1649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
1651fi
1652  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653
1654} # ac_fn_c_check_header_mongrel
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674  { { case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_try") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; }; }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: program exited with status $ac_status" >&5
1687       $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690       ac_retval=$ac_status
1691fi
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694  return $ac_retval
1695
1696} # ac_fn_c_try_run
1697
1698# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699# -------------------------------------------------------
1700# Tests whether HEADER exists and can be compiled using the include files in
1701# INCLUDES, setting the cache variable VAR accordingly.
1702ac_fn_c_check_header_compile ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706$as_echo_n "checking for $2... " >&6; }
1707if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708  $as_echo_n "(cached) " >&6
1709else
1710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711/* end confdefs.h.  */
1712$4
1713#include <$2>
1714_ACEOF
1715if ac_fn_c_try_compile "$LINENO"; then :
1716  eval "$3=yes"
1717else
1718  eval "$3=no"
1719fi
1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721fi
1722eval ac_res=\$$3
1723	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724$as_echo "$ac_res" >&6; }
1725  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
1727} # ac_fn_c_check_header_compile
1728
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  rm -f conftest.$ac_objext conftest$ac_exeext
1736  if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_link") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && {
1752	 test -z "$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       } && test -s conftest$ac_exeext && {
1755	 test "$cross_compiling" = yes ||
1756	 $as_test_x conftest$ac_exeext
1757       }; then :
1758  ac_retval=0
1759else
1760  $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763	ac_retval=1
1764fi
1765  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767  # interfere with the next link command; also delete a directory that is
1768  # left behind by Apple's compiler.  We do this before executing the actions.
1769  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771  return $ac_retval
1772
1773} # ac_fn_c_try_link
1774
1775# ac_fn_c_check_func LINENO FUNC VAR
1776# ----------------------------------
1777# Tests whether FUNC exists, setting the cache variable VAR accordingly
1778ac_fn_c_check_func ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784  $as_echo_n "(cached) " >&6
1785else
1786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1790#define $2 innocuous_$2
1791
1792/* System header to define __stub macros and hopefully few prototypes,
1793    which can conflict with char $2 (); below.
1794    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795    <limits.h> exists even on freestanding compilers.  */
1796
1797#ifdef __STDC__
1798# include <limits.h>
1799#else
1800# include <assert.h>
1801#endif
1802
1803#undef $2
1804
1805/* Override any GCC internal prototype to avoid an error.
1806   Use char because int might match the return type of a GCC
1807   builtin and then its argument prototype would still apply.  */
1808#ifdef __cplusplus
1809extern "C"
1810#endif
1811char $2 ();
1812/* The GNU C library defines this for functions which it implements
1813    to always fail with ENOSYS.  Some functions are actually named
1814    something starting with __ and the normal name is an alias.  */
1815#if defined __stub_$2 || defined __stub___$2
1816choke me
1817#endif
1818
1819int
1820main ()
1821{
1822return $2 ();
1823  ;
1824  return 0;
1825}
1826_ACEOF
1827if ac_fn_c_try_link "$LINENO"; then :
1828  eval "$3=yes"
1829else
1830  eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext \
1833    conftest$ac_exeext conftest.$ac_ext
1834fi
1835eval ac_res=\$$3
1836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839
1840} # ac_fn_c_check_func
1841
1842# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1843# -------------------------------------------
1844# Tests whether TYPE exists after having included INCLUDES, setting cache
1845# variable VAR accordingly.
1846ac_fn_c_check_type ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852  $as_echo_n "(cached) " >&6
1853else
1854  eval "$3=no"
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858int
1859main ()
1860{
1861if (sizeof ($2))
1862	 return 0;
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870$4
1871int
1872main ()
1873{
1874if (sizeof (($2)))
1875	    return 0;
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881
1882else
1883  eval "$3=yes"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893
1894} # ac_fn_c_check_type
1895
1896# ac_fn_c_check_decl LINENO SYMBOL VAR
1897# ------------------------------------
1898# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1899ac_fn_c_check_decl ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1903$as_echo_n "checking whether $2 is declared... " >&6; }
1904if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910int
1911main ()
1912{
1913#ifndef $2
1914  (void) $2;
1915#endif
1916
1917  ;
1918  return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922  eval "$3=yes"
1923else
1924  eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_c_check_decl
1934cat >config.log <<_ACEOF
1935This file contains any messages produced by compilers while
1936running configure, to aid debugging if configure makes a mistake.
1937
1938It was created by dirmngr $as_me 1.1.0, which was
1939generated by GNU Autoconf 2.64.  Invocation command line was
1940
1941  $ $0 $@
1942
1943_ACEOF
1944exec 5>>config.log
1945{
1946cat <<_ASUNAME
1947## --------- ##
1948## Platform. ##
1949## --------- ##
1950
1951hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956
1957/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1959
1960/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1961/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1962/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1964/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1965/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1966/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1967
1968_ASUNAME
1969
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973  IFS=$as_save_IFS
1974  test -z "$as_dir" && as_dir=.
1975    $as_echo "PATH: $as_dir"
1976  done
1977IFS=$as_save_IFS
1978
1979} >&5
1980
1981cat >&5 <<_ACEOF
1982
1983
1984## ----------- ##
1985## Core tests. ##
1986## ----------- ##
1987
1988_ACEOF
1989
1990
1991# Keep a trace of the command line.
1992# Strip out --no-create and --no-recursion so they do not pile up.
1993# Strip out --silent because we don't want to record it for future runs.
1994# Also quote any args containing shell meta-characters.
1995# Make two passes to allow for proper duplicate-argument suppression.
1996ac_configure_args=
1997ac_configure_args0=
1998ac_configure_args1=
1999ac_must_keep_next=false
2000for ac_pass in 1 2
2001do
2002  for ac_arg
2003  do
2004    case $ac_arg in
2005    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007    | -silent | --silent | --silen | --sile | --sil)
2008      continue ;;
2009    *\'*)
2010      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011    esac
2012    case $ac_pass in
2013    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014    2)
2015      as_fn_append ac_configure_args1 " '$ac_arg'"
2016      if test $ac_must_keep_next = true; then
2017	ac_must_keep_next=false # Got value, back to normal.
2018      else
2019	case $ac_arg in
2020	  *=* | --config-cache | -C | -disable-* | --disable-* \
2021	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023	  | -with-* | --with-* | -without-* | --without-* | --x)
2024	    case "$ac_configure_args0 " in
2025	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026	    esac
2027	    ;;
2028	  -* ) ac_must_keep_next=true ;;
2029	esac
2030      fi
2031      as_fn_append ac_configure_args " '$ac_arg'"
2032      ;;
2033    esac
2034  done
2035done
2036{ ac_configure_args0=; unset ac_configure_args0;}
2037{ ac_configure_args1=; unset ac_configure_args1;}
2038
2039# When interrupted or exit'd, cleanup temporary files, and complete
2040# config.log.  We remove comments because anyway the quotes in there
2041# would cause problems or look ugly.
2042# WARNING: Use '\'' to represent an apostrophe within the trap.
2043# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044trap 'exit_status=$?
2045  # Save into config.log some information that might help in debugging.
2046  {
2047    echo
2048
2049    cat <<\_ASBOX
2050## ---------------- ##
2051## Cache variables. ##
2052## ---------------- ##
2053_ASBOX
2054    echo
2055    # The following way of writing the cache mishandles newlines in values,
2056(
2057  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058    eval ac_val=\$$ac_var
2059    case $ac_val in #(
2060    *${as_nl}*)
2061      case $ac_var in #(
2062      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064      esac
2065      case $ac_var in #(
2066      _ | IFS | as_nl) ;; #(
2067      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068      *) { eval $ac_var=; unset $ac_var;} ;;
2069      esac ;;
2070    esac
2071  done
2072  (set) 2>&1 |
2073    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074    *${as_nl}ac_space=\ *)
2075      sed -n \
2076	"s/'\''/'\''\\\\'\'''\''/g;
2077	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078      ;; #(
2079    *)
2080      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2081      ;;
2082    esac |
2083    sort
2084)
2085    echo
2086
2087    cat <<\_ASBOX
2088## ----------------- ##
2089## Output variables. ##
2090## ----------------- ##
2091_ASBOX
2092    echo
2093    for ac_var in $ac_subst_vars
2094    do
2095      eval ac_val=\$$ac_var
2096      case $ac_val in
2097      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098      esac
2099      $as_echo "$ac_var='\''$ac_val'\''"
2100    done | sort
2101    echo
2102
2103    if test -n "$ac_subst_files"; then
2104      cat <<\_ASBOX
2105## ------------------- ##
2106## File substitutions. ##
2107## ------------------- ##
2108_ASBOX
2109      echo
2110      for ac_var in $ac_subst_files
2111      do
2112	eval ac_val=\$$ac_var
2113	case $ac_val in
2114	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115	esac
2116	$as_echo "$ac_var='\''$ac_val'\''"
2117      done | sort
2118      echo
2119    fi
2120
2121    if test -s confdefs.h; then
2122      cat <<\_ASBOX
2123## ----------- ##
2124## confdefs.h. ##
2125## ----------- ##
2126_ASBOX
2127      echo
2128      cat confdefs.h
2129      echo
2130    fi
2131    test "$ac_signal" != 0 &&
2132      $as_echo "$as_me: caught signal $ac_signal"
2133    $as_echo "$as_me: exit $exit_status"
2134  } >&5
2135  rm -f core *.core core.conftest.* &&
2136    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2137    exit $exit_status
2138' 0
2139for ac_signal in 1 2 13 15; do
2140  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2141done
2142ac_signal=0
2143
2144# confdefs.h avoids OS command line length limits that DEFS can exceed.
2145rm -f -r conftest* confdefs.h
2146
2147$as_echo "/* confdefs.h */" > confdefs.h
2148
2149# Predefined preprocessor variables.
2150
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_NAME "$PACKAGE_NAME"
2153_ACEOF
2154
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157_ACEOF
2158
2159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_VERSION "$PACKAGE_VERSION"
2161_ACEOF
2162
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_STRING "$PACKAGE_STRING"
2165_ACEOF
2166
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169_ACEOF
2170
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_URL "$PACKAGE_URL"
2173_ACEOF
2174
2175
2176# Let the site file select an alternate cache file if it wants to.
2177# Prefer an explicitly selected file to automatically selected ones.
2178ac_site_file1=NONE
2179ac_site_file2=NONE
2180if test -n "$CONFIG_SITE"; then
2181  ac_site_file1=$CONFIG_SITE
2182elif test "x$prefix" != xNONE; then
2183  ac_site_file1=$prefix/share/config.site
2184  ac_site_file2=$prefix/etc/config.site
2185else
2186  ac_site_file1=$ac_default_prefix/share/config.site
2187  ac_site_file2=$ac_default_prefix/etc/config.site
2188fi
2189for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190do
2191  test "x$ac_site_file" = xNONE && continue
2192  if test -r "$ac_site_file"; then
2193    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195    sed 's/^/| /' "$ac_site_file" >&5
2196    . "$ac_site_file"
2197  fi
2198done
2199
2200if test -r "$cache_file"; then
2201  # Some versions of bash will fail to source /dev/null (special
2202  # files actually), so we avoid doing that.
2203  if test -f "$cache_file"; then
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205$as_echo "$as_me: loading cache $cache_file" >&6;}
2206    case $cache_file in
2207      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208      *)                      . "./$cache_file";;
2209    esac
2210  fi
2211else
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213$as_echo "$as_me: creating cache $cache_file" >&6;}
2214  >$cache_file
2215fi
2216
2217# Check that the precious variables saved in the cache have kept the same
2218# value.
2219ac_cache_corrupted=false
2220for ac_var in $ac_precious_vars; do
2221  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2222  eval ac_new_set=\$ac_env_${ac_var}_set
2223  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2224  eval ac_new_val=\$ac_env_${ac_var}_value
2225  case $ac_old_set,$ac_new_set in
2226    set,)
2227      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2228$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2229      ac_cache_corrupted=: ;;
2230    ,set)
2231      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2232$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2233      ac_cache_corrupted=: ;;
2234    ,);;
2235    *)
2236      if test "x$ac_old_val" != "x$ac_new_val"; then
2237	# differences in whitespace do not lead to failure.
2238	ac_old_val_w=`echo x $ac_old_val`
2239	ac_new_val_w=`echo x $ac_new_val`
2240	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2241	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2242$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2243	  ac_cache_corrupted=:
2244	else
2245	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2246$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2247	  eval $ac_var=\$ac_old_val
2248	fi
2249	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2250$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2251	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2252$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2253      fi;;
2254  esac
2255  # Pass precious variables to config.status.
2256  if test "$ac_new_set" = set; then
2257    case $ac_new_val in
2258    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2259    *) ac_arg=$ac_var=$ac_new_val ;;
2260    esac
2261    case " $ac_configure_args " in
2262      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2263      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2264    esac
2265  fi
2266done
2267if $ac_cache_corrupted; then
2268  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2271$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273fi
2274## -------------------- ##
2275## Main body of script. ##
2276## -------------------- ##
2277
2278ac_ext=c
2279ac_cpp='$CPP $CPPFLAGS'
2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
2286NEED_GPG_ERROR_VERSION=1.4
2287
2288NEED_LIBGCRYPT_API=1
2289NEED_LIBGCRYPT_VERSION=1.4.0
2290
2291NEED_LIBASSUAN_API=2
2292NEED_LIBASSUAN_VERSION=2.0.0
2293
2294NEED_KSBA_API=1
2295NEED_KSBA_VERSION=1.0.2
2296
2297COPYRIGHT_YEAR_NAME="2010 g10 Code GmbH"
2298
2299PACKAGE=$PACKAGE_NAME
2300VERSION=$PACKAGE_VERSION
2301
2302
2303
2304ac_config_headers="$ac_config_headers config.h"
2305
2306am__api_version='1.10'
2307
2308ac_aux_dir=
2309for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310  for ac_t in install-sh install.sh shtool; do
2311    if test -f "$ac_dir/$ac_t"; then
2312      ac_aux_dir=$ac_dir
2313      ac_install_sh="$ac_aux_dir/$ac_t -c"
2314      break 2
2315    fi
2316  done
2317done
2318if test -z "$ac_aux_dir"; then
2319  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320fi
2321
2322# These three variables are undocumented and unsupported,
2323# and are intended to be withdrawn in a future Autoconf release.
2324# They can cause serious problems if a builder's source tree is in a directory
2325# whose full name contains unusual characters.
2326ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2327ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2328ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2329
2330
2331# Find a good install program.  We prefer a C program (faster),
2332# so one script is as good as another.  But avoid the broken or
2333# incompatible versions:
2334# SysV /etc/install, /usr/sbin/install
2335# SunOS /usr/etc/install
2336# IRIX /sbin/install
2337# AIX /bin/install
2338# AmigaOS /C/install, which installs bootblocks on floppy discs
2339# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342# OS/2's system install, which has a completely different semantic
2343# ./install, which can be erroneously created by make from ./install.sh.
2344# Reject install programs that cannot install multiple files.
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2346$as_echo_n "checking for a BSD-compatible install... " >&6; }
2347if test -z "$INSTALL"; then
2348if test "${ac_cv_path_install+set}" = set; then :
2349  $as_echo_n "(cached) " >&6
2350else
2351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354  IFS=$as_save_IFS
2355  test -z "$as_dir" && as_dir=.
2356    # Account for people who put trailing slashes in PATH elements.
2357case $as_dir/ in #((
2358  ./ | .// | /[cC]/* | \
2359  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2360  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2361  /usr/ucb/* ) ;;
2362  *)
2363    # OSF1 and SCO ODT 3.0 have their own names for install.
2364    # Don't use installbsd from OSF since it installs stuff as root
2365    # by default.
2366    for ac_prog in ginstall scoinst install; do
2367      for ac_exec_ext in '' $ac_executable_extensions; do
2368	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2369	  if test $ac_prog = install &&
2370	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371	    # AIX install.  It has an incompatible calling convention.
2372	    :
2373	  elif test $ac_prog = install &&
2374	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375	    # program-specific install script used by HP pwplus--don't use.
2376	    :
2377	  else
2378	    rm -rf conftest.one conftest.two conftest.dir
2379	    echo one > conftest.one
2380	    echo two > conftest.two
2381	    mkdir conftest.dir
2382	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2383	      test -s conftest.one && test -s conftest.two &&
2384	      test -s conftest.dir/conftest.one &&
2385	      test -s conftest.dir/conftest.two
2386	    then
2387	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388	      break 3
2389	    fi
2390	  fi
2391	fi
2392      done
2393    done
2394    ;;
2395esac
2396
2397  done
2398IFS=$as_save_IFS
2399
2400rm -rf conftest.one conftest.two conftest.dir
2401
2402fi
2403  if test "${ac_cv_path_install+set}" = set; then
2404    INSTALL=$ac_cv_path_install
2405  else
2406    # As a last resort, use the slow shell script.  Don't cache a
2407    # value for INSTALL within a source directory, because that will
2408    # break other packages using the cache if that directory is
2409    # removed, or if the value is a relative name.
2410    INSTALL=$ac_install_sh
2411  fi
2412fi
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2414$as_echo "$INSTALL" >&6; }
2415
2416# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2417# It thinks the first close brace ends the variable substitution.
2418test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2419
2420test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2421
2422test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2423
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2425$as_echo_n "checking whether build environment is sane... " >&6; }
2426# Just in case
2427sleep 1
2428echo timestamp > conftest.file
2429# Do `set' in a subshell so we don't clobber the current shell's
2430# arguments.  Must try -L first in case configure is actually a
2431# symlink; some systems play weird games with the mod time of symlinks
2432# (eg FreeBSD returns the mod time of the symlink's containing
2433# directory).
2434if (
2435   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2436   if test "$*" = "X"; then
2437      # -L didn't work.
2438      set X `ls -t $srcdir/configure conftest.file`
2439   fi
2440   rm -f conftest.file
2441   if test "$*" != "X $srcdir/configure conftest.file" \
2442      && test "$*" != "X conftest.file $srcdir/configure"; then
2443
2444      # If neither matched, then we have a broken ls.  This can happen
2445      # if, for instance, CONFIG_SHELL is bash and it inherits a
2446      # broken ls alias from the environment.  This has actually
2447      # happened.  Such a system could not be considered "sane".
2448      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2449alias in your environment" "$LINENO" 5
2450   fi
2451
2452   test "$2" = conftest.file
2453   )
2454then
2455   # Ok.
2456   :
2457else
2458   as_fn_error "newly created file is older than distributed files!
2459Check your system clock" "$LINENO" 5
2460fi
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2462$as_echo "yes" >&6; }
2463test "$program_prefix" != NONE &&
2464  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465# Use a double $ so make ignores it.
2466test "$program_suffix" != NONE &&
2467  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468# Double any \ or $.
2469# By default was `s,x,x', remove it if useless.
2470ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2472
2473# expand $ac_aux_dir to an absolute path
2474am_aux_dir=`cd $ac_aux_dir && pwd`
2475
2476test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2477# Use eval to expand $SHELL
2478if eval "$MISSING --run true"; then
2479  am_missing_run="$MISSING --run "
2480else
2481  am_missing_run=
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2483$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2484fi
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2487$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488if test -z "$MKDIR_P"; then
2489  if test "${ac_cv_path_mkdir+set}" = set; then :
2490  $as_echo_n "(cached) " >&6
2491else
2492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_prog in mkdir gmkdir; do
2498	 for ac_exec_ext in '' $ac_executable_extensions; do
2499	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2500	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501	     'mkdir (GNU coreutils) '* | \
2502	     'mkdir (coreutils) '* | \
2503	     'mkdir (fileutils) '4.1*)
2504	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2505	       break 3;;
2506	   esac
2507	 done
2508       done
2509  done
2510IFS=$as_save_IFS
2511
2512fi
2513
2514  if test "${ac_cv_path_mkdir+set}" = set; then
2515    MKDIR_P="$ac_cv_path_mkdir -p"
2516  else
2517    # As a last resort, use the slow shell script.  Don't cache a
2518    # value for MKDIR_P within a source directory, because that will
2519    # break other packages using the cache if that directory is
2520    # removed, or if the value is a relative name.
2521    test -d ./--version && rmdir ./--version
2522    MKDIR_P="$ac_install_sh -d"
2523  fi
2524fi
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2526$as_echo "$MKDIR_P" >&6; }
2527
2528mkdir_p="$MKDIR_P"
2529case $mkdir_p in
2530  [\\/$]* | ?:[\\/]*) ;;
2531  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2532esac
2533
2534for ac_prog in gawk mawk nawk awk
2535do
2536  # Extract the first word of "$ac_prog", so it can be a program name with args.
2537set dummy $ac_prog; ac_word=$2
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if test "${ac_cv_prog_AWK+set}" = set; then :
2541  $as_echo_n "(cached) " >&6
2542else
2543  if test -n "$AWK"; then
2544  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549  IFS=$as_save_IFS
2550  test -z "$as_dir" && as_dir=.
2551    for ac_exec_ext in '' $ac_executable_extensions; do
2552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553    ac_cv_prog_AWK="$ac_prog"
2554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555    break 2
2556  fi
2557done
2558  done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563AWK=$ac_cv_prog_AWK
2564if test -n "$AWK"; then
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2566$as_echo "$AWK" >&6; }
2567else
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572
2573  test -n "$AWK" && break
2574done
2575
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2578set x ${MAKE-make}
2579ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  cat >conftest.make <<\_ACEOF
2584SHELL = /bin/sh
2585all:
2586	@echo '@@@%%%=$(MAKE)=@@@%%%'
2587_ACEOF
2588# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2589case `${MAKE-make} -f conftest.make 2>/dev/null` in
2590  *@@@%%%=?*=@@@%%%*)
2591    eval ac_cv_prog_make_${ac_make}_set=yes;;
2592  *)
2593    eval ac_cv_prog_make_${ac_make}_set=no;;
2594esac
2595rm -f conftest.make
2596fi
2597if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2599$as_echo "yes" >&6; }
2600  SET_MAKE=
2601else
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604  SET_MAKE="MAKE=${MAKE-make}"
2605fi
2606
2607rm -rf .tst 2>/dev/null
2608mkdir .tst 2>/dev/null
2609if test -d .tst; then
2610  am__leading_dot=.
2611else
2612  am__leading_dot=_
2613fi
2614rmdir .tst 2>/dev/null
2615
2616if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618  # is not polluted with repeated "-I."
2619  am__isrc=' -I$(srcdir)'
2620  # test to see if srcdir already configured
2621  if test -f $srcdir/config.status; then
2622    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2623  fi
2624fi
2625
2626# test whether we have cygpath
2627if test -z "$CYGPATH_W"; then
2628  if (cygpath --version) >/dev/null 2>/dev/null; then
2629    CYGPATH_W='cygpath -w'
2630  else
2631    CYGPATH_W=echo
2632  fi
2633fi
2634
2635
2636# Define the identity of the package.
2637 PACKAGE=$PACKAGE
2638 VERSION=$VERSION
2639
2640
2641cat >>confdefs.h <<_ACEOF
2642#define PACKAGE "$PACKAGE"
2643_ACEOF
2644
2645
2646cat >>confdefs.h <<_ACEOF
2647#define VERSION "$VERSION"
2648_ACEOF
2649
2650# Some tools Automake needs.
2651
2652ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2653
2654
2655AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2656
2657
2658AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2659
2660
2661AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2662
2663
2664MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2665
2666install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2667
2668# Installed binaries are usually stripped using `strip' when the user
2669# run `make install-strip'.  However `strip' might not be the right
2670# tool to use in cross-compilation environments, therefore Automake
2671# will honor the `STRIP' environment variable to overrule this program.
2672if test "$cross_compiling" != no; then
2673  if test -n "$ac_tool_prefix"; then
2674  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}strip; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_STRIP+set}" = set; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  if test -n "$STRIP"; then
2682  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    for ac_exec_ext in '' $ac_executable_extensions; do
2690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701STRIP=$ac_cv_prog_STRIP
2702if test -n "$STRIP"; then
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2704$as_echo "$STRIP" >&6; }
2705else
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710
2711fi
2712if test -z "$ac_cv_prog_STRIP"; then
2713  ac_ct_STRIP=$STRIP
2714  # Extract the first word of "strip", so it can be a program name with args.
2715set dummy strip; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  if test -n "$ac_ct_STRIP"; then
2722  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727  IFS=$as_save_IFS
2728  test -z "$as_dir" && as_dir=.
2729    for ac_exec_ext in '' $ac_executable_extensions; do
2730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731    ac_cv_prog_ac_ct_STRIP="strip"
2732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733    break 2
2734  fi
2735done
2736  done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2742if test -n "$ac_ct_STRIP"; then
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2744$as_echo "$ac_ct_STRIP" >&6; }
2745else
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750  if test "x$ac_ct_STRIP" = x; then
2751    STRIP=":"
2752  else
2753    case $cross_compiling:$ac_tool_warned in
2754yes:)
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757ac_tool_warned=yes ;;
2758esac
2759    STRIP=$ac_ct_STRIP
2760  fi
2761else
2762  STRIP="$ac_cv_prog_STRIP"
2763fi
2764
2765fi
2766INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2767
2768# We need awk for the "check" target.  The system "awk" is bad on
2769# some platforms.
2770# Always define AMTAR for backward compatibility.
2771
2772AMTAR=${AMTAR-"${am_missing_run}tar"}
2773
2774am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2775
2776
2777
2778
2779
2780# Make sure we can run config.sub.
2781$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2782  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2783
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2785$as_echo_n "checking build system type... " >&6; }
2786if test "${ac_cv_build+set}" = set; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  ac_build_alias=$build_alias
2790test "x$ac_build_alias" = x &&
2791  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2792test "x$ac_build_alias" = x &&
2793  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2795  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2796
2797fi
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2799$as_echo "$ac_cv_build" >&6; }
2800case $ac_cv_build in
2801*-*-*) ;;
2802*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2803esac
2804build=$ac_cv_build
2805ac_save_IFS=$IFS; IFS='-'
2806set x $ac_cv_build
2807shift
2808build_cpu=$1
2809build_vendor=$2
2810shift; shift
2811# Remember, the first character of IFS is used to create $*,
2812# except with old shells:
2813build_os=$*
2814IFS=$ac_save_IFS
2815case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2816
2817
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2819$as_echo_n "checking host system type... " >&6; }
2820if test "${ac_cv_host+set}" = set; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if test "x$host_alias" = x; then
2824  ac_cv_host=$ac_cv_build
2825else
2826  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2827    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2828fi
2829
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2832$as_echo "$ac_cv_host" >&6; }
2833case $ac_cv_host in
2834*-*-*) ;;
2835*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2836esac
2837host=$ac_cv_host
2838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_host
2840shift
2841host_cpu=$1
2842host_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846host_os=$*
2847IFS=$ac_save_IFS
2848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849
2850
2851
2852
2853
2854
2855	{ $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2856$as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2857	{ $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2858$as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2859	hostname=`hostname`
2860	if test "$hostname"; then
2861	   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
2862$as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2863	fi
2864
2865	date=`date +%Y%m%d-%H%M%S`
2866	if test "$?" != 0; then
2867	   date=`date`
2868	fi
2869	if test "$date"; then
2870	   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
2871$as_echo "$as_me: autobuild timestamp... $date" >&6;}
2872	fi
2873
2874
2875DEPDIR="${am__leading_dot}deps"
2876
2877ac_config_commands="$ac_config_commands depfiles"
2878
2879
2880am_make=${MAKE-make}
2881cat > confinc << 'END'
2882am__doit:
2883	@echo done
2884.PHONY: am__doit
2885END
2886# If we don't find an include directive, just comment out the code.
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2888$as_echo_n "checking for style of include used by $am_make... " >&6; }
2889am__include="#"
2890am__quote=
2891_am_result=none
2892# First try GNU make style include.
2893echo "include confinc" > confmf
2894# We grep out `Entering directory' and `Leaving directory'
2895# messages which can occur if `w' ends up in MAKEFLAGS.
2896# In particular we don't look at `^make:' because GNU make might
2897# be invoked under some other name (usually "gmake"), in which
2898# case it prints its new name instead of `make'.
2899if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2900   am__include=include
2901   am__quote=
2902   _am_result=GNU
2903fi
2904# Now try BSD make style include.
2905if test "$am__include" = "#"; then
2906   echo '.include "confinc"' > confmf
2907   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2908      am__include=.include
2909      am__quote="\""
2910      _am_result=BSD
2911   fi
2912fi
2913
2914
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2916$as_echo "$_am_result" >&6; }
2917rm -f confinc confmf
2918
2919# Check whether --enable-dependency-tracking was given.
2920if test "${enable_dependency_tracking+set}" = set; then :
2921  enableval=$enable_dependency_tracking;
2922fi
2923
2924if test "x$enable_dependency_tracking" != xno; then
2925  am_depcomp="$ac_aux_dir/depcomp"
2926  AMDEPBACKSLASH='\'
2927fi
2928 if test "x$enable_dependency_tracking" != xno; then
2929  AMDEP_TRUE=
2930  AMDEP_FALSE='#'
2931else
2932  AMDEP_TRUE='#'
2933  AMDEP_FALSE=
2934fi
2935
2936
2937ac_ext=c
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942if test -n "$ac_tool_prefix"; then
2943  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2944set dummy ${ac_tool_prefix}gcc; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if test "${ac_cv_prog_CC+set}" = set; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$CC"; then
2951  ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_exec_ext in '' $ac_executable_extensions; do
2959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965  done
2966IFS=$as_save_IFS
2967
2968fi
2969fi
2970CC=$ac_cv_prog_CC
2971if test -n "$CC"; then
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973$as_echo "$CC" >&6; }
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979
2980fi
2981if test -z "$ac_cv_prog_CC"; then
2982  ac_ct_CC=$CC
2983  # Extract the first word of "gcc", so it can be a program name with args.
2984set dummy gcc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$ac_ct_CC"; then
2991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000    ac_cv_prog_ac_ct_CC="gcc"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011if test -n "$ac_ct_CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3013$as_echo "$ac_ct_CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019  if test "x$ac_ct_CC" = x; then
3020    CC=""
3021  else
3022    case $cross_compiling:$ac_tool_warned in
3023yes:)
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026ac_tool_warned=yes ;;
3027esac
3028    CC=$ac_ct_CC
3029  fi
3030else
3031  CC="$ac_cv_prog_CC"
3032fi
3033
3034if test -z "$CC"; then
3035          if test -n "$ac_tool_prefix"; then
3036    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}cc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if test "${ac_cv_prog_CC+set}" = set; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_CC="${ac_tool_prefix}cc"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073  fi
3074fi
3075if test -z "$CC"; then
3076  # Extract the first word of "cc", so it can be a program name with args.
3077set dummy cc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if test "${ac_cv_prog_CC+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$CC"; then
3084  ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086  ac_prog_rejected=no
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090  IFS=$as_save_IFS
3091  test -z "$as_dir" && as_dir=.
3092    for ac_exec_ext in '' $ac_executable_extensions; do
3093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3095       ac_prog_rejected=yes
3096       continue
3097     fi
3098    ac_cv_prog_CC="cc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106if test $ac_prog_rejected = yes; then
3107  # We found a bogon in the path, so make sure we never use it.
3108  set dummy $ac_cv_prog_CC
3109  shift
3110  if test $# != 0; then
3111    # We chose a different compiler from the bogus one.
3112    # However, it has the same basename, so the bogon will be chosen
3113    # first if we set CC to just the basename; use the full file name.
3114    shift
3115    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116  fi
3117fi
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130fi
3131if test -z "$CC"; then
3132  if test -n "$ac_tool_prefix"; then
3133  for ac_prog in cl.exe
3134  do
3135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if test "${ac_cv_prog_CC+set}" = set; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$CC"; then
3143  ac_cv_prog_CC="$CC" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162CC=$ac_cv_prog_CC
3163if test -n "$CC"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165$as_echo "$CC" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172    test -n "$CC" && break
3173  done
3174fi
3175if test -z "$CC"; then
3176  ac_ct_CC=$CC
3177  for ac_prog in cl.exe
3178do
3179  # Extract the first word of "$ac_prog", so it can be a program name with args.
3180set dummy $ac_prog; ac_word=$2
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
3183if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3184  $as_echo_n "(cached) " >&6
3185else
3186  if test -n "$ac_ct_CC"; then
3187  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192  IFS=$as_save_IFS
3193  test -z "$as_dir" && as_dir=.
3194    for ac_exec_ext in '' $ac_executable_extensions; do
3195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196    ac_cv_prog_ac_ct_CC="$ac_prog"
3197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198    break 2
3199  fi
3200done
3201  done
3202IFS=$as_save_IFS
3203
3204fi
3205fi
3206ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207if test -n "$ac_ct_CC"; then
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209$as_echo "$ac_ct_CC" >&6; }
3210else
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
3214
3215
3216  test -n "$ac_ct_CC" && break
3217done
3218
3219  if test "x$ac_ct_CC" = x; then
3220    CC=""
3221  else
3222    case $cross_compiling:$ac_tool_warned in
3223yes:)
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226ac_tool_warned=yes ;;
3227esac
3228    CC=$ac_ct_CC
3229  fi
3230fi
3231
3232fi
3233
3234
3235test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error "no acceptable C compiler found in \$PATH
3238See \`config.log' for more details." "$LINENO" 5; }
3239
3240# Provide some information about the compiler.
3241$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3242set X $ac_compile
3243ac_compiler=$2
3244for ac_option in --version -v -V -qversion; do
3245  { { ac_try="$ac_compiler $ac_option >&5"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3253  ac_status=$?
3254  if test -s conftest.err; then
3255    sed '10a\
3256... rest of stderr output deleted ...
3257         10q' conftest.err >conftest.er1
3258    cat conftest.er1 >&5
3259    rm -f conftest.er1 conftest.err
3260  fi
3261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262  test $ac_status = 0; }
3263done
3264
3265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h.  */
3267#include <stdio.h>
3268int
3269main ()
3270{
3271FILE *f = fopen ("conftest.out", "w");
3272 return ferror (f) || fclose (f) != 0;
3273
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278ac_clean_files_save=$ac_clean_files
3279ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3280# Try to create an executable without -o first, disregard a.out.
3281# It will help us diagnose broken compilers, and finding out an intuition
3282# of exeext.
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3284$as_echo_n "checking for C compiler default output file name... " >&6; }
3285ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3286
3287# The possible output files:
3288ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3289
3290ac_rmfiles=
3291for ac_file in $ac_files
3292do
3293  case $ac_file in
3294    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296  esac
3297done
3298rm -f $ac_rmfiles
3299
3300if { { ac_try="$ac_link_default"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307  (eval "$ac_link_default") 2>&5
3308  ac_status=$?
3309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }; then :
3311  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3314# so that the user can short-circuit this test for compilers unknown to
3315# Autoconf.
3316for ac_file in $ac_files ''
3317do
3318  test -f "$ac_file" || continue
3319  case $ac_file in
3320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3321	;;
3322    [ab].out )
3323	# We found the default executable, but exeext='' is most
3324	# certainly right.
3325	break;;
3326    *.* )
3327	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328	then :; else
3329	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330	fi
3331	# We set ac_cv_exeext here because the later test for it is not
3332	# safe: cross compilers may not add the suffix if given an `-o'
3333	# argument, so we may need to know it at that point already.
3334	# Even if this section looks crufty: it has the advantage of
3335	# actually working.
3336	break;;
3337    * )
3338	break;;
3339  esac
3340done
3341test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343else
3344  ac_file=''
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347$as_echo "$ac_file" >&6; }
3348if test -z "$ac_file"; then :
3349  $as_echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354{ as_fn_set_status 77
3355as_fn_error "C compiler cannot create executables
3356See \`config.log' for more details." "$LINENO" 5; }; }
3357fi
3358ac_exeext=$ac_cv_exeext
3359
3360# Check that the compiler produces executables we can run.  If not, either
3361# the compiler is broken, or we cross compile.
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3363$as_echo_n "checking whether the C compiler works... " >&6; }
3364# If not cross compiling, check that we can run a simple program.
3365if test "$cross_compiling" != yes; then
3366  if { ac_try='./$ac_file'
3367  { { case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_try") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }; }; then
3377    cross_compiling=no
3378  else
3379    if test "$cross_compiling" = maybe; then
3380	cross_compiling=yes
3381    else
3382	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error "cannot run C compiled programs.
3385If you meant to cross compile, use \`--host'.
3386See \`config.log' for more details." "$LINENO" 5; }
3387    fi
3388  fi
3389fi
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391$as_echo "yes" >&6; }
3392
3393rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3394ac_clean_files=$ac_clean_files_save
3395# Check that the compiler produces executables we can run.  If not, either
3396# the compiler is broken, or we cross compile.
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3398$as_echo_n "checking whether we are cross compiling... " >&6; }
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400$as_echo "$cross_compiling" >&6; }
3401
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3403$as_echo_n "checking for suffix of executables... " >&6; }
3404if { { ac_try="$ac_link"
3405case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_link") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; then :
3415  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3416# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3417# work properly (i.e., refer to `conftest.exe'), while it won't with
3418# `rm'.
3419for ac_file in conftest.exe conftest conftest.*; do
3420  test -f "$ac_file" || continue
3421  case $ac_file in
3422    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424	  break;;
3425    * ) break;;
3426  esac
3427done
3428else
3429  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431as_fn_error "cannot compute suffix of executables: cannot compile and link
3432See \`config.log' for more details." "$LINENO" 5; }
3433fi
3434rm -f conftest$ac_cv_exeext
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3436$as_echo "$ac_cv_exeext" >&6; }
3437
3438rm -f conftest.$ac_ext
3439EXEEXT=$ac_cv_exeext
3440ac_exeext=$EXEEXT
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442$as_echo_n "checking for suffix of object files... " >&6; }
3443if test "${ac_cv_objext+set}" = set; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.o conftest.obj
3458if { { ac_try="$ac_compile"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_compile") 2>&5
3466  ac_status=$?
3467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468  test $ac_status = 0; }; then :
3469  for ac_file in conftest.o conftest.obj conftest.*; do
3470  test -f "$ac_file" || continue;
3471  case $ac_file in
3472    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3473    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3474       break;;
3475  esac
3476done
3477else
3478  $as_echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483as_fn_error "cannot compute suffix of object files: cannot compile
3484See \`config.log' for more details." "$LINENO" 5; }
3485fi
3486rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3489$as_echo "$ac_cv_objext" >&6; }
3490OBJEXT=$ac_cv_objext
3491ac_objext=$OBJEXT
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3493$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3494if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503#ifndef __GNUC__
3504       choke me
3505#endif
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511if ac_fn_c_try_compile "$LINENO"; then :
3512  ac_compiler_gnu=yes
3513else
3514  ac_compiler_gnu=no
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522if test $ac_compiler_gnu = yes; then
3523  GCC=yes
3524else
3525  GCC=
3526fi
3527ac_test_CFLAGS=${CFLAGS+set}
3528ac_save_CFLAGS=$CFLAGS
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3530$as_echo_n "checking whether $CC accepts -g... " >&6; }
3531if test "${ac_cv_prog_cc_g+set}" = set; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  ac_save_c_werror_flag=$ac_c_werror_flag
3535   ac_c_werror_flag=yes
3536   ac_cv_prog_cc_g=no
3537   CFLAGS="-g"
3538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_g=yes
3551else
3552  CFLAGS=""
3553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"; then :
3565
3566else
3567  ac_c_werror_flag=$ac_save_c_werror_flag
3568	 CFLAGS="-g"
3569	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581  ac_cv_prog_cc_g=yes
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586fi
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588   ac_c_werror_flag=$ac_save_c_werror_flag
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3591$as_echo "$ac_cv_prog_cc_g" >&6; }
3592if test "$ac_test_CFLAGS" = set; then
3593  CFLAGS=$ac_save_CFLAGS
3594elif test $ac_cv_prog_cc_g = yes; then
3595  if test "$GCC" = yes; then
3596    CFLAGS="-g -O2"
3597  else
3598    CFLAGS="-g"
3599  fi
3600else
3601  if test "$GCC" = yes; then
3602    CFLAGS="-O2"
3603  else
3604    CFLAGS=
3605  fi
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609if test "${ac_cv_prog_cc_c89+set}" = set; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  ac_cv_prog_cc_c89=no
3613ac_save_CC=$CC
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616#include <stdarg.h>
3617#include <stdio.h>
3618#include <sys/types.h>
3619#include <sys/stat.h>
3620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3621struct buf { int x; };
3622FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623static char *e (p, i)
3624     char **p;
3625     int i;
3626{
3627  return p[i];
3628}
3629static char *f (char * (*g) (char **, int), char **p, ...)
3630{
3631  char *s;
3632  va_list v;
3633  va_start (v,p);
3634  s = g (p, va_arg (v,int));
3635  va_end (v);
3636  return s;
3637}
3638
3639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3640   function prototypes and stuff, but not '\xHH' hex character constants.
3641   These don't provoke an error unfortunately, instead are silently treated
3642   as 'x'.  The following induces an error, until -std is added to get
3643   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3644   array size at least.  It's necessary to write '\x00'==0 to get something
3645   that's true only with -std.  */
3646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649   inside strings and character constants.  */
3650#define FOO(x) 'x'
3651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653int test (int i, double x);
3654struct s1 {int (*f) (int a);};
3655struct s2 {int (*f) (double a);};
3656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657int argc;
3658char **argv;
3659int
3660main ()
3661{
3662return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3663  ;
3664  return 0;
3665}
3666_ACEOF
3667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669do
3670  CC="$ac_save_CC $ac_arg"
3671  if ac_fn_c_try_compile "$LINENO"; then :
3672  ac_cv_prog_cc_c89=$ac_arg
3673fi
3674rm -f core conftest.err conftest.$ac_objext
3675  test "x$ac_cv_prog_cc_c89" != "xno" && break
3676done
3677rm -f conftest.$ac_ext
3678CC=$ac_save_CC
3679
3680fi
3681# AC_CACHE_VAL
3682case "x$ac_cv_prog_cc_c89" in
3683  x)
3684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685$as_echo "none needed" >&6; } ;;
3686  xno)
3687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688$as_echo "unsupported" >&6; } ;;
3689  *)
3690    CC="$CC $ac_cv_prog_cc_c89"
3691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693esac
3694if test "x$ac_cv_prog_cc_c89" != xno; then :
3695
3696fi
3697
3698ac_ext=c
3699ac_cpp='$CPP $CPPFLAGS'
3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704depcc="$CC"   am_compiler_list=
3705
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707$as_echo_n "checking dependency style of $depcc... " >&6; }
3708if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712  # We make a subdir and do the tests there.  Otherwise we can end up
3713  # making bogus files that we don't know about and never remove.  For
3714  # instance it was reported that on HP-UX the gcc test will end up
3715  # making a dummy file named `D' -- because `-MD' means `put the output
3716  # in D'.
3717  mkdir conftest.dir
3718  # Copy depcomp to subdir because otherwise we won't find it if we're
3719  # using a relative directory.
3720  cp "$am_depcomp" conftest.dir
3721  cd conftest.dir
3722  # We will build objects and dependencies in a subdirectory because
3723  # it helps to detect inapplicable dependency modes.  For instance
3724  # both Tru64's cc and ICC support -MD to output dependencies as a
3725  # side effect of compilation, but ICC will put the dependencies in
3726  # the current directory while Tru64 will put them in the object
3727  # directory.
3728  mkdir sub
3729
3730  am_cv_CC_dependencies_compiler_type=none
3731  if test "$am_compiler_list" = ""; then
3732     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3733  fi
3734  for depmode in $am_compiler_list; do
3735    # Setup a source with many dependencies, because some compilers
3736    # like to wrap large dependency lists on column 80 (with \), and
3737    # we should not choose a depcomp mode which is confused by this.
3738    #
3739    # We need to recreate these files for each test, as the compiler may
3740    # overwrite some of them when testing with obscure command lines.
3741    # This happens at least with the AIX C compiler.
3742    : > sub/conftest.c
3743    for i in 1 2 3 4 5 6; do
3744      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3745      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3746      # Solaris 8's {/usr,}/bin/sh.
3747      touch sub/conftst$i.h
3748    done
3749    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750
3751    case $depmode in
3752    nosideeffect)
3753      # after this tag, mechanisms are not by side-effect, so they'll
3754      # only be used when explicitly requested
3755      if test "x$enable_dependency_tracking" = xyes; then
3756	continue
3757      else
3758	break
3759      fi
3760      ;;
3761    none) break ;;
3762    esac
3763    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3764    # mode.  It turns out that the SunPro C++ compiler does not properly
3765    # handle `-M -o', and we need to detect this.
3766    if depmode=$depmode \
3767       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3768       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3769       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3770         >/dev/null 2>conftest.err &&
3771       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3772       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3773       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3774       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3775      # icc doesn't choke on unknown options, it will just issue warnings
3776      # or remarks (even with -Werror).  So we grep stderr for any message
3777      # that says an option was ignored or not supported.
3778      # When given -MP, icc 7.0 and 7.1 complain thusly:
3779      #   icc: Command line warning: ignoring option '-M'; no argument required
3780      # The diagnosis changed in icc 8.0:
3781      #   icc: Command line remark: option '-MP' not supported
3782      if (grep 'ignoring option' conftest.err ||
3783          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3784        am_cv_CC_dependencies_compiler_type=$depmode
3785        break
3786      fi
3787    fi
3788  done
3789
3790  cd ..
3791  rm -rf conftest.dir
3792else
3793  am_cv_CC_dependencies_compiler_type=none
3794fi
3795
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3798$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3799CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800
3801 if
3802  test "x$enable_dependency_tracking" != xno \
3803  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3804  am__fastdepCC_TRUE=
3805  am__fastdepCC_FALSE='#'
3806else
3807  am__fastdepCC_TRUE='#'
3808  am__fastdepCC_FALSE=
3809fi
3810
3811
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3819$as_echo_n "checking how to run the C preprocessor... " >&6; }
3820# On Suns, sometimes $CPP names a directory.
3821if test -n "$CPP" && test -d "$CPP"; then
3822  CPP=
3823fi
3824if test -z "$CPP"; then
3825  if test "${ac_cv_prog_CPP+set}" = set; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828      # Double quotes because CPP needs to be expanded
3829    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830    do
3831      ac_preproc_ok=false
3832for ac_c_preproc_warn_flag in '' yes
3833do
3834  # Use a header file that comes with gcc, so configuring glibc
3835  # with a fresh cross-compiler works.
3836  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837  # <limits.h> exists even on freestanding compilers.
3838  # On the NeXT, cc -E runs the code through the compiler's parser,
3839  # not just through cpp. "Syntax error" is here to catch this case.
3840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h.  */
3842#ifdef __STDC__
3843# include <limits.h>
3844#else
3845# include <assert.h>
3846#endif
3847		     Syntax error
3848_ACEOF
3849if ac_fn_c_try_cpp "$LINENO"; then :
3850
3851else
3852  # Broken: fails on valid input.
3853continue
3854fi
3855rm -f conftest.err conftest.$ac_ext
3856
3857  # OK, works on sane cases.  Now check whether nonexistent headers
3858  # can be detected and how.
3859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#include <ac_nonexistent.h>
3862_ACEOF
3863if ac_fn_c_try_cpp "$LINENO"; then :
3864  # Broken: success on invalid input.
3865continue
3866else
3867  # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
3871rm -f conftest.err conftest.$ac_ext
3872
3873done
3874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875rm -f conftest.err conftest.$ac_ext
3876if $ac_preproc_ok; then :
3877  break
3878fi
3879
3880    done
3881    ac_cv_prog_CPP=$CPP
3882
3883fi
3884  CPP=$ac_cv_prog_CPP
3885else
3886  ac_cv_prog_CPP=$CPP
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3889$as_echo "$CPP" >&6; }
3890ac_preproc_ok=false
3891for ac_c_preproc_warn_flag in '' yes
3892do
3893  # Use a header file that comes with gcc, so configuring glibc
3894  # with a fresh cross-compiler works.
3895  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896  # <limits.h> exists even on freestanding compilers.
3897  # On the NeXT, cc -E runs the code through the compiler's parser,
3898  # not just through cpp. "Syntax error" is here to catch this case.
3899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901#ifdef __STDC__
3902# include <limits.h>
3903#else
3904# include <assert.h>
3905#endif
3906		     Syntax error
3907_ACEOF
3908if ac_fn_c_try_cpp "$LINENO"; then :
3909
3910else
3911  # Broken: fails on valid input.
3912continue
3913fi
3914rm -f conftest.err conftest.$ac_ext
3915
3916  # OK, works on sane cases.  Now check whether nonexistent headers
3917  # can be detected and how.
3918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h.  */
3920#include <ac_nonexistent.h>
3921_ACEOF
3922if ac_fn_c_try_cpp "$LINENO"; then :
3923  # Broken: success on invalid input.
3924continue
3925else
3926  # Passes both tests.
3927ac_preproc_ok=:
3928break
3929fi
3930rm -f conftest.err conftest.$ac_ext
3931
3932done
3933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3934rm -f conftest.err conftest.$ac_ext
3935if $ac_preproc_ok; then :
3936
3937else
3938  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940as_fn_error "C preprocessor \"$CPP\" fails sanity check
3941See \`config.log' for more details." "$LINENO" 5; }
3942fi
3943
3944ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953if test "${ac_cv_path_GREP+set}" = set; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  if test -z "$GREP"; then
3957  ac_path_GREP_found=false
3958  # Loop through the user's path and test for each of PROGNAME-LIST
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_prog in grep ggrep; do
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968# Check for GNU ac_path_GREP and select it if it is found.
3969  # Check for GNU $ac_path_GREP
3970case `"$ac_path_GREP" --version 2>&1` in
3971*GNU*)
3972  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973*)
3974  ac_count=0
3975  $as_echo_n 0123456789 >"conftest.in"
3976  while :
3977  do
3978    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979    mv "conftest.tmp" "conftest.in"
3980    cp "conftest.in" "conftest.nl"
3981    $as_echo 'GREP' >> "conftest.nl"
3982    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984    as_fn_arith $ac_count + 1 && ac_count=$as_val
3985    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986      # Best one so far, save it but keep looking for a better one
3987      ac_cv_path_GREP="$ac_path_GREP"
3988      ac_path_GREP_max=$ac_count
3989    fi
3990    # 10*(2^10) chars as input seems more than enough
3991    test $ac_count -gt 10 && break
3992  done
3993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
3996      $ac_path_GREP_found && break 3
3997    done
3998  done
3999  done
4000IFS=$as_save_IFS
4001  if test -z "$ac_cv_path_GREP"; then
4002    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003  fi
4004else
4005  ac_cv_path_GREP=$GREP
4006fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010$as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4012
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015$as_echo_n "checking for egrep... " >&6; }
4016if test "${ac_cv_path_EGREP+set}" = set; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020   then ac_cv_path_EGREP="$GREP -E"
4021   else
4022     if test -z "$EGREP"; then
4023  ac_path_EGREP_found=false
4024  # Loop through the user's path and test for each of PROGNAME-LIST
4025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_prog in egrep; do
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4033      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4034# Check for GNU ac_path_EGREP and select it if it is found.
4035  # Check for GNU $ac_path_EGREP
4036case `"$ac_path_EGREP" --version 2>&1` in
4037*GNU*)
4038  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039*)
4040  ac_count=0
4041  $as_echo_n 0123456789 >"conftest.in"
4042  while :
4043  do
4044    cat "conftest.in" "conftest.in" >"conftest.tmp"
4045    mv "conftest.tmp" "conftest.in"
4046    cp "conftest.in" "conftest.nl"
4047    $as_echo 'EGREP' >> "conftest.nl"
4048    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050    as_fn_arith $ac_count + 1 && ac_count=$as_val
4051    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052      # Best one so far, save it but keep looking for a better one
4053      ac_cv_path_EGREP="$ac_path_EGREP"
4054      ac_path_EGREP_max=$ac_count
4055    fi
4056    # 10*(2^10) chars as input seems more than enough
4057    test $ac_count -gt 10 && break
4058  done
4059  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060esac
4061
4062      $ac_path_EGREP_found && break 3
4063    done
4064  done
4065  done
4066IFS=$as_save_IFS
4067  if test -z "$ac_cv_path_EGREP"; then
4068    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069  fi
4070else
4071  ac_cv_path_EGREP=$EGREP
4072fi
4073
4074   fi
4075fi
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077$as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP="$ac_cv_path_EGREP"
4079
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4082$as_echo_n "checking for ANSI C header files... " >&6; }
4083if test "${ac_cv_header_stdc+set}" = set; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088#include <stdlib.h>
4089#include <stdarg.h>
4090#include <string.h>
4091#include <float.h>
4092
4093int
4094main ()
4095{
4096
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"; then :
4102  ac_cv_header_stdc=yes
4103else
4104  ac_cv_header_stdc=no
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107
4108if test $ac_cv_header_stdc = yes; then
4109  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112#include <string.h>
4113
4114_ACEOF
4115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116  $EGREP "memchr" >/dev/null 2>&1; then :
4117
4118else
4119  ac_cv_header_stdc=no
4120fi
4121rm -f conftest*
4122
4123fi
4124
4125if test $ac_cv_header_stdc = yes; then
4126  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h.  */
4129#include <stdlib.h>
4130
4131_ACEOF
4132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133  $EGREP "free" >/dev/null 2>&1; then :
4134
4135else
4136  ac_cv_header_stdc=no
4137fi
4138rm -f conftest*
4139
4140fi
4141
4142if test $ac_cv_header_stdc = yes; then
4143  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144  if test "$cross_compiling" = yes; then :
4145  :
4146else
4147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149#include <ctype.h>
4150#include <stdlib.h>
4151#if ((' ' & 0x0FF) == 0x020)
4152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154#else
4155# define ISLOWER(c) \
4156		   (('a' <= (c) && (c) <= 'i') \
4157		     || ('j' <= (c) && (c) <= 'r') \
4158		     || ('s' <= (c) && (c) <= 'z'))
4159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160#endif
4161
4162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163int
4164main ()
4165{
4166  int i;
4167  for (i = 0; i < 256; i++)
4168    if (XOR (islower (i), ISLOWER (i))
4169	|| toupper (i) != TOUPPER (i))
4170      return 2;
4171  return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_run "$LINENO"; then :
4175
4176else
4177  ac_cv_header_stdc=no
4178fi
4179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4180  conftest.$ac_objext conftest.beam conftest.$ac_ext
4181fi
4182
4183fi
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4186$as_echo "$ac_cv_header_stdc" >&6; }
4187if test $ac_cv_header_stdc = yes; then
4188
4189$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4190
4191fi
4192
4193# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195		  inttypes.h stdint.h unistd.h
4196do :
4197  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4199"
4200eval as_val=\$$as_ac_Header
4201   if test "x$as_val" = x""yes; then :
4202  cat >>confdefs.h <<_ACEOF
4203#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4204_ACEOF
4205
4206fi
4207
4208done
4209
4210
4211
4212  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4213if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4214  MINIX=yes
4215else
4216  MINIX=
4217fi
4218
4219
4220  if test "$MINIX" = yes; then
4221
4222$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4223
4224
4225$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4226
4227
4228$as_echo "#define _MINIX 1" >>confdefs.h
4229
4230  fi
4231
4232
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4234$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4235if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241#	  define __EXTENSIONS__ 1
4242	  $ac_includes_default
4243int
4244main ()
4245{
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"; then :
4252  ac_cv_safe_to_define___extensions__=yes
4253else
4254  ac_cv_safe_to_define___extensions__=no
4255fi
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4259$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4260  test $ac_cv_safe_to_define___extensions__ = yes &&
4261    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4262
4263  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4264
4265  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4266
4267  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4268
4269  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4270
4271
4272
4273
4274# Some status variables to give feedback at the end of a configure run
4275have_gpg_error=no
4276have_libgcrypt=no
4277have_libassuan=no
4278have_ksba=no
4279have_ldap=no
4280have_pth=no
4281
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4283$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4284    # Check whether --enable-maintainer-mode was given.
4285if test "${enable_maintainer_mode+set}" = set; then :
4286  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4287else
4288  USE_MAINTAINER_MODE=no
4289fi
4290
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4292$as_echo "$USE_MAINTAINER_MODE" >&6; }
4293   if test $USE_MAINTAINER_MODE = yes; then
4294  MAINTAINER_MODE_TRUE=
4295  MAINTAINER_MODE_FALSE='#'
4296else
4297  MAINTAINER_MODE_TRUE='#'
4298  MAINTAINER_MODE_FALSE=
4299fi
4300
4301  MAINT=$MAINTAINER_MODE_TRUE
4302
4303
4304
4305
4306
4307
4308cat >>confdefs.h <<_ACEOF
4309#define PACKAGE "$PACKAGE"
4310_ACEOF
4311
4312
4313cat >>confdefs.h <<_ACEOF
4314#define VERSION "$VERSION"
4315_ACEOF
4316
4317
4318cat >>confdefs.h <<_ACEOF
4319#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4320_ACEOF
4321
4322
4323cat >>confdefs.h <<_ACEOF
4324#define COPYRIGHT_YEAR_NAME "$COPYRIGHT_YEAR_NAME"
4325_ACEOF
4326
4327
4328cat >>confdefs.h <<_ACEOF
4329#define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
4330_ACEOF
4331
4332
4333cat >>confdefs.h <<_ACEOF
4334#define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
4335_ACEOF
4336
4337
4338# Checks for programs.
4339missing_dir=`cd $ac_aux_dir && pwd`
4340
4341ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
4342
4343
4344AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4345
4346
4347AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
4348
4349
4350AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4351
4352
4353MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4354
4355for ac_prog in gawk mawk nawk awk
4356do
4357  # Extract the first word of "$ac_prog", so it can be a program name with args.
4358set dummy $ac_prog; ac_word=$2
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360$as_echo_n "checking for $ac_word... " >&6; }
4361if test "${ac_cv_prog_AWK+set}" = set; then :
4362  $as_echo_n "(cached) " >&6
4363else
4364  if test -n "$AWK"; then
4365  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370  IFS=$as_save_IFS
4371  test -z "$as_dir" && as_dir=.
4372    for ac_exec_ext in '' $ac_executable_extensions; do
4373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374    ac_cv_prog_AWK="$ac_prog"
4375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376    break 2
4377  fi
4378done
4379  done
4380IFS=$as_save_IFS
4381
4382fi
4383fi
4384AWK=$ac_cv_prog_AWK
4385if test -n "$AWK"; then
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4387$as_echo "$AWK" >&6; }
4388else
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
4391fi
4392
4393
4394  test -n "$AWK" && break
4395done
4396
4397ac_ext=c
4398ac_cpp='$CPP $CPPFLAGS'
4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402if test -n "$ac_tool_prefix"; then
4403  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4404set dummy ${ac_tool_prefix}gcc; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if test "${ac_cv_prog_CC+set}" = set; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if test -n "$CC"; then
4411  ac_cv_prog_CC="$CC" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425  done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430CC=$ac_cv_prog_CC
4431if test -n "$CC"; then
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4433$as_echo "$CC" >&6; }
4434else
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439
4440fi
4441if test -z "$ac_cv_prog_CC"; then
4442  ac_ct_CC=$CC
4443  # Extract the first word of "gcc", so it can be a program name with args.
4444set dummy gcc; ac_word=$2
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446$as_echo_n "checking for $ac_word... " >&6; }
4447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  if test -n "$ac_ct_CC"; then
4451  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456  IFS=$as_save_IFS
4457  test -z "$as_dir" && as_dir=.
4458    for ac_exec_ext in '' $ac_executable_extensions; do
4459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460    ac_cv_prog_ac_ct_CC="gcc"
4461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462    break 2
4463  fi
4464done
4465  done
4466IFS=$as_save_IFS
4467
4468fi
4469fi
4470ac_ct_CC=$ac_cv_prog_ac_ct_CC
4471if test -n "$ac_ct_CC"; then
4472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4473$as_echo "$ac_ct_CC" >&6; }
4474else
4475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476$as_echo "no" >&6; }
4477fi
4478
4479  if test "x$ac_ct_CC" = x; then
4480    CC=""
4481  else
4482    case $cross_compiling:$ac_tool_warned in
4483yes:)
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486ac_tool_warned=yes ;;
4487esac
4488    CC=$ac_ct_CC
4489  fi
4490else
4491  CC="$ac_cv_prog_CC"
4492fi
4493
4494if test -z "$CC"; then
4495          if test -n "$ac_tool_prefix"; then
4496    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}cc; ac_word=$2
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499$as_echo_n "checking for $ac_word... " >&6; }
4500if test "${ac_cv_prog_CC+set}" = set; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  if test -n "$CC"; then
4504  ac_cv_prog_CC="$CC" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509  IFS=$as_save_IFS
4510  test -z "$as_dir" && as_dir=.
4511    for ac_exec_ext in '' $ac_executable_extensions; do
4512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513    ac_cv_prog_CC="${ac_tool_prefix}cc"
4514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518  done
4519IFS=$as_save_IFS
4520
4521fi
4522fi
4523CC=$ac_cv_prog_CC
4524if test -n "$CC"; then
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4526$as_echo "$CC" >&6; }
4527else
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530fi
4531
4532
4533  fi
4534fi
4535if test -z "$CC"; then
4536  # Extract the first word of "cc", so it can be a program name with args.
4537set dummy cc; ac_word=$2
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539$as_echo_n "checking for $ac_word... " >&6; }
4540if test "${ac_cv_prog_CC+set}" = set; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543  if test -n "$CC"; then
4544  ac_cv_prog_CC="$CC" # Let the user override the test.
4545else
4546  ac_prog_rejected=no
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552    for ac_exec_ext in '' $ac_executable_extensions; do
4553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4555       ac_prog_rejected=yes
4556       continue
4557     fi
4558    ac_cv_prog_CC="cc"
4559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563  done
4564IFS=$as_save_IFS
4565
4566if test $ac_prog_rejected = yes; then
4567  # We found a bogon in the path, so make sure we never use it.
4568  set dummy $ac_cv_prog_CC
4569  shift
4570  if test $# != 0; then
4571    # We chose a different compiler from the bogus one.
4572    # However, it has the same basename, so the bogon will be chosen
4573    # first if we set CC to just the basename; use the full file name.
4574    shift
4575    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4576  fi
4577fi
4578fi
4579fi
4580CC=$ac_cv_prog_CC
4581if test -n "$CC"; then
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4583$as_echo "$CC" >&6; }
4584else
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589
4590fi
4591if test -z "$CC"; then
4592  if test -n "$ac_tool_prefix"; then
4593  for ac_prog in cl.exe
4594  do
4595    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
4599if test "${ac_cv_prog_CC+set}" = set; then :
4600  $as_echo_n "(cached) " >&6
4601else
4602  if test -n "$CC"; then
4603  ac_cv_prog_CC="$CC" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608  IFS=$as_save_IFS
4609  test -z "$as_dir" && as_dir=.
4610    for ac_exec_ext in '' $ac_executable_extensions; do
4611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617  done
4618IFS=$as_save_IFS
4619
4620fi
4621fi
4622CC=$ac_cv_prog_CC
4623if test -n "$CC"; then
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4625$as_echo "$CC" >&6; }
4626else
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629fi
4630
4631
4632    test -n "$CC" && break
4633  done
4634fi
4635if test -z "$CC"; then
4636  ac_ct_CC=$CC
4637  for ac_prog in cl.exe
4638do
4639  # Extract the first word of "$ac_prog", so it can be a program name with args.
4640set dummy $ac_prog; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  if test -n "$ac_ct_CC"; then
4647  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652  IFS=$as_save_IFS
4653  test -z "$as_dir" && as_dir=.
4654    for ac_exec_ext in '' $ac_executable_extensions; do
4655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656    ac_cv_prog_ac_ct_CC="$ac_prog"
4657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658    break 2
4659  fi
4660done
4661  done
4662IFS=$as_save_IFS
4663
4664fi
4665fi
4666ac_ct_CC=$ac_cv_prog_ac_ct_CC
4667if test -n "$ac_ct_CC"; then
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4669$as_echo "$ac_ct_CC" >&6; }
4670else
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672$as_echo "no" >&6; }
4673fi
4674
4675
4676  test -n "$ac_ct_CC" && break
4677done
4678
4679  if test "x$ac_ct_CC" = x; then
4680    CC=""
4681  else
4682    case $cross_compiling:$ac_tool_warned in
4683yes:)
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686ac_tool_warned=yes ;;
4687esac
4688    CC=$ac_ct_CC
4689  fi
4690fi
4691
4692fi
4693
4694
4695test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697as_fn_error "no acceptable C compiler found in \$PATH
4698See \`config.log' for more details." "$LINENO" 5; }
4699
4700# Provide some information about the compiler.
4701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4702set X $ac_compile
4703ac_compiler=$2
4704for ac_option in --version -v -V -qversion; do
4705  { { ac_try="$ac_compiler $ac_option >&5"
4706case "(($ac_try" in
4707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708  *) ac_try_echo=$ac_try;;
4709esac
4710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711$as_echo "$ac_try_echo"; } >&5
4712  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4713  ac_status=$?
4714  if test -s conftest.err; then
4715    sed '10a\
4716... rest of stderr output deleted ...
4717         10q' conftest.err >conftest.er1
4718    cat conftest.er1 >&5
4719    rm -f conftest.er1 conftest.err
4720  fi
4721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722  test $ac_status = 0; }
4723done
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4726$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4727if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731/* end confdefs.h.  */
4732
4733int
4734main ()
4735{
4736#ifndef __GNUC__
4737       choke me
4738#endif
4739
4740  ;
4741  return 0;
4742}
4743_ACEOF
4744if ac_fn_c_try_compile "$LINENO"; then :
4745  ac_compiler_gnu=yes
4746else
4747  ac_compiler_gnu=no
4748fi
4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750ac_cv_c_compiler_gnu=$ac_compiler_gnu
4751
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4754$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4755if test $ac_compiler_gnu = yes; then
4756  GCC=yes
4757else
4758  GCC=
4759fi
4760ac_test_CFLAGS=${CFLAGS+set}
4761ac_save_CFLAGS=$CFLAGS
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4763$as_echo_n "checking whether $CC accepts -g... " >&6; }
4764if test "${ac_cv_prog_cc_g+set}" = set; then :
4765  $as_echo_n "(cached) " >&6
4766else
4767  ac_save_c_werror_flag=$ac_c_werror_flag
4768   ac_c_werror_flag=yes
4769   ac_cv_prog_cc_g=no
4770   CFLAGS="-g"
4771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h.  */
4773
4774int
4775main ()
4776{
4777
4778  ;
4779  return 0;
4780}
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783  ac_cv_prog_cc_g=yes
4784else
4785  CFLAGS=""
4786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h.  */
4788
4789int
4790main ()
4791{
4792
4793  ;
4794  return 0;
4795}
4796_ACEOF
4797if ac_fn_c_try_compile "$LINENO"; then :
4798
4799else
4800  ac_c_werror_flag=$ac_save_c_werror_flag
4801	 CFLAGS="-g"
4802	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h.  */
4804
4805int
4806main ()
4807{
4808
4809  ;
4810  return 0;
4811}
4812_ACEOF
4813if ac_fn_c_try_compile "$LINENO"; then :
4814  ac_cv_prog_cc_g=yes
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819fi
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821   ac_c_werror_flag=$ac_save_c_werror_flag
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4824$as_echo "$ac_cv_prog_cc_g" >&6; }
4825if test "$ac_test_CFLAGS" = set; then
4826  CFLAGS=$ac_save_CFLAGS
4827elif test $ac_cv_prog_cc_g = yes; then
4828  if test "$GCC" = yes; then
4829    CFLAGS="-g -O2"
4830  else
4831    CFLAGS="-g"
4832  fi
4833else
4834  if test "$GCC" = yes; then
4835    CFLAGS="-O2"
4836  else
4837    CFLAGS=
4838  fi
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4841$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4842if test "${ac_cv_prog_cc_c89+set}" = set; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  ac_cv_prog_cc_c89=no
4846ac_save_CC=$CC
4847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848/* end confdefs.h.  */
4849#include <stdarg.h>
4850#include <stdio.h>
4851#include <sys/types.h>
4852#include <sys/stat.h>
4853/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4854struct buf { int x; };
4855FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856static char *e (p, i)
4857     char **p;
4858     int i;
4859{
4860  return p[i];
4861}
4862static char *f (char * (*g) (char **, int), char **p, ...)
4863{
4864  char *s;
4865  va_list v;
4866  va_start (v,p);
4867  s = g (p, va_arg (v,int));
4868  va_end (v);
4869  return s;
4870}
4871
4872/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4873   function prototypes and stuff, but not '\xHH' hex character constants.
4874   These don't provoke an error unfortunately, instead are silently treated
4875   as 'x'.  The following induces an error, until -std is added to get
4876   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4877   array size at least.  It's necessary to write '\x00'==0 to get something
4878   that's true only with -std.  */
4879int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
4881/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4882   inside strings and character constants.  */
4883#define FOO(x) 'x'
4884int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4885
4886int test (int i, double x);
4887struct s1 {int (*f) (int a);};
4888struct s2 {int (*f) (double a);};
4889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890int argc;
4891char **argv;
4892int
4893main ()
4894{
4895return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4901	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902do
4903  CC="$ac_save_CC $ac_arg"
4904  if ac_fn_c_try_compile "$LINENO"; then :
4905  ac_cv_prog_cc_c89=$ac_arg
4906fi
4907rm -f core conftest.err conftest.$ac_objext
4908  test "x$ac_cv_prog_cc_c89" != "xno" && break
4909done
4910rm -f conftest.$ac_ext
4911CC=$ac_save_CC
4912
4913fi
4914# AC_CACHE_VAL
4915case "x$ac_cv_prog_cc_c89" in
4916  x)
4917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4918$as_echo "none needed" >&6; } ;;
4919  xno)
4920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4921$as_echo "unsupported" >&6; } ;;
4922  *)
4923    CC="$CC $ac_cv_prog_cc_c89"
4924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4925$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4926esac
4927if test "x$ac_cv_prog_cc_c89" != xno; then :
4928
4929fi
4930
4931ac_ext=c
4932ac_cpp='$CPP $CPPFLAGS'
4933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936
4937depcc="$CC"   am_compiler_list=
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4940$as_echo_n "checking dependency style of $depcc... " >&6; }
4941if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4945  # We make a subdir and do the tests there.  Otherwise we can end up
4946  # making bogus files that we don't know about and never remove.  For
4947  # instance it was reported that on HP-UX the gcc test will end up
4948  # making a dummy file named `D' -- because `-MD' means `put the output
4949  # in D'.
4950  mkdir conftest.dir
4951  # Copy depcomp to subdir because otherwise we won't find it if we're
4952  # using a relative directory.
4953  cp "$am_depcomp" conftest.dir
4954  cd conftest.dir
4955  # We will build objects and dependencies in a subdirectory because
4956  # it helps to detect inapplicable dependency modes.  For instance
4957  # both Tru64's cc and ICC support -MD to output dependencies as a
4958  # side effect of compilation, but ICC will put the dependencies in
4959  # the current directory while Tru64 will put them in the object
4960  # directory.
4961  mkdir sub
4962
4963  am_cv_CC_dependencies_compiler_type=none
4964  if test "$am_compiler_list" = ""; then
4965     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966  fi
4967  for depmode in $am_compiler_list; do
4968    # Setup a source with many dependencies, because some compilers
4969    # like to wrap large dependency lists on column 80 (with \), and
4970    # we should not choose a depcomp mode which is confused by this.
4971    #
4972    # We need to recreate these files for each test, as the compiler may
4973    # overwrite some of them when testing with obscure command lines.
4974    # This happens at least with the AIX C compiler.
4975    : > sub/conftest.c
4976    for i in 1 2 3 4 5 6; do
4977      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4978      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4979      # Solaris 8's {/usr,}/bin/sh.
4980      touch sub/conftst$i.h
4981    done
4982    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4983
4984    case $depmode in
4985    nosideeffect)
4986      # after this tag, mechanisms are not by side-effect, so they'll
4987      # only be used when explicitly requested
4988      if test "x$enable_dependency_tracking" = xyes; then
4989	continue
4990      else
4991	break
4992      fi
4993      ;;
4994    none) break ;;
4995    esac
4996    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4997    # mode.  It turns out that the SunPro C++ compiler does not properly
4998    # handle `-M -o', and we need to detect this.
4999    if depmode=$depmode \
5000       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5001       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5003         >/dev/null 2>conftest.err &&
5004       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5007       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008      # icc doesn't choke on unknown options, it will just issue warnings
5009      # or remarks (even with -Werror).  So we grep stderr for any message
5010      # that says an option was ignored or not supported.
5011      # When given -MP, icc 7.0 and 7.1 complain thusly:
5012      #   icc: Command line warning: ignoring option '-M'; no argument required
5013      # The diagnosis changed in icc 8.0:
5014      #   icc: Command line remark: option '-MP' not supported
5015      if (grep 'ignoring option' conftest.err ||
5016          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017        am_cv_CC_dependencies_compiler_type=$depmode
5018        break
5019      fi
5020    fi
5021  done
5022
5023  cd ..
5024  rm -rf conftest.dir
5025else
5026  am_cv_CC_dependencies_compiler_type=none
5027fi
5028
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5033
5034 if
5035  test "x$enable_dependency_tracking" != xno \
5036  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037  am__fastdepCC_TRUE=
5038  am__fastdepCC_FALSE='#'
5039else
5040  am__fastdepCC_TRUE='#'
5041  am__fastdepCC_FALSE=
5042fi
5043
5044
5045ac_ext=c
5046ac_cpp='$CPP $CPPFLAGS'
5047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5051$as_echo_n "checking how to run the C preprocessor... " >&6; }
5052# On Suns, sometimes $CPP names a directory.
5053if test -n "$CPP" && test -d "$CPP"; then
5054  CPP=
5055fi
5056if test -z "$CPP"; then
5057  if test "${ac_cv_prog_CPP+set}" = set; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060      # Double quotes because CPP needs to be expanded
5061    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5062    do
5063      ac_preproc_ok=false
5064for ac_c_preproc_warn_flag in '' yes
5065do
5066  # Use a header file that comes with gcc, so configuring glibc
5067  # with a fresh cross-compiler works.
5068  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069  # <limits.h> exists even on freestanding compilers.
5070  # On the NeXT, cc -E runs the code through the compiler's parser,
5071  # not just through cpp. "Syntax error" is here to catch this case.
5072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073/* end confdefs.h.  */
5074#ifdef __STDC__
5075# include <limits.h>
5076#else
5077# include <assert.h>
5078#endif
5079		     Syntax error
5080_ACEOF
5081if ac_fn_c_try_cpp "$LINENO"; then :
5082
5083else
5084  # Broken: fails on valid input.
5085continue
5086fi
5087rm -f conftest.err conftest.$ac_ext
5088
5089  # OK, works on sane cases.  Now check whether nonexistent headers
5090  # can be detected and how.
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093#include <ac_nonexistent.h>
5094_ACEOF
5095if ac_fn_c_try_cpp "$LINENO"; then :
5096  # Broken: success on invalid input.
5097continue
5098else
5099  # Passes both tests.
5100ac_preproc_ok=:
5101break
5102fi
5103rm -f conftest.err conftest.$ac_ext
5104
5105done
5106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5107rm -f conftest.err conftest.$ac_ext
5108if $ac_preproc_ok; then :
5109  break
5110fi
5111
5112    done
5113    ac_cv_prog_CPP=$CPP
5114
5115fi
5116  CPP=$ac_cv_prog_CPP
5117else
5118  ac_cv_prog_CPP=$CPP
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5121$as_echo "$CPP" >&6; }
5122ac_preproc_ok=false
5123for ac_c_preproc_warn_flag in '' yes
5124do
5125  # Use a header file that comes with gcc, so configuring glibc
5126  # with a fresh cross-compiler works.
5127  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5128  # <limits.h> exists even on freestanding compilers.
5129  # On the NeXT, cc -E runs the code through the compiler's parser,
5130  # not just through cpp. "Syntax error" is here to catch this case.
5131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133#ifdef __STDC__
5134# include <limits.h>
5135#else
5136# include <assert.h>
5137#endif
5138		     Syntax error
5139_ACEOF
5140if ac_fn_c_try_cpp "$LINENO"; then :
5141
5142else
5143  # Broken: fails on valid input.
5144continue
5145fi
5146rm -f conftest.err conftest.$ac_ext
5147
5148  # OK, works on sane cases.  Now check whether nonexistent headers
5149  # can be detected and how.
5150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h.  */
5152#include <ac_nonexistent.h>
5153_ACEOF
5154if ac_fn_c_try_cpp "$LINENO"; then :
5155  # Broken: success on invalid input.
5156continue
5157else
5158  # Passes both tests.
5159ac_preproc_ok=:
5160break
5161fi
5162rm -f conftest.err conftest.$ac_ext
5163
5164done
5165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166rm -f conftest.err conftest.$ac_ext
5167if $ac_preproc_ok; then :
5168
5169else
5170  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5172as_fn_error "C preprocessor \"$CPP\" fails sanity check
5173See \`config.log' for more details." "$LINENO" 5; }
5174fi
5175
5176ac_ext=c
5177ac_cpp='$CPP $CPPFLAGS'
5178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181
5182if test "x$CC" != xcc; then
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5184$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5185else
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5187$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5188fi
5189set dummy $CC; ac_cc=`$as_echo "$2" |
5190		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5191if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196
5197int
5198main ()
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205# Make sure it works both with $CC and with simple cc.
5206# We do the test twice because some compilers refuse to overwrite an
5207# existing .o file with -o, though they will create one.
5208ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5209rm -f conftest2.*
5210if { { case "(($ac_try" in
5211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212  *) ac_try_echo=$ac_try;;
5213esac
5214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215$as_echo "$ac_try_echo"; } >&5
5216  (eval "$ac_try") 2>&5
5217  ac_status=$?
5218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219  test $ac_status = 0; } &&
5220   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222  *) ac_try_echo=$ac_try;;
5223esac
5224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225$as_echo "$ac_try_echo"; } >&5
5226  (eval "$ac_try") 2>&5
5227  ac_status=$?
5228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229  test $ac_status = 0; };
5230then
5231  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5232  if test "x$CC" != xcc; then
5233    # Test first that cc exists at all.
5234    if { ac_try='cc -c conftest.$ac_ext >&5'
5235  { { case "(($ac_try" in
5236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237  *) ac_try_echo=$ac_try;;
5238esac
5239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5240$as_echo "$ac_try_echo"; } >&5
5241  (eval "$ac_try") 2>&5
5242  ac_status=$?
5243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244  test $ac_status = 0; }; }; then
5245      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5246      rm -f conftest2.*
5247      if { { case "(($ac_try" in
5248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249  *) ac_try_echo=$ac_try;;
5250esac
5251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252$as_echo "$ac_try_echo"; } >&5
5253  (eval "$ac_try") 2>&5
5254  ac_status=$?
5255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256  test $ac_status = 0; } &&
5257	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259  *) ac_try_echo=$ac_try;;
5260esac
5261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262$as_echo "$ac_try_echo"; } >&5
5263  (eval "$ac_try") 2>&5
5264  ac_status=$?
5265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266  test $ac_status = 0; };
5267      then
5268	# cc works too.
5269	:
5270      else
5271	# cc exists but doesn't like -o.
5272	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5273      fi
5274    fi
5275  fi
5276else
5277  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5278fi
5279rm -f core conftest*
5280
5281fi
5282if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284$as_echo "yes" >&6; }
5285else
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288
5289$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5290
5291fi
5292
5293# FIXME: we rely on the cache variable name because
5294# there is no other way.
5295set dummy $CC
5296am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5297eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5298if test "$am_t" != yes; then
5299   # Losing compiler, so override with the script.
5300   # FIXME: It is wrong to rewrite CC.
5301   # But if we don't then we get into trouble of one sort or another.
5302   # A longer-term fix would be to have automake use am__CC in this case,
5303   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5304   CC="$am_aux_dir/compile $CC"
5305fi
5306
5307
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5310$as_echo_n "checking whether ln -s works... " >&6; }
5311LN_S=$as_ln_s
5312if test "$LN_S" = "ln -s"; then
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5314$as_echo "yes" >&6; }
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5317$as_echo "no, using $LN_S" >&6; }
5318fi
5319
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5321$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5322set x ${MAKE-make}
5323ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5324if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  cat >conftest.make <<\_ACEOF
5328SHELL = /bin/sh
5329all:
5330	@echo '@@@%%%=$(MAKE)=@@@%%%'
5331_ACEOF
5332# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5333case `${MAKE-make} -f conftest.make 2>/dev/null` in
5334  *@@@%%%=?*=@@@%%%*)
5335    eval ac_cv_prog_make_${ac_make}_set=yes;;
5336  *)
5337    eval ac_cv_prog_make_${ac_make}_set=no;;
5338esac
5339rm -f conftest.make
5340fi
5341if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343$as_echo "yes" >&6; }
5344  SET_MAKE=
5345else
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348  SET_MAKE="MAKE=${MAKE-make}"
5349fi
5350
5351if test -n "$ac_tool_prefix"; then
5352  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5353set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355$as_echo_n "checking for $ac_word... " >&6; }
5356if test "${ac_cv_prog_RANLIB+set}" = set; then :
5357  $as_echo_n "(cached) " >&6
5358else
5359  if test -n "$RANLIB"; then
5360  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365  IFS=$as_save_IFS
5366  test -z "$as_dir" && as_dir=.
5367    for ac_exec_ext in '' $ac_executable_extensions; do
5368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371    break 2
5372  fi
5373done
5374  done
5375IFS=$as_save_IFS
5376
5377fi
5378fi
5379RANLIB=$ac_cv_prog_RANLIB
5380if test -n "$RANLIB"; then
5381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5382$as_echo "$RANLIB" >&6; }
5383else
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385$as_echo "no" >&6; }
5386fi
5387
5388
5389fi
5390if test -z "$ac_cv_prog_RANLIB"; then
5391  ac_ct_RANLIB=$RANLIB
5392  # Extract the first word of "ranlib", so it can be a program name with args.
5393set dummy ranlib; ac_word=$2
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
5396if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  if test -n "$ac_ct_RANLIB"; then
5400  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407    for ac_exec_ext in '' $ac_executable_extensions; do
5408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409    ac_cv_prog_ac_ct_RANLIB="ranlib"
5410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411    break 2
5412  fi
5413done
5414  done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5420if test -n "$ac_ct_RANLIB"; then
5421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5422$as_echo "$ac_ct_RANLIB" >&6; }
5423else
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428  if test "x$ac_ct_RANLIB" = x; then
5429    RANLIB=":"
5430  else
5431    case $cross_compiling:$ac_tool_warned in
5432yes:)
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437    RANLIB=$ac_ct_RANLIB
5438  fi
5439else
5440  RANLIB="$ac_cv_prog_RANLIB"
5441fi
5442
5443#AC_ARG_PROGRAM
5444# Check whether --enable-largefile was given.
5445if test "${enable_largefile+set}" = set; then :
5446  enableval=$enable_largefile;
5447fi
5448
5449if test "$enable_largefile" != no; then
5450
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5452$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5453if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  ac_cv_sys_largefile_CC=no
5457     if test "$GCC" != yes; then
5458       ac_save_CC=$CC
5459       while :; do
5460	 # IRIX 6.2 and later do not support large files by default,
5461	 # so use the C compiler's -n32 option if that helps.
5462	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464#include <sys/types.h>
5465 /* Check that off_t can represent 2**63 - 1 correctly.
5466    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5467    since some C++ compilers masquerading as C compilers
5468    incorrectly reject 9223372036854775807.  */
5469#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5470  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5471		       && LARGE_OFF_T % 2147483647 == 1)
5472		      ? 1 : -1];
5473int
5474main ()
5475{
5476
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481	 if ac_fn_c_try_compile "$LINENO"; then :
5482  break
5483fi
5484rm -f core conftest.err conftest.$ac_objext
5485	 CC="$CC -n32"
5486	 if ac_fn_c_try_compile "$LINENO"; then :
5487  ac_cv_sys_largefile_CC=' -n32'; break
5488fi
5489rm -f core conftest.err conftest.$ac_objext
5490	 break
5491       done
5492       CC=$ac_save_CC
5493       rm -f conftest.$ac_ext
5494    fi
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5497$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5498  if test "$ac_cv_sys_largefile_CC" != no; then
5499    CC=$CC$ac_cv_sys_largefile_CC
5500  fi
5501
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5503$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5504if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507  while :; do
5508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510#include <sys/types.h>
5511 /* Check that off_t can represent 2**63 - 1 correctly.
5512    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5513    since some C++ compilers masquerading as C compilers
5514    incorrectly reject 9223372036854775807.  */
5515#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5516  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5517		       && LARGE_OFF_T % 2147483647 == 1)
5518		      ? 1 : -1];
5519int
5520main ()
5521{
5522
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  ac_cv_sys_file_offset_bits=no; break
5529fi
5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533#define _FILE_OFFSET_BITS 64
5534#include <sys/types.h>
5535 /* Check that off_t can represent 2**63 - 1 correctly.
5536    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5537    since some C++ compilers masquerading as C compilers
5538    incorrectly reject 9223372036854775807.  */
5539#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5540  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5541		       && LARGE_OFF_T % 2147483647 == 1)
5542		      ? 1 : -1];
5543int
5544main ()
5545{
5546
5547  ;
5548  return 0;
5549}
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"; then :
5552  ac_cv_sys_file_offset_bits=64; break
5553fi
5554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555  ac_cv_sys_file_offset_bits=unknown
5556  break
5557done
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5560$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5561case $ac_cv_sys_file_offset_bits in #(
5562  no | unknown) ;;
5563  *)
5564cat >>confdefs.h <<_ACEOF
5565#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5566_ACEOF
5567;;
5568esac
5569rm -rf conftest*
5570  if test $ac_cv_sys_file_offset_bits = unknown; then
5571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5572$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5573if test "${ac_cv_sys_large_files+set}" = set; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  while :; do
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579#include <sys/types.h>
5580 /* Check that off_t can represent 2**63 - 1 correctly.
5581    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5582    since some C++ compilers masquerading as C compilers
5583    incorrectly reject 9223372036854775807.  */
5584#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5585  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5586		       && LARGE_OFF_T % 2147483647 == 1)
5587		      ? 1 : -1];
5588int
5589main ()
5590{
5591
5592  ;
5593  return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_compile "$LINENO"; then :
5597  ac_cv_sys_large_files=no; break
5598fi
5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602#define _LARGE_FILES 1
5603#include <sys/types.h>
5604 /* Check that off_t can represent 2**63 - 1 correctly.
5605    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5606    since some C++ compilers masquerading as C compilers
5607    incorrectly reject 9223372036854775807.  */
5608#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5609  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5610		       && LARGE_OFF_T % 2147483647 == 1)
5611		      ? 1 : -1];
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621  ac_cv_sys_large_files=1; break
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624  ac_cv_sys_large_files=unknown
5625  break
5626done
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5629$as_echo "$ac_cv_sys_large_files" >&6; }
5630case $ac_cv_sys_large_files in #(
5631  no | unknown) ;;
5632  *)
5633cat >>confdefs.h <<_ACEOF
5634#define _LARGE_FILES $ac_cv_sys_large_files
5635_ACEOF
5636;;
5637esac
5638rm -rf conftest*
5639  fi
5640fi
5641
5642
5643# Check whether --enable-gcc-warnings was given.
5644if test "${enable_gcc_warnings+set}" = set; then :
5645  enableval=$enable_gcc_warnings; more_gcc_warnings="$enableval"
5646else
5647  more_gcc_warnings="no"
5648fi
5649
5650
5651if test "$GCC" = yes; then
5652    if test "$USE_MAINTAINER_MODE" = "yes" ||
5653       test "$more_gcc_warnings" = "yes"; then
5654        CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
5655        CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
5656        if test "$more_gcc_warnings" = "yes"; then
5657            CFLAGS="$CFLAGS -W -Wpointer-arith -Wbad-function-cast"
5658            CFLAGS="$CFLAGS -Wwrite-strings"
5659            CFLAGS="$CFLAGS -Wno-sign-compare -Wno-missing-field-initializers"
5660        fi
5661    else
5662        CFLAGS="$CFLAGS -Wall"
5663    fi
5664
5665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
5666$as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
5667    _gcc_cflags_save=$CFLAGS
5668    CFLAGS="-Wno-pointer-sign"
5669    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671
5672int
5673main ()
5674{
5675
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680if ac_fn_c_try_compile "$LINENO"; then :
5681  _gcc_psign=yes
5682else
5683  _gcc_psign=no
5684fi
5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
5687$as_echo "$_gcc_psign" >&6; }
5688    CFLAGS=$_gcc_cflags_save;
5689    if test x"$_gcc_psign" = xyes ; then
5690       CFLAGS="$CFLAGS -Wno-pointer-sign"
5691    fi
5692fi
5693
5694# We need to compile and run a program on the build machine.  A
5695# comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
5696# the AC archive is broken for autoconf 2.57.  Given that tehre is no
5697# newer version of that macro, we assume that it is also broken for
5698# autoconf 2.61 and thus we use a simple but usually sufficient
5699# approach.
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
5701$as_echo_n "checking for cc for build... " >&6; }
5702if test "$cross_compiling" = "yes"; then
5703  CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
5704else
5705  CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5708$as_echo "$CC_FOR_BUILD" >&6; }
5709
5710
5711
5712# Tweaks for certain OSes.
5713mmap_needed=yes
5714have_w32_system=no
5715PRINTABLE_OS_NAME=
5716case "${host}" in
5717    *-*-mingw32*)
5718        PRINTABLE_OS_NAME="MingW32"
5719	mmap_needed=no
5720        have_w32_system=yes
5721        ;;
5722    *-*-cygwin*)
5723        PRINTABLE_OS_NAME="Cygwin"
5724        ;;
5725    i?86-emx-os2 | i?86-*-os2*emx )
5726        PRINTABLE_OS_NAME="OS/2"
5727        ;;
5728    i?86-*-msdosdjgpp*)
5729        PRINTABLE_OS_NAME="MSDOS/DJGPP"
5730        try_dynload=no
5731        ;;
5732    *-*-freebsd*|*-*-dragonfly*)
5733       # Need to include /usr/local for FreeBSD
5734       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5735       LDFLAGS="$LDFLAGS -L/usr/local/lib"
5736       ;;
5737    *-linux*)
5738        PRINTABLE_OS_NAME="GNU/Linux"
5739        ;;
5740esac
5741if test -z "$PRINTABLE_OS_NAME"; then
5742  PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
5743fi
5744
5745
5746cat >>confdefs.h <<_ACEOF
5747#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
5748_ACEOF
5749
5750
5751if test "$have_w32_system" = yes; then
5752
5753$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
5754
5755
5756$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
5757
5758fi
5759 if test "$have_w32_system" = yes; then
5760  HAVE_W32_SYSTEM_TRUE=
5761  HAVE_W32_SYSTEM_FALSE='#'
5762else
5763  HAVE_W32_SYSTEM_TRUE='#'
5764  HAVE_W32_SYSTEM_FALSE=
5765fi
5766
5767
5768
5769
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5771$as_echo_n "checking whether NLS is requested... " >&6; }
5772    # Check whether --enable-nls was given.
5773if test "${enable_nls+set}" = set; then :
5774  enableval=$enable_nls; USE_NLS=$enableval
5775else
5776  USE_NLS=yes
5777fi
5778
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5780$as_echo "$USE_NLS" >&6; }
5781
5782
5783
5784
5785
5786
5787# Prepare PATH_SEPARATOR.
5788# The user is always right.
5789if test "${PATH_SEPARATOR+set}" != set; then
5790  echo "#! /bin/sh" >conf$$.sh
5791  echo  "exit 0"   >>conf$$.sh
5792  chmod +x conf$$.sh
5793  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5794    PATH_SEPARATOR=';'
5795  else
5796    PATH_SEPARATOR=:
5797  fi
5798  rm -f conf$$.sh
5799fi
5800
5801# Find out how to test for executable files. Don't use a zero-byte file,
5802# as systems may use methods other than mode bits to determine executability.
5803cat >conf$$.file <<_ASEOF
5804#! /bin/sh
5805exit 0
5806_ASEOF
5807chmod +x conf$$.file
5808if test -x conf$$.file >/dev/null 2>&1; then
5809  ac_executable_p="test -x"
5810else
5811  ac_executable_p="test -f"
5812fi
5813rm -f conf$$.file
5814
5815# Extract the first word of "msgfmt", so it can be a program name with args.
5816set dummy msgfmt; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if test "${ac_cv_path_MSGFMT+set}" = set; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  case "$MSGFMT" in
5823  [\\/]* | ?:[\\/]*)
5824    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5825    ;;
5826  *)
5827    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5828    for ac_dir in $PATH; do
5829      IFS="$ac_save_IFS"
5830      test -z "$ac_dir" && ac_dir=.
5831      for ac_exec_ext in '' $ac_executable_extensions; do
5832        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5833          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5834          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5835     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5836            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5837            break 2
5838          fi
5839        fi
5840      done
5841    done
5842    IFS="$ac_save_IFS"
5843  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5844    ;;
5845esac
5846fi
5847MSGFMT="$ac_cv_path_MSGFMT"
5848if test "$MSGFMT" != ":"; then
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5850$as_echo "$MSGFMT" >&6; }
5851else
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853$as_echo "no" >&6; }
5854fi
5855
5856  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5857set dummy gmsgfmt; ac_word=$2
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  case $GMSGFMT in
5864  [\\/]* | ?:[\\/]*)
5865  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5866  ;;
5867  *)
5868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873    for ac_exec_ext in '' $ac_executable_extensions; do
5874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880  done
5881IFS=$as_save_IFS
5882
5883  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5884  ;;
5885esac
5886fi
5887GMSGFMT=$ac_cv_path_GMSGFMT
5888if test -n "$GMSGFMT"; then
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5890$as_echo "$GMSGFMT" >&6; }
5891else
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897
5898    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5899    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5900    *) MSGFMT_015=$MSGFMT ;;
5901  esac
5902
5903  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5904    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5905    *) GMSGFMT_015=$GMSGFMT ;;
5906  esac
5907
5908
5909
5910# Prepare PATH_SEPARATOR.
5911# The user is always right.
5912if test "${PATH_SEPARATOR+set}" != set; then
5913  echo "#! /bin/sh" >conf$$.sh
5914  echo  "exit 0"   >>conf$$.sh
5915  chmod +x conf$$.sh
5916  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5917    PATH_SEPARATOR=';'
5918  else
5919    PATH_SEPARATOR=:
5920  fi
5921  rm -f conf$$.sh
5922fi
5923
5924# Find out how to test for executable files. Don't use a zero-byte file,
5925# as systems may use methods other than mode bits to determine executability.
5926cat >conf$$.file <<_ASEOF
5927#! /bin/sh
5928exit 0
5929_ASEOF
5930chmod +x conf$$.file
5931if test -x conf$$.file >/dev/null 2>&1; then
5932  ac_executable_p="test -x"
5933else
5934  ac_executable_p="test -f"
5935fi
5936rm -f conf$$.file
5937
5938# Extract the first word of "xgettext", so it can be a program name with args.
5939set dummy xgettext; ac_word=$2
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941$as_echo_n "checking for $ac_word... " >&6; }
5942if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5943  $as_echo_n "(cached) " >&6
5944else
5945  case "$XGETTEXT" in
5946  [\\/]* | ?:[\\/]*)
5947    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5948    ;;
5949  *)
5950    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5951    for ac_dir in $PATH; do
5952      IFS="$ac_save_IFS"
5953      test -z "$ac_dir" && ac_dir=.
5954      for ac_exec_ext in '' $ac_executable_extensions; do
5955        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5956          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5957          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5958     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5959            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5960            break 2
5961          fi
5962        fi
5963      done
5964    done
5965    IFS="$ac_save_IFS"
5966  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5967    ;;
5968esac
5969fi
5970XGETTEXT="$ac_cv_path_XGETTEXT"
5971if test "$XGETTEXT" != ":"; then
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5973$as_echo "$XGETTEXT" >&6; }
5974else
5975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979    rm -f messages.po
5980
5981    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5982    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5983    *) XGETTEXT_015=$XGETTEXT ;;
5984  esac
5985
5986
5987
5988# Prepare PATH_SEPARATOR.
5989# The user is always right.
5990if test "${PATH_SEPARATOR+set}" != set; then
5991  echo "#! /bin/sh" >conf$$.sh
5992  echo  "exit 0"   >>conf$$.sh
5993  chmod +x conf$$.sh
5994  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5995    PATH_SEPARATOR=';'
5996  else
5997    PATH_SEPARATOR=:
5998  fi
5999  rm -f conf$$.sh
6000fi
6001
6002# Find out how to test for executable files. Don't use a zero-byte file,
6003# as systems may use methods other than mode bits to determine executability.
6004cat >conf$$.file <<_ASEOF
6005#! /bin/sh
6006exit 0
6007_ASEOF
6008chmod +x conf$$.file
6009if test -x conf$$.file >/dev/null 2>&1; then
6010  ac_executable_p="test -x"
6011else
6012  ac_executable_p="test -f"
6013fi
6014rm -f conf$$.file
6015
6016# Extract the first word of "msgmerge", so it can be a program name with args.
6017set dummy msgmerge; ac_word=$2
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019$as_echo_n "checking for $ac_word... " >&6; }
6020if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  case "$MSGMERGE" in
6024  [\\/]* | ?:[\\/]*)
6025    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6026    ;;
6027  *)
6028    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6029    for ac_dir in $PATH; do
6030      IFS="$ac_save_IFS"
6031      test -z "$ac_dir" && ac_dir=.
6032      for ac_exec_ext in '' $ac_executable_extensions; do
6033        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6034          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6035          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6036            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6037            break 2
6038          fi
6039        fi
6040      done
6041    done
6042    IFS="$ac_save_IFS"
6043  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6044    ;;
6045esac
6046fi
6047MSGMERGE="$ac_cv_path_MSGMERGE"
6048if test "$MSGMERGE" != ":"; then
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6050$as_echo "$MSGMERGE" >&6; }
6051else
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056
6057        test -n "$localedir" || localedir='${datadir}/locale'
6058
6059
6060  ac_config_commands="$ac_config_commands po-directories"
6061
6062
6063
6064      if test "X$prefix" = "XNONE"; then
6065    acl_final_prefix="$ac_default_prefix"
6066  else
6067    acl_final_prefix="$prefix"
6068  fi
6069  if test "X$exec_prefix" = "XNONE"; then
6070    acl_final_exec_prefix='${prefix}'
6071  else
6072    acl_final_exec_prefix="$exec_prefix"
6073  fi
6074  acl_save_prefix="$prefix"
6075  prefix="$acl_final_prefix"
6076  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6077  prefix="$acl_save_prefix"
6078
6079
6080# Check whether --with-gnu-ld was given.
6081if test "${with_gnu_ld+set}" = set; then :
6082  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6083else
6084  with_gnu_ld=no
6085fi
6086
6087# Prepare PATH_SEPARATOR.
6088# The user is always right.
6089if test "${PATH_SEPARATOR+set}" != set; then
6090  echo "#! /bin/sh" >conf$$.sh
6091  echo  "exit 0"   >>conf$$.sh
6092  chmod +x conf$$.sh
6093  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6094    PATH_SEPARATOR=';'
6095  else
6096    PATH_SEPARATOR=:
6097  fi
6098  rm -f conf$$.sh
6099fi
6100ac_prog=ld
6101if test "$GCC" = yes; then
6102  # Check if gcc -print-prog-name=ld gives a path.
6103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6104$as_echo_n "checking for ld used by GCC... " >&6; }
6105  case $host in
6106  *-*-mingw*)
6107    # gcc leaves a trailing carriage return which upsets mingw
6108    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109  *)
6110    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6111  esac
6112  case $ac_prog in
6113    # Accept absolute paths.
6114    [\\/]* | [A-Za-z]:[\\/]*)
6115      re_direlt='/[^/][^/]*/\.\./'
6116      # Canonicalize the path of ld
6117      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6118      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6119	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120      done
6121      test -z "$LD" && LD="$ac_prog"
6122      ;;
6123  "")
6124    # If it fails, then pretend we aren't using GCC.
6125    ac_prog=ld
6126    ;;
6127  *)
6128    # If it is relative, then search for the first ld in PATH.
6129    with_gnu_ld=unknown
6130    ;;
6131  esac
6132elif test "$with_gnu_ld" = yes; then
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6134$as_echo_n "checking for GNU ld... " >&6; }
6135else
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6137$as_echo_n "checking for non-GNU ld... " >&6; }
6138fi
6139if test "${acl_cv_path_LD+set}" = set; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  if test -z "$LD"; then
6143  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6144  for ac_dir in $PATH; do
6145    test -z "$ac_dir" && ac_dir=.
6146    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6147      acl_cv_path_LD="$ac_dir/$ac_prog"
6148      # Check to see if the program is GNU ld.  I'd rather use --version,
6149      # but apparently some GNU ld's only accept -v.
6150      # Break only if it was the GNU/non-GNU ld that we prefer.
6151      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6152      *GNU* | *'with BFD'*)
6153	test "$with_gnu_ld" != no && break ;;
6154      *)
6155	test "$with_gnu_ld" != yes && break ;;
6156      esac
6157    fi
6158  done
6159  IFS="$ac_save_ifs"
6160else
6161  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6162fi
6163fi
6164
6165LD="$acl_cv_path_LD"
6166if test -n "$LD"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6168$as_echo "$LD" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6175$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6176if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180case `$LD -v 2>&1 </dev/null` in
6181*GNU* | *'with BFD'*)
6182  acl_cv_prog_gnu_ld=yes ;;
6183*)
6184  acl_cv_prog_gnu_ld=no ;;
6185esac
6186fi
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6188$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6189with_gnu_ld=$acl_cv_prog_gnu_ld
6190
6191
6192
6193
6194                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6195$as_echo_n "checking for shared library run path origin... " >&6; }
6196if test "${acl_cv_rpath+set}" = set; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199
6200    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6201    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6202    . ./conftest.sh
6203    rm -f ./conftest.sh
6204    acl_cv_rpath=done
6205
6206fi
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6208$as_echo "$acl_cv_rpath" >&6; }
6209  wl="$acl_cv_wl"
6210  libext="$acl_cv_libext"
6211  shlibext="$acl_cv_shlibext"
6212  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6213  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6214  hardcode_direct="$acl_cv_hardcode_direct"
6215  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6216    # Check whether --enable-rpath was given.
6217if test "${enable_rpath+set}" = set; then :
6218  enableval=$enable_rpath; :
6219else
6220  enable_rpath=yes
6221fi
6222
6223
6224
6225                  acl_libdirstem=lib
6226  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6227  if test -n "$searchpath"; then
6228    acl_save_IFS="${IFS= 	}"; IFS=":"
6229    for searchdir in $searchpath; do
6230      if test -d "$searchdir"; then
6231        case "$searchdir" in
6232          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6233          *) searchdir=`cd "$searchdir" && pwd`
6234             case "$searchdir" in
6235               */lib64 ) acl_libdirstem=lib64 ;;
6236             esac ;;
6237        esac
6238      fi
6239    done
6240    IFS="$acl_save_IFS"
6241  fi
6242
6243
6244
6245
6246
6247
6248
6249
6250    use_additional=yes
6251
6252  acl_save_prefix="$prefix"
6253  prefix="$acl_final_prefix"
6254  acl_save_exec_prefix="$exec_prefix"
6255  exec_prefix="$acl_final_exec_prefix"
6256
6257    eval additional_includedir=\"$includedir\"
6258    eval additional_libdir=\"$libdir\"
6259
6260  exec_prefix="$acl_save_exec_prefix"
6261  prefix="$acl_save_prefix"
6262
6263
6264# Check whether --with-libiconv-prefix was given.
6265if test "${with_libiconv_prefix+set}" = set; then :
6266  withval=$with_libiconv_prefix;
6267    if test "X$withval" = "Xno"; then
6268      use_additional=no
6269    else
6270      if test "X$withval" = "X"; then
6271
6272  acl_save_prefix="$prefix"
6273  prefix="$acl_final_prefix"
6274  acl_save_exec_prefix="$exec_prefix"
6275  exec_prefix="$acl_final_exec_prefix"
6276
6277          eval additional_includedir=\"$includedir\"
6278          eval additional_libdir=\"$libdir\"
6279
6280  exec_prefix="$acl_save_exec_prefix"
6281  prefix="$acl_save_prefix"
6282
6283      else
6284        additional_includedir="$withval/include"
6285        additional_libdir="$withval/$acl_libdirstem"
6286      fi
6287    fi
6288
6289fi
6290
6291      LIBICONV=
6292  LTLIBICONV=
6293  INCICONV=
6294  rpathdirs=
6295  ltrpathdirs=
6296  names_already_handled=
6297  names_next_round='iconv '
6298  while test -n "$names_next_round"; do
6299    names_this_round="$names_next_round"
6300    names_next_round=
6301    for name in $names_this_round; do
6302      already_handled=
6303      for n in $names_already_handled; do
6304        if test "$n" = "$name"; then
6305          already_handled=yes
6306          break
6307        fi
6308      done
6309      if test -z "$already_handled"; then
6310        names_already_handled="$names_already_handled $name"
6311                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6312        eval value=\"\$HAVE_LIB$uppername\"
6313        if test -n "$value"; then
6314          if test "$value" = yes; then
6315            eval value=\"\$LIB$uppername\"
6316            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6317            eval value=\"\$LTLIB$uppername\"
6318            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6319          else
6320                                    :
6321          fi
6322        else
6323                              found_dir=
6324          found_la=
6325          found_so=
6326          found_a=
6327          if test $use_additional = yes; then
6328            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6329              found_dir="$additional_libdir"
6330              found_so="$additional_libdir/lib$name.$shlibext"
6331              if test -f "$additional_libdir/lib$name.la"; then
6332                found_la="$additional_libdir/lib$name.la"
6333              fi
6334            else
6335              if test -f "$additional_libdir/lib$name.$libext"; then
6336                found_dir="$additional_libdir"
6337                found_a="$additional_libdir/lib$name.$libext"
6338                if test -f "$additional_libdir/lib$name.la"; then
6339                  found_la="$additional_libdir/lib$name.la"
6340                fi
6341              fi
6342            fi
6343          fi
6344          if test "X$found_dir" = "X"; then
6345            for x in $LDFLAGS $LTLIBICONV; do
6346
6347  acl_save_prefix="$prefix"
6348  prefix="$acl_final_prefix"
6349  acl_save_exec_prefix="$exec_prefix"
6350  exec_prefix="$acl_final_exec_prefix"
6351  eval x=\"$x\"
6352  exec_prefix="$acl_save_exec_prefix"
6353  prefix="$acl_save_prefix"
6354
6355              case "$x" in
6356                -L*)
6357                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6358                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6359                    found_dir="$dir"
6360                    found_so="$dir/lib$name.$shlibext"
6361                    if test -f "$dir/lib$name.la"; then
6362                      found_la="$dir/lib$name.la"
6363                    fi
6364                  else
6365                    if test -f "$dir/lib$name.$libext"; then
6366                      found_dir="$dir"
6367                      found_a="$dir/lib$name.$libext"
6368                      if test -f "$dir/lib$name.la"; then
6369                        found_la="$dir/lib$name.la"
6370                      fi
6371                    fi
6372                  fi
6373                  ;;
6374              esac
6375              if test "X$found_dir" != "X"; then
6376                break
6377              fi
6378            done
6379          fi
6380          if test "X$found_dir" != "X"; then
6381                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6382            if test "X$found_so" != "X"; then
6383                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6384                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6385              else
6386                                                                                haveit=
6387                for x in $ltrpathdirs; do
6388                  if test "X$x" = "X$found_dir"; then
6389                    haveit=yes
6390                    break
6391                  fi
6392                done
6393                if test -z "$haveit"; then
6394                  ltrpathdirs="$ltrpathdirs $found_dir"
6395                fi
6396                                if test "$hardcode_direct" = yes; then
6397                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6398                else
6399                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6400                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6401                                                            haveit=
6402                    for x in $rpathdirs; do
6403                      if test "X$x" = "X$found_dir"; then
6404                        haveit=yes
6405                        break
6406                      fi
6407                    done
6408                    if test -z "$haveit"; then
6409                      rpathdirs="$rpathdirs $found_dir"
6410                    fi
6411                  else
6412                                                                                haveit=
6413                    for x in $LDFLAGS $LIBICONV; do
6414
6415  acl_save_prefix="$prefix"
6416  prefix="$acl_final_prefix"
6417  acl_save_exec_prefix="$exec_prefix"
6418  exec_prefix="$acl_final_exec_prefix"
6419  eval x=\"$x\"
6420  exec_prefix="$acl_save_exec_prefix"
6421  prefix="$acl_save_prefix"
6422
6423                      if test "X$x" = "X-L$found_dir"; then
6424                        haveit=yes
6425                        break
6426                      fi
6427                    done
6428                    if test -z "$haveit"; then
6429                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6430                    fi
6431                    if test "$hardcode_minus_L" != no; then
6432                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6433                    else
6434                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6435                    fi
6436                  fi
6437                fi
6438              fi
6439            else
6440              if test "X$found_a" != "X"; then
6441                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6442              else
6443                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6444              fi
6445            fi
6446                        additional_includedir=
6447            case "$found_dir" in
6448              */$acl_libdirstem | */$acl_libdirstem/)
6449                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6450                additional_includedir="$basedir/include"
6451                ;;
6452            esac
6453            if test "X$additional_includedir" != "X"; then
6454                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6455                haveit=
6456                if test "X$additional_includedir" = "X/usr/local/include"; then
6457                  if test -n "$GCC"; then
6458                    case $host_os in
6459                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6460                    esac
6461                  fi
6462                fi
6463                if test -z "$haveit"; then
6464                  for x in $CPPFLAGS $INCICONV; do
6465
6466  acl_save_prefix="$prefix"
6467  prefix="$acl_final_prefix"
6468  acl_save_exec_prefix="$exec_prefix"
6469  exec_prefix="$acl_final_exec_prefix"
6470  eval x=\"$x\"
6471  exec_prefix="$acl_save_exec_prefix"
6472  prefix="$acl_save_prefix"
6473
6474                    if test "X$x" = "X-I$additional_includedir"; then
6475                      haveit=yes
6476                      break
6477                    fi
6478                  done
6479                  if test -z "$haveit"; then
6480                    if test -d "$additional_includedir"; then
6481                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6482                    fi
6483                  fi
6484                fi
6485              fi
6486            fi
6487                        if test -n "$found_la"; then
6488                                                        save_libdir="$libdir"
6489              case "$found_la" in
6490                */* | *\\*) . "$found_la" ;;
6491                *) . "./$found_la" ;;
6492              esac
6493              libdir="$save_libdir"
6494                            for dep in $dependency_libs; do
6495                case "$dep" in
6496                  -L*)
6497                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6498                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6499                      haveit=
6500                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6501                        if test -n "$GCC"; then
6502                          case $host_os in
6503                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6504                          esac
6505                        fi
6506                      fi
6507                      if test -z "$haveit"; then
6508                        haveit=
6509                        for x in $LDFLAGS $LIBICONV; do
6510
6511  acl_save_prefix="$prefix"
6512  prefix="$acl_final_prefix"
6513  acl_save_exec_prefix="$exec_prefix"
6514  exec_prefix="$acl_final_exec_prefix"
6515  eval x=\"$x\"
6516  exec_prefix="$acl_save_exec_prefix"
6517  prefix="$acl_save_prefix"
6518
6519                          if test "X$x" = "X-L$additional_libdir"; then
6520                            haveit=yes
6521                            break
6522                          fi
6523                        done
6524                        if test -z "$haveit"; then
6525                          if test -d "$additional_libdir"; then
6526                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6527                          fi
6528                        fi
6529                        haveit=
6530                        for x in $LDFLAGS $LTLIBICONV; do
6531
6532  acl_save_prefix="$prefix"
6533  prefix="$acl_final_prefix"
6534  acl_save_exec_prefix="$exec_prefix"
6535  exec_prefix="$acl_final_exec_prefix"
6536  eval x=\"$x\"
6537  exec_prefix="$acl_save_exec_prefix"
6538  prefix="$acl_save_prefix"
6539
6540                          if test "X$x" = "X-L$additional_libdir"; then
6541                            haveit=yes
6542                            break
6543                          fi
6544                        done
6545                        if test -z "$haveit"; then
6546                          if test -d "$additional_libdir"; then
6547                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6548                          fi
6549                        fi
6550                      fi
6551                    fi
6552                    ;;
6553                  -R*)
6554                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6555                    if test "$enable_rpath" != no; then
6556                                                                  haveit=
6557                      for x in $rpathdirs; do
6558                        if test "X$x" = "X$dir"; then
6559                          haveit=yes
6560                          break
6561                        fi
6562                      done
6563                      if test -z "$haveit"; then
6564                        rpathdirs="$rpathdirs $dir"
6565                      fi
6566                                                                  haveit=
6567                      for x in $ltrpathdirs; do
6568                        if test "X$x" = "X$dir"; then
6569                          haveit=yes
6570                          break
6571                        fi
6572                      done
6573                      if test -z "$haveit"; then
6574                        ltrpathdirs="$ltrpathdirs $dir"
6575                      fi
6576                    fi
6577                    ;;
6578                  -l*)
6579                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6580                    ;;
6581                  *.la)
6582                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6583                    ;;
6584                  *)
6585                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6586                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6587                    ;;
6588                esac
6589              done
6590            fi
6591          else
6592                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6593            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6594          fi
6595        fi
6596      fi
6597    done
6598  done
6599  if test "X$rpathdirs" != "X"; then
6600    if test -n "$hardcode_libdir_separator"; then
6601                        alldirs=
6602      for found_dir in $rpathdirs; do
6603        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6604      done
6605            acl_save_libdir="$libdir"
6606      libdir="$alldirs"
6607      eval flag=\"$hardcode_libdir_flag_spec\"
6608      libdir="$acl_save_libdir"
6609      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6610    else
6611            for found_dir in $rpathdirs; do
6612        acl_save_libdir="$libdir"
6613        libdir="$found_dir"
6614        eval flag=\"$hardcode_libdir_flag_spec\"
6615        libdir="$acl_save_libdir"
6616        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6617      done
6618    fi
6619  fi
6620  if test "X$ltrpathdirs" != "X"; then
6621            for found_dir in $ltrpathdirs; do
6622      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6623    done
6624  fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6644$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6645if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  gt_save_LIBS="$LIBS"
6649     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652#include <CoreFoundation/CFPreferences.h>
6653int
6654main ()
6655{
6656CFPreferencesCopyAppValue(NULL, NULL)
6657  ;
6658  return 0;
6659}
6660_ACEOF
6661if ac_fn_c_try_link "$LINENO"; then :
6662  gt_cv_func_CFPreferencesCopyAppValue=yes
6663else
6664  gt_cv_func_CFPreferencesCopyAppValue=no
6665fi
6666rm -f core conftest.err conftest.$ac_objext \
6667    conftest$ac_exeext conftest.$ac_ext
6668     LIBS="$gt_save_LIBS"
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6671$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6672  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6673
6674$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6675
6676  fi
6677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6678$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6679if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  gt_save_LIBS="$LIBS"
6683     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h.  */
6686#include <CoreFoundation/CFLocale.h>
6687int
6688main ()
6689{
6690CFLocaleCopyCurrent();
6691  ;
6692  return 0;
6693}
6694_ACEOF
6695if ac_fn_c_try_link "$LINENO"; then :
6696  gt_cv_func_CFLocaleCopyCurrent=yes
6697else
6698  gt_cv_func_CFLocaleCopyCurrent=no
6699fi
6700rm -f core conftest.err conftest.$ac_objext \
6701    conftest$ac_exeext conftest.$ac_ext
6702     LIBS="$gt_save_LIBS"
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6705$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6706  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6707
6708$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6709
6710  fi
6711  INTL_MACOSX_LIBS=
6712  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6713    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6714  fi
6715
6716
6717
6718
6719
6720
6721  LIBINTL=
6722  LTLIBINTL=
6723  POSUB=
6724
6725    if test "$USE_NLS" = "yes"; then
6726    gt_use_preinstalled_gnugettext=no
6727
6728
6729
6730
6731
6732
6733        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6734$as_echo_n "checking for GNU gettext in libc... " >&6; }
6735if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740#include <libintl.h>
6741extern int _nl_msg_cat_cntr;
6742extern int *_nl_domain_bindings;
6743int
6744main ()
6745{
6746bindtextdomain ("", "");
6747return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
6748  ;
6749  return 0;
6750}
6751_ACEOF
6752if ac_fn_c_try_link "$LINENO"; then :
6753  gt_cv_func_gnugettext2_libc=yes
6754else
6755  gt_cv_func_gnugettext2_libc=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext \
6758    conftest$ac_exeext conftest.$ac_ext
6759fi
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6761$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6762
6763        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6764
6765
6766
6767
6768
6769          am_save_CPPFLAGS="$CPPFLAGS"
6770
6771  for element in $INCICONV; do
6772    haveit=
6773    for x in $CPPFLAGS; do
6774
6775  acl_save_prefix="$prefix"
6776  prefix="$acl_final_prefix"
6777  acl_save_exec_prefix="$exec_prefix"
6778  exec_prefix="$acl_final_exec_prefix"
6779  eval x=\"$x\"
6780  exec_prefix="$acl_save_exec_prefix"
6781  prefix="$acl_save_prefix"
6782
6783      if test "X$x" = "X$element"; then
6784        haveit=yes
6785        break
6786      fi
6787    done
6788    if test -z "$haveit"; then
6789      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6790    fi
6791  done
6792
6793
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6795$as_echo_n "checking for iconv... " >&6; }
6796if test "${am_cv_func_iconv+set}" = set; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799
6800    am_cv_func_iconv="no, consider installing GNU libiconv"
6801    am_cv_lib_iconv=no
6802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h.  */
6804#include <stdlib.h>
6805#include <iconv.h>
6806int
6807main ()
6808{
6809iconv_t cd = iconv_open("","");
6810       iconv(cd,NULL,NULL,NULL,NULL);
6811       iconv_close(cd);
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816if ac_fn_c_try_link "$LINENO"; then :
6817  am_cv_func_iconv=yes
6818fi
6819rm -f core conftest.err conftest.$ac_objext \
6820    conftest$ac_exeext conftest.$ac_ext
6821    if test "$am_cv_func_iconv" != yes; then
6822      am_save_LIBS="$LIBS"
6823      LIBS="$LIBS $LIBICONV"
6824      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826#include <stdlib.h>
6827#include <iconv.h>
6828int
6829main ()
6830{
6831iconv_t cd = iconv_open("","");
6832         iconv(cd,NULL,NULL,NULL,NULL);
6833         iconv_close(cd);
6834  ;
6835  return 0;
6836}
6837_ACEOF
6838if ac_fn_c_try_link "$LINENO"; then :
6839  am_cv_lib_iconv=yes
6840        am_cv_func_iconv=yes
6841fi
6842rm -f core conftest.err conftest.$ac_objext \
6843    conftest$ac_exeext conftest.$ac_ext
6844      LIBS="$am_save_LIBS"
6845    fi
6846
6847fi
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6849$as_echo "$am_cv_func_iconv" >&6; }
6850  if test "$am_cv_func_iconv" = yes; then
6851
6852$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6853
6854  fi
6855  if test "$am_cv_lib_iconv" = yes; then
6856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6857$as_echo_n "checking how to link with libiconv... " >&6; }
6858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6859$as_echo "$LIBICONV" >&6; }
6860  else
6861            CPPFLAGS="$am_save_CPPFLAGS"
6862    LIBICONV=
6863    LTLIBICONV=
6864  fi
6865
6866
6867
6868
6869
6870
6871
6872    use_additional=yes
6873
6874  acl_save_prefix="$prefix"
6875  prefix="$acl_final_prefix"
6876  acl_save_exec_prefix="$exec_prefix"
6877  exec_prefix="$acl_final_exec_prefix"
6878
6879    eval additional_includedir=\"$includedir\"
6880    eval additional_libdir=\"$libdir\"
6881
6882  exec_prefix="$acl_save_exec_prefix"
6883  prefix="$acl_save_prefix"
6884
6885
6886# Check whether --with-libintl-prefix was given.
6887if test "${with_libintl_prefix+set}" = set; then :
6888  withval=$with_libintl_prefix;
6889    if test "X$withval" = "Xno"; then
6890      use_additional=no
6891    else
6892      if test "X$withval" = "X"; then
6893
6894  acl_save_prefix="$prefix"
6895  prefix="$acl_final_prefix"
6896  acl_save_exec_prefix="$exec_prefix"
6897  exec_prefix="$acl_final_exec_prefix"
6898
6899          eval additional_includedir=\"$includedir\"
6900          eval additional_libdir=\"$libdir\"
6901
6902  exec_prefix="$acl_save_exec_prefix"
6903  prefix="$acl_save_prefix"
6904
6905      else
6906        additional_includedir="$withval/include"
6907        additional_libdir="$withval/$acl_libdirstem"
6908      fi
6909    fi
6910
6911fi
6912
6913      LIBINTL=
6914  LTLIBINTL=
6915  INCINTL=
6916  rpathdirs=
6917  ltrpathdirs=
6918  names_already_handled=
6919  names_next_round='intl '
6920  while test -n "$names_next_round"; do
6921    names_this_round="$names_next_round"
6922    names_next_round=
6923    for name in $names_this_round; do
6924      already_handled=
6925      for n in $names_already_handled; do
6926        if test "$n" = "$name"; then
6927          already_handled=yes
6928          break
6929        fi
6930      done
6931      if test -z "$already_handled"; then
6932        names_already_handled="$names_already_handled $name"
6933                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6934        eval value=\"\$HAVE_LIB$uppername\"
6935        if test -n "$value"; then
6936          if test "$value" = yes; then
6937            eval value=\"\$LIB$uppername\"
6938            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6939            eval value=\"\$LTLIB$uppername\"
6940            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6941          else
6942                                    :
6943          fi
6944        else
6945                              found_dir=
6946          found_la=
6947          found_so=
6948          found_a=
6949          if test $use_additional = yes; then
6950            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6951              found_dir="$additional_libdir"
6952              found_so="$additional_libdir/lib$name.$shlibext"
6953              if test -f "$additional_libdir/lib$name.la"; then
6954                found_la="$additional_libdir/lib$name.la"
6955              fi
6956            else
6957              if test -f "$additional_libdir/lib$name.$libext"; then
6958                found_dir="$additional_libdir"
6959                found_a="$additional_libdir/lib$name.$libext"
6960                if test -f "$additional_libdir/lib$name.la"; then
6961                  found_la="$additional_libdir/lib$name.la"
6962                fi
6963              fi
6964            fi
6965          fi
6966          if test "X$found_dir" = "X"; then
6967            for x in $LDFLAGS $LTLIBINTL; do
6968
6969  acl_save_prefix="$prefix"
6970  prefix="$acl_final_prefix"
6971  acl_save_exec_prefix="$exec_prefix"
6972  exec_prefix="$acl_final_exec_prefix"
6973  eval x=\"$x\"
6974  exec_prefix="$acl_save_exec_prefix"
6975  prefix="$acl_save_prefix"
6976
6977              case "$x" in
6978                -L*)
6979                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6980                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6981                    found_dir="$dir"
6982                    found_so="$dir/lib$name.$shlibext"
6983                    if test -f "$dir/lib$name.la"; then
6984                      found_la="$dir/lib$name.la"
6985                    fi
6986                  else
6987                    if test -f "$dir/lib$name.$libext"; then
6988                      found_dir="$dir"
6989                      found_a="$dir/lib$name.$libext"
6990                      if test -f "$dir/lib$name.la"; then
6991                        found_la="$dir/lib$name.la"
6992                      fi
6993                    fi
6994                  fi
6995                  ;;
6996              esac
6997              if test "X$found_dir" != "X"; then
6998                break
6999              fi
7000            done
7001          fi
7002          if test "X$found_dir" != "X"; then
7003                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7004            if test "X$found_so" != "X"; then
7005                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7006                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7007              else
7008                                                                                haveit=
7009                for x in $ltrpathdirs; do
7010                  if test "X$x" = "X$found_dir"; then
7011                    haveit=yes
7012                    break
7013                  fi
7014                done
7015                if test -z "$haveit"; then
7016                  ltrpathdirs="$ltrpathdirs $found_dir"
7017                fi
7018                                if test "$hardcode_direct" = yes; then
7019                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7020                else
7021                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7022                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7023                                                            haveit=
7024                    for x in $rpathdirs; do
7025                      if test "X$x" = "X$found_dir"; then
7026                        haveit=yes
7027                        break
7028                      fi
7029                    done
7030                    if test -z "$haveit"; then
7031                      rpathdirs="$rpathdirs $found_dir"
7032                    fi
7033                  else
7034                                                                                haveit=
7035                    for x in $LDFLAGS $LIBINTL; do
7036
7037  acl_save_prefix="$prefix"
7038  prefix="$acl_final_prefix"
7039  acl_save_exec_prefix="$exec_prefix"
7040  exec_prefix="$acl_final_exec_prefix"
7041  eval x=\"$x\"
7042  exec_prefix="$acl_save_exec_prefix"
7043  prefix="$acl_save_prefix"
7044
7045                      if test "X$x" = "X-L$found_dir"; then
7046                        haveit=yes
7047                        break
7048                      fi
7049                    done
7050                    if test -z "$haveit"; then
7051                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7052                    fi
7053                    if test "$hardcode_minus_L" != no; then
7054                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7055                    else
7056                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7057                    fi
7058                  fi
7059                fi
7060              fi
7061            else
7062              if test "X$found_a" != "X"; then
7063                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7064              else
7065                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7066              fi
7067            fi
7068                        additional_includedir=
7069            case "$found_dir" in
7070              */$acl_libdirstem | */$acl_libdirstem/)
7071                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7072                additional_includedir="$basedir/include"
7073                ;;
7074            esac
7075            if test "X$additional_includedir" != "X"; then
7076                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7077                haveit=
7078                if test "X$additional_includedir" = "X/usr/local/include"; then
7079                  if test -n "$GCC"; then
7080                    case $host_os in
7081                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7082                    esac
7083                  fi
7084                fi
7085                if test -z "$haveit"; then
7086                  for x in $CPPFLAGS $INCINTL; do
7087
7088  acl_save_prefix="$prefix"
7089  prefix="$acl_final_prefix"
7090  acl_save_exec_prefix="$exec_prefix"
7091  exec_prefix="$acl_final_exec_prefix"
7092  eval x=\"$x\"
7093  exec_prefix="$acl_save_exec_prefix"
7094  prefix="$acl_save_prefix"
7095
7096                    if test "X$x" = "X-I$additional_includedir"; then
7097                      haveit=yes
7098                      break
7099                    fi
7100                  done
7101                  if test -z "$haveit"; then
7102                    if test -d "$additional_includedir"; then
7103                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7104                    fi
7105                  fi
7106                fi
7107              fi
7108            fi
7109                        if test -n "$found_la"; then
7110                                                        save_libdir="$libdir"
7111              case "$found_la" in
7112                */* | *\\*) . "$found_la" ;;
7113                *) . "./$found_la" ;;
7114              esac
7115              libdir="$save_libdir"
7116                            for dep in $dependency_libs; do
7117                case "$dep" in
7118                  -L*)
7119                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7120                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7121                      haveit=
7122                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7123                        if test -n "$GCC"; then
7124                          case $host_os in
7125                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7126                          esac
7127                        fi
7128                      fi
7129                      if test -z "$haveit"; then
7130                        haveit=
7131                        for x in $LDFLAGS $LIBINTL; do
7132
7133  acl_save_prefix="$prefix"
7134  prefix="$acl_final_prefix"
7135  acl_save_exec_prefix="$exec_prefix"
7136  exec_prefix="$acl_final_exec_prefix"
7137  eval x=\"$x\"
7138  exec_prefix="$acl_save_exec_prefix"
7139  prefix="$acl_save_prefix"
7140
7141                          if test "X$x" = "X-L$additional_libdir"; then
7142                            haveit=yes
7143                            break
7144                          fi
7145                        done
7146                        if test -z "$haveit"; then
7147                          if test -d "$additional_libdir"; then
7148                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7149                          fi
7150                        fi
7151                        haveit=
7152                        for x in $LDFLAGS $LTLIBINTL; do
7153
7154  acl_save_prefix="$prefix"
7155  prefix="$acl_final_prefix"
7156  acl_save_exec_prefix="$exec_prefix"
7157  exec_prefix="$acl_final_exec_prefix"
7158  eval x=\"$x\"
7159  exec_prefix="$acl_save_exec_prefix"
7160  prefix="$acl_save_prefix"
7161
7162                          if test "X$x" = "X-L$additional_libdir"; then
7163                            haveit=yes
7164                            break
7165                          fi
7166                        done
7167                        if test -z "$haveit"; then
7168                          if test -d "$additional_libdir"; then
7169                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7170                          fi
7171                        fi
7172                      fi
7173                    fi
7174                    ;;
7175                  -R*)
7176                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7177                    if test "$enable_rpath" != no; then
7178                                                                  haveit=
7179                      for x in $rpathdirs; do
7180                        if test "X$x" = "X$dir"; then
7181                          haveit=yes
7182                          break
7183                        fi
7184                      done
7185                      if test -z "$haveit"; then
7186                        rpathdirs="$rpathdirs $dir"
7187                      fi
7188                                                                  haveit=
7189                      for x in $ltrpathdirs; do
7190                        if test "X$x" = "X$dir"; then
7191                          haveit=yes
7192                          break
7193                        fi
7194                      done
7195                      if test -z "$haveit"; then
7196                        ltrpathdirs="$ltrpathdirs $dir"
7197                      fi
7198                    fi
7199                    ;;
7200                  -l*)
7201                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7202                    ;;
7203                  *.la)
7204                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7205                    ;;
7206                  *)
7207                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7208                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7209                    ;;
7210                esac
7211              done
7212            fi
7213          else
7214                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7215            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7216          fi
7217        fi
7218      fi
7219    done
7220  done
7221  if test "X$rpathdirs" != "X"; then
7222    if test -n "$hardcode_libdir_separator"; then
7223                        alldirs=
7224      for found_dir in $rpathdirs; do
7225        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7226      done
7227            acl_save_libdir="$libdir"
7228      libdir="$alldirs"
7229      eval flag=\"$hardcode_libdir_flag_spec\"
7230      libdir="$acl_save_libdir"
7231      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7232    else
7233            for found_dir in $rpathdirs; do
7234        acl_save_libdir="$libdir"
7235        libdir="$found_dir"
7236        eval flag=\"$hardcode_libdir_flag_spec\"
7237        libdir="$acl_save_libdir"
7238        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7239      done
7240    fi
7241  fi
7242  if test "X$ltrpathdirs" != "X"; then
7243            for found_dir in $ltrpathdirs; do
7244      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7245    done
7246  fi
7247
7248          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7249$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7250if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  gt_save_CPPFLAGS="$CPPFLAGS"
7254            CPPFLAGS="$CPPFLAGS $INCINTL"
7255            gt_save_LIBS="$LIBS"
7256            LIBS="$LIBS $LIBINTL"
7257                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259#include <libintl.h>
7260extern int _nl_msg_cat_cntr;
7261extern
7262#ifdef __cplusplus
7263"C"
7264#endif
7265const char *_nl_expand_alias (const char *);
7266int
7267main ()
7268{
7269bindtextdomain ("", "");
7270return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7271  ;
7272  return 0;
7273}
7274_ACEOF
7275if ac_fn_c_try_link "$LINENO"; then :
7276  gt_cv_func_gnugettext2_libintl=yes
7277else
7278  gt_cv_func_gnugettext2_libintl=no
7279fi
7280rm -f core conftest.err conftest.$ac_objext \
7281    conftest$ac_exeext conftest.$ac_ext
7282                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
7283              LIBS="$LIBS $LIBICONV"
7284              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286#include <libintl.h>
7287extern int _nl_msg_cat_cntr;
7288extern
7289#ifdef __cplusplus
7290"C"
7291#endif
7292const char *_nl_expand_alias (const char *);
7293int
7294main ()
7295{
7296bindtextdomain ("", "");
7297return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7298  ;
7299  return 0;
7300}
7301_ACEOF
7302if ac_fn_c_try_link "$LINENO"; then :
7303  LIBINTL="$LIBINTL $LIBICONV"
7304                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7305                gt_cv_func_gnugettext2_libintl=yes
7306
7307fi
7308rm -f core conftest.err conftest.$ac_objext \
7309    conftest$ac_exeext conftest.$ac_ext
7310            fi
7311            CPPFLAGS="$gt_save_CPPFLAGS"
7312            LIBS="$gt_save_LIBS"
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
7315$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
7316        fi
7317
7318                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
7319           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
7320                && test "$PACKAGE" != gettext-runtime \
7321                && test "$PACKAGE" != gettext-tools; }; then
7322          gt_use_preinstalled_gnugettext=yes
7323        else
7324                    LIBINTL=
7325          LTLIBINTL=
7326          INCINTL=
7327        fi
7328
7329
7330
7331    if test -n "$INTL_MACOSX_LIBS"; then
7332      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7333         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7334                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7335        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7336      fi
7337    fi
7338
7339    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7340       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7341
7342$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7343
7344    else
7345      USE_NLS=no
7346    fi
7347  fi
7348
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7350$as_echo_n "checking whether to use NLS... " >&6; }
7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7352$as_echo "$USE_NLS" >&6; }
7353  if test "$USE_NLS" = "yes"; then
7354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7355$as_echo_n "checking where the gettext function comes from... " >&6; }
7356    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7357      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
7358        gt_source="external libintl"
7359      else
7360        gt_source="libc"
7361      fi
7362    else
7363      gt_source="included intl directory"
7364    fi
7365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7366$as_echo "$gt_source" >&6; }
7367  fi
7368
7369  if test "$USE_NLS" = "yes"; then
7370
7371    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7372      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
7373        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7374$as_echo_n "checking how to link with libintl... " >&6; }
7375        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7376$as_echo "$LIBINTL" >&6; }
7377
7378  for element in $INCINTL; do
7379    haveit=
7380    for x in $CPPFLAGS; do
7381
7382  acl_save_prefix="$prefix"
7383  prefix="$acl_final_prefix"
7384  acl_save_exec_prefix="$exec_prefix"
7385  exec_prefix="$acl_final_exec_prefix"
7386  eval x=\"$x\"
7387  exec_prefix="$acl_save_exec_prefix"
7388  prefix="$acl_save_prefix"
7389
7390      if test "X$x" = "X$element"; then
7391        haveit=yes
7392        break
7393      fi
7394    done
7395    if test -z "$haveit"; then
7396      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7397    fi
7398  done
7399
7400      fi
7401
7402
7403$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7404
7405
7406$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7407
7408    fi
7409
7410        POSUB=po
7411  fi
7412
7413
7414
7415    INTLLIBS="$LIBINTL"
7416
7417
7418
7419
7420
7421
7422
7423#
7424# Checks for libraries.
7425#
7426
7427
7428
7429
7430
7431          am_save_CPPFLAGS="$CPPFLAGS"
7432
7433  for element in $INCICONV; do
7434    haveit=
7435    for x in $CPPFLAGS; do
7436
7437  acl_save_prefix="$prefix"
7438  prefix="$acl_final_prefix"
7439  acl_save_exec_prefix="$exec_prefix"
7440  exec_prefix="$acl_final_exec_prefix"
7441  eval x=\"$x\"
7442  exec_prefix="$acl_save_exec_prefix"
7443  prefix="$acl_save_prefix"
7444
7445      if test "X$x" = "X$element"; then
7446        haveit=yes
7447        break
7448      fi
7449    done
7450    if test -z "$haveit"; then
7451      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7452    fi
7453  done
7454
7455
7456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7457$as_echo_n "checking for iconv... " >&6; }
7458if test "${am_cv_func_iconv+set}" = set; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461
7462    am_cv_func_iconv="no, consider installing GNU libiconv"
7463    am_cv_lib_iconv=no
7464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h.  */
7466#include <stdlib.h>
7467#include <iconv.h>
7468int
7469main ()
7470{
7471iconv_t cd = iconv_open("","");
7472       iconv(cd,NULL,NULL,NULL,NULL);
7473       iconv_close(cd);
7474  ;
7475  return 0;
7476}
7477_ACEOF
7478if ac_fn_c_try_link "$LINENO"; then :
7479  am_cv_func_iconv=yes
7480fi
7481rm -f core conftest.err conftest.$ac_objext \
7482    conftest$ac_exeext conftest.$ac_ext
7483    if test "$am_cv_func_iconv" != yes; then
7484      am_save_LIBS="$LIBS"
7485      LIBS="$LIBS $LIBICONV"
7486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488#include <stdlib.h>
7489#include <iconv.h>
7490int
7491main ()
7492{
7493iconv_t cd = iconv_open("","");
7494         iconv(cd,NULL,NULL,NULL,NULL);
7495         iconv_close(cd);
7496  ;
7497  return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_link "$LINENO"; then :
7501  am_cv_lib_iconv=yes
7502        am_cv_func_iconv=yes
7503fi
7504rm -f core conftest.err conftest.$ac_objext \
7505    conftest$ac_exeext conftest.$ac_ext
7506      LIBS="$am_save_LIBS"
7507    fi
7508
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7511$as_echo "$am_cv_func_iconv" >&6; }
7512  if test "$am_cv_func_iconv" = yes; then
7513
7514$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7515
7516  fi
7517  if test "$am_cv_lib_iconv" = yes; then
7518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7519$as_echo_n "checking how to link with libiconv... " >&6; }
7520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7521$as_echo "$LIBICONV" >&6; }
7522  else
7523            CPPFLAGS="$am_save_CPPFLAGS"
7524    LIBICONV=
7525    LTLIBICONV=
7526  fi
7527
7528
7529
7530  if test "$am_cv_func_iconv" = yes; then
7531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7532$as_echo_n "checking for iconv declaration... " >&6; }
7533    if test "${am_cv_proto_iconv+set}" = set; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536
7537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539
7540#include <stdlib.h>
7541#include <iconv.h>
7542extern
7543#ifdef __cplusplus
7544"C"
7545#endif
7546#if defined(__STDC__) || defined(__cplusplus)
7547size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7548#else
7549size_t iconv();
7550#endif
7551
7552int
7553main ()
7554{
7555
7556  ;
7557  return 0;
7558}
7559_ACEOF
7560if ac_fn_c_try_compile "$LINENO"; then :
7561  am_cv_proto_iconv_arg1=""
7562else
7563  am_cv_proto_iconv_arg1="const"
7564fi
7565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566      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);"
7567fi
7568
7569    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7571         }$am_cv_proto_iconv" >&5
7572$as_echo "${ac_t:-
7573         }$am_cv_proto_iconv" >&6; }
7574
7575cat >>confdefs.h <<_ACEOF
7576#define ICONV_CONST $am_cv_proto_iconv_arg1
7577_ACEOF
7578
7579  fi
7580
7581
7582for ac_func in vasprintf
7583do :
7584  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
7585if test "x$ac_cv_func_vasprintf" = x""yes; then :
7586  cat >>confdefs.h <<_ACEOF
7587#define HAVE_VASPRINTF 1
7588_ACEOF
7589
7590else
7591  case " $LIBOBJS " in
7592  *" $ac_func.$ac_objext "* ) ;;
7593  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7594 ;;
7595esac
7596
7597fi
7598done
7599
7600
7601if test "$ac_cv_func_vasprintf" != yes; then
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
7603$as_echo_n "checking whether va_lists must be copied by value... " >&6; }
7604  if test "${gnupg_cv_must_copy_va_byval+set}" = set; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607
7608    if test "$cross_compiling" = yes; then
7609      gnupg_cv_must_copy_va_byval=no
7610    else
7611      gnupg_cv_must_copy_va_byval=no
7612      if test "$cross_compiling" = yes; then :
7613  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7615as_fn_error "cannot run test program while cross compiling
7616See \`config.log' for more details." "$LINENO" 5; }
7617else
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620
7621       #include <stdarg.h>
7622       void f (int i, ...)
7623       {
7624          va_list args1, args2;
7625          va_start (args1, i);
7626          args2 = args1;
7627          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
7628            exit (1);
7629          va_end (args1);
7630          va_end (args2);
7631       }
7632
7633       int main()
7634       {
7635          f (0, 42);
7636            return 0;
7637       }
7638
7639_ACEOF
7640if ac_fn_c_try_run "$LINENO"; then :
7641  gnupg_cv_must_copy_va_byval=yes
7642fi
7643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7644  conftest.$ac_objext conftest.beam conftest.$ac_ext
7645fi
7646
7647    fi
7648
7649fi
7650
7651  if test "$gnupg_cv_must_copy_va_byval" = yes; then
7652
7653$as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
7654
7655  fi
7656  if test "$cross_compiling" = yes; then
7657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
7658$as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
7659  else
7660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
7661$as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
7662  fi
7663
7664fi
7665
7666#
7667# We need the GNU Pth library
7668#
7669
7670# Check whether --with-pth-prefix was given.
7671if test "${with_pth_prefix+set}" = set; then :
7672  withval=$with_pth_prefix; pth_config_prefix="$withval"
7673else
7674  pth_config_prefix=""
7675fi
7676
7677  if test x$pth_config_prefix != x ; then
7678     PTH_CONFIG="$pth_config_prefix/bin/pth-config"
7679  fi
7680  # Extract the first word of "pth-config", so it can be a program name with args.
7681set dummy pth-config; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if test "${ac_cv_path_PTH_CONFIG+set}" = set; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  case $PTH_CONFIG in
7688  [\\/]* | ?:[\\/]*)
7689  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
7690  ;;
7691  *)
7692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695  IFS=$as_save_IFS
7696  test -z "$as_dir" && as_dir=.
7697    for ac_exec_ext in '' $ac_executable_extensions; do
7698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701    break 2
7702  fi
7703done
7704  done
7705IFS=$as_save_IFS
7706
7707  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
7708  ;;
7709esac
7710fi
7711PTH_CONFIG=$ac_cv_path_PTH_CONFIG
7712if test -n "$PTH_CONFIG"; then
7713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
7714$as_echo "$PTH_CONFIG" >&6; }
7715else
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717$as_echo "no" >&6; }
7718fi
7719
7720
7721  tmp=1.3.7
7722  if test "$PTH_CONFIG" != "no"; then
7723
7724    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
7725    _req_version="$tmp"
7726
7727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
7728$as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
7729    for _var in _pth_version _req_version; do
7730        eval "_val=\"\$${_var}\""
7731        _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
7732        _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
7733        _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
7734        _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
7735        case $_rtype in
7736            "a" ) _rtype=0 ;;
7737            "b" ) _rtype=1 ;;
7738            "." ) _rtype=2 ;;
7739        esac
7740        _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
7741              "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
7742        eval "${_var}_hex=\"\$_hex\""
7743    done
7744    have_pth=no
7745    if test ".$_pth_version_hex" != .; then
7746        if test ".$_req_version_hex" != .; then
7747            if test $_pth_version_hex -ge $_req_version_hex; then
7748                have_pth=yes
7749            fi
7750        fi
7751    fi
7752    if test $have_pth = yes; then
7753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754$as_echo "yes" >&6; }
7755       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
7756$as_echo_n "checking whether PTH installation is sane... " >&6; }
7757       if test "${gnupg_cv_pth_is_sane+set}" = set; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760
7761         _gnupg_pth_save_cflags=$CFLAGS
7762         _gnupg_pth_save_ldflags=$LDFLAGS
7763         _gnupg_pth_save_libs=$LIBS
7764         CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
7765         LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
7766         LIBS="$LIBS `$PTH_CONFIG --libs`"
7767         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h.  */
7769#include <pth.h>
7770
7771int
7772main ()
7773{
7774 pth_init ();
7775  ;
7776  return 0;
7777}
7778_ACEOF
7779if ac_fn_c_try_link "$LINENO"; then :
7780  gnupg_cv_pth_is_sane=yes
7781else
7782  gnupg_cv_pth_is_sane=no
7783fi
7784rm -f core conftest.err conftest.$ac_objext \
7785    conftest$ac_exeext conftest.$ac_ext
7786         CFLAGS=$_gnupg_pth_save_cflags
7787         LDFLAGS=$_gnupg_pth_save_ldflags
7788         LIBS=$_gnupg_pth_save_libs
7789
7790fi
7791
7792       if test $gnupg_cv_pth_is_sane != yes; then
7793          have_pth=no
7794       fi
7795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
7796$as_echo "$gnupg_cv_pth_is_sane" >&6; }
7797    else
7798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800    fi
7801
7802    if test $have_pth = yes; then
7803       PTH_CFLAGS=`$PTH_CONFIG --cflags`
7804       PTH_LIBS=`$PTH_CONFIG --ldflags`
7805       PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
7806
7807$as_echo "#define HAVE_PTH 1" >>confdefs.h
7808
7809    fi
7810  fi
7811
7812
7813
7814if test "$have_pth" = "yes"; then
7815
7816$as_echo "#define USE_GNU_PTH 1" >>confdefs.h
7817
7818fi
7819
7820
7821#
7822# libgpg-error is a library with error codes shared between GnuPG
7823# related projects.
7824#
7825
7826# Check whether --with-gpg-error-prefix was given.
7827if test "${with_gpg_error_prefix+set}" = set; then :
7828  withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
7829else
7830  gpg_error_config_prefix=""
7831fi
7832
7833  if test x$gpg_error_config_prefix != x ; then
7834     if test x${GPG_ERROR_CONFIG+set} != xset ; then
7835        GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
7836     fi
7837  fi
7838
7839  # Extract the first word of "gpg-error-config", so it can be a program name with args.
7840set dummy gpg-error-config; ac_word=$2
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842$as_echo_n "checking for $ac_word... " >&6; }
7843if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then :
7844  $as_echo_n "(cached) " >&6
7845else
7846  case $GPG_ERROR_CONFIG in
7847  [\\/]* | ?:[\\/]*)
7848  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
7849  ;;
7850  *)
7851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866  test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
7867  ;;
7868esac
7869fi
7870GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
7871if test -n "$GPG_ERROR_CONFIG"; then
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
7873$as_echo "$GPG_ERROR_CONFIG" >&6; }
7874else
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879
7880  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
7882$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
7883  ok=no
7884  if test "$GPG_ERROR_CONFIG" != "no" ; then
7885    req_major=`echo $min_gpg_error_version | \
7886               sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
7887    req_minor=`echo $min_gpg_error_version | \
7888               sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
7889    gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
7890    major=`echo $gpg_error_config_version | \
7891               sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7892    minor=`echo $gpg_error_config_version | \
7893               sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7894    if test "$major" -gt "$req_major"; then
7895        ok=yes
7896    else
7897        if test "$major" -eq "$req_major"; then
7898            if test "$minor" -ge "$req_minor"; then
7899               ok=yes
7900            fi
7901        fi
7902    fi
7903  fi
7904  if test $ok = yes; then
7905    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
7906    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
7907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908$as_echo "yes" >&6; }
7909    have_gpg_error=yes
7910  else
7911    GPG_ERROR_CFLAGS=""
7912    GPG_ERROR_LIBS=""
7913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915    have_gpg_error=no
7916  fi
7917
7918
7919
7920
7921$as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_DIRMNGR" >>confdefs.h
7922
7923
7924#
7925# Libgcrypt is our generic crypto library
7926#
7927
7928# Check whether --with-libgcrypt-prefix was given.
7929if test "${with_libgcrypt_prefix+set}" = set; then :
7930  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
7931else
7932  libgcrypt_config_prefix=""
7933fi
7934
7935  if test x$libgcrypt_config_prefix != x ; then
7936     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
7937        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
7938     fi
7939  fi
7940
7941  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
7942set dummy libgcrypt-config; ac_word=$2
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
7945if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
7946  $as_echo_n "(cached) " >&6
7947else
7948  case $LIBGCRYPT_CONFIG in
7949  [\\/]* | ?:[\\/]*)
7950  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
7951  ;;
7952  *)
7953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956  IFS=$as_save_IFS
7957  test -z "$as_dir" && as_dir=.
7958    for ac_exec_ext in '' $ac_executable_extensions; do
7959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962    break 2
7963  fi
7964done
7965  done
7966IFS=$as_save_IFS
7967
7968  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
7969  ;;
7970esac
7971fi
7972LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
7973if test -n "$LIBGCRYPT_CONFIG"; then
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
7975$as_echo "$LIBGCRYPT_CONFIG" >&6; }
7976else
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979fi
7980
7981
7982  tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
7983  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
7984     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
7985     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
7986  else
7987     req_libgcrypt_api=0
7988     min_libgcrypt_version="$tmp"
7989  fi
7990
7991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
7992$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
7993  ok=no
7994  if test "$LIBGCRYPT_CONFIG" != "no" ; then
7995    req_major=`echo $min_libgcrypt_version | \
7996               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7997    req_minor=`echo $min_libgcrypt_version | \
7998               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7999    req_micro=`echo $min_libgcrypt_version | \
8000               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8001    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8002    major=`echo $libgcrypt_config_version | \
8003               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8004    minor=`echo $libgcrypt_config_version | \
8005               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8006    micro=`echo $libgcrypt_config_version | \
8007               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8008    if test "$major" -gt "$req_major"; then
8009        ok=yes
8010    else
8011        if test "$major" -eq "$req_major"; then
8012            if test "$minor" -gt "$req_minor"; then
8013               ok=yes
8014            else
8015               if test "$minor" -eq "$req_minor"; then
8016                   if test "$micro" -ge "$req_micro"; then
8017                     ok=yes
8018                   fi
8019               fi
8020            fi
8021        fi
8022    fi
8023  fi
8024  if test $ok = yes; then
8025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026$as_echo "yes" >&6; }
8027  else
8028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
8030  fi
8031  if test $ok = yes; then
8032     # If we have a recent libgcrypt, we should also check that the
8033     # API is compatible
8034     if test "$req_libgcrypt_api" -gt 0 ; then
8035        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8036        if test "$tmp" -gt 0 ; then
8037           { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8038$as_echo_n "checking LIBGCRYPT API version... " >&6; }
8039           if test "$req_libgcrypt_api" -eq "$tmp" ; then
8040             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8041$as_echo "okay" >&6; }
8042           else
8043             ok=no
8044             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
8045$as_echo "does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
8046           fi
8047        fi
8048     fi
8049  fi
8050  if test $ok = yes; then
8051    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8052    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8053    have_libgcrypt=yes
8054  else
8055    LIBGCRYPT_CFLAGS=""
8056    LIBGCRYPT_LIBS=""
8057    have_libgcrypt=no
8058  fi
8059
8060
8061
8062
8063
8064#
8065# libassuan is used for IPC
8066#
8067
8068# Check whether --with-libassuan-prefix was given.
8069if test "${with_libassuan_prefix+set}" = set; then :
8070  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8071else
8072  libassuan_config_prefix=""
8073fi
8074
8075  if test x$libassuan_config_prefix != x ; then
8076    libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8077    if test x${LIBASSUAN_CONFIG+set} != xset ; then
8078      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8079    fi
8080  fi
8081  # Extract the first word of "libassuan-config", so it can be a program name with args.
8082set dummy libassuan-config; ac_word=$2
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  case $LIBASSUAN_CONFIG in
8089  [\\/]* | ?:[\\/]*)
8090  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8091  ;;
8092  *)
8093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098    for ac_exec_ext in '' $ac_executable_extensions; do
8099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105  done
8106IFS=$as_save_IFS
8107
8108  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8109  ;;
8110esac
8111fi
8112LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8113if test -n "$LIBASSUAN_CONFIG"; then
8114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8115$as_echo "$LIBASSUAN_CONFIG" >&6; }
8116else
8117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119fi
8120
8121
8122
8123  tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8124  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8125    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8126    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8127  else
8128    req_libassuan_api=0
8129    min_libassuan_version="$tmp"
8130  fi
8131
8132  if test "$LIBASSUAN_CONFIG" != "no" ; then
8133    libassuan_version=`$LIBASSUAN_CONFIG --version`
8134  fi
8135  libassuan_version_major=`echo $libassuan_version | \
8136               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8137  libassuan_version_minor=`echo $libassuan_version | \
8138               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8139  libassuan_version_micro=`echo $libassuan_version | \
8140               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8141
8142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8143$as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8144  ok=no
8145  if test "$LIBASSUAN_CONFIG" != "no" ; then
8146
8147    req_major=`echo $min_libassuan_version | \
8148               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8149    req_minor=`echo $min_libassuan_version | \
8150               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8151    req_micro=`echo $min_libassuan_version | \
8152               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8153    if test "$libassuan_version_major" -gt "$req_major"; then
8154        ok=yes
8155    else
8156        if test "$libassuan_version_major" -eq "$req_major"; then
8157            if test "$libassuan_version_minor" -gt "$req_minor"; then
8158               ok=yes
8159            else
8160               if test "$libassuan_version_minor" -eq "$req_minor"; then
8161                   if test "$libassuan_version_micro" -ge "$req_micro"; then
8162                     ok=yes
8163                   fi
8164               fi
8165            fi
8166        fi
8167    fi
8168
8169  fi
8170
8171  if test $ok = yes; then
8172    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8173$as_echo "yes" >&6; }
8174  else
8175    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176$as_echo "no" >&6; }
8177  fi
8178
8179  if test $ok = yes; then
8180    if test "$req_libassuan_api" -gt 0 ; then
8181      tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8182      if test "$tmp" -gt 0 ; then
8183        { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8184$as_echo_n "checking LIBASSUAN API version... " >&6; }
8185        if test "$req_libassuan_api" -eq "$tmp" ; then
8186          { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8187$as_echo "okay" >&6; }
8188        else
8189          ok=no
8190          { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8191$as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8192        fi
8193      fi
8194    fi
8195  fi
8196
8197
8198  if test $ok = yes; then
8199    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8200    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8201    have_libassuan=yes
8202  else
8203    LIBASSUAN_CFLAGS=""
8204    LIBASSUAN_LIBS=""
8205    have_libassuan=no
8206  fi
8207
8208
8209
8210if test "$have_libassuan" = "yes"; then
8211  have_libassuan=no
8212
8213# Check whether --with-libassuan-prefix was given.
8214if test "${with_libassuan_prefix+set}" = set; then :
8215  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8216else
8217  libassuan_config_prefix=""
8218fi
8219
8220  if test x$libassuan_config_prefix != x ; then
8221    libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8222    if test x${LIBASSUAN_CONFIG+set} != xset ; then
8223      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8224    fi
8225  fi
8226  # Extract the first word of "libassuan-config", so it can be a program name with args.
8227set dummy libassuan-config; ac_word=$2
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then :
8231  $as_echo_n "(cached) " >&6
8232else
8233  case $LIBASSUAN_CONFIG in
8234  [\\/]* | ?:[\\/]*)
8235  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8236  ;;
8237  *)
8238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241  IFS=$as_save_IFS
8242  test -z "$as_dir" && as_dir=.
8243    for ac_exec_ext in '' $ac_executable_extensions; do
8244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247    break 2
8248  fi
8249done
8250  done
8251IFS=$as_save_IFS
8252
8253  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8254  ;;
8255esac
8256fi
8257LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8258if test -n "$LIBASSUAN_CONFIG"; then
8259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8260$as_echo "$LIBASSUAN_CONFIG" >&6; }
8261else
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
8264fi
8265
8266
8267
8268  tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8269  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8270    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8271    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8272  else
8273    req_libassuan_api=0
8274    min_libassuan_version="$tmp"
8275  fi
8276
8277  if test "$LIBASSUAN_CONFIG" != "no" ; then
8278    libassuan_version=`$LIBASSUAN_CONFIG --version`
8279  fi
8280  libassuan_version_major=`echo $libassuan_version | \
8281               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8282  libassuan_version_minor=`echo $libassuan_version | \
8283               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8284  libassuan_version_micro=`echo $libassuan_version | \
8285               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8286
8287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8288$as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8289  ok=no
8290  if test "$LIBASSUAN_CONFIG" != "no" ; then
8291
8292    req_major=`echo $min_libassuan_version | \
8293               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8294    req_minor=`echo $min_libassuan_version | \
8295               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8296    req_micro=`echo $min_libassuan_version | \
8297               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8298    if test "$libassuan_version_major" -gt "$req_major"; then
8299        ok=yes
8300    else
8301        if test "$libassuan_version_major" -eq "$req_major"; then
8302            if test "$libassuan_version_minor" -gt "$req_minor"; then
8303               ok=yes
8304            else
8305               if test "$libassuan_version_minor" -eq "$req_minor"; then
8306                   if test "$libassuan_version_micro" -ge "$req_micro"; then
8307                     ok=yes
8308                   fi
8309               fi
8310            fi
8311        fi
8312    fi
8313
8314  fi
8315
8316  if test $ok = yes; then
8317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8318$as_echo "yes" >&6; }
8319  else
8320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321$as_echo "no" >&6; }
8322  fi
8323
8324  if test $ok = yes; then
8325    if test "$req_libassuan_api" -gt 0 ; then
8326      tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8327      if test "$tmp" -gt 0 ; then
8328        { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8329$as_echo_n "checking LIBASSUAN API version... " >&6; }
8330        if test "$req_libassuan_api" -eq "$tmp" ; then
8331          { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8332$as_echo "okay" >&6; }
8333        else
8334          ok=no
8335          { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8336$as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8337        fi
8338      fi
8339    fi
8340  fi
8341
8342
8343  if test $ok = yes; then
8344    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8345    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8346    have_libassuan=yes
8347  else
8348    LIBASSUAN_CFLAGS=""
8349    LIBASSUAN_LIBS=""
8350    have_libassuan=no
8351  fi
8352
8353
8354
8355fi
8356
8357
8358#
8359# libksba is our X.509 support library
8360#
8361
8362# Check whether --with-ksba-prefix was given.
8363if test "${with_ksba_prefix+set}" = set; then :
8364  withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8365else
8366  ksba_config_prefix=""
8367fi
8368
8369  if test x$ksba_config_prefix != x ; then
8370     ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8371     if test x${KSBA_CONFIG+set} != xset ; then
8372        KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8373     fi
8374  fi
8375
8376  # Extract the first word of "ksba-config", so it can be a program name with args.
8377set dummy ksba-config; ac_word=$2
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
8380if test "${ac_cv_path_KSBA_CONFIG+set}" = set; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  case $KSBA_CONFIG in
8384  [\\/]* | ?:[\\/]*)
8385  ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8386  ;;
8387  *)
8388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391  IFS=$as_save_IFS
8392  test -z "$as_dir" && as_dir=.
8393    for ac_exec_ext in '' $ac_executable_extensions; do
8394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395    ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397    break 2
8398  fi
8399done
8400  done
8401IFS=$as_save_IFS
8402
8403  test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8404  ;;
8405esac
8406fi
8407KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8408if test -n "$KSBA_CONFIG"; then
8409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8410$as_echo "$KSBA_CONFIG" >&6; }
8411else
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414fi
8415
8416
8417  tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8418  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8419     req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8420     min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8421  else
8422     req_ksba_api=0
8423     min_ksba_version="$tmp"
8424  fi
8425
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8427$as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8428  ok=no
8429  if test "$KSBA_CONFIG" != "no" ; then
8430    req_major=`echo $min_ksba_version | \
8431               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8432    req_minor=`echo $min_ksba_version | \
8433               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8434    req_micro=`echo $min_ksba_version | \
8435               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8436    ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8437    major=`echo $ksba_config_version | \
8438               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8439    minor=`echo $ksba_config_version | \
8440               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8441    micro=`echo $ksba_config_version | \
8442               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8443    if test "$major" -gt "$req_major"; then
8444        ok=yes
8445    else
8446        if test "$major" -eq "$req_major"; then
8447            if test "$minor" -gt "$req_minor"; then
8448               ok=yes
8449            else
8450               if test "$minor" -eq "$req_minor"; then
8451                   if test "$micro" -ge "$req_micro"; then
8452                     ok=yes
8453                   fi
8454               fi
8455            fi
8456        fi
8457    fi
8458  fi
8459  if test $ok = yes; then
8460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8461$as_echo "yes" >&6; }
8462  else
8463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464$as_echo "no" >&6; }
8465  fi
8466  if test $ok = yes; then
8467     # Even if we have a recent libksba, we should check that the
8468     # API is compatible.
8469     if test "$req_ksba_api" -gt 0 ; then
8470        tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8471        if test "$tmp" -gt 0 ; then
8472           { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8473$as_echo_n "checking KSBA API version... " >&6; }
8474           if test "$req_ksba_api" -eq "$tmp" ; then
8475             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8476$as_echo "okay" >&6; }
8477           else
8478             ok=no
8479             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
8480$as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
8481           fi
8482        fi
8483     fi
8484  fi
8485  if test $ok = yes; then
8486    KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8487    KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8488    have_ksba=yes
8489  else
8490    KSBA_CFLAGS=""
8491    KSBA_LIBS=""
8492    have_ksba=no
8493  fi
8494
8495
8496
8497
8498
8499
8500#
8501# Must check for network library requirements before doing link tests
8502# for ldap, for example. If ldap libs are static (or dynamic and without
8503# ELF runtime link paths), then link will fail and LDAP support won't
8504# be detected.
8505#
8506ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8507if test "x$ac_cv_func_gethostbyname" = x""yes; then :
8508
8509else
8510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8511$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8512if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515  ac_check_lib_save_LIBS=$LIBS
8516LIBS="-lnsl  $LIBS"
8517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519
8520/* Override any GCC internal prototype to avoid an error.
8521   Use char because int might match the return type of a GCC
8522   builtin and then its argument prototype would still apply.  */
8523#ifdef __cplusplus
8524extern "C"
8525#endif
8526char gethostbyname ();
8527int
8528main ()
8529{
8530return gethostbyname ();
8531  ;
8532  return 0;
8533}
8534_ACEOF
8535if ac_fn_c_try_link "$LINENO"; then :
8536  ac_cv_lib_nsl_gethostbyname=yes
8537else
8538  ac_cv_lib_nsl_gethostbyname=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext \
8541    conftest$ac_exeext conftest.$ac_ext
8542LIBS=$ac_check_lib_save_LIBS
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8545$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8546if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
8547  NETLIBS="-lnsl $NETLIBS"
8548fi
8549
8550fi
8551
8552ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8553if test "x$ac_cv_func_setsockopt" = x""yes; then :
8554
8555else
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8557$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8558if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  ac_check_lib_save_LIBS=$LIBS
8562LIBS="-lsocket  $LIBS"
8563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564/* end confdefs.h.  */
8565
8566/* Override any GCC internal prototype to avoid an error.
8567   Use char because int might match the return type of a GCC
8568   builtin and then its argument prototype would still apply.  */
8569#ifdef __cplusplus
8570extern "C"
8571#endif
8572char setsockopt ();
8573int
8574main ()
8575{
8576return setsockopt ();
8577  ;
8578  return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_link "$LINENO"; then :
8582  ac_cv_lib_socket_setsockopt=yes
8583else
8584  ac_cv_lib_socket_setsockopt=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext \
8587    conftest$ac_exeext conftest.$ac_ext
8588LIBS=$ac_check_lib_save_LIBS
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8591$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8592if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
8593  NETLIBS="-lsocket $NETLIBS"
8594fi
8595
8596fi
8597
8598
8599#
8600# LDAP libraries/includes
8601#
8602# From gnupg 1.4:
8603# Try and link a LDAP test program to weed out unusable LDAP
8604# libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
8605# OpenLDAP, circa 1999, was terrible with creating weird dependencies.
8606# This seems to have all been resolved, so I'm simplifying this code
8607# significantly.  If all else fails, the user can play
8608# guess-the-dependency by using something like ./configure
8609# LDAPLIBS="-Lfoo -lbar"
8610#
8611for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
8612    _ldap_save_libs=$LIBS
8613    LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
8614
8615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
8616$as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
8617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h.  */
8619
8620#ifdef _WIN32
8621#include <winsock2.h>
8622#include <winldap.h>
8623#else
8624#include <ldap.h>
8625#endif
8626
8627int
8628main ()
8629{
8630BerElement *berctx = NULL;
8631ber_free(berctx, 0);
8632ldap_open("foobar",1234);
8633  ;
8634  return 0;
8635}
8636_ACEOF
8637if ac_fn_c_try_link "$LINENO"; then :
8638  gnupg_cv_func_ldap_init=yes
8639else
8640  gnupg_cv_func_ldap_init=no
8641fi
8642rm -f core conftest.err conftest.$ac_objext \
8643    conftest$ac_exeext conftest.$ac_ext
8644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
8645$as_echo "$gnupg_cv_func_ldap_init" >&6; }
8646
8647    if test "$gnupg_cv_func_ldap_init" = yes ; then
8648       LDAPLIBS=$MY_LDAPLIBS
8649       have_ldap=yes
8650
8651       for ac_func in ldap_get_option ldap_set_option
8652do :
8653  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8654ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8655eval as_val=\$$as_ac_var
8656   if test "x$as_val" = x""yes; then :
8657  cat >>confdefs.h <<_ACEOF
8658#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8659_ACEOF
8660
8661fi
8662done
8663
8664       # The extra test for ldap_start_tls_sA is for W32 because
8665       # that is the actual function in the library.
8666       for ac_func in ldap_start_tls_s ldap_start_tls_sA
8667do :
8668  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8669ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8670eval as_val=\$$as_ac_var
8671   if test "x$as_val" = x""yes; then :
8672  cat >>confdefs.h <<_ACEOF
8673#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8674_ACEOF
8675
8676fi
8677done
8678
8679
8680       if test "$ac_cv_func_ldap_get_option" != yes ; then
8681          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
8682$as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
8683	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h.  */
8685#include <ldap.h>
8686int
8687main ()
8688{
8689LDAP *ldap; ldap->ld_errno;
8690  ;
8691  return 0;
8692}
8693_ACEOF
8694if ac_fn_c_try_link "$LINENO"; then :
8695  gnupg_cv_func_ldap_ld_errno=yes
8696else
8697  gnupg_cv_func_ldap_ld_errno=no
8698fi
8699rm -f core conftest.err conftest.$ac_objext \
8700    conftest$ac_exeext conftest.$ac_ext
8701          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
8702$as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
8703
8704	  if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
8705
8706$as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
8707
8708          fi
8709       fi
8710    fi
8711
8712    LIBS=$_ldap_save_libs
8713
8714    if test $have_ldap = yes ; then break; fi
8715done
8716
8717
8718
8719
8720# Checks for header files.
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8722$as_echo_n "checking for ANSI C header files... " >&6; }
8723if test "${ac_cv_header_stdc+set}" = set; then :
8724  $as_echo_n "(cached) " >&6
8725else
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728#include <stdlib.h>
8729#include <stdarg.h>
8730#include <string.h>
8731#include <float.h>
8732
8733int
8734main ()
8735{
8736
8737  ;
8738  return 0;
8739}
8740_ACEOF
8741if ac_fn_c_try_compile "$LINENO"; then :
8742  ac_cv_header_stdc=yes
8743else
8744  ac_cv_header_stdc=no
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747
8748if test $ac_cv_header_stdc = yes; then
8749  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752#include <string.h>
8753
8754_ACEOF
8755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8756  $EGREP "memchr" >/dev/null 2>&1; then :
8757
8758else
8759  ac_cv_header_stdc=no
8760fi
8761rm -f conftest*
8762
8763fi
8764
8765if test $ac_cv_header_stdc = yes; then
8766  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769#include <stdlib.h>
8770
8771_ACEOF
8772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8773  $EGREP "free" >/dev/null 2>&1; then :
8774
8775else
8776  ac_cv_header_stdc=no
8777fi
8778rm -f conftest*
8779
8780fi
8781
8782if test $ac_cv_header_stdc = yes; then
8783  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8784  if test "$cross_compiling" = yes; then :
8785  :
8786else
8787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h.  */
8789#include <ctype.h>
8790#include <stdlib.h>
8791#if ((' ' & 0x0FF) == 0x020)
8792# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8793# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8794#else
8795# define ISLOWER(c) \
8796		   (('a' <= (c) && (c) <= 'i') \
8797		     || ('j' <= (c) && (c) <= 'r') \
8798		     || ('s' <= (c) && (c) <= 'z'))
8799# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8800#endif
8801
8802#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8803int
8804main ()
8805{
8806  int i;
8807  for (i = 0; i < 256; i++)
8808    if (XOR (islower (i), ISLOWER (i))
8809	|| toupper (i) != TOUPPER (i))
8810      return 2;
8811  return 0;
8812}
8813_ACEOF
8814if ac_fn_c_try_run "$LINENO"; then :
8815
8816else
8817  ac_cv_header_stdc=no
8818fi
8819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8820  conftest.$ac_objext conftest.beam conftest.$ac_ext
8821fi
8822
8823fi
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8826$as_echo "$ac_cv_header_stdc" >&6; }
8827if test $ac_cv_header_stdc = yes; then
8828
8829$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8830
8831fi
8832
8833for ac_header in string.h locale.h
8834do :
8835  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8837eval as_val=\$$as_ac_Header
8838   if test "x$as_val" = x""yes; then :
8839  cat >>confdefs.h <<_ACEOF
8840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841_ACEOF
8842
8843fi
8844
8845done
8846
8847
8848
8849# Checks for typedefs, structures, and compiler characteristics.
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8851$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8852if test "${ac_cv_c_const+set}" = set; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857
8858int
8859main ()
8860{
8861/* FIXME: Include the comments suggested by Paul. */
8862#ifndef __cplusplus
8863  /* Ultrix mips cc rejects this.  */
8864  typedef int charset[2];
8865  const charset cs;
8866  /* SunOS 4.1.1 cc rejects this.  */
8867  char const *const *pcpcc;
8868  char **ppc;
8869  /* NEC SVR4.0.2 mips cc rejects this.  */
8870  struct point {int x, y;};
8871  static struct point const zero = {0,0};
8872  /* AIX XL C 1.02.0.0 rejects this.
8873     It does not let you subtract one const X* pointer from another in
8874     an arm of an if-expression whose if-part is not a constant
8875     expression */
8876  const char *g = "string";
8877  pcpcc = &g + (g ? g-g : 0);
8878  /* HPUX 7.0 cc rejects these. */
8879  ++pcpcc;
8880  ppc = (char**) pcpcc;
8881  pcpcc = (char const *const *) ppc;
8882  { /* SCO 3.2v4 cc rejects this.  */
8883    char *t;
8884    char const *s = 0 ? (char *) 0 : (char const *) 0;
8885
8886    *t++ = 0;
8887    if (s) return 0;
8888  }
8889  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8890    int x[] = {25, 17};
8891    const int *foo = &x[0];
8892    ++foo;
8893  }
8894  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8895    typedef const int *iptr;
8896    iptr p = 0;
8897    ++p;
8898  }
8899  { /* AIX XL C 1.02.0.0 rejects this saying
8900       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8901    struct s { int j; const int *ap[3]; };
8902    struct s *b; b->j = 5;
8903  }
8904  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8905    const int foo = 10;
8906    if (!foo) return 0;
8907  }
8908  return !cs[0] && !zero.x;
8909#endif
8910
8911  ;
8912  return 0;
8913}
8914_ACEOF
8915if ac_fn_c_try_compile "$LINENO"; then :
8916  ac_cv_c_const=yes
8917else
8918  ac_cv_c_const=no
8919fi
8920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921fi
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8923$as_echo "$ac_cv_c_const" >&6; }
8924if test $ac_cv_c_const = no; then
8925
8926$as_echo "#define const /**/" >>confdefs.h
8927
8928fi
8929
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8931$as_echo_n "checking for inline... " >&6; }
8932if test "${ac_cv_c_inline+set}" = set; then :
8933  $as_echo_n "(cached) " >&6
8934else
8935  ac_cv_c_inline=no
8936for ac_kw in inline __inline__ __inline; do
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939#ifndef __cplusplus
8940typedef int foo_t;
8941static $ac_kw foo_t static_foo () {return 0; }
8942$ac_kw foo_t foo () {return 0; }
8943#endif
8944
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947  ac_cv_c_inline=$ac_kw
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950  test "$ac_cv_c_inline" != no && break
8951done
8952
8953fi
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8955$as_echo "$ac_cv_c_inline" >&6; }
8956
8957case $ac_cv_c_inline in
8958  inline | yes) ;;
8959  *)
8960    case $ac_cv_c_inline in
8961      no) ac_val=;;
8962      *) ac_val=$ac_cv_c_inline;;
8963    esac
8964    cat >>confdefs.h <<_ACEOF
8965#ifndef __cplusplus
8966#define inline $ac_val
8967#endif
8968_ACEOF
8969    ;;
8970esac
8971
8972ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8973if test "x$ac_cv_type_size_t" = x""yes; then :
8974
8975else
8976
8977cat >>confdefs.h <<_ACEOF
8978#define size_t unsigned int
8979_ACEOF
8980
8981fi
8982
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8984$as_echo_n "checking return type of signal handlers... " >&6; }
8985if test "${ac_cv_type_signal+set}" = set; then :
8986  $as_echo_n "(cached) " >&6
8987else
8988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h.  */
8990#include <sys/types.h>
8991#include <signal.h>
8992
8993int
8994main ()
8995{
8996return *(signal (0, 0)) (0) == 1;
8997  ;
8998  return 0;
8999}
9000_ACEOF
9001if ac_fn_c_try_compile "$LINENO"; then :
9002  ac_cv_type_signal=int
9003else
9004  ac_cv_type_signal=void
9005fi
9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9009$as_echo "$ac_cv_type_signal" >&6; }
9010
9011cat >>confdefs.h <<_ACEOF
9012#define RETSIGTYPE $ac_cv_type_signal
9013_ACEOF
9014
9015
9016ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9017/* NetBSD declares sys_siglist in unistd.h.  */
9018#ifdef HAVE_UNISTD_H
9019# include <unistd.h>
9020#endif
9021
9022"
9023if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9024  ac_have_decl=1
9025else
9026  ac_have_decl=0
9027fi
9028
9029cat >>confdefs.h <<_ACEOF
9030#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9031_ACEOF
9032
9033
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
9036$as_echo_n "checking for byte typedef... " >&6; }
9037    if test "${gnupg_cv_typedef_byte+set}" = set; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042#define _GNU_SOURCE 1
9043    #include <stdlib.h>
9044    #include <sys/types.h>
9045int
9046main ()
9047{
9048
9049    #undef byte
9050    int a = sizeof(byte);
9051
9052  ;
9053  return 0;
9054}
9055_ACEOF
9056if ac_fn_c_try_compile "$LINENO"; then :
9057  gnupg_cv_typedef_byte=yes
9058else
9059  gnupg_cv_typedef_byte=no
9060fi
9061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062fi
9063
9064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
9065$as_echo "$gnupg_cv_typedef_byte" >&6; }
9066    if test "$gnupg_cv_typedef_byte" = yes; then
9067
9068$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
9069
9070    fi
9071
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
9073$as_echo_n "checking for ushort typedef... " >&6; }
9074    if test "${gnupg_cv_typedef_ushort+set}" = set; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h.  */
9079#define _GNU_SOURCE 1
9080    #include <stdlib.h>
9081    #include <sys/types.h>
9082int
9083main ()
9084{
9085
9086    #undef ushort
9087    int a = sizeof(ushort);
9088
9089  ;
9090  return 0;
9091}
9092_ACEOF
9093if ac_fn_c_try_compile "$LINENO"; then :
9094  gnupg_cv_typedef_ushort=yes
9095else
9096  gnupg_cv_typedef_ushort=no
9097fi
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099fi
9100
9101    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
9102$as_echo "$gnupg_cv_typedef_ushort" >&6; }
9103    if test "$gnupg_cv_typedef_ushort" = yes; then
9104
9105$as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
9106
9107    fi
9108
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
9110$as_echo_n "checking for ulong typedef... " >&6; }
9111    if test "${gnupg_cv_typedef_ulong+set}" = set; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h.  */
9116#define _GNU_SOURCE 1
9117    #include <stdlib.h>
9118    #include <sys/types.h>
9119int
9120main ()
9121{
9122
9123    #undef ulong
9124    int a = sizeof(ulong);
9125
9126  ;
9127  return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_compile "$LINENO"; then :
9131  gnupg_cv_typedef_ulong=yes
9132else
9133  gnupg_cv_typedef_ulong=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136fi
9137
9138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
9139$as_echo "$gnupg_cv_typedef_ulong" >&6; }
9140    if test "$gnupg_cv_typedef_ulong" = yes; then
9141
9142$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
9143
9144    fi
9145
9146
9147
9148ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
9149"
9150if test "x$ac_cv_type_struct_sigaction" = x""yes; then :
9151
9152cat >>confdefs.h <<_ACEOF
9153#define HAVE_STRUCT_SIGACTION 1
9154_ACEOF
9155
9156
9157fi
9158ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
9159"
9160if test "x$ac_cv_type_sigset_t" = x""yes; then :
9161
9162cat >>confdefs.h <<_ACEOF
9163#define HAVE_SIGSET_T 1
9164_ACEOF
9165
9166
9167fi
9168
9169
9170
9171# Checks for library functions.
9172for ac_header in sys/stat.h unistd.h direct.h
9173do :
9174  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9176eval as_val=\$$as_ac_Header
9177   if test "x$as_val" = x""yes; then :
9178  cat >>confdefs.h <<_ACEOF
9179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180_ACEOF
9181
9182fi
9183
9184done
9185
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
9187$as_echo_n "checking if mkdir takes one argument... " >&6; }
9188if test "${gnupg_cv_mkdir_takes_one_arg+set}" = set; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193
9194#include <sys/types.h>
9195#ifdef HAVE_SYS_STAT_H
9196# include <sys/stat.h>
9197#endif
9198#ifdef HAVE_UNISTD_H
9199# include <unistd.h>
9200#endif
9201#ifdef HAVE_DIRECT_H
9202# include <direct.h>
9203#endif
9204int
9205main ()
9206{
9207mkdir ("foo", 0);
9208  ;
9209  return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_compile "$LINENO"; then :
9213  gnupg_cv_mkdir_takes_one_arg=no
9214else
9215  gnupg_cv_mkdir_takes_one_arg=yes
9216fi
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
9220$as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
9221if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
9222
9223$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
9224
9225fi
9226
9227
9228# begin jnlib checks - fixme: we should have a macros for them
9229for ac_func in memicmp stpcpy strsep strlwr strtoul memmove stricmp strtol
9230do :
9231  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9232ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9233eval as_val=\$$as_ac_var
9234   if test "x$as_val" = x""yes; then :
9235  cat >>confdefs.h <<_ACEOF
9236#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9237_ACEOF
9238
9239fi
9240done
9241
9242for ac_func in memrchr isascii timegm getrusage setrlimit stat setlocale
9243do :
9244  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9246eval as_val=\$$as_ac_var
9247   if test "x$as_val" = x""yes; then :
9248  cat >>confdefs.h <<_ACEOF
9249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9250_ACEOF
9251
9252fi
9253done
9254
9255for ac_func in flockfile funlockfile
9256do :
9257  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9258ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9259eval as_val=\$$as_ac_var
9260   if test "x$as_val" = x""yes; then :
9261  cat >>confdefs.h <<_ACEOF
9262#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9263_ACEOF
9264
9265fi
9266done
9267
9268for ac_func in funopen fopencookie
9269do :
9270  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9271ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9272eval as_val=\$$as_ac_var
9273   if test "x$as_val" = x""yes; then :
9274  cat >>confdefs.h <<_ACEOF
9275#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9276_ACEOF
9277
9278fi
9279done
9280
9281# end jnlib checks
9282
9283for ac_func in gmtime_r getaddrinfo strtoull
9284do :
9285  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9287eval as_val=\$$as_ac_var
9288   if test "x$as_val" = x""yes; then :
9289  cat >>confdefs.h <<_ACEOF
9290#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9291_ACEOF
9292
9293fi
9294done
9295
9296
9297for ac_func in mmap
9298do :
9299  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9300if test "x$ac_cv_func_mmap" = x""yes; then :
9301  cat >>confdefs.h <<_ACEOF
9302#define HAVE_MMAP 1
9303_ACEOF
9304
9305fi
9306done
9307
9308if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
9309  as_fn_error "Sorry, the current implemenation requires mmap." "$LINENO" 5
9310fi
9311
9312for ac_func in canonicalize_file_name
9313do :
9314  ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
9315if test "x$ac_cv_func_canonicalize_file_name" = x""yes; then :
9316  cat >>confdefs.h <<_ACEOF
9317#define HAVE_CANONICALIZE_FILE_NAME 1
9318_ACEOF
9319
9320fi
9321done
9322
9323
9324#
9325# Stuff which goes at the bottom of config.h.
9326#
9327
9328
9329
9330#
9331# Print errors here so that they are visible all
9332# together and the user can acquire them all together.
9333#
9334die=no
9335if test "$have_gpg_error" = "no"; then
9336   die=yes
9337   { $as_echo "$as_me:${as_lineno-$LINENO}:
9338***
9339*** You need libgpg-error to build this program.
9340**  This library is for example available at
9341***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
9342*** (at least version $NEED_GPG_ERROR_VERSION is required.)
9343***" >&5
9344$as_echo "$as_me:
9345***
9346*** You need libgpg-error to build this program.
9347**  This library is for example available at
9348***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
9349*** (at least version $NEED_GPG_ERROR_VERSION is required.)
9350***" >&6;}
9351fi
9352if test "$have_libgcrypt" = "no"; then
9353   die=yes
9354   { $as_echo "$as_me:${as_lineno-$LINENO}:
9355***
9356*** You need libgcrypt to build this program.
9357**  This library is for example available at
9358***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
9359*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)
9360***" >&5
9361$as_echo "$as_me:
9362***
9363*** You need libgcrypt to build this program.
9364**  This library is for example available at
9365***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
9366*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)
9367***" >&6;}
9368fi
9369if test "$have_libassuan" = "no"; then
9370   die=yes
9371   { $as_echo "$as_me:${as_lineno-$LINENO}:
9372***
9373*** You need libassuan to build this program.
9374*** This library is for example available at
9375***   ftp://ftp.gnupg.org/gcrypt/libassuan/
9376*** (at least version $NEED_LIBASSUAN_VERSION is required).
9377*** Note, that libassuan must have been build with Pth support.
9378***" >&5
9379$as_echo "$as_me:
9380***
9381*** You need libassuan to build this program.
9382*** This library is for example available at
9383***   ftp://ftp.gnupg.org/gcrypt/libassuan/
9384*** (at least version $NEED_LIBASSUAN_VERSION is required).
9385*** Note, that libassuan must have been build with Pth support.
9386***" >&6;}
9387fi
9388if test "$have_ksba" = "no"; then
9389   die=yes
9390    { $as_echo "$as_me:${as_lineno-$LINENO}:
9391***
9392*** You need libksba to build this program.
9393*** This library is for example available at
9394***   ftp://ftp.gnupg.org/gcrypt/libksba/
9395*** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required.)
9396***" >&5
9397$as_echo "$as_me:
9398***
9399*** You need libksba to build this program.
9400*** This library is for example available at
9401***   ftp://ftp.gnupg.org/gcrypt/libksba/
9402*** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required.)
9403***" >&6;}
9404fi
9405if test "$have_ldap" = "no"; then
9406   die=yes
9407    { $as_echo "$as_me:${as_lineno-$LINENO}:
9408***
9409*** You need a LDAP library to build this program.
9410*** Check out
9411***    http://www.openldap.org
9412*** for a suitable implementation.
9413***" >&5
9414$as_echo "$as_me:
9415***
9416*** You need a LDAP library to build this program.
9417*** Check out
9418***    http://www.openldap.org
9419*** for a suitable implementation.
9420***" >&6;}
9421fi
9422if test "$have_pth" = "no"; then
9423   die=yes
9424    { $as_echo "$as_me:${as_lineno-$LINENO}:
9425***
9426*** GNU Portable Threads Library not found.
9427*** Download GNU Pth from ftp://ftp.gnu.org/gnu/pth/
9428*** On a Debian GNU/Linux system you might want to try
9429***   apt-get install libpth-dev
9430***" >&5
9431$as_echo "$as_me:
9432***
9433*** GNU Portable Threads Library not found.
9434*** Download GNU Pth from ftp://ftp.gnu.org/gnu/pth/
9435*** On a Debian GNU/Linux system you might want to try
9436***   apt-get install libpth-dev
9437***" >&6;}
9438fi
9439
9440if test "$die" = "yes"; then
9441    as_fn_error "
9442***
9443*** Required libraries not found. Please consult the above messages
9444*** and install them before running configure again.
9445***" "$LINENO" 5
9446fi
9447
9448
9449
9450ac_config_files="$ac_config_files po/Makefile.in Makefile m4/Makefile jnlib/Makefile src/Makefile doc/Makefile doc/examples/Makefile tests/Makefile"
9451
9452cat >confcache <<\_ACEOF
9453# This file is a shell script that caches the results of configure
9454# tests run on this system so they can be shared between configure
9455# scripts and configure runs, see configure's option --config-cache.
9456# It is not useful on other systems.  If it contains results you don't
9457# want to keep, you may remove or edit it.
9458#
9459# config.status only pays attention to the cache file if you give it
9460# the --recheck option to rerun configure.
9461#
9462# `ac_cv_env_foo' variables (set or unset) will be overridden when
9463# loading this file, other *unset* `ac_cv_foo' will be assigned the
9464# following values.
9465
9466_ACEOF
9467
9468# The following way of writing the cache mishandles newlines in values,
9469# but we know of no workaround that is simple, portable, and efficient.
9470# So, we kill variables containing newlines.
9471# Ultrix sh set writes to stderr and can't be redirected directly,
9472# and sets the high bit in the cache file unless we assign to the vars.
9473(
9474  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9475    eval ac_val=\$$ac_var
9476    case $ac_val in #(
9477    *${as_nl}*)
9478      case $ac_var in #(
9479      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9481      esac
9482      case $ac_var in #(
9483      _ | IFS | as_nl) ;; #(
9484      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9485      *) { eval $ac_var=; unset $ac_var;} ;;
9486      esac ;;
9487    esac
9488  done
9489
9490  (set) 2>&1 |
9491    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9492    *${as_nl}ac_space=\ *)
9493      # `set' does not quote correctly, so add quotes: double-quote
9494      # substitution turns \\\\ into \\, and sed turns \\ into \.
9495      sed -n \
9496	"s/'/'\\\\''/g;
9497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9498      ;; #(
9499    *)
9500      # `set' quotes correctly as required by POSIX, so do not add quotes.
9501      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9502      ;;
9503    esac |
9504    sort
9505) |
9506  sed '
9507     /^ac_cv_env_/b end
9508     t clear
9509     :clear
9510     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9511     t end
9512     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9513     :end' >>confcache
9514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9515  if test -w "$cache_file"; then
9516    test "x$cache_file" != "x/dev/null" &&
9517      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9518$as_echo "$as_me: updating cache $cache_file" >&6;}
9519    cat confcache >$cache_file
9520  else
9521    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9523  fi
9524fi
9525rm -f confcache
9526
9527test "x$prefix" = xNONE && prefix=$ac_default_prefix
9528# Let make expand exec_prefix.
9529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9530
9531DEFS=-DHAVE_CONFIG_H
9532
9533ac_libobjs=
9534ac_ltlibobjs=
9535for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9536  # 1. Remove the extension, and $U if already installed.
9537  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9538  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9539  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9540  #    will be set to the directory where LIBOBJS objects are built.
9541  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9542  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9543done
9544LIBOBJS=$ac_libobjs
9545
9546LTLIBOBJS=$ac_ltlibobjs
9547
9548
9549if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9550  as_fn_error "conditional \"AMDEP\" was never defined.
9551Usually this means the macro was only invoked conditionally." "$LINENO" 5
9552fi
9553if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9554  as_fn_error "conditional \"am__fastdepCC\" was never defined.
9555Usually this means the macro was only invoked conditionally." "$LINENO" 5
9556fi
9557if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9558  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9559Usually this means the macro was only invoked conditionally." "$LINENO" 5
9560fi
9561if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9562  as_fn_error "conditional \"am__fastdepCC\" was never defined.
9563Usually this means the macro was only invoked conditionally." "$LINENO" 5
9564fi
9565if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
9566  as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
9567Usually this means the macro was only invoked conditionally." "$LINENO" 5
9568fi
9569
9570: ${CONFIG_STATUS=./config.status}
9571ac_write_fail=0
9572ac_clean_files_save=$ac_clean_files
9573ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9575$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9576as_write_fail=0
9577cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9578#! $SHELL
9579# Generated by $as_me.
9580# Run this file to recreate the current configuration.
9581# Compiler output produced by configure, useful for debugging
9582# configure, is in config.log if it exists.
9583
9584debug=false
9585ac_cs_recheck=false
9586ac_cs_silent=false
9587
9588SHELL=\${CONFIG_SHELL-$SHELL}
9589export SHELL
9590_ASEOF
9591cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9592## -------------------- ##
9593## M4sh Initialization. ##
9594## -------------------- ##
9595
9596# Be more Bourne compatible
9597DUALCASE=1; export DUALCASE # for MKS sh
9598if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9599  emulate sh
9600  NULLCMD=:
9601  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9602  # is contrary to our usage.  Disable this feature.
9603  alias -g '${1+"$@"}'='"$@"'
9604  setopt NO_GLOB_SUBST
9605else
9606  case `(set -o) 2>/dev/null` in #(
9607  *posix*) :
9608    set -o posix ;; #(
9609  *) :
9610     ;;
9611esac
9612fi
9613
9614
9615as_nl='
9616'
9617export as_nl
9618# Printing a long string crashes Solaris 7 /usr/bin/printf.
9619as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9621as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9622# Prefer a ksh shell builtin over an external printf program on Solaris,
9623# but without wasting forks for bash or zsh.
9624if test -z "$BASH_VERSION$ZSH_VERSION" \
9625    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9626  as_echo='print -r --'
9627  as_echo_n='print -rn --'
9628elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9629  as_echo='printf %s\n'
9630  as_echo_n='printf %s'
9631else
9632  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9633    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9634    as_echo_n='/usr/ucb/echo -n'
9635  else
9636    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9637    as_echo_n_body='eval
9638      arg=$1;
9639      case $arg in #(
9640      *"$as_nl"*)
9641	expr "X$arg" : "X\\(.*\\)$as_nl";
9642	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9643      esac;
9644      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9645    '
9646    export as_echo_n_body
9647    as_echo_n='sh -c $as_echo_n_body as_echo'
9648  fi
9649  export as_echo_body
9650  as_echo='sh -c $as_echo_body as_echo'
9651fi
9652
9653# The user is always right.
9654if test "${PATH_SEPARATOR+set}" != set; then
9655  PATH_SEPARATOR=:
9656  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9657    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9658      PATH_SEPARATOR=';'
9659  }
9660fi
9661
9662
9663# IFS
9664# We need space, tab and new line, in precisely that order.  Quoting is
9665# there to prevent editors from complaining about space-tab.
9666# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9667# splitting by setting IFS to empty value.)
9668IFS=" ""	$as_nl"
9669
9670# Find who we are.  Look in the path if we contain no directory separator.
9671case $0 in #((
9672  *[\\/]* ) as_myself=$0 ;;
9673  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674for as_dir in $PATH
9675do
9676  IFS=$as_save_IFS
9677  test -z "$as_dir" && as_dir=.
9678    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9679  done
9680IFS=$as_save_IFS
9681
9682     ;;
9683esac
9684# We did not find ourselves, most probably we were run as `sh COMMAND'
9685# in which case we are not to be found in the path.
9686if test "x$as_myself" = x; then
9687  as_myself=$0
9688fi
9689if test ! -f "$as_myself"; then
9690  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9691  exit 1
9692fi
9693
9694# Unset variables that we do not need and which cause bugs (e.g. in
9695# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9696# suppresses any "Segmentation fault" message there.  '((' could
9697# trigger a bug in pdksh 5.2.14.
9698for as_var in BASH_ENV ENV MAIL MAILPATH
9699do eval test x\${$as_var+set} = xset \
9700  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9701done
9702PS1='$ '
9703PS2='> '
9704PS4='+ '
9705
9706# NLS nuisances.
9707LC_ALL=C
9708export LC_ALL
9709LANGUAGE=C
9710export LANGUAGE
9711
9712# CDPATH.
9713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9714
9715
9716# as_fn_error ERROR [LINENO LOG_FD]
9717# ---------------------------------
9718# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9719# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9720# script with status $?, using 1 if that was 0.
9721as_fn_error ()
9722{
9723  as_status=$?; test $as_status -eq 0 && as_status=1
9724  if test "$3"; then
9725    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9726    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9727  fi
9728  $as_echo "$as_me: error: $1" >&2
9729  as_fn_exit $as_status
9730} # as_fn_error
9731
9732
9733# as_fn_set_status STATUS
9734# -----------------------
9735# Set $? to STATUS, without forking.
9736as_fn_set_status ()
9737{
9738  return $1
9739} # as_fn_set_status
9740
9741# as_fn_exit STATUS
9742# -----------------
9743# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9744as_fn_exit ()
9745{
9746  set +e
9747  as_fn_set_status $1
9748  exit $1
9749} # as_fn_exit
9750
9751# as_fn_unset VAR
9752# ---------------
9753# Portably unset VAR.
9754as_fn_unset ()
9755{
9756  { eval $1=; unset $1;}
9757}
9758as_unset=as_fn_unset
9759# as_fn_append VAR VALUE
9760# ----------------------
9761# Append the text in VALUE to the end of the definition contained in VAR. Take
9762# advantage of any shell optimizations that allow amortized linear growth over
9763# repeated appends, instead of the typical quadratic growth present in naive
9764# implementations.
9765if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9766  eval 'as_fn_append ()
9767  {
9768    eval $1+=\$2
9769  }'
9770else
9771  as_fn_append ()
9772  {
9773    eval $1=\$$1\$2
9774  }
9775fi # as_fn_append
9776
9777# as_fn_arith ARG...
9778# ------------------
9779# Perform arithmetic evaluation on the ARGs, and store the result in the
9780# global $as_val. Take advantage of shells that can avoid forks. The arguments
9781# must be portable across $(()) and expr.
9782if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9783  eval 'as_fn_arith ()
9784  {
9785    as_val=$(( $* ))
9786  }'
9787else
9788  as_fn_arith ()
9789  {
9790    as_val=`expr "$@" || test $? -eq 1`
9791  }
9792fi # as_fn_arith
9793
9794
9795if expr a : '\(a\)' >/dev/null 2>&1 &&
9796   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9797  as_expr=expr
9798else
9799  as_expr=false
9800fi
9801
9802if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9803  as_basename=basename
9804else
9805  as_basename=false
9806fi
9807
9808if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9809  as_dirname=dirname
9810else
9811  as_dirname=false
9812fi
9813
9814as_me=`$as_basename -- "$0" ||
9815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9816	 X"$0" : 'X\(//\)$' \| \
9817	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9818$as_echo X/"$0" |
9819    sed '/^.*\/\([^/][^/]*\)\/*$/{
9820	    s//\1/
9821	    q
9822	  }
9823	  /^X\/\(\/\/\)$/{
9824	    s//\1/
9825	    q
9826	  }
9827	  /^X\/\(\/\).*/{
9828	    s//\1/
9829	    q
9830	  }
9831	  s/.*/./; q'`
9832
9833# Avoid depending upon Character Ranges.
9834as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9835as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9836as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9837as_cr_digits='0123456789'
9838as_cr_alnum=$as_cr_Letters$as_cr_digits
9839
9840ECHO_C= ECHO_N= ECHO_T=
9841case `echo -n x` in #(((((
9842-n*)
9843  case `echo 'xy\c'` in
9844  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9845  xy)  ECHO_C='\c';;
9846  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9847       ECHO_T='	';;
9848  esac;;
9849*)
9850  ECHO_N='-n';;
9851esac
9852
9853rm -f conf$$ conf$$.exe conf$$.file
9854if test -d conf$$.dir; then
9855  rm -f conf$$.dir/conf$$.file
9856else
9857  rm -f conf$$.dir
9858  mkdir conf$$.dir 2>/dev/null
9859fi
9860if (echo >conf$$.file) 2>/dev/null; then
9861  if ln -s conf$$.file conf$$ 2>/dev/null; then
9862    as_ln_s='ln -s'
9863    # ... but there are two gotchas:
9864    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9865    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9866    # In both cases, we have to default to `cp -p'.
9867    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9868      as_ln_s='cp -p'
9869  elif ln conf$$.file conf$$ 2>/dev/null; then
9870    as_ln_s=ln
9871  else
9872    as_ln_s='cp -p'
9873  fi
9874else
9875  as_ln_s='cp -p'
9876fi
9877rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9878rmdir conf$$.dir 2>/dev/null
9879
9880
9881# as_fn_mkdir_p
9882# -------------
9883# Create "$as_dir" as a directory, including parents if necessary.
9884as_fn_mkdir_p ()
9885{
9886
9887  case $as_dir in #(
9888  -*) as_dir=./$as_dir;;
9889  esac
9890  test -d "$as_dir" || eval $as_mkdir_p || {
9891    as_dirs=
9892    while :; do
9893      case $as_dir in #(
9894      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9895      *) as_qdir=$as_dir;;
9896      esac
9897      as_dirs="'$as_qdir' $as_dirs"
9898      as_dir=`$as_dirname -- "$as_dir" ||
9899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9900	 X"$as_dir" : 'X\(//\)[^/]' \| \
9901	 X"$as_dir" : 'X\(//\)$' \| \
9902	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9903$as_echo X"$as_dir" |
9904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9905	    s//\1/
9906	    q
9907	  }
9908	  /^X\(\/\/\)[^/].*/{
9909	    s//\1/
9910	    q
9911	  }
9912	  /^X\(\/\/\)$/{
9913	    s//\1/
9914	    q
9915	  }
9916	  /^X\(\/\).*/{
9917	    s//\1/
9918	    q
9919	  }
9920	  s/.*/./; q'`
9921      test -d "$as_dir" && break
9922    done
9923    test -z "$as_dirs" || eval "mkdir $as_dirs"
9924  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9925
9926
9927} # as_fn_mkdir_p
9928if mkdir -p . 2>/dev/null; then
9929  as_mkdir_p='mkdir -p "$as_dir"'
9930else
9931  test -d ./-p && rmdir ./-p
9932  as_mkdir_p=false
9933fi
9934
9935if test -x / >/dev/null 2>&1; then
9936  as_test_x='test -x'
9937else
9938  if ls -dL / >/dev/null 2>&1; then
9939    as_ls_L_option=L
9940  else
9941    as_ls_L_option=
9942  fi
9943  as_test_x='
9944    eval sh -c '\''
9945      if test -d "$1"; then
9946	test -d "$1/.";
9947      else
9948	case $1 in #(
9949	-*)set "./$1";;
9950	esac;
9951	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9952	???[sx]*):;;*)false;;esac;fi
9953    '\'' sh
9954  '
9955fi
9956as_executable_p=$as_test_x
9957
9958# Sed expression to map a string onto a valid CPP name.
9959as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9960
9961# Sed expression to map a string onto a valid variable name.
9962as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9963
9964
9965exec 6>&1
9966## ----------------------------------- ##
9967## Main body of $CONFIG_STATUS script. ##
9968## ----------------------------------- ##
9969_ASEOF
9970test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9971
9972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9973# Save the log message, to keep $0 and so on meaningful, and to
9974# report actual input values of CONFIG_FILES etc. instead of their
9975# values after options handling.
9976ac_log="
9977This file was extended by dirmngr $as_me 1.1.0, which was
9978generated by GNU Autoconf 2.64.  Invocation command line was
9979
9980  CONFIG_FILES    = $CONFIG_FILES
9981  CONFIG_HEADERS  = $CONFIG_HEADERS
9982  CONFIG_LINKS    = $CONFIG_LINKS
9983  CONFIG_COMMANDS = $CONFIG_COMMANDS
9984  $ $0 $@
9985
9986on `(hostname || uname -n) 2>/dev/null | sed 1q`
9987"
9988
9989_ACEOF
9990
9991case $ac_config_files in *"
9992"*) set x $ac_config_files; shift; ac_config_files=$*;;
9993esac
9994
9995case $ac_config_headers in *"
9996"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9997esac
9998
9999
10000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10001# Files that config.status was made for.
10002config_files="$ac_config_files"
10003config_headers="$ac_config_headers"
10004config_commands="$ac_config_commands"
10005
10006_ACEOF
10007
10008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10009ac_cs_usage="\
10010\`$as_me' instantiates files and other configuration actions
10011from templates according to the current configuration.  Unless the files
10012and actions are specified as TAGs, all are instantiated by default.
10013
10014Usage: $0 [OPTION]... [TAG]...
10015
10016  -h, --help       print this help, then exit
10017  -V, --version    print version number and configuration settings, then exit
10018  -q, --quiet, --silent
10019                   do not print progress messages
10020  -d, --debug      don't remove temporary files
10021      --recheck    update $as_me by reconfiguring in the same conditions
10022      --file=FILE[:TEMPLATE]
10023                   instantiate the configuration file FILE
10024      --header=FILE[:TEMPLATE]
10025                   instantiate the configuration header FILE
10026
10027Configuration files:
10028$config_files
10029
10030Configuration headers:
10031$config_headers
10032
10033Configuration commands:
10034$config_commands
10035
10036Report bugs to <bug-dirmngr@gnupg.org>."
10037
10038_ACEOF
10039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10040ac_cs_version="\\
10041dirmngr config.status 1.1.0
10042configured by $0, generated by GNU Autoconf 2.64,
10043  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10044
10045Copyright (C) 2009 Free Software Foundation, Inc.
10046This config.status script is free software; the Free Software Foundation
10047gives unlimited permission to copy, distribute and modify it."
10048
10049ac_pwd='$ac_pwd'
10050srcdir='$srcdir'
10051INSTALL='$INSTALL'
10052MKDIR_P='$MKDIR_P'
10053AWK='$AWK'
10054test -n "\$AWK" || AWK=awk
10055_ACEOF
10056
10057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10058# The default lists apply if the user does not specify any file.
10059ac_need_defaults=:
10060while test $# != 0
10061do
10062  case $1 in
10063  --*=*)
10064    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10065    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10066    ac_shift=:
10067    ;;
10068  *)
10069    ac_option=$1
10070    ac_optarg=$2
10071    ac_shift=shift
10072    ;;
10073  esac
10074
10075  case $ac_option in
10076  # Handling of the options.
10077  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10078    ac_cs_recheck=: ;;
10079  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10080    $as_echo "$ac_cs_version"; exit ;;
10081  --debug | --debu | --deb | --de | --d | -d )
10082    debug=: ;;
10083  --file | --fil | --fi | --f )
10084    $ac_shift
10085    case $ac_optarg in
10086    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10087    esac
10088    as_fn_append CONFIG_FILES " '$ac_optarg'"
10089    ac_need_defaults=false;;
10090  --header | --heade | --head | --hea )
10091    $ac_shift
10092    case $ac_optarg in
10093    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10094    esac
10095    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10096    ac_need_defaults=false;;
10097  --he | --h)
10098    # Conflict between --help and --header
10099    as_fn_error "ambiguous option: \`$1'
10100Try \`$0 --help' for more information.";;
10101  --help | --hel | -h )
10102    $as_echo "$ac_cs_usage"; exit ;;
10103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10104  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10105    ac_cs_silent=: ;;
10106
10107  # This is an error.
10108  -*) as_fn_error "unrecognized option: \`$1'
10109Try \`$0 --help' for more information." ;;
10110
10111  *) as_fn_append ac_config_targets " $1"
10112     ac_need_defaults=false ;;
10113
10114  esac
10115  shift
10116done
10117
10118ac_configure_extra_args=
10119
10120if $ac_cs_silent; then
10121  exec 6>/dev/null
10122  ac_configure_extra_args="$ac_configure_extra_args --silent"
10123fi
10124
10125_ACEOF
10126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10127if \$ac_cs_recheck; then
10128  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10129  shift
10130  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10131  CONFIG_SHELL='$SHELL'
10132  export CONFIG_SHELL
10133  exec "\$@"
10134fi
10135
10136_ACEOF
10137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10138exec 5>>config.log
10139{
10140  echo
10141  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10142## Running $as_me. ##
10143_ASBOX
10144  $as_echo "$ac_log"
10145} >&5
10146
10147_ACEOF
10148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10149#
10150# INIT-COMMANDS
10151#
10152AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10153# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10154    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10155    # from automake < 1.5.
10156    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10157    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10158    LINGUAS="${LINGUAS-%UNSET%}"
10159
10160
10161_ACEOF
10162
10163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10164
10165# Handling of arguments.
10166for ac_config_target in $ac_config_targets
10167do
10168  case $ac_config_target in
10169    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10170    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10171    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10172    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10173    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10174    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10175    "jnlib/Makefile") CONFIG_FILES="$CONFIG_FILES jnlib/Makefile" ;;
10176    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10177    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10178    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
10179    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10180
10181  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10182  esac
10183done
10184
10185
10186# If the user did not use the arguments to specify the items to instantiate,
10187# then the envvar interface is used.  Set only those that are not.
10188# We use the long form for the default assignment because of an extremely
10189# bizarre bug on SunOS 4.1.3.
10190if $ac_need_defaults; then
10191  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10192  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10193  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10194fi
10195
10196# Have a temporary directory for convenience.  Make it in the build tree
10197# simply because there is no reason against having it here, and in addition,
10198# creating and moving files from /tmp can sometimes cause problems.
10199# Hook for its removal unless debugging.
10200# Note that there is a small window in which the directory will not be cleaned:
10201# after its creation but before its name has been assigned to `$tmp'.
10202$debug ||
10203{
10204  tmp=
10205  trap 'exit_status=$?
10206  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10207' 0
10208  trap 'as_fn_exit 1' 1 2 13 15
10209}
10210# Create a (secure) tmp directory for tmp files.
10211
10212{
10213  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10214  test -n "$tmp" && test -d "$tmp"
10215}  ||
10216{
10217  tmp=./conf$$-$RANDOM
10218  (umask 077 && mkdir "$tmp")
10219} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10220
10221# Set up the scripts for CONFIG_FILES section.
10222# No need to generate them if there are no CONFIG_FILES.
10223# This happens for instance with `./config.status config.h'.
10224if test -n "$CONFIG_FILES"; then
10225
10226
10227ac_cr=`echo X | tr X '\015'`
10228# On cygwin, bash can eat \r inside `` if the user requested igncr.
10229# But we know of no other shell where ac_cr would be empty at this
10230# point, so we can use a bashism as a fallback.
10231if test "x$ac_cr" = x; then
10232  eval ac_cr=\$\'\\r\'
10233fi
10234ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10235if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10236  ac_cs_awk_cr='\r'
10237else
10238  ac_cs_awk_cr=$ac_cr
10239fi
10240
10241echo 'BEGIN {' >"$tmp/subs1.awk" &&
10242_ACEOF
10243
10244
10245{
10246  echo "cat >conf$$subs.awk <<_ACEOF" &&
10247  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10248  echo "_ACEOF"
10249} >conf$$subs.sh ||
10250  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10251ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10252ac_delim='%!_!# '
10253for ac_last_try in false false false false false :; do
10254  . ./conf$$subs.sh ||
10255    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10256
10257  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10258  if test $ac_delim_n = $ac_delim_num; then
10259    break
10260  elif $ac_last_try; then
10261    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10262  else
10263    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10264  fi
10265done
10266rm -f conf$$subs.sh
10267
10268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10269cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10270_ACEOF
10271sed -n '
10272h
10273s/^/S["/; s/!.*/"]=/
10274p
10275g
10276s/^[^!]*!//
10277:repl
10278t repl
10279s/'"$ac_delim"'$//
10280t delim
10281:nl
10282h
10283s/\(.\{148\}\).*/\1/
10284t more1
10285s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10286p
10287n
10288b repl
10289:more1
10290s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10291p
10292g
10293s/.\{148\}//
10294t nl
10295:delim
10296h
10297s/\(.\{148\}\).*/\1/
10298t more2
10299s/["\\]/\\&/g; s/^/"/; s/$/"/
10300p
10301b
10302:more2
10303s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10304p
10305g
10306s/.\{148\}//
10307t delim
10308' <conf$$subs.awk | sed '
10309/^[^""]/{
10310  N
10311  s/\n//
10312}
10313' >>$CONFIG_STATUS || ac_write_fail=1
10314rm -f conf$$subs.awk
10315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10316_ACAWK
10317cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10318  for (key in S) S_is_set[key] = 1
10319  FS = ""
10320
10321}
10322{
10323  line = $ 0
10324  nfields = split(line, field, "@")
10325  substed = 0
10326  len = length(field[1])
10327  for (i = 2; i < nfields; i++) {
10328    key = field[i]
10329    keylen = length(key)
10330    if (S_is_set[key]) {
10331      value = S[key]
10332      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10333      len += length(value) + length(field[++i])
10334      substed = 1
10335    } else
10336      len += 1 + keylen
10337  }
10338
10339  print line
10340}
10341
10342_ACAWK
10343_ACEOF
10344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10345if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10346  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10347else
10348  cat
10349fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10350  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10351_ACEOF
10352
10353# VPATH may cause trouble with some makes, so we remove $(srcdir),
10354# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10355# trailing colons and then remove the whole line if VPATH becomes empty
10356# (actually we leave an empty line to preserve line numbers).
10357if test "x$srcdir" = x.; then
10358  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
10359s/:*\$(srcdir):*/:/
10360s/:*\${srcdir}:*/:/
10361s/:*@srcdir@:*/:/
10362s/^\([^=]*=[	 ]*\):*/\1/
10363s/:*$//
10364s/^[^=]*=[	 ]*$//
10365}'
10366fi
10367
10368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10369fi # test -n "$CONFIG_FILES"
10370
10371# Set up the scripts for CONFIG_HEADERS section.
10372# No need to generate them if there are no CONFIG_HEADERS.
10373# This happens for instance with `./config.status Makefile'.
10374if test -n "$CONFIG_HEADERS"; then
10375cat >"$tmp/defines.awk" <<\_ACAWK ||
10376BEGIN {
10377_ACEOF
10378
10379# Transform confdefs.h into an awk script `defines.awk', embedded as
10380# here-document in config.status, that substitutes the proper values into
10381# config.h.in to produce config.h.
10382
10383# Create a delimiter string that does not exist in confdefs.h, to ease
10384# handling of long lines.
10385ac_delim='%!_!# '
10386for ac_last_try in false false :; do
10387  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10388  if test -z "$ac_t"; then
10389    break
10390  elif $ac_last_try; then
10391    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10392  else
10393    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10394  fi
10395done
10396
10397# For the awk script, D is an array of macro values keyed by name,
10398# likewise P contains macro parameters if any.  Preserve backslash
10399# newline sequences.
10400
10401ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10402sed -n '
10403s/.\{148\}/&'"$ac_delim"'/g
10404t rset
10405:rset
10406s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10407t def
10408d
10409:def
10410s/\\$//
10411t bsnl
10412s/["\\]/\\&/g
10413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10414D["\1"]=" \3"/p
10415s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10416d
10417:bsnl
10418s/["\\]/\\&/g
10419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10420D["\1"]=" \3\\\\\\n"\\/p
10421t cont
10422s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10423t cont
10424d
10425:cont
10426n
10427s/.\{148\}/&'"$ac_delim"'/g
10428t clear
10429:clear
10430s/\\$//
10431t bsnlc
10432s/["\\]/\\&/g; s/^/"/; s/$/"/p
10433d
10434:bsnlc
10435s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10436b cont
10437' <confdefs.h | sed '
10438s/'"$ac_delim"'/"\\\
10439"/g' >>$CONFIG_STATUS || ac_write_fail=1
10440
10441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10442  for (key in D) D_is_set[key] = 1
10443  FS = ""
10444}
10445/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10446  line = \$ 0
10447  split(line, arg, " ")
10448  if (arg[1] == "#") {
10449    defundef = arg[2]
10450    mac1 = arg[3]
10451  } else {
10452    defundef = substr(arg[1], 2)
10453    mac1 = arg[2]
10454  }
10455  split(mac1, mac2, "(") #)
10456  macro = mac2[1]
10457  prefix = substr(line, 1, index(line, defundef) - 1)
10458  if (D_is_set[macro]) {
10459    # Preserve the white space surrounding the "#".
10460    print prefix "define", macro P[macro] D[macro]
10461    next
10462  } else {
10463    # Replace #undef with comments.  This is necessary, for example,
10464    # in the case of _POSIX_SOURCE, which is predefined and required
10465    # on some systems where configure will not decide to define it.
10466    if (defundef == "undef") {
10467      print "/*", prefix defundef, macro, "*/"
10468      next
10469    }
10470  }
10471}
10472{ print }
10473_ACAWK
10474_ACEOF
10475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10476  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10477fi # test -n "$CONFIG_HEADERS"
10478
10479
10480eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10481shift
10482for ac_tag
10483do
10484  case $ac_tag in
10485  :[FHLC]) ac_mode=$ac_tag; continue;;
10486  esac
10487  case $ac_mode$ac_tag in
10488  :[FHL]*:*);;
10489  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10490  :[FH]-) ac_tag=-:-;;
10491  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10492  esac
10493  ac_save_IFS=$IFS
10494  IFS=:
10495  set x $ac_tag
10496  IFS=$ac_save_IFS
10497  shift
10498  ac_file=$1
10499  shift
10500
10501  case $ac_mode in
10502  :L) ac_source=$1;;
10503  :[FH])
10504    ac_file_inputs=
10505    for ac_f
10506    do
10507      case $ac_f in
10508      -) ac_f="$tmp/stdin";;
10509      *) # Look for the file first in the build tree, then in the source tree
10510	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10511	 # because $ac_f cannot contain `:'.
10512	 test -f "$ac_f" ||
10513	   case $ac_f in
10514	   [\\/$]*) false;;
10515	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10516	   esac ||
10517	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10518      esac
10519      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10520      as_fn_append ac_file_inputs " '$ac_f'"
10521    done
10522
10523    # Let's still pretend it is `configure' which instantiates (i.e., don't
10524    # use $as_me), people would be surprised to read:
10525    #    /* config.h.  Generated by config.status.  */
10526    configure_input='Generated from '`
10527	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10528	`' by configure.'
10529    if test x"$ac_file" != x-; then
10530      configure_input="$ac_file.  $configure_input"
10531      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10532$as_echo "$as_me: creating $ac_file" >&6;}
10533    fi
10534    # Neutralize special characters interpreted by sed in replacement strings.
10535    case $configure_input in #(
10536    *\&* | *\|* | *\\* )
10537       ac_sed_conf_input=`$as_echo "$configure_input" |
10538       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10539    *) ac_sed_conf_input=$configure_input;;
10540    esac
10541
10542    case $ac_tag in
10543    *:-:* | *:-) cat >"$tmp/stdin" \
10544      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10545    esac
10546    ;;
10547  esac
10548
10549  ac_dir=`$as_dirname -- "$ac_file" ||
10550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10551	 X"$ac_file" : 'X\(//\)[^/]' \| \
10552	 X"$ac_file" : 'X\(//\)$' \| \
10553	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10554$as_echo X"$ac_file" |
10555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10556	    s//\1/
10557	    q
10558	  }
10559	  /^X\(\/\/\)[^/].*/{
10560	    s//\1/
10561	    q
10562	  }
10563	  /^X\(\/\/\)$/{
10564	    s//\1/
10565	    q
10566	  }
10567	  /^X\(\/\).*/{
10568	    s//\1/
10569	    q
10570	  }
10571	  s/.*/./; q'`
10572  as_dir="$ac_dir"; as_fn_mkdir_p
10573  ac_builddir=.
10574
10575case "$ac_dir" in
10576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10577*)
10578  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10579  # A ".." for each directory in $ac_dir_suffix.
10580  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10581  case $ac_top_builddir_sub in
10582  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10583  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10584  esac ;;
10585esac
10586ac_abs_top_builddir=$ac_pwd
10587ac_abs_builddir=$ac_pwd$ac_dir_suffix
10588# for backward compatibility:
10589ac_top_builddir=$ac_top_build_prefix
10590
10591case $srcdir in
10592  .)  # We are building in place.
10593    ac_srcdir=.
10594    ac_top_srcdir=$ac_top_builddir_sub
10595    ac_abs_top_srcdir=$ac_pwd ;;
10596  [\\/]* | ?:[\\/]* )  # Absolute name.
10597    ac_srcdir=$srcdir$ac_dir_suffix;
10598    ac_top_srcdir=$srcdir
10599    ac_abs_top_srcdir=$srcdir ;;
10600  *) # Relative name.
10601    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10602    ac_top_srcdir=$ac_top_build_prefix$srcdir
10603    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10604esac
10605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10606
10607
10608  case $ac_mode in
10609  :F)
10610  #
10611  # CONFIG_FILE
10612  #
10613
10614  case $INSTALL in
10615  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10616  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10617  esac
10618  ac_MKDIR_P=$MKDIR_P
10619  case $MKDIR_P in
10620  [\\/$]* | ?:[\\/]* ) ;;
10621  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10622  esac
10623_ACEOF
10624
10625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10626# If the template does not know about datarootdir, expand it.
10627# FIXME: This hack should be removed a few years after 2.60.
10628ac_datarootdir_hack=; ac_datarootdir_seen=
10629ac_sed_dataroot='
10630/datarootdir/ {
10631  p
10632  q
10633}
10634/@datadir@/p
10635/@docdir@/p
10636/@infodir@/p
10637/@localedir@/p
10638/@mandir@/p'
10639case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10640*datarootdir*) ac_datarootdir_seen=yes;;
10641*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10642  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10643$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10644_ACEOF
10645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10646  ac_datarootdir_hack='
10647  s&@datadir@&$datadir&g
10648  s&@docdir@&$docdir&g
10649  s&@infodir@&$infodir&g
10650  s&@localedir@&$localedir&g
10651  s&@mandir@&$mandir&g
10652  s&\\\${datarootdir}&$datarootdir&g' ;;
10653esac
10654_ACEOF
10655
10656# Neutralize VPATH when `$srcdir' = `.'.
10657# Shell code in configure.ac might set extrasub.
10658# FIXME: do we really want to maintain this feature?
10659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10660ac_sed_extra="$ac_vpsub
10661$extrasub
10662_ACEOF
10663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10664:t
10665/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10666s|@configure_input@|$ac_sed_conf_input|;t t
10667s&@top_builddir@&$ac_top_builddir_sub&;t t
10668s&@top_build_prefix@&$ac_top_build_prefix&;t t
10669s&@srcdir@&$ac_srcdir&;t t
10670s&@abs_srcdir@&$ac_abs_srcdir&;t t
10671s&@top_srcdir@&$ac_top_srcdir&;t t
10672s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10673s&@builddir@&$ac_builddir&;t t
10674s&@abs_builddir@&$ac_abs_builddir&;t t
10675s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10676s&@INSTALL@&$ac_INSTALL&;t t
10677s&@MKDIR_P@&$ac_MKDIR_P&;t t
10678$ac_datarootdir_hack
10679"
10680eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10681  || as_fn_error "could not create $ac_file" "$LINENO" 5
10682
10683test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10684  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10685  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10687which seems to be undefined.  Please make sure it is defined." >&5
10688$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10689which seems to be undefined.  Please make sure it is defined." >&2;}
10690
10691  rm -f "$tmp/stdin"
10692  case $ac_file in
10693  -) cat "$tmp/out" && rm -f "$tmp/out";;
10694  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10695  esac \
10696  || as_fn_error "could not create $ac_file" "$LINENO" 5
10697 ;;
10698  :H)
10699  #
10700  # CONFIG_HEADER
10701  #
10702  if test x"$ac_file" != x-; then
10703    {
10704      $as_echo "/* $configure_input  */" \
10705      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10706    } >"$tmp/config.h" \
10707      || as_fn_error "could not create $ac_file" "$LINENO" 5
10708    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10709      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10710$as_echo "$as_me: $ac_file is unchanged" >&6;}
10711    else
10712      rm -f "$ac_file"
10713      mv "$tmp/config.h" "$ac_file" \
10714	|| as_fn_error "could not create $ac_file" "$LINENO" 5
10715    fi
10716  else
10717    $as_echo "/* $configure_input  */" \
10718      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10719      || as_fn_error "could not create -" "$LINENO" 5
10720  fi
10721# Compute "$ac_file"'s index in $config_headers.
10722_am_arg="$ac_file"
10723_am_stamp_count=1
10724for _am_header in $config_headers :; do
10725  case $_am_header in
10726    $_am_arg | $_am_arg:* )
10727      break ;;
10728    * )
10729      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10730  esac
10731done
10732echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10733$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10734	 X"$_am_arg" : 'X\(//\)[^/]' \| \
10735	 X"$_am_arg" : 'X\(//\)$' \| \
10736	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10737$as_echo X"$_am_arg" |
10738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10739	    s//\1/
10740	    q
10741	  }
10742	  /^X\(\/\/\)[^/].*/{
10743	    s//\1/
10744	    q
10745	  }
10746	  /^X\(\/\/\)$/{
10747	    s//\1/
10748	    q
10749	  }
10750	  /^X\(\/\).*/{
10751	    s//\1/
10752	    q
10753	  }
10754	  s/.*/./; q'`/stamp-h$_am_stamp_count
10755 ;;
10756
10757  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10758$as_echo "$as_me: executing $ac_file commands" >&6;}
10759 ;;
10760  esac
10761
10762
10763  case $ac_file$ac_mode in
10764    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
10765# are listed without --file.  Let's play safe and only enable the eval
10766# if we detect the quoting.
10767case $CONFIG_FILES in
10768*\'*) eval set x "$CONFIG_FILES" ;;
10769*)   set x $CONFIG_FILES ;;
10770esac
10771shift
10772for mf
10773do
10774  # Strip MF so we end up with the name of the file.
10775  mf=`echo "$mf" | sed -e 's/:.*$//'`
10776  # Check whether this is an Automake generated Makefile or not.
10777  # We used to match only the files named `Makefile.in', but
10778  # some people rename them; so instead we look at the file content.
10779  # Grep'ing the first line is not enough: some people post-process
10780  # each Makefile.in and add a new line on top of each file to say so.
10781  # Grep'ing the whole file is not good either: AIX grep has a line
10782  # limit of 2048, but all sed's we know have understand at least 4000.
10783  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10784    dirpart=`$as_dirname -- "$mf" ||
10785$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10786	 X"$mf" : 'X\(//\)[^/]' \| \
10787	 X"$mf" : 'X\(//\)$' \| \
10788	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10789$as_echo X"$mf" |
10790    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10791	    s//\1/
10792	    q
10793	  }
10794	  /^X\(\/\/\)[^/].*/{
10795	    s//\1/
10796	    q
10797	  }
10798	  /^X\(\/\/\)$/{
10799	    s//\1/
10800	    q
10801	  }
10802	  /^X\(\/\).*/{
10803	    s//\1/
10804	    q
10805	  }
10806	  s/.*/./; q'`
10807  else
10808    continue
10809  fi
10810  # Extract the definition of DEPDIR, am__include, and am__quote
10811  # from the Makefile without running `make'.
10812  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10813  test -z "$DEPDIR" && continue
10814  am__include=`sed -n 's/^am__include = //p' < "$mf"`
10815  test -z "am__include" && continue
10816  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10817  # When using ansi2knr, U may be empty or an underscore; expand it
10818  U=`sed -n 's/^U = //p' < "$mf"`
10819  # Find all dependency output files, they are included files with
10820  # $(DEPDIR) in their names.  We invoke sed twice because it is the
10821  # simplest approach to changing $(DEPDIR) to its actual value in the
10822  # expansion.
10823  for file in `sed -n "
10824    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10825       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10826    # Make sure the directory exists.
10827    test -f "$dirpart/$file" && continue
10828    fdir=`$as_dirname -- "$file" ||
10829$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10830	 X"$file" : 'X\(//\)[^/]' \| \
10831	 X"$file" : 'X\(//\)$' \| \
10832	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10833$as_echo X"$file" |
10834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10835	    s//\1/
10836	    q
10837	  }
10838	  /^X\(\/\/\)[^/].*/{
10839	    s//\1/
10840	    q
10841	  }
10842	  /^X\(\/\/\)$/{
10843	    s//\1/
10844	    q
10845	  }
10846	  /^X\(\/\).*/{
10847	    s//\1/
10848	    q
10849	  }
10850	  s/.*/./; q'`
10851    as_dir=$dirpart/$fdir; as_fn_mkdir_p
10852    # echo "creating $dirpart/$file"
10853    echo '# dummy' > "$dirpart/$file"
10854  done
10855done
10856 ;;
10857    "po-directories":C)
10858    for ac_file in $CONFIG_FILES; do
10859      # Support "outfile[:infile[:infile...]]"
10860      case "$ac_file" in
10861        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10862      esac
10863      # PO directories have a Makefile.in generated from Makefile.in.in.
10864      case "$ac_file" in */Makefile.in)
10865        # Adjust a relative srcdir.
10866        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10867        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10868        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10869        # In autoconf-2.13 it is called $ac_given_srcdir.
10870        # In autoconf-2.50 it is called $srcdir.
10871        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10872        case "$ac_given_srcdir" in
10873          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10874          /*) top_srcdir="$ac_given_srcdir" ;;
10875          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10876        esac
10877        # Treat a directory as a PO directory if and only if it has a
10878        # POTFILES.in file. This allows packages to have multiple PO
10879        # directories under different names or in different locations.
10880        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10881          rm -f "$ac_dir/POTFILES"
10882          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10883          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10884          POMAKEFILEDEPS="POTFILES.in"
10885          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10886          # on $ac_dir but don't depend on user-specified configuration
10887          # parameters.
10888          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10889            # The LINGUAS file contains the set of available languages.
10890            if test -n "$OBSOLETE_ALL_LINGUAS"; then
10891              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10892            fi
10893            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10894            # Hide the ALL_LINGUAS assigment from automake < 1.5.
10895            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10896            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10897          else
10898            # The set of available languages was given in configure.in.
10899            # Hide the ALL_LINGUAS assigment from automake < 1.5.
10900            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10901          fi
10902          # Compute POFILES
10903          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10904          # Compute UPDATEPOFILES
10905          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10906          # Compute DUMMYPOFILES
10907          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10908          # Compute GMOFILES
10909          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10910          case "$ac_given_srcdir" in
10911            .) srcdirpre= ;;
10912            *) srcdirpre='$(srcdir)/' ;;
10913          esac
10914          POFILES=
10915          UPDATEPOFILES=
10916          DUMMYPOFILES=
10917          GMOFILES=
10918          for lang in $ALL_LINGUAS; do
10919            POFILES="$POFILES $srcdirpre$lang.po"
10920            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10921            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10922            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10923          done
10924          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10925          # environment variable.
10926          INST_LINGUAS=
10927          if test -n "$ALL_LINGUAS"; then
10928            for presentlang in $ALL_LINGUAS; do
10929              useit=no
10930              if test "%UNSET%" != "$LINGUAS"; then
10931                desiredlanguages="$LINGUAS"
10932              else
10933                desiredlanguages="$ALL_LINGUAS"
10934              fi
10935              for desiredlang in $desiredlanguages; do
10936                # Use the presentlang catalog if desiredlang is
10937                #   a. equal to presentlang, or
10938                #   b. a variant of presentlang (because in this case,
10939                #      presentlang can be used as a fallback for messages
10940                #      which are not translated in the desiredlang catalog).
10941                case "$desiredlang" in
10942                  "$presentlang"*) useit=yes;;
10943                esac
10944              done
10945              if test $useit = yes; then
10946                INST_LINGUAS="$INST_LINGUAS $presentlang"
10947              fi
10948            done
10949          fi
10950          CATALOGS=
10951          if test -n "$INST_LINGUAS"; then
10952            for lang in $INST_LINGUAS; do
10953              CATALOGS="$CATALOGS $lang.gmo"
10954            done
10955          fi
10956          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10957          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10958          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10959            if test -f "$f"; then
10960              case "$f" in
10961                *.orig | *.bak | *~) ;;
10962                *) cat "$f" >> "$ac_dir/Makefile" ;;
10963              esac
10964            fi
10965          done
10966        fi
10967        ;;
10968      esac
10969    done ;;
10970
10971  esac
10972done # for ac_tag
10973
10974
10975as_fn_exit 0
10976_ACEOF
10977ac_clean_files=$ac_clean_files_save
10978
10979test $ac_write_fail = 0 ||
10980  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10981
10982
10983# configure is writing to config.log, and then calls config.status.
10984# config.status does its own redirection, appending to config.log.
10985# Unfortunately, on DOS this fails, as config.log is still kept open
10986# by configure, so config.status won't be able to write to it; its
10987# output is simply discarded.  So we exec the FD to /dev/null,
10988# effectively closing config.log, so it can be properly (re)opened and
10989# appended to by config.status.  When coming back to configure, we
10990# need to make the FD available again.
10991if test "$no_create" != yes; then
10992  ac_cs_success=:
10993  ac_config_status_args=
10994  test "$silent" = yes &&
10995    ac_config_status_args="$ac_config_status_args --quiet"
10996  exec 5>/dev/null
10997  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10998  exec 5>>config.log
10999  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11000  # would make configure fail if this is the last instruction.
11001  $ac_cs_success || as_fn_exit $?
11002fi
11003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11006fi
11007
11008