~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2005-04-07 10:13:19 UTC
  • Revision ID: james.westby@ubuntu.com-20050407101319-rgc8m274vudkrfb9
Tags: 1.9.15-6
* Move gpg-protect-tool to the gpgsm package.
  Closes: #303492.
  High urgency because this renders gpgsm unuseable for some people.
* gpg-agent: Override max-cache-ttl if a higher default is set.
  Closes: #302692.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for gnupg 1.9.15.
 
4
#
 
5
# Report bugs to <gnupg-devel@gnupg.org>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='gnupg'
 
271
PACKAGE_TARNAME='gnupg'
 
272
PACKAGE_VERSION='1.9.15'
 
273
PACKAGE_STRING='gnupg 1.9.15'
 
274
PACKAGE_BUGREPORT='gnupg-devel@gnupg.org'
 
275
 
 
276
ac_unique_file="sm/gpgsm.c"
 
277
# Factoring default headers for most tests.
 
278
ac_includes_default="\
 
279
#include <stdio.h>
 
280
#if HAVE_SYS_TYPES_H
 
281
# include <sys/types.h>
 
282
#endif
 
283
#if HAVE_SYS_STAT_H
 
284
# include <sys/stat.h>
 
285
#endif
 
286
#if STDC_HEADERS
 
287
# include <stdlib.h>
 
288
# include <stddef.h>
 
289
#else
 
290
# if HAVE_STDLIB_H
 
291
#  include <stdlib.h>
 
292
# endif
 
293
#endif
 
294
#if HAVE_STRING_H
 
295
# if !STDC_HEADERS && HAVE_MEMORY_H
 
296
#  include <memory.h>
 
297
# endif
 
298
# include <string.h>
 
299
#endif
 
300
#if HAVE_STRINGS_H
 
301
# include <strings.h>
 
302
#endif
 
303
#if HAVE_INTTYPES_H
 
304
# include <inttypes.h>
 
305
#else
 
306
# if HAVE_STDINT_H
 
307
#  include <stdint.h>
 
308
# endif
 
309
#endif
 
310
#if HAVE_UNISTD_H
 
311
# include <unistd.h>
 
312
#endif"
 
313
 
 
314
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PACKAGE_GT GNUPG_AGENT_PGM GNUPG_AGENT_PGM_TRUE GNUPG_AGENT_PGM_FALSE GNUPG_PINENTRY_PGM GNUPG_PINENTRY_PGM_TRUE GNUPG_PINENTRY_PGM_FALSE GNUPG_SCDAEMON_PGM GNUPG_SCDAEMON_PGM_TRUE GNUPG_SCDAEMON_PGM_FALSE GNUPG_DIRMNGR_PGM GNUPG_DIRMNGR_PGM_TRUE GNUPG_DIRMNGR_PGM_FALSE GNUPG_PROTECT_TOOL_PGM GNUPG_PROTECT_TOOL_PGM_TRUE GNUPG_PROTECT_TOOL_PGM_FALSE GPGKEYS_HKP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB AR ac_ct_AR PERL DOCBOOK_TO_MAN HAVE_DOCBOOK_TO_MAN_TRUE HAVE_DOCBOOK_TO_MAN_FALSE FAQPROG WORKING_FAQPROG_TRUE WORKING_FAQPROG_FALSE DOCBOOK_TO_TEXI HAVE_DOCBOOK_TO_TEXI_TRUE HAVE_DOCBOOK_TO_TEXI_FALSE HAVE_DOSISH_SYSTEM_TRUE HAVE_DOSISH_SYSTEM_FALSE HAVE_W32_SYSTEM_TRUE HAVE_W32_SYSTEM_FALSE GPG_ERROR_CONFIG GPG_ERROR_CFLAGS GPG_ERROR_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS LIBASSUAN_CONFIG LIBASSUAN_CFLAGS LIBASSUAN_LIBS KSBA_CONFIG KSBA_CFLAGS KSBA_LIBS LIBUSB_LIBS DL_LIBS OPENSC_CONFIG OPENSC_CFLAGS OPENSC_LIBS HAVE_OPENSC_TRUE HAVE_OPENSC_FALSE PTH_CONFIG PTH_CFLAGS PTH_LIBS SRVLIBS GPGKEYS_LDAP LDAPLIBS SENDMAIL GPGKEYS_MAILTO MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SHA512_O LIBOBJS CAPLIBS REGEX_O RUN_PKITS_TESTS_TRUE RUN_PKITS_TESTS_FALSE CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE NETLIBS W32LIBS BUILD_GPG_TRUE BUILD_GPG_FALSE BUILD_GPGSM_TRUE BUILD_GPGSM_FALSE BUILD_AGENT_TRUE BUILD_AGENT_FALSE BUILD_SCDAEMON_TRUE BUILD_SCDAEMON_FALSE LTLIBOBJS'
 
315
ac_subst_files=''
 
316
 
 
317
# Initialize some variables set by options.
 
318
ac_init_help=
 
319
ac_init_version=false
 
320
# The variables have the same names as the options, with
 
321
# dashes changed to underlines.
 
322
cache_file=/dev/null
 
323
exec_prefix=NONE
 
324
no_create=
 
325
no_recursion=
 
326
prefix=NONE
 
327
program_prefix=NONE
 
328
program_suffix=NONE
 
329
program_transform_name=s,x,x,
 
330
silent=
 
331
site=
 
332
srcdir=
 
333
verbose=
 
334
x_includes=NONE
 
335
x_libraries=NONE
 
336
 
 
337
# Installation directory options.
 
338
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
339
# and all the variables that are supposed to be based on exec_prefix
 
340
# by default will actually change.
 
341
# Use braces instead of parens because sh, perl, etc. also accept them.
 
342
bindir='${exec_prefix}/bin'
 
343
sbindir='${exec_prefix}/sbin'
 
344
libexecdir='${exec_prefix}/libexec'
 
345
datadir='${prefix}/share'
 
346
sysconfdir='${prefix}/etc'
 
347
sharedstatedir='${prefix}/com'
 
348
localstatedir='${prefix}/var'
 
349
libdir='${exec_prefix}/lib'
 
350
includedir='${prefix}/include'
 
351
oldincludedir='/usr/include'
 
352
infodir='${prefix}/info'
 
353
mandir='${prefix}/man'
 
354
 
 
355
ac_prev=
 
356
for ac_option
 
357
do
 
358
  # If the previous option needs an argument, assign it.
 
359
  if test -n "$ac_prev"; then
 
360
    eval "$ac_prev=\$ac_option"
 
361
    ac_prev=
 
362
    continue
 
363
  fi
 
364
 
 
365
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
366
 
 
367
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
368
 
 
369
  case $ac_option in
 
370
 
 
371
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
372
    ac_prev=bindir ;;
 
373
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
374
    bindir=$ac_optarg ;;
 
375
 
 
376
  -build | --build | --buil | --bui | --bu)
 
377
    ac_prev=build_alias ;;
 
378
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
379
    build_alias=$ac_optarg ;;
 
380
 
 
381
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
382
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
383
    ac_prev=cache_file ;;
 
384
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
385
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
386
    cache_file=$ac_optarg ;;
 
387
 
 
388
  --config-cache | -C)
 
389
    cache_file=config.cache ;;
 
390
 
 
391
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
392
    ac_prev=datadir ;;
 
393
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
394
  | --da=*)
 
395
    datadir=$ac_optarg ;;
 
396
 
 
397
  -disable-* | --disable-*)
 
398
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
399
    # Reject names that are not valid shell variable names.
 
400
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
401
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
402
   { (exit 1); exit 1; }; }
 
403
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
404
    eval "enable_$ac_feature=no" ;;
 
405
 
 
406
  -enable-* | --enable-*)
 
407
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
408
    # Reject names that are not valid shell variable names.
 
409
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
410
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
411
   { (exit 1); exit 1; }; }
 
412
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
413
    case $ac_option in
 
414
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
415
      *) ac_optarg=yes ;;
 
416
    esac
 
417
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
418
 
 
419
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
420
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
421
  | --exec | --exe | --ex)
 
422
    ac_prev=exec_prefix ;;
 
423
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
424
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
425
  | --exec=* | --exe=* | --ex=*)
 
426
    exec_prefix=$ac_optarg ;;
 
427
 
 
428
  -gas | --gas | --ga | --g)
 
429
    # Obsolete; use --with-gas.
 
430
    with_gas=yes ;;
 
431
 
 
432
  -help | --help | --hel | --he | -h)
 
433
    ac_init_help=long ;;
 
434
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
435
    ac_init_help=recursive ;;
 
436
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
437
    ac_init_help=short ;;
 
438
 
 
439
  -host | --host | --hos | --ho)
 
440
    ac_prev=host_alias ;;
 
441
  -host=* | --host=* | --hos=* | --ho=*)
 
442
    host_alias=$ac_optarg ;;
 
443
 
 
444
  -includedir | --includedir | --includedi | --included | --include \
 
445
  | --includ | --inclu | --incl | --inc)
 
446
    ac_prev=includedir ;;
 
447
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
448
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
449
    includedir=$ac_optarg ;;
 
450
 
 
451
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
452
    ac_prev=infodir ;;
 
453
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
454
    infodir=$ac_optarg ;;
 
455
 
 
456
  -libdir | --libdir | --libdi | --libd)
 
457
    ac_prev=libdir ;;
 
458
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
459
    libdir=$ac_optarg ;;
 
460
 
 
461
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
462
  | --libexe | --libex | --libe)
 
463
    ac_prev=libexecdir ;;
 
464
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
465
  | --libexe=* | --libex=* | --libe=*)
 
466
    libexecdir=$ac_optarg ;;
 
467
 
 
468
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
469
  | --localstate | --localstat | --localsta | --localst \
 
470
  | --locals | --local | --loca | --loc | --lo)
 
471
    ac_prev=localstatedir ;;
 
472
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
473
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
474
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
475
    localstatedir=$ac_optarg ;;
 
476
 
 
477
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
478
    ac_prev=mandir ;;
 
479
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
480
    mandir=$ac_optarg ;;
 
481
 
 
482
  -nfp | --nfp | --nf)
 
483
    # Obsolete; use --without-fp.
 
484
    with_fp=no ;;
 
485
 
 
486
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
487
  | --no-cr | --no-c | -n)
 
488
    no_create=yes ;;
 
489
 
 
490
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
491
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
492
    no_recursion=yes ;;
 
493
 
 
494
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
495
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
496
  | --oldin | --oldi | --old | --ol | --o)
 
497
    ac_prev=oldincludedir ;;
 
498
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
499
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
500
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
501
    oldincludedir=$ac_optarg ;;
 
502
 
 
503
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
504
    ac_prev=prefix ;;
 
505
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
506
    prefix=$ac_optarg ;;
 
507
 
 
508
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
509
  | --program-pre | --program-pr | --program-p)
 
510
    ac_prev=program_prefix ;;
 
511
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
512
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
513
    program_prefix=$ac_optarg ;;
 
514
 
 
515
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
516
  | --program-suf | --program-su | --program-s)
 
517
    ac_prev=program_suffix ;;
 
518
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
519
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
520
    program_suffix=$ac_optarg ;;
 
521
 
 
522
  -program-transform-name | --program-transform-name \
 
523
  | --program-transform-nam | --program-transform-na \
 
524
  | --program-transform-n | --program-transform- \
 
525
  | --program-transform | --program-transfor \
 
526
  | --program-transfo | --program-transf \
 
527
  | --program-trans | --program-tran \
 
528
  | --progr-tra | --program-tr | --program-t)
 
529
    ac_prev=program_transform_name ;;
 
530
  -program-transform-name=* | --program-transform-name=* \
 
531
  | --program-transform-nam=* | --program-transform-na=* \
 
532
  | --program-transform-n=* | --program-transform-=* \
 
533
  | --program-transform=* | --program-transfor=* \
 
534
  | --program-transfo=* | --program-transf=* \
 
535
  | --program-trans=* | --program-tran=* \
 
536
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
537
    program_transform_name=$ac_optarg ;;
 
538
 
 
539
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
540
  | -silent | --silent | --silen | --sile | --sil)
 
541
    silent=yes ;;
 
542
 
 
543
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
544
    ac_prev=sbindir ;;
 
545
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
546
  | --sbi=* | --sb=*)
 
547
    sbindir=$ac_optarg ;;
 
548
 
 
549
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
550
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
551
  | --sharedst | --shareds | --shared | --share | --shar \
 
552
  | --sha | --sh)
 
553
    ac_prev=sharedstatedir ;;
 
554
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
555
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
556
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
557
  | --sha=* | --sh=*)
 
558
    sharedstatedir=$ac_optarg ;;
 
559
 
 
560
  -site | --site | --sit)
 
561
    ac_prev=site ;;
 
562
  -site=* | --site=* | --sit=*)
 
563
    site=$ac_optarg ;;
 
564
 
 
565
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
566
    ac_prev=srcdir ;;
 
567
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
568
    srcdir=$ac_optarg ;;
 
569
 
 
570
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
571
  | --syscon | --sysco | --sysc | --sys | --sy)
 
572
    ac_prev=sysconfdir ;;
 
573
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
574
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
575
    sysconfdir=$ac_optarg ;;
 
576
 
 
577
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
578
    ac_prev=target_alias ;;
 
579
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
580
    target_alias=$ac_optarg ;;
 
581
 
 
582
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
583
    verbose=yes ;;
 
584
 
 
585
  -version | --version | --versio | --versi | --vers | -V)
 
586
    ac_init_version=: ;;
 
587
 
 
588
  -with-* | --with-*)
 
589
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
590
    # Reject names that are not valid shell variable names.
 
591
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
592
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
593
   { (exit 1); exit 1; }; }
 
594
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
595
    case $ac_option in
 
596
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
597
      *) ac_optarg=yes ;;
 
598
    esac
 
599
    eval "with_$ac_package='$ac_optarg'" ;;
 
600
 
 
601
  -without-* | --without-*)
 
602
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
603
    # Reject names that are not valid shell variable names.
 
604
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
605
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
606
   { (exit 1); exit 1; }; }
 
607
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
608
    eval "with_$ac_package=no" ;;
 
609
 
 
610
  --x)
 
611
    # Obsolete; use --with-x.
 
612
    with_x=yes ;;
 
613
 
 
614
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
615
  | --x-incl | --x-inc | --x-in | --x-i)
 
616
    ac_prev=x_includes ;;
 
617
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
618
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
619
    x_includes=$ac_optarg ;;
 
620
 
 
621
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
622
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
623
    ac_prev=x_libraries ;;
 
624
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
625
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
626
    x_libraries=$ac_optarg ;;
 
627
 
 
628
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
629
Try \`$0 --help' for more information." >&2
 
630
   { (exit 1); exit 1; }; }
 
631
    ;;
 
632
 
 
633
  *=*)
 
634
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
635
    # Reject names that are not valid shell variable names.
 
636
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
637
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
638
   { (exit 1); exit 1; }; }
 
639
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
640
    eval "$ac_envvar='$ac_optarg'"
 
641
    export $ac_envvar ;;
 
642
 
 
643
  *)
 
644
    # FIXME: should be removed in autoconf 3.0.
 
645
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
646
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
647
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
648
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
649
    ;;
 
650
 
 
651
  esac
 
652
done
 
653
 
 
654
if test -n "$ac_prev"; then
 
655
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
656
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
657
   { (exit 1); exit 1; }; }
 
658
fi
 
659
 
 
660
# Be sure to have absolute paths.
 
661
for ac_var in exec_prefix prefix
 
662
do
 
663
  eval ac_val=$`echo $ac_var`
 
664
  case $ac_val in
 
665
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
666
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
667
   { (exit 1); exit 1; }; };;
 
668
  esac
 
669
done
 
670
 
 
671
# Be sure to have absolute paths.
 
672
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
673
              localstatedir libdir includedir oldincludedir infodir mandir
 
674
do
 
675
  eval ac_val=$`echo $ac_var`
 
676
  case $ac_val in
 
677
    [\\/$]* | ?:[\\/]* ) ;;
 
678
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
679
   { (exit 1); exit 1; }; };;
 
680
  esac
 
681
done
 
682
 
 
683
# There might be people who depend on the old broken behavior: `$host'
 
684
# used to hold the argument of --host etc.
 
685
# FIXME: To remove some day.
 
686
build=$build_alias
 
687
host=$host_alias
 
688
target=$target_alias
 
689
 
 
690
# FIXME: To remove some day.
 
691
if test "x$host_alias" != x; then
 
692
  if test "x$build_alias" = x; then
 
693
    cross_compiling=maybe
 
694
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
695
    If a cross compiler is detected then cross compile mode will be used." >&2
 
696
  elif test "x$build_alias" != "x$host_alias"; then
 
697
    cross_compiling=yes
 
698
  fi
 
699
fi
 
700
 
 
701
ac_tool_prefix=
 
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
703
 
 
704
test "$silent" = yes && exec 6>/dev/null
 
705
 
 
706
 
 
707
# Find the source files, if location was not specified.
 
708
if test -z "$srcdir"; then
 
709
  ac_srcdir_defaulted=yes
 
710
  # Try the directory containing this script, then its parent.
 
711
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
712
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
713
         X"$0" : 'X\(//\)[^/]' \| \
 
714
         X"$0" : 'X\(//\)$' \| \
 
715
         X"$0" : 'X\(/\)' \| \
 
716
         .     : '\(.\)' 2>/dev/null ||
 
717
echo X"$0" |
 
718
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
719
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
720
          /^X\(\/\/\)$/{ s//\1/; q; }
 
721
          /^X\(\/\).*/{ s//\1/; q; }
 
722
          s/.*/./; q'`
 
723
  srcdir=$ac_confdir
 
724
  if test ! -r $srcdir/$ac_unique_file; then
 
725
    srcdir=..
 
726
  fi
 
727
else
 
728
  ac_srcdir_defaulted=no
 
729
fi
 
730
if test ! -r $srcdir/$ac_unique_file; then
 
731
  if test "$ac_srcdir_defaulted" = yes; then
 
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
733
   { (exit 1); exit 1; }; }
 
734
  else
 
735
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
736
   { (exit 1); exit 1; }; }
 
737
  fi
 
738
fi
 
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
740
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
741
   { (exit 1); exit 1; }; }
 
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
743
ac_env_build_alias_set=${build_alias+set}
 
744
ac_env_build_alias_value=$build_alias
 
745
ac_cv_env_build_alias_set=${build_alias+set}
 
746
ac_cv_env_build_alias_value=$build_alias
 
747
ac_env_host_alias_set=${host_alias+set}
 
748
ac_env_host_alias_value=$host_alias
 
749
ac_cv_env_host_alias_set=${host_alias+set}
 
750
ac_cv_env_host_alias_value=$host_alias
 
751
ac_env_target_alias_set=${target_alias+set}
 
752
ac_env_target_alias_value=$target_alias
 
753
ac_cv_env_target_alias_set=${target_alias+set}
 
754
ac_cv_env_target_alias_value=$target_alias
 
755
ac_env_CC_set=${CC+set}
 
756
ac_env_CC_value=$CC
 
757
ac_cv_env_CC_set=${CC+set}
 
758
ac_cv_env_CC_value=$CC
 
759
ac_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_env_CFLAGS_value=$CFLAGS
 
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
762
ac_cv_env_CFLAGS_value=$CFLAGS
 
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_env_LDFLAGS_value=$LDFLAGS
 
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
771
ac_env_CPP_set=${CPP+set}
 
772
ac_env_CPP_value=$CPP
 
773
ac_cv_env_CPP_set=${CPP+set}
 
774
ac_cv_env_CPP_value=$CPP
 
775
 
 
776
#
 
777
# Report the --help message.
 
778
#
 
779
if test "$ac_init_help" = "long"; then
 
780
  # Omit some internal or obsolete options to make the list less imposing.
 
781
  # This message is too long to be a string in the A/UX 3.1 sh.
 
782
  cat <<_ACEOF
 
783
\`configure' configures gnupg 1.9.15 to adapt to many kinds of systems.
 
784
 
 
785
Usage: $0 [OPTION]... [VAR=VALUE]...
 
786
 
 
787
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
788
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
789
 
 
790
Defaults for the options are specified in brackets.
 
791
 
 
792
Configuration:
 
793
  -h, --help              display this help and exit
 
794
      --help=short        display options specific to this package
 
795
      --help=recursive    display the short help of all the included packages
 
796
  -V, --version           display version information and exit
 
797
  -q, --quiet, --silent   do not print \`checking...' messages
 
798
      --cache-file=FILE   cache test results in FILE [disabled]
 
799
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
800
  -n, --no-create         do not create output files
 
801
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
802
 
 
803
_ACEOF
 
804
 
 
805
  cat <<_ACEOF
 
806
Installation directories:
 
807
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
808
                          [$ac_default_prefix]
 
809
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
810
                          [PREFIX]
 
811
 
 
812
By default, \`make install' will install all the files in
 
813
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
814
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
815
for instance \`--prefix=\$HOME'.
 
816
 
 
817
For better control, use the options below.
 
818
 
 
819
Fine tuning of the installation directories:
 
820
  --bindir=DIR           user executables [EPREFIX/bin]
 
821
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
822
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
823
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
824
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
825
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
826
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
827
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
828
  --includedir=DIR       C header files [PREFIX/include]
 
829
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
830
  --infodir=DIR          info documentation [PREFIX/info]
 
831
  --mandir=DIR           man documentation [PREFIX/man]
 
832
_ACEOF
 
833
 
 
834
  cat <<\_ACEOF
 
835
 
 
836
Program names:
 
837
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
838
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
839
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
840
 
 
841
System types:
 
842
  --build=BUILD     configure for building on BUILD [guessed]
 
843
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
844
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
845
_ACEOF
 
846
fi
 
847
 
 
848
if test -n "$ac_init_help"; then
 
849
  case $ac_init_help in
 
850
     short | recursive ) echo "Configuration of gnupg 1.9.15:";;
 
851
   esac
 
852
  cat <<\_ACEOF
 
853
 
 
854
Optional Features:
 
855
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
856
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
857
  --disable-gpg           do not build the gpg program
 
858
  --disable-gpgsm         do not build the gpgsm program
 
859
  --disable-agent         do not build the agent program
 
860
  --disable-scdaemon      do not build the scdaemon program
 
861
  --enable-agent-only     build only the gpg-agent
 
862
  --disable-exec          disable all external program execution
 
863
  --disable-photo-viewers disable photo ID viewers
 
864
  --disable-keyserver-helpers  disable all external keyserver support
 
865
  --disable-ldap          disable LDAP keyserver interface
 
866
  --disable-hkp           disable HKP keyserver interface
 
867
  --disable-mailto        disable email keyserver interface
 
868
  --disable-keyserver-path disable the exec-path option for keyserver helpers
 
869
  --enable-maintainer-mode enable make rules and dependencies not useful
 
870
                          (and sometimes confusing) to the casual installer
 
871
  --disable-dependency-tracking Speeds up one-time builds
 
872
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
873
  --disable-largefile     omit support for large files
 
874
  --disable-threads       allow building without Pth support
 
875
 
 
876
  --disable-dns-srv       disable the use of DNS SRV in HKP
 
877
  --disable-nls           do not use Native Language Support
 
878
  --disable-rpath         do not hardcode runtime library paths
 
879
  --disable-regex         do not handle regular expressions in trust sigs
 
880
 
 
881
Optional Packages:
 
882
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
883
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
884
  --with-agent-pgm=PATH  Use PATH as the default for the agent)
 
885
  --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
 
886
  --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
 
887
  --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
 
888
  --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
 
889
  --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
 
890
  --with-capabilities     use linux capabilities default=no
 
891
  --with-gpg-error-prefix=PFX
 
892
                          prefix where GPG Error is installed (optional)
 
893
  --with-libgcrypt-prefix=PFX
 
894
                          prefix where LIBGCRYPT is installed (optional)
 
895
  --with-libassuan-prefix=PFX
 
896
                          prefix where LIBASSUAN is installed (optional)
 
897
  --with-ksba-prefix=PFX  prefix where KSBA is installed (optional)
 
898
  --with-opensc-prefix=PFX
 
899
                          prefix where OpenSC is installed (optional)
 
900
  --with-pth-prefix=PFX   prefix where GNU Pth is installed (optional)
 
901
  --with-mailprog=NAME    use "NAME -t" for mail transport
 
902
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
903
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
904
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
905
  --with-included-gettext use the GNU gettext library included here
 
906
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
907
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
908
  --with-included-regex   use the included GNU regex library
 
909
  --with-zlib=DIR         use libz in DIR
 
910
  --with-pkits-tests      run the PKITS based tests
 
911
 
 
912
Some influential environment variables:
 
913
  CC          C compiler command
 
914
  CFLAGS      C compiler flags
 
915
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
916
              nonstandard directory <lib dir>
 
917
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
918
              headers in a nonstandard directory <include dir>
 
919
  CPP         C preprocessor
 
920
 
 
921
Use these variables to override the choices made by `configure' or to help
 
922
it to find libraries and programs with nonstandard names/locations.
 
923
 
 
924
Report bugs to <gnupg-devel@gnupg.org>.
 
925
_ACEOF
 
926
fi
 
927
 
 
928
if test "$ac_init_help" = "recursive"; then
 
929
  # If there are subdirs, report their specific --help.
 
930
  ac_popdir=`pwd`
 
931
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
932
    test -d $ac_dir || continue
 
933
    ac_builddir=.
 
934
 
 
935
if test "$ac_dir" != .; then
 
936
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
937
  # A "../" for each directory in $ac_dir_suffix.
 
938
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
939
else
 
940
  ac_dir_suffix= ac_top_builddir=
 
941
fi
 
942
 
 
943
case $srcdir in
 
944
  .)  # No --srcdir option.  We are building in place.
 
945
    ac_srcdir=.
 
946
    if test -z "$ac_top_builddir"; then
 
947
       ac_top_srcdir=.
 
948
    else
 
949
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
950
    fi ;;
 
951
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
952
    ac_srcdir=$srcdir$ac_dir_suffix;
 
953
    ac_top_srcdir=$srcdir ;;
 
954
  *) # Relative path.
 
955
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
956
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
957
esac
 
958
 
 
959
# Do not use `cd foo && pwd` to compute absolute paths, because
 
960
# the directories may not exist.
 
961
case `pwd` in
 
962
.) ac_abs_builddir="$ac_dir";;
 
963
*)
 
964
  case "$ac_dir" in
 
965
  .) ac_abs_builddir=`pwd`;;
 
966
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
967
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
968
  esac;;
 
969
esac
 
970
case $ac_abs_builddir in
 
971
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
972
*)
 
973
  case ${ac_top_builddir}. in
 
974
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
975
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
976
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
977
  esac;;
 
978
esac
 
979
case $ac_abs_builddir in
 
980
.) ac_abs_srcdir=$ac_srcdir;;
 
981
*)
 
982
  case $ac_srcdir in
 
983
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
984
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
985
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
986
  esac;;
 
987
esac
 
988
case $ac_abs_builddir in
 
989
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
990
*)
 
991
  case $ac_top_srcdir in
 
992
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
993
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
994
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
995
  esac;;
 
996
esac
 
997
 
 
998
    cd $ac_dir
 
999
    # Check for guested configure; otherwise get Cygnus style configure.
 
1000
    if test -f $ac_srcdir/configure.gnu; then
 
1001
      echo
 
1002
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1003
    elif test -f $ac_srcdir/configure; then
 
1004
      echo
 
1005
      $SHELL $ac_srcdir/configure  --help=recursive
 
1006
    elif test -f $ac_srcdir/configure.ac ||
 
1007
           test -f $ac_srcdir/configure.in; then
 
1008
      echo
 
1009
      $ac_configure --help
 
1010
    else
 
1011
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1012
    fi
 
1013
    cd "$ac_popdir"
 
1014
  done
 
1015
fi
 
1016
 
 
1017
test -n "$ac_init_help" && exit 0
 
1018
if $ac_init_version; then
 
1019
  cat <<\_ACEOF
 
1020
gnupg configure 1.9.15
 
1021
generated by GNU Autoconf 2.59
 
1022
 
 
1023
Copyright (C) 2003 Free Software Foundation, Inc.
 
1024
This configure script is free software; the Free Software Foundation
 
1025
gives unlimited permission to copy, distribute and modify it.
 
1026
_ACEOF
 
1027
  exit 0
 
1028
fi
 
1029
exec 5>config.log
 
1030
cat >&5 <<_ACEOF
 
1031
This file contains any messages produced by compilers while
 
1032
running configure, to aid debugging if configure makes a mistake.
 
1033
 
 
1034
It was created by gnupg $as_me 1.9.15, which was
 
1035
generated by GNU Autoconf 2.59.  Invocation command line was
 
1036
 
 
1037
  $ $0 $@
 
1038
 
 
1039
_ACEOF
 
1040
{
 
1041
cat <<_ASUNAME
 
1042
## --------- ##
 
1043
## Platform. ##
 
1044
## --------- ##
 
1045
 
 
1046
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1047
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1048
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1049
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1050
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1051
 
 
1052
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1053
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1054
 
 
1055
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1056
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1057
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1058
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1059
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1060
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1061
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1062
 
 
1063
_ASUNAME
 
1064
 
 
1065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1066
for as_dir in $PATH
 
1067
do
 
1068
  IFS=$as_save_IFS
 
1069
  test -z "$as_dir" && as_dir=.
 
1070
  echo "PATH: $as_dir"
 
1071
done
 
1072
 
 
1073
} >&5
 
1074
 
 
1075
cat >&5 <<_ACEOF
 
1076
 
 
1077
 
 
1078
## ----------- ##
 
1079
## Core tests. ##
 
1080
## ----------- ##
 
1081
 
 
1082
_ACEOF
 
1083
 
 
1084
 
 
1085
# Keep a trace of the command line.
 
1086
# Strip out --no-create and --no-recursion so they do not pile up.
 
1087
# Strip out --silent because we don't want to record it for future runs.
 
1088
# Also quote any args containing shell meta-characters.
 
1089
# Make two passes to allow for proper duplicate-argument suppression.
 
1090
ac_configure_args=
 
1091
ac_configure_args0=
 
1092
ac_configure_args1=
 
1093
ac_sep=
 
1094
ac_must_keep_next=false
 
1095
for ac_pass in 1 2
 
1096
do
 
1097
  for ac_arg
 
1098
  do
 
1099
    case $ac_arg in
 
1100
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1101
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1102
    | -silent | --silent | --silen | --sile | --sil)
 
1103
      continue ;;
 
1104
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1105
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1106
    esac
 
1107
    case $ac_pass in
 
1108
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1109
    2)
 
1110
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1111
      if test $ac_must_keep_next = true; then
 
1112
        ac_must_keep_next=false # Got value, back to normal.
 
1113
      else
 
1114
        case $ac_arg in
 
1115
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1116
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1117
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1118
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1119
            case "$ac_configure_args0 " in
 
1120
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1121
            esac
 
1122
            ;;
 
1123
          -* ) ac_must_keep_next=true ;;
 
1124
        esac
 
1125
      fi
 
1126
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1127
      # Get rid of the leading space.
 
1128
      ac_sep=" "
 
1129
      ;;
 
1130
    esac
 
1131
  done
 
1132
done
 
1133
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1134
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1135
 
 
1136
# When interrupted or exit'd, cleanup temporary files, and complete
 
1137
# config.log.  We remove comments because anyway the quotes in there
 
1138
# would cause problems or look ugly.
 
1139
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1140
# such as our DU 5.0 friend, will then `close' the trap.
 
1141
trap 'exit_status=$?
 
1142
  # Save into config.log some information that might help in debugging.
 
1143
  {
 
1144
    echo
 
1145
 
 
1146
    cat <<\_ASBOX
 
1147
## ---------------- ##
 
1148
## Cache variables. ##
 
1149
## ---------------- ##
 
1150
_ASBOX
 
1151
    echo
 
1152
    # The following way of writing the cache mishandles newlines in values,
 
1153
{
 
1154
  (set) 2>&1 |
 
1155
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1156
    *ac_space=\ *)
 
1157
      sed -n \
 
1158
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1159
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1160
      ;;
 
1161
    *)
 
1162
      sed -n \
 
1163
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1164
      ;;
 
1165
    esac;
 
1166
}
 
1167
    echo
 
1168
 
 
1169
    cat <<\_ASBOX
 
1170
## ----------------- ##
 
1171
## Output variables. ##
 
1172
## ----------------- ##
 
1173
_ASBOX
 
1174
    echo
 
1175
    for ac_var in $ac_subst_vars
 
1176
    do
 
1177
      eval ac_val=$`echo $ac_var`
 
1178
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1179
    done | sort
 
1180
    echo
 
1181
 
 
1182
    if test -n "$ac_subst_files"; then
 
1183
      cat <<\_ASBOX
 
1184
## ------------- ##
 
1185
## Output files. ##
 
1186
## ------------- ##
 
1187
_ASBOX
 
1188
      echo
 
1189
      for ac_var in $ac_subst_files
 
1190
      do
 
1191
        eval ac_val=$`echo $ac_var`
 
1192
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1193
      done | sort
 
1194
      echo
 
1195
    fi
 
1196
 
 
1197
    if test -s confdefs.h; then
 
1198
      cat <<\_ASBOX
 
1199
## ----------- ##
 
1200
## confdefs.h. ##
 
1201
## ----------- ##
 
1202
_ASBOX
 
1203
      echo
 
1204
      sed "/^$/d" confdefs.h | sort
 
1205
      echo
 
1206
    fi
 
1207
    test "$ac_signal" != 0 &&
 
1208
      echo "$as_me: caught signal $ac_signal"
 
1209
    echo "$as_me: exit $exit_status"
 
1210
  } >&5
 
1211
  rm -f core *.core &&
 
1212
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1213
    exit $exit_status
 
1214
     ' 0
 
1215
for ac_signal in 1 2 13 15; do
 
1216
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1217
done
 
1218
ac_signal=0
 
1219
 
 
1220
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1221
rm -rf conftest* confdefs.h
 
1222
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1223
echo >confdefs.h
 
1224
 
 
1225
# Predefined preprocessor variables.
 
1226
 
 
1227
cat >>confdefs.h <<_ACEOF
 
1228
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1229
_ACEOF
 
1230
 
 
1231
 
 
1232
cat >>confdefs.h <<_ACEOF
 
1233
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1234
_ACEOF
 
1235
 
 
1236
 
 
1237
cat >>confdefs.h <<_ACEOF
 
1238
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1239
_ACEOF
 
1240
 
 
1241
 
 
1242
cat >>confdefs.h <<_ACEOF
 
1243
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1244
_ACEOF
 
1245
 
 
1246
 
 
1247
cat >>confdefs.h <<_ACEOF
 
1248
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1249
_ACEOF
 
1250
 
 
1251
 
 
1252
# Let the site file select an alternate cache file if it wants to.
 
1253
# Prefer explicitly selected file to automatically selected ones.
 
1254
if test -z "$CONFIG_SITE"; then
 
1255
  if test "x$prefix" != xNONE; then
 
1256
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1257
  else
 
1258
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1259
  fi
 
1260
fi
 
1261
for ac_site_file in $CONFIG_SITE; do
 
1262
  if test -r "$ac_site_file"; then
 
1263
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1264
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1265
    sed 's/^/| /' "$ac_site_file" >&5
 
1266
    . "$ac_site_file"
 
1267
  fi
 
1268
done
 
1269
 
 
1270
if test -r "$cache_file"; then
 
1271
  # Some versions of bash will fail to source /dev/null (special
 
1272
  # files actually), so we avoid doing that.
 
1273
  if test -f "$cache_file"; then
 
1274
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1275
echo "$as_me: loading cache $cache_file" >&6;}
 
1276
    case $cache_file in
 
1277
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1278
      *)                      . ./$cache_file;;
 
1279
    esac
 
1280
  fi
 
1281
else
 
1282
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1283
echo "$as_me: creating cache $cache_file" >&6;}
 
1284
  >$cache_file
 
1285
fi
 
1286
 
 
1287
# Check that the precious variables saved in the cache have kept the same
 
1288
# value.
 
1289
ac_cache_corrupted=false
 
1290
for ac_var in `(set) 2>&1 |
 
1291
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1292
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1293
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1294
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1295
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1296
  case $ac_old_set,$ac_new_set in
 
1297
    set,)
 
1298
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1299
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1300
      ac_cache_corrupted=: ;;
 
1301
    ,set)
 
1302
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1303
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1304
      ac_cache_corrupted=: ;;
 
1305
    ,);;
 
1306
    *)
 
1307
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1308
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1309
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1310
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1311
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1312
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1313
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1314
        ac_cache_corrupted=:
 
1315
      fi;;
 
1316
  esac
 
1317
  # Pass precious variables to config.status.
 
1318
  if test "$ac_new_set" = set; then
 
1319
    case $ac_new_val in
 
1320
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1321
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1322
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1323
    esac
 
1324
    case " $ac_configure_args " in
 
1325
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1326
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1327
    esac
 
1328
  fi
 
1329
done
 
1330
if $ac_cache_corrupted; then
 
1331
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1332
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1333
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1334
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1335
   { (exit 1); exit 1; }; }
 
1336
fi
 
1337
 
 
1338
ac_ext=c
 
1339
ac_cpp='$CPP $CPPFLAGS'
 
1340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
 
1369
 
 
1370
# Set development_version to yes if the minor number is odd or you
 
1371
# feel that the default check for a development version is not
 
1372
# sufficient.
 
1373
development_version=yes
 
1374
NEED_GPG_ERROR_VERSION=1.0
 
1375
 
 
1376
NEED_LIBGCRYPT_API=1
 
1377
NEED_LIBGCRYPT_VERSION=1.1.94
 
1378
 
 
1379
NEED_LIBASSUAN_VERSION=0.6.9
 
1380
 
 
1381
NEED_KSBA_VERSION=0.9.7
 
1382
 
 
1383
NEED_OPENSC_VERSION=0.8.0
 
1384
 
 
1385
 
 
1386
 
 
1387
PACKAGE=$PACKAGE_NAME
 
1388
PACKAGE_GT=${PACKAGE_NAME}2
 
1389
VERSION=$PACKAGE_VERSION
 
1390
 
 
1391
ac_aux_dir=
 
1392
for ac_dir in scripts $srcdir/scripts; do
 
1393
  if test -f $ac_dir/install-sh; then
 
1394
    ac_aux_dir=$ac_dir
 
1395
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1396
    break
 
1397
  elif test -f $ac_dir/install.sh; then
 
1398
    ac_aux_dir=$ac_dir
 
1399
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1400
    break
 
1401
  elif test -f $ac_dir/shtool; then
 
1402
    ac_aux_dir=$ac_dir
 
1403
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1404
    break
 
1405
  fi
 
1406
done
 
1407
if test -z "$ac_aux_dir"; then
 
1408
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
 
1409
echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
 
1410
   { (exit 1); exit 1; }; }
 
1411
fi
 
1412
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1413
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1414
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1415
 
 
1416
 
 
1417
          ac_config_headers="$ac_config_headers config.h"
 
1418
 
 
1419
# Make sure we can run config.sub.
 
1420
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1421
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1422
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1423
   { (exit 1); exit 1; }; }
 
1424
 
 
1425
echo "$as_me:$LINENO: checking build system type" >&5
 
1426
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1427
if test "${ac_cv_build+set}" = set; then
 
1428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1429
else
 
1430
  ac_cv_build_alias=$build_alias
 
1431
test -z "$ac_cv_build_alias" &&
 
1432
  ac_cv_build_alias=`$ac_config_guess`
 
1433
test -z "$ac_cv_build_alias" &&
 
1434
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1435
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1436
   { (exit 1); exit 1; }; }
 
1437
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1438
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1439
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1440
   { (exit 1); exit 1; }; }
 
1441
 
 
1442
fi
 
1443
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1444
echo "${ECHO_T}$ac_cv_build" >&6
 
1445
build=$ac_cv_build
 
1446
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1447
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1448
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1449
 
 
1450
 
 
1451
echo "$as_me:$LINENO: checking host system type" >&5
 
1452
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1453
if test "${ac_cv_host+set}" = set; then
 
1454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1455
else
 
1456
  ac_cv_host_alias=$host_alias
 
1457
test -z "$ac_cv_host_alias" &&
 
1458
  ac_cv_host_alias=$ac_cv_build_alias
 
1459
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1460
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1461
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1462
   { (exit 1); exit 1; }; }
 
1463
 
 
1464
fi
 
1465
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1466
echo "${ECHO_T}$ac_cv_host" >&6
 
1467
host=$ac_cv_host
 
1468
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1469
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1470
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1471
 
 
1472
 
 
1473
echo "$as_me:$LINENO: checking target system type" >&5
 
1474
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1475
if test "${ac_cv_target+set}" = set; then
 
1476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1477
else
 
1478
  ac_cv_target_alias=$target_alias
 
1479
test "x$ac_cv_target_alias" = "x" &&
 
1480
  ac_cv_target_alias=$ac_cv_host_alias
 
1481
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1482
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1483
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1484
   { (exit 1); exit 1; }; }
 
1485
 
 
1486
fi
 
1487
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1488
echo "${ECHO_T}$ac_cv_target" >&6
 
1489
target=$ac_cv_target
 
1490
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1491
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1492
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1493
 
 
1494
 
 
1495
# The aliases save the names the user supplied, while $host etc.
 
1496
# will get canonicalized.
 
1497
test -n "$target_alias" &&
 
1498
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1499
    NONENONEs,x,x, &&
 
1500
  program_prefix=${target_alias}-
 
1501
am__api_version="1.7"
 
1502
# Find a good install program.  We prefer a C program (faster),
 
1503
# so one script is as good as another.  But avoid the broken or
 
1504
# incompatible versions:
 
1505
# SysV /etc/install, /usr/sbin/install
 
1506
# SunOS /usr/etc/install
 
1507
# IRIX /sbin/install
 
1508
# AIX /bin/install
 
1509
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1510
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1511
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1512
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1513
# OS/2's system install, which has a completely different semantic
 
1514
# ./install, which can be erroneously created by make from ./install.sh.
 
1515
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1516
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1517
if test -z "$INSTALL"; then
 
1518
if test "${ac_cv_path_install+set}" = set; then
 
1519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1520
else
 
1521
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1522
for as_dir in $PATH
 
1523
do
 
1524
  IFS=$as_save_IFS
 
1525
  test -z "$as_dir" && as_dir=.
 
1526
  # Account for people who put trailing slashes in PATH elements.
 
1527
case $as_dir/ in
 
1528
  ./ | .// | /cC/* | \
 
1529
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1530
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1531
  /usr/ucb/* ) ;;
 
1532
  *)
 
1533
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1534
    # Don't use installbsd from OSF since it installs stuff as root
 
1535
    # by default.
 
1536
    for ac_prog in ginstall scoinst install; do
 
1537
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1538
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1539
          if test $ac_prog = install &&
 
1540
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1541
            # AIX install.  It has an incompatible calling convention.
 
1542
            :
 
1543
          elif test $ac_prog = install &&
 
1544
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1545
            # program-specific install script used by HP pwplus--don't use.
 
1546
            :
 
1547
          else
 
1548
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1549
            break 3
 
1550
          fi
 
1551
        fi
 
1552
      done
 
1553
    done
 
1554
    ;;
 
1555
esac
 
1556
done
 
1557
 
 
1558
 
 
1559
fi
 
1560
  if test "${ac_cv_path_install+set}" = set; then
 
1561
    INSTALL=$ac_cv_path_install
 
1562
  else
 
1563
    # As a last resort, use the slow shell script.  We don't cache a
 
1564
    # path for INSTALL within a source directory, because that will
 
1565
    # break other packages using the cache if that directory is
 
1566
    # removed, or if the path is relative.
 
1567
    INSTALL=$ac_install_sh
 
1568
  fi
 
1569
fi
 
1570
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1571
echo "${ECHO_T}$INSTALL" >&6
 
1572
 
 
1573
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1574
# It thinks the first close brace ends the variable substitution.
 
1575
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1576
 
 
1577
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1578
 
 
1579
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1580
 
 
1581
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1582
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1583
# Just in case
 
1584
sleep 1
 
1585
echo timestamp > conftest.file
 
1586
# Do `set' in a subshell so we don't clobber the current shell's
 
1587
# arguments.  Must try -L first in case configure is actually a
 
1588
# symlink; some systems play weird games with the mod time of symlinks
 
1589
# (eg FreeBSD returns the mod time of the symlink's containing
 
1590
# directory).
 
1591
if (
 
1592
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1593
   if test "$*" = "X"; then
 
1594
      # -L didn't work.
 
1595
      set X `ls -t $srcdir/configure conftest.file`
 
1596
   fi
 
1597
   rm -f conftest.file
 
1598
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1599
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1600
 
 
1601
      # If neither matched, then we have a broken ls.  This can happen
 
1602
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1603
      # broken ls alias from the environment.  This has actually
 
1604
      # happened.  Such a system could not be considered "sane".
 
1605
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1606
alias in your environment" >&5
 
1607
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1608
alias in your environment" >&2;}
 
1609
   { (exit 1); exit 1; }; }
 
1610
   fi
 
1611
 
 
1612
   test "$2" = conftest.file
 
1613
   )
 
1614
then
 
1615
   # Ok.
 
1616
   :
 
1617
else
 
1618
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1619
Check your system clock" >&5
 
1620
echo "$as_me: error: newly created file is older than distributed files!
 
1621
Check your system clock" >&2;}
 
1622
   { (exit 1); exit 1; }; }
 
1623
fi
 
1624
echo "$as_me:$LINENO: result: yes" >&5
 
1625
echo "${ECHO_T}yes" >&6
 
1626
test "$program_prefix" != NONE &&
 
1627
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1628
# Use a double $ so make ignores it.
 
1629
test "$program_suffix" != NONE &&
 
1630
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1631
# Double any \ or $.  echo might interpret backslashes.
 
1632
# By default was `s,x,x', remove it if useless.
 
1633
cat <<\_ACEOF >conftest.sed
 
1634
s/[\\$]/&&/g;s/;s,x,x,$//
 
1635
_ACEOF
 
1636
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1637
rm conftest.sed
 
1638
 
 
1639
 
 
1640
# expand $ac_aux_dir to an absolute path
 
1641
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1642
 
 
1643
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1644
# Use eval to expand $SHELL
 
1645
if eval "$MISSING --run true"; then
 
1646
  am_missing_run="$MISSING --run "
 
1647
else
 
1648
  am_missing_run=
 
1649
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1650
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1651
fi
 
1652
 
 
1653
for ac_prog in gawk mawk nawk awk
 
1654
do
 
1655
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1656
set dummy $ac_prog; ac_word=$2
 
1657
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1659
if test "${ac_cv_prog_AWK+set}" = set; then
 
1660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1661
else
 
1662
  if test -n "$AWK"; then
 
1663
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1664
else
 
1665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1666
for as_dir in $PATH
 
1667
do
 
1668
  IFS=$as_save_IFS
 
1669
  test -z "$as_dir" && as_dir=.
 
1670
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1671
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1672
    ac_cv_prog_AWK="$ac_prog"
 
1673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1674
    break 2
 
1675
  fi
 
1676
done
 
1677
done
 
1678
 
 
1679
fi
 
1680
fi
 
1681
AWK=$ac_cv_prog_AWK
 
1682
if test -n "$AWK"; then
 
1683
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1684
echo "${ECHO_T}$AWK" >&6
 
1685
else
 
1686
  echo "$as_me:$LINENO: result: no" >&5
 
1687
echo "${ECHO_T}no" >&6
 
1688
fi
 
1689
 
 
1690
  test -n "$AWK" && break
 
1691
done
 
1692
 
 
1693
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1694
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1695
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1696
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1698
else
 
1699
  cat >conftest.make <<\_ACEOF
 
1700
all:
 
1701
        @echo 'ac_maketemp="$(MAKE)"'
 
1702
_ACEOF
 
1703
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1704
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1705
if test -n "$ac_maketemp"; then
 
1706
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1707
else
 
1708
  eval ac_cv_prog_make_${ac_make}_set=no
 
1709
fi
 
1710
rm -f conftest.make
 
1711
fi
 
1712
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1713
  echo "$as_me:$LINENO: result: yes" >&5
 
1714
echo "${ECHO_T}yes" >&6
 
1715
  SET_MAKE=
 
1716
else
 
1717
  echo "$as_me:$LINENO: result: no" >&5
 
1718
echo "${ECHO_T}no" >&6
 
1719
  SET_MAKE="MAKE=${MAKE-make}"
 
1720
fi
 
1721
 
 
1722
rm -rf .tst 2>/dev/null
 
1723
mkdir .tst 2>/dev/null
 
1724
if test -d .tst; then
 
1725
  am__leading_dot=.
 
1726
else
 
1727
  am__leading_dot=_
 
1728
fi
 
1729
rmdir .tst 2>/dev/null
 
1730
 
 
1731
 # test to see if srcdir already configured
 
1732
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1733
   test -f $srcdir/config.status; then
 
1734
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1735
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1736
   { (exit 1); exit 1; }; }
 
1737
fi
 
1738
 
 
1739
# test whether we have cygpath
 
1740
if test -z "$CYGPATH_W"; then
 
1741
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1742
    CYGPATH_W='cygpath -w'
 
1743
  else
 
1744
    CYGPATH_W=echo
 
1745
  fi
 
1746
fi
 
1747
 
 
1748
 
 
1749
# Define the identity of the package.
 
1750
 PACKAGE=$PACKAGE
 
1751
 VERSION=$VERSION
 
1752
 
 
1753
 
 
1754
cat >>confdefs.h <<_ACEOF
 
1755
#define PACKAGE "$PACKAGE"
 
1756
_ACEOF
 
1757
 
 
1758
 
 
1759
cat >>confdefs.h <<_ACEOF
 
1760
#define VERSION "$VERSION"
 
1761
_ACEOF
 
1762
 
 
1763
# Some tools Automake needs.
 
1764
 
 
1765
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1766
 
 
1767
 
 
1768
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1769
 
 
1770
 
 
1771
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1772
 
 
1773
 
 
1774
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1775
 
 
1776
 
 
1777
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1778
 
 
1779
 
 
1780
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1781
 
 
1782
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1783
 
 
1784
# Installed binaries are usually stripped using `strip' when the user
 
1785
# run `make install-strip'.  However `strip' might not be the right
 
1786
# tool to use in cross-compilation environments, therefore Automake
 
1787
# will honor the `STRIP' environment variable to overrule this program.
 
1788
if test "$cross_compiling" != no; then
 
1789
  if test -n "$ac_tool_prefix"; then
 
1790
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1791
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1792
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1794
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1796
else
 
1797
  if test -n "$STRIP"; then
 
1798
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1799
else
 
1800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1801
for as_dir in $PATH
 
1802
do
 
1803
  IFS=$as_save_IFS
 
1804
  test -z "$as_dir" && as_dir=.
 
1805
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1806
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1807
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1808
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1809
    break 2
 
1810
  fi
 
1811
done
 
1812
done
 
1813
 
 
1814
fi
 
1815
fi
 
1816
STRIP=$ac_cv_prog_STRIP
 
1817
if test -n "$STRIP"; then
 
1818
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1819
echo "${ECHO_T}$STRIP" >&6
 
1820
else
 
1821
  echo "$as_me:$LINENO: result: no" >&5
 
1822
echo "${ECHO_T}no" >&6
 
1823
fi
 
1824
 
 
1825
fi
 
1826
if test -z "$ac_cv_prog_STRIP"; then
 
1827
  ac_ct_STRIP=$STRIP
 
1828
  # Extract the first word of "strip", so it can be a program name with args.
 
1829
set dummy strip; ac_word=$2
 
1830
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1832
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1834
else
 
1835
  if test -n "$ac_ct_STRIP"; then
 
1836
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1837
else
 
1838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1839
for as_dir in $PATH
 
1840
do
 
1841
  IFS=$as_save_IFS
 
1842
  test -z "$as_dir" && as_dir=.
 
1843
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1844
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1845
    ac_cv_prog_ac_ct_STRIP="strip"
 
1846
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1847
    break 2
 
1848
  fi
 
1849
done
 
1850
done
 
1851
 
 
1852
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1853
fi
 
1854
fi
 
1855
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1856
if test -n "$ac_ct_STRIP"; then
 
1857
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1858
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1859
else
 
1860
  echo "$as_me:$LINENO: result: no" >&5
 
1861
echo "${ECHO_T}no" >&6
 
1862
fi
 
1863
 
 
1864
  STRIP=$ac_ct_STRIP
 
1865
else
 
1866
  STRIP="$ac_cv_prog_STRIP"
 
1867
fi
 
1868
 
 
1869
fi
 
1870
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1871
 
 
1872
# We need awk for the "check" target.  The system "awk" is bad on
 
1873
# some platforms.
 
1874
 
 
1875
 
 
1876
 
 
1877
 
 
1878
 
 
1879
cat >>confdefs.h <<\_ACEOF
 
1880
#define _GNU_SOURCE 1
 
1881
_ACEOF
 
1882
 
 
1883
 
 
1884
 
 
1885
# Some status variables to give feedback at the end of a configure run
 
1886
have_gpg_error=no
 
1887
have_libgcrypt=no
 
1888
have_libassuan=no
 
1889
have_ksba=no
 
1890
have_opensc=no
 
1891
have_pth=no
 
1892
 
 
1893
build_gpg=yes
 
1894
 
 
1895
      # Check whether --enable-gpg or --disable-gpg was given.
 
1896
if test "${enable_gpg+set}" = set; then
 
1897
  enableval="$enable_gpg"
 
1898
  build_gpg=$enableval
 
1899
else
 
1900
  build_gpg=yes
 
1901
fi;
 
1902
 
 
1903
   case "$build_gpg" in
 
1904
         no|yes)
 
1905
           ;;
 
1906
         *)
 
1907
           { { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-gpg" >&5
 
1908
echo "$as_me: error: only yes or no allowed for feature --enable-gpg" >&2;}
 
1909
   { (exit 1); exit 1; }; }
 
1910
           ;;
 
1911
   esac
 
1912
 
 
1913
build_gpgsm=yes
 
1914
 
 
1915
      # Check whether --enable-gpgsm or --disable-gpgsm was given.
 
1916
if test "${enable_gpgsm+set}" = set; then
 
1917
  enableval="$enable_gpgsm"
 
1918
  build_gpgsm=$enableval
 
1919
else
 
1920
  build_gpgsm=yes
 
1921
fi;
 
1922
 
 
1923
   case "$build_gpgsm" in
 
1924
         no|yes)
 
1925
           ;;
 
1926
         *)
 
1927
           { { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-gpgsm" >&5
 
1928
echo "$as_me: error: only yes or no allowed for feature --enable-gpgsm" >&2;}
 
1929
   { (exit 1); exit 1; }; }
 
1930
           ;;
 
1931
   esac
 
1932
 
 
1933
build_agent=yes
 
1934
 
 
1935
      # Check whether --enable-agent or --disable-agent was given.
 
1936
if test "${enable_agent+set}" = set; then
 
1937
  enableval="$enable_agent"
 
1938
  build_agent=$enableval
 
1939
else
 
1940
  build_agent=yes
 
1941
fi;
 
1942
 
 
1943
   case "$build_agent" in
 
1944
         no|yes)
 
1945
           ;;
 
1946
         *)
 
1947
           { { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-agent" >&5
 
1948
echo "$as_me: error: only yes or no allowed for feature --enable-agent" >&2;}
 
1949
   { (exit 1); exit 1; }; }
 
1950
           ;;
 
1951
   esac
 
1952
 
 
1953
build_scdaemon=yes
 
1954
 
 
1955
      # Check whether --enable-scdaemon or --disable-scdaemon was given.
 
1956
if test "${enable_scdaemon+set}" = set; then
 
1957
  enableval="$enable_scdaemon"
 
1958
  build_scdaemon=$enableval
 
1959
else
 
1960
  build_scdaemon=yes
 
1961
fi;
 
1962
 
 
1963
   case "$build_scdaemon" in
 
1964
         no|yes)
 
1965
           ;;
 
1966
         *)
 
1967
           { { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-scdaemon" >&5
 
1968
echo "$as_me: error: only yes or no allowed for feature --enable-scdaemon" >&2;}
 
1969
   { (exit 1); exit 1; }; }
 
1970
           ;;
 
1971
   esac
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
 
 
1979
cat >>confdefs.h <<_ACEOF
 
1980
#define PACKAGE "$PACKAGE"
 
1981
_ACEOF
 
1982
 
 
1983
 
 
1984
cat >>confdefs.h <<_ACEOF
 
1985
#define PACKAGE_GT "$PACKAGE_GT"
 
1986
_ACEOF
 
1987
 
 
1988
 
 
1989
cat >>confdefs.h <<_ACEOF
 
1990
#define VERSION "$VERSION"
 
1991
_ACEOF
 
1992
 
 
1993
 
 
1994
cat >>confdefs.h <<_ACEOF
 
1995
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1996
_ACEOF
 
1997
 
 
1998
 
 
1999
cat >>confdefs.h <<_ACEOF
 
2000
#define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
 
2001
_ACEOF
 
2002
 
 
2003
 
 
2004
cat >>confdefs.h <<_ACEOF
 
2005
#define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
 
2006
_ACEOF
 
2007
 
 
2008
 
 
2009
 
 
2010
 
 
2011
# The default is to use the modules from this package and the few
 
2012
# other packages in a standard place; i.e where this package gets
 
2013
# installed.  With these options it is possible to override these
 
2014
# ${prefix} depended values with fixed paths, which can't be replaced
 
2015
# at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
 
2016
 
 
2017
# Check whether --with-agent-pgm or --without-agent-pgm was given.
 
2018
if test "${with_agent_pgm+set}" = set; then
 
2019
  withval="$with_agent_pgm"
 
2020
  GNUPG_AGENT_PGM="$withval"
 
2021
else
 
2022
  GNUPG_AGENT_PGM=""
 
2023
fi;
 
2024
 
 
2025
 
 
2026
 
 
2027
if test -n "$GNUPG_AGENT_PGM"; then
 
2028
  GNUPG_AGENT_PGM_TRUE=
 
2029
  GNUPG_AGENT_PGM_FALSE='#'
 
2030
else
 
2031
  GNUPG_AGENT_PGM_TRUE='#'
 
2032
  GNUPG_AGENT_PGM_FALSE=
 
2033
fi
 
2034
 
 
2035
show_gnupg_agent_pgm="(default)"
 
2036
test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
 
2037
 
 
2038
 
 
2039
# Check whether --with-pinentry-pgm or --without-pinentry-pgm was given.
 
2040
if test "${with_pinentry_pgm+set}" = set; then
 
2041
  withval="$with_pinentry_pgm"
 
2042
  GNUPG_PINENTRY_PGM="$withval"
 
2043
else
 
2044
  GNUPG_PINENTRY_PGM=""
 
2045
fi;
 
2046
 
 
2047
 
 
2048
 
 
2049
if test -n "$GNUPG_PINENTRY_PGM"; then
 
2050
  GNUPG_PINENTRY_PGM_TRUE=
 
2051
  GNUPG_PINENTRY_PGM_FALSE='#'
 
2052
else
 
2053
  GNUPG_PINENTRY_PGM_TRUE='#'
 
2054
  GNUPG_PINENTRY_PGM_FALSE=
 
2055
fi
 
2056
 
 
2057
show_gnupg_pinentry_pgm="(default)"
 
2058
test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
 
2059
 
 
2060
 
 
2061
 
 
2062
# Check whether --with-scdaemon-pgm or --without-scdaemon-pgm was given.
 
2063
if test "${with_scdaemon_pgm+set}" = set; then
 
2064
  withval="$with_scdaemon_pgm"
 
2065
  GNUPG_SCDAEMON_PGM="$withval"
 
2066
else
 
2067
  GNUPG_SCDAEMON_PGM=""
 
2068
fi;
 
2069
 
 
2070
 
 
2071
 
 
2072
if test -n "$GNUPG_SCDAEMON_PGM"; then
 
2073
  GNUPG_SCDAEMON_PGM_TRUE=
 
2074
  GNUPG_SCDAEMON_PGM_FALSE='#'
 
2075
else
 
2076
  GNUPG_SCDAEMON_PGM_TRUE='#'
 
2077
  GNUPG_SCDAEMON_PGM_FALSE=
 
2078
fi
 
2079
 
 
2080
show_gnupg_scdaemon_pgm="(default)"
 
2081
test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
 
2082
 
 
2083
 
 
2084
 
 
2085
# Check whether --with-dirmngr-pgm or --without-dirmngr-pgm was given.
 
2086
if test "${with_dirmngr_pgm+set}" = set; then
 
2087
  withval="$with_dirmngr_pgm"
 
2088
  GNUPG_DIRMNGR_PGM="$withval"
 
2089
else
 
2090
  GNUPG_DIRMNGR_PGM=""
 
2091
fi;
 
2092
 
 
2093
 
 
2094
 
 
2095
if test -n "$GNUPG_DIRMNGR_PGM"; then
 
2096
  GNUPG_DIRMNGR_PGM_TRUE=
 
2097
  GNUPG_DIRMNGR_PGM_FALSE='#'
 
2098
else
 
2099
  GNUPG_DIRMNGR_PGM_TRUE='#'
 
2100
  GNUPG_DIRMNGR_PGM_FALSE=
 
2101
fi
 
2102
 
 
2103
show_gnupg_dirmngr_pgm="(default)"
 
2104
test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
 
2105
 
 
2106
 
 
2107
# Check whether --with-protect-tool-pgm or --without-protect-tool-pgm was given.
 
2108
if test "${with_protect_tool_pgm+set}" = set; then
 
2109
  withval="$with_protect_tool_pgm"
 
2110
  GNUPG_PROTECT_TOOL_PGM="$withval"
 
2111
else
 
2112
  GNUPG_PROTECT_TOOL_PGM=""
 
2113
fi;
 
2114
 
 
2115
 
 
2116
 
 
2117
if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
 
2118
  GNUPG_PROTECT_TOOL_PGM_TRUE=
 
2119
  GNUPG_PROTECT_TOOL_PGM_FALSE='#'
 
2120
else
 
2121
  GNUPG_PROTECT_TOOL_PGM_TRUE='#'
 
2122
  GNUPG_PROTECT_TOOL_PGM_FALSE=
 
2123
fi
 
2124
 
 
2125
show_gnupg_protect_tool_pgm="(default)"
 
2126
test -n "$GNUPG_PROTECT_TOOL_PGM" \
 
2127
      && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
 
2128
 
 
2129
 
 
2130
 
 
2131
# Some folks want to use only the agent form this packet.  Make it
 
2132
# easier for them by providing the configure option
 
2133
# --enable-only-agent.
 
2134
# Check whether --enable-agent-only or --disable-agent-only was given.
 
2135
if test "${enable_agent_only+set}" = set; then
 
2136
  enableval="$enable_agent_only"
 
2137
  build_agent_only=$enableval
 
2138
fi;
 
2139
 
 
2140
 
 
2141
# Configure option to allow or disallow execution of external
 
2142
# programs, like a photo viewer.
 
2143
echo "$as_me:$LINENO: checking whether to enable external program execution" >&5
 
2144
echo $ECHO_N "checking whether to enable external program execution... $ECHO_C" >&6
 
2145
# Check whether --enable-exec or --disable-exec was given.
 
2146
if test "${enable_exec+set}" = set; then
 
2147
  enableval="$enable_exec"
 
2148
  use_exec=$enableval
 
2149
fi;
 
2150
echo "$as_me:$LINENO: result: $use_exec" >&5
 
2151
echo "${ECHO_T}$use_exec" >&6
 
2152
if test "$use_exec" = no ; then
 
2153
 
 
2154
cat >>confdefs.h <<\_ACEOF
 
2155
#define NO_EXEC 1
 
2156
_ACEOF
 
2157
 
 
2158
fi
 
2159
 
 
2160
if test "$use_exec" = yes ; then
 
2161
  echo "$as_me:$LINENO: checking whether to enable photo ID viewing" >&5
 
2162
echo $ECHO_N "checking whether to enable photo ID viewing... $ECHO_C" >&6
 
2163
  # Check whether --enable-photo-viewers or --disable-photo-viewers was given.
 
2164
if test "${enable_photo_viewers+set}" = set; then
 
2165
  enableval="$enable_photo_viewers"
 
2166
  if test "$enableval" = no ; then
 
2167
 
 
2168
cat >>confdefs.h <<\_ACEOF
 
2169
#define DISABLE_PHOTO_VIEWER 1
 
2170
_ACEOF
 
2171
 
 
2172
      fi
 
2173
else
 
2174
  enableval=yes
 
2175
fi;
 
2176
  gnupg_cv_enable_photo_viewers=$enableval
 
2177
  echo "$as_me:$LINENO: result: $enableval" >&5
 
2178
echo "${ECHO_T}$enableval" >&6
 
2179
 
 
2180
  if test "$gnupg_cv_enable_photo_viewers" = yes ; then
 
2181
    echo "$as_me:$LINENO: checking whether to use a fixed photo ID viewer" >&5
 
2182
echo $ECHO_N "checking whether to use a fixed photo ID viewer... $ECHO_C" >&6
 
2183
 
 
2184
# Check whether --with-photo-viewer or --without-photo-viewer was given.
 
2185
if test "${with_photo_viewer+set}" = set; then
 
2186
  withval="$with_photo_viewer"
 
2187
  if test "$withval" = yes ; then
 
2188
           withval=no
 
2189
        elif test "$withval" != no ; then
 
2190
 
 
2191
cat >>confdefs.h <<_ACEOF
 
2192
#define FIXED_PHOTO_VIEWER "$withval"
 
2193
_ACEOF
 
2194
 
 
2195
        fi
 
2196
else
 
2197
  withval=no
 
2198
fi;
 
2199
    echo "$as_me:$LINENO: result: $withval" >&5
 
2200
echo "${ECHO_T}$withval" >&6
 
2201
  fi
 
2202
 
 
2203
  echo "$as_me:$LINENO: checking whether to enable external keyserver helpers" >&5
 
2204
echo $ECHO_N "checking whether to enable external keyserver helpers... $ECHO_C" >&6
 
2205
  # Check whether --enable-keyserver-helpers or --disable-keyserver-helpers was given.
 
2206
if test "${enable_keyserver_helpers+set}" = set; then
 
2207
  enableval="$enable_keyserver_helpers"
 
2208
  if test "$enableval" = no ; then
 
2209
 
 
2210
cat >>confdefs.h <<\_ACEOF
 
2211
#define DISABLE_KEYSERVER_HELPERS 1
 
2212
_ACEOF
 
2213
 
 
2214
      fi
 
2215
else
 
2216
  enableval=yes
 
2217
fi;
 
2218
  gnupg_cv_enable_keyserver_helpers=$enableval
 
2219
  echo "$as_me:$LINENO: result: $enableval" >&5
 
2220
echo "${ECHO_T}$enableval" >&6
 
2221
 
 
2222
  if test "$gnupg_cv_enable_keyserver_helpers" = yes ; then
 
2223
    echo "$as_me:$LINENO: checking whether LDAP keyserver support is requested" >&5
 
2224
echo $ECHO_N "checking whether LDAP keyserver support is requested... $ECHO_C" >&6
 
2225
    # Check whether --enable-ldap or --disable-ldap was given.
 
2226
if test "${enable_ldap+set}" = set; then
 
2227
  enableval="$enable_ldap"
 
2228
  try_ldap=$enableval
 
2229
else
 
2230
  try_ldap=yes
 
2231
fi;
 
2232
    echo "$as_me:$LINENO: result: $try_ldap" >&5
 
2233
echo "${ECHO_T}$try_ldap" >&6
 
2234
 
 
2235
    echo "$as_me:$LINENO: checking whether HKP keyserver support is requested" >&5
 
2236
echo $ECHO_N "checking whether HKP keyserver support is requested... $ECHO_C" >&6
 
2237
    # Check whether --enable-hkp or --disable-hkp was given.
 
2238
if test "${enable_hkp+set}" = set; then
 
2239
  enableval="$enable_hkp"
 
2240
  try_hkp=$enableval
 
2241
else
 
2242
  try_hkp=yes
 
2243
fi;
 
2244
    echo "$as_me:$LINENO: result: $try_hkp" >&5
 
2245
echo "${ECHO_T}$try_hkp" >&6
 
2246
 
 
2247
    if test "$try_hkp" = yes ; then
 
2248
      GPGKEYS_HKP="gpgkeys_hkp$EXEEXT"
 
2249
 
 
2250
    fi
 
2251
 
 
2252
    echo "$as_me:$LINENO: checking whether email keyserver support is requested" >&5
 
2253
echo $ECHO_N "checking whether email keyserver support is requested... $ECHO_C" >&6
 
2254
    # Check whether --enable-mailto or --disable-mailto was given.
 
2255
if test "${enable_mailto+set}" = set; then
 
2256
  enableval="$enable_mailto"
 
2257
  try_mailto=$enableval
 
2258
else
 
2259
  try_mailto=yes
 
2260
fi;
 
2261
    echo "$as_me:$LINENO: result: $try_mailto" >&5
 
2262
echo "${ECHO_T}$try_mailto" >&6
 
2263
    fi
 
2264
 
 
2265
    echo "$as_me:$LINENO: checking whether keyserver exec-path is enabled" >&5
 
2266
echo $ECHO_N "checking whether keyserver exec-path is enabled... $ECHO_C" >&6
 
2267
    # Check whether --enable-keyserver-path or --disable-keyserver-path was given.
 
2268
if test "${enable_keyserver_path+set}" = set; then
 
2269
  enableval="$enable_keyserver_path"
 
2270
  if test "$enableval" = no ; then
 
2271
 
 
2272
cat >>confdefs.h <<\_ACEOF
 
2273
#define DISABLE_KEYSERVER_PATH 1
 
2274
_ACEOF
 
2275
 
 
2276
        fi
 
2277
else
 
2278
  enableval=yes
 
2279
fi;
 
2280
    echo "$as_me:$LINENO: result: $enableval" >&5
 
2281
echo "${ECHO_T}$enableval" >&6
 
2282
  fi
 
2283
 
 
2284
echo "$as_me:$LINENO: checking whether use of capabilities is requested" >&5
 
2285
echo $ECHO_N "checking whether use of capabilities is requested... $ECHO_C" >&6
 
2286
 
 
2287
# Check whether --with-capabilities or --without-capabilities was given.
 
2288
if test "${with_capabilities+set}" = set; then
 
2289
  withval="$with_capabilities"
 
2290
  use_capabilities="$withval"
 
2291
else
 
2292
  use_capabilities=no
 
2293
fi;
 
2294
echo "$as_me:$LINENO: result: $use_capabilities" >&5
 
2295
echo "${ECHO_T}$use_capabilities" >&6
 
2296
 
 
2297
 
 
2298
 
 
2299
 
 
2300
 
 
2301
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2302
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
2303
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
2304
if test "${enable_maintainer_mode+set}" = set; then
 
2305
  enableval="$enable_maintainer_mode"
 
2306
  USE_MAINTAINER_MODE=$enableval
 
2307
else
 
2308
  USE_MAINTAINER_MODE=no
 
2309
fi;
 
2310
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2311
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
2312
 
 
2313
 
 
2314
if test $USE_MAINTAINER_MODE = yes; then
 
2315
  MAINTAINER_MODE_TRUE=
 
2316
  MAINTAINER_MODE_FALSE='#'
 
2317
else
 
2318
  MAINTAINER_MODE_TRUE='#'
 
2319
  MAINTAINER_MODE_FALSE=
 
2320
fi
 
2321
 
 
2322
  MAINT=$MAINTAINER_MODE_TRUE
 
2323
 
 
2324
 
 
2325
 
 
2326
# Checks for programs.
 
2327
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2328
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2329
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
2330
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2332
else
 
2333
  cat >conftest.make <<\_ACEOF
 
2334
all:
 
2335
        @echo 'ac_maketemp="$(MAKE)"'
 
2336
_ACEOF
 
2337
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2338
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
2339
if test -n "$ac_maketemp"; then
 
2340
  eval ac_cv_prog_make_${ac_make}_set=yes
 
2341
else
 
2342
  eval ac_cv_prog_make_${ac_make}_set=no
 
2343
fi
 
2344
rm -f conftest.make
 
2345
fi
 
2346
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
2347
  echo "$as_me:$LINENO: result: yes" >&5
 
2348
echo "${ECHO_T}yes" >&6
 
2349
  SET_MAKE=
 
2350
else
 
2351
  echo "$as_me:$LINENO: result: no" >&5
 
2352
echo "${ECHO_T}no" >&6
 
2353
  SET_MAKE="MAKE=${MAKE-make}"
 
2354
fi
 
2355
 
 
2356
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2357
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2358
# Just in case
 
2359
sleep 1
 
2360
echo timestamp > conftest.file
 
2361
# Do `set' in a subshell so we don't clobber the current shell's
 
2362
# arguments.  Must try -L first in case configure is actually a
 
2363
# symlink; some systems play weird games with the mod time of symlinks
 
2364
# (eg FreeBSD returns the mod time of the symlink's containing
 
2365
# directory).
 
2366
if (
 
2367
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2368
   if test "$*" = "X"; then
 
2369
      # -L didn't work.
 
2370
      set X `ls -t $srcdir/configure conftest.file`
 
2371
   fi
 
2372
   rm -f conftest.file
 
2373
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2374
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2375
 
 
2376
      # If neither matched, then we have a broken ls.  This can happen
 
2377
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2378
      # broken ls alias from the environment.  This has actually
 
2379
      # happened.  Such a system could not be considered "sane".
 
2380
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2381
alias in your environment" >&5
 
2382
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2383
alias in your environment" >&2;}
 
2384
   { (exit 1); exit 1; }; }
 
2385
   fi
 
2386
 
 
2387
   test "$2" = conftest.file
 
2388
   )
 
2389
then
 
2390
   # Ok.
 
2391
   :
 
2392
else
 
2393
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2394
Check your system clock" >&5
 
2395
echo "$as_me: error: newly created file is older than distributed files!
 
2396
Check your system clock" >&2;}
 
2397
   { (exit 1); exit 1; }; }
 
2398
fi
 
2399
echo "$as_me:$LINENO: result: yes" >&5
 
2400
echo "${ECHO_T}yes" >&6
 
2401
missing_dir=`cd $ac_aux_dir && pwd`
 
2402
 
 
2403
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
2404
 
 
2405
 
 
2406
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2407
 
 
2408
 
 
2409
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
2410
 
 
2411
 
 
2412
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2413
 
 
2414
 
 
2415
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2416
 
 
2417
for ac_prog in gawk mawk nawk awk
 
2418
do
 
2419
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2420
set dummy $ac_prog; ac_word=$2
 
2421
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2423
if test "${ac_cv_prog_AWK+set}" = set; then
 
2424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2425
else
 
2426
  if test -n "$AWK"; then
 
2427
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2428
else
 
2429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2430
for as_dir in $PATH
 
2431
do
 
2432
  IFS=$as_save_IFS
 
2433
  test -z "$as_dir" && as_dir=.
 
2434
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2435
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2436
    ac_cv_prog_AWK="$ac_prog"
 
2437
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2438
    break 2
 
2439
  fi
 
2440
done
 
2441
done
 
2442
 
 
2443
fi
 
2444
fi
 
2445
AWK=$ac_cv_prog_AWK
 
2446
if test -n "$AWK"; then
 
2447
  echo "$as_me:$LINENO: result: $AWK" >&5
 
2448
echo "${ECHO_T}$AWK" >&6
 
2449
else
 
2450
  echo "$as_me:$LINENO: result: no" >&5
 
2451
echo "${ECHO_T}no" >&6
 
2452
fi
 
2453
 
 
2454
  test -n "$AWK" && break
 
2455
done
 
2456
 
 
2457
ac_ext=c
 
2458
ac_cpp='$CPP $CPPFLAGS'
 
2459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2462
if test -n "$ac_tool_prefix"; then
 
2463
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2464
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2465
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2467
if test "${ac_cv_prog_CC+set}" = set; then
 
2468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2469
else
 
2470
  if test -n "$CC"; then
 
2471
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2472
else
 
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2474
for as_dir in $PATH
 
2475
do
 
2476
  IFS=$as_save_IFS
 
2477
  test -z "$as_dir" && as_dir=.
 
2478
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2479
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2480
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2481
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2482
    break 2
 
2483
  fi
 
2484
done
 
2485
done
 
2486
 
 
2487
fi
 
2488
fi
 
2489
CC=$ac_cv_prog_CC
 
2490
if test -n "$CC"; then
 
2491
  echo "$as_me:$LINENO: result: $CC" >&5
 
2492
echo "${ECHO_T}$CC" >&6
 
2493
else
 
2494
  echo "$as_me:$LINENO: result: no" >&5
 
2495
echo "${ECHO_T}no" >&6
 
2496
fi
 
2497
 
 
2498
fi
 
2499
if test -z "$ac_cv_prog_CC"; then
 
2500
  ac_ct_CC=$CC
 
2501
  # Extract the first word of "gcc", so it can be a program name with args.
 
2502
set dummy gcc; ac_word=$2
 
2503
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2505
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2507
else
 
2508
  if test -n "$ac_ct_CC"; then
 
2509
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2510
else
 
2511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2512
for as_dir in $PATH
 
2513
do
 
2514
  IFS=$as_save_IFS
 
2515
  test -z "$as_dir" && as_dir=.
 
2516
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2517
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2518
    ac_cv_prog_ac_ct_CC="gcc"
 
2519
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2520
    break 2
 
2521
  fi
 
2522
done
 
2523
done
 
2524
 
 
2525
fi
 
2526
fi
 
2527
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2528
if test -n "$ac_ct_CC"; then
 
2529
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2530
echo "${ECHO_T}$ac_ct_CC" >&6
 
2531
else
 
2532
  echo "$as_me:$LINENO: result: no" >&5
 
2533
echo "${ECHO_T}no" >&6
 
2534
fi
 
2535
 
 
2536
  CC=$ac_ct_CC
 
2537
else
 
2538
  CC="$ac_cv_prog_CC"
 
2539
fi
 
2540
 
 
2541
if test -z "$CC"; then
 
2542
  if test -n "$ac_tool_prefix"; then
 
2543
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2544
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2545
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2547
if test "${ac_cv_prog_CC+set}" = set; then
 
2548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2549
else
 
2550
  if test -n "$CC"; then
 
2551
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2552
else
 
2553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2554
for as_dir in $PATH
 
2555
do
 
2556
  IFS=$as_save_IFS
 
2557
  test -z "$as_dir" && as_dir=.
 
2558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2559
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2560
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2562
    break 2
 
2563
  fi
 
2564
done
 
2565
done
 
2566
 
 
2567
fi
 
2568
fi
 
2569
CC=$ac_cv_prog_CC
 
2570
if test -n "$CC"; then
 
2571
  echo "$as_me:$LINENO: result: $CC" >&5
 
2572
echo "${ECHO_T}$CC" >&6
 
2573
else
 
2574
  echo "$as_me:$LINENO: result: no" >&5
 
2575
echo "${ECHO_T}no" >&6
 
2576
fi
 
2577
 
 
2578
fi
 
2579
if test -z "$ac_cv_prog_CC"; then
 
2580
  ac_ct_CC=$CC
 
2581
  # Extract the first word of "cc", so it can be a program name with args.
 
2582
set dummy cc; ac_word=$2
 
2583
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2587
else
 
2588
  if test -n "$ac_ct_CC"; then
 
2589
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2590
else
 
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2592
for as_dir in $PATH
 
2593
do
 
2594
  IFS=$as_save_IFS
 
2595
  test -z "$as_dir" && as_dir=.
 
2596
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2597
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2598
    ac_cv_prog_ac_ct_CC="cc"
 
2599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2600
    break 2
 
2601
  fi
 
2602
done
 
2603
done
 
2604
 
 
2605
fi
 
2606
fi
 
2607
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2608
if test -n "$ac_ct_CC"; then
 
2609
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2610
echo "${ECHO_T}$ac_ct_CC" >&6
 
2611
else
 
2612
  echo "$as_me:$LINENO: result: no" >&5
 
2613
echo "${ECHO_T}no" >&6
 
2614
fi
 
2615
 
 
2616
  CC=$ac_ct_CC
 
2617
else
 
2618
  CC="$ac_cv_prog_CC"
 
2619
fi
 
2620
 
 
2621
fi
 
2622
if test -z "$CC"; then
 
2623
  # Extract the first word of "cc", so it can be a program name with args.
 
2624
set dummy cc; ac_word=$2
 
2625
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2627
if test "${ac_cv_prog_CC+set}" = set; then
 
2628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2629
else
 
2630
  if test -n "$CC"; then
 
2631
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2632
else
 
2633
  ac_prog_rejected=no
 
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2635
for as_dir in $PATH
 
2636
do
 
2637
  IFS=$as_save_IFS
 
2638
  test -z "$as_dir" && as_dir=.
 
2639
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2640
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2641
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2642
       ac_prog_rejected=yes
 
2643
       continue
 
2644
     fi
 
2645
    ac_cv_prog_CC="cc"
 
2646
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2647
    break 2
 
2648
  fi
 
2649
done
 
2650
done
 
2651
 
 
2652
if test $ac_prog_rejected = yes; then
 
2653
  # We found a bogon in the path, so make sure we never use it.
 
2654
  set dummy $ac_cv_prog_CC
 
2655
  shift
 
2656
  if test $# != 0; then
 
2657
    # We chose a different compiler from the bogus one.
 
2658
    # However, it has the same basename, so the bogon will be chosen
 
2659
    # first if we set CC to just the basename; use the full file name.
 
2660
    shift
 
2661
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2662
  fi
 
2663
fi
 
2664
fi
 
2665
fi
 
2666
CC=$ac_cv_prog_CC
 
2667
if test -n "$CC"; then
 
2668
  echo "$as_me:$LINENO: result: $CC" >&5
 
2669
echo "${ECHO_T}$CC" >&6
 
2670
else
 
2671
  echo "$as_me:$LINENO: result: no" >&5
 
2672
echo "${ECHO_T}no" >&6
 
2673
fi
 
2674
 
 
2675
fi
 
2676
if test -z "$CC"; then
 
2677
  if test -n "$ac_tool_prefix"; then
 
2678
  for ac_prog in cl
 
2679
  do
 
2680
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2681
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2682
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2684
if test "${ac_cv_prog_CC+set}" = set; then
 
2685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2686
else
 
2687
  if test -n "$CC"; then
 
2688
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2689
else
 
2690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2691
for as_dir in $PATH
 
2692
do
 
2693
  IFS=$as_save_IFS
 
2694
  test -z "$as_dir" && as_dir=.
 
2695
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2696
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2697
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2698
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2699
    break 2
 
2700
  fi
 
2701
done
 
2702
done
 
2703
 
 
2704
fi
 
2705
fi
 
2706
CC=$ac_cv_prog_CC
 
2707
if test -n "$CC"; then
 
2708
  echo "$as_me:$LINENO: result: $CC" >&5
 
2709
echo "${ECHO_T}$CC" >&6
 
2710
else
 
2711
  echo "$as_me:$LINENO: result: no" >&5
 
2712
echo "${ECHO_T}no" >&6
 
2713
fi
 
2714
 
 
2715
    test -n "$CC" && break
 
2716
  done
 
2717
fi
 
2718
if test -z "$CC"; then
 
2719
  ac_ct_CC=$CC
 
2720
  for ac_prog in cl
 
2721
do
 
2722
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2723
set dummy $ac_prog; ac_word=$2
 
2724
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2726
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2728
else
 
2729
  if test -n "$ac_ct_CC"; then
 
2730
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2731
else
 
2732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2733
for as_dir in $PATH
 
2734
do
 
2735
  IFS=$as_save_IFS
 
2736
  test -z "$as_dir" && as_dir=.
 
2737
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2738
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2739
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2740
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2741
    break 2
 
2742
  fi
 
2743
done
 
2744
done
 
2745
 
 
2746
fi
 
2747
fi
 
2748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2749
if test -n "$ac_ct_CC"; then
 
2750
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2751
echo "${ECHO_T}$ac_ct_CC" >&6
 
2752
else
 
2753
  echo "$as_me:$LINENO: result: no" >&5
 
2754
echo "${ECHO_T}no" >&6
 
2755
fi
 
2756
 
 
2757
  test -n "$ac_ct_CC" && break
 
2758
done
 
2759
 
 
2760
  CC=$ac_ct_CC
 
2761
fi
 
2762
 
 
2763
fi
 
2764
 
 
2765
 
 
2766
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2767
See \`config.log' for more details." >&5
 
2768
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2769
See \`config.log' for more details." >&2;}
 
2770
   { (exit 1); exit 1; }; }
 
2771
 
 
2772
# Provide some information about the compiler.
 
2773
echo "$as_me:$LINENO:" \
 
2774
     "checking for C compiler version" >&5
 
2775
ac_compiler=`set X $ac_compile; echo $2`
 
2776
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2777
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2778
  ac_status=$?
 
2779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2780
  (exit $ac_status); }
 
2781
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2782
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2783
  ac_status=$?
 
2784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2785
  (exit $ac_status); }
 
2786
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2787
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }
 
2791
 
 
2792
cat >conftest.$ac_ext <<_ACEOF
 
2793
/* confdefs.h.  */
 
2794
_ACEOF
 
2795
cat confdefs.h >>conftest.$ac_ext
 
2796
cat >>conftest.$ac_ext <<_ACEOF
 
2797
/* end confdefs.h.  */
 
2798
 
 
2799
int
 
2800
main ()
 
2801
{
 
2802
 
 
2803
  ;
 
2804
  return 0;
 
2805
}
 
2806
_ACEOF
 
2807
ac_clean_files_save=$ac_clean_files
 
2808
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2809
# Try to create an executable without -o first, disregard a.out.
 
2810
# It will help us diagnose broken compilers, and finding out an intuition
 
2811
# of exeext.
 
2812
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2813
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2814
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2815
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2816
  (eval $ac_link_default) 2>&5
 
2817
  ac_status=$?
 
2818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2819
  (exit $ac_status); }; then
 
2820
  # Find the output, starting from the most likely.  This scheme is
 
2821
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2822
# resort.
 
2823
 
 
2824
# Be careful to initialize this variable, since it used to be cached.
 
2825
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2826
ac_cv_exeext=
 
2827
# b.out is created by i960 compilers.
 
2828
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2829
do
 
2830
  test -f "$ac_file" || continue
 
2831
  case $ac_file in
 
2832
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2833
        ;;
 
2834
    conftest.$ac_ext )
 
2835
        # This is the source file.
 
2836
        ;;
 
2837
    [ab].out )
 
2838
        # We found the default executable, but exeext='' is most
 
2839
        # certainly right.
 
2840
        break;;
 
2841
    *.* )
 
2842
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2843
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2844
        # but it would be cool to find out if it's true.  Does anybody
 
2845
        # maintain Libtool? --akim.
 
2846
        export ac_cv_exeext
 
2847
        break;;
 
2848
    * )
 
2849
        break;;
 
2850
  esac
 
2851
done
 
2852
else
 
2853
  echo "$as_me: failed program was:" >&5
 
2854
sed 's/^/| /' conftest.$ac_ext >&5
 
2855
 
 
2856
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2857
See \`config.log' for more details." >&5
 
2858
echo "$as_me: error: C compiler cannot create executables
 
2859
See \`config.log' for more details." >&2;}
 
2860
   { (exit 77); exit 77; }; }
 
2861
fi
 
2862
 
 
2863
ac_exeext=$ac_cv_exeext
 
2864
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2865
echo "${ECHO_T}$ac_file" >&6
 
2866
 
 
2867
# Check the compiler produces executables we can run.  If not, either
 
2868
# the compiler is broken, or we cross compile.
 
2869
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2870
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2871
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2872
# If not cross compiling, check that we can run a simple program.
 
2873
if test "$cross_compiling" != yes; then
 
2874
  if { ac_try='./$ac_file'
 
2875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2876
  (eval $ac_try) 2>&5
 
2877
  ac_status=$?
 
2878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2879
  (exit $ac_status); }; }; then
 
2880
    cross_compiling=no
 
2881
  else
 
2882
    if test "$cross_compiling" = maybe; then
 
2883
        cross_compiling=yes
 
2884
    else
 
2885
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2886
If you meant to cross compile, use \`--host'.
 
2887
See \`config.log' for more details." >&5
 
2888
echo "$as_me: error: cannot run C compiled programs.
 
2889
If you meant to cross compile, use \`--host'.
 
2890
See \`config.log' for more details." >&2;}
 
2891
   { (exit 1); exit 1; }; }
 
2892
    fi
 
2893
  fi
 
2894
fi
 
2895
echo "$as_me:$LINENO: result: yes" >&5
 
2896
echo "${ECHO_T}yes" >&6
 
2897
 
 
2898
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2899
ac_clean_files=$ac_clean_files_save
 
2900
# Check the compiler produces executables we can run.  If not, either
 
2901
# the compiler is broken, or we cross compile.
 
2902
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2903
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2904
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2905
echo "${ECHO_T}$cross_compiling" >&6
 
2906
 
 
2907
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2908
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2910
  (eval $ac_link) 2>&5
 
2911
  ac_status=$?
 
2912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2913
  (exit $ac_status); }; then
 
2914
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2915
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2916
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2917
# `rm'.
 
2918
for ac_file in conftest.exe conftest conftest.*; do
 
2919
  test -f "$ac_file" || continue
 
2920
  case $ac_file in
 
2921
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2922
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2923
          export ac_cv_exeext
 
2924
          break;;
 
2925
    * ) break;;
 
2926
  esac
 
2927
done
 
2928
else
 
2929
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2930
See \`config.log' for more details." >&5
 
2931
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2932
See \`config.log' for more details." >&2;}
 
2933
   { (exit 1); exit 1; }; }
 
2934
fi
 
2935
 
 
2936
rm -f conftest$ac_cv_exeext
 
2937
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2938
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2939
 
 
2940
rm -f conftest.$ac_ext
 
2941
EXEEXT=$ac_cv_exeext
 
2942
ac_exeext=$EXEEXT
 
2943
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2944
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2945
if test "${ac_cv_objext+set}" = set; then
 
2946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2947
else
 
2948
  cat >conftest.$ac_ext <<_ACEOF
 
2949
/* confdefs.h.  */
 
2950
_ACEOF
 
2951
cat confdefs.h >>conftest.$ac_ext
 
2952
cat >>conftest.$ac_ext <<_ACEOF
 
2953
/* end confdefs.h.  */
 
2954
 
 
2955
int
 
2956
main ()
 
2957
{
 
2958
 
 
2959
  ;
 
2960
  return 0;
 
2961
}
 
2962
_ACEOF
 
2963
rm -f conftest.o conftest.obj
 
2964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2965
  (eval $ac_compile) 2>&5
 
2966
  ac_status=$?
 
2967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2968
  (exit $ac_status); }; then
 
2969
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2970
  case $ac_file in
 
2971
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2972
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2973
       break;;
 
2974
  esac
 
2975
done
 
2976
else
 
2977
  echo "$as_me: failed program was:" >&5
 
2978
sed 's/^/| /' conftest.$ac_ext >&5
 
2979
 
 
2980
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2981
See \`config.log' for more details." >&5
 
2982
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2983
See \`config.log' for more details." >&2;}
 
2984
   { (exit 1); exit 1; }; }
 
2985
fi
 
2986
 
 
2987
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2988
fi
 
2989
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2990
echo "${ECHO_T}$ac_cv_objext" >&6
 
2991
OBJEXT=$ac_cv_objext
 
2992
ac_objext=$OBJEXT
 
2993
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2994
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2995
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2997
else
 
2998
  cat >conftest.$ac_ext <<_ACEOF
 
2999
/* confdefs.h.  */
 
3000
_ACEOF
 
3001
cat confdefs.h >>conftest.$ac_ext
 
3002
cat >>conftest.$ac_ext <<_ACEOF
 
3003
/* end confdefs.h.  */
 
3004
 
 
3005
int
 
3006
main ()
 
3007
{
 
3008
#ifndef __GNUC__
 
3009
       choke me
 
3010
#endif
 
3011
 
 
3012
  ;
 
3013
  return 0;
 
3014
}
 
3015
_ACEOF
 
3016
rm -f conftest.$ac_objext
 
3017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3018
  (eval $ac_compile) 2>conftest.er1
 
3019
  ac_status=$?
 
3020
  grep -v '^ *+' conftest.er1 >conftest.err
 
3021
  rm -f conftest.er1
 
3022
  cat conftest.err >&5
 
3023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3024
  (exit $ac_status); } &&
 
3025
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3027
  (eval $ac_try) 2>&5
 
3028
  ac_status=$?
 
3029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3030
  (exit $ac_status); }; } &&
 
3031
         { ac_try='test -s conftest.$ac_objext'
 
3032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3033
  (eval $ac_try) 2>&5
 
3034
  ac_status=$?
 
3035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3036
  (exit $ac_status); }; }; then
 
3037
  ac_compiler_gnu=yes
 
3038
else
 
3039
  echo "$as_me: failed program was:" >&5
 
3040
sed 's/^/| /' conftest.$ac_ext >&5
 
3041
 
 
3042
ac_compiler_gnu=no
 
3043
fi
 
3044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3045
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3046
 
 
3047
fi
 
3048
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3049
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3050
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3051
ac_test_CFLAGS=${CFLAGS+set}
 
3052
ac_save_CFLAGS=$CFLAGS
 
3053
CFLAGS="-g"
 
3054
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3055
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3056
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3058
else
 
3059
  cat >conftest.$ac_ext <<_ACEOF
 
3060
/* confdefs.h.  */
 
3061
_ACEOF
 
3062
cat confdefs.h >>conftest.$ac_ext
 
3063
cat >>conftest.$ac_ext <<_ACEOF
 
3064
/* end confdefs.h.  */
 
3065
 
 
3066
int
 
3067
main ()
 
3068
{
 
3069
 
 
3070
  ;
 
3071
  return 0;
 
3072
}
 
3073
_ACEOF
 
3074
rm -f conftest.$ac_objext
 
3075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3076
  (eval $ac_compile) 2>conftest.er1
 
3077
  ac_status=$?
 
3078
  grep -v '^ *+' conftest.er1 >conftest.err
 
3079
  rm -f conftest.er1
 
3080
  cat conftest.err >&5
 
3081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3082
  (exit $ac_status); } &&
 
3083
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3085
  (eval $ac_try) 2>&5
 
3086
  ac_status=$?
 
3087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3088
  (exit $ac_status); }; } &&
 
3089
         { ac_try='test -s conftest.$ac_objext'
 
3090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3091
  (eval $ac_try) 2>&5
 
3092
  ac_status=$?
 
3093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3094
  (exit $ac_status); }; }; then
 
3095
  ac_cv_prog_cc_g=yes
 
3096
else
 
3097
  echo "$as_me: failed program was:" >&5
 
3098
sed 's/^/| /' conftest.$ac_ext >&5
 
3099
 
 
3100
ac_cv_prog_cc_g=no
 
3101
fi
 
3102
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3103
fi
 
3104
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3105
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3106
if test "$ac_test_CFLAGS" = set; then
 
3107
  CFLAGS=$ac_save_CFLAGS
 
3108
elif test $ac_cv_prog_cc_g = yes; then
 
3109
  if test "$GCC" = yes; then
 
3110
    CFLAGS="-g -O2"
 
3111
  else
 
3112
    CFLAGS="-g"
 
3113
  fi
 
3114
else
 
3115
  if test "$GCC" = yes; then
 
3116
    CFLAGS="-O2"
 
3117
  else
 
3118
    CFLAGS=
 
3119
  fi
 
3120
fi
 
3121
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3122
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3123
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3125
else
 
3126
  ac_cv_prog_cc_stdc=no
 
3127
ac_save_CC=$CC
 
3128
cat >conftest.$ac_ext <<_ACEOF
 
3129
/* confdefs.h.  */
 
3130
_ACEOF
 
3131
cat confdefs.h >>conftest.$ac_ext
 
3132
cat >>conftest.$ac_ext <<_ACEOF
 
3133
/* end confdefs.h.  */
 
3134
#include <stdarg.h>
 
3135
#include <stdio.h>
 
3136
#include <sys/types.h>
 
3137
#include <sys/stat.h>
 
3138
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3139
struct buf { int x; };
 
3140
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3141
static char *e (p, i)
 
3142
     char **p;
 
3143
     int i;
 
3144
{
 
3145
  return p[i];
 
3146
}
 
3147
static char *f (char * (*g) (char **, int), char **p, ...)
 
3148
{
 
3149
  char *s;
 
3150
  va_list v;
 
3151
  va_start (v,p);
 
3152
  s = g (p, va_arg (v,int));
 
3153
  va_end (v);
 
3154
  return s;
 
3155
}
 
3156
 
 
3157
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3158
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3159
   These don't provoke an error unfortunately, instead are silently treated
 
3160
   as 'x'.  The following induces an error, until -std1 is added to get
 
3161
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3162
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3163
   that's true only with -std1.  */
 
3164
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3165
 
 
3166
int test (int i, double x);
 
3167
struct s1 {int (*f) (int a);};
 
3168
struct s2 {int (*f) (double a);};
 
3169
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3170
int argc;
 
3171
char **argv;
 
3172
int
 
3173
main ()
 
3174
{
 
3175
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3176
  ;
 
3177
  return 0;
 
3178
}
 
3179
_ACEOF
 
3180
# Don't try gcc -ansi; that turns off useful extensions and
 
3181
# breaks some systems' header files.
 
3182
# AIX                   -qlanglvl=ansi
 
3183
# Ultrix and OSF/1      -std1
 
3184
# HP-UX 10.20 and later -Ae
 
3185
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3186
# SVR4                  -Xc -D__EXTENSIONS__
 
3187
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3188
do
 
3189
  CC="$ac_save_CC $ac_arg"
 
3190
  rm -f conftest.$ac_objext
 
3191
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3192
  (eval $ac_compile) 2>conftest.er1
 
3193
  ac_status=$?
 
3194
  grep -v '^ *+' conftest.er1 >conftest.err
 
3195
  rm -f conftest.er1
 
3196
  cat conftest.err >&5
 
3197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3198
  (exit $ac_status); } &&
 
3199
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3201
  (eval $ac_try) 2>&5
 
3202
  ac_status=$?
 
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3204
  (exit $ac_status); }; } &&
 
3205
         { ac_try='test -s conftest.$ac_objext'
 
3206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3207
  (eval $ac_try) 2>&5
 
3208
  ac_status=$?
 
3209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3210
  (exit $ac_status); }; }; then
 
3211
  ac_cv_prog_cc_stdc=$ac_arg
 
3212
break
 
3213
else
 
3214
  echo "$as_me: failed program was:" >&5
 
3215
sed 's/^/| /' conftest.$ac_ext >&5
 
3216
 
 
3217
fi
 
3218
rm -f conftest.err conftest.$ac_objext
 
3219
done
 
3220
rm -f conftest.$ac_ext conftest.$ac_objext
 
3221
CC=$ac_save_CC
 
3222
 
 
3223
fi
 
3224
 
 
3225
case "x$ac_cv_prog_cc_stdc" in
 
3226
  x|xno)
 
3227
    echo "$as_me:$LINENO: result: none needed" >&5
 
3228
echo "${ECHO_T}none needed" >&6 ;;
 
3229
  *)
 
3230
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3231
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3232
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3233
esac
 
3234
 
 
3235
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3236
# in C++ we need to declare it.  In case someone uses the same compiler
 
3237
# for both compiling C and C++ we need to have the C++ compiler decide
 
3238
# the declaration of exit, since it's the most demanding environment.
 
3239
cat >conftest.$ac_ext <<_ACEOF
 
3240
#ifndef __cplusplus
 
3241
  choke me
 
3242
#endif
 
3243
_ACEOF
 
3244
rm -f conftest.$ac_objext
 
3245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3246
  (eval $ac_compile) 2>conftest.er1
 
3247
  ac_status=$?
 
3248
  grep -v '^ *+' conftest.er1 >conftest.err
 
3249
  rm -f conftest.er1
 
3250
  cat conftest.err >&5
 
3251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3252
  (exit $ac_status); } &&
 
3253
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3255
  (eval $ac_try) 2>&5
 
3256
  ac_status=$?
 
3257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3258
  (exit $ac_status); }; } &&
 
3259
         { ac_try='test -s conftest.$ac_objext'
 
3260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3261
  (eval $ac_try) 2>&5
 
3262
  ac_status=$?
 
3263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3264
  (exit $ac_status); }; }; then
 
3265
  for ac_declaration in \
 
3266
   '' \
 
3267
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3268
   'extern "C" void std::exit (int); using std::exit;' \
 
3269
   'extern "C" void exit (int) throw ();' \
 
3270
   'extern "C" void exit (int);' \
 
3271
   'void exit (int);'
 
3272
do
 
3273
  cat >conftest.$ac_ext <<_ACEOF
 
3274
/* confdefs.h.  */
 
3275
_ACEOF
 
3276
cat confdefs.h >>conftest.$ac_ext
 
3277
cat >>conftest.$ac_ext <<_ACEOF
 
3278
/* end confdefs.h.  */
 
3279
$ac_declaration
 
3280
#include <stdlib.h>
 
3281
int
 
3282
main ()
 
3283
{
 
3284
exit (42);
 
3285
  ;
 
3286
  return 0;
 
3287
}
 
3288
_ACEOF
 
3289
rm -f conftest.$ac_objext
 
3290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3291
  (eval $ac_compile) 2>conftest.er1
 
3292
  ac_status=$?
 
3293
  grep -v '^ *+' conftest.er1 >conftest.err
 
3294
  rm -f conftest.er1
 
3295
  cat conftest.err >&5
 
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3297
  (exit $ac_status); } &&
 
3298
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3300
  (eval $ac_try) 2>&5
 
3301
  ac_status=$?
 
3302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3303
  (exit $ac_status); }; } &&
 
3304
         { ac_try='test -s conftest.$ac_objext'
 
3305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3306
  (eval $ac_try) 2>&5
 
3307
  ac_status=$?
 
3308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3309
  (exit $ac_status); }; }; then
 
3310
  :
 
3311
else
 
3312
  echo "$as_me: failed program was:" >&5
 
3313
sed 's/^/| /' conftest.$ac_ext >&5
 
3314
 
 
3315
continue
 
3316
fi
 
3317
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3318
  cat >conftest.$ac_ext <<_ACEOF
 
3319
/* confdefs.h.  */
 
3320
_ACEOF
 
3321
cat confdefs.h >>conftest.$ac_ext
 
3322
cat >>conftest.$ac_ext <<_ACEOF
 
3323
/* end confdefs.h.  */
 
3324
$ac_declaration
 
3325
int
 
3326
main ()
 
3327
{
 
3328
exit (42);
 
3329
  ;
 
3330
  return 0;
 
3331
}
 
3332
_ACEOF
 
3333
rm -f conftest.$ac_objext
 
3334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3335
  (eval $ac_compile) 2>conftest.er1
 
3336
  ac_status=$?
 
3337
  grep -v '^ *+' conftest.er1 >conftest.err
 
3338
  rm -f conftest.er1
 
3339
  cat conftest.err >&5
 
3340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3341
  (exit $ac_status); } &&
 
3342
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3344
  (eval $ac_try) 2>&5
 
3345
  ac_status=$?
 
3346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3347
  (exit $ac_status); }; } &&
 
3348
         { ac_try='test -s conftest.$ac_objext'
 
3349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3350
  (eval $ac_try) 2>&5
 
3351
  ac_status=$?
 
3352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3353
  (exit $ac_status); }; }; then
 
3354
  break
 
3355
else
 
3356
  echo "$as_me: failed program was:" >&5
 
3357
sed 's/^/| /' conftest.$ac_ext >&5
 
3358
 
 
3359
fi
 
3360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3361
done
 
3362
rm -f conftest*
 
3363
if test -n "$ac_declaration"; then
 
3364
  echo '#ifdef __cplusplus' >>confdefs.h
 
3365
  echo $ac_declaration      >>confdefs.h
 
3366
  echo '#endif'             >>confdefs.h
 
3367
fi
 
3368
 
 
3369
else
 
3370
  echo "$as_me: failed program was:" >&5
 
3371
sed 's/^/| /' conftest.$ac_ext >&5
 
3372
 
 
3373
fi
 
3374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3375
ac_ext=c
 
3376
ac_cpp='$CPP $CPPFLAGS'
 
3377
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3378
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3379
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3380
DEPDIR="${am__leading_dot}deps"
 
3381
 
 
3382
          ac_config_commands="$ac_config_commands depfiles"
 
3383
 
 
3384
 
 
3385
am_make=${MAKE-make}
 
3386
cat > confinc << 'END'
 
3387
am__doit:
 
3388
        @echo done
 
3389
.PHONY: am__doit
 
3390
END
 
3391
# If we don't find an include directive, just comment out the code.
 
3392
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3393
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3394
am__include="#"
 
3395
am__quote=
 
3396
_am_result=none
 
3397
# First try GNU make style include.
 
3398
echo "include confinc" > confmf
 
3399
# We grep out `Entering directory' and `Leaving directory'
 
3400
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3401
# In particular we don't look at `^make:' because GNU make might
 
3402
# be invoked under some other name (usually "gmake"), in which
 
3403
# case it prints its new name instead of `make'.
 
3404
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3405
   am__include=include
 
3406
   am__quote=
 
3407
   _am_result=GNU
 
3408
fi
 
3409
# Now try BSD make style include.
 
3410
if test "$am__include" = "#"; then
 
3411
   echo '.include "confinc"' > confmf
 
3412
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3413
      am__include=.include
 
3414
      am__quote="\""
 
3415
      _am_result=BSD
 
3416
   fi
 
3417
fi
 
3418
 
 
3419
 
 
3420
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3421
echo "${ECHO_T}$_am_result" >&6
 
3422
rm -f confinc confmf
 
3423
 
 
3424
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3425
if test "${enable_dependency_tracking+set}" = set; then
 
3426
  enableval="$enable_dependency_tracking"
 
3427
 
 
3428
fi;
 
3429
if test "x$enable_dependency_tracking" != xno; then
 
3430
  am_depcomp="$ac_aux_dir/depcomp"
 
3431
  AMDEPBACKSLASH='\'
 
3432
fi
 
3433
 
 
3434
 
 
3435
if test "x$enable_dependency_tracking" != xno; then
 
3436
  AMDEP_TRUE=
 
3437
  AMDEP_FALSE='#'
 
3438
else
 
3439
  AMDEP_TRUE='#'
 
3440
  AMDEP_FALSE=
 
3441
fi
 
3442
 
 
3443
 
 
3444
 
 
3445
 
 
3446
depcc="$CC"   am_compiler_list=
 
3447
 
 
3448
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3449
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3450
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3452
else
 
3453
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3454
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3455
  # making bogus files that we don't know about and never remove.  For
 
3456
  # instance it was reported that on HP-UX the gcc test will end up
 
3457
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3458
  # in D'.
 
3459
  mkdir conftest.dir
 
3460
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3461
  # using a relative directory.
 
3462
  cp "$am_depcomp" conftest.dir
 
3463
  cd conftest.dir
 
3464
  # We will build objects and dependencies in a subdirectory because
 
3465
  # it helps to detect inapplicable dependency modes.  For instance
 
3466
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3467
  # side effect of compilation, but ICC will put the dependencies in
 
3468
  # the current directory while Tru64 will put them in the object
 
3469
  # directory.
 
3470
  mkdir sub
 
3471
 
 
3472
  am_cv_CC_dependencies_compiler_type=none
 
3473
  if test "$am_compiler_list" = ""; then
 
3474
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3475
  fi
 
3476
  for depmode in $am_compiler_list; do
 
3477
    # Setup a source with many dependencies, because some compilers
 
3478
    # like to wrap large dependency lists on column 80 (with \), and
 
3479
    # we should not choose a depcomp mode which is confused by this.
 
3480
    #
 
3481
    # We need to recreate these files for each test, as the compiler may
 
3482
    # overwrite some of them when testing with obscure command lines.
 
3483
    # This happens at least with the AIX C compiler.
 
3484
    : > sub/conftest.c
 
3485
    for i in 1 2 3 4 5 6; do
 
3486
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3487
      : > sub/conftst$i.h
 
3488
    done
 
3489
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3490
 
 
3491
    case $depmode in
 
3492
    nosideeffect)
 
3493
      # after this tag, mechanisms are not by side-effect, so they'll
 
3494
      # only be used when explicitly requested
 
3495
      if test "x$enable_dependency_tracking" = xyes; then
 
3496
        continue
 
3497
      else
 
3498
        break
 
3499
      fi
 
3500
      ;;
 
3501
    none) break ;;
 
3502
    esac
 
3503
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3504
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3505
    # handle `-M -o', and we need to detect this.
 
3506
    if depmode=$depmode \
 
3507
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3508
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3509
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3510
         >/dev/null 2>conftest.err &&
 
3511
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3512
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3513
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3514
      # icc doesn't choke on unknown options, it will just issue warnings
 
3515
      # (even with -Werror).  So we grep stderr for any message
 
3516
      # that says an option was ignored.
 
3517
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3518
        am_cv_CC_dependencies_compiler_type=$depmode
 
3519
        break
 
3520
      fi
 
3521
    fi
 
3522
  done
 
3523
 
 
3524
  cd ..
 
3525
  rm -rf conftest.dir
 
3526
else
 
3527
  am_cv_CC_dependencies_compiler_type=none
 
3528
fi
 
3529
 
 
3530
fi
 
3531
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3532
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3533
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3534
 
 
3535
 
 
3536
 
 
3537
if
 
3538
  test "x$enable_dependency_tracking" != xno \
 
3539
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3540
  am__fastdepCC_TRUE=
 
3541
  am__fastdepCC_FALSE='#'
 
3542
else
 
3543
  am__fastdepCC_TRUE='#'
 
3544
  am__fastdepCC_FALSE=
 
3545
fi
 
3546
 
 
3547
 
 
3548
ac_ext=c
 
3549
ac_cpp='$CPP $CPPFLAGS'
 
3550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3553
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3554
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3555
# On Suns, sometimes $CPP names a directory.
 
3556
if test -n "$CPP" && test -d "$CPP"; then
 
3557
  CPP=
 
3558
fi
 
3559
if test -z "$CPP"; then
 
3560
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3562
else
 
3563
      # Double quotes because CPP needs to be expanded
 
3564
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3565
    do
 
3566
      ac_preproc_ok=false
 
3567
for ac_c_preproc_warn_flag in '' yes
 
3568
do
 
3569
  # Use a header file that comes with gcc, so configuring glibc
 
3570
  # with a fresh cross-compiler works.
 
3571
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3572
  # <limits.h> exists even on freestanding compilers.
 
3573
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3574
  # not just through cpp. "Syntax error" is here to catch this case.
 
3575
  cat >conftest.$ac_ext <<_ACEOF
 
3576
/* confdefs.h.  */
 
3577
_ACEOF
 
3578
cat confdefs.h >>conftest.$ac_ext
 
3579
cat >>conftest.$ac_ext <<_ACEOF
 
3580
/* end confdefs.h.  */
 
3581
#ifdef __STDC__
 
3582
# include <limits.h>
 
3583
#else
 
3584
# include <assert.h>
 
3585
#endif
 
3586
                     Syntax error
 
3587
_ACEOF
 
3588
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3589
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3590
  ac_status=$?
 
3591
  grep -v '^ *+' conftest.er1 >conftest.err
 
3592
  rm -f conftest.er1
 
3593
  cat conftest.err >&5
 
3594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3595
  (exit $ac_status); } >/dev/null; then
 
3596
  if test -s conftest.err; then
 
3597
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3598
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3599
  else
 
3600
    ac_cpp_err=
 
3601
  fi
 
3602
else
 
3603
  ac_cpp_err=yes
 
3604
fi
 
3605
if test -z "$ac_cpp_err"; then
 
3606
  :
 
3607
else
 
3608
  echo "$as_me: failed program was:" >&5
 
3609
sed 's/^/| /' conftest.$ac_ext >&5
 
3610
 
 
3611
  # Broken: fails on valid input.
 
3612
continue
 
3613
fi
 
3614
rm -f conftest.err conftest.$ac_ext
 
3615
 
 
3616
  # OK, works on sane cases.  Now check whether non-existent headers
 
3617
  # can be detected and how.
 
3618
  cat >conftest.$ac_ext <<_ACEOF
 
3619
/* confdefs.h.  */
 
3620
_ACEOF
 
3621
cat confdefs.h >>conftest.$ac_ext
 
3622
cat >>conftest.$ac_ext <<_ACEOF
 
3623
/* end confdefs.h.  */
 
3624
#include <ac_nonexistent.h>
 
3625
_ACEOF
 
3626
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3627
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3628
  ac_status=$?
 
3629
  grep -v '^ *+' conftest.er1 >conftest.err
 
3630
  rm -f conftest.er1
 
3631
  cat conftest.err >&5
 
3632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3633
  (exit $ac_status); } >/dev/null; then
 
3634
  if test -s conftest.err; then
 
3635
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3636
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3637
  else
 
3638
    ac_cpp_err=
 
3639
  fi
 
3640
else
 
3641
  ac_cpp_err=yes
 
3642
fi
 
3643
if test -z "$ac_cpp_err"; then
 
3644
  # Broken: success on invalid input.
 
3645
continue
 
3646
else
 
3647
  echo "$as_me: failed program was:" >&5
 
3648
sed 's/^/| /' conftest.$ac_ext >&5
 
3649
 
 
3650
  # Passes both tests.
 
3651
ac_preproc_ok=:
 
3652
break
 
3653
fi
 
3654
rm -f conftest.err conftest.$ac_ext
 
3655
 
 
3656
done
 
3657
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3658
rm -f conftest.err conftest.$ac_ext
 
3659
if $ac_preproc_ok; then
 
3660
  break
 
3661
fi
 
3662
 
 
3663
    done
 
3664
    ac_cv_prog_CPP=$CPP
 
3665
 
 
3666
fi
 
3667
  CPP=$ac_cv_prog_CPP
 
3668
else
 
3669
  ac_cv_prog_CPP=$CPP
 
3670
fi
 
3671
echo "$as_me:$LINENO: result: $CPP" >&5
 
3672
echo "${ECHO_T}$CPP" >&6
 
3673
ac_preproc_ok=false
 
3674
for ac_c_preproc_warn_flag in '' yes
 
3675
do
 
3676
  # Use a header file that comes with gcc, so configuring glibc
 
3677
  # with a fresh cross-compiler works.
 
3678
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3679
  # <limits.h> exists even on freestanding compilers.
 
3680
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3681
  # not just through cpp. "Syntax error" is here to catch this case.
 
3682
  cat >conftest.$ac_ext <<_ACEOF
 
3683
/* confdefs.h.  */
 
3684
_ACEOF
 
3685
cat confdefs.h >>conftest.$ac_ext
 
3686
cat >>conftest.$ac_ext <<_ACEOF
 
3687
/* end confdefs.h.  */
 
3688
#ifdef __STDC__
 
3689
# include <limits.h>
 
3690
#else
 
3691
# include <assert.h>
 
3692
#endif
 
3693
                     Syntax error
 
3694
_ACEOF
 
3695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3696
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3697
  ac_status=$?
 
3698
  grep -v '^ *+' conftest.er1 >conftest.err
 
3699
  rm -f conftest.er1
 
3700
  cat conftest.err >&5
 
3701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3702
  (exit $ac_status); } >/dev/null; then
 
3703
  if test -s conftest.err; then
 
3704
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3705
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3706
  else
 
3707
    ac_cpp_err=
 
3708
  fi
 
3709
else
 
3710
  ac_cpp_err=yes
 
3711
fi
 
3712
if test -z "$ac_cpp_err"; then
 
3713
  :
 
3714
else
 
3715
  echo "$as_me: failed program was:" >&5
 
3716
sed 's/^/| /' conftest.$ac_ext >&5
 
3717
 
 
3718
  # Broken: fails on valid input.
 
3719
continue
 
3720
fi
 
3721
rm -f conftest.err conftest.$ac_ext
 
3722
 
 
3723
  # OK, works on sane cases.  Now check whether non-existent headers
 
3724
  # can be detected and how.
 
3725
  cat >conftest.$ac_ext <<_ACEOF
 
3726
/* confdefs.h.  */
 
3727
_ACEOF
 
3728
cat confdefs.h >>conftest.$ac_ext
 
3729
cat >>conftest.$ac_ext <<_ACEOF
 
3730
/* end confdefs.h.  */
 
3731
#include <ac_nonexistent.h>
 
3732
_ACEOF
 
3733
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3734
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3735
  ac_status=$?
 
3736
  grep -v '^ *+' conftest.er1 >conftest.err
 
3737
  rm -f conftest.er1
 
3738
  cat conftest.err >&5
 
3739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3740
  (exit $ac_status); } >/dev/null; then
 
3741
  if test -s conftest.err; then
 
3742
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3743
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3744
  else
 
3745
    ac_cpp_err=
 
3746
  fi
 
3747
else
 
3748
  ac_cpp_err=yes
 
3749
fi
 
3750
if test -z "$ac_cpp_err"; then
 
3751
  # Broken: success on invalid input.
 
3752
continue
 
3753
else
 
3754
  echo "$as_me: failed program was:" >&5
 
3755
sed 's/^/| /' conftest.$ac_ext >&5
 
3756
 
 
3757
  # Passes both tests.
 
3758
ac_preproc_ok=:
 
3759
break
 
3760
fi
 
3761
rm -f conftest.err conftest.$ac_ext
 
3762
 
 
3763
done
 
3764
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3765
rm -f conftest.err conftest.$ac_ext
 
3766
if $ac_preproc_ok; then
 
3767
  :
 
3768
else
 
3769
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3770
See \`config.log' for more details." >&5
 
3771
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3772
See \`config.log' for more details." >&2;}
 
3773
   { (exit 1); exit 1; }; }
 
3774
fi
 
3775
 
 
3776
ac_ext=c
 
3777
ac_cpp='$CPP $CPPFLAGS'
 
3778
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3779
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3780
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3781
 
 
3782
# Find a good install program.  We prefer a C program (faster),
 
3783
# so one script is as good as another.  But avoid the broken or
 
3784
# incompatible versions:
 
3785
# SysV /etc/install, /usr/sbin/install
 
3786
# SunOS /usr/etc/install
 
3787
# IRIX /sbin/install
 
3788
# AIX /bin/install
 
3789
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3790
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3791
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3792
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3793
# OS/2's system install, which has a completely different semantic
 
3794
# ./install, which can be erroneously created by make from ./install.sh.
 
3795
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3796
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3797
if test -z "$INSTALL"; then
 
3798
if test "${ac_cv_path_install+set}" = set; then
 
3799
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3800
else
 
3801
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3802
for as_dir in $PATH
 
3803
do
 
3804
  IFS=$as_save_IFS
 
3805
  test -z "$as_dir" && as_dir=.
 
3806
  # Account for people who put trailing slashes in PATH elements.
 
3807
case $as_dir/ in
 
3808
  ./ | .// | /cC/* | \
 
3809
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3810
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3811
  /usr/ucb/* ) ;;
 
3812
  *)
 
3813
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3814
    # Don't use installbsd from OSF since it installs stuff as root
 
3815
    # by default.
 
3816
    for ac_prog in ginstall scoinst install; do
 
3817
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3818
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3819
          if test $ac_prog = install &&
 
3820
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3821
            # AIX install.  It has an incompatible calling convention.
 
3822
            :
 
3823
          elif test $ac_prog = install &&
 
3824
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3825
            # program-specific install script used by HP pwplus--don't use.
 
3826
            :
 
3827
          else
 
3828
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3829
            break 3
 
3830
          fi
 
3831
        fi
 
3832
      done
 
3833
    done
 
3834
    ;;
 
3835
esac
 
3836
done
 
3837
 
 
3838
 
 
3839
fi
 
3840
  if test "${ac_cv_path_install+set}" = set; then
 
3841
    INSTALL=$ac_cv_path_install
 
3842
  else
 
3843
    # As a last resort, use the slow shell script.  We don't cache a
 
3844
    # path for INSTALL within a source directory, because that will
 
3845
    # break other packages using the cache if that directory is
 
3846
    # removed, or if the path is relative.
 
3847
    INSTALL=$ac_install_sh
 
3848
  fi
 
3849
fi
 
3850
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3851
echo "${ECHO_T}$INSTALL" >&6
 
3852
 
 
3853
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3854
# It thinks the first close brace ends the variable substitution.
 
3855
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3856
 
 
3857
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3858
 
 
3859
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3860
 
 
3861
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3862
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3863
LN_S=$as_ln_s
 
3864
if test "$LN_S" = "ln -s"; then
 
3865
  echo "$as_me:$LINENO: result: yes" >&5
 
3866
echo "${ECHO_T}yes" >&6
 
3867
else
 
3868
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3869
echo "${ECHO_T}no, using $LN_S" >&6
 
3870
fi
 
3871
 
 
3872
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3873
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3874
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3875
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3877
else
 
3878
  cat >conftest.make <<\_ACEOF
 
3879
all:
 
3880
        @echo 'ac_maketemp="$(MAKE)"'
 
3881
_ACEOF
 
3882
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3883
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3884
if test -n "$ac_maketemp"; then
 
3885
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3886
else
 
3887
  eval ac_cv_prog_make_${ac_make}_set=no
 
3888
fi
 
3889
rm -f conftest.make
 
3890
fi
 
3891
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3892
  echo "$as_me:$LINENO: result: yes" >&5
 
3893
echo "${ECHO_T}yes" >&6
 
3894
  SET_MAKE=
 
3895
else
 
3896
  echo "$as_me:$LINENO: result: no" >&5
 
3897
echo "${ECHO_T}no" >&6
 
3898
  SET_MAKE="MAKE=${MAKE-make}"
 
3899
fi
 
3900
 
 
3901
if test -n "$ac_tool_prefix"; then
 
3902
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3903
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3904
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3905
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3906
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3908
else
 
3909
  if test -n "$RANLIB"; then
 
3910
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3911
else
 
3912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3913
for as_dir in $PATH
 
3914
do
 
3915
  IFS=$as_save_IFS
 
3916
  test -z "$as_dir" && as_dir=.
 
3917
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3918
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3919
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3921
    break 2
 
3922
  fi
 
3923
done
 
3924
done
 
3925
 
 
3926
fi
 
3927
fi
 
3928
RANLIB=$ac_cv_prog_RANLIB
 
3929
if test -n "$RANLIB"; then
 
3930
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3931
echo "${ECHO_T}$RANLIB" >&6
 
3932
else
 
3933
  echo "$as_me:$LINENO: result: no" >&5
 
3934
echo "${ECHO_T}no" >&6
 
3935
fi
 
3936
 
 
3937
fi
 
3938
if test -z "$ac_cv_prog_RANLIB"; then
 
3939
  ac_ct_RANLIB=$RANLIB
 
3940
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3941
set dummy ranlib; ac_word=$2
 
3942
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3943
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3944
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3946
else
 
3947
  if test -n "$ac_ct_RANLIB"; then
 
3948
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3949
else
 
3950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3951
for as_dir in $PATH
 
3952
do
 
3953
  IFS=$as_save_IFS
 
3954
  test -z "$as_dir" && as_dir=.
 
3955
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3956
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3957
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3958
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3959
    break 2
 
3960
  fi
 
3961
done
 
3962
done
 
3963
 
 
3964
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3965
fi
 
3966
fi
 
3967
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3968
if test -n "$ac_ct_RANLIB"; then
 
3969
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3970
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3971
else
 
3972
  echo "$as_me:$LINENO: result: no" >&5
 
3973
echo "${ECHO_T}no" >&6
 
3974
fi
 
3975
 
 
3976
  RANLIB=$ac_ct_RANLIB
 
3977
else
 
3978
  RANLIB="$ac_cv_prog_RANLIB"
 
3979
fi
 
3980
 
 
3981
if test -n "$ac_tool_prefix"; then
 
3982
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
3983
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
3984
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3985
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3986
if test "${ac_cv_prog_AR+set}" = set; then
 
3987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3988
else
 
3989
  if test -n "$AR"; then
 
3990
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
3991
else
 
3992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3993
for as_dir in $PATH
 
3994
do
 
3995
  IFS=$as_save_IFS
 
3996
  test -z "$as_dir" && as_dir=.
 
3997
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3998
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3999
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
4000
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4001
    break 2
 
4002
  fi
 
4003
done
 
4004
done
 
4005
 
 
4006
fi
 
4007
fi
 
4008
AR=$ac_cv_prog_AR
 
4009
if test -n "$AR"; then
 
4010
  echo "$as_me:$LINENO: result: $AR" >&5
 
4011
echo "${ECHO_T}$AR" >&6
 
4012
else
 
4013
  echo "$as_me:$LINENO: result: no" >&5
 
4014
echo "${ECHO_T}no" >&6
 
4015
fi
 
4016
 
 
4017
fi
 
4018
if test -z "$ac_cv_prog_AR"; then
 
4019
  ac_ct_AR=$AR
 
4020
  # Extract the first word of "ar", so it can be a program name with args.
 
4021
set dummy ar; ac_word=$2
 
4022
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4023
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4024
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
4025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4026
else
 
4027
  if test -n "$ac_ct_AR"; then
 
4028
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4029
else
 
4030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4031
for as_dir in $PATH
 
4032
do
 
4033
  IFS=$as_save_IFS
 
4034
  test -z "$as_dir" && as_dir=.
 
4035
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4036
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4037
    ac_cv_prog_ac_ct_AR="ar"
 
4038
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4039
    break 2
 
4040
  fi
 
4041
done
 
4042
done
 
4043
 
 
4044
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
 
4045
fi
 
4046
fi
 
4047
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
4048
if test -n "$ac_ct_AR"; then
 
4049
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
4050
echo "${ECHO_T}$ac_ct_AR" >&6
 
4051
else
 
4052
  echo "$as_me:$LINENO: result: no" >&5
 
4053
echo "${ECHO_T}no" >&6
 
4054
fi
 
4055
 
 
4056
  AR=$ac_ct_AR
 
4057
else
 
4058
  AR="$ac_cv_prog_AR"
 
4059
fi
 
4060
 
 
4061
# Extract the first word of ""perl"", so it can be a program name with args.
 
4062
set dummy "perl"; ac_word=$2
 
4063
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4064
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4065
if test "${ac_cv_path_PERL+set}" = set; then
 
4066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4067
else
 
4068
  case $PERL in
 
4069
  [\\/]* | ?:[\\/]*)
 
4070
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
4071
  ;;
 
4072
  *)
 
4073
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4074
for as_dir in $PATH
 
4075
do
 
4076
  IFS=$as_save_IFS
 
4077
  test -z "$as_dir" && as_dir=.
 
4078
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4079
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4080
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
4081
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4082
    break 2
 
4083
  fi
 
4084
done
 
4085
done
 
4086
 
 
4087
  ;;
 
4088
esac
 
4089
fi
 
4090
PERL=$ac_cv_path_PERL
 
4091
 
 
4092
if test -n "$PERL"; then
 
4093
  echo "$as_me:$LINENO: result: $PERL" >&5
 
4094
echo "${ECHO_T}$PERL" >&6
 
4095
else
 
4096
  echo "$as_me:$LINENO: result: no" >&5
 
4097
echo "${ECHO_T}no" >&6
 
4098
fi
 
4099
 
 
4100
 
 
4101
 
 
4102
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
4103
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
4104
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
4105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4106
else
 
4107
  ac_check_lib_save_LIBS=$LIBS
 
4108
LIBS="-lcposix  $LIBS"
 
4109
cat >conftest.$ac_ext <<_ACEOF
 
4110
/* confdefs.h.  */
 
4111
_ACEOF
 
4112
cat confdefs.h >>conftest.$ac_ext
 
4113
cat >>conftest.$ac_ext <<_ACEOF
 
4114
/* end confdefs.h.  */
 
4115
 
 
4116
/* Override any gcc2 internal prototype to avoid an error.  */
 
4117
#ifdef __cplusplus
 
4118
extern "C"
 
4119
#endif
 
4120
/* We use char because int might match the return type of a gcc2
 
4121
   builtin and then its argument prototype would still apply.  */
 
4122
char strerror ();
 
4123
int
 
4124
main ()
 
4125
{
 
4126
strerror ();
 
4127
  ;
 
4128
  return 0;
 
4129
}
 
4130
_ACEOF
 
4131
rm -f conftest.$ac_objext conftest$ac_exeext
 
4132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4133
  (eval $ac_link) 2>conftest.er1
 
4134
  ac_status=$?
 
4135
  grep -v '^ *+' conftest.er1 >conftest.err
 
4136
  rm -f conftest.er1
 
4137
  cat conftest.err >&5
 
4138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4139
  (exit $ac_status); } &&
 
4140
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4142
  (eval $ac_try) 2>&5
 
4143
  ac_status=$?
 
4144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4145
  (exit $ac_status); }; } &&
 
4146
         { ac_try='test -s conftest$ac_exeext'
 
4147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4148
  (eval $ac_try) 2>&5
 
4149
  ac_status=$?
 
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4151
  (exit $ac_status); }; }; then
 
4152
  ac_cv_lib_cposix_strerror=yes
 
4153
else
 
4154
  echo "$as_me: failed program was:" >&5
 
4155
sed 's/^/| /' conftest.$ac_ext >&5
 
4156
 
 
4157
ac_cv_lib_cposix_strerror=no
 
4158
fi
 
4159
rm -f conftest.err conftest.$ac_objext \
 
4160
      conftest$ac_exeext conftest.$ac_ext
 
4161
LIBS=$ac_check_lib_save_LIBS
 
4162
fi
 
4163
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
4164
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
4165
if test $ac_cv_lib_cposix_strerror = yes; then
 
4166
  LIBS="$LIBS -lcposix"
 
4167
fi
 
4168
 
 
4169
 
 
4170
 
 
4171
# Check whether --enable-largefile or --disable-largefile was given.
 
4172
if test "${enable_largefile+set}" = set; then
 
4173
  enableval="$enable_largefile"
 
4174
 
 
4175
fi;
 
4176
if test "$enable_largefile" != no; then
 
4177
 
 
4178
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
4179
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
 
4180
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
4181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4182
else
 
4183
  ac_cv_sys_largefile_CC=no
 
4184
     if test "$GCC" != yes; then
 
4185
       ac_save_CC=$CC
 
4186
       while :; do
 
4187
         # IRIX 6.2 and later do not support large files by default,
 
4188
         # so use the C compiler's -n32 option if that helps.
 
4189
         cat >conftest.$ac_ext <<_ACEOF
 
4190
/* confdefs.h.  */
 
4191
_ACEOF
 
4192
cat confdefs.h >>conftest.$ac_ext
 
4193
cat >>conftest.$ac_ext <<_ACEOF
 
4194
/* end confdefs.h.  */
 
4195
#include <sys/types.h>
 
4196
 /* Check that off_t can represent 2**63 - 1 correctly.
 
4197
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
4198
    since some C++ compilers masquerading as C compilers
 
4199
    incorrectly reject 9223372036854775807.  */
 
4200
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
4201
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
4202
                       && LARGE_OFF_T % 2147483647 == 1)
 
4203
                      ? 1 : -1];
 
4204
int
 
4205
main ()
 
4206
{
 
4207
 
 
4208
  ;
 
4209
  return 0;
 
4210
}
 
4211
_ACEOF
 
4212
         rm -f conftest.$ac_objext
 
4213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4214
  (eval $ac_compile) 2>conftest.er1
 
4215
  ac_status=$?
 
4216
  grep -v '^ *+' conftest.er1 >conftest.err
 
4217
  rm -f conftest.er1
 
4218
  cat conftest.err >&5
 
4219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4220
  (exit $ac_status); } &&
 
4221
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4223
  (eval $ac_try) 2>&5
 
4224
  ac_status=$?
 
4225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4226
  (exit $ac_status); }; } &&
 
4227
         { ac_try='test -s conftest.$ac_objext'
 
4228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4229
  (eval $ac_try) 2>&5
 
4230
  ac_status=$?
 
4231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4232
  (exit $ac_status); }; }; then
 
4233
  break
 
4234
else
 
4235
  echo "$as_me: failed program was:" >&5
 
4236
sed 's/^/| /' conftest.$ac_ext >&5
 
4237
 
 
4238
fi
 
4239
rm -f conftest.err conftest.$ac_objext
 
4240
         CC="$CC -n32"
 
4241
         rm -f conftest.$ac_objext
 
4242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4243
  (eval $ac_compile) 2>conftest.er1
 
4244
  ac_status=$?
 
4245
  grep -v '^ *+' conftest.er1 >conftest.err
 
4246
  rm -f conftest.er1
 
4247
  cat conftest.err >&5
 
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4249
  (exit $ac_status); } &&
 
4250
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4252
  (eval $ac_try) 2>&5
 
4253
  ac_status=$?
 
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4255
  (exit $ac_status); }; } &&
 
4256
         { ac_try='test -s conftest.$ac_objext'
 
4257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4258
  (eval $ac_try) 2>&5
 
4259
  ac_status=$?
 
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4261
  (exit $ac_status); }; }; then
 
4262
  ac_cv_sys_largefile_CC=' -n32'; break
 
4263
else
 
4264
  echo "$as_me: failed program was:" >&5
 
4265
sed 's/^/| /' conftest.$ac_ext >&5
 
4266
 
 
4267
fi
 
4268
rm -f conftest.err conftest.$ac_objext
 
4269
         break
 
4270
       done
 
4271
       CC=$ac_save_CC
 
4272
       rm -f conftest.$ac_ext
 
4273
    fi
 
4274
fi
 
4275
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
4276
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
4277
  if test "$ac_cv_sys_largefile_CC" != no; then
 
4278
    CC=$CC$ac_cv_sys_largefile_CC
 
4279
  fi
 
4280
 
 
4281
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
4282
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
 
4283
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
4284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4285
else
 
4286
  while :; do
 
4287
  ac_cv_sys_file_offset_bits=no
 
4288
  cat >conftest.$ac_ext <<_ACEOF
 
4289
/* confdefs.h.  */
 
4290
_ACEOF
 
4291
cat confdefs.h >>conftest.$ac_ext
 
4292
cat >>conftest.$ac_ext <<_ACEOF
 
4293
/* end confdefs.h.  */
 
4294
#include <sys/types.h>
 
4295
 /* Check that off_t can represent 2**63 - 1 correctly.
 
4296
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
4297
    since some C++ compilers masquerading as C compilers
 
4298
    incorrectly reject 9223372036854775807.  */
 
4299
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
4300
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
4301
                       && LARGE_OFF_T % 2147483647 == 1)
 
4302
                      ? 1 : -1];
 
4303
int
 
4304
main ()
 
4305
{
 
4306
 
 
4307
  ;
 
4308
  return 0;
 
4309
}
 
4310
_ACEOF
 
4311
rm -f conftest.$ac_objext
 
4312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4313
  (eval $ac_compile) 2>conftest.er1
 
4314
  ac_status=$?
 
4315
  grep -v '^ *+' conftest.er1 >conftest.err
 
4316
  rm -f conftest.er1
 
4317
  cat conftest.err >&5
 
4318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4319
  (exit $ac_status); } &&
 
4320
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4322
  (eval $ac_try) 2>&5
 
4323
  ac_status=$?
 
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4325
  (exit $ac_status); }; } &&
 
4326
         { ac_try='test -s conftest.$ac_objext'
 
4327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4328
  (eval $ac_try) 2>&5
 
4329
  ac_status=$?
 
4330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4331
  (exit $ac_status); }; }; then
 
4332
  break
 
4333
else
 
4334
  echo "$as_me: failed program was:" >&5
 
4335
sed 's/^/| /' conftest.$ac_ext >&5
 
4336
 
 
4337
fi
 
4338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4339
  cat >conftest.$ac_ext <<_ACEOF
 
4340
/* confdefs.h.  */
 
4341
_ACEOF
 
4342
cat confdefs.h >>conftest.$ac_ext
 
4343
cat >>conftest.$ac_ext <<_ACEOF
 
4344
/* end confdefs.h.  */
 
4345
#define _FILE_OFFSET_BITS 64
 
4346
#include <sys/types.h>
 
4347
 /* Check that off_t can represent 2**63 - 1 correctly.
 
4348
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
4349
    since some C++ compilers masquerading as C compilers
 
4350
    incorrectly reject 9223372036854775807.  */
 
4351
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
4352
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
4353
                       && LARGE_OFF_T % 2147483647 == 1)
 
4354
                      ? 1 : -1];
 
4355
int
 
4356
main ()
 
4357
{
 
4358
 
 
4359
  ;
 
4360
  return 0;
 
4361
}
 
4362
_ACEOF
 
4363
rm -f conftest.$ac_objext
 
4364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4365
  (eval $ac_compile) 2>conftest.er1
 
4366
  ac_status=$?
 
4367
  grep -v '^ *+' conftest.er1 >conftest.err
 
4368
  rm -f conftest.er1
 
4369
  cat conftest.err >&5
 
4370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4371
  (exit $ac_status); } &&
 
4372
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4374
  (eval $ac_try) 2>&5
 
4375
  ac_status=$?
 
4376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4377
  (exit $ac_status); }; } &&
 
4378
         { ac_try='test -s conftest.$ac_objext'
 
4379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4380
  (eval $ac_try) 2>&5
 
4381
  ac_status=$?
 
4382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4383
  (exit $ac_status); }; }; then
 
4384
  ac_cv_sys_file_offset_bits=64; break
 
4385
else
 
4386
  echo "$as_me: failed program was:" >&5
 
4387
sed 's/^/| /' conftest.$ac_ext >&5
 
4388
 
 
4389
fi
 
4390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4391
  break
 
4392
done
 
4393
fi
 
4394
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
4395
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
 
4396
if test "$ac_cv_sys_file_offset_bits" != no; then
 
4397
 
 
4398
cat >>confdefs.h <<_ACEOF
 
4399
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
4400
_ACEOF
 
4401
 
 
4402
fi
 
4403
rm -f conftest*
 
4404
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
4405
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
 
4406
if test "${ac_cv_sys_large_files+set}" = set; then
 
4407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4408
else
 
4409
  while :; do
 
4410
  ac_cv_sys_large_files=no
 
4411
  cat >conftest.$ac_ext <<_ACEOF
 
4412
/* confdefs.h.  */
 
4413
_ACEOF
 
4414
cat confdefs.h >>conftest.$ac_ext
 
4415
cat >>conftest.$ac_ext <<_ACEOF
 
4416
/* end confdefs.h.  */
 
4417
#include <sys/types.h>
 
4418
 /* Check that off_t can represent 2**63 - 1 correctly.
 
4419
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
4420
    since some C++ compilers masquerading as C compilers
 
4421
    incorrectly reject 9223372036854775807.  */
 
4422
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
4423
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
4424
                       && LARGE_OFF_T % 2147483647 == 1)
 
4425
                      ? 1 : -1];
 
4426
int
 
4427
main ()
 
4428
{
 
4429
 
 
4430
  ;
 
4431
  return 0;
 
4432
}
 
4433
_ACEOF
 
4434
rm -f conftest.$ac_objext
 
4435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4436
  (eval $ac_compile) 2>conftest.er1
 
4437
  ac_status=$?
 
4438
  grep -v '^ *+' conftest.er1 >conftest.err
 
4439
  rm -f conftest.er1
 
4440
  cat conftest.err >&5
 
4441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4442
  (exit $ac_status); } &&
 
4443
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4445
  (eval $ac_try) 2>&5
 
4446
  ac_status=$?
 
4447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4448
  (exit $ac_status); }; } &&
 
4449
         { ac_try='test -s conftest.$ac_objext'
 
4450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4451
  (eval $ac_try) 2>&5
 
4452
  ac_status=$?
 
4453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4454
  (exit $ac_status); }; }; then
 
4455
  break
 
4456
else
 
4457
  echo "$as_me: failed program was:" >&5
 
4458
sed 's/^/| /' conftest.$ac_ext >&5
 
4459
 
 
4460
fi
 
4461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4462
  cat >conftest.$ac_ext <<_ACEOF
 
4463
/* confdefs.h.  */
 
4464
_ACEOF
 
4465
cat confdefs.h >>conftest.$ac_ext
 
4466
cat >>conftest.$ac_ext <<_ACEOF
 
4467
/* end confdefs.h.  */
 
4468
#define _LARGE_FILES 1
 
4469
#include <sys/types.h>
 
4470
 /* Check that off_t can represent 2**63 - 1 correctly.
 
4471
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
4472
    since some C++ compilers masquerading as C compilers
 
4473
    incorrectly reject 9223372036854775807.  */
 
4474
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
4475
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
4476
                       && LARGE_OFF_T % 2147483647 == 1)
 
4477
                      ? 1 : -1];
 
4478
int
 
4479
main ()
 
4480
{
 
4481
 
 
4482
  ;
 
4483
  return 0;
 
4484
}
 
4485
_ACEOF
 
4486
rm -f conftest.$ac_objext
 
4487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4488
  (eval $ac_compile) 2>conftest.er1
 
4489
  ac_status=$?
 
4490
  grep -v '^ *+' conftest.er1 >conftest.err
 
4491
  rm -f conftest.er1
 
4492
  cat conftest.err >&5
 
4493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4494
  (exit $ac_status); } &&
 
4495
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4497
  (eval $ac_try) 2>&5
 
4498
  ac_status=$?
 
4499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4500
  (exit $ac_status); }; } &&
 
4501
         { ac_try='test -s conftest.$ac_objext'
 
4502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4503
  (eval $ac_try) 2>&5
 
4504
  ac_status=$?
 
4505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4506
  (exit $ac_status); }; }; then
 
4507
  ac_cv_sys_large_files=1; break
 
4508
else
 
4509
  echo "$as_me: failed program was:" >&5
 
4510
sed 's/^/| /' conftest.$ac_ext >&5
 
4511
 
 
4512
fi
 
4513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4514
  break
 
4515
done
 
4516
fi
 
4517
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
4518
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
 
4519
if test "$ac_cv_sys_large_files" != no; then
 
4520
 
 
4521
cat >>confdefs.h <<_ACEOF
 
4522
#define _LARGE_FILES $ac_cv_sys_large_files
 
4523
_ACEOF
 
4524
 
 
4525
fi
 
4526
rm -f conftest*
 
4527
fi
 
4528
 
 
4529
# Extract the first word of "docbook-to-man", so it can be a program name with args.
 
4530
set dummy docbook-to-man; ac_word=$2
 
4531
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4532
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4533
if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then
 
4534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4535
else
 
4536
  if test -n "$DOCBOOK_TO_MAN"; then
 
4537
  ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
 
4538
else
 
4539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4540
for as_dir in $PATH
 
4541
do
 
4542
  IFS=$as_save_IFS
 
4543
  test -z "$as_dir" && as_dir=.
 
4544
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4545
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4546
    ac_cv_prog_DOCBOOK_TO_MAN="yes"
 
4547
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4548
    break 2
 
4549
  fi
 
4550
done
 
4551
done
 
4552
 
 
4553
  test -z "$ac_cv_prog_DOCBOOK_TO_MAN" && ac_cv_prog_DOCBOOK_TO_MAN="no"
 
4554
fi
 
4555
fi
 
4556
DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
 
4557
if test -n "$DOCBOOK_TO_MAN"; then
 
4558
  echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5
 
4559
echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6
 
4560
else
 
4561
  echo "$as_me:$LINENO: result: no" >&5
 
4562
echo "${ECHO_T}no" >&6
 
4563
fi
 
4564
 
 
4565
 
 
4566
 
 
4567
if test "$ac_cv_prog_DOCBOOK_TO_MAN" = yes; then
 
4568
  HAVE_DOCBOOK_TO_MAN_TRUE=
 
4569
  HAVE_DOCBOOK_TO_MAN_FALSE='#'
 
4570
else
 
4571
  HAVE_DOCBOOK_TO_MAN_TRUE='#'
 
4572
  HAVE_DOCBOOK_TO_MAN_FALSE=
 
4573
fi
 
4574
 
 
4575
 echo "$as_me:$LINENO: checking for faqprog.pl" >&5
 
4576
echo $ECHO_N "checking for faqprog.pl... $ECHO_C" >&6
 
4577
    if faqprog.pl -V 2>/dev/null | grep '^faqprog.pl ' >/dev/null 2>&1; then
 
4578
        working_faqprog=yes
 
4579
        FAQPROG="faqprog.pl"
 
4580
    else
 
4581
        working_faqprog=no
 
4582
        FAQPROG=": "
 
4583
    fi
 
4584
    echo "$as_me:$LINENO: result: $working_faqprog" >&5
 
4585
echo "${ECHO_T}$working_faqprog" >&6
 
4586
 
 
4587
 
 
4588
 
 
4589
if test "$working_faqprog" = "yes" ; then
 
4590
  WORKING_FAQPROG_TRUE=
 
4591
  WORKING_FAQPROG_FALSE='#'
 
4592
else
 
4593
  WORKING_FAQPROG_TRUE='#'
 
4594
  WORKING_FAQPROG_FALSE=
 
4595
fi
 
4596
 
 
4597
 
 
4598
 
 
4599
 
 
4600
    # Extract the first word of "docbook2texi", so it can be a program name with args.
 
4601
set dummy docbook2texi; ac_word=$2
 
4602
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4604
if test "${ac_cv_prog_DOCBOOK_TO_TEXI+set}" = set; then
 
4605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4606
else
 
4607
  if test -n "$DOCBOOK_TO_TEXI"; then
 
4608
  ac_cv_prog_DOCBOOK_TO_TEXI="$DOCBOOK_TO_TEXI" # Let the user override the test.
 
4609
else
 
4610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4611
for as_dir in $PATH
 
4612
do
 
4613
  IFS=$as_save_IFS
 
4614
  test -z "$as_dir" && as_dir=.
 
4615
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4616
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4617
    ac_cv_prog_DOCBOOK_TO_TEXI="yes"
 
4618
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4619
    break 2
 
4620
  fi
 
4621
done
 
4622
done
 
4623
 
 
4624
  test -z "$ac_cv_prog_DOCBOOK_TO_TEXI" && ac_cv_prog_DOCBOOK_TO_TEXI="no"
 
4625
fi
 
4626
fi
 
4627
DOCBOOK_TO_TEXI=$ac_cv_prog_DOCBOOK_TO_TEXI
 
4628
if test -n "$DOCBOOK_TO_TEXI"; then
 
4629
  echo "$as_me:$LINENO: result: $DOCBOOK_TO_TEXI" >&5
 
4630
echo "${ECHO_T}$DOCBOOK_TO_TEXI" >&6
 
4631
else
 
4632
  echo "$as_me:$LINENO: result: no" >&5
 
4633
echo "${ECHO_T}no" >&6
 
4634
fi
 
4635
 
 
4636
    echo "$as_me:$LINENO: checking for sgml to texi tools" >&5
 
4637
echo $ECHO_N "checking for sgml to texi tools... $ECHO_C" >&6
 
4638
    working_sgmltotexi=no
 
4639
    if test "$ac_cv_prog_DOCBOOK_TO_TEXI" = yes; then
 
4640
      if sgml2xml -v /dev/null 2>&1 | grep 'SP version' >/dev/null 2>&1 ; then
 
4641
            working_sgmltotexi=yes
 
4642
      fi
 
4643
    fi
 
4644
    echo "$as_me:$LINENO: result: $working_sgmltotexi" >&5
 
4645
echo "${ECHO_T}$working_sgmltotexi" >&6
 
4646
 
 
4647
 
 
4648
if test "$working_sgmltotexi" = "yes" ; then
 
4649
  HAVE_DOCBOOK_TO_TEXI_TRUE=
 
4650
  HAVE_DOCBOOK_TO_TEXI_FALSE='#'
 
4651
else
 
4652
  HAVE_DOCBOOK_TO_TEXI_TRUE='#'
 
4653
  HAVE_DOCBOOK_TO_TEXI_FALSE=
 
4654
fi
 
4655
 
 
4656
 
 
4657
 
 
4658
 
 
4659
try_gettext=yes
 
4660
have_dosish_system=no
 
4661
have_w32_system=no
 
4662
case "${host}" in
 
4663
    *-mingw32*)
 
4664
        # special stuff for Windoze NT
 
4665
        ac_cv_have_dev_random=no
 
4666
 
 
4667
cat >>confdefs.h <<\_ACEOF
 
4668
#define USE_ONLY_8DOT3 1
 
4669
_ACEOF
 
4670
 
 
4671
 
 
4672
cat >>confdefs.h <<\_ACEOF
 
4673
#define HAVE_DRIVE_LETTERS 1
 
4674
_ACEOF
 
4675
 
 
4676
 
 
4677
cat >>confdefs.h <<\_ACEOF
 
4678
#define USE_SIMPLE_GETTEXT 1
 
4679
_ACEOF
 
4680
 
 
4681
        have_dosish_system=yes
 
4682
        have_w32_system=yes
 
4683
        try_gettext="no"
 
4684
        ;;
 
4685
    i?86-emx-os2 | i?86-*-os2*emx )
 
4686
        # OS/2 with the EMX environment
 
4687
        ac_cv_have_dev_random=no
 
4688
        cat >>confdefs.h <<\_ACEOF
 
4689
#define HAVE_DRIVE_LETTERS 1
 
4690
_ACEOF
 
4691
 
 
4692
        have_dosish_system=yes
 
4693
        try_gettext="no"
 
4694
        ;;
 
4695
 
 
4696
    i?86-*-msdosdjgpp*)
 
4697
        # DOS with the DJGPP environment
 
4698
        ac_cv_have_dev_random=no
 
4699
        cat >>confdefs.h <<\_ACEOF
 
4700
#define HAVE_DRIVE_LETTERS 1
 
4701
_ACEOF
 
4702
 
 
4703
        have_dosish_system=yes
 
4704
        try_gettext="no"
 
4705
        ;;
 
4706
 
 
4707
    *-*-freebsd*)
 
4708
       # FreeBSD
 
4709
       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
4710
       LDFLAGS="$LDFLAGS -L/usr/local/lib"
 
4711
       ;;
 
4712
 
 
4713
    *-*-hpux*)
 
4714
        if test -z "$GCC" ; then
 
4715
            CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
 
4716
        fi
 
4717
        ;;
 
4718
    *-dec-osf4*)
 
4719
        if test -z "$GCC" ; then
 
4720
            # Suppress all warnings
 
4721
            # to get rid of the unsigned/signed char mismatch warnings.
 
4722
            CFLAGS="$CFLAGS -w"
 
4723
        fi
 
4724
        ;;
 
4725
    *-dec-osf5*)
 
4726
        if test -z "$GCC" ; then
 
4727
            # Use the newer compiler `-msg_disable ptrmismatch' to
 
4728
            # get rid of the unsigned/signed char mismatch warnings.
 
4729
            # Using this may hide other pointer mismatch warnings, but
 
4730
            # it at least lets other warning classes through
 
4731
            CFLAGS="$CFLAGS -msg_disable ptrmismatch"
 
4732
        fi
 
4733
        ;;
 
4734
    m68k-atari-mint)
 
4735
        ;;
 
4736
    *)
 
4737
       ;;
 
4738
esac
 
4739
 
 
4740
if test "$have_dosish_system" = yes; then
 
4741
 
 
4742
cat >>confdefs.h <<\_ACEOF
 
4743
#define HAVE_DOSISH_SYSTEM 1
 
4744
_ACEOF
 
4745
 
 
4746
fi
 
4747
 
 
4748
 
 
4749
if test "$have_dosish_system" = yes; then
 
4750
  HAVE_DOSISH_SYSTEM_TRUE=
 
4751
  HAVE_DOSISH_SYSTEM_FALSE='#'
 
4752
else
 
4753
  HAVE_DOSISH_SYSTEM_TRUE='#'
 
4754
  HAVE_DOSISH_SYSTEM_FALSE=
 
4755
fi
 
4756
 
 
4757
 
 
4758
if test "$have_w32_system" = yes; then
 
4759
 
 
4760
cat >>confdefs.h <<\_ACEOF
 
4761
#define HAVE_W32_SYSTEM 1
 
4762
_ACEOF
 
4763
 
 
4764
fi
 
4765
 
 
4766
 
 
4767
if test "$have_w32_system" = yes; then
 
4768
  HAVE_W32_SYSTEM_TRUE=
 
4769
  HAVE_W32_SYSTEM_FALSE='#'
 
4770
else
 
4771
  HAVE_W32_SYSTEM_TRUE='#'
 
4772
  HAVE_W32_SYSTEM_FALSE=
 
4773
fi
 
4774
 
 
4775
 
 
4776
 
 
4777
 
 
4778
#
 
4779
# Checks for libraries.
 
4780
#
 
4781
 
 
4782
 
 
4783
#
 
4784
# libgpg-error is a library with error codes shared between GnuPG
 
4785
# related projects.
 
4786
#
 
4787
 
 
4788
# Check whether --with-gpg-error-prefix or --without-gpg-error-prefix was given.
 
4789
if test "${with_gpg_error_prefix+set}" = set; then
 
4790
  withval="$with_gpg_error_prefix"
 
4791
  gpg_error_config_prefix="$withval"
 
4792
else
 
4793
  gpg_error_config_prefix=""
 
4794
fi;
 
4795
  if test x$gpg_error_config_prefix != x ; then
 
4796
     if test x${GPG_ERROR_CONFIG+set} != xset ; then
 
4797
        GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
 
4798
     fi
 
4799
  fi
 
4800
 
 
4801
  # Extract the first word of "gpg-error-config", so it can be a program name with args.
 
4802
set dummy gpg-error-config; ac_word=$2
 
4803
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4805
if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then
 
4806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4807
else
 
4808
  case $GPG_ERROR_CONFIG in
 
4809
  [\\/]* | ?:[\\/]*)
 
4810
  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
 
4811
  ;;
 
4812
  *)
 
4813
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4814
for as_dir in $PATH
 
4815
do
 
4816
  IFS=$as_save_IFS
 
4817
  test -z "$as_dir" && as_dir=.
 
4818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4819
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4820
    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4821
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4822
    break 2
 
4823
  fi
 
4824
done
 
4825
done
 
4826
 
 
4827
  test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
 
4828
  ;;
 
4829
esac
 
4830
fi
 
4831
GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
 
4832
 
 
4833
if test -n "$GPG_ERROR_CONFIG"; then
 
4834
  echo "$as_me:$LINENO: result: $GPG_ERROR_CONFIG" >&5
 
4835
echo "${ECHO_T}$GPG_ERROR_CONFIG" >&6
 
4836
else
 
4837
  echo "$as_me:$LINENO: result: no" >&5
 
4838
echo "${ECHO_T}no" >&6
 
4839
fi
 
4840
 
 
4841
  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
 
4842
  echo "$as_me:$LINENO: checking for GPG Error - version >= $min_gpg_error_version" >&5
 
4843
echo $ECHO_N "checking for GPG Error - version >= $min_gpg_error_version... $ECHO_C" >&6
 
4844
  ok=no
 
4845
  if test "$GPG_ERROR_CONFIG" != "no" ; then
 
4846
    req_major=`echo $min_gpg_error_version | \
 
4847
               sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
 
4848
    req_minor=`echo $min_gpg_error_version | \
 
4849
               sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
 
4850
    gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
 
4851
    major=`echo $gpg_error_config_version | \
 
4852
               sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
4853
    minor=`echo $gpg_error_config_version | \
 
4854
               sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
4855
    if test "$major" -gt "$req_major"; then
 
4856
        ok=yes
 
4857
    else
 
4858
        if test "$major" -eq "$req_major"; then
 
4859
            if test "$minor" -ge "$req_minor"; then
 
4860
               ok=yes
 
4861
            fi
 
4862
        fi
 
4863
    fi
 
4864
  fi
 
4865
  if test $ok = yes; then
 
4866
    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
 
4867
    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
 
4868
    echo "$as_me:$LINENO: result: yes" >&5
 
4869
echo "${ECHO_T}yes" >&6
 
4870
    have_gpg_error=yes
 
4871
  else
 
4872
    GPG_ERROR_CFLAGS=""
 
4873
    GPG_ERROR_LIBS=""
 
4874
    echo "$as_me:$LINENO: result: no" >&5
 
4875
echo "${ECHO_T}no" >&6
 
4876
    have_gpg_error=no
 
4877
  fi
 
4878
 
 
4879
 
 
4880
 
 
4881
 
 
4882
 
 
4883
#
 
4884
# Libgcrypt is our generic crypto library
 
4885
#
 
4886
 
 
4887
# Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
 
4888
if test "${with_libgcrypt_prefix+set}" = set; then
 
4889
  withval="$with_libgcrypt_prefix"
 
4890
  libgcrypt_config_prefix="$withval"
 
4891
else
 
4892
  libgcrypt_config_prefix=""
 
4893
fi;
 
4894
  if test x$libgcrypt_config_prefix != x ; then
 
4895
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
 
4896
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
 
4897
     fi
 
4898
  fi
 
4899
 
 
4900
  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
 
4901
set dummy libgcrypt-config; ac_word=$2
 
4902
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4904
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
 
4905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4906
else
 
4907
  case $LIBGCRYPT_CONFIG in
 
4908
  [\\/]* | ?:[\\/]*)
 
4909
  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
 
4910
  ;;
 
4911
  *)
 
4912
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4913
for as_dir in $PATH
 
4914
do
 
4915
  IFS=$as_save_IFS
 
4916
  test -z "$as_dir" && as_dir=.
 
4917
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4918
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4919
    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4921
    break 2
 
4922
  fi
 
4923
done
 
4924
done
 
4925
 
 
4926
  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
 
4927
  ;;
 
4928
esac
 
4929
fi
 
4930
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
 
4931
 
 
4932
if test -n "$LIBGCRYPT_CONFIG"; then
 
4933
  echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
 
4934
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
 
4935
else
 
4936
  echo "$as_me:$LINENO: result: no" >&5
 
4937
echo "${ECHO_T}no" >&6
 
4938
fi
 
4939
 
 
4940
  tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
 
4941
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
4942
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
4943
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
4944
  else
 
4945
     req_libgcrypt_api=0
 
4946
     min_libgcrypt_version="$tmp"
 
4947
  fi
 
4948
 
 
4949
  echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
 
4950
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
 
4951
  ok=no
 
4952
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
 
4953
    req_major=`echo $min_libgcrypt_version | \
 
4954
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
4955
    req_minor=`echo $min_libgcrypt_version | \
 
4956
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
4957
    req_micro=`echo $min_libgcrypt_version | \
 
4958
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
4959
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
 
4960
    major=`echo $libgcrypt_config_version | \
 
4961
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
4962
    minor=`echo $libgcrypt_config_version | \
 
4963
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
4964
    micro=`echo $libgcrypt_config_version | \
 
4965
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
4966
    if test "$major" -gt "$req_major"; then
 
4967
        ok=yes
 
4968
    else
 
4969
        if test "$major" -eq "$req_major"; then
 
4970
            if test "$minor" -gt "$req_minor"; then
 
4971
               ok=yes
 
4972
            else
 
4973
               if test "$minor" -eq "$req_minor"; then
 
4974
                   if test "$micro" -ge "$req_micro"; then
 
4975
                     ok=yes
 
4976
                   fi
 
4977
               fi
 
4978
            fi
 
4979
        fi
 
4980
    fi
 
4981
  fi
 
4982
  if test $ok = yes; then
 
4983
    echo "$as_me:$LINENO: result: yes" >&5
 
4984
echo "${ECHO_T}yes" >&6
 
4985
  else
 
4986
    echo "$as_me:$LINENO: result: no" >&5
 
4987
echo "${ECHO_T}no" >&6
 
4988
  fi
 
4989
  if test $ok = yes; then
 
4990
     # If we have a recent libgcrypt, we should also check that the
 
4991
     # API is compatible
 
4992
     if test "$req_libgcrypt_api" -gt 0 ; then
 
4993
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
 
4994
        if test "$tmp" -gt 0 ; then
 
4995
           echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
 
4996
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
 
4997
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
 
4998
             echo "$as_me:$LINENO: result: okay" >&5
 
4999
echo "${ECHO_T}okay" >&6
 
5000
           else
 
5001
             ok=no
 
5002
             echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
 
5003
echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
 
5004
           fi
 
5005
        fi
 
5006
     fi
 
5007
  fi
 
5008
  if test $ok = yes; then
 
5009
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
5010
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
5011
    have_libgcrypt=yes
 
5012
  else
 
5013
    LIBGCRYPT_CFLAGS=""
 
5014
    LIBGCRYPT_LIBS=""
 
5015
    have_libgcrypt=no
 
5016
  fi
 
5017
 
 
5018
 
 
5019
 
 
5020
 
 
5021
 
 
5022
#
 
5023
# libassuan is used for IPC
 
5024
#
 
5025
 
 
5026
# Check whether --with-libassuan-prefix or --without-libassuan-prefix was given.
 
5027
if test "${with_libassuan_prefix+set}" = set; then
 
5028
  withval="$with_libassuan_prefix"
 
5029
  libassuan_config_prefix="$withval"
 
5030
else
 
5031
  libassuan_config_prefix=""
 
5032
fi;
 
5033
  if test x$libassuan_config_prefix != x ; then
 
5034
     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
 
5035
     if test x${LIBASSUAN_CONFIG+set} != xset ; then
 
5036
        LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
 
5037
     fi
 
5038
  fi
 
5039
 
 
5040
  # Extract the first word of "libassuan-config", so it can be a program name with args.
 
5041
set dummy libassuan-config; ac_word=$2
 
5042
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5043
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5044
if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then
 
5045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5046
else
 
5047
  case $LIBASSUAN_CONFIG in
 
5048
  [\\/]* | ?:[\\/]*)
 
5049
  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
 
5050
  ;;
 
5051
  *)
 
5052
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5053
for as_dir in $PATH
 
5054
do
 
5055
  IFS=$as_save_IFS
 
5056
  test -z "$as_dir" && as_dir=.
 
5057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5058
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5059
    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5061
    break 2
 
5062
  fi
 
5063
done
 
5064
done
 
5065
 
 
5066
  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
 
5067
  ;;
 
5068
esac
 
5069
fi
 
5070
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
 
5071
 
 
5072
if test -n "$LIBASSUAN_CONFIG"; then
 
5073
  echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
 
5074
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6
 
5075
else
 
5076
  echo "$as_me:$LINENO: result: no" >&5
 
5077
echo "${ECHO_T}no" >&6
 
5078
fi
 
5079
 
 
5080
  min_libassuan_version="$NEED_LIBASSUAN_VERSION"
 
5081
  echo "$as_me:$LINENO: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
 
5082
echo $ECHO_N "checking for LIBASSUAN - version >= $min_libassuan_version... $ECHO_C" >&6
 
5083
  ok=no
 
5084
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
5085
    req_major=`echo $min_libassuan_version | \
 
5086
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
5087
    req_minor=`echo $min_libassuan_version | \
 
5088
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
5089
    req_micro=`echo $min_libassuan_version | \
 
5090
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
5091
    libassuan_config_version=`$LIBASSUAN_CONFIG $libassuan_config_args --version`
 
5092
    major=`echo $libassuan_config_version | \
 
5093
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
5094
    minor=`echo $libassuan_config_version | \
 
5095
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
5096
    micro=`echo $libassuan_config_version | \
 
5097
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
5098
    if test "$major" -gt "$req_major"; then
 
5099
        ok=yes
 
5100
    else
 
5101
        if test "$major" -eq "$req_major"; then
 
5102
            if test "$minor" -gt "$req_minor"; then
 
5103
               ok=yes
 
5104
            else
 
5105
               if test "$minor" -eq "$req_minor"; then
 
5106
                   if test "$micro" -ge "$req_micro"; then
 
5107
                     ok=yes
 
5108
                   fi
 
5109
               fi
 
5110
            fi
 
5111
        fi
 
5112
    fi
 
5113
  fi
 
5114
  if test $ok = yes; then
 
5115
    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
 
5116
    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
 
5117
    echo "$as_me:$LINENO: result: yes" >&5
 
5118
echo "${ECHO_T}yes" >&6
 
5119
    have_libassuan=yes
 
5120
  else
 
5121
    LIBASSUAN_CFLAGS=""
 
5122
    LIBASSUAN_LIBS=""
 
5123
    echo "$as_me:$LINENO: result: no" >&5
 
5124
echo "${ECHO_T}no" >&6
 
5125
    have_libassuan=no
 
5126
  fi
 
5127
 
 
5128
 
 
5129
 
 
5130
 
 
5131
 
 
5132
#
 
5133
# libksba is our X.509 support library
 
5134
#
 
5135
 
 
5136
# Check whether --with-ksba-prefix or --without-ksba-prefix was given.
 
5137
if test "${with_ksba_prefix+set}" = set; then
 
5138
  withval="$with_ksba_prefix"
 
5139
  ksba_config_prefix="$withval"
 
5140
else
 
5141
  ksba_config_prefix=""
 
5142
fi;
 
5143
  if test x$ksba_config_prefix != x ; then
 
5144
     ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
 
5145
     if test x${KSBA_CONFIG+set} != xset ; then
 
5146
        KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
 
5147
     fi
 
5148
  fi
 
5149
 
 
5150
  # Extract the first word of "ksba-config", so it can be a program name with args.
 
5151
set dummy ksba-config; ac_word=$2
 
5152
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5154
if test "${ac_cv_path_KSBA_CONFIG+set}" = set; then
 
5155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5156
else
 
5157
  case $KSBA_CONFIG in
 
5158
  [\\/]* | ?:[\\/]*)
 
5159
  ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
 
5160
  ;;
 
5161
  *)
 
5162
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5163
for as_dir in $PATH
 
5164
do
 
5165
  IFS=$as_save_IFS
 
5166
  test -z "$as_dir" && as_dir=.
 
5167
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5168
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5169
    ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5170
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5171
    break 2
 
5172
  fi
 
5173
done
 
5174
done
 
5175
 
 
5176
  test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
 
5177
  ;;
 
5178
esac
 
5179
fi
 
5180
KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
 
5181
 
 
5182
if test -n "$KSBA_CONFIG"; then
 
5183
  echo "$as_me:$LINENO: result: $KSBA_CONFIG" >&5
 
5184
echo "${ECHO_T}$KSBA_CONFIG" >&6
 
5185
else
 
5186
  echo "$as_me:$LINENO: result: no" >&5
 
5187
echo "${ECHO_T}no" >&6
 
5188
fi
 
5189
 
 
5190
  min_ksba_version="$NEED_KSBA_VERSION"
 
5191
  echo "$as_me:$LINENO: checking for KSBA - version >= $min_ksba_version" >&5
 
5192
echo $ECHO_N "checking for KSBA - version >= $min_ksba_version... $ECHO_C" >&6
 
5193
  ok=no
 
5194
  if test "$KSBA_CONFIG" != "no" ; then
 
5195
    req_major=`echo $min_ksba_version | \
 
5196
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
5197
    req_minor=`echo $min_ksba_version | \
 
5198
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
5199
    req_micro=`echo $min_ksba_version | \
 
5200
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
5201
    ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
 
5202
    major=`echo $ksba_config_version | \
 
5203
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
5204
    minor=`echo $ksba_config_version | \
 
5205
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
5206
    micro=`echo $ksba_config_version | \
 
5207
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
5208
    if test "$major" -gt "$req_major"; then
 
5209
        ok=yes
 
5210
    else
 
5211
        if test "$major" -eq "$req_major"; then
 
5212
            if test "$minor" -gt "$req_minor"; then
 
5213
               ok=yes
 
5214
            else
 
5215
               if test "$minor" -eq "$req_minor"; then
 
5216
                   if test "$micro" -ge "$req_micro"; then
 
5217
                     ok=yes
 
5218
                   fi
 
5219
               fi
 
5220
            fi
 
5221
        fi
 
5222
    fi
 
5223
  fi
 
5224
  if test $ok = yes; then
 
5225
    KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
 
5226
    KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
 
5227
    echo "$as_me:$LINENO: result: yes" >&5
 
5228
echo "${ECHO_T}yes" >&6
 
5229
    have_ksba=yes
 
5230
  else
 
5231
    KSBA_CFLAGS=""
 
5232
    KSBA_LIBS=""
 
5233
    echo "$as_me:$LINENO: result: no" >&5
 
5234
echo "${ECHO_T}no" >&6
 
5235
    have_ksba=no
 
5236
  fi
 
5237
 
 
5238
 
 
5239
 
 
5240
 
 
5241
#
 
5242
# libusb allows us to use the integrated CCID smartcard reader driver.
 
5243
#
 
5244
echo "$as_me:$LINENO: checking for usb_bulk_write in -lusb" >&5
 
5245
echo $ECHO_N "checking for usb_bulk_write in -lusb... $ECHO_C" >&6
 
5246
if test "${ac_cv_lib_usb_usb_bulk_write+set}" = set; then
 
5247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5248
else
 
5249
  ac_check_lib_save_LIBS=$LIBS
 
5250
LIBS="-lusb  $LIBS"
 
5251
cat >conftest.$ac_ext <<_ACEOF
 
5252
/* confdefs.h.  */
 
5253
_ACEOF
 
5254
cat confdefs.h >>conftest.$ac_ext
 
5255
cat >>conftest.$ac_ext <<_ACEOF
 
5256
/* end confdefs.h.  */
 
5257
 
 
5258
/* Override any gcc2 internal prototype to avoid an error.  */
 
5259
#ifdef __cplusplus
 
5260
extern "C"
 
5261
#endif
 
5262
/* We use char because int might match the return type of a gcc2
 
5263
   builtin and then its argument prototype would still apply.  */
 
5264
char usb_bulk_write ();
 
5265
int
 
5266
main ()
 
5267
{
 
5268
usb_bulk_write ();
 
5269
  ;
 
5270
  return 0;
 
5271
}
 
5272
_ACEOF
 
5273
rm -f conftest.$ac_objext conftest$ac_exeext
 
5274
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5275
  (eval $ac_link) 2>conftest.er1
 
5276
  ac_status=$?
 
5277
  grep -v '^ *+' conftest.er1 >conftest.err
 
5278
  rm -f conftest.er1
 
5279
  cat conftest.err >&5
 
5280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5281
  (exit $ac_status); } &&
 
5282
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5284
  (eval $ac_try) 2>&5
 
5285
  ac_status=$?
 
5286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5287
  (exit $ac_status); }; } &&
 
5288
         { ac_try='test -s conftest$ac_exeext'
 
5289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5290
  (eval $ac_try) 2>&5
 
5291
  ac_status=$?
 
5292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5293
  (exit $ac_status); }; }; then
 
5294
  ac_cv_lib_usb_usb_bulk_write=yes
 
5295
else
 
5296
  echo "$as_me: failed program was:" >&5
 
5297
sed 's/^/| /' conftest.$ac_ext >&5
 
5298
 
 
5299
ac_cv_lib_usb_usb_bulk_write=no
 
5300
fi
 
5301
rm -f conftest.err conftest.$ac_objext \
 
5302
      conftest$ac_exeext conftest.$ac_ext
 
5303
LIBS=$ac_check_lib_save_LIBS
 
5304
fi
 
5305
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_bulk_write" >&5
 
5306
echo "${ECHO_T}$ac_cv_lib_usb_usb_bulk_write" >&6
 
5307
if test $ac_cv_lib_usb_usb_bulk_write = yes; then
 
5308
   LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
 
5309
 
 
5310
cat >>confdefs.h <<\_ACEOF
 
5311
#define HAVE_LIBUSB 1
 
5312
_ACEOF
 
5313
 
 
5314
 
 
5315
fi
 
5316
 
 
5317
 
 
5318
 
 
5319
for ac_func in usb_create_match
 
5320
do
 
5321
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5322
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5323
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5324
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5326
else
 
5327
  cat >conftest.$ac_ext <<_ACEOF
 
5328
/* confdefs.h.  */
 
5329
_ACEOF
 
5330
cat confdefs.h >>conftest.$ac_ext
 
5331
cat >>conftest.$ac_ext <<_ACEOF
 
5332
/* end confdefs.h.  */
 
5333
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5334
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5335
#define $ac_func innocuous_$ac_func
 
5336
 
 
5337
/* System header to define __stub macros and hopefully few prototypes,
 
5338
    which can conflict with char $ac_func (); below.
 
5339
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5340
    <limits.h> exists even on freestanding compilers.  */
 
5341
 
 
5342
#ifdef __STDC__
 
5343
# include <limits.h>
 
5344
#else
 
5345
# include <assert.h>
 
5346
#endif
 
5347
 
 
5348
#undef $ac_func
 
5349
 
 
5350
/* Override any gcc2 internal prototype to avoid an error.  */
 
5351
#ifdef __cplusplus
 
5352
extern "C"
 
5353
{
 
5354
#endif
 
5355
/* We use char because int might match the return type of a gcc2
 
5356
   builtin and then its argument prototype would still apply.  */
 
5357
char $ac_func ();
 
5358
/* The GNU C library defines this for functions which it implements
 
5359
    to always fail with ENOSYS.  Some functions are actually named
 
5360
    something starting with __ and the normal name is an alias.  */
 
5361
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5362
choke me
 
5363
#else
 
5364
char (*f) () = $ac_func;
 
5365
#endif
 
5366
#ifdef __cplusplus
 
5367
}
 
5368
#endif
 
5369
 
 
5370
int
 
5371
main ()
 
5372
{
 
5373
return f != $ac_func;
 
5374
  ;
 
5375
  return 0;
 
5376
}
 
5377
_ACEOF
 
5378
rm -f conftest.$ac_objext conftest$ac_exeext
 
5379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5380
  (eval $ac_link) 2>conftest.er1
 
5381
  ac_status=$?
 
5382
  grep -v '^ *+' conftest.er1 >conftest.err
 
5383
  rm -f conftest.er1
 
5384
  cat conftest.err >&5
 
5385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5386
  (exit $ac_status); } &&
 
5387
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5389
  (eval $ac_try) 2>&5
 
5390
  ac_status=$?
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); }; } &&
 
5393
         { ac_try='test -s conftest$ac_exeext'
 
5394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5395
  (eval $ac_try) 2>&5
 
5396
  ac_status=$?
 
5397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5398
  (exit $ac_status); }; }; then
 
5399
  eval "$as_ac_var=yes"
 
5400
else
 
5401
  echo "$as_me: failed program was:" >&5
 
5402
sed 's/^/| /' conftest.$ac_ext >&5
 
5403
 
 
5404
eval "$as_ac_var=no"
 
5405
fi
 
5406
rm -f conftest.err conftest.$ac_objext \
 
5407
      conftest$ac_exeext conftest.$ac_ext
 
5408
fi
 
5409
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5410
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5411
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5412
  cat >>confdefs.h <<_ACEOF
 
5413
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5414
_ACEOF
 
5415
 
 
5416
fi
 
5417
done
 
5418
 
 
5419
 
 
5420
#
 
5421
# Check wether it is necessary to link against libdl.
 
5422
#
 
5423
LIBS=""
 
5424
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
5425
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
 
5426
if test "${ac_cv_search_dlopen+set}" = set; then
 
5427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5428
else
 
5429
  ac_func_search_save_LIBS=$LIBS
 
5430
ac_cv_search_dlopen=no
 
5431
cat >conftest.$ac_ext <<_ACEOF
 
5432
/* confdefs.h.  */
 
5433
_ACEOF
 
5434
cat confdefs.h >>conftest.$ac_ext
 
5435
cat >>conftest.$ac_ext <<_ACEOF
 
5436
/* end confdefs.h.  */
 
5437
 
 
5438
/* Override any gcc2 internal prototype to avoid an error.  */
 
5439
#ifdef __cplusplus
 
5440
extern "C"
 
5441
#endif
 
5442
/* We use char because int might match the return type of a gcc2
 
5443
   builtin and then its argument prototype would still apply.  */
 
5444
char dlopen ();
 
5445
int
 
5446
main ()
 
5447
{
 
5448
dlopen ();
 
5449
  ;
 
5450
  return 0;
 
5451
}
 
5452
_ACEOF
 
5453
rm -f conftest.$ac_objext conftest$ac_exeext
 
5454
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5455
  (eval $ac_link) 2>conftest.er1
 
5456
  ac_status=$?
 
5457
  grep -v '^ *+' conftest.er1 >conftest.err
 
5458
  rm -f conftest.er1
 
5459
  cat conftest.err >&5
 
5460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5461
  (exit $ac_status); } &&
 
5462
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5464
  (eval $ac_try) 2>&5
 
5465
  ac_status=$?
 
5466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5467
  (exit $ac_status); }; } &&
 
5468
         { ac_try='test -s conftest$ac_exeext'
 
5469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5470
  (eval $ac_try) 2>&5
 
5471
  ac_status=$?
 
5472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5473
  (exit $ac_status); }; }; then
 
5474
  ac_cv_search_dlopen="none required"
 
5475
else
 
5476
  echo "$as_me: failed program was:" >&5
 
5477
sed 's/^/| /' conftest.$ac_ext >&5
 
5478
 
 
5479
fi
 
5480
rm -f conftest.err conftest.$ac_objext \
 
5481
      conftest$ac_exeext conftest.$ac_ext
 
5482
if test "$ac_cv_search_dlopen" = no; then
 
5483
  for ac_lib in c dl; do
 
5484
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5485
    cat >conftest.$ac_ext <<_ACEOF
 
5486
/* confdefs.h.  */
 
5487
_ACEOF
 
5488
cat confdefs.h >>conftest.$ac_ext
 
5489
cat >>conftest.$ac_ext <<_ACEOF
 
5490
/* end confdefs.h.  */
 
5491
 
 
5492
/* Override any gcc2 internal prototype to avoid an error.  */
 
5493
#ifdef __cplusplus
 
5494
extern "C"
 
5495
#endif
 
5496
/* We use char because int might match the return type of a gcc2
 
5497
   builtin and then its argument prototype would still apply.  */
 
5498
char dlopen ();
 
5499
int
 
5500
main ()
 
5501
{
 
5502
dlopen ();
 
5503
  ;
 
5504
  return 0;
 
5505
}
 
5506
_ACEOF
 
5507
rm -f conftest.$ac_objext conftest$ac_exeext
 
5508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5509
  (eval $ac_link) 2>conftest.er1
 
5510
  ac_status=$?
 
5511
  grep -v '^ *+' conftest.er1 >conftest.err
 
5512
  rm -f conftest.er1
 
5513
  cat conftest.err >&5
 
5514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5515
  (exit $ac_status); } &&
 
5516
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5518
  (eval $ac_try) 2>&5
 
5519
  ac_status=$?
 
5520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5521
  (exit $ac_status); }; } &&
 
5522
         { ac_try='test -s conftest$ac_exeext'
 
5523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5524
  (eval $ac_try) 2>&5
 
5525
  ac_status=$?
 
5526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5527
  (exit $ac_status); }; }; then
 
5528
  ac_cv_search_dlopen="-l$ac_lib"
 
5529
break
 
5530
else
 
5531
  echo "$as_me: failed program was:" >&5
 
5532
sed 's/^/| /' conftest.$ac_ext >&5
 
5533
 
 
5534
fi
 
5535
rm -f conftest.err conftest.$ac_objext \
 
5536
      conftest$ac_exeext conftest.$ac_ext
 
5537
  done
 
5538
fi
 
5539
LIBS=$ac_func_search_save_LIBS
 
5540
fi
 
5541
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 
5542
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
 
5543
if test "$ac_cv_search_dlopen" != no; then
 
5544
  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
 
5545
 
 
5546
fi
 
5547
 
 
5548
DL_LIBS=$LIBS
 
5549
 
 
5550
 
 
5551
#
 
5552
# OpenSC is needed by the SCdaemon - if it is not availbale we can only
 
5553
# build a limited SCdaemon
 
5554
#
 
5555
 
 
5556
# Check whether --with-opensc-prefix or --without-opensc-prefix was given.
 
5557
if test "${with_opensc_prefix+set}" = set; then
 
5558
  withval="$with_opensc_prefix"
 
5559
  opensc_config_prefix="$withval"
 
5560
else
 
5561
  opensc_config_prefix=""
 
5562
fi;
 
5563
  if test x$opensc_config_prefix != x ; then
 
5564
     opensc_config_args="$opensc_config_args --prefix=$opensc_config_prefix"
 
5565
     if test x${OPENSC_CONFIG+set} != xset ; then
 
5566
        OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
 
5567
     fi
 
5568
  fi
 
5569
 
 
5570
  # Extract the first word of "opensc-config", so it can be a program name with args.
 
5571
set dummy opensc-config; ac_word=$2
 
5572
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5574
if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
 
5575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5576
else
 
5577
  case $OPENSC_CONFIG in
 
5578
  [\\/]* | ?:[\\/]*)
 
5579
  ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
 
5580
  ;;
 
5581
  *)
 
5582
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5583
for as_dir in $PATH
 
5584
do
 
5585
  IFS=$as_save_IFS
 
5586
  test -z "$as_dir" && as_dir=.
 
5587
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5588
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5589
    ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5590
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5591
    break 2
 
5592
  fi
 
5593
done
 
5594
done
 
5595
 
 
5596
  test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
 
5597
  ;;
 
5598
esac
 
5599
fi
 
5600
OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
 
5601
 
 
5602
if test -n "$OPENSC_CONFIG"; then
 
5603
  echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
 
5604
echo "${ECHO_T}$OPENSC_CONFIG" >&6
 
5605
else
 
5606
  echo "$as_me:$LINENO: result: no" >&5
 
5607
echo "${ECHO_T}no" >&6
 
5608
fi
 
5609
 
 
5610
  min_opensc_version="$NEED_OPENSC_VERSION"
 
5611
  echo "$as_me:$LINENO: checking for OpenSC - version >= $min_opensc_version" >&5
 
5612
echo $ECHO_N "checking for OpenSC - version >= $min_opensc_version... $ECHO_C" >&6
 
5613
  ok=no
 
5614
  if test "$OPENSC_CONFIG" != "no" ; then
 
5615
    req_major=`echo $min_opensc_version | \
 
5616
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
5617
    req_minor=`echo $min_opensc_version | \
 
5618
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
5619
    req_micro=`echo $min_opensc_version | \
 
5620
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
5621
    opensc_config_version=`$OPENSC_CONFIG $opensc_config_args --version 2>/dev/null || echo 0.0.0`
 
5622
    major=`echo $opensc_config_version | \
 
5623
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
5624
    minor=`echo $opensc_config_version | \
 
5625
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
5626
    micro=`echo $opensc_config_version | \
 
5627
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
5628
    if test "$major" -gt "$req_major"; then
 
5629
        ok=yes
 
5630
    else
 
5631
        if test "$major" -eq "$req_major"; then
 
5632
            if test "$minor" -gt "$req_minor"; then
 
5633
               ok=yes
 
5634
            else
 
5635
               if test "$minor" -eq "$req_minor"; then
 
5636
                   if test "$micro" -ge "$req_micro"; then
 
5637
                     ok=yes
 
5638
                   fi
 
5639
               fi
 
5640
            fi
 
5641
        fi
 
5642
    fi
 
5643
  fi
 
5644
  if test $ok = yes; then
 
5645
    OPENSC_CFLAGS=`$OPENSC_CONFIG $opensc_config_args --cflags`
 
5646
    OPENSC_LIBS=`$OPENSC_CONFIG $opensc_config_args --libs`
 
5647
    OPENSC_LIBS="$OPENSC_LIBS -lpcsclite -lpthread"
 
5648
    echo "$as_me:$LINENO: result: yes" >&5
 
5649
echo "${ECHO_T}yes" >&6
 
5650
    have_opensc=yes
 
5651
  else
 
5652
    OPENSC_CFLAGS=""
 
5653
    OPENSC_LIBS=""
 
5654
    echo "$as_me:$LINENO: result: no" >&5
 
5655
echo "${ECHO_T}no" >&6
 
5656
    have_opensc=no
 
5657
  fi
 
5658
 
 
5659
 
 
5660
 
 
5661
if test $have_opensc = yes; then
 
5662
 
 
5663
cat >>confdefs.h <<\_ACEOF
 
5664
#define HAVE_OPENSC 1
 
5665
_ACEOF
 
5666
 
 
5667
fi
 
5668
 
 
5669
 
 
5670
if test "$have_opensc" = "yes"; then
 
5671
  HAVE_OPENSC_TRUE=
 
5672
  HAVE_OPENSC_FALSE='#'
 
5673
else
 
5674
  HAVE_OPENSC_TRUE='#'
 
5675
  HAVE_OPENSC_FALSE=
 
5676
fi
 
5677
 
 
5678
 
 
5679
#
 
5680
# Check whether the (highly desirable) GNU Pth library is available
 
5681
# Note, that we include a Pth emulation for W32.
 
5682
#
 
5683
 
 
5684
# Check whether --with-pth-prefix or --without-pth-prefix was given.
 
5685
if test "${with_pth_prefix+set}" = set; then
 
5686
  withval="$with_pth_prefix"
 
5687
  pth_config_prefix="$withval"
 
5688
else
 
5689
  pth_config_prefix=""
 
5690
fi;
 
5691
if test x$pth_config_prefix != x ; then
 
5692
   PTH_CONFIG="$pth_config_prefix/bin/pth-config"
 
5693
fi
 
5694
# Extract the first word of "pth-config", so it can be a program name with args.
 
5695
set dummy pth-config; ac_word=$2
 
5696
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5698
if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
 
5699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5700
else
 
5701
  case $PTH_CONFIG in
 
5702
  [\\/]* | ?:[\\/]*)
 
5703
  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
 
5704
  ;;
 
5705
  *)
 
5706
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5707
for as_dir in $PATH
 
5708
do
 
5709
  IFS=$as_save_IFS
 
5710
  test -z "$as_dir" && as_dir=.
 
5711
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5712
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5713
    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5715
    break 2
 
5716
  fi
 
5717
done
 
5718
done
 
5719
 
 
5720
  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
 
5721
  ;;
 
5722
esac
 
5723
fi
 
5724
PTH_CONFIG=$ac_cv_path_PTH_CONFIG
 
5725
 
 
5726
if test -n "$PTH_CONFIG"; then
 
5727
  echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
 
5728
echo "${ECHO_T}$PTH_CONFIG" >&6
 
5729
else
 
5730
  echo "$as_me:$LINENO: result: no" >&5
 
5731
echo "${ECHO_T}no" >&6
 
5732
fi
 
5733
 
 
5734
if test "$have_w32_system" = no; then
 
5735
 if test "$PTH_CONFIG" = "no"; then
 
5736
    { echo "$as_me:$LINENO: WARNING:
 
5737
***
 
5738
*** To support concurrent access to the gpg-agent and the SCdaemon
 
5739
*** we need the support of the GNU Portable Threads Library.
 
5740
*** Download it from ftp://ftp.gnu.org/gnu/pth/
 
5741
*** On a Debian GNU/Linux system you might want to try
 
5742
***   apt-get install libpth-dev
 
5743
***" >&5
 
5744
echo "$as_me: WARNING:
 
5745
***
 
5746
*** To support concurrent access to the gpg-agent and the SCdaemon
 
5747
*** we need the support of the GNU Portable Threads Library.
 
5748
*** Download it from ftp://ftp.gnu.org/gnu/pth/
 
5749
*** On a Debian GNU/Linux system you might want to try
 
5750
***   apt-get install libpth-dev
 
5751
***" >&2;}
 
5752
 else
 
5753
 
 
5754
    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
 
5755
    _req_version="1.3.7"
 
5756
 
 
5757
    echo "$as_me:$LINENO: checking for PTH - version >= $_req_version" >&5
 
5758
echo $ECHO_N "checking for PTH - version >= $_req_version... $ECHO_C" >&6
 
5759
    for _var in _pth_version _req_version; do
 
5760
        eval "_val=\"\$${_var}\""
 
5761
        _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
 
5762
        _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
 
5763
        _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
 
5764
        _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
 
5765
        case $_rtype in
 
5766
            "a" ) _rtype=0 ;;
 
5767
            "b" ) _rtype=1 ;;
 
5768
            "." ) _rtype=2 ;;
 
5769
        esac
 
5770
        _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
 
5771
              "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
 
5772
        eval "${_var}_hex=\"\$_hex\""
 
5773
    done
 
5774
    have_pth=no
 
5775
    if test ".$_pth_version_hex" != .; then
 
5776
        if test ".$_req_version_hex" != .; then
 
5777
            if test $_pth_version_hex -ge $_req_version_hex; then
 
5778
                have_pth=yes
 
5779
            fi
 
5780
        fi
 
5781
    fi
 
5782
    if test $have_pth = yes; then
 
5783
       echo "$as_me:$LINENO: result: yes" >&5
 
5784
echo "${ECHO_T}yes" >&6
 
5785
       echo "$as_me:$LINENO: checking whether PTH installation is sane" >&5
 
5786
echo $ECHO_N "checking whether PTH installation is sane... $ECHO_C" >&6
 
5787
       if test "${gnupg_cv_pth_is_sane+set}" = set; then
 
5788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5789
else
 
5790
 
 
5791
         _gnupg_pth_save_cflags=$CFLAGS
 
5792
         _gnupg_pth_save_ldflags=$LDFLAGS
 
5793
         _gnupg_pth_save_libs=$LIBS
 
5794
         CFLAGS="$CFLAGS `$PTH_CONFIG --ldflags`"
 
5795
         LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
 
5796
         LIBS="$LIBS `$PTH_CONFIG --libs`"
 
5797
         cat >conftest.$ac_ext <<_ACEOF
 
5798
/* confdefs.h.  */
 
5799
_ACEOF
 
5800
cat confdefs.h >>conftest.$ac_ext
 
5801
cat >>conftest.$ac_ext <<_ACEOF
 
5802
/* end confdefs.h.  */
 
5803
#include <pth.h>
 
5804
 
 
5805
int
 
5806
main ()
 
5807
{
 
5808
 pth_init ();
 
5809
  ;
 
5810
  return 0;
 
5811
}
 
5812
_ACEOF
 
5813
rm -f conftest.$ac_objext conftest$ac_exeext
 
5814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5815
  (eval $ac_link) 2>conftest.er1
 
5816
  ac_status=$?
 
5817
  grep -v '^ *+' conftest.er1 >conftest.err
 
5818
  rm -f conftest.er1
 
5819
  cat conftest.err >&5
 
5820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5821
  (exit $ac_status); } &&
 
5822
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5824
  (eval $ac_try) 2>&5
 
5825
  ac_status=$?
 
5826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5827
  (exit $ac_status); }; } &&
 
5828
         { ac_try='test -s conftest$ac_exeext'
 
5829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5830
  (eval $ac_try) 2>&5
 
5831
  ac_status=$?
 
5832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5833
  (exit $ac_status); }; }; then
 
5834
  gnupg_cv_pth_is_sane=yes
 
5835
else
 
5836
  echo "$as_me: failed program was:" >&5
 
5837
sed 's/^/| /' conftest.$ac_ext >&5
 
5838
 
 
5839
gnupg_cv_pth_is_sane=no
 
5840
fi
 
5841
rm -f conftest.err conftest.$ac_objext \
 
5842
      conftest$ac_exeext conftest.$ac_ext
 
5843
         CFLAGS=$_gnupg_pth_save_cflags
 
5844
         LDFLAGS=$_gnupg_pth_save_ldflags
 
5845
         LIBS=$_gnupg_pth_save_libs
 
5846
 
 
5847
fi
 
5848
 
 
5849
       if test $gnupg_cv_pth_is_sane != yes; then
 
5850
          have_pth=no
 
5851
       fi
 
5852
       echo "$as_me:$LINENO: result: $gnupg_cv_pth_is_sane" >&5
 
5853
echo "${ECHO_T}$gnupg_cv_pth_is_sane" >&6
 
5854
    else
 
5855
       echo "$as_me:$LINENO: result: no" >&5
 
5856
echo "${ECHO_T}no" >&6
 
5857
    fi
 
5858
 
 
5859
  if test $have_pth = yes; then
 
5860
     PTH_CFLAGS=`$PTH_CONFIG --cflags`
 
5861
     PTH_LIBS=`$PTH_CONFIG --ldflags`
 
5862
     PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs`"
 
5863
 
 
5864
cat >>confdefs.h <<\_ACEOF
 
5865
#define USE_GNU_PTH 1
 
5866
_ACEOF
 
5867
 
 
5868
  fi
 
5869
 fi
 
5870
else
 
5871
 have_pth=yes
 
5872
 PTH_CFLAGS=""
 
5873
 PTH_LIBS=""
 
5874
 cat >>confdefs.h <<\_ACEOF
 
5875
#define USE_GNU_PTH 1
 
5876
_ACEOF
 
5877
 
 
5878
fi
 
5879
 
 
5880
 
 
5881
 
 
5882
# Check whether --enable-threads or --disable-threads was given.
 
5883
if test "${enable_threads+set}" = set; then
 
5884
  enableval="$enable_threads"
 
5885
 
 
5886
fi;
 
5887
 
 
5888
 
 
5889
 
 
5890
echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
5891
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
5892
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
5893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5894
else
 
5895
  cat >conftest.$ac_ext <<_ACEOF
 
5896
/* confdefs.h.  */
 
5897
_ACEOF
 
5898
cat confdefs.h >>conftest.$ac_ext
 
5899
cat >>conftest.$ac_ext <<_ACEOF
 
5900
/* end confdefs.h.  */
 
5901
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
5902
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5903
#define gethostbyname innocuous_gethostbyname
 
5904
 
 
5905
/* System header to define __stub macros and hopefully few prototypes,
 
5906
    which can conflict with char gethostbyname (); below.
 
5907
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5908
    <limits.h> exists even on freestanding compilers.  */
 
5909
 
 
5910
#ifdef __STDC__
 
5911
# include <limits.h>
 
5912
#else
 
5913
# include <assert.h>
 
5914
#endif
 
5915
 
 
5916
#undef gethostbyname
 
5917
 
 
5918
/* Override any gcc2 internal prototype to avoid an error.  */
 
5919
#ifdef __cplusplus
 
5920
extern "C"
 
5921
{
 
5922
#endif
 
5923
/* We use char because int might match the return type of a gcc2
 
5924
   builtin and then its argument prototype would still apply.  */
 
5925
char gethostbyname ();
 
5926
/* The GNU C library defines this for functions which it implements
 
5927
    to always fail with ENOSYS.  Some functions are actually named
 
5928
    something starting with __ and the normal name is an alias.  */
 
5929
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
5930
choke me
 
5931
#else
 
5932
char (*f) () = gethostbyname;
 
5933
#endif
 
5934
#ifdef __cplusplus
 
5935
}
 
5936
#endif
 
5937
 
 
5938
int
 
5939
main ()
 
5940
{
 
5941
return f != gethostbyname;
 
5942
  ;
 
5943
  return 0;
 
5944
}
 
5945
_ACEOF
 
5946
rm -f conftest.$ac_objext conftest$ac_exeext
 
5947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5948
  (eval $ac_link) 2>conftest.er1
 
5949
  ac_status=$?
 
5950
  grep -v '^ *+' conftest.er1 >conftest.err
 
5951
  rm -f conftest.er1
 
5952
  cat conftest.err >&5
 
5953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5954
  (exit $ac_status); } &&
 
5955
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5957
  (eval $ac_try) 2>&5
 
5958
  ac_status=$?
 
5959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5960
  (exit $ac_status); }; } &&
 
5961
         { ac_try='test -s conftest$ac_exeext'
 
5962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5963
  (eval $ac_try) 2>&5
 
5964
  ac_status=$?
 
5965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5966
  (exit $ac_status); }; }; then
 
5967
  ac_cv_func_gethostbyname=yes
 
5968
else
 
5969
  echo "$as_me: failed program was:" >&5
 
5970
sed 's/^/| /' conftest.$ac_ext >&5
 
5971
 
 
5972
ac_cv_func_gethostbyname=no
 
5973
fi
 
5974
rm -f conftest.err conftest.$ac_objext \
 
5975
      conftest$ac_exeext conftest.$ac_ext
 
5976
fi
 
5977
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
5978
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
5979
if test $ac_cv_func_gethostbyname = yes; then
 
5980
  :
 
5981
else
 
5982
  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
5983
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
5984
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
5985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5986
else
 
5987
  ac_check_lib_save_LIBS=$LIBS
 
5988
LIBS="-lnsl  $LIBS"
 
5989
cat >conftest.$ac_ext <<_ACEOF
 
5990
/* confdefs.h.  */
 
5991
_ACEOF
 
5992
cat confdefs.h >>conftest.$ac_ext
 
5993
cat >>conftest.$ac_ext <<_ACEOF
 
5994
/* end confdefs.h.  */
 
5995
 
 
5996
/* Override any gcc2 internal prototype to avoid an error.  */
 
5997
#ifdef __cplusplus
 
5998
extern "C"
 
5999
#endif
 
6000
/* We use char because int might match the return type of a gcc2
 
6001
   builtin and then its argument prototype would still apply.  */
 
6002
char gethostbyname ();
 
6003
int
 
6004
main ()
 
6005
{
 
6006
gethostbyname ();
 
6007
  ;
 
6008
  return 0;
 
6009
}
 
6010
_ACEOF
 
6011
rm -f conftest.$ac_objext conftest$ac_exeext
 
6012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6013
  (eval $ac_link) 2>conftest.er1
 
6014
  ac_status=$?
 
6015
  grep -v '^ *+' conftest.er1 >conftest.err
 
6016
  rm -f conftest.er1
 
6017
  cat conftest.err >&5
 
6018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6019
  (exit $ac_status); } &&
 
6020
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6022
  (eval $ac_try) 2>&5
 
6023
  ac_status=$?
 
6024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6025
  (exit $ac_status); }; } &&
 
6026
         { ac_try='test -s conftest$ac_exeext'
 
6027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6028
  (eval $ac_try) 2>&5
 
6029
  ac_status=$?
 
6030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6031
  (exit $ac_status); }; }; then
 
6032
  ac_cv_lib_nsl_gethostbyname=yes
 
6033
else
 
6034
  echo "$as_me: failed program was:" >&5
 
6035
sed 's/^/| /' conftest.$ac_ext >&5
 
6036
 
 
6037
ac_cv_lib_nsl_gethostbyname=no
 
6038
fi
 
6039
rm -f conftest.err conftest.$ac_objext \
 
6040
      conftest$ac_exeext conftest.$ac_ext
 
6041
LIBS=$ac_check_lib_save_LIBS
 
6042
fi
 
6043
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
6044
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
6045
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
6046
  NETLIBS="-lnsl $NETLIBS"
 
6047
fi
 
6048
 
 
6049
fi
 
6050
 
 
6051
echo "$as_me:$LINENO: checking for setsockopt" >&5
 
6052
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
 
6053
if test "${ac_cv_func_setsockopt+set}" = set; then
 
6054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6055
else
 
6056
  cat >conftest.$ac_ext <<_ACEOF
 
6057
/* confdefs.h.  */
 
6058
_ACEOF
 
6059
cat confdefs.h >>conftest.$ac_ext
 
6060
cat >>conftest.$ac_ext <<_ACEOF
 
6061
/* end confdefs.h.  */
 
6062
/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
 
6063
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6064
#define setsockopt innocuous_setsockopt
 
6065
 
 
6066
/* System header to define __stub macros and hopefully few prototypes,
 
6067
    which can conflict with char setsockopt (); below.
 
6068
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6069
    <limits.h> exists even on freestanding compilers.  */
 
6070
 
 
6071
#ifdef __STDC__
 
6072
# include <limits.h>
 
6073
#else
 
6074
# include <assert.h>
 
6075
#endif
 
6076
 
 
6077
#undef setsockopt
 
6078
 
 
6079
/* Override any gcc2 internal prototype to avoid an error.  */
 
6080
#ifdef __cplusplus
 
6081
extern "C"
 
6082
{
 
6083
#endif
 
6084
/* We use char because int might match the return type of a gcc2
 
6085
   builtin and then its argument prototype would still apply.  */
 
6086
char setsockopt ();
 
6087
/* The GNU C library defines this for functions which it implements
 
6088
    to always fail with ENOSYS.  Some functions are actually named
 
6089
    something starting with __ and the normal name is an alias.  */
 
6090
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
 
6091
choke me
 
6092
#else
 
6093
char (*f) () = setsockopt;
 
6094
#endif
 
6095
#ifdef __cplusplus
 
6096
}
 
6097
#endif
 
6098
 
 
6099
int
 
6100
main ()
 
6101
{
 
6102
return f != setsockopt;
 
6103
  ;
 
6104
  return 0;
 
6105
}
 
6106
_ACEOF
 
6107
rm -f conftest.$ac_objext conftest$ac_exeext
 
6108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6109
  (eval $ac_link) 2>conftest.er1
 
6110
  ac_status=$?
 
6111
  grep -v '^ *+' conftest.er1 >conftest.err
 
6112
  rm -f conftest.er1
 
6113
  cat conftest.err >&5
 
6114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6115
  (exit $ac_status); } &&
 
6116
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6118
  (eval $ac_try) 2>&5
 
6119
  ac_status=$?
 
6120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6121
  (exit $ac_status); }; } &&
 
6122
         { ac_try='test -s conftest$ac_exeext'
 
6123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6124
  (eval $ac_try) 2>&5
 
6125
  ac_status=$?
 
6126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6127
  (exit $ac_status); }; }; then
 
6128
  ac_cv_func_setsockopt=yes
 
6129
else
 
6130
  echo "$as_me: failed program was:" >&5
 
6131
sed 's/^/| /' conftest.$ac_ext >&5
 
6132
 
 
6133
ac_cv_func_setsockopt=no
 
6134
fi
 
6135
rm -f conftest.err conftest.$ac_objext \
 
6136
      conftest$ac_exeext conftest.$ac_ext
 
6137
fi
 
6138
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
 
6139
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
 
6140
if test $ac_cv_func_setsockopt = yes; then
 
6141
  :
 
6142
else
 
6143
  echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
 
6144
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
 
6145
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
 
6146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6147
else
 
6148
  ac_check_lib_save_LIBS=$LIBS
 
6149
LIBS="-lsocket  $LIBS"
 
6150
cat >conftest.$ac_ext <<_ACEOF
 
6151
/* confdefs.h.  */
 
6152
_ACEOF
 
6153
cat confdefs.h >>conftest.$ac_ext
 
6154
cat >>conftest.$ac_ext <<_ACEOF
 
6155
/* end confdefs.h.  */
 
6156
 
 
6157
/* Override any gcc2 internal prototype to avoid an error.  */
 
6158
#ifdef __cplusplus
 
6159
extern "C"
 
6160
#endif
 
6161
/* We use char because int might match the return type of a gcc2
 
6162
   builtin and then its argument prototype would still apply.  */
 
6163
char setsockopt ();
 
6164
int
 
6165
main ()
 
6166
{
 
6167
setsockopt ();
 
6168
  ;
 
6169
  return 0;
 
6170
}
 
6171
_ACEOF
 
6172
rm -f conftest.$ac_objext conftest$ac_exeext
 
6173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6174
  (eval $ac_link) 2>conftest.er1
 
6175
  ac_status=$?
 
6176
  grep -v '^ *+' conftest.er1 >conftest.err
 
6177
  rm -f conftest.er1
 
6178
  cat conftest.err >&5
 
6179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6180
  (exit $ac_status); } &&
 
6181
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6183
  (eval $ac_try) 2>&5
 
6184
  ac_status=$?
 
6185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6186
  (exit $ac_status); }; } &&
 
6187
         { ac_try='test -s conftest$ac_exeext'
 
6188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6189
  (eval $ac_try) 2>&5
 
6190
  ac_status=$?
 
6191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6192
  (exit $ac_status); }; }; then
 
6193
  ac_cv_lib_socket_setsockopt=yes
 
6194
else
 
6195
  echo "$as_me: failed program was:" >&5
 
6196
sed 's/^/| /' conftest.$ac_ext >&5
 
6197
 
 
6198
ac_cv_lib_socket_setsockopt=no
 
6199
fi
 
6200
rm -f conftest.err conftest.$ac_objext \
 
6201
      conftest$ac_exeext conftest.$ac_ext
 
6202
LIBS=$ac_check_lib_save_LIBS
 
6203
fi
 
6204
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
 
6205
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
 
6206
if test $ac_cv_lib_socket_setsockopt = yes; then
 
6207
  NETLIBS="-lsocket $NETLIBS"
 
6208
fi
 
6209
 
 
6210
fi
 
6211
 
 
6212
 
 
6213
 
 
6214
# Check whether --enable-dns-srv or --disable-dns-srv was given.
 
6215
if test "${enable_dns_srv+set}" = set; then
 
6216
  enableval="$enable_dns_srv"
 
6217
  use_dns_srv=$enableval
 
6218
else
 
6219
  use_dns_srv=yes
 
6220
fi;
 
6221
 
 
6222
if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
 
6223
  _srv_save_libs=$LIBS
 
6224
  LIBS=""
 
6225
  # the double underscore thing is a glibc-ism?
 
6226
  echo "$as_me:$LINENO: checking for library containing res_query" >&5
 
6227
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
 
6228
if test "${ac_cv_search_res_query+set}" = set; then
 
6229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6230
else
 
6231
  ac_func_search_save_LIBS=$LIBS
 
6232
ac_cv_search_res_query=no
 
6233
cat >conftest.$ac_ext <<_ACEOF
 
6234
/* confdefs.h.  */
 
6235
_ACEOF
 
6236
cat confdefs.h >>conftest.$ac_ext
 
6237
cat >>conftest.$ac_ext <<_ACEOF
 
6238
/* end confdefs.h.  */
 
6239
 
 
6240
/* Override any gcc2 internal prototype to avoid an error.  */
 
6241
#ifdef __cplusplus
 
6242
extern "C"
 
6243
#endif
 
6244
/* We use char because int might match the return type of a gcc2
 
6245
   builtin and then its argument prototype would still apply.  */
 
6246
char res_query ();
 
6247
int
 
6248
main ()
 
6249
{
 
6250
res_query ();
 
6251
  ;
 
6252
  return 0;
 
6253
}
 
6254
_ACEOF
 
6255
rm -f conftest.$ac_objext conftest$ac_exeext
 
6256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6257
  (eval $ac_link) 2>conftest.er1
 
6258
  ac_status=$?
 
6259
  grep -v '^ *+' conftest.er1 >conftest.err
 
6260
  rm -f conftest.er1
 
6261
  cat conftest.err >&5
 
6262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6263
  (exit $ac_status); } &&
 
6264
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6266
  (eval $ac_try) 2>&5
 
6267
  ac_status=$?
 
6268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6269
  (exit $ac_status); }; } &&
 
6270
         { ac_try='test -s conftest$ac_exeext'
 
6271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6272
  (eval $ac_try) 2>&5
 
6273
  ac_status=$?
 
6274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6275
  (exit $ac_status); }; }; then
 
6276
  ac_cv_search_res_query="none required"
 
6277
else
 
6278
  echo "$as_me: failed program was:" >&5
 
6279
sed 's/^/| /' conftest.$ac_ext >&5
 
6280
 
 
6281
fi
 
6282
rm -f conftest.err conftest.$ac_objext \
 
6283
      conftest$ac_exeext conftest.$ac_ext
 
6284
if test "$ac_cv_search_res_query" = no; then
 
6285
  for ac_lib in resolv bind; do
 
6286
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6287
    cat >conftest.$ac_ext <<_ACEOF
 
6288
/* confdefs.h.  */
 
6289
_ACEOF
 
6290
cat confdefs.h >>conftest.$ac_ext
 
6291
cat >>conftest.$ac_ext <<_ACEOF
 
6292
/* end confdefs.h.  */
 
6293
 
 
6294
/* Override any gcc2 internal prototype to avoid an error.  */
 
6295
#ifdef __cplusplus
 
6296
extern "C"
 
6297
#endif
 
6298
/* We use char because int might match the return type of a gcc2
 
6299
   builtin and then its argument prototype would still apply.  */
 
6300
char res_query ();
 
6301
int
 
6302
main ()
 
6303
{
 
6304
res_query ();
 
6305
  ;
 
6306
  return 0;
 
6307
}
 
6308
_ACEOF
 
6309
rm -f conftest.$ac_objext conftest$ac_exeext
 
6310
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6311
  (eval $ac_link) 2>conftest.er1
 
6312
  ac_status=$?
 
6313
  grep -v '^ *+' conftest.er1 >conftest.err
 
6314
  rm -f conftest.er1
 
6315
  cat conftest.err >&5
 
6316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6317
  (exit $ac_status); } &&
 
6318
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6320
  (eval $ac_try) 2>&5
 
6321
  ac_status=$?
 
6322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6323
  (exit $ac_status); }; } &&
 
6324
         { ac_try='test -s conftest$ac_exeext'
 
6325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6326
  (eval $ac_try) 2>&5
 
6327
  ac_status=$?
 
6328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6329
  (exit $ac_status); }; }; then
 
6330
  ac_cv_search_res_query="-l$ac_lib"
 
6331
break
 
6332
else
 
6333
  echo "$as_me: failed program was:" >&5
 
6334
sed 's/^/| /' conftest.$ac_ext >&5
 
6335
 
 
6336
fi
 
6337
rm -f conftest.err conftest.$ac_objext \
 
6338
      conftest$ac_exeext conftest.$ac_ext
 
6339
  done
 
6340
fi
 
6341
LIBS=$ac_func_search_save_LIBS
 
6342
fi
 
6343
echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
 
6344
echo "${ECHO_T}$ac_cv_search_res_query" >&6
 
6345
if test "$ac_cv_search_res_query" != no; then
 
6346
  test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
 
6347
 
 
6348
else
 
6349
  echo "$as_me:$LINENO: checking for library containing __res_query" >&5
 
6350
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6
 
6351
if test "${ac_cv_search___res_query+set}" = set; then
 
6352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6353
else
 
6354
  ac_func_search_save_LIBS=$LIBS
 
6355
ac_cv_search___res_query=no
 
6356
cat >conftest.$ac_ext <<_ACEOF
 
6357
/* confdefs.h.  */
 
6358
_ACEOF
 
6359
cat confdefs.h >>conftest.$ac_ext
 
6360
cat >>conftest.$ac_ext <<_ACEOF
 
6361
/* end confdefs.h.  */
 
6362
 
 
6363
/* Override any gcc2 internal prototype to avoid an error.  */
 
6364
#ifdef __cplusplus
 
6365
extern "C"
 
6366
#endif
 
6367
/* We use char because int might match the return type of a gcc2
 
6368
   builtin and then its argument prototype would still apply.  */
 
6369
char __res_query ();
 
6370
int
 
6371
main ()
 
6372
{
 
6373
__res_query ();
 
6374
  ;
 
6375
  return 0;
 
6376
}
 
6377
_ACEOF
 
6378
rm -f conftest.$ac_objext conftest$ac_exeext
 
6379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6380
  (eval $ac_link) 2>conftest.er1
 
6381
  ac_status=$?
 
6382
  grep -v '^ *+' conftest.er1 >conftest.err
 
6383
  rm -f conftest.er1
 
6384
  cat conftest.err >&5
 
6385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6386
  (exit $ac_status); } &&
 
6387
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6389
  (eval $ac_try) 2>&5
 
6390
  ac_status=$?
 
6391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6392
  (exit $ac_status); }; } &&
 
6393
         { ac_try='test -s conftest$ac_exeext'
 
6394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6395
  (eval $ac_try) 2>&5
 
6396
  ac_status=$?
 
6397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6398
  (exit $ac_status); }; }; then
 
6399
  ac_cv_search___res_query="none required"
 
6400
else
 
6401
  echo "$as_me: failed program was:" >&5
 
6402
sed 's/^/| /' conftest.$ac_ext >&5
 
6403
 
 
6404
fi
 
6405
rm -f conftest.err conftest.$ac_objext \
 
6406
      conftest$ac_exeext conftest.$ac_ext
 
6407
if test "$ac_cv_search___res_query" = no; then
 
6408
  for ac_lib in resolv bind; do
 
6409
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6410
    cat >conftest.$ac_ext <<_ACEOF
 
6411
/* confdefs.h.  */
 
6412
_ACEOF
 
6413
cat confdefs.h >>conftest.$ac_ext
 
6414
cat >>conftest.$ac_ext <<_ACEOF
 
6415
/* end confdefs.h.  */
 
6416
 
 
6417
/* Override any gcc2 internal prototype to avoid an error.  */
 
6418
#ifdef __cplusplus
 
6419
extern "C"
 
6420
#endif
 
6421
/* We use char because int might match the return type of a gcc2
 
6422
   builtin and then its argument prototype would still apply.  */
 
6423
char __res_query ();
 
6424
int
 
6425
main ()
 
6426
{
 
6427
__res_query ();
 
6428
  ;
 
6429
  return 0;
 
6430
}
 
6431
_ACEOF
 
6432
rm -f conftest.$ac_objext conftest$ac_exeext
 
6433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6434
  (eval $ac_link) 2>conftest.er1
 
6435
  ac_status=$?
 
6436
  grep -v '^ *+' conftest.er1 >conftest.err
 
6437
  rm -f conftest.er1
 
6438
  cat conftest.err >&5
 
6439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6440
  (exit $ac_status); } &&
 
6441
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6443
  (eval $ac_try) 2>&5
 
6444
  ac_status=$?
 
6445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6446
  (exit $ac_status); }; } &&
 
6447
         { ac_try='test -s conftest$ac_exeext'
 
6448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6449
  (eval $ac_try) 2>&5
 
6450
  ac_status=$?
 
6451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6452
  (exit $ac_status); }; }; then
 
6453
  ac_cv_search___res_query="-l$ac_lib"
 
6454
break
 
6455
else
 
6456
  echo "$as_me: failed program was:" >&5
 
6457
sed 's/^/| /' conftest.$ac_ext >&5
 
6458
 
 
6459
fi
 
6460
rm -f conftest.err conftest.$ac_objext \
 
6461
      conftest$ac_exeext conftest.$ac_ext
 
6462
  done
 
6463
fi
 
6464
LIBS=$ac_func_search_save_LIBS
 
6465
fi
 
6466
echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
 
6467
echo "${ECHO_T}$ac_cv_search___res_query" >&6
 
6468
if test "$ac_cv_search___res_query" != no; then
 
6469
  test "$ac_cv_search___res_query" = "none required" || LIBS="$ac_cv_search___res_query $LIBS"
 
6470
 
 
6471
else
 
6472
  use_dns_srv=no
 
6473
fi
 
6474
 
 
6475
fi
 
6476
 
 
6477
  echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
 
6478
echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
 
6479
if test "${ac_cv_search_dn_expand+set}" = set; then
 
6480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6481
else
 
6482
  ac_func_search_save_LIBS=$LIBS
 
6483
ac_cv_search_dn_expand=no
 
6484
cat >conftest.$ac_ext <<_ACEOF
 
6485
/* confdefs.h.  */
 
6486
_ACEOF
 
6487
cat confdefs.h >>conftest.$ac_ext
 
6488
cat >>conftest.$ac_ext <<_ACEOF
 
6489
/* end confdefs.h.  */
 
6490
 
 
6491
/* Override any gcc2 internal prototype to avoid an error.  */
 
6492
#ifdef __cplusplus
 
6493
extern "C"
 
6494
#endif
 
6495
/* We use char because int might match the return type of a gcc2
 
6496
   builtin and then its argument prototype would still apply.  */
 
6497
char dn_expand ();
 
6498
int
 
6499
main ()
 
6500
{
 
6501
dn_expand ();
 
6502
  ;
 
6503
  return 0;
 
6504
}
 
6505
_ACEOF
 
6506
rm -f conftest.$ac_objext conftest$ac_exeext
 
6507
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6508
  (eval $ac_link) 2>conftest.er1
 
6509
  ac_status=$?
 
6510
  grep -v '^ *+' conftest.er1 >conftest.err
 
6511
  rm -f conftest.er1
 
6512
  cat conftest.err >&5
 
6513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6514
  (exit $ac_status); } &&
 
6515
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6517
  (eval $ac_try) 2>&5
 
6518
  ac_status=$?
 
6519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6520
  (exit $ac_status); }; } &&
 
6521
         { ac_try='test -s conftest$ac_exeext'
 
6522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6523
  (eval $ac_try) 2>&5
 
6524
  ac_status=$?
 
6525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6526
  (exit $ac_status); }; }; then
 
6527
  ac_cv_search_dn_expand="none required"
 
6528
else
 
6529
  echo "$as_me: failed program was:" >&5
 
6530
sed 's/^/| /' conftest.$ac_ext >&5
 
6531
 
 
6532
fi
 
6533
rm -f conftest.err conftest.$ac_objext \
 
6534
      conftest$ac_exeext conftest.$ac_ext
 
6535
if test "$ac_cv_search_dn_expand" = no; then
 
6536
  for ac_lib in resolv bind; do
 
6537
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6538
    cat >conftest.$ac_ext <<_ACEOF
 
6539
/* confdefs.h.  */
 
6540
_ACEOF
 
6541
cat confdefs.h >>conftest.$ac_ext
 
6542
cat >>conftest.$ac_ext <<_ACEOF
 
6543
/* end confdefs.h.  */
 
6544
 
 
6545
/* Override any gcc2 internal prototype to avoid an error.  */
 
6546
#ifdef __cplusplus
 
6547
extern "C"
 
6548
#endif
 
6549
/* We use char because int might match the return type of a gcc2
 
6550
   builtin and then its argument prototype would still apply.  */
 
6551
char dn_expand ();
 
6552
int
 
6553
main ()
 
6554
{
 
6555
dn_expand ();
 
6556
  ;
 
6557
  return 0;
 
6558
}
 
6559
_ACEOF
 
6560
rm -f conftest.$ac_objext conftest$ac_exeext
 
6561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6562
  (eval $ac_link) 2>conftest.er1
 
6563
  ac_status=$?
 
6564
  grep -v '^ *+' conftest.er1 >conftest.err
 
6565
  rm -f conftest.er1
 
6566
  cat conftest.err >&5
 
6567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6568
  (exit $ac_status); } &&
 
6569
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6571
  (eval $ac_try) 2>&5
 
6572
  ac_status=$?
 
6573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6574
  (exit $ac_status); }; } &&
 
6575
         { ac_try='test -s conftest$ac_exeext'
 
6576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6577
  (eval $ac_try) 2>&5
 
6578
  ac_status=$?
 
6579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6580
  (exit $ac_status); }; }; then
 
6581
  ac_cv_search_dn_expand="-l$ac_lib"
 
6582
break
 
6583
else
 
6584
  echo "$as_me: failed program was:" >&5
 
6585
sed 's/^/| /' conftest.$ac_ext >&5
 
6586
 
 
6587
fi
 
6588
rm -f conftest.err conftest.$ac_objext \
 
6589
      conftest$ac_exeext conftest.$ac_ext
 
6590
  done
 
6591
fi
 
6592
LIBS=$ac_func_search_save_LIBS
 
6593
fi
 
6594
echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
 
6595
echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
 
6596
if test "$ac_cv_search_dn_expand" != no; then
 
6597
  test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
 
6598
 
 
6599
else
 
6600
  echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
 
6601
echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
 
6602
if test "${ac_cv_search___dn_expand+set}" = set; then
 
6603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6604
else
 
6605
  ac_func_search_save_LIBS=$LIBS
 
6606
ac_cv_search___dn_expand=no
 
6607
cat >conftest.$ac_ext <<_ACEOF
 
6608
/* confdefs.h.  */
 
6609
_ACEOF
 
6610
cat confdefs.h >>conftest.$ac_ext
 
6611
cat >>conftest.$ac_ext <<_ACEOF
 
6612
/* end confdefs.h.  */
 
6613
 
 
6614
/* Override any gcc2 internal prototype to avoid an error.  */
 
6615
#ifdef __cplusplus
 
6616
extern "C"
 
6617
#endif
 
6618
/* We use char because int might match the return type of a gcc2
 
6619
   builtin and then its argument prototype would still apply.  */
 
6620
char __dn_expand ();
 
6621
int
 
6622
main ()
 
6623
{
 
6624
__dn_expand ();
 
6625
  ;
 
6626
  return 0;
 
6627
}
 
6628
_ACEOF
 
6629
rm -f conftest.$ac_objext conftest$ac_exeext
 
6630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6631
  (eval $ac_link) 2>conftest.er1
 
6632
  ac_status=$?
 
6633
  grep -v '^ *+' conftest.er1 >conftest.err
 
6634
  rm -f conftest.er1
 
6635
  cat conftest.err >&5
 
6636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6637
  (exit $ac_status); } &&
 
6638
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6640
  (eval $ac_try) 2>&5
 
6641
  ac_status=$?
 
6642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6643
  (exit $ac_status); }; } &&
 
6644
         { ac_try='test -s conftest$ac_exeext'
 
6645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6646
  (eval $ac_try) 2>&5
 
6647
  ac_status=$?
 
6648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6649
  (exit $ac_status); }; }; then
 
6650
  ac_cv_search___dn_expand="none required"
 
6651
else
 
6652
  echo "$as_me: failed program was:" >&5
 
6653
sed 's/^/| /' conftest.$ac_ext >&5
 
6654
 
 
6655
fi
 
6656
rm -f conftest.err conftest.$ac_objext \
 
6657
      conftest$ac_exeext conftest.$ac_ext
 
6658
if test "$ac_cv_search___dn_expand" = no; then
 
6659
  for ac_lib in resolv bind; do
 
6660
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6661
    cat >conftest.$ac_ext <<_ACEOF
 
6662
/* confdefs.h.  */
 
6663
_ACEOF
 
6664
cat confdefs.h >>conftest.$ac_ext
 
6665
cat >>conftest.$ac_ext <<_ACEOF
 
6666
/* end confdefs.h.  */
 
6667
 
 
6668
/* Override any gcc2 internal prototype to avoid an error.  */
 
6669
#ifdef __cplusplus
 
6670
extern "C"
 
6671
#endif
 
6672
/* We use char because int might match the return type of a gcc2
 
6673
   builtin and then its argument prototype would still apply.  */
 
6674
char __dn_expand ();
 
6675
int
 
6676
main ()
 
6677
{
 
6678
__dn_expand ();
 
6679
  ;
 
6680
  return 0;
 
6681
}
 
6682
_ACEOF
 
6683
rm -f conftest.$ac_objext conftest$ac_exeext
 
6684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6685
  (eval $ac_link) 2>conftest.er1
 
6686
  ac_status=$?
 
6687
  grep -v '^ *+' conftest.er1 >conftest.err
 
6688
  rm -f conftest.er1
 
6689
  cat conftest.err >&5
 
6690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6691
  (exit $ac_status); } &&
 
6692
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6694
  (eval $ac_try) 2>&5
 
6695
  ac_status=$?
 
6696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6697
  (exit $ac_status); }; } &&
 
6698
         { ac_try='test -s conftest$ac_exeext'
 
6699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6700
  (eval $ac_try) 2>&5
 
6701
  ac_status=$?
 
6702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6703
  (exit $ac_status); }; }; then
 
6704
  ac_cv_search___dn_expand="-l$ac_lib"
 
6705
break
 
6706
else
 
6707
  echo "$as_me: failed program was:" >&5
 
6708
sed 's/^/| /' conftest.$ac_ext >&5
 
6709
 
 
6710
fi
 
6711
rm -f conftest.err conftest.$ac_objext \
 
6712
      conftest$ac_exeext conftest.$ac_ext
 
6713
  done
 
6714
fi
 
6715
LIBS=$ac_func_search_save_LIBS
 
6716
fi
 
6717
echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
 
6718
echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
 
6719
if test "$ac_cv_search___dn_expand" != no; then
 
6720
  test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
 
6721
 
 
6722
else
 
6723
  use_dns_srv=no
 
6724
fi
 
6725
 
 
6726
fi
 
6727
 
 
6728
  echo "$as_me:$LINENO: checking for library containing dn_skipname" >&5
 
6729
echo $ECHO_N "checking for library containing dn_skipname... $ECHO_C" >&6
 
6730
if test "${ac_cv_search_dn_skipname+set}" = set; then
 
6731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6732
else
 
6733
  ac_func_search_save_LIBS=$LIBS
 
6734
ac_cv_search_dn_skipname=no
 
6735
cat >conftest.$ac_ext <<_ACEOF
 
6736
/* confdefs.h.  */
 
6737
_ACEOF
 
6738
cat confdefs.h >>conftest.$ac_ext
 
6739
cat >>conftest.$ac_ext <<_ACEOF
 
6740
/* end confdefs.h.  */
 
6741
 
 
6742
/* Override any gcc2 internal prototype to avoid an error.  */
 
6743
#ifdef __cplusplus
 
6744
extern "C"
 
6745
#endif
 
6746
/* We use char because int might match the return type of a gcc2
 
6747
   builtin and then its argument prototype would still apply.  */
 
6748
char dn_skipname ();
 
6749
int
 
6750
main ()
 
6751
{
 
6752
dn_skipname ();
 
6753
  ;
 
6754
  return 0;
 
6755
}
 
6756
_ACEOF
 
6757
rm -f conftest.$ac_objext conftest$ac_exeext
 
6758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6759
  (eval $ac_link) 2>conftest.er1
 
6760
  ac_status=$?
 
6761
  grep -v '^ *+' conftest.er1 >conftest.err
 
6762
  rm -f conftest.er1
 
6763
  cat conftest.err >&5
 
6764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6765
  (exit $ac_status); } &&
 
6766
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6768
  (eval $ac_try) 2>&5
 
6769
  ac_status=$?
 
6770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6771
  (exit $ac_status); }; } &&
 
6772
         { ac_try='test -s conftest$ac_exeext'
 
6773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6774
  (eval $ac_try) 2>&5
 
6775
  ac_status=$?
 
6776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6777
  (exit $ac_status); }; }; then
 
6778
  ac_cv_search_dn_skipname="none required"
 
6779
else
 
6780
  echo "$as_me: failed program was:" >&5
 
6781
sed 's/^/| /' conftest.$ac_ext >&5
 
6782
 
 
6783
fi
 
6784
rm -f conftest.err conftest.$ac_objext \
 
6785
      conftest$ac_exeext conftest.$ac_ext
 
6786
if test "$ac_cv_search_dn_skipname" = no; then
 
6787
  for ac_lib in resolv bind; do
 
6788
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6789
    cat >conftest.$ac_ext <<_ACEOF
 
6790
/* confdefs.h.  */
 
6791
_ACEOF
 
6792
cat confdefs.h >>conftest.$ac_ext
 
6793
cat >>conftest.$ac_ext <<_ACEOF
 
6794
/* end confdefs.h.  */
 
6795
 
 
6796
/* Override any gcc2 internal prototype to avoid an error.  */
 
6797
#ifdef __cplusplus
 
6798
extern "C"
 
6799
#endif
 
6800
/* We use char because int might match the return type of a gcc2
 
6801
   builtin and then its argument prototype would still apply.  */
 
6802
char dn_skipname ();
 
6803
int
 
6804
main ()
 
6805
{
 
6806
dn_skipname ();
 
6807
  ;
 
6808
  return 0;
 
6809
}
 
6810
_ACEOF
 
6811
rm -f conftest.$ac_objext conftest$ac_exeext
 
6812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6813
  (eval $ac_link) 2>conftest.er1
 
6814
  ac_status=$?
 
6815
  grep -v '^ *+' conftest.er1 >conftest.err
 
6816
  rm -f conftest.er1
 
6817
  cat conftest.err >&5
 
6818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6819
  (exit $ac_status); } &&
 
6820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6822
  (eval $ac_try) 2>&5
 
6823
  ac_status=$?
 
6824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6825
  (exit $ac_status); }; } &&
 
6826
         { ac_try='test -s conftest$ac_exeext'
 
6827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6828
  (eval $ac_try) 2>&5
 
6829
  ac_status=$?
 
6830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6831
  (exit $ac_status); }; }; then
 
6832
  ac_cv_search_dn_skipname="-l$ac_lib"
 
6833
break
 
6834
else
 
6835
  echo "$as_me: failed program was:" >&5
 
6836
sed 's/^/| /' conftest.$ac_ext >&5
 
6837
 
 
6838
fi
 
6839
rm -f conftest.err conftest.$ac_objext \
 
6840
      conftest$ac_exeext conftest.$ac_ext
 
6841
  done
 
6842
fi
 
6843
LIBS=$ac_func_search_save_LIBS
 
6844
fi
 
6845
echo "$as_me:$LINENO: result: $ac_cv_search_dn_skipname" >&5
 
6846
echo "${ECHO_T}$ac_cv_search_dn_skipname" >&6
 
6847
if test "$ac_cv_search_dn_skipname" != no; then
 
6848
  test "$ac_cv_search_dn_skipname" = "none required" || LIBS="$ac_cv_search_dn_skipname $LIBS"
 
6849
 
 
6850
else
 
6851
  echo "$as_me:$LINENO: checking for library containing __dn_skipname" >&5
 
6852
echo $ECHO_N "checking for library containing __dn_skipname... $ECHO_C" >&6
 
6853
if test "${ac_cv_search___dn_skipname+set}" = set; then
 
6854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6855
else
 
6856
  ac_func_search_save_LIBS=$LIBS
 
6857
ac_cv_search___dn_skipname=no
 
6858
cat >conftest.$ac_ext <<_ACEOF
 
6859
/* confdefs.h.  */
 
6860
_ACEOF
 
6861
cat confdefs.h >>conftest.$ac_ext
 
6862
cat >>conftest.$ac_ext <<_ACEOF
 
6863
/* end confdefs.h.  */
 
6864
 
 
6865
/* Override any gcc2 internal prototype to avoid an error.  */
 
6866
#ifdef __cplusplus
 
6867
extern "C"
 
6868
#endif
 
6869
/* We use char because int might match the return type of a gcc2
 
6870
   builtin and then its argument prototype would still apply.  */
 
6871
char __dn_skipname ();
 
6872
int
 
6873
main ()
 
6874
{
 
6875
__dn_skipname ();
 
6876
  ;
 
6877
  return 0;
 
6878
}
 
6879
_ACEOF
 
6880
rm -f conftest.$ac_objext conftest$ac_exeext
 
6881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6882
  (eval $ac_link) 2>conftest.er1
 
6883
  ac_status=$?
 
6884
  grep -v '^ *+' conftest.er1 >conftest.err
 
6885
  rm -f conftest.er1
 
6886
  cat conftest.err >&5
 
6887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6888
  (exit $ac_status); } &&
 
6889
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6891
  (eval $ac_try) 2>&5
 
6892
  ac_status=$?
 
6893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6894
  (exit $ac_status); }; } &&
 
6895
         { ac_try='test -s conftest$ac_exeext'
 
6896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6897
  (eval $ac_try) 2>&5
 
6898
  ac_status=$?
 
6899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6900
  (exit $ac_status); }; }; then
 
6901
  ac_cv_search___dn_skipname="none required"
 
6902
else
 
6903
  echo "$as_me: failed program was:" >&5
 
6904
sed 's/^/| /' conftest.$ac_ext >&5
 
6905
 
 
6906
fi
 
6907
rm -f conftest.err conftest.$ac_objext \
 
6908
      conftest$ac_exeext conftest.$ac_ext
 
6909
if test "$ac_cv_search___dn_skipname" = no; then
 
6910
  for ac_lib in resolv bind; do
 
6911
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6912
    cat >conftest.$ac_ext <<_ACEOF
 
6913
/* confdefs.h.  */
 
6914
_ACEOF
 
6915
cat confdefs.h >>conftest.$ac_ext
 
6916
cat >>conftest.$ac_ext <<_ACEOF
 
6917
/* end confdefs.h.  */
 
6918
 
 
6919
/* Override any gcc2 internal prototype to avoid an error.  */
 
6920
#ifdef __cplusplus
 
6921
extern "C"
 
6922
#endif
 
6923
/* We use char because int might match the return type of a gcc2
 
6924
   builtin and then its argument prototype would still apply.  */
 
6925
char __dn_skipname ();
 
6926
int
 
6927
main ()
 
6928
{
 
6929
__dn_skipname ();
 
6930
  ;
 
6931
  return 0;
 
6932
}
 
6933
_ACEOF
 
6934
rm -f conftest.$ac_objext conftest$ac_exeext
 
6935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6936
  (eval $ac_link) 2>conftest.er1
 
6937
  ac_status=$?
 
6938
  grep -v '^ *+' conftest.er1 >conftest.err
 
6939
  rm -f conftest.er1
 
6940
  cat conftest.err >&5
 
6941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6942
  (exit $ac_status); } &&
 
6943
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6945
  (eval $ac_try) 2>&5
 
6946
  ac_status=$?
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); }; } &&
 
6949
         { ac_try='test -s conftest$ac_exeext'
 
6950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6951
  (eval $ac_try) 2>&5
 
6952
  ac_status=$?
 
6953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6954
  (exit $ac_status); }; }; then
 
6955
  ac_cv_search___dn_skipname="-l$ac_lib"
 
6956
break
 
6957
else
 
6958
  echo "$as_me: failed program was:" >&5
 
6959
sed 's/^/| /' conftest.$ac_ext >&5
 
6960
 
 
6961
fi
 
6962
rm -f conftest.err conftest.$ac_objext \
 
6963
      conftest$ac_exeext conftest.$ac_ext
 
6964
  done
 
6965
fi
 
6966
LIBS=$ac_func_search_save_LIBS
 
6967
fi
 
6968
echo "$as_me:$LINENO: result: $ac_cv_search___dn_skipname" >&5
 
6969
echo "${ECHO_T}$ac_cv_search___dn_skipname" >&6
 
6970
if test "$ac_cv_search___dn_skipname" != no; then
 
6971
  test "$ac_cv_search___dn_skipname" = "none required" || LIBS="$ac_cv_search___dn_skipname $LIBS"
 
6972
 
 
6973
else
 
6974
  use_dns_srv=no
 
6975
fi
 
6976
 
 
6977
fi
 
6978
 
 
6979
 
 
6980
  if test x"$use_dns_srv" = xyes ; then
 
6981
 
 
6982
cat >>confdefs.h <<\_ACEOF
 
6983
#define USE_DNS_SRV 1
 
6984
_ACEOF
 
6985
 
 
6986
     SRVLIBS=$LIBS
 
6987
  else
 
6988
     { echo "$as_me:$LINENO: WARNING: Resolver functions not found.  Disabling DNS SRV." >&5
 
6989
echo "$as_me: WARNING: Resolver functions not found.  Disabling DNS SRV." >&2;}
 
6990
  fi
 
6991
  LIBS=$_srv_save_libs
 
6992
fi
 
6993
 
 
6994
 
 
6995
 
 
6996
# Try and link a LDAP test program to weed out unusable LDAP
 
6997
# libraries.  -lldap [-llber [-lresolv]] is for OpenLDAP.  OpenLDAP in
 
6998
# general is terrible with creating weird dependencies.  If all else
 
6999
# fails, the user can play guess-the-dependency by using something
 
7000
# like ./configure LDAPLIBS="-Lfoo -lbar"
 
7001
 
 
7002
if test "$try_ldap" = yes ; then
 
7003
  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv"; do
 
7004
    _ldap_save_libs=$LIBS
 
7005
    LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
 
7006
 
 
7007
    echo "$as_me:$LINENO: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
 
7008
echo $ECHO_N "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... $ECHO_C" >&6
 
7009
    cat >conftest.$ac_ext <<_ACEOF
 
7010
/* confdefs.h.  */
 
7011
_ACEOF
 
7012
cat confdefs.h >>conftest.$ac_ext
 
7013
cat >>conftest.$ac_ext <<_ACEOF
 
7014
/* end confdefs.h.  */
 
7015
#include <ldap.h>
 
7016
int
 
7017
main ()
 
7018
{
 
7019
ldap_open("foobar",1234);
 
7020
  ;
 
7021
  return 0;
 
7022
}
 
7023
_ACEOF
 
7024
rm -f conftest.$ac_objext conftest$ac_exeext
 
7025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7026
  (eval $ac_link) 2>conftest.er1
 
7027
  ac_status=$?
 
7028
  grep -v '^ *+' conftest.er1 >conftest.err
 
7029
  rm -f conftest.er1
 
7030
  cat conftest.err >&5
 
7031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7032
  (exit $ac_status); } &&
 
7033
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7035
  (eval $ac_try) 2>&5
 
7036
  ac_status=$?
 
7037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7038
  (exit $ac_status); }; } &&
 
7039
         { ac_try='test -s conftest$ac_exeext'
 
7040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7041
  (eval $ac_try) 2>&5
 
7042
  ac_status=$?
 
7043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7044
  (exit $ac_status); }; }; then
 
7045
  gnupg_cv_func_ldap_init=yes
 
7046
else
 
7047
  echo "$as_me: failed program was:" >&5
 
7048
sed 's/^/| /' conftest.$ac_ext >&5
 
7049
 
 
7050
gnupg_cv_func_ldap_init=no
 
7051
fi
 
7052
rm -f conftest.err conftest.$ac_objext \
 
7053
      conftest$ac_exeext conftest.$ac_ext
 
7054
    echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_init" >&5
 
7055
echo "${ECHO_T}$gnupg_cv_func_ldap_init" >&6
 
7056
 
 
7057
    if test $gnupg_cv_func_ldap_init = no; then
 
7058
      echo "$as_me:$LINENO: checking whether I can make LDAP be sane with lber.h" >&5
 
7059
echo $ECHO_N "checking whether I can make LDAP be sane with lber.h... $ECHO_C" >&6
 
7060
      cat >conftest.$ac_ext <<_ACEOF
 
7061
/* confdefs.h.  */
 
7062
_ACEOF
 
7063
cat confdefs.h >>conftest.$ac_ext
 
7064
cat >>conftest.$ac_ext <<_ACEOF
 
7065
/* end confdefs.h.  */
 
7066
#include <lber.h>
 
7067
#include <ldap.h>
 
7068
int
 
7069
main ()
 
7070
{
 
7071
ldap_open("foobar",1234);
 
7072
  ;
 
7073
  return 0;
 
7074
}
 
7075
_ACEOF
 
7076
rm -f conftest.$ac_objext conftest$ac_exeext
 
7077
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7078
  (eval $ac_link) 2>conftest.er1
 
7079
  ac_status=$?
 
7080
  grep -v '^ *+' conftest.er1 >conftest.err
 
7081
  rm -f conftest.er1
 
7082
  cat conftest.err >&5
 
7083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7084
  (exit $ac_status); } &&
 
7085
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7087
  (eval $ac_try) 2>&5
 
7088
  ac_status=$?
 
7089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7090
  (exit $ac_status); }; } &&
 
7091
         { ac_try='test -s conftest$ac_exeext'
 
7092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7093
  (eval $ac_try) 2>&5
 
7094
  ac_status=$?
 
7095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7096
  (exit $ac_status); }; }; then
 
7097
  gnupg_cv_func_ldaplber_init=yes
 
7098
else
 
7099
  echo "$as_me: failed program was:" >&5
 
7100
sed 's/^/| /' conftest.$ac_ext >&5
 
7101
 
 
7102
gnupg_cv_func_ldaplber_init=no
 
7103
fi
 
7104
rm -f conftest.err conftest.$ac_objext \
 
7105
      conftest$ac_exeext conftest.$ac_ext
 
7106
      echo "$as_me:$LINENO: result: $gnupg_cv_func_ldaplber_init" >&5
 
7107
echo "${ECHO_T}$gnupg_cv_func_ldaplber_init" >&6
 
7108
    fi
 
7109
 
 
7110
    if test "$gnupg_cv_func_ldaplber_init" = yes ; then
 
7111
 
 
7112
cat >>confdefs.h <<\_ACEOF
 
7113
#define NEED_LBER_H 1
 
7114
_ACEOF
 
7115
 
 
7116
    fi
 
7117
 
 
7118
    if test "$gnupg_cv_func_ldap_init" = yes || \
 
7119
        test "$gnupg_cv_func_ldaplber_init" = yes ; then
 
7120
       LDAPLIBS=$MY_LDAPLIBS
 
7121
       GPGKEYS_LDAP="gpgkeys_ldap$EXEEXT"
 
7122
 
 
7123
       echo "$as_me:$LINENO: checking whether LDAP supports ldap_get_option" >&5
 
7124
echo $ECHO_N "checking whether LDAP supports ldap_get_option... $ECHO_C" >&6
 
7125
 
 
7126
       if test "$gnupg_cv_func_ldap_init" = yes ; then
 
7127
          cat >conftest.$ac_ext <<_ACEOF
 
7128
/* confdefs.h.  */
 
7129
_ACEOF
 
7130
cat confdefs.h >>conftest.$ac_ext
 
7131
cat >>conftest.$ac_ext <<_ACEOF
 
7132
/* end confdefs.h.  */
 
7133
#include <ldap.h>
 
7134
int
 
7135
main ()
 
7136
{
 
7137
ldap_get_option((void *)0,0,(void *)0);
 
7138
  ;
 
7139
  return 0;
 
7140
}
 
7141
_ACEOF
 
7142
rm -f conftest.$ac_objext conftest$ac_exeext
 
7143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7144
  (eval $ac_link) 2>conftest.er1
 
7145
  ac_status=$?
 
7146
  grep -v '^ *+' conftest.er1 >conftest.err
 
7147
  rm -f conftest.er1
 
7148
  cat conftest.err >&5
 
7149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7150
  (exit $ac_status); } &&
 
7151
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7153
  (eval $ac_try) 2>&5
 
7154
  ac_status=$?
 
7155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7156
  (exit $ac_status); }; } &&
 
7157
         { ac_try='test -s conftest$ac_exeext'
 
7158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7159
  (eval $ac_try) 2>&5
 
7160
  ac_status=$?
 
7161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7162
  (exit $ac_status); }; }; then
 
7163
  gnupg_cv_func_ldap_get_option=yes
 
7164
else
 
7165
  echo "$as_me: failed program was:" >&5
 
7166
sed 's/^/| /' conftest.$ac_ext >&5
 
7167
 
 
7168
gnupg_cv_func_ldap_get_option=no
 
7169
fi
 
7170
rm -f conftest.err conftest.$ac_objext \
 
7171
      conftest$ac_exeext conftest.$ac_ext
 
7172
        else
 
7173
          cat >conftest.$ac_ext <<_ACEOF
 
7174
/* confdefs.h.  */
 
7175
_ACEOF
 
7176
cat confdefs.h >>conftest.$ac_ext
 
7177
cat >>conftest.$ac_ext <<_ACEOF
 
7178
/* end confdefs.h.  */
 
7179
#include <lber.h>
 
7180
#include <ldap.h>
 
7181
int
 
7182
main ()
 
7183
{
 
7184
ldap_get_option((void *)0,0,(void *)0);
 
7185
  ;
 
7186
  return 0;
 
7187
}
 
7188
_ACEOF
 
7189
rm -f conftest.$ac_objext conftest$ac_exeext
 
7190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7191
  (eval $ac_link) 2>conftest.er1
 
7192
  ac_status=$?
 
7193
  grep -v '^ *+' conftest.er1 >conftest.err
 
7194
  rm -f conftest.er1
 
7195
  cat conftest.err >&5
 
7196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7197
  (exit $ac_status); } &&
 
7198
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7200
  (eval $ac_try) 2>&5
 
7201
  ac_status=$?
 
7202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7203
  (exit $ac_status); }; } &&
 
7204
         { ac_try='test -s conftest$ac_exeext'
 
7205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7206
  (eval $ac_try) 2>&5
 
7207
  ac_status=$?
 
7208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7209
  (exit $ac_status); }; }; then
 
7210
  gnupg_cv_func_ldap_get_option=yes
 
7211
else
 
7212
  echo "$as_me: failed program was:" >&5
 
7213
sed 's/^/| /' conftest.$ac_ext >&5
 
7214
 
 
7215
gnupg_cv_func_ldap_get_option=no
 
7216
fi
 
7217
rm -f conftest.err conftest.$ac_objext \
 
7218
      conftest$ac_exeext conftest.$ac_ext
 
7219
       fi
 
7220
 
 
7221
       echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_get_option" >&5
 
7222
echo "${ECHO_T}$gnupg_cv_func_ldap_get_option" >&6
 
7223
 
 
7224
       if test "$gnupg_cv_func_ldap_get_option" = yes ; then
 
7225
 
 
7226
cat >>confdefs.h <<\_ACEOF
 
7227
#define HAVE_LDAP_GET_OPTION 1
 
7228
_ACEOF
 
7229
 
 
7230
       else
 
7231
          echo "$as_me:$LINENO: checking whether LDAP supports ld_errno" >&5
 
7232
echo $ECHO_N "checking whether LDAP supports ld_errno... $ECHO_C" >&6
 
7233
 
 
7234
          if test "$gnupg_cv_func_ldap_init" = yes ; then
 
7235
            cat >conftest.$ac_ext <<_ACEOF
 
7236
/* confdefs.h.  */
 
7237
_ACEOF
 
7238
cat confdefs.h >>conftest.$ac_ext
 
7239
cat >>conftest.$ac_ext <<_ACEOF
 
7240
/* end confdefs.h.  */
 
7241
#include <ldap.h>
 
7242
int
 
7243
main ()
 
7244
{
 
7245
LDAP *ldap; ldap->ld_errno;
 
7246
  ;
 
7247
  return 0;
 
7248
}
 
7249
_ACEOF
 
7250
rm -f conftest.$ac_objext
 
7251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7252
  (eval $ac_compile) 2>conftest.er1
 
7253
  ac_status=$?
 
7254
  grep -v '^ *+' conftest.er1 >conftest.err
 
7255
  rm -f conftest.er1
 
7256
  cat conftest.err >&5
 
7257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7258
  (exit $ac_status); } &&
 
7259
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7261
  (eval $ac_try) 2>&5
 
7262
  ac_status=$?
 
7263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7264
  (exit $ac_status); }; } &&
 
7265
         { ac_try='test -s conftest.$ac_objext'
 
7266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7267
  (eval $ac_try) 2>&5
 
7268
  ac_status=$?
 
7269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7270
  (exit $ac_status); }; }; then
 
7271
  gnupg_cv_func_ldap_ld_errno=yes
 
7272
else
 
7273
  echo "$as_me: failed program was:" >&5
 
7274
sed 's/^/| /' conftest.$ac_ext >&5
 
7275
 
 
7276
gnupg_cv_func_ldap_ld_errno=no
 
7277
fi
 
7278
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7279
           else
 
7280
            cat >conftest.$ac_ext <<_ACEOF
 
7281
/* confdefs.h.  */
 
7282
_ACEOF
 
7283
cat confdefs.h >>conftest.$ac_ext
 
7284
cat >>conftest.$ac_ext <<_ACEOF
 
7285
/* end confdefs.h.  */
 
7286
#include <lber.h>
 
7287
#include <ldap.h>
 
7288
int
 
7289
main ()
 
7290
{
 
7291
LDAP *ldap; ldap->ld_errno;
 
7292
  ;
 
7293
  return 0;
 
7294
}
 
7295
_ACEOF
 
7296
rm -f conftest.$ac_objext conftest$ac_exeext
 
7297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7298
  (eval $ac_link) 2>conftest.er1
 
7299
  ac_status=$?
 
7300
  grep -v '^ *+' conftest.er1 >conftest.err
 
7301
  rm -f conftest.er1
 
7302
  cat conftest.err >&5
 
7303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7304
  (exit $ac_status); } &&
 
7305
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7307
  (eval $ac_try) 2>&5
 
7308
  ac_status=$?
 
7309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7310
  (exit $ac_status); }; } &&
 
7311
         { ac_try='test -s conftest$ac_exeext'
 
7312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7313
  (eval $ac_try) 2>&5
 
7314
  ac_status=$?
 
7315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7316
  (exit $ac_status); }; }; then
 
7317
  gnupg_cv_func_ldap_ld_errno=yes
 
7318
else
 
7319
  echo "$as_me: failed program was:" >&5
 
7320
sed 's/^/| /' conftest.$ac_ext >&5
 
7321
 
 
7322
gnupg_cv_func_ldap_ld_errno=no
 
7323
fi
 
7324
rm -f conftest.err conftest.$ac_objext \
 
7325
      conftest$ac_exeext conftest.$ac_ext
 
7326
          fi
 
7327
 
 
7328
          echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_ld_errno" >&5
 
7329
echo "${ECHO_T}$gnupg_cv_func_ldap_ld_errno" >&6
 
7330
 
 
7331
          if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
 
7332
 
 
7333
cat >>confdefs.h <<\_ACEOF
 
7334
#define HAVE_LDAP_LD_ERRNO 1
 
7335
_ACEOF
 
7336
 
 
7337
          fi
 
7338
       fi
 
7339
    fi
 
7340
 
 
7341
    LIBS=$_ldap_save_libs
 
7342
 
 
7343
    if test "$GPGKEYS_LDAP" != "" ; then break; fi
 
7344
  done
 
7345
fi
 
7346
 
 
7347
 
 
7348
 
 
7349
 
 
7350
 
 
7351
if test "$try_mailto" = yes ; then
 
7352
 
 
7353
# Check whether --with-mailprog or --without-mailprog was given.
 
7354
if test "${with_mailprog+set}" = set; then
 
7355
  withval="$with_mailprog"
 
7356
 
 
7357
else
 
7358
  with_mailprog=yes
 
7359
fi;
 
7360
 
 
7361
  if test "$with_mailprog" = yes ; then
 
7362
    # Extract the first word of "sendmail", so it can be a program name with args.
 
7363
set dummy sendmail; ac_word=$2
 
7364
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7366
if test "${ac_cv_path_SENDMAIL+set}" = set; then
 
7367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7368
else
 
7369
  case $SENDMAIL in
 
7370
  [\\/]* | ?:[\\/]*)
 
7371
  ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
 
7372
  ;;
 
7373
  *)
 
7374
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7375
as_dummy="$PATH:/usr/sbin:/usr/libexec:/usr/lib"
 
7376
for as_dir in $as_dummy
 
7377
do
 
7378
  IFS=$as_save_IFS
 
7379
  test -z "$as_dir" && as_dir=.
 
7380
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7381
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7382
    ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
 
7383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7384
    break 2
 
7385
  fi
 
7386
done
 
7387
done
 
7388
 
 
7389
  ;;
 
7390
esac
 
7391
fi
 
7392
SENDMAIL=$ac_cv_path_SENDMAIL
 
7393
 
 
7394
if test -n "$SENDMAIL"; then
 
7395
  echo "$as_me:$LINENO: result: $SENDMAIL" >&5
 
7396
echo "${ECHO_T}$SENDMAIL" >&6
 
7397
else
 
7398
  echo "$as_me:$LINENO: result: no" >&5
 
7399
echo "${ECHO_T}no" >&6
 
7400
fi
 
7401
 
 
7402
    if test "$ac_cv_path_SENDMAIL" ; then
 
7403
      GPGKEYS_MAILTO="gpgkeys_mailto"
 
7404
    fi
 
7405
  elif test "$with_mailprog" != no ; then
 
7406
    echo "$as_me:$LINENO: checking for a mail transport program" >&5
 
7407
echo $ECHO_N "checking for a mail transport program... $ECHO_C" >&6
 
7408
    SENDMAIL=$with_mailprog
 
7409
 
 
7410
    echo "$as_me:$LINENO: result: $with_mailprog" >&5
 
7411
echo "${ECHO_T}$with_mailprog" >&6
 
7412
    GPGKEYS_MAILTO="gpgkeys_mailto"
 
7413
  fi
 
7414
fi
 
7415
 
 
7416
 
 
7417
 
 
7418
case "${host}" in
 
7419
    *-mingw32*)
 
7420
        PRINTABLE_OS_NAME="MingW32"
 
7421
        ;;
 
7422
    *-*-cygwin*)
 
7423
        PRINTABLE_OS_NAME="Cygwin"
 
7424
        ;;
 
7425
    i?86-emx-os2 | i?86-*-os2*emx )
 
7426
        PRINTABLE_OS_NAME="OS/2"
 
7427
        ;;
 
7428
    i?86-*-msdosdjgpp*)
 
7429
        PRINTABLE_OS_NAME="MSDOS/DJGPP"
 
7430
        try_dynload=no
 
7431
        ;;
 
7432
    *-linux*)
 
7433
        PRINTABLE_OS_NAME="GNU/Linux"
 
7434
        ;;
 
7435
    *)
 
7436
        PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
 
7437
        ;;
 
7438
esac
 
7439
 
 
7440
cat >>confdefs.h <<_ACEOF
 
7441
#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
 
7442
_ACEOF
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
if test "$try_gettext" = yes; then
 
7448
 
 
7449
        MKINSTALLDIRS=
 
7450
  if test -n "$ac_aux_dir"; then
 
7451
    case "$ac_aux_dir" in
 
7452
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
7453
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
7454
    esac
 
7455
  fi
 
7456
  if test -z "$MKINSTALLDIRS"; then
 
7457
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
7458
  fi
 
7459
 
 
7460
 
 
7461
 
 
7462
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
7463
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
7464
    # Check whether --enable-nls or --disable-nls was given.
 
7465
if test "${enable_nls+set}" = set; then
 
7466
  enableval="$enable_nls"
 
7467
  USE_NLS=$enableval
 
7468
else
 
7469
  USE_NLS=yes
 
7470
fi;
 
7471
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
7472
echo "${ECHO_T}$USE_NLS" >&6
 
7473
 
 
7474
 
 
7475
 
 
7476
 
 
7477
 
 
7478
 
 
7479
# Prepare PATH_SEPARATOR.
 
7480
# The user is always right.
 
7481
if test "${PATH_SEPARATOR+set}" != set; then
 
7482
  echo "#! /bin/sh" >conf$$.sh
 
7483
  echo  "exit 0"   >>conf$$.sh
 
7484
  chmod +x conf$$.sh
 
7485
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7486
    PATH_SEPARATOR=';'
 
7487
  else
 
7488
    PATH_SEPARATOR=:
 
7489
  fi
 
7490
  rm -f conf$$.sh
 
7491
fi
 
7492
 
 
7493
# Find out how to test for executable files. Don't use a zero-byte file,
 
7494
# as systems may use methods other than mode bits to determine executability.
 
7495
cat >conf$$.file <<_ASEOF
 
7496
#! /bin/sh
 
7497
exit 0
 
7498
_ASEOF
 
7499
chmod +x conf$$.file
 
7500
if test -x conf$$.file >/dev/null 2>&1; then
 
7501
  ac_executable_p="test -x"
 
7502
else
 
7503
  ac_executable_p="test -f"
 
7504
fi
 
7505
rm -f conf$$.file
 
7506
 
 
7507
# Extract the first word of "msgfmt", so it can be a program name with args.
 
7508
set dummy msgfmt; ac_word=$2
 
7509
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7511
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
7512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7513
else
 
7514
  case "$MSGFMT" in
 
7515
  [\\/]* | ?:[\\/]*)
 
7516
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
7517
    ;;
 
7518
  *)
 
7519
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7520
    for ac_dir in $PATH; do
 
7521
      IFS="$ac_save_IFS"
 
7522
      test -z "$ac_dir" && ac_dir=.
 
7523
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7524
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7525
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
7526
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7527
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
7528
            break 2
 
7529
          fi
 
7530
        fi
 
7531
      done
 
7532
    done
 
7533
    IFS="$ac_save_IFS"
 
7534
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
7535
    ;;
 
7536
esac
 
7537
fi
 
7538
MSGFMT="$ac_cv_path_MSGFMT"
 
7539
if test "$MSGFMT" != ":"; then
 
7540
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
7541
echo "${ECHO_T}$MSGFMT" >&6
 
7542
else
 
7543
  echo "$as_me:$LINENO: result: no" >&5
 
7544
echo "${ECHO_T}no" >&6
 
7545
fi
 
7546
 
 
7547
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
7548
set dummy gmsgfmt; ac_word=$2
 
7549
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7551
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
7552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7553
else
 
7554
  case $GMSGFMT in
 
7555
  [\\/]* | ?:[\\/]*)
 
7556
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
7557
  ;;
 
7558
  *)
 
7559
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7560
for as_dir in $PATH
 
7561
do
 
7562
  IFS=$as_save_IFS
 
7563
  test -z "$as_dir" && as_dir=.
 
7564
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7565
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7566
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
7567
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7568
    break 2
 
7569
  fi
 
7570
done
 
7571
done
 
7572
 
 
7573
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
7574
  ;;
 
7575
esac
 
7576
fi
 
7577
GMSGFMT=$ac_cv_path_GMSGFMT
 
7578
 
 
7579
if test -n "$GMSGFMT"; then
 
7580
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
7581
echo "${ECHO_T}$GMSGFMT" >&6
 
7582
else
 
7583
  echo "$as_me:$LINENO: result: no" >&5
 
7584
echo "${ECHO_T}no" >&6
 
7585
fi
 
7586
 
 
7587
 
 
7588
 
 
7589
# Prepare PATH_SEPARATOR.
 
7590
# The user is always right.
 
7591
if test "${PATH_SEPARATOR+set}" != set; then
 
7592
  echo "#! /bin/sh" >conf$$.sh
 
7593
  echo  "exit 0"   >>conf$$.sh
 
7594
  chmod +x conf$$.sh
 
7595
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7596
    PATH_SEPARATOR=';'
 
7597
  else
 
7598
    PATH_SEPARATOR=:
 
7599
  fi
 
7600
  rm -f conf$$.sh
 
7601
fi
 
7602
 
 
7603
# Find out how to test for executable files. Don't use a zero-byte file,
 
7604
# as systems may use methods other than mode bits to determine executability.
 
7605
cat >conf$$.file <<_ASEOF
 
7606
#! /bin/sh
 
7607
exit 0
 
7608
_ASEOF
 
7609
chmod +x conf$$.file
 
7610
if test -x conf$$.file >/dev/null 2>&1; then
 
7611
  ac_executable_p="test -x"
 
7612
else
 
7613
  ac_executable_p="test -f"
 
7614
fi
 
7615
rm -f conf$$.file
 
7616
 
 
7617
# Extract the first word of "xgettext", so it can be a program name with args.
 
7618
set dummy xgettext; ac_word=$2
 
7619
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7621
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
7622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7623
else
 
7624
  case "$XGETTEXT" in
 
7625
  [\\/]* | ?:[\\/]*)
 
7626
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
7627
    ;;
 
7628
  *)
 
7629
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7630
    for ac_dir in $PATH; do
 
7631
      IFS="$ac_save_IFS"
 
7632
      test -z "$ac_dir" && ac_dir=.
 
7633
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7634
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7635
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
7636
     (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
 
7637
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
7638
            break 2
 
7639
          fi
 
7640
        fi
 
7641
      done
 
7642
    done
 
7643
    IFS="$ac_save_IFS"
 
7644
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
7645
    ;;
 
7646
esac
 
7647
fi
 
7648
XGETTEXT="$ac_cv_path_XGETTEXT"
 
7649
if test "$XGETTEXT" != ":"; then
 
7650
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
7651
echo "${ECHO_T}$XGETTEXT" >&6
 
7652
else
 
7653
  echo "$as_me:$LINENO: result: no" >&5
 
7654
echo "${ECHO_T}no" >&6
 
7655
fi
 
7656
 
 
7657
    rm -f messages.po
 
7658
 
 
7659
 
 
7660
# Prepare PATH_SEPARATOR.
 
7661
# The user is always right.
 
7662
if test "${PATH_SEPARATOR+set}" != set; then
 
7663
  echo "#! /bin/sh" >conf$$.sh
 
7664
  echo  "exit 0"   >>conf$$.sh
 
7665
  chmod +x conf$$.sh
 
7666
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7667
    PATH_SEPARATOR=';'
 
7668
  else
 
7669
    PATH_SEPARATOR=:
 
7670
  fi
 
7671
  rm -f conf$$.sh
 
7672
fi
 
7673
 
 
7674
# Find out how to test for executable files. Don't use a zero-byte file,
 
7675
# as systems may use methods other than mode bits to determine executability.
 
7676
cat >conf$$.file <<_ASEOF
 
7677
#! /bin/sh
 
7678
exit 0
 
7679
_ASEOF
 
7680
chmod +x conf$$.file
 
7681
if test -x conf$$.file >/dev/null 2>&1; then
 
7682
  ac_executable_p="test -x"
 
7683
else
 
7684
  ac_executable_p="test -f"
 
7685
fi
 
7686
rm -f conf$$.file
 
7687
 
 
7688
# Extract the first word of "msgmerge", so it can be a program name with args.
 
7689
set dummy msgmerge; ac_word=$2
 
7690
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7691
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7692
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
7693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7694
else
 
7695
  case "$MSGMERGE" in
 
7696
  [\\/]* | ?:[\\/]*)
 
7697
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
7698
    ;;
 
7699
  *)
 
7700
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7701
    for ac_dir in $PATH; do
 
7702
      IFS="$ac_save_IFS"
 
7703
      test -z "$ac_dir" && ac_dir=.
 
7704
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7705
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7706
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
7707
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
7708
            break 2
 
7709
          fi
 
7710
        fi
 
7711
      done
 
7712
    done
 
7713
    IFS="$ac_save_IFS"
 
7714
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
7715
    ;;
 
7716
esac
 
7717
fi
 
7718
MSGMERGE="$ac_cv_path_MSGMERGE"
 
7719
if test "$MSGMERGE" != ":"; then
 
7720
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
7721
echo "${ECHO_T}$MSGMERGE" >&6
 
7722
else
 
7723
  echo "$as_me:$LINENO: result: no" >&5
 
7724
echo "${ECHO_T}no" >&6
 
7725
fi
 
7726
 
 
7727
 
 
7728
      if test "$GMSGFMT" != ":"; then
 
7729
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
7730
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7731
      : ;
 
7732
    else
 
7733
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
7734
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
7735
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
7736
      GMSGFMT=":"
 
7737
    fi
 
7738
  fi
 
7739
 
 
7740
      if test "$XGETTEXT" != ":"; then
 
7741
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
7742
       (if $XGETTEXT --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
 
7743
      : ;
 
7744
    else
 
7745
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
7746
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
7747
      XGETTEXT=":"
 
7748
    fi
 
7749
        rm -f messages.po
 
7750
  fi
 
7751
 
 
7752
            ac_config_commands="$ac_config_commands default-1"
 
7753
 
 
7754
 
 
7755
 
 
7756
echo "$as_me:$LINENO: checking for egrep" >&5
 
7757
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
7758
if test "${ac_cv_prog_egrep+set}" = set; then
 
7759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7760
else
 
7761
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
7762
    then ac_cv_prog_egrep='grep -E'
 
7763
    else ac_cv_prog_egrep='egrep'
 
7764
    fi
 
7765
fi
 
7766
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
7767
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
7768
 EGREP=$ac_cv_prog_egrep
 
7769
 
 
7770
 
 
7771
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7772
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7773
if test "${ac_cv_header_stdc+set}" = set; then
 
7774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7775
else
 
7776
  cat >conftest.$ac_ext <<_ACEOF
 
7777
/* confdefs.h.  */
 
7778
_ACEOF
 
7779
cat confdefs.h >>conftest.$ac_ext
 
7780
cat >>conftest.$ac_ext <<_ACEOF
 
7781
/* end confdefs.h.  */
 
7782
#include <stdlib.h>
 
7783
#include <stdarg.h>
 
7784
#include <string.h>
 
7785
#include <float.h>
 
7786
 
 
7787
int
 
7788
main ()
 
7789
{
 
7790
 
 
7791
  ;
 
7792
  return 0;
 
7793
}
 
7794
_ACEOF
 
7795
rm -f conftest.$ac_objext
 
7796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7797
  (eval $ac_compile) 2>conftest.er1
 
7798
  ac_status=$?
 
7799
  grep -v '^ *+' conftest.er1 >conftest.err
 
7800
  rm -f conftest.er1
 
7801
  cat conftest.err >&5
 
7802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7803
  (exit $ac_status); } &&
 
7804
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7806
  (eval $ac_try) 2>&5
 
7807
  ac_status=$?
 
7808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7809
  (exit $ac_status); }; } &&
 
7810
         { ac_try='test -s conftest.$ac_objext'
 
7811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7812
  (eval $ac_try) 2>&5
 
7813
  ac_status=$?
 
7814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7815
  (exit $ac_status); }; }; then
 
7816
  ac_cv_header_stdc=yes
 
7817
else
 
7818
  echo "$as_me: failed program was:" >&5
 
7819
sed 's/^/| /' conftest.$ac_ext >&5
 
7820
 
 
7821
ac_cv_header_stdc=no
 
7822
fi
 
7823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7824
 
 
7825
if test $ac_cv_header_stdc = yes; then
 
7826
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7827
  cat >conftest.$ac_ext <<_ACEOF
 
7828
/* confdefs.h.  */
 
7829
_ACEOF
 
7830
cat confdefs.h >>conftest.$ac_ext
 
7831
cat >>conftest.$ac_ext <<_ACEOF
 
7832
/* end confdefs.h.  */
 
7833
#include <string.h>
 
7834
 
 
7835
_ACEOF
 
7836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7837
  $EGREP "memchr" >/dev/null 2>&1; then
 
7838
  :
 
7839
else
 
7840
  ac_cv_header_stdc=no
 
7841
fi
 
7842
rm -f conftest*
 
7843
 
 
7844
fi
 
7845
 
 
7846
if test $ac_cv_header_stdc = yes; then
 
7847
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7848
  cat >conftest.$ac_ext <<_ACEOF
 
7849
/* confdefs.h.  */
 
7850
_ACEOF
 
7851
cat confdefs.h >>conftest.$ac_ext
 
7852
cat >>conftest.$ac_ext <<_ACEOF
 
7853
/* end confdefs.h.  */
 
7854
#include <stdlib.h>
 
7855
 
 
7856
_ACEOF
 
7857
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7858
  $EGREP "free" >/dev/null 2>&1; then
 
7859
  :
 
7860
else
 
7861
  ac_cv_header_stdc=no
 
7862
fi
 
7863
rm -f conftest*
 
7864
 
 
7865
fi
 
7866
 
 
7867
if test $ac_cv_header_stdc = yes; then
 
7868
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7869
  if test "$cross_compiling" = yes; then
 
7870
  :
 
7871
else
 
7872
  cat >conftest.$ac_ext <<_ACEOF
 
7873
/* confdefs.h.  */
 
7874
_ACEOF
 
7875
cat confdefs.h >>conftest.$ac_ext
 
7876
cat >>conftest.$ac_ext <<_ACEOF
 
7877
/* end confdefs.h.  */
 
7878
#include <ctype.h>
 
7879
#if ((' ' & 0x0FF) == 0x020)
 
7880
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7881
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7882
#else
 
7883
# define ISLOWER(c) \
 
7884
                   (('a' <= (c) && (c) <= 'i') \
 
7885
                     || ('j' <= (c) && (c) <= 'r') \
 
7886
                     || ('s' <= (c) && (c) <= 'z'))
 
7887
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7888
#endif
 
7889
 
 
7890
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7891
int
 
7892
main ()
 
7893
{
 
7894
  int i;
 
7895
  for (i = 0; i < 256; i++)
 
7896
    if (XOR (islower (i), ISLOWER (i))
 
7897
        || toupper (i) != TOUPPER (i))
 
7898
      exit(2);
 
7899
  exit (0);
 
7900
}
 
7901
_ACEOF
 
7902
rm -f conftest$ac_exeext
 
7903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7904
  (eval $ac_link) 2>&5
 
7905
  ac_status=$?
 
7906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7907
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7909
  (eval $ac_try) 2>&5
 
7910
  ac_status=$?
 
7911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7912
  (exit $ac_status); }; }; then
 
7913
  :
 
7914
else
 
7915
  echo "$as_me: program exited with status $ac_status" >&5
 
7916
echo "$as_me: failed program was:" >&5
 
7917
sed 's/^/| /' conftest.$ac_ext >&5
 
7918
 
 
7919
( exit $ac_status )
 
7920
ac_cv_header_stdc=no
 
7921
fi
 
7922
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7923
fi
 
7924
fi
 
7925
fi
 
7926
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7927
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
7928
if test $ac_cv_header_stdc = yes; then
 
7929
 
 
7930
cat >>confdefs.h <<\_ACEOF
 
7931
#define STDC_HEADERS 1
 
7932
_ACEOF
 
7933
 
 
7934
fi
 
7935
 
 
7936
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
7937
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
7938
if test "${ac_cv_c_const+set}" = set; then
 
7939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7940
else
 
7941
  cat >conftest.$ac_ext <<_ACEOF
 
7942
/* confdefs.h.  */
 
7943
_ACEOF
 
7944
cat confdefs.h >>conftest.$ac_ext
 
7945
cat >>conftest.$ac_ext <<_ACEOF
 
7946
/* end confdefs.h.  */
 
7947
 
 
7948
int
 
7949
main ()
 
7950
{
 
7951
/* FIXME: Include the comments suggested by Paul. */
 
7952
#ifndef __cplusplus
 
7953
  /* Ultrix mips cc rejects this.  */
 
7954
  typedef int charset[2];
 
7955
  const charset x;
 
7956
  /* SunOS 4.1.1 cc rejects this.  */
 
7957
  char const *const *ccp;
 
7958
  char **p;
 
7959
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
7960
  struct point {int x, y;};
 
7961
  static struct point const zero = {0,0};
 
7962
  /* AIX XL C 1.02.0.0 rejects this.
 
7963
     It does not let you subtract one const X* pointer from another in
 
7964
     an arm of an if-expression whose if-part is not a constant
 
7965
     expression */
 
7966
  const char *g = "string";
 
7967
  ccp = &g + (g ? g-g : 0);
 
7968
  /* HPUX 7.0 cc rejects these. */
 
7969
  ++ccp;
 
7970
  p = (char**) ccp;
 
7971
  ccp = (char const *const *) p;
 
7972
  { /* SCO 3.2v4 cc rejects this.  */
 
7973
    char *t;
 
7974
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
7975
 
 
7976
    *t++ = 0;
 
7977
  }
 
7978
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
7979
    int x[] = {25, 17};
 
7980
    const int *foo = &x[0];
 
7981
    ++foo;
 
7982
  }
 
7983
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
7984
    typedef const int *iptr;
 
7985
    iptr p = 0;
 
7986
    ++p;
 
7987
  }
 
7988
  { /* AIX XL C 1.02.0.0 rejects this saying
 
7989
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
7990
    struct s { int j; const int *ap[3]; };
 
7991
    struct s *b; b->j = 5;
 
7992
  }
 
7993
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
7994
    const int foo = 10;
 
7995
  }
 
7996
#endif
 
7997
 
 
7998
  ;
 
7999
  return 0;
 
8000
}
 
8001
_ACEOF
 
8002
rm -f conftest.$ac_objext
 
8003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8004
  (eval $ac_compile) 2>conftest.er1
 
8005
  ac_status=$?
 
8006
  grep -v '^ *+' conftest.er1 >conftest.err
 
8007
  rm -f conftest.er1
 
8008
  cat conftest.err >&5
 
8009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8010
  (exit $ac_status); } &&
 
8011
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8013
  (eval $ac_try) 2>&5
 
8014
  ac_status=$?
 
8015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8016
  (exit $ac_status); }; } &&
 
8017
         { ac_try='test -s conftest.$ac_objext'
 
8018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8019
  (eval $ac_try) 2>&5
 
8020
  ac_status=$?
 
8021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8022
  (exit $ac_status); }; }; then
 
8023
  ac_cv_c_const=yes
 
8024
else
 
8025
  echo "$as_me: failed program was:" >&5
 
8026
sed 's/^/| /' conftest.$ac_ext >&5
 
8027
 
 
8028
ac_cv_c_const=no
 
8029
fi
 
8030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8031
fi
 
8032
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
8033
echo "${ECHO_T}$ac_cv_c_const" >&6
 
8034
if test $ac_cv_c_const = no; then
 
8035
 
 
8036
cat >>confdefs.h <<\_ACEOF
 
8037
#define const
 
8038
_ACEOF
 
8039
 
 
8040
fi
 
8041
 
 
8042
 
 
8043
  echo "$as_me:$LINENO: checking for signed" >&5
 
8044
echo $ECHO_N "checking for signed... $ECHO_C" >&6
 
8045
if test "${bh_cv_c_signed+set}" = set; then
 
8046
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8047
else
 
8048
  cat >conftest.$ac_ext <<_ACEOF
 
8049
/* confdefs.h.  */
 
8050
_ACEOF
 
8051
cat confdefs.h >>conftest.$ac_ext
 
8052
cat >>conftest.$ac_ext <<_ACEOF
 
8053
/* end confdefs.h.  */
 
8054
 
 
8055
int
 
8056
main ()
 
8057
{
 
8058
signed char x;
 
8059
  ;
 
8060
  return 0;
 
8061
}
 
8062
_ACEOF
 
8063
rm -f conftest.$ac_objext
 
8064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8065
  (eval $ac_compile) 2>conftest.er1
 
8066
  ac_status=$?
 
8067
  grep -v '^ *+' conftest.er1 >conftest.err
 
8068
  rm -f conftest.er1
 
8069
  cat conftest.err >&5
 
8070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8071
  (exit $ac_status); } &&
 
8072
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8074
  (eval $ac_try) 2>&5
 
8075
  ac_status=$?
 
8076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8077
  (exit $ac_status); }; } &&
 
8078
         { ac_try='test -s conftest.$ac_objext'
 
8079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8080
  (eval $ac_try) 2>&5
 
8081
  ac_status=$?
 
8082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8083
  (exit $ac_status); }; }; then
 
8084
  bh_cv_c_signed=yes
 
8085
else
 
8086
  echo "$as_me: failed program was:" >&5
 
8087
sed 's/^/| /' conftest.$ac_ext >&5
 
8088
 
 
8089
bh_cv_c_signed=no
 
8090
fi
 
8091
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8092
fi
 
8093
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
 
8094
echo "${ECHO_T}$bh_cv_c_signed" >&6
 
8095
  if test $bh_cv_c_signed = no; then
 
8096
 
 
8097
cat >>confdefs.h <<\_ACEOF
 
8098
#define signed
 
8099
_ACEOF
 
8100
 
 
8101
  fi
 
8102
 
 
8103
echo "$as_me:$LINENO: checking for inline" >&5
 
8104
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
8105
if test "${ac_cv_c_inline+set}" = set; then
 
8106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8107
else
 
8108
  ac_cv_c_inline=no
 
8109
for ac_kw in inline __inline__ __inline; do
 
8110
  cat >conftest.$ac_ext <<_ACEOF
 
8111
/* confdefs.h.  */
 
8112
_ACEOF
 
8113
cat confdefs.h >>conftest.$ac_ext
 
8114
cat >>conftest.$ac_ext <<_ACEOF
 
8115
/* end confdefs.h.  */
 
8116
#ifndef __cplusplus
 
8117
typedef int foo_t;
 
8118
static $ac_kw foo_t static_foo () {return 0; }
 
8119
$ac_kw foo_t foo () {return 0; }
 
8120
#endif
 
8121
 
 
8122
_ACEOF
 
8123
rm -f conftest.$ac_objext
 
8124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8125
  (eval $ac_compile) 2>conftest.er1
 
8126
  ac_status=$?
 
8127
  grep -v '^ *+' conftest.er1 >conftest.err
 
8128
  rm -f conftest.er1
 
8129
  cat conftest.err >&5
 
8130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8131
  (exit $ac_status); } &&
 
8132
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8134
  (eval $ac_try) 2>&5
 
8135
  ac_status=$?
 
8136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8137
  (exit $ac_status); }; } &&
 
8138
         { ac_try='test -s conftest.$ac_objext'
 
8139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8140
  (eval $ac_try) 2>&5
 
8141
  ac_status=$?
 
8142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8143
  (exit $ac_status); }; }; then
 
8144
  ac_cv_c_inline=$ac_kw; break
 
8145
else
 
8146
  echo "$as_me: failed program was:" >&5
 
8147
sed 's/^/| /' conftest.$ac_ext >&5
 
8148
 
 
8149
fi
 
8150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8151
done
 
8152
 
 
8153
fi
 
8154
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
8155
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
8156
 
 
8157
 
 
8158
case $ac_cv_c_inline in
 
8159
  inline | yes) ;;
 
8160
  *)
 
8161
    case $ac_cv_c_inline in
 
8162
      no) ac_val=;;
 
8163
      *) ac_val=$ac_cv_c_inline;;
 
8164
    esac
 
8165
    cat >>confdefs.h <<_ACEOF
 
8166
#ifndef __cplusplus
 
8167
#define inline $ac_val
 
8168
#endif
 
8169
_ACEOF
 
8170
    ;;
 
8171
esac
 
8172
 
 
8173
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8174
 
 
8175
 
 
8176
 
 
8177
 
 
8178
 
 
8179
 
 
8180
 
 
8181
 
 
8182
 
 
8183
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8184
                  inttypes.h stdint.h unistd.h
 
8185
do
 
8186
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8187
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8188
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8189
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8191
else
 
8192
  cat >conftest.$ac_ext <<_ACEOF
 
8193
/* confdefs.h.  */
 
8194
_ACEOF
 
8195
cat confdefs.h >>conftest.$ac_ext
 
8196
cat >>conftest.$ac_ext <<_ACEOF
 
8197
/* end confdefs.h.  */
 
8198
$ac_includes_default
 
8199
 
 
8200
#include <$ac_header>
 
8201
_ACEOF
 
8202
rm -f conftest.$ac_objext
 
8203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8204
  (eval $ac_compile) 2>conftest.er1
 
8205
  ac_status=$?
 
8206
  grep -v '^ *+' conftest.er1 >conftest.err
 
8207
  rm -f conftest.er1
 
8208
  cat conftest.err >&5
 
8209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8210
  (exit $ac_status); } &&
 
8211
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8213
  (eval $ac_try) 2>&5
 
8214
  ac_status=$?
 
8215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8216
  (exit $ac_status); }; } &&
 
8217
         { ac_try='test -s conftest.$ac_objext'
 
8218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8219
  (eval $ac_try) 2>&5
 
8220
  ac_status=$?
 
8221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8222
  (exit $ac_status); }; }; then
 
8223
  eval "$as_ac_Header=yes"
 
8224
else
 
8225
  echo "$as_me: failed program was:" >&5
 
8226
sed 's/^/| /' conftest.$ac_ext >&5
 
8227
 
 
8228
eval "$as_ac_Header=no"
 
8229
fi
 
8230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8231
fi
 
8232
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8233
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8234
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8235
  cat >>confdefs.h <<_ACEOF
 
8236
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8237
_ACEOF
 
8238
 
 
8239
fi
 
8240
 
 
8241
done
 
8242
 
 
8243
 
 
8244
echo "$as_me:$LINENO: checking for off_t" >&5
 
8245
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
8246
if test "${ac_cv_type_off_t+set}" = set; then
 
8247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8248
else
 
8249
  cat >conftest.$ac_ext <<_ACEOF
 
8250
/* confdefs.h.  */
 
8251
_ACEOF
 
8252
cat confdefs.h >>conftest.$ac_ext
 
8253
cat >>conftest.$ac_ext <<_ACEOF
 
8254
/* end confdefs.h.  */
 
8255
$ac_includes_default
 
8256
int
 
8257
main ()
 
8258
{
 
8259
if ((off_t *) 0)
 
8260
  return 0;
 
8261
if (sizeof (off_t))
 
8262
  return 0;
 
8263
  ;
 
8264
  return 0;
 
8265
}
 
8266
_ACEOF
 
8267
rm -f conftest.$ac_objext
 
8268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8269
  (eval $ac_compile) 2>conftest.er1
 
8270
  ac_status=$?
 
8271
  grep -v '^ *+' conftest.er1 >conftest.err
 
8272
  rm -f conftest.er1
 
8273
  cat conftest.err >&5
 
8274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8275
  (exit $ac_status); } &&
 
8276
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8278
  (eval $ac_try) 2>&5
 
8279
  ac_status=$?
 
8280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8281
  (exit $ac_status); }; } &&
 
8282
         { ac_try='test -s conftest.$ac_objext'
 
8283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8284
  (eval $ac_try) 2>&5
 
8285
  ac_status=$?
 
8286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8287
  (exit $ac_status); }; }; then
 
8288
  ac_cv_type_off_t=yes
 
8289
else
 
8290
  echo "$as_me: failed program was:" >&5
 
8291
sed 's/^/| /' conftest.$ac_ext >&5
 
8292
 
 
8293
ac_cv_type_off_t=no
 
8294
fi
 
8295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8296
fi
 
8297
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
8298
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
8299
if test $ac_cv_type_off_t = yes; then
 
8300
  :
 
8301
else
 
8302
 
 
8303
cat >>confdefs.h <<_ACEOF
 
8304
#define off_t long
 
8305
_ACEOF
 
8306
 
 
8307
fi
 
8308
 
 
8309
echo "$as_me:$LINENO: checking for size_t" >&5
 
8310
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
8311
if test "${ac_cv_type_size_t+set}" = set; then
 
8312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8313
else
 
8314
  cat >conftest.$ac_ext <<_ACEOF
 
8315
/* confdefs.h.  */
 
8316
_ACEOF
 
8317
cat confdefs.h >>conftest.$ac_ext
 
8318
cat >>conftest.$ac_ext <<_ACEOF
 
8319
/* end confdefs.h.  */
 
8320
$ac_includes_default
 
8321
int
 
8322
main ()
 
8323
{
 
8324
if ((size_t *) 0)
 
8325
  return 0;
 
8326
if (sizeof (size_t))
 
8327
  return 0;
 
8328
  ;
 
8329
  return 0;
 
8330
}
 
8331
_ACEOF
 
8332
rm -f conftest.$ac_objext
 
8333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8334
  (eval $ac_compile) 2>conftest.er1
 
8335
  ac_status=$?
 
8336
  grep -v '^ *+' conftest.er1 >conftest.err
 
8337
  rm -f conftest.er1
 
8338
  cat conftest.err >&5
 
8339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8340
  (exit $ac_status); } &&
 
8341
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8343
  (eval $ac_try) 2>&5
 
8344
  ac_status=$?
 
8345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8346
  (exit $ac_status); }; } &&
 
8347
         { ac_try='test -s conftest.$ac_objext'
 
8348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8349
  (eval $ac_try) 2>&5
 
8350
  ac_status=$?
 
8351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8352
  (exit $ac_status); }; }; then
 
8353
  ac_cv_type_size_t=yes
 
8354
else
 
8355
  echo "$as_me: failed program was:" >&5
 
8356
sed 's/^/| /' conftest.$ac_ext >&5
 
8357
 
 
8358
ac_cv_type_size_t=no
 
8359
fi
 
8360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8361
fi
 
8362
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
8363
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
8364
if test $ac_cv_type_size_t = yes; then
 
8365
  :
 
8366
else
 
8367
 
 
8368
cat >>confdefs.h <<_ACEOF
 
8369
#define size_t unsigned
 
8370
_ACEOF
 
8371
 
 
8372
fi
 
8373
 
 
8374
 
 
8375
  echo "$as_me:$LINENO: checking for long long" >&5
 
8376
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
8377
if test "${ac_cv_type_long_long+set}" = set; then
 
8378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8379
else
 
8380
  cat >conftest.$ac_ext <<_ACEOF
 
8381
/* confdefs.h.  */
 
8382
_ACEOF
 
8383
cat confdefs.h >>conftest.$ac_ext
 
8384
cat >>conftest.$ac_ext <<_ACEOF
 
8385
/* end confdefs.h.  */
 
8386
long long ll = 1LL; int i = 63;
 
8387
int
 
8388
main ()
 
8389
{
 
8390
long long llmax = (long long) -1;
 
8391
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
8392
  ;
 
8393
  return 0;
 
8394
}
 
8395
_ACEOF
 
8396
rm -f conftest.$ac_objext conftest$ac_exeext
 
8397
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8398
  (eval $ac_link) 2>conftest.er1
 
8399
  ac_status=$?
 
8400
  grep -v '^ *+' conftest.er1 >conftest.err
 
8401
  rm -f conftest.er1
 
8402
  cat conftest.err >&5
 
8403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8404
  (exit $ac_status); } &&
 
8405
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8407
  (eval $ac_try) 2>&5
 
8408
  ac_status=$?
 
8409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8410
  (exit $ac_status); }; } &&
 
8411
         { ac_try='test -s conftest$ac_exeext'
 
8412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8413
  (eval $ac_try) 2>&5
 
8414
  ac_status=$?
 
8415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8416
  (exit $ac_status); }; }; then
 
8417
  ac_cv_type_long_long=yes
 
8418
else
 
8419
  echo "$as_me: failed program was:" >&5
 
8420
sed 's/^/| /' conftest.$ac_ext >&5
 
8421
 
 
8422
ac_cv_type_long_long=no
 
8423
fi
 
8424
rm -f conftest.err conftest.$ac_objext \
 
8425
      conftest$ac_exeext conftest.$ac_ext
 
8426
fi
 
8427
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
8428
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
8429
  if test $ac_cv_type_long_long = yes; then
 
8430
 
 
8431
cat >>confdefs.h <<\_ACEOF
 
8432
#define HAVE_LONG_LONG 1
 
8433
_ACEOF
 
8434
 
 
8435
  fi
 
8436
 
 
8437
 
 
8438
  echo "$as_me:$LINENO: checking for long double" >&5
 
8439
echo $ECHO_N "checking for long double... $ECHO_C" >&6
 
8440
if test "${gt_cv_c_long_double+set}" = set; then
 
8441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8442
else
 
8443
  if test "$GCC" = yes; then
 
8444
       gt_cv_c_long_double=yes
 
8445
     else
 
8446
       cat >conftest.$ac_ext <<_ACEOF
 
8447
/* confdefs.h.  */
 
8448
_ACEOF
 
8449
cat confdefs.h >>conftest.$ac_ext
 
8450
cat >>conftest.$ac_ext <<_ACEOF
 
8451
/* end confdefs.h.  */
 
8452
 
 
8453
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 
8454
         long double foo = 0.0;
 
8455
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
8456
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
 
8457
 
 
8458
int
 
8459
main ()
 
8460
{
 
8461
 
 
8462
  ;
 
8463
  return 0;
 
8464
}
 
8465
_ACEOF
 
8466
rm -f conftest.$ac_objext
 
8467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8468
  (eval $ac_compile) 2>conftest.er1
 
8469
  ac_status=$?
 
8470
  grep -v '^ *+' conftest.er1 >conftest.err
 
8471
  rm -f conftest.er1
 
8472
  cat conftest.err >&5
 
8473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8474
  (exit $ac_status); } &&
 
8475
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8477
  (eval $ac_try) 2>&5
 
8478
  ac_status=$?
 
8479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8480
  (exit $ac_status); }; } &&
 
8481
         { ac_try='test -s conftest.$ac_objext'
 
8482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8483
  (eval $ac_try) 2>&5
 
8484
  ac_status=$?
 
8485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8486
  (exit $ac_status); }; }; then
 
8487
  gt_cv_c_long_double=yes
 
8488
else
 
8489
  echo "$as_me: failed program was:" >&5
 
8490
sed 's/^/| /' conftest.$ac_ext >&5
 
8491
 
 
8492
gt_cv_c_long_double=no
 
8493
fi
 
8494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8495
     fi
 
8496
fi
 
8497
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
 
8498
echo "${ECHO_T}$gt_cv_c_long_double" >&6
 
8499
  if test $gt_cv_c_long_double = yes; then
 
8500
 
 
8501
cat >>confdefs.h <<\_ACEOF
 
8502
#define HAVE_LONG_DOUBLE 1
 
8503
_ACEOF
 
8504
 
 
8505
  fi
 
8506
 
 
8507
 
 
8508
  echo "$as_me:$LINENO: checking for wchar_t" >&5
 
8509
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
 
8510
if test "${gt_cv_c_wchar_t+set}" = set; then
 
8511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8512
else
 
8513
  cat >conftest.$ac_ext <<_ACEOF
 
8514
/* confdefs.h.  */
 
8515
_ACEOF
 
8516
cat confdefs.h >>conftest.$ac_ext
 
8517
cat >>conftest.$ac_ext <<_ACEOF
 
8518
/* end confdefs.h.  */
 
8519
#include <stddef.h>
 
8520
       wchar_t foo = (wchar_t)'\0';
 
8521
int
 
8522
main ()
 
8523
{
 
8524
 
 
8525
  ;
 
8526
  return 0;
 
8527
}
 
8528
_ACEOF
 
8529
rm -f conftest.$ac_objext
 
8530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8531
  (eval $ac_compile) 2>conftest.er1
 
8532
  ac_status=$?
 
8533
  grep -v '^ *+' conftest.er1 >conftest.err
 
8534
  rm -f conftest.er1
 
8535
  cat conftest.err >&5
 
8536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8537
  (exit $ac_status); } &&
 
8538
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8540
  (eval $ac_try) 2>&5
 
8541
  ac_status=$?
 
8542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8543
  (exit $ac_status); }; } &&
 
8544
         { ac_try='test -s conftest.$ac_objext'
 
8545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8546
  (eval $ac_try) 2>&5
 
8547
  ac_status=$?
 
8548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8549
  (exit $ac_status); }; }; then
 
8550
  gt_cv_c_wchar_t=yes
 
8551
else
 
8552
  echo "$as_me: failed program was:" >&5
 
8553
sed 's/^/| /' conftest.$ac_ext >&5
 
8554
 
 
8555
gt_cv_c_wchar_t=no
 
8556
fi
 
8557
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8558
fi
 
8559
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
8560
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
 
8561
  if test $gt_cv_c_wchar_t = yes; then
 
8562
 
 
8563
cat >>confdefs.h <<\_ACEOF
 
8564
#define HAVE_WCHAR_T 1
 
8565
_ACEOF
 
8566
 
 
8567
  fi
 
8568
 
 
8569
 
 
8570
  echo "$as_me:$LINENO: checking for wint_t" >&5
 
8571
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
 
8572
if test "${gt_cv_c_wint_t+set}" = set; then
 
8573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8574
else
 
8575
  cat >conftest.$ac_ext <<_ACEOF
 
8576
/* confdefs.h.  */
 
8577
_ACEOF
 
8578
cat confdefs.h >>conftest.$ac_ext
 
8579
cat >>conftest.$ac_ext <<_ACEOF
 
8580
/* end confdefs.h.  */
 
8581
#include <wchar.h>
 
8582
       wint_t foo = (wchar_t)'\0';
 
8583
int
 
8584
main ()
 
8585
{
 
8586
 
 
8587
  ;
 
8588
  return 0;
 
8589
}
 
8590
_ACEOF
 
8591
rm -f conftest.$ac_objext
 
8592
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8593
  (eval $ac_compile) 2>conftest.er1
 
8594
  ac_status=$?
 
8595
  grep -v '^ *+' conftest.er1 >conftest.err
 
8596
  rm -f conftest.er1
 
8597
  cat conftest.err >&5
 
8598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8599
  (exit $ac_status); } &&
 
8600
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8602
  (eval $ac_try) 2>&5
 
8603
  ac_status=$?
 
8604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8605
  (exit $ac_status); }; } &&
 
8606
         { ac_try='test -s conftest.$ac_objext'
 
8607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8608
  (eval $ac_try) 2>&5
 
8609
  ac_status=$?
 
8610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8611
  (exit $ac_status); }; }; then
 
8612
  gt_cv_c_wint_t=yes
 
8613
else
 
8614
  echo "$as_me: failed program was:" >&5
 
8615
sed 's/^/| /' conftest.$ac_ext >&5
 
8616
 
 
8617
gt_cv_c_wint_t=no
 
8618
fi
 
8619
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8620
fi
 
8621
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
8622
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
 
8623
  if test $gt_cv_c_wint_t = yes; then
 
8624
 
 
8625
cat >>confdefs.h <<\_ACEOF
 
8626
#define HAVE_WINT_T 1
 
8627
_ACEOF
 
8628
 
 
8629
  fi
 
8630
 
 
8631
 
 
8632
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
8633
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
8634
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
 
8635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8636
else
 
8637
  cat >conftest.$ac_ext <<_ACEOF
 
8638
/* confdefs.h.  */
 
8639
_ACEOF
 
8640
cat confdefs.h >>conftest.$ac_ext
 
8641
cat >>conftest.$ac_ext <<_ACEOF
 
8642
/* end confdefs.h.  */
 
8643
#include <sys/types.h>
 
8644
#include <inttypes.h>
 
8645
int
 
8646
main ()
 
8647
{
 
8648
uintmax_t i = (uintmax_t) -1;
 
8649
  ;
 
8650
  return 0;
 
8651
}
 
8652
_ACEOF
 
8653
rm -f conftest.$ac_objext
 
8654
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8655
  (eval $ac_compile) 2>conftest.er1
 
8656
  ac_status=$?
 
8657
  grep -v '^ *+' conftest.er1 >conftest.err
 
8658
  rm -f conftest.er1
 
8659
  cat conftest.err >&5
 
8660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8661
  (exit $ac_status); } &&
 
8662
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8664
  (eval $ac_try) 2>&5
 
8665
  ac_status=$?
 
8666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8667
  (exit $ac_status); }; } &&
 
8668
         { ac_try='test -s conftest.$ac_objext'
 
8669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8670
  (eval $ac_try) 2>&5
 
8671
  ac_status=$?
 
8672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8673
  (exit $ac_status); }; }; then
 
8674
  jm_ac_cv_header_inttypes_h=yes
 
8675
else
 
8676
  echo "$as_me: failed program was:" >&5
 
8677
sed 's/^/| /' conftest.$ac_ext >&5
 
8678
 
 
8679
jm_ac_cv_header_inttypes_h=no
 
8680
fi
 
8681
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8682
fi
 
8683
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
 
8684
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
 
8685
  if test $jm_ac_cv_header_inttypes_h = yes; then
 
8686
 
 
8687
cat >>confdefs.h <<_ACEOF
 
8688
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
8689
_ACEOF
 
8690
 
 
8691
  fi
 
8692
 
 
8693
 
 
8694
  echo "$as_me:$LINENO: checking for stdint.h" >&5
 
8695
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
 
8696
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
 
8697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8698
else
 
8699
  cat >conftest.$ac_ext <<_ACEOF
 
8700
/* confdefs.h.  */
 
8701
_ACEOF
 
8702
cat confdefs.h >>conftest.$ac_ext
 
8703
cat >>conftest.$ac_ext <<_ACEOF
 
8704
/* end confdefs.h.  */
 
8705
#include <sys/types.h>
 
8706
#include <stdint.h>
 
8707
int
 
8708
main ()
 
8709
{
 
8710
uintmax_t i = (uintmax_t) -1;
 
8711
  ;
 
8712
  return 0;
 
8713
}
 
8714
_ACEOF
 
8715
rm -f conftest.$ac_objext
 
8716
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8717
  (eval $ac_compile) 2>conftest.er1
 
8718
  ac_status=$?
 
8719
  grep -v '^ *+' conftest.er1 >conftest.err
 
8720
  rm -f conftest.er1
 
8721
  cat conftest.err >&5
 
8722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8723
  (exit $ac_status); } &&
 
8724
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8726
  (eval $ac_try) 2>&5
 
8727
  ac_status=$?
 
8728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8729
  (exit $ac_status); }; } &&
 
8730
         { ac_try='test -s conftest.$ac_objext'
 
8731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8732
  (eval $ac_try) 2>&5
 
8733
  ac_status=$?
 
8734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8735
  (exit $ac_status); }; }; then
 
8736
  jm_ac_cv_header_stdint_h=yes
 
8737
else
 
8738
  echo "$as_me: failed program was:" >&5
 
8739
sed 's/^/| /' conftest.$ac_ext >&5
 
8740
 
 
8741
jm_ac_cv_header_stdint_h=no
 
8742
fi
 
8743
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8744
fi
 
8745
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
 
8746
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
 
8747
  if test $jm_ac_cv_header_stdint_h = yes; then
 
8748
 
 
8749
cat >>confdefs.h <<_ACEOF
 
8750
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
8751
_ACEOF
 
8752
 
 
8753
  fi
 
8754
 
 
8755
 
 
8756
 
 
8757
 
 
8758
  echo "$as_me:$LINENO: checking for intmax_t" >&5
 
8759
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
 
8760
if test "${gt_cv_c_intmax_t+set}" = set; then
 
8761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8762
else
 
8763
  cat >conftest.$ac_ext <<_ACEOF
 
8764
/* confdefs.h.  */
 
8765
_ACEOF
 
8766
cat confdefs.h >>conftest.$ac_ext
 
8767
cat >>conftest.$ac_ext <<_ACEOF
 
8768
/* end confdefs.h.  */
 
8769
 
 
8770
#include <stddef.h>
 
8771
#include <stdlib.h>
 
8772
#if HAVE_STDINT_H_WITH_UINTMAX
 
8773
#include <stdint.h>
 
8774
#endif
 
8775
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
8776
#include <inttypes.h>
 
8777
#endif
 
8778
 
 
8779
int
 
8780
main ()
 
8781
{
 
8782
intmax_t x = -1;
 
8783
  ;
 
8784
  return 0;
 
8785
}
 
8786
_ACEOF
 
8787
rm -f conftest.$ac_objext
 
8788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8789
  (eval $ac_compile) 2>conftest.er1
 
8790
  ac_status=$?
 
8791
  grep -v '^ *+' conftest.er1 >conftest.err
 
8792
  rm -f conftest.er1
 
8793
  cat conftest.err >&5
 
8794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8795
  (exit $ac_status); } &&
 
8796
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8798
  (eval $ac_try) 2>&5
 
8799
  ac_status=$?
 
8800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8801
  (exit $ac_status); }; } &&
 
8802
         { ac_try='test -s conftest.$ac_objext'
 
8803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8804
  (eval $ac_try) 2>&5
 
8805
  ac_status=$?
 
8806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8807
  (exit $ac_status); }; }; then
 
8808
  gt_cv_c_intmax_t=yes
 
8809
else
 
8810
  echo "$as_me: failed program was:" >&5
 
8811
sed 's/^/| /' conftest.$ac_ext >&5
 
8812
 
 
8813
gt_cv_c_intmax_t=no
 
8814
fi
 
8815
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8816
fi
 
8817
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
8818
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
 
8819
  if test $gt_cv_c_intmax_t = yes; then
 
8820
 
 
8821
cat >>confdefs.h <<\_ACEOF
 
8822
#define HAVE_INTMAX_T 1
 
8823
_ACEOF
 
8824
 
 
8825
  fi
 
8826
 
 
8827
 
 
8828
 
 
8829
  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
8830
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
 
8831
if test "${gt_cv_func_printf_posix+set}" = set; then
 
8832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8833
else
 
8834
 
 
8835
      if test "$cross_compiling" = yes; then
 
8836
 
 
8837
        cat >conftest.$ac_ext <<_ACEOF
 
8838
/* confdefs.h.  */
 
8839
_ACEOF
 
8840
cat confdefs.h >>conftest.$ac_ext
 
8841
cat >>conftest.$ac_ext <<_ACEOF
 
8842
/* end confdefs.h.  */
 
8843
 
 
8844
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
8845
  notposix
 
8846
#endif
 
8847
 
 
8848
_ACEOF
 
8849
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8850
  $EGREP "notposix" >/dev/null 2>&1; then
 
8851
  gt_cv_func_printf_posix="guessing no"
 
8852
else
 
8853
  gt_cv_func_printf_posix="guessing yes"
 
8854
fi
 
8855
rm -f conftest*
 
8856
 
 
8857
 
 
8858
else
 
8859
  cat >conftest.$ac_ext <<_ACEOF
 
8860
/* confdefs.h.  */
 
8861
_ACEOF
 
8862
cat confdefs.h >>conftest.$ac_ext
 
8863
cat >>conftest.$ac_ext <<_ACEOF
 
8864
/* end confdefs.h.  */
 
8865
 
 
8866
#include <stdio.h>
 
8867
#include <string.h>
 
8868
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
8869
   dollar expansion (possibly an autoconf bug).  */
 
8870
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
8871
static char buf[100];
 
8872
int main ()
 
8873
{
 
8874
  sprintf (buf, format, 33, 55);
 
8875
  return (strcmp (buf, "55 33") != 0);
 
8876
}
 
8877
_ACEOF
 
8878
rm -f conftest$ac_exeext
 
8879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8880
  (eval $ac_link) 2>&5
 
8881
  ac_status=$?
 
8882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8883
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8885
  (eval $ac_try) 2>&5
 
8886
  ac_status=$?
 
8887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8888
  (exit $ac_status); }; }; then
 
8889
  gt_cv_func_printf_posix=yes
 
8890
else
 
8891
  echo "$as_me: program exited with status $ac_status" >&5
 
8892
echo "$as_me: failed program was:" >&5
 
8893
sed 's/^/| /' conftest.$ac_ext >&5
 
8894
 
 
8895
( exit $ac_status )
 
8896
gt_cv_func_printf_posix=no
 
8897
fi
 
8898
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8899
fi
 
8900
 
 
8901
fi
 
8902
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
8903
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
 
8904
  case $gt_cv_func_printf_posix in
 
8905
    *yes)
 
8906
 
 
8907
cat >>confdefs.h <<\_ACEOF
 
8908
#define HAVE_POSIX_PRINTF 1
 
8909
_ACEOF
 
8910
 
 
8911
      ;;
 
8912
  esac
 
8913
 
 
8914
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
8915
# for constant arguments.  Useless!
 
8916
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
8917
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
8918
if test "${ac_cv_working_alloca_h+set}" = set; then
 
8919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8920
else
 
8921
  cat >conftest.$ac_ext <<_ACEOF
 
8922
/* confdefs.h.  */
 
8923
_ACEOF
 
8924
cat confdefs.h >>conftest.$ac_ext
 
8925
cat >>conftest.$ac_ext <<_ACEOF
 
8926
/* end confdefs.h.  */
 
8927
#include <alloca.h>
 
8928
int
 
8929
main ()
 
8930
{
 
8931
char *p = (char *) alloca (2 * sizeof (int));
 
8932
  ;
 
8933
  return 0;
 
8934
}
 
8935
_ACEOF
 
8936
rm -f conftest.$ac_objext conftest$ac_exeext
 
8937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8938
  (eval $ac_link) 2>conftest.er1
 
8939
  ac_status=$?
 
8940
  grep -v '^ *+' conftest.er1 >conftest.err
 
8941
  rm -f conftest.er1
 
8942
  cat conftest.err >&5
 
8943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8944
  (exit $ac_status); } &&
 
8945
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8947
  (eval $ac_try) 2>&5
 
8948
  ac_status=$?
 
8949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8950
  (exit $ac_status); }; } &&
 
8951
         { ac_try='test -s conftest$ac_exeext'
 
8952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8953
  (eval $ac_try) 2>&5
 
8954
  ac_status=$?
 
8955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8956
  (exit $ac_status); }; }; then
 
8957
  ac_cv_working_alloca_h=yes
 
8958
else
 
8959
  echo "$as_me: failed program was:" >&5
 
8960
sed 's/^/| /' conftest.$ac_ext >&5
 
8961
 
 
8962
ac_cv_working_alloca_h=no
 
8963
fi
 
8964
rm -f conftest.err conftest.$ac_objext \
 
8965
      conftest$ac_exeext conftest.$ac_ext
 
8966
fi
 
8967
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
8968
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
8969
if test $ac_cv_working_alloca_h = yes; then
 
8970
 
 
8971
cat >>confdefs.h <<\_ACEOF
 
8972
#define HAVE_ALLOCA_H 1
 
8973
_ACEOF
 
8974
 
 
8975
fi
 
8976
 
 
8977
echo "$as_me:$LINENO: checking for alloca" >&5
 
8978
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
8979
if test "${ac_cv_func_alloca_works+set}" = set; then
 
8980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8981
else
 
8982
  cat >conftest.$ac_ext <<_ACEOF
 
8983
/* confdefs.h.  */
 
8984
_ACEOF
 
8985
cat confdefs.h >>conftest.$ac_ext
 
8986
cat >>conftest.$ac_ext <<_ACEOF
 
8987
/* end confdefs.h.  */
 
8988
#ifdef __GNUC__
 
8989
# define alloca __builtin_alloca
 
8990
#else
 
8991
# ifdef _MSC_VER
 
8992
#  include <malloc.h>
 
8993
#  define alloca _alloca
 
8994
# else
 
8995
#  if HAVE_ALLOCA_H
 
8996
#   include <alloca.h>
 
8997
#  else
 
8998
#   ifdef _AIX
 
8999
 #pragma alloca
 
9000
#   else
 
9001
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
9002
char *alloca ();
 
9003
#    endif
 
9004
#   endif
 
9005
#  endif
 
9006
# endif
 
9007
#endif
 
9008
 
 
9009
int
 
9010
main ()
 
9011
{
 
9012
char *p = (char *) alloca (1);
 
9013
  ;
 
9014
  return 0;
 
9015
}
 
9016
_ACEOF
 
9017
rm -f conftest.$ac_objext conftest$ac_exeext
 
9018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9019
  (eval $ac_link) 2>conftest.er1
 
9020
  ac_status=$?
 
9021
  grep -v '^ *+' conftest.er1 >conftest.err
 
9022
  rm -f conftest.er1
 
9023
  cat conftest.err >&5
 
9024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9025
  (exit $ac_status); } &&
 
9026
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9028
  (eval $ac_try) 2>&5
 
9029
  ac_status=$?
 
9030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9031
  (exit $ac_status); }; } &&
 
9032
         { ac_try='test -s conftest$ac_exeext'
 
9033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9034
  (eval $ac_try) 2>&5
 
9035
  ac_status=$?
 
9036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9037
  (exit $ac_status); }; }; then
 
9038
  ac_cv_func_alloca_works=yes
 
9039
else
 
9040
  echo "$as_me: failed program was:" >&5
 
9041
sed 's/^/| /' conftest.$ac_ext >&5
 
9042
 
 
9043
ac_cv_func_alloca_works=no
 
9044
fi
 
9045
rm -f conftest.err conftest.$ac_objext \
 
9046
      conftest$ac_exeext conftest.$ac_ext
 
9047
fi
 
9048
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
9049
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
9050
 
 
9051
if test $ac_cv_func_alloca_works = yes; then
 
9052
 
 
9053
cat >>confdefs.h <<\_ACEOF
 
9054
#define HAVE_ALLOCA 1
 
9055
_ACEOF
 
9056
 
 
9057
else
 
9058
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
9059
# that cause trouble.  Some versions do not even contain alloca or
 
9060
# contain a buggy version.  If you still want to use their alloca,
 
9061
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
9062
 
 
9063
ALLOCA=alloca.$ac_objext
 
9064
 
 
9065
cat >>confdefs.h <<\_ACEOF
 
9066
#define C_ALLOCA 1
 
9067
_ACEOF
 
9068
 
 
9069
 
 
9070
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
9071
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
9072
if test "${ac_cv_os_cray+set}" = set; then
 
9073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9074
else
 
9075
  cat >conftest.$ac_ext <<_ACEOF
 
9076
/* confdefs.h.  */
 
9077
_ACEOF
 
9078
cat confdefs.h >>conftest.$ac_ext
 
9079
cat >>conftest.$ac_ext <<_ACEOF
 
9080
/* end confdefs.h.  */
 
9081
#if defined(CRAY) && ! defined(CRAY2)
 
9082
webecray
 
9083
#else
 
9084
wenotbecray
 
9085
#endif
 
9086
 
 
9087
_ACEOF
 
9088
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9089
  $EGREP "webecray" >/dev/null 2>&1; then
 
9090
  ac_cv_os_cray=yes
 
9091
else
 
9092
  ac_cv_os_cray=no
 
9093
fi
 
9094
rm -f conftest*
 
9095
 
 
9096
fi
 
9097
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
9098
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
9099
if test $ac_cv_os_cray = yes; then
 
9100
  for ac_func in _getb67 GETB67 getb67; do
 
9101
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9102
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9103
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9104
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9106
else
 
9107
  cat >conftest.$ac_ext <<_ACEOF
 
9108
/* confdefs.h.  */
 
9109
_ACEOF
 
9110
cat confdefs.h >>conftest.$ac_ext
 
9111
cat >>conftest.$ac_ext <<_ACEOF
 
9112
/* end confdefs.h.  */
 
9113
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9114
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9115
#define $ac_func innocuous_$ac_func
 
9116
 
 
9117
/* System header to define __stub macros and hopefully few prototypes,
 
9118
    which can conflict with char $ac_func (); below.
 
9119
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9120
    <limits.h> exists even on freestanding compilers.  */
 
9121
 
 
9122
#ifdef __STDC__
 
9123
# include <limits.h>
 
9124
#else
 
9125
# include <assert.h>
 
9126
#endif
 
9127
 
 
9128
#undef $ac_func
 
9129
 
 
9130
/* Override any gcc2 internal prototype to avoid an error.  */
 
9131
#ifdef __cplusplus
 
9132
extern "C"
 
9133
{
 
9134
#endif
 
9135
/* We use char because int might match the return type of a gcc2
 
9136
   builtin and then its argument prototype would still apply.  */
 
9137
char $ac_func ();
 
9138
/* The GNU C library defines this for functions which it implements
 
9139
    to always fail with ENOSYS.  Some functions are actually named
 
9140
    something starting with __ and the normal name is an alias.  */
 
9141
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9142
choke me
 
9143
#else
 
9144
char (*f) () = $ac_func;
 
9145
#endif
 
9146
#ifdef __cplusplus
 
9147
}
 
9148
#endif
 
9149
 
 
9150
int
 
9151
main ()
 
9152
{
 
9153
return f != $ac_func;
 
9154
  ;
 
9155
  return 0;
 
9156
}
 
9157
_ACEOF
 
9158
rm -f conftest.$ac_objext conftest$ac_exeext
 
9159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9160
  (eval $ac_link) 2>conftest.er1
 
9161
  ac_status=$?
 
9162
  grep -v '^ *+' conftest.er1 >conftest.err
 
9163
  rm -f conftest.er1
 
9164
  cat conftest.err >&5
 
9165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9166
  (exit $ac_status); } &&
 
9167
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9169
  (eval $ac_try) 2>&5
 
9170
  ac_status=$?
 
9171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9172
  (exit $ac_status); }; } &&
 
9173
         { ac_try='test -s conftest$ac_exeext'
 
9174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9175
  (eval $ac_try) 2>&5
 
9176
  ac_status=$?
 
9177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9178
  (exit $ac_status); }; }; then
 
9179
  eval "$as_ac_var=yes"
 
9180
else
 
9181
  echo "$as_me: failed program was:" >&5
 
9182
sed 's/^/| /' conftest.$ac_ext >&5
 
9183
 
 
9184
eval "$as_ac_var=no"
 
9185
fi
 
9186
rm -f conftest.err conftest.$ac_objext \
 
9187
      conftest$ac_exeext conftest.$ac_ext
 
9188
fi
 
9189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9190
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9191
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9192
 
 
9193
cat >>confdefs.h <<_ACEOF
 
9194
#define CRAY_STACKSEG_END $ac_func
 
9195
_ACEOF
 
9196
 
 
9197
    break
 
9198
fi
 
9199
 
 
9200
  done
 
9201
fi
 
9202
 
 
9203
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
9204
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
9205
if test "${ac_cv_c_stack_direction+set}" = set; then
 
9206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9207
else
 
9208
  if test "$cross_compiling" = yes; then
 
9209
  ac_cv_c_stack_direction=0
 
9210
else
 
9211
  cat >conftest.$ac_ext <<_ACEOF
 
9212
/* confdefs.h.  */
 
9213
_ACEOF
 
9214
cat confdefs.h >>conftest.$ac_ext
 
9215
cat >>conftest.$ac_ext <<_ACEOF
 
9216
/* end confdefs.h.  */
 
9217
int
 
9218
find_stack_direction ()
 
9219
{
 
9220
  static char *addr = 0;
 
9221
  auto char dummy;
 
9222
  if (addr == 0)
 
9223
    {
 
9224
      addr = &dummy;
 
9225
      return find_stack_direction ();
 
9226
    }
 
9227
  else
 
9228
    return (&dummy > addr) ? 1 : -1;
 
9229
}
 
9230
 
 
9231
int
 
9232
main ()
 
9233
{
 
9234
  exit (find_stack_direction () < 0);
 
9235
}
 
9236
_ACEOF
 
9237
rm -f conftest$ac_exeext
 
9238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9239
  (eval $ac_link) 2>&5
 
9240
  ac_status=$?
 
9241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9242
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9244
  (eval $ac_try) 2>&5
 
9245
  ac_status=$?
 
9246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9247
  (exit $ac_status); }; }; then
 
9248
  ac_cv_c_stack_direction=1
 
9249
else
 
9250
  echo "$as_me: program exited with status $ac_status" >&5
 
9251
echo "$as_me: failed program was:" >&5
 
9252
sed 's/^/| /' conftest.$ac_ext >&5
 
9253
 
 
9254
( exit $ac_status )
 
9255
ac_cv_c_stack_direction=-1
 
9256
fi
 
9257
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9258
fi
 
9259
fi
 
9260
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
9261
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
9262
 
 
9263
cat >>confdefs.h <<_ACEOF
 
9264
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
9265
_ACEOF
 
9266
 
 
9267
 
 
9268
fi
 
9269
 
 
9270
 
 
9271
 
 
9272
for ac_header in stdlib.h unistd.h
 
9273
do
 
9274
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9275
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9276
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9277
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9278
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9280
fi
 
9281
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9282
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9283
else
 
9284
  # Is the header compilable?
 
9285
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9286
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9287
cat >conftest.$ac_ext <<_ACEOF
 
9288
/* confdefs.h.  */
 
9289
_ACEOF
 
9290
cat confdefs.h >>conftest.$ac_ext
 
9291
cat >>conftest.$ac_ext <<_ACEOF
 
9292
/* end confdefs.h.  */
 
9293
$ac_includes_default
 
9294
#include <$ac_header>
 
9295
_ACEOF
 
9296
rm -f conftest.$ac_objext
 
9297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9298
  (eval $ac_compile) 2>conftest.er1
 
9299
  ac_status=$?
 
9300
  grep -v '^ *+' conftest.er1 >conftest.err
 
9301
  rm -f conftest.er1
 
9302
  cat conftest.err >&5
 
9303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9304
  (exit $ac_status); } &&
 
9305
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9307
  (eval $ac_try) 2>&5
 
9308
  ac_status=$?
 
9309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9310
  (exit $ac_status); }; } &&
 
9311
         { ac_try='test -s conftest.$ac_objext'
 
9312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9313
  (eval $ac_try) 2>&5
 
9314
  ac_status=$?
 
9315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9316
  (exit $ac_status); }; }; then
 
9317
  ac_header_compiler=yes
 
9318
else
 
9319
  echo "$as_me: failed program was:" >&5
 
9320
sed 's/^/| /' conftest.$ac_ext >&5
 
9321
 
 
9322
ac_header_compiler=no
 
9323
fi
 
9324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9325
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9326
echo "${ECHO_T}$ac_header_compiler" >&6
 
9327
 
 
9328
# Is the header present?
 
9329
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9330
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9331
cat >conftest.$ac_ext <<_ACEOF
 
9332
/* confdefs.h.  */
 
9333
_ACEOF
 
9334
cat confdefs.h >>conftest.$ac_ext
 
9335
cat >>conftest.$ac_ext <<_ACEOF
 
9336
/* end confdefs.h.  */
 
9337
#include <$ac_header>
 
9338
_ACEOF
 
9339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9340
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9341
  ac_status=$?
 
9342
  grep -v '^ *+' conftest.er1 >conftest.err
 
9343
  rm -f conftest.er1
 
9344
  cat conftest.err >&5
 
9345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9346
  (exit $ac_status); } >/dev/null; then
 
9347
  if test -s conftest.err; then
 
9348
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9349
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9350
  else
 
9351
    ac_cpp_err=
 
9352
  fi
 
9353
else
 
9354
  ac_cpp_err=yes
 
9355
fi
 
9356
if test -z "$ac_cpp_err"; then
 
9357
  ac_header_preproc=yes
 
9358
else
 
9359
  echo "$as_me: failed program was:" >&5
 
9360
sed 's/^/| /' conftest.$ac_ext >&5
 
9361
 
 
9362
  ac_header_preproc=no
 
9363
fi
 
9364
rm -f conftest.err conftest.$ac_ext
 
9365
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9366
echo "${ECHO_T}$ac_header_preproc" >&6
 
9367
 
 
9368
# So?  What about this header?
 
9369
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9370
  yes:no: )
 
9371
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9372
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9373
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9374
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9375
    ac_header_preproc=yes
 
9376
    ;;
 
9377
  no:yes:* )
 
9378
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9379
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9380
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9381
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9382
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9383
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9384
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9385
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9386
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9387
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9388
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9389
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9390
    (
 
9391
      cat <<\_ASBOX
 
9392
## ------------------------------------ ##
 
9393
## Report this to gnupg-devel@gnupg.org ##
 
9394
## ------------------------------------ ##
 
9395
_ASBOX
 
9396
    ) |
 
9397
      sed "s/^/$as_me: WARNING:     /" >&2
 
9398
    ;;
 
9399
esac
 
9400
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9401
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9402
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9404
else
 
9405
  eval "$as_ac_Header=\$ac_header_preproc"
 
9406
fi
 
9407
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9408
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9409
 
 
9410
fi
 
9411
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9412
  cat >>confdefs.h <<_ACEOF
 
9413
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9414
_ACEOF
 
9415
 
 
9416
fi
 
9417
 
 
9418
done
 
9419
 
 
9420
 
 
9421
for ac_func in getpagesize
 
9422
do
 
9423
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9424
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9425
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9426
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9428
else
 
9429
  cat >conftest.$ac_ext <<_ACEOF
 
9430
/* confdefs.h.  */
 
9431
_ACEOF
 
9432
cat confdefs.h >>conftest.$ac_ext
 
9433
cat >>conftest.$ac_ext <<_ACEOF
 
9434
/* end confdefs.h.  */
 
9435
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9436
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9437
#define $ac_func innocuous_$ac_func
 
9438
 
 
9439
/* System header to define __stub macros and hopefully few prototypes,
 
9440
    which can conflict with char $ac_func (); below.
 
9441
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9442
    <limits.h> exists even on freestanding compilers.  */
 
9443
 
 
9444
#ifdef __STDC__
 
9445
# include <limits.h>
 
9446
#else
 
9447
# include <assert.h>
 
9448
#endif
 
9449
 
 
9450
#undef $ac_func
 
9451
 
 
9452
/* Override any gcc2 internal prototype to avoid an error.  */
 
9453
#ifdef __cplusplus
 
9454
extern "C"
 
9455
{
 
9456
#endif
 
9457
/* We use char because int might match the return type of a gcc2
 
9458
   builtin and then its argument prototype would still apply.  */
 
9459
char $ac_func ();
 
9460
/* The GNU C library defines this for functions which it implements
 
9461
    to always fail with ENOSYS.  Some functions are actually named
 
9462
    something starting with __ and the normal name is an alias.  */
 
9463
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9464
choke me
 
9465
#else
 
9466
char (*f) () = $ac_func;
 
9467
#endif
 
9468
#ifdef __cplusplus
 
9469
}
 
9470
#endif
 
9471
 
 
9472
int
 
9473
main ()
 
9474
{
 
9475
return f != $ac_func;
 
9476
  ;
 
9477
  return 0;
 
9478
}
 
9479
_ACEOF
 
9480
rm -f conftest.$ac_objext conftest$ac_exeext
 
9481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9482
  (eval $ac_link) 2>conftest.er1
 
9483
  ac_status=$?
 
9484
  grep -v '^ *+' conftest.er1 >conftest.err
 
9485
  rm -f conftest.er1
 
9486
  cat conftest.err >&5
 
9487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9488
  (exit $ac_status); } &&
 
9489
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9491
  (eval $ac_try) 2>&5
 
9492
  ac_status=$?
 
9493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9494
  (exit $ac_status); }; } &&
 
9495
         { ac_try='test -s conftest$ac_exeext'
 
9496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9497
  (eval $ac_try) 2>&5
 
9498
  ac_status=$?
 
9499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9500
  (exit $ac_status); }; }; then
 
9501
  eval "$as_ac_var=yes"
 
9502
else
 
9503
  echo "$as_me: failed program was:" >&5
 
9504
sed 's/^/| /' conftest.$ac_ext >&5
 
9505
 
 
9506
eval "$as_ac_var=no"
 
9507
fi
 
9508
rm -f conftest.err conftest.$ac_objext \
 
9509
      conftest$ac_exeext conftest.$ac_ext
 
9510
fi
 
9511
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9512
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9513
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9514
  cat >>confdefs.h <<_ACEOF
 
9515
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9516
_ACEOF
 
9517
 
 
9518
fi
 
9519
done
 
9520
 
 
9521
echo "$as_me:$LINENO: checking for working mmap" >&5
 
9522
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
9523
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
9524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9525
else
 
9526
  if test "$cross_compiling" = yes; then
 
9527
  ac_cv_func_mmap_fixed_mapped=no
 
9528
else
 
9529
  cat >conftest.$ac_ext <<_ACEOF
 
9530
/* confdefs.h.  */
 
9531
_ACEOF
 
9532
cat confdefs.h >>conftest.$ac_ext
 
9533
cat >>conftest.$ac_ext <<_ACEOF
 
9534
/* end confdefs.h.  */
 
9535
$ac_includes_default
 
9536
/* malloc might have been renamed as rpl_malloc. */
 
9537
#undef malloc
 
9538
 
 
9539
/* Thanks to Mike Haertel and Jim Avera for this test.
 
9540
   Here is a matrix of mmap possibilities:
 
9541
        mmap private not fixed
 
9542
        mmap private fixed at somewhere currently unmapped
 
9543
        mmap private fixed at somewhere already mapped
 
9544
        mmap shared not fixed
 
9545
        mmap shared fixed at somewhere currently unmapped
 
9546
        mmap shared fixed at somewhere already mapped
 
9547
   For private mappings, we should verify that changes cannot be read()
 
9548
   back from the file, nor mmap's back from the file at a different
 
9549
   address.  (There have been systems where private was not correctly
 
9550
   implemented like the infamous i386 svr4.0, and systems where the
 
9551
   VM page cache was not coherent with the file system buffer cache
 
9552
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
9553
   For shared mappings, we should conversely verify that changes get
 
9554
   propagated back to all the places they're supposed to be.
 
9555
 
 
9556
   Grep wants private fixed already mapped.
 
9557
   The main things grep needs to know about mmap are:
 
9558
   * does it exist and is it safe to write into the mmap'd area
 
9559
   * how to use it (BSD variants)  */
 
9560
 
 
9561
#include <fcntl.h>
 
9562
#include <sys/mman.h>
 
9563
 
 
9564
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
9565
char *malloc ();
 
9566
#endif
 
9567
 
 
9568
/* This mess was copied from the GNU getpagesize.h.  */
 
9569
#if !HAVE_GETPAGESIZE
 
9570
/* Assume that all systems that can run configure have sys/param.h.  */
 
9571
# if !HAVE_SYS_PARAM_H
 
9572
#  define HAVE_SYS_PARAM_H 1
 
9573
# endif
 
9574
 
 
9575
# ifdef _SC_PAGESIZE
 
9576
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
9577
# else /* no _SC_PAGESIZE */
 
9578
#  if HAVE_SYS_PARAM_H
 
9579
#   include <sys/param.h>
 
9580
#   ifdef EXEC_PAGESIZE
 
9581
#    define getpagesize() EXEC_PAGESIZE
 
9582
#   else /* no EXEC_PAGESIZE */
 
9583
#    ifdef NBPG
 
9584
#     define getpagesize() NBPG * CLSIZE
 
9585
#     ifndef CLSIZE
 
9586
#      define CLSIZE 1
 
9587
#     endif /* no CLSIZE */
 
9588
#    else /* no NBPG */
 
9589
#     ifdef NBPC
 
9590
#      define getpagesize() NBPC
 
9591
#     else /* no NBPC */
 
9592
#      ifdef PAGESIZE
 
9593
#       define getpagesize() PAGESIZE
 
9594
#      endif /* PAGESIZE */
 
9595
#     endif /* no NBPC */
 
9596
#    endif /* no NBPG */
 
9597
#   endif /* no EXEC_PAGESIZE */
 
9598
#  else /* no HAVE_SYS_PARAM_H */
 
9599
#   define getpagesize() 8192   /* punt totally */
 
9600
#  endif /* no HAVE_SYS_PARAM_H */
 
9601
# endif /* no _SC_PAGESIZE */
 
9602
 
 
9603
#endif /* no HAVE_GETPAGESIZE */
 
9604
 
 
9605
int
 
9606
main ()
 
9607
{
 
9608
  char *data, *data2, *data3;
 
9609
  int i, pagesize;
 
9610
  int fd;
 
9611
 
 
9612
  pagesize = getpagesize ();
 
9613
 
 
9614
  /* First, make a file with some known garbage in it. */
 
9615
  data = (char *) malloc (pagesize);
 
9616
  if (!data)
 
9617
    exit (1);
 
9618
  for (i = 0; i < pagesize; ++i)
 
9619
    *(data + i) = rand ();
 
9620
  umask (0);
 
9621
  fd = creat ("conftest.mmap", 0600);
 
9622
  if (fd < 0)
 
9623
    exit (1);
 
9624
  if (write (fd, data, pagesize) != pagesize)
 
9625
    exit (1);
 
9626
  close (fd);
 
9627
 
 
9628
  /* Next, try to mmap the file at a fixed address which already has
 
9629
     something else allocated at it.  If we can, also make sure that
 
9630
     we see the same garbage.  */
 
9631
  fd = open ("conftest.mmap", O_RDWR);
 
9632
  if (fd < 0)
 
9633
    exit (1);
 
9634
  data2 = (char *) malloc (2 * pagesize);
 
9635
  if (!data2)
 
9636
    exit (1);
 
9637
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
9638
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
9639
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
9640
    exit (1);
 
9641
  for (i = 0; i < pagesize; ++i)
 
9642
    if (*(data + i) != *(data2 + i))
 
9643
      exit (1);
 
9644
 
 
9645
  /* Finally, make sure that changes to the mapped area do not
 
9646
     percolate back to the file as seen by read().  (This is a bug on
 
9647
     some variants of i386 svr4.0.)  */
 
9648
  for (i = 0; i < pagesize; ++i)
 
9649
    *(data2 + i) = *(data2 + i) + 1;
 
9650
  data3 = (char *) malloc (pagesize);
 
9651
  if (!data3)
 
9652
    exit (1);
 
9653
  if (read (fd, data3, pagesize) != pagesize)
 
9654
    exit (1);
 
9655
  for (i = 0; i < pagesize; ++i)
 
9656
    if (*(data + i) != *(data3 + i))
 
9657
      exit (1);
 
9658
  close (fd);
 
9659
  exit (0);
 
9660
}
 
9661
_ACEOF
 
9662
rm -f conftest$ac_exeext
 
9663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9664
  (eval $ac_link) 2>&5
 
9665
  ac_status=$?
 
9666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9667
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9669
  (eval $ac_try) 2>&5
 
9670
  ac_status=$?
 
9671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9672
  (exit $ac_status); }; }; then
 
9673
  ac_cv_func_mmap_fixed_mapped=yes
 
9674
else
 
9675
  echo "$as_me: program exited with status $ac_status" >&5
 
9676
echo "$as_me: failed program was:" >&5
 
9677
sed 's/^/| /' conftest.$ac_ext >&5
 
9678
 
 
9679
( exit $ac_status )
 
9680
ac_cv_func_mmap_fixed_mapped=no
 
9681
fi
 
9682
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9683
fi
 
9684
fi
 
9685
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
9686
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
9687
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
9688
 
 
9689
cat >>confdefs.h <<\_ACEOF
 
9690
#define HAVE_MMAP 1
 
9691
_ACEOF
 
9692
 
 
9693
fi
 
9694
rm -f conftest.mmap
 
9695
 
 
9696
 
 
9697
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
9698
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
 
9699
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
9700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9701
else
 
9702
  cat >conftest.$ac_ext <<_ACEOF
 
9703
/* confdefs.h.  */
 
9704
_ACEOF
 
9705
cat confdefs.h >>conftest.$ac_ext
 
9706
cat >>conftest.$ac_ext <<_ACEOF
 
9707
/* end confdefs.h.  */
 
9708
 
 
9709
#include <features.h>
 
9710
#ifdef __GNU_LIBRARY__
 
9711
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
9712
  Lucky GNU user
 
9713
 #endif
 
9714
#endif
 
9715
 
 
9716
_ACEOF
 
9717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9718
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
9719
  ac_cv_gnu_library_2_1=yes
 
9720
else
 
9721
  ac_cv_gnu_library_2_1=no
 
9722
fi
 
9723
rm -f conftest*
 
9724
 
 
9725
 
 
9726
 
 
9727
fi
 
9728
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
9729
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
 
9730
 
 
9731
    GLIBC21="$ac_cv_gnu_library_2_1"
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
9737
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
 
9738
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
9739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9740
else
 
9741
 
 
9742
      if test "$cross_compiling" = yes; then
 
9743
 
 
9744
          # Guess based on the CPU.
 
9745
          case "$host_cpu" in
 
9746
            alpha* | i3456786 | m68k | s390*)
 
9747
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
9748
            *)
 
9749
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
9750
          esac
 
9751
 
 
9752
else
 
9753
  cat >conftest.$ac_ext <<_ACEOF
 
9754
/* confdefs.h.  */
 
9755
_ACEOF
 
9756
cat confdefs.h >>conftest.$ac_ext
 
9757
cat >>conftest.$ac_ext <<_ACEOF
 
9758
/* end confdefs.h.  */
 
9759
 
 
9760
#include <stdlib.h>
 
9761
#include <signal.h>
 
9762
 
 
9763
static void
 
9764
#ifdef __cplusplus
 
9765
sigfpe_handler (int sig)
 
9766
#else
 
9767
sigfpe_handler (sig) int sig;
 
9768
#endif
 
9769
{
 
9770
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
9771
  exit (sig != SIGFPE);
 
9772
}
 
9773
 
 
9774
int x = 1;
 
9775
int y = 0;
 
9776
int z;
 
9777
int nan;
 
9778
 
 
9779
int main ()
 
9780
{
 
9781
  signal (SIGFPE, sigfpe_handler);
 
9782
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
9783
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
9784
  signal (SIGTRAP, sigfpe_handler);
 
9785
#endif
 
9786
/* Linux/SPARC yields signal SIGILL.  */
 
9787
#if defined (__sparc__) && defined (__linux__)
 
9788
  signal (SIGILL, sigfpe_handler);
 
9789
#endif
 
9790
 
 
9791
  z = x / y;
 
9792
  nan = y / y;
 
9793
  exit (1);
 
9794
}
 
9795
 
 
9796
_ACEOF
 
9797
rm -f conftest$ac_exeext
 
9798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9799
  (eval $ac_link) 2>&5
 
9800
  ac_status=$?
 
9801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9802
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9804
  (eval $ac_try) 2>&5
 
9805
  ac_status=$?
 
9806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9807
  (exit $ac_status); }; }; then
 
9808
  gt_cv_int_divbyzero_sigfpe=yes
 
9809
else
 
9810
  echo "$as_me: program exited with status $ac_status" >&5
 
9811
echo "$as_me: failed program was:" >&5
 
9812
sed 's/^/| /' conftest.$ac_ext >&5
 
9813
 
 
9814
( exit $ac_status )
 
9815
gt_cv_int_divbyzero_sigfpe=no
 
9816
fi
 
9817
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9818
fi
 
9819
 
 
9820
fi
 
9821
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
9822
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
 
9823
  case "$gt_cv_int_divbyzero_sigfpe" in
 
9824
    *yes) value=1;;
 
9825
    *) value=0;;
 
9826
  esac
 
9827
 
 
9828
cat >>confdefs.h <<_ACEOF
 
9829
#define INTDIV0_RAISES_SIGFPE $value
 
9830
_ACEOF
 
9831
 
 
9832
 
 
9833
 
 
9834
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
9835
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
 
9836
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
9837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9838
else
 
9839
  cat >conftest.$ac_ext <<_ACEOF
 
9840
/* confdefs.h.  */
 
9841
_ACEOF
 
9842
cat confdefs.h >>conftest.$ac_ext
 
9843
cat >>conftest.$ac_ext <<_ACEOF
 
9844
/* end confdefs.h.  */
 
9845
unsigned long long ull = 1ULL; int i = 63;
 
9846
int
 
9847
main ()
 
9848
{
 
9849
unsigned long long ullmax = (unsigned long long) -1;
 
9850
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
9851
  ;
 
9852
  return 0;
 
9853
}
 
9854
_ACEOF
 
9855
rm -f conftest.$ac_objext conftest$ac_exeext
 
9856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9857
  (eval $ac_link) 2>conftest.er1
 
9858
  ac_status=$?
 
9859
  grep -v '^ *+' conftest.er1 >conftest.err
 
9860
  rm -f conftest.er1
 
9861
  cat conftest.err >&5
 
9862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9863
  (exit $ac_status); } &&
 
9864
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9866
  (eval $ac_try) 2>&5
 
9867
  ac_status=$?
 
9868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9869
  (exit $ac_status); }; } &&
 
9870
         { ac_try='test -s conftest$ac_exeext'
 
9871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9872
  (eval $ac_try) 2>&5
 
9873
  ac_status=$?
 
9874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9875
  (exit $ac_status); }; }; then
 
9876
  ac_cv_type_unsigned_long_long=yes
 
9877
else
 
9878
  echo "$as_me: failed program was:" >&5
 
9879
sed 's/^/| /' conftest.$ac_ext >&5
 
9880
 
 
9881
ac_cv_type_unsigned_long_long=no
 
9882
fi
 
9883
rm -f conftest.err conftest.$ac_objext \
 
9884
      conftest$ac_exeext conftest.$ac_ext
 
9885
fi
 
9886
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
9887
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
 
9888
  if test $ac_cv_type_unsigned_long_long = yes; then
 
9889
 
 
9890
cat >>confdefs.h <<\_ACEOF
 
9891
#define HAVE_UNSIGNED_LONG_LONG 1
 
9892
_ACEOF
 
9893
 
 
9894
  fi
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
 
9900
 
 
9901
    test $ac_cv_type_unsigned_long_long = yes \
 
9902
      && ac_type='unsigned long long' \
 
9903
      || ac_type='unsigned long'
 
9904
 
 
9905
cat >>confdefs.h <<_ACEOF
 
9906
#define uintmax_t $ac_type
 
9907
_ACEOF
 
9908
 
 
9909
  else
 
9910
 
 
9911
cat >>confdefs.h <<\_ACEOF
 
9912
#define HAVE_UINTMAX_T 1
 
9913
_ACEOF
 
9914
 
 
9915
  fi
 
9916
 
 
9917
 
 
9918
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
9919
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
9920
if test "${gt_cv_header_inttypes_h+set}" = set; then
 
9921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9922
else
 
9923
 
 
9924
    cat >conftest.$ac_ext <<_ACEOF
 
9925
/* confdefs.h.  */
 
9926
_ACEOF
 
9927
cat confdefs.h >>conftest.$ac_ext
 
9928
cat >>conftest.$ac_ext <<_ACEOF
 
9929
/* end confdefs.h.  */
 
9930
#include <sys/types.h>
 
9931
#include <inttypes.h>
 
9932
int
 
9933
main ()
 
9934
{
 
9935
 
 
9936
  ;
 
9937
  return 0;
 
9938
}
 
9939
_ACEOF
 
9940
rm -f conftest.$ac_objext
 
9941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9942
  (eval $ac_compile) 2>conftest.er1
 
9943
  ac_status=$?
 
9944
  grep -v '^ *+' conftest.er1 >conftest.err
 
9945
  rm -f conftest.er1
 
9946
  cat conftest.err >&5
 
9947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9948
  (exit $ac_status); } &&
 
9949
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9951
  (eval $ac_try) 2>&5
 
9952
  ac_status=$?
 
9953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9954
  (exit $ac_status); }; } &&
 
9955
         { ac_try='test -s conftest.$ac_objext'
 
9956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9957
  (eval $ac_try) 2>&5
 
9958
  ac_status=$?
 
9959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9960
  (exit $ac_status); }; }; then
 
9961
  gt_cv_header_inttypes_h=yes
 
9962
else
 
9963
  echo "$as_me: failed program was:" >&5
 
9964
sed 's/^/| /' conftest.$ac_ext >&5
 
9965
 
 
9966
gt_cv_header_inttypes_h=no
 
9967
fi
 
9968
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9969
 
 
9970
fi
 
9971
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
 
9972
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
 
9973
  if test $gt_cv_header_inttypes_h = yes; then
 
9974
 
 
9975
cat >>confdefs.h <<_ACEOF
 
9976
#define HAVE_INTTYPES_H 1
 
9977
_ACEOF
 
9978
 
 
9979
  fi
 
9980
 
 
9981
 
 
9982
 
 
9983
  if test $gt_cv_header_inttypes_h = yes; then
 
9984
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
9985
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
 
9986
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
9987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9988
else
 
9989
 
 
9990
        cat >conftest.$ac_ext <<_ACEOF
 
9991
/* confdefs.h.  */
 
9992
_ACEOF
 
9993
cat confdefs.h >>conftest.$ac_ext
 
9994
cat >>conftest.$ac_ext <<_ACEOF
 
9995
/* end confdefs.h.  */
 
9996
#include <inttypes.h>
 
9997
#ifdef PRId32
 
9998
char *p = PRId32;
 
9999
#endif
 
10000
 
 
10001
int
 
10002
main ()
 
10003
{
 
10004
 
 
10005
  ;
 
10006
  return 0;
 
10007
}
 
10008
_ACEOF
 
10009
rm -f conftest.$ac_objext
 
10010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10011
  (eval $ac_compile) 2>conftest.er1
 
10012
  ac_status=$?
 
10013
  grep -v '^ *+' conftest.er1 >conftest.err
 
10014
  rm -f conftest.er1
 
10015
  cat conftest.err >&5
 
10016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10017
  (exit $ac_status); } &&
 
10018
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10020
  (eval $ac_try) 2>&5
 
10021
  ac_status=$?
 
10022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10023
  (exit $ac_status); }; } &&
 
10024
         { ac_try='test -s conftest.$ac_objext'
 
10025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10026
  (eval $ac_try) 2>&5
 
10027
  ac_status=$?
 
10028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10029
  (exit $ac_status); }; }; then
 
10030
  gt_cv_inttypes_pri_broken=no
 
10031
else
 
10032
  echo "$as_me: failed program was:" >&5
 
10033
sed 's/^/| /' conftest.$ac_ext >&5
 
10034
 
 
10035
gt_cv_inttypes_pri_broken=yes
 
10036
fi
 
10037
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10038
 
 
10039
fi
 
10040
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
10041
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
 
10042
  fi
 
10043
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
10044
 
 
10045
cat >>confdefs.h <<_ACEOF
 
10046
#define PRI_MACROS_BROKEN 1
 
10047
_ACEOF
 
10048
 
 
10049
  fi
 
10050
 
 
10051
 
 
10052
 
 
10053
for ac_header in stdint.h
 
10054
do
 
10055
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10056
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10057
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10058
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10059
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10061
fi
 
10062
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10063
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10064
else
 
10065
  # Is the header compilable?
 
10066
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10067
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10068
cat >conftest.$ac_ext <<_ACEOF
 
10069
/* confdefs.h.  */
 
10070
_ACEOF
 
10071
cat confdefs.h >>conftest.$ac_ext
 
10072
cat >>conftest.$ac_ext <<_ACEOF
 
10073
/* end confdefs.h.  */
 
10074
$ac_includes_default
 
10075
#include <$ac_header>
 
10076
_ACEOF
 
10077
rm -f conftest.$ac_objext
 
10078
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10079
  (eval $ac_compile) 2>conftest.er1
 
10080
  ac_status=$?
 
10081
  grep -v '^ *+' conftest.er1 >conftest.err
 
10082
  rm -f conftest.er1
 
10083
  cat conftest.err >&5
 
10084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10085
  (exit $ac_status); } &&
 
10086
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10088
  (eval $ac_try) 2>&5
 
10089
  ac_status=$?
 
10090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10091
  (exit $ac_status); }; } &&
 
10092
         { ac_try='test -s conftest.$ac_objext'
 
10093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10094
  (eval $ac_try) 2>&5
 
10095
  ac_status=$?
 
10096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10097
  (exit $ac_status); }; }; then
 
10098
  ac_header_compiler=yes
 
10099
else
 
10100
  echo "$as_me: failed program was:" >&5
 
10101
sed 's/^/| /' conftest.$ac_ext >&5
 
10102
 
 
10103
ac_header_compiler=no
 
10104
fi
 
10105
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10106
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10107
echo "${ECHO_T}$ac_header_compiler" >&6
 
10108
 
 
10109
# Is the header present?
 
10110
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10111
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10112
cat >conftest.$ac_ext <<_ACEOF
 
10113
/* confdefs.h.  */
 
10114
_ACEOF
 
10115
cat confdefs.h >>conftest.$ac_ext
 
10116
cat >>conftest.$ac_ext <<_ACEOF
 
10117
/* end confdefs.h.  */
 
10118
#include <$ac_header>
 
10119
_ACEOF
 
10120
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10121
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10122
  ac_status=$?
 
10123
  grep -v '^ *+' conftest.er1 >conftest.err
 
10124
  rm -f conftest.er1
 
10125
  cat conftest.err >&5
 
10126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10127
  (exit $ac_status); } >/dev/null; then
 
10128
  if test -s conftest.err; then
 
10129
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10130
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10131
  else
 
10132
    ac_cpp_err=
 
10133
  fi
 
10134
else
 
10135
  ac_cpp_err=yes
 
10136
fi
 
10137
if test -z "$ac_cpp_err"; then
 
10138
  ac_header_preproc=yes
 
10139
else
 
10140
  echo "$as_me: failed program was:" >&5
 
10141
sed 's/^/| /' conftest.$ac_ext >&5
 
10142
 
 
10143
  ac_header_preproc=no
 
10144
fi
 
10145
rm -f conftest.err conftest.$ac_ext
 
10146
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10147
echo "${ECHO_T}$ac_header_preproc" >&6
 
10148
 
 
10149
# So?  What about this header?
 
10150
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10151
  yes:no: )
 
10152
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10153
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10154
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10155
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10156
    ac_header_preproc=yes
 
10157
    ;;
 
10158
  no:yes:* )
 
10159
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10160
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10161
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10162
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10163
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10164
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10165
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10166
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10167
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10168
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10169
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10170
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10171
    (
 
10172
      cat <<\_ASBOX
 
10173
## ------------------------------------ ##
 
10174
## Report this to gnupg-devel@gnupg.org ##
 
10175
## ------------------------------------ ##
 
10176
_ASBOX
 
10177
    ) |
 
10178
      sed "s/^/$as_me: WARNING:     /" >&2
 
10179
    ;;
 
10180
esac
 
10181
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10182
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10183
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10185
else
 
10186
  eval "$as_ac_Header=\$ac_header_preproc"
 
10187
fi
 
10188
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10189
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10190
 
 
10191
fi
 
10192
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10193
  cat >>confdefs.h <<_ACEOF
 
10194
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10195
_ACEOF
 
10196
 
 
10197
fi
 
10198
 
 
10199
done
 
10200
 
 
10201
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
10202
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
 
10203
  result=
 
10204
  cat >conftest.$ac_ext <<_ACEOF
 
10205
/* confdefs.h.  */
 
10206
_ACEOF
 
10207
cat confdefs.h >>conftest.$ac_ext
 
10208
cat >>conftest.$ac_ext <<_ACEOF
 
10209
/* end confdefs.h.  */
 
10210
 
 
10211
#include <limits.h>
 
10212
#if HAVE_STDINT_H
 
10213
#include <stdint.h>
 
10214
#endif
 
10215
#ifdef SIZE_MAX
 
10216
Found it
 
10217
#endif
 
10218
 
 
10219
_ACEOF
 
10220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10221
  $EGREP "Found it" >/dev/null 2>&1; then
 
10222
  result=yes
 
10223
fi
 
10224
rm -f conftest*
 
10225
 
 
10226
  if test -z "$result"; then
 
10227
                    if test "$cross_compiling" = yes; then
 
10228
  # Depending upon the size, compute the lo and hi bounds.
 
10229
cat >conftest.$ac_ext <<_ACEOF
 
10230
/* confdefs.h.  */
 
10231
_ACEOF
 
10232
cat confdefs.h >>conftest.$ac_ext
 
10233
cat >>conftest.$ac_ext <<_ACEOF
 
10234
/* end confdefs.h.  */
 
10235
#include <stddef.h>
 
10236
int
 
10237
main ()
 
10238
{
 
10239
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
 
10240
test_array [0] = 0
 
10241
 
 
10242
  ;
 
10243
  return 0;
 
10244
}
 
10245
_ACEOF
 
10246
rm -f conftest.$ac_objext
 
10247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10248
  (eval $ac_compile) 2>conftest.er1
 
10249
  ac_status=$?
 
10250
  grep -v '^ *+' conftest.er1 >conftest.err
 
10251
  rm -f conftest.er1
 
10252
  cat conftest.err >&5
 
10253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10254
  (exit $ac_status); } &&
 
10255
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10257
  (eval $ac_try) 2>&5
 
10258
  ac_status=$?
 
10259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10260
  (exit $ac_status); }; } &&
 
10261
         { ac_try='test -s conftest.$ac_objext'
 
10262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10263
  (eval $ac_try) 2>&5
 
10264
  ac_status=$?
 
10265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10266
  (exit $ac_status); }; }; then
 
10267
  ac_lo=0 ac_mid=0
 
10268
  while :; do
 
10269
    cat >conftest.$ac_ext <<_ACEOF
 
10270
/* confdefs.h.  */
 
10271
_ACEOF
 
10272
cat confdefs.h >>conftest.$ac_ext
 
10273
cat >>conftest.$ac_ext <<_ACEOF
 
10274
/* end confdefs.h.  */
 
10275
#include <stddef.h>
 
10276
int
 
10277
main ()
 
10278
{
 
10279
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
10280
test_array [0] = 0
 
10281
 
 
10282
  ;
 
10283
  return 0;
 
10284
}
 
10285
_ACEOF
 
10286
rm -f conftest.$ac_objext
 
10287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10288
  (eval $ac_compile) 2>conftest.er1
 
10289
  ac_status=$?
 
10290
  grep -v '^ *+' conftest.er1 >conftest.err
 
10291
  rm -f conftest.er1
 
10292
  cat conftest.err >&5
 
10293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10294
  (exit $ac_status); } &&
 
10295
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10297
  (eval $ac_try) 2>&5
 
10298
  ac_status=$?
 
10299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10300
  (exit $ac_status); }; } &&
 
10301
         { ac_try='test -s conftest.$ac_objext'
 
10302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10303
  (eval $ac_try) 2>&5
 
10304
  ac_status=$?
 
10305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10306
  (exit $ac_status); }; }; then
 
10307
  ac_hi=$ac_mid; break
 
10308
else
 
10309
  echo "$as_me: failed program was:" >&5
 
10310
sed 's/^/| /' conftest.$ac_ext >&5
 
10311
 
 
10312
ac_lo=`expr $ac_mid + 1`
 
10313
                    if test $ac_lo -le $ac_mid; then
 
10314
                      ac_lo= ac_hi=
 
10315
                      break
 
10316
                    fi
 
10317
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10318
fi
 
10319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10320
  done
 
10321
else
 
10322
  echo "$as_me: failed program was:" >&5
 
10323
sed 's/^/| /' conftest.$ac_ext >&5
 
10324
 
 
10325
cat >conftest.$ac_ext <<_ACEOF
 
10326
/* confdefs.h.  */
 
10327
_ACEOF
 
10328
cat confdefs.h >>conftest.$ac_ext
 
10329
cat >>conftest.$ac_ext <<_ACEOF
 
10330
/* end confdefs.h.  */
 
10331
#include <stddef.h>
 
10332
int
 
10333
main ()
 
10334
{
 
10335
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
 
10336
test_array [0] = 0
 
10337
 
 
10338
  ;
 
10339
  return 0;
 
10340
}
 
10341
_ACEOF
 
10342
rm -f conftest.$ac_objext
 
10343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10344
  (eval $ac_compile) 2>conftest.er1
 
10345
  ac_status=$?
 
10346
  grep -v '^ *+' conftest.er1 >conftest.err
 
10347
  rm -f conftest.er1
 
10348
  cat conftest.err >&5
 
10349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10350
  (exit $ac_status); } &&
 
10351
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10353
  (eval $ac_try) 2>&5
 
10354
  ac_status=$?
 
10355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10356
  (exit $ac_status); }; } &&
 
10357
         { ac_try='test -s conftest.$ac_objext'
 
10358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10359
  (eval $ac_try) 2>&5
 
10360
  ac_status=$?
 
10361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10362
  (exit $ac_status); }; }; then
 
10363
  ac_hi=-1 ac_mid=-1
 
10364
  while :; do
 
10365
    cat >conftest.$ac_ext <<_ACEOF
 
10366
/* confdefs.h.  */
 
10367
_ACEOF
 
10368
cat confdefs.h >>conftest.$ac_ext
 
10369
cat >>conftest.$ac_ext <<_ACEOF
 
10370
/* end confdefs.h.  */
 
10371
#include <stddef.h>
 
10372
int
 
10373
main ()
 
10374
{
 
10375
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
 
10376
test_array [0] = 0
 
10377
 
 
10378
  ;
 
10379
  return 0;
 
10380
}
 
10381
_ACEOF
 
10382
rm -f conftest.$ac_objext
 
10383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10384
  (eval $ac_compile) 2>conftest.er1
 
10385
  ac_status=$?
 
10386
  grep -v '^ *+' conftest.er1 >conftest.err
 
10387
  rm -f conftest.er1
 
10388
  cat conftest.err >&5
 
10389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10390
  (exit $ac_status); } &&
 
10391
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10393
  (eval $ac_try) 2>&5
 
10394
  ac_status=$?
 
10395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10396
  (exit $ac_status); }; } &&
 
10397
         { ac_try='test -s conftest.$ac_objext'
 
10398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10399
  (eval $ac_try) 2>&5
 
10400
  ac_status=$?
 
10401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10402
  (exit $ac_status); }; }; then
 
10403
  ac_lo=$ac_mid; break
 
10404
else
 
10405
  echo "$as_me: failed program was:" >&5
 
10406
sed 's/^/| /' conftest.$ac_ext >&5
 
10407
 
 
10408
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10409
                       if test $ac_mid -le $ac_hi; then
 
10410
                         ac_lo= ac_hi=
 
10411
                         break
 
10412
                       fi
 
10413
                       ac_mid=`expr 2 '*' $ac_mid`
 
10414
fi
 
10415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10416
  done
 
10417
else
 
10418
  echo "$as_me: failed program was:" >&5
 
10419
sed 's/^/| /' conftest.$ac_ext >&5
 
10420
 
 
10421
ac_lo= ac_hi=
 
10422
fi
 
10423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10424
fi
 
10425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10426
# Binary search between lo and hi bounds.
 
10427
while test "x$ac_lo" != "x$ac_hi"; do
 
10428
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10429
  cat >conftest.$ac_ext <<_ACEOF
 
10430
/* confdefs.h.  */
 
10431
_ACEOF
 
10432
cat confdefs.h >>conftest.$ac_ext
 
10433
cat >>conftest.$ac_ext <<_ACEOF
 
10434
/* end confdefs.h.  */
 
10435
#include <stddef.h>
 
10436
int
 
10437
main ()
 
10438
{
 
10439
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
10440
test_array [0] = 0
 
10441
 
 
10442
  ;
 
10443
  return 0;
 
10444
}
 
10445
_ACEOF
 
10446
rm -f conftest.$ac_objext
 
10447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10448
  (eval $ac_compile) 2>conftest.er1
 
10449
  ac_status=$?
 
10450
  grep -v '^ *+' conftest.er1 >conftest.err
 
10451
  rm -f conftest.er1
 
10452
  cat conftest.err >&5
 
10453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10454
  (exit $ac_status); } &&
 
10455
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10457
  (eval $ac_try) 2>&5
 
10458
  ac_status=$?
 
10459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10460
  (exit $ac_status); }; } &&
 
10461
         { ac_try='test -s conftest.$ac_objext'
 
10462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10463
  (eval $ac_try) 2>&5
 
10464
  ac_status=$?
 
10465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10466
  (exit $ac_status); }; }; then
 
10467
  ac_hi=$ac_mid
 
10468
else
 
10469
  echo "$as_me: failed program was:" >&5
 
10470
sed 's/^/| /' conftest.$ac_ext >&5
 
10471
 
 
10472
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10473
fi
 
10474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10475
done
 
10476
case $ac_lo in
 
10477
?*) res_hi=$ac_lo;;
 
10478
'') result=? ;;
 
10479
esac
 
10480
else
 
10481
  if test "$cross_compiling" = yes; then
 
10482
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
10483
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
10484
   { (exit 1); exit 1; }; }
 
10485
else
 
10486
  cat >conftest.$ac_ext <<_ACEOF
 
10487
/* confdefs.h.  */
 
10488
_ACEOF
 
10489
cat confdefs.h >>conftest.$ac_ext
 
10490
cat >>conftest.$ac_ext <<_ACEOF
 
10491
/* end confdefs.h.  */
 
10492
#include <stddef.h>
 
10493
long longval () { return ~(size_t)0 / 10; }
 
10494
unsigned long ulongval () { return ~(size_t)0 / 10; }
 
10495
#include <stdio.h>
 
10496
#include <stdlib.h>
 
10497
int
 
10498
main ()
 
10499
{
 
10500
 
 
10501
  FILE *f = fopen ("conftest.val", "w");
 
10502
  if (! f)
 
10503
    exit (1);
 
10504
  if ((~(size_t)0 / 10) < 0)
 
10505
    {
 
10506
      long i = longval ();
 
10507
      if (i != (~(size_t)0 / 10))
 
10508
        exit (1);
 
10509
      fprintf (f, "%ld\n", i);
 
10510
    }
 
10511
  else
 
10512
    {
 
10513
      unsigned long i = ulongval ();
 
10514
      if (i != (~(size_t)0 / 10))
 
10515
        exit (1);
 
10516
      fprintf (f, "%lu\n", i);
 
10517
    }
 
10518
  exit (ferror (f) || fclose (f) != 0);
 
10519
 
 
10520
  ;
 
10521
  return 0;
 
10522
}
 
10523
_ACEOF
 
10524
rm -f conftest$ac_exeext
 
10525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10526
  (eval $ac_link) 2>&5
 
10527
  ac_status=$?
 
10528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10529
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10531
  (eval $ac_try) 2>&5
 
10532
  ac_status=$?
 
10533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10534
  (exit $ac_status); }; }; then
 
10535
  res_hi=`cat conftest.val`
 
10536
else
 
10537
  echo "$as_me: program exited with status $ac_status" >&5
 
10538
echo "$as_me: failed program was:" >&5
 
10539
sed 's/^/| /' conftest.$ac_ext >&5
 
10540
 
 
10541
( exit $ac_status )
 
10542
result=?
 
10543
fi
 
10544
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10545
fi
 
10546
fi
 
10547
rm -f conftest.val
 
10548
    if test "$cross_compiling" = yes; then
 
10549
  # Depending upon the size, compute the lo and hi bounds.
 
10550
cat >conftest.$ac_ext <<_ACEOF
 
10551
/* confdefs.h.  */
 
10552
_ACEOF
 
10553
cat confdefs.h >>conftest.$ac_ext
 
10554
cat >>conftest.$ac_ext <<_ACEOF
 
10555
/* end confdefs.h.  */
 
10556
#include <stddef.h>
 
10557
int
 
10558
main ()
 
10559
{
 
10560
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
 
10561
test_array [0] = 0
 
10562
 
 
10563
  ;
 
10564
  return 0;
 
10565
}
 
10566
_ACEOF
 
10567
rm -f conftest.$ac_objext
 
10568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10569
  (eval $ac_compile) 2>conftest.er1
 
10570
  ac_status=$?
 
10571
  grep -v '^ *+' conftest.er1 >conftest.err
 
10572
  rm -f conftest.er1
 
10573
  cat conftest.err >&5
 
10574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10575
  (exit $ac_status); } &&
 
10576
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10578
  (eval $ac_try) 2>&5
 
10579
  ac_status=$?
 
10580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10581
  (exit $ac_status); }; } &&
 
10582
         { ac_try='test -s conftest.$ac_objext'
 
10583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10584
  (eval $ac_try) 2>&5
 
10585
  ac_status=$?
 
10586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10587
  (exit $ac_status); }; }; then
 
10588
  ac_lo=0 ac_mid=0
 
10589
  while :; do
 
10590
    cat >conftest.$ac_ext <<_ACEOF
 
10591
/* confdefs.h.  */
 
10592
_ACEOF
 
10593
cat confdefs.h >>conftest.$ac_ext
 
10594
cat >>conftest.$ac_ext <<_ACEOF
 
10595
/* end confdefs.h.  */
 
10596
#include <stddef.h>
 
10597
int
 
10598
main ()
 
10599
{
 
10600
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
10601
test_array [0] = 0
 
10602
 
 
10603
  ;
 
10604
  return 0;
 
10605
}
 
10606
_ACEOF
 
10607
rm -f conftest.$ac_objext
 
10608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10609
  (eval $ac_compile) 2>conftest.er1
 
10610
  ac_status=$?
 
10611
  grep -v '^ *+' conftest.er1 >conftest.err
 
10612
  rm -f conftest.er1
 
10613
  cat conftest.err >&5
 
10614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10615
  (exit $ac_status); } &&
 
10616
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10618
  (eval $ac_try) 2>&5
 
10619
  ac_status=$?
 
10620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10621
  (exit $ac_status); }; } &&
 
10622
         { ac_try='test -s conftest.$ac_objext'
 
10623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10624
  (eval $ac_try) 2>&5
 
10625
  ac_status=$?
 
10626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10627
  (exit $ac_status); }; }; then
 
10628
  ac_hi=$ac_mid; break
 
10629
else
 
10630
  echo "$as_me: failed program was:" >&5
 
10631
sed 's/^/| /' conftest.$ac_ext >&5
 
10632
 
 
10633
ac_lo=`expr $ac_mid + 1`
 
10634
                    if test $ac_lo -le $ac_mid; then
 
10635
                      ac_lo= ac_hi=
 
10636
                      break
 
10637
                    fi
 
10638
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10639
fi
 
10640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10641
  done
 
10642
else
 
10643
  echo "$as_me: failed program was:" >&5
 
10644
sed 's/^/| /' conftest.$ac_ext >&5
 
10645
 
 
10646
cat >conftest.$ac_ext <<_ACEOF
 
10647
/* confdefs.h.  */
 
10648
_ACEOF
 
10649
cat confdefs.h >>conftest.$ac_ext
 
10650
cat >>conftest.$ac_ext <<_ACEOF
 
10651
/* end confdefs.h.  */
 
10652
#include <stddef.h>
 
10653
int
 
10654
main ()
 
10655
{
 
10656
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
 
10657
test_array [0] = 0
 
10658
 
 
10659
  ;
 
10660
  return 0;
 
10661
}
 
10662
_ACEOF
 
10663
rm -f conftest.$ac_objext
 
10664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10665
  (eval $ac_compile) 2>conftest.er1
 
10666
  ac_status=$?
 
10667
  grep -v '^ *+' conftest.er1 >conftest.err
 
10668
  rm -f conftest.er1
 
10669
  cat conftest.err >&5
 
10670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10671
  (exit $ac_status); } &&
 
10672
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10674
  (eval $ac_try) 2>&5
 
10675
  ac_status=$?
 
10676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10677
  (exit $ac_status); }; } &&
 
10678
         { ac_try='test -s conftest.$ac_objext'
 
10679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10680
  (eval $ac_try) 2>&5
 
10681
  ac_status=$?
 
10682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10683
  (exit $ac_status); }; }; then
 
10684
  ac_hi=-1 ac_mid=-1
 
10685
  while :; do
 
10686
    cat >conftest.$ac_ext <<_ACEOF
 
10687
/* confdefs.h.  */
 
10688
_ACEOF
 
10689
cat confdefs.h >>conftest.$ac_ext
 
10690
cat >>conftest.$ac_ext <<_ACEOF
 
10691
/* end confdefs.h.  */
 
10692
#include <stddef.h>
 
10693
int
 
10694
main ()
 
10695
{
 
10696
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
 
10697
test_array [0] = 0
 
10698
 
 
10699
  ;
 
10700
  return 0;
 
10701
}
 
10702
_ACEOF
 
10703
rm -f conftest.$ac_objext
 
10704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10705
  (eval $ac_compile) 2>conftest.er1
 
10706
  ac_status=$?
 
10707
  grep -v '^ *+' conftest.er1 >conftest.err
 
10708
  rm -f conftest.er1
 
10709
  cat conftest.err >&5
 
10710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10711
  (exit $ac_status); } &&
 
10712
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10714
  (eval $ac_try) 2>&5
 
10715
  ac_status=$?
 
10716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10717
  (exit $ac_status); }; } &&
 
10718
         { ac_try='test -s conftest.$ac_objext'
 
10719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10720
  (eval $ac_try) 2>&5
 
10721
  ac_status=$?
 
10722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10723
  (exit $ac_status); }; }; then
 
10724
  ac_lo=$ac_mid; break
 
10725
else
 
10726
  echo "$as_me: failed program was:" >&5
 
10727
sed 's/^/| /' conftest.$ac_ext >&5
 
10728
 
 
10729
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10730
                       if test $ac_mid -le $ac_hi; then
 
10731
                         ac_lo= ac_hi=
 
10732
                         break
 
10733
                       fi
 
10734
                       ac_mid=`expr 2 '*' $ac_mid`
 
10735
fi
 
10736
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10737
  done
 
10738
else
 
10739
  echo "$as_me: failed program was:" >&5
 
10740
sed 's/^/| /' conftest.$ac_ext >&5
 
10741
 
 
10742
ac_lo= ac_hi=
 
10743
fi
 
10744
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10745
fi
 
10746
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10747
# Binary search between lo and hi bounds.
 
10748
while test "x$ac_lo" != "x$ac_hi"; do
 
10749
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10750
  cat >conftest.$ac_ext <<_ACEOF
 
10751
/* confdefs.h.  */
 
10752
_ACEOF
 
10753
cat confdefs.h >>conftest.$ac_ext
 
10754
cat >>conftest.$ac_ext <<_ACEOF
 
10755
/* end confdefs.h.  */
 
10756
#include <stddef.h>
 
10757
int
 
10758
main ()
 
10759
{
 
10760
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
10761
test_array [0] = 0
 
10762
 
 
10763
  ;
 
10764
  return 0;
 
10765
}
 
10766
_ACEOF
 
10767
rm -f conftest.$ac_objext
 
10768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10769
  (eval $ac_compile) 2>conftest.er1
 
10770
  ac_status=$?
 
10771
  grep -v '^ *+' conftest.er1 >conftest.err
 
10772
  rm -f conftest.er1
 
10773
  cat conftest.err >&5
 
10774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10775
  (exit $ac_status); } &&
 
10776
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10778
  (eval $ac_try) 2>&5
 
10779
  ac_status=$?
 
10780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10781
  (exit $ac_status); }; } &&
 
10782
         { ac_try='test -s conftest.$ac_objext'
 
10783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10784
  (eval $ac_try) 2>&5
 
10785
  ac_status=$?
 
10786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10787
  (exit $ac_status); }; }; then
 
10788
  ac_hi=$ac_mid
 
10789
else
 
10790
  echo "$as_me: failed program was:" >&5
 
10791
sed 's/^/| /' conftest.$ac_ext >&5
 
10792
 
 
10793
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10794
fi
 
10795
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10796
done
 
10797
case $ac_lo in
 
10798
?*) res_lo=$ac_lo;;
 
10799
'') result=? ;;
 
10800
esac
 
10801
else
 
10802
  if test "$cross_compiling" = yes; then
 
10803
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
10804
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
10805
   { (exit 1); exit 1; }; }
 
10806
else
 
10807
  cat >conftest.$ac_ext <<_ACEOF
 
10808
/* confdefs.h.  */
 
10809
_ACEOF
 
10810
cat confdefs.h >>conftest.$ac_ext
 
10811
cat >>conftest.$ac_ext <<_ACEOF
 
10812
/* end confdefs.h.  */
 
10813
#include <stddef.h>
 
10814
long longval () { return ~(size_t)0 % 10; }
 
10815
unsigned long ulongval () { return ~(size_t)0 % 10; }
 
10816
#include <stdio.h>
 
10817
#include <stdlib.h>
 
10818
int
 
10819
main ()
 
10820
{
 
10821
 
 
10822
  FILE *f = fopen ("conftest.val", "w");
 
10823
  if (! f)
 
10824
    exit (1);
 
10825
  if ((~(size_t)0 % 10) < 0)
 
10826
    {
 
10827
      long i = longval ();
 
10828
      if (i != (~(size_t)0 % 10))
 
10829
        exit (1);
 
10830
      fprintf (f, "%ld\n", i);
 
10831
    }
 
10832
  else
 
10833
    {
 
10834
      unsigned long i = ulongval ();
 
10835
      if (i != (~(size_t)0 % 10))
 
10836
        exit (1);
 
10837
      fprintf (f, "%lu\n", i);
 
10838
    }
 
10839
  exit (ferror (f) || fclose (f) != 0);
 
10840
 
 
10841
  ;
 
10842
  return 0;
 
10843
}
 
10844
_ACEOF
 
10845
rm -f conftest$ac_exeext
 
10846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10847
  (eval $ac_link) 2>&5
 
10848
  ac_status=$?
 
10849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10850
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10852
  (eval $ac_try) 2>&5
 
10853
  ac_status=$?
 
10854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10855
  (exit $ac_status); }; }; then
 
10856
  res_lo=`cat conftest.val`
 
10857
else
 
10858
  echo "$as_me: program exited with status $ac_status" >&5
 
10859
echo "$as_me: failed program was:" >&5
 
10860
sed 's/^/| /' conftest.$ac_ext >&5
 
10861
 
 
10862
( exit $ac_status )
 
10863
result=?
 
10864
fi
 
10865
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10866
fi
 
10867
fi
 
10868
rm -f conftest.val
 
10869
    if test "$cross_compiling" = yes; then
 
10870
  # Depending upon the size, compute the lo and hi bounds.
 
10871
cat >conftest.$ac_ext <<_ACEOF
 
10872
/* confdefs.h.  */
 
10873
_ACEOF
 
10874
cat confdefs.h >>conftest.$ac_ext
 
10875
cat >>conftest.$ac_ext <<_ACEOF
 
10876
/* end confdefs.h.  */
 
10877
#include <stddef.h>
 
10878
int
 
10879
main ()
 
10880
{
 
10881
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
10882
test_array [0] = 0
 
10883
 
 
10884
  ;
 
10885
  return 0;
 
10886
}
 
10887
_ACEOF
 
10888
rm -f conftest.$ac_objext
 
10889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10890
  (eval $ac_compile) 2>conftest.er1
 
10891
  ac_status=$?
 
10892
  grep -v '^ *+' conftest.er1 >conftest.err
 
10893
  rm -f conftest.er1
 
10894
  cat conftest.err >&5
 
10895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10896
  (exit $ac_status); } &&
 
10897
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10899
  (eval $ac_try) 2>&5
 
10900
  ac_status=$?
 
10901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10902
  (exit $ac_status); }; } &&
 
10903
         { ac_try='test -s conftest.$ac_objext'
 
10904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10905
  (eval $ac_try) 2>&5
 
10906
  ac_status=$?
 
10907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10908
  (exit $ac_status); }; }; then
 
10909
  ac_lo=0 ac_mid=0
 
10910
  while :; do
 
10911
    cat >conftest.$ac_ext <<_ACEOF
 
10912
/* confdefs.h.  */
 
10913
_ACEOF
 
10914
cat confdefs.h >>conftest.$ac_ext
 
10915
cat >>conftest.$ac_ext <<_ACEOF
 
10916
/* end confdefs.h.  */
 
10917
#include <stddef.h>
 
10918
int
 
10919
main ()
 
10920
{
 
10921
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
10922
test_array [0] = 0
 
10923
 
 
10924
  ;
 
10925
  return 0;
 
10926
}
 
10927
_ACEOF
 
10928
rm -f conftest.$ac_objext
 
10929
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10930
  (eval $ac_compile) 2>conftest.er1
 
10931
  ac_status=$?
 
10932
  grep -v '^ *+' conftest.er1 >conftest.err
 
10933
  rm -f conftest.er1
 
10934
  cat conftest.err >&5
 
10935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10936
  (exit $ac_status); } &&
 
10937
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10939
  (eval $ac_try) 2>&5
 
10940
  ac_status=$?
 
10941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10942
  (exit $ac_status); }; } &&
 
10943
         { ac_try='test -s conftest.$ac_objext'
 
10944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10945
  (eval $ac_try) 2>&5
 
10946
  ac_status=$?
 
10947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10948
  (exit $ac_status); }; }; then
 
10949
  ac_hi=$ac_mid; break
 
10950
else
 
10951
  echo "$as_me: failed program was:" >&5
 
10952
sed 's/^/| /' conftest.$ac_ext >&5
 
10953
 
 
10954
ac_lo=`expr $ac_mid + 1`
 
10955
                    if test $ac_lo -le $ac_mid; then
 
10956
                      ac_lo= ac_hi=
 
10957
                      break
 
10958
                    fi
 
10959
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10960
fi
 
10961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10962
  done
 
10963
else
 
10964
  echo "$as_me: failed program was:" >&5
 
10965
sed 's/^/| /' conftest.$ac_ext >&5
 
10966
 
 
10967
cat >conftest.$ac_ext <<_ACEOF
 
10968
/* confdefs.h.  */
 
10969
_ACEOF
 
10970
cat confdefs.h >>conftest.$ac_ext
 
10971
cat >>conftest.$ac_ext <<_ACEOF
 
10972
/* end confdefs.h.  */
 
10973
#include <stddef.h>
 
10974
int
 
10975
main ()
 
10976
{
 
10977
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
10978
test_array [0] = 0
 
10979
 
 
10980
  ;
 
10981
  return 0;
 
10982
}
 
10983
_ACEOF
 
10984
rm -f conftest.$ac_objext
 
10985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10986
  (eval $ac_compile) 2>conftest.er1
 
10987
  ac_status=$?
 
10988
  grep -v '^ *+' conftest.er1 >conftest.err
 
10989
  rm -f conftest.er1
 
10990
  cat conftest.err >&5
 
10991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10992
  (exit $ac_status); } &&
 
10993
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10995
  (eval $ac_try) 2>&5
 
10996
  ac_status=$?
 
10997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10998
  (exit $ac_status); }; } &&
 
10999
         { ac_try='test -s conftest.$ac_objext'
 
11000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11001
  (eval $ac_try) 2>&5
 
11002
  ac_status=$?
 
11003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11004
  (exit $ac_status); }; }; then
 
11005
  ac_hi=-1 ac_mid=-1
 
11006
  while :; do
 
11007
    cat >conftest.$ac_ext <<_ACEOF
 
11008
/* confdefs.h.  */
 
11009
_ACEOF
 
11010
cat confdefs.h >>conftest.$ac_ext
 
11011
cat >>conftest.$ac_ext <<_ACEOF
 
11012
/* end confdefs.h.  */
 
11013
#include <stddef.h>
 
11014
int
 
11015
main ()
 
11016
{
 
11017
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
11018
test_array [0] = 0
 
11019
 
 
11020
  ;
 
11021
  return 0;
 
11022
}
 
11023
_ACEOF
 
11024
rm -f conftest.$ac_objext
 
11025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11026
  (eval $ac_compile) 2>conftest.er1
 
11027
  ac_status=$?
 
11028
  grep -v '^ *+' conftest.er1 >conftest.err
 
11029
  rm -f conftest.er1
 
11030
  cat conftest.err >&5
 
11031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11032
  (exit $ac_status); } &&
 
11033
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11035
  (eval $ac_try) 2>&5
 
11036
  ac_status=$?
 
11037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11038
  (exit $ac_status); }; } &&
 
11039
         { ac_try='test -s conftest.$ac_objext'
 
11040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11041
  (eval $ac_try) 2>&5
 
11042
  ac_status=$?
 
11043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11044
  (exit $ac_status); }; }; then
 
11045
  ac_lo=$ac_mid; break
 
11046
else
 
11047
  echo "$as_me: failed program was:" >&5
 
11048
sed 's/^/| /' conftest.$ac_ext >&5
 
11049
 
 
11050
ac_hi=`expr '(' $ac_mid ')' - 1`
 
11051
                       if test $ac_mid -le $ac_hi; then
 
11052
                         ac_lo= ac_hi=
 
11053
                         break
 
11054
                       fi
 
11055
                       ac_mid=`expr 2 '*' $ac_mid`
 
11056
fi
 
11057
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11058
  done
 
11059
else
 
11060
  echo "$as_me: failed program was:" >&5
 
11061
sed 's/^/| /' conftest.$ac_ext >&5
 
11062
 
 
11063
ac_lo= ac_hi=
 
11064
fi
 
11065
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11066
fi
 
11067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11068
# Binary search between lo and hi bounds.
 
11069
while test "x$ac_lo" != "x$ac_hi"; do
 
11070
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
11071
  cat >conftest.$ac_ext <<_ACEOF
 
11072
/* confdefs.h.  */
 
11073
_ACEOF
 
11074
cat confdefs.h >>conftest.$ac_ext
 
11075
cat >>conftest.$ac_ext <<_ACEOF
 
11076
/* end confdefs.h.  */
 
11077
#include <stddef.h>
 
11078
int
 
11079
main ()
 
11080
{
 
11081
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
11082
test_array [0] = 0
 
11083
 
 
11084
  ;
 
11085
  return 0;
 
11086
}
 
11087
_ACEOF
 
11088
rm -f conftest.$ac_objext
 
11089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11090
  (eval $ac_compile) 2>conftest.er1
 
11091
  ac_status=$?
 
11092
  grep -v '^ *+' conftest.er1 >conftest.err
 
11093
  rm -f conftest.er1
 
11094
  cat conftest.err >&5
 
11095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11096
  (exit $ac_status); } &&
 
11097
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11099
  (eval $ac_try) 2>&5
 
11100
  ac_status=$?
 
11101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11102
  (exit $ac_status); }; } &&
 
11103
         { ac_try='test -s conftest.$ac_objext'
 
11104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11105
  (eval $ac_try) 2>&5
 
11106
  ac_status=$?
 
11107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11108
  (exit $ac_status); }; }; then
 
11109
  ac_hi=$ac_mid
 
11110
else
 
11111
  echo "$as_me: failed program was:" >&5
 
11112
sed 's/^/| /' conftest.$ac_ext >&5
 
11113
 
 
11114
ac_lo=`expr '(' $ac_mid ')' + 1`
 
11115
fi
 
11116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11117
done
 
11118
case $ac_lo in
 
11119
?*) fits_in_uint=$ac_lo;;
 
11120
'') result=? ;;
 
11121
esac
 
11122
else
 
11123
  if test "$cross_compiling" = yes; then
 
11124
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
11125
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
11126
   { (exit 1); exit 1; }; }
 
11127
else
 
11128
  cat >conftest.$ac_ext <<_ACEOF
 
11129
/* confdefs.h.  */
 
11130
_ACEOF
 
11131
cat confdefs.h >>conftest.$ac_ext
 
11132
cat >>conftest.$ac_ext <<_ACEOF
 
11133
/* end confdefs.h.  */
 
11134
#include <stddef.h>
 
11135
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
11136
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
11137
#include <stdio.h>
 
11138
#include <stdlib.h>
 
11139
int
 
11140
main ()
 
11141
{
 
11142
 
 
11143
  FILE *f = fopen ("conftest.val", "w");
 
11144
  if (! f)
 
11145
    exit (1);
 
11146
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
11147
    {
 
11148
      long i = longval ();
 
11149
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
11150
        exit (1);
 
11151
      fprintf (f, "%ld\n", i);
 
11152
    }
 
11153
  else
 
11154
    {
 
11155
      unsigned long i = ulongval ();
 
11156
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
11157
        exit (1);
 
11158
      fprintf (f, "%lu\n", i);
 
11159
    }
 
11160
  exit (ferror (f) || fclose (f) != 0);
 
11161
 
 
11162
  ;
 
11163
  return 0;
 
11164
}
 
11165
_ACEOF
 
11166
rm -f conftest$ac_exeext
 
11167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11168
  (eval $ac_link) 2>&5
 
11169
  ac_status=$?
 
11170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11171
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11173
  (eval $ac_try) 2>&5
 
11174
  ac_status=$?
 
11175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11176
  (exit $ac_status); }; }; then
 
11177
  fits_in_uint=`cat conftest.val`
 
11178
else
 
11179
  echo "$as_me: program exited with status $ac_status" >&5
 
11180
echo "$as_me: failed program was:" >&5
 
11181
sed 's/^/| /' conftest.$ac_ext >&5
 
11182
 
 
11183
( exit $ac_status )
 
11184
result=?
 
11185
fi
 
11186
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11187
fi
 
11188
fi
 
11189
rm -f conftest.val
 
11190
    if test "$fits_in_uint" = 1; then
 
11191
                  cat >conftest.$ac_ext <<_ACEOF
 
11192
/* confdefs.h.  */
 
11193
_ACEOF
 
11194
cat confdefs.h >>conftest.$ac_ext
 
11195
cat >>conftest.$ac_ext <<_ACEOF
 
11196
/* end confdefs.h.  */
 
11197
#include <stddef.h>
 
11198
        extern size_t foo;
 
11199
        extern unsigned long foo;
 
11200
 
 
11201
int
 
11202
main ()
 
11203
{
 
11204
 
 
11205
  ;
 
11206
  return 0;
 
11207
}
 
11208
_ACEOF
 
11209
rm -f conftest.$ac_objext
 
11210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11211
  (eval $ac_compile) 2>conftest.er1
 
11212
  ac_status=$?
 
11213
  grep -v '^ *+' conftest.er1 >conftest.err
 
11214
  rm -f conftest.er1
 
11215
  cat conftest.err >&5
 
11216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11217
  (exit $ac_status); } &&
 
11218
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11220
  (eval $ac_try) 2>&5
 
11221
  ac_status=$?
 
11222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11223
  (exit $ac_status); }; } &&
 
11224
         { ac_try='test -s conftest.$ac_objext'
 
11225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11226
  (eval $ac_try) 2>&5
 
11227
  ac_status=$?
 
11228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11229
  (exit $ac_status); }; }; then
 
11230
  fits_in_uint=0
 
11231
else
 
11232
  echo "$as_me: failed program was:" >&5
 
11233
sed 's/^/| /' conftest.$ac_ext >&5
 
11234
 
 
11235
fi
 
11236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11237
    fi
 
11238
    if test -z "$result"; then
 
11239
      if test "$fits_in_uint" = 1; then
 
11240
        result="$res_hi$res_lo"U
 
11241
      else
 
11242
        result="$res_hi$res_lo"UL
 
11243
      fi
 
11244
    else
 
11245
            result='~(size_t)0'
 
11246
    fi
 
11247
  fi
 
11248
  echo "$as_me:$LINENO: result: $result" >&5
 
11249
echo "${ECHO_T}$result" >&6
 
11250
  if test "$result" != yes; then
 
11251
 
 
11252
cat >>confdefs.h <<_ACEOF
 
11253
#define SIZE_MAX $result
 
11254
_ACEOF
 
11255
 
 
11256
  fi
 
11257
 
 
11258
 
 
11259
 
 
11260
 
 
11261
for ac_header in stdint.h
 
11262
do
 
11263
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11264
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11265
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11266
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11267
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11269
fi
 
11270
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11271
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11272
else
 
11273
  # Is the header compilable?
 
11274
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11275
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11276
cat >conftest.$ac_ext <<_ACEOF
 
11277
/* confdefs.h.  */
 
11278
_ACEOF
 
11279
cat confdefs.h >>conftest.$ac_ext
 
11280
cat >>conftest.$ac_ext <<_ACEOF
 
11281
/* end confdefs.h.  */
 
11282
$ac_includes_default
 
11283
#include <$ac_header>
 
11284
_ACEOF
 
11285
rm -f conftest.$ac_objext
 
11286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11287
  (eval $ac_compile) 2>conftest.er1
 
11288
  ac_status=$?
 
11289
  grep -v '^ *+' conftest.er1 >conftest.err
 
11290
  rm -f conftest.er1
 
11291
  cat conftest.err >&5
 
11292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11293
  (exit $ac_status); } &&
 
11294
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11296
  (eval $ac_try) 2>&5
 
11297
  ac_status=$?
 
11298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11299
  (exit $ac_status); }; } &&
 
11300
         { ac_try='test -s conftest.$ac_objext'
 
11301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11302
  (eval $ac_try) 2>&5
 
11303
  ac_status=$?
 
11304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11305
  (exit $ac_status); }; }; then
 
11306
  ac_header_compiler=yes
 
11307
else
 
11308
  echo "$as_me: failed program was:" >&5
 
11309
sed 's/^/| /' conftest.$ac_ext >&5
 
11310
 
 
11311
ac_header_compiler=no
 
11312
fi
 
11313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11314
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11315
echo "${ECHO_T}$ac_header_compiler" >&6
 
11316
 
 
11317
# Is the header present?
 
11318
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11319
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11320
cat >conftest.$ac_ext <<_ACEOF
 
11321
/* confdefs.h.  */
 
11322
_ACEOF
 
11323
cat confdefs.h >>conftest.$ac_ext
 
11324
cat >>conftest.$ac_ext <<_ACEOF
 
11325
/* end confdefs.h.  */
 
11326
#include <$ac_header>
 
11327
_ACEOF
 
11328
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11329
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11330
  ac_status=$?
 
11331
  grep -v '^ *+' conftest.er1 >conftest.err
 
11332
  rm -f conftest.er1
 
11333
  cat conftest.err >&5
 
11334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11335
  (exit $ac_status); } >/dev/null; then
 
11336
  if test -s conftest.err; then
 
11337
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11338
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11339
  else
 
11340
    ac_cpp_err=
 
11341
  fi
 
11342
else
 
11343
  ac_cpp_err=yes
 
11344
fi
 
11345
if test -z "$ac_cpp_err"; then
 
11346
  ac_header_preproc=yes
 
11347
else
 
11348
  echo "$as_me: failed program was:" >&5
 
11349
sed 's/^/| /' conftest.$ac_ext >&5
 
11350
 
 
11351
  ac_header_preproc=no
 
11352
fi
 
11353
rm -f conftest.err conftest.$ac_ext
 
11354
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11355
echo "${ECHO_T}$ac_header_preproc" >&6
 
11356
 
 
11357
# So?  What about this header?
 
11358
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11359
  yes:no: )
 
11360
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11361
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11362
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11363
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11364
    ac_header_preproc=yes
 
11365
    ;;
 
11366
  no:yes:* )
 
11367
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11368
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11369
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11370
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11371
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11372
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11373
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11374
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11375
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11376
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11377
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11378
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11379
    (
 
11380
      cat <<\_ASBOX
 
11381
## ------------------------------------ ##
 
11382
## Report this to gnupg-devel@gnupg.org ##
 
11383
## ------------------------------------ ##
 
11384
_ASBOX
 
11385
    ) |
 
11386
      sed "s/^/$as_me: WARNING:     /" >&2
 
11387
    ;;
 
11388
esac
 
11389
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11393
else
 
11394
  eval "$as_ac_Header=\$ac_header_preproc"
 
11395
fi
 
11396
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11397
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11398
 
 
11399
fi
 
11400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11401
  cat >>confdefs.h <<_ACEOF
 
11402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11403
_ACEOF
 
11404
 
 
11405
fi
 
11406
 
 
11407
done
 
11408
 
 
11409
 
 
11410
 
 
11411
      if test "X$prefix" = "XNONE"; then
 
11412
    acl_final_prefix="$ac_default_prefix"
 
11413
  else
 
11414
    acl_final_prefix="$prefix"
 
11415
  fi
 
11416
  if test "X$exec_prefix" = "XNONE"; then
 
11417
    acl_final_exec_prefix='${prefix}'
 
11418
  else
 
11419
    acl_final_exec_prefix="$exec_prefix"
 
11420
  fi
 
11421
  acl_save_prefix="$prefix"
 
11422
  prefix="$acl_final_prefix"
 
11423
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
11424
  prefix="$acl_save_prefix"
 
11425
 
 
11426
 
 
11427
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11428
if test "${with_gnu_ld+set}" = set; then
 
11429
  withval="$with_gnu_ld"
 
11430
  test "$withval" = no || with_gnu_ld=yes
 
11431
else
 
11432
  with_gnu_ld=no
 
11433
fi;
 
11434
# Prepare PATH_SEPARATOR.
 
11435
# The user is always right.
 
11436
if test "${PATH_SEPARATOR+set}" != set; then
 
11437
  echo "#! /bin/sh" >conf$$.sh
 
11438
  echo  "exit 0"   >>conf$$.sh
 
11439
  chmod +x conf$$.sh
 
11440
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11441
    PATH_SEPARATOR=';'
 
11442
  else
 
11443
    PATH_SEPARATOR=:
 
11444
  fi
 
11445
  rm -f conf$$.sh
 
11446
fi
 
11447
ac_prog=ld
 
11448
if test "$GCC" = yes; then
 
11449
  # Check if gcc -print-prog-name=ld gives a path.
 
11450
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
11451
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
11452
  case $host in
 
11453
  *-*-mingw*)
 
11454
    # gcc leaves a trailing carriage return which upsets mingw
 
11455
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11456
  *)
 
11457
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11458
  esac
 
11459
  case $ac_prog in
 
11460
    # Accept absolute paths.
 
11461
    [\\/]* | [A-Za-z]:[\\/]*)
 
11462
      re_direlt='/[^/][^/]*/\.\./'
 
11463
      # Canonicalize the path of ld
 
11464
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
11465
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11466
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
11467
      done
 
11468
      test -z "$LD" && LD="$ac_prog"
 
11469
      ;;
 
11470
  "")
 
11471
    # If it fails, then pretend we aren't using GCC.
 
11472
    ac_prog=ld
 
11473
    ;;
 
11474
  *)
 
11475
    # If it is relative, then search for the first ld in PATH.
 
11476
    with_gnu_ld=unknown
 
11477
    ;;
 
11478
  esac
 
11479
elif test "$with_gnu_ld" = yes; then
 
11480
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11481
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11482
else
 
11483
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11484
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11485
fi
 
11486
if test "${acl_cv_path_LD+set}" = set; then
 
11487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11488
else
 
11489
  if test -z "$LD"; then
 
11490
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
11491
  for ac_dir in $PATH; do
 
11492
    test -z "$ac_dir" && ac_dir=.
 
11493
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11494
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
11495
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11496
      # but apparently some GNU ld's only accept -v.
 
11497
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11498
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
11499
      *GNU* | *'with BFD'*)
 
11500
        test "$with_gnu_ld" != no && break ;;
 
11501
      *)
 
11502
        test "$with_gnu_ld" != yes && break ;;
 
11503
      esac
 
11504
    fi
 
11505
  done
 
11506
  IFS="$ac_save_ifs"
 
11507
else
 
11508
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
11509
fi
 
11510
fi
 
11511
 
 
11512
LD="$acl_cv_path_LD"
 
11513
if test -n "$LD"; then
 
11514
  echo "$as_me:$LINENO: result: $LD" >&5
 
11515
echo "${ECHO_T}$LD" >&6
 
11516
else
 
11517
  echo "$as_me:$LINENO: result: no" >&5
 
11518
echo "${ECHO_T}no" >&6
 
11519
fi
 
11520
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11521
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11522
   { (exit 1); exit 1; }; }
 
11523
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11524
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11525
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
11526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11527
else
 
11528
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11529
case `$LD -v 2>&1 </dev/null` in
 
11530
*GNU* | *'with BFD'*)
 
11531
  acl_cv_prog_gnu_ld=yes ;;
 
11532
*)
 
11533
  acl_cv_prog_gnu_ld=no ;;
 
11534
esac
 
11535
fi
 
11536
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
11537
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
11538
with_gnu_ld=$acl_cv_prog_gnu_ld
 
11539
 
 
11540
 
 
11541
 
 
11542
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
11543
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
11544
if test "${acl_cv_rpath+set}" = set; then
 
11545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11546
else
 
11547
 
 
11548
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
11549
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
11550
    . ./conftest.sh
 
11551
    rm -f ./conftest.sh
 
11552
    acl_cv_rpath=done
 
11553
 
 
11554
fi
 
11555
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
11556
echo "${ECHO_T}$acl_cv_rpath" >&6
 
11557
  wl="$acl_cv_wl"
 
11558
  libext="$acl_cv_libext"
 
11559
  shlibext="$acl_cv_shlibext"
 
11560
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
11561
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
11562
  hardcode_direct="$acl_cv_hardcode_direct"
 
11563
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
11564
    # Check whether --enable-rpath or --disable-rpath was given.
 
11565
if test "${enable_rpath+set}" = set; then
 
11566
  enableval="$enable_rpath"
 
11567
  :
 
11568
else
 
11569
  enable_rpath=yes
 
11570
fi;
 
11571
 
 
11572
 
 
11573
 
 
11574
 
 
11575
 
 
11576
 
 
11577
 
 
11578
    use_additional=yes
 
11579
 
 
11580
  acl_save_prefix="$prefix"
 
11581
  prefix="$acl_final_prefix"
 
11582
  acl_save_exec_prefix="$exec_prefix"
 
11583
  exec_prefix="$acl_final_exec_prefix"
 
11584
 
 
11585
    eval additional_includedir=\"$includedir\"
 
11586
    eval additional_libdir=\"$libdir\"
 
11587
 
 
11588
  exec_prefix="$acl_save_exec_prefix"
 
11589
  prefix="$acl_save_prefix"
 
11590
 
 
11591
 
 
11592
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
11593
if test "${with_libiconv_prefix+set}" = set; then
 
11594
  withval="$with_libiconv_prefix"
 
11595
 
 
11596
    if test "X$withval" = "Xno"; then
 
11597
      use_additional=no
 
11598
    else
 
11599
      if test "X$withval" = "X"; then
 
11600
 
 
11601
  acl_save_prefix="$prefix"
 
11602
  prefix="$acl_final_prefix"
 
11603
  acl_save_exec_prefix="$exec_prefix"
 
11604
  exec_prefix="$acl_final_exec_prefix"
 
11605
 
 
11606
          eval additional_includedir=\"$includedir\"
 
11607
          eval additional_libdir=\"$libdir\"
 
11608
 
 
11609
  exec_prefix="$acl_save_exec_prefix"
 
11610
  prefix="$acl_save_prefix"
 
11611
 
 
11612
      else
 
11613
        additional_includedir="$withval/include"
 
11614
        additional_libdir="$withval/lib"
 
11615
      fi
 
11616
    fi
 
11617
 
 
11618
fi;
 
11619
      LIBICONV=
 
11620
  LTLIBICONV=
 
11621
  INCICONV=
 
11622
  rpathdirs=
 
11623
  ltrpathdirs=
 
11624
  names_already_handled=
 
11625
  names_next_round='iconv '
 
11626
  while test -n "$names_next_round"; do
 
11627
    names_this_round="$names_next_round"
 
11628
    names_next_round=
 
11629
    for name in $names_this_round; do
 
11630
      already_handled=
 
11631
      for n in $names_already_handled; do
 
11632
        if test "$n" = "$name"; then
 
11633
          already_handled=yes
 
11634
          break
 
11635
        fi
 
11636
      done
 
11637
      if test -z "$already_handled"; then
 
11638
        names_already_handled="$names_already_handled $name"
 
11639
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
11640
        eval value=\"\$HAVE_LIB$uppername\"
 
11641
        if test -n "$value"; then
 
11642
          if test "$value" = yes; then
 
11643
            eval value=\"\$LIB$uppername\"
 
11644
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
11645
            eval value=\"\$LTLIB$uppername\"
 
11646
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
11647
          else
 
11648
                                    :
 
11649
          fi
 
11650
        else
 
11651
                              found_dir=
 
11652
          found_la=
 
11653
          found_so=
 
11654
          found_a=
 
11655
          if test $use_additional = yes; then
 
11656
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
11657
              found_dir="$additional_libdir"
 
11658
              found_so="$additional_libdir/lib$name.$shlibext"
 
11659
              if test -f "$additional_libdir/lib$name.la"; then
 
11660
                found_la="$additional_libdir/lib$name.la"
 
11661
              fi
 
11662
            else
 
11663
              if test -f "$additional_libdir/lib$name.$libext"; then
 
11664
                found_dir="$additional_libdir"
 
11665
                found_a="$additional_libdir/lib$name.$libext"
 
11666
                if test -f "$additional_libdir/lib$name.la"; then
 
11667
                  found_la="$additional_libdir/lib$name.la"
 
11668
                fi
 
11669
              fi
 
11670
            fi
 
11671
          fi
 
11672
          if test "X$found_dir" = "X"; then
 
11673
            for x in $LDFLAGS $LTLIBICONV; do
 
11674
 
 
11675
  acl_save_prefix="$prefix"
 
11676
  prefix="$acl_final_prefix"
 
11677
  acl_save_exec_prefix="$exec_prefix"
 
11678
  exec_prefix="$acl_final_exec_prefix"
 
11679
  eval x=\"$x\"
 
11680
  exec_prefix="$acl_save_exec_prefix"
 
11681
  prefix="$acl_save_prefix"
 
11682
 
 
11683
              case "$x" in
 
11684
                -L*)
 
11685
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
11686
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
11687
                    found_dir="$dir"
 
11688
                    found_so="$dir/lib$name.$shlibext"
 
11689
                    if test -f "$dir/lib$name.la"; then
 
11690
                      found_la="$dir/lib$name.la"
 
11691
                    fi
 
11692
                  else
 
11693
                    if test -f "$dir/lib$name.$libext"; then
 
11694
                      found_dir="$dir"
 
11695
                      found_a="$dir/lib$name.$libext"
 
11696
                      if test -f "$dir/lib$name.la"; then
 
11697
                        found_la="$dir/lib$name.la"
 
11698
                      fi
 
11699
                    fi
 
11700
                  fi
 
11701
                  ;;
 
11702
              esac
 
11703
              if test "X$found_dir" != "X"; then
 
11704
                break
 
11705
              fi
 
11706
            done
 
11707
          fi
 
11708
          if test "X$found_dir" != "X"; then
 
11709
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
11710
            if test "X$found_so" != "X"; then
 
11711
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
11712
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11713
              else
 
11714
                                                                                haveit=
 
11715
                for x in $ltrpathdirs; do
 
11716
                  if test "X$x" = "X$found_dir"; then
 
11717
                    haveit=yes
 
11718
                    break
 
11719
                  fi
 
11720
                done
 
11721
                if test -z "$haveit"; then
 
11722
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
11723
                fi
 
11724
                                if test "$hardcode_direct" = yes; then
 
11725
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11726
                else
 
11727
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
11728
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11729
                                                            haveit=
 
11730
                    for x in $rpathdirs; do
 
11731
                      if test "X$x" = "X$found_dir"; then
 
11732
                        haveit=yes
 
11733
                        break
 
11734
                      fi
 
11735
                    done
 
11736
                    if test -z "$haveit"; then
 
11737
                      rpathdirs="$rpathdirs $found_dir"
 
11738
                    fi
 
11739
                  else
 
11740
                                                                                haveit=
 
11741
                    for x in $LDFLAGS $LIBICONV; do
 
11742
 
 
11743
  acl_save_prefix="$prefix"
 
11744
  prefix="$acl_final_prefix"
 
11745
  acl_save_exec_prefix="$exec_prefix"
 
11746
  exec_prefix="$acl_final_exec_prefix"
 
11747
  eval x=\"$x\"
 
11748
  exec_prefix="$acl_save_exec_prefix"
 
11749
  prefix="$acl_save_prefix"
 
11750
 
 
11751
                      if test "X$x" = "X-L$found_dir"; then
 
11752
                        haveit=yes
 
11753
                        break
 
11754
                      fi
 
11755
                    done
 
11756
                    if test -z "$haveit"; then
 
11757
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
11758
                    fi
 
11759
                    if test "$hardcode_minus_L" != no; then
 
11760
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11761
                    else
 
11762
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
11763
                    fi
 
11764
                  fi
 
11765
                fi
 
11766
              fi
 
11767
            else
 
11768
              if test "X$found_a" != "X"; then
 
11769
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
11770
              else
 
11771
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
11772
              fi
 
11773
            fi
 
11774
                        additional_includedir=
 
11775
            case "$found_dir" in
 
11776
              */lib | */lib/)
 
11777
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
11778
                additional_includedir="$basedir/include"
 
11779
                ;;
 
11780
            esac
 
11781
            if test "X$additional_includedir" != "X"; then
 
11782
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
11783
                haveit=
 
11784
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
11785
                  if test -n "$GCC"; then
 
11786
                    case $host_os in
 
11787
                      linux*) haveit=yes;;
 
11788
                    esac
 
11789
                  fi
 
11790
                fi
 
11791
                if test -z "$haveit"; then
 
11792
                  for x in $CPPFLAGS $INCICONV; do
 
11793
 
 
11794
  acl_save_prefix="$prefix"
 
11795
  prefix="$acl_final_prefix"
 
11796
  acl_save_exec_prefix="$exec_prefix"
 
11797
  exec_prefix="$acl_final_exec_prefix"
 
11798
  eval x=\"$x\"
 
11799
  exec_prefix="$acl_save_exec_prefix"
 
11800
  prefix="$acl_save_prefix"
 
11801
 
 
11802
                    if test "X$x" = "X-I$additional_includedir"; then
 
11803
                      haveit=yes
 
11804
                      break
 
11805
                    fi
 
11806
                  done
 
11807
                  if test -z "$haveit"; then
 
11808
                    if test -d "$additional_includedir"; then
 
11809
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
11810
                    fi
 
11811
                  fi
 
11812
                fi
 
11813
              fi
 
11814
            fi
 
11815
                        if test -n "$found_la"; then
 
11816
                                                        save_libdir="$libdir"
 
11817
              case "$found_la" in
 
11818
                */* | *\\*) . "$found_la" ;;
 
11819
                *) . "./$found_la" ;;
 
11820
              esac
 
11821
              libdir="$save_libdir"
 
11822
                            for dep in $dependency_libs; do
 
11823
                case "$dep" in
 
11824
                  -L*)
 
11825
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
11826
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
11827
                      haveit=
 
11828
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
11829
                        if test -n "$GCC"; then
 
11830
                          case $host_os in
 
11831
                            linux*) haveit=yes;;
 
11832
                          esac
 
11833
                        fi
 
11834
                      fi
 
11835
                      if test -z "$haveit"; then
 
11836
                        haveit=
 
11837
                        for x in $LDFLAGS $LIBICONV; do
 
11838
 
 
11839
  acl_save_prefix="$prefix"
 
11840
  prefix="$acl_final_prefix"
 
11841
  acl_save_exec_prefix="$exec_prefix"
 
11842
  exec_prefix="$acl_final_exec_prefix"
 
11843
  eval x=\"$x\"
 
11844
  exec_prefix="$acl_save_exec_prefix"
 
11845
  prefix="$acl_save_prefix"
 
11846
 
 
11847
                          if test "X$x" = "X-L$additional_libdir"; then
 
11848
                            haveit=yes
 
11849
                            break
 
11850
                          fi
 
11851
                        done
 
11852
                        if test -z "$haveit"; then
 
11853
                          if test -d "$additional_libdir"; then
 
11854
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
11855
                          fi
 
11856
                        fi
 
11857
                        haveit=
 
11858
                        for x in $LDFLAGS $LTLIBICONV; do
 
11859
 
 
11860
  acl_save_prefix="$prefix"
 
11861
  prefix="$acl_final_prefix"
 
11862
  acl_save_exec_prefix="$exec_prefix"
 
11863
  exec_prefix="$acl_final_exec_prefix"
 
11864
  eval x=\"$x\"
 
11865
  exec_prefix="$acl_save_exec_prefix"
 
11866
  prefix="$acl_save_prefix"
 
11867
 
 
11868
                          if test "X$x" = "X-L$additional_libdir"; then
 
11869
                            haveit=yes
 
11870
                            break
 
11871
                          fi
 
11872
                        done
 
11873
                        if test -z "$haveit"; then
 
11874
                          if test -d "$additional_libdir"; then
 
11875
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
11876
                          fi
 
11877
                        fi
 
11878
                      fi
 
11879
                    fi
 
11880
                    ;;
 
11881
                  -R*)
 
11882
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
11883
                    if test "$enable_rpath" != no; then
 
11884
                                                                  haveit=
 
11885
                      for x in $rpathdirs; do
 
11886
                        if test "X$x" = "X$dir"; then
 
11887
                          haveit=yes
 
11888
                          break
 
11889
                        fi
 
11890
                      done
 
11891
                      if test -z "$haveit"; then
 
11892
                        rpathdirs="$rpathdirs $dir"
 
11893
                      fi
 
11894
                                                                  haveit=
 
11895
                      for x in $ltrpathdirs; do
 
11896
                        if test "X$x" = "X$dir"; then
 
11897
                          haveit=yes
 
11898
                          break
 
11899
                        fi
 
11900
                      done
 
11901
                      if test -z "$haveit"; then
 
11902
                        ltrpathdirs="$ltrpathdirs $dir"
 
11903
                      fi
 
11904
                    fi
 
11905
                    ;;
 
11906
                  -l*)
 
11907
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
11908
                    ;;
 
11909
                  *.la)
 
11910
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
11911
                    ;;
 
11912
                  *)
 
11913
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
11914
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
11915
                    ;;
 
11916
                esac
 
11917
              done
 
11918
            fi
 
11919
          else
 
11920
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
11921
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
11922
          fi
 
11923
        fi
 
11924
      fi
 
11925
    done
 
11926
  done
 
11927
  if test "X$rpathdirs" != "X"; then
 
11928
    if test -n "$hardcode_libdir_separator"; then
 
11929
                        alldirs=
 
11930
      for found_dir in $rpathdirs; do
 
11931
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
11932
      done
 
11933
            acl_save_libdir="$libdir"
 
11934
      libdir="$alldirs"
 
11935
      eval flag=\"$hardcode_libdir_flag_spec\"
 
11936
      libdir="$acl_save_libdir"
 
11937
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
11938
    else
 
11939
            for found_dir in $rpathdirs; do
 
11940
        acl_save_libdir="$libdir"
 
11941
        libdir="$found_dir"
 
11942
        eval flag=\"$hardcode_libdir_flag_spec\"
 
11943
        libdir="$acl_save_libdir"
 
11944
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
11945
      done
 
11946
    fi
 
11947
  fi
 
11948
  if test "X$ltrpathdirs" != "X"; then
 
11949
            for found_dir in $ltrpathdirs; do
 
11950
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
11951
    done
 
11952
  fi
 
11953
 
 
11954
 
 
11955
 
 
11956
 
 
11957
 
 
11958
 
 
11959
 
 
11960
 
 
11961
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
11962
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
 
11963
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
11964
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11965
else
 
11966
  cat >conftest.$ac_ext <<_ACEOF
 
11967
/* confdefs.h.  */
 
11968
_ACEOF
 
11969
cat confdefs.h >>conftest.$ac_ext
 
11970
cat >>conftest.$ac_ext <<_ACEOF
 
11971
/* end confdefs.h.  */
 
11972
$ac_includes_default
 
11973
int
 
11974
main ()
 
11975
{
 
11976
if ((ptrdiff_t *) 0)
 
11977
  return 0;
 
11978
if (sizeof (ptrdiff_t))
 
11979
  return 0;
 
11980
  ;
 
11981
  return 0;
 
11982
}
 
11983
_ACEOF
 
11984
rm -f conftest.$ac_objext
 
11985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11986
  (eval $ac_compile) 2>conftest.er1
 
11987
  ac_status=$?
 
11988
  grep -v '^ *+' conftest.er1 >conftest.err
 
11989
  rm -f conftest.er1
 
11990
  cat conftest.err >&5
 
11991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11992
  (exit $ac_status); } &&
 
11993
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11995
  (eval $ac_try) 2>&5
 
11996
  ac_status=$?
 
11997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11998
  (exit $ac_status); }; } &&
 
11999
         { ac_try='test -s conftest.$ac_objext'
 
12000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12001
  (eval $ac_try) 2>&5
 
12002
  ac_status=$?
 
12003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12004
  (exit $ac_status); }; }; then
 
12005
  ac_cv_type_ptrdiff_t=yes
 
12006
else
 
12007
  echo "$as_me: failed program was:" >&5
 
12008
sed 's/^/| /' conftest.$ac_ext >&5
 
12009
 
 
12010
ac_cv_type_ptrdiff_t=no
 
12011
fi
 
12012
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12013
fi
 
12014
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
12015
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
 
12016
if test $ac_cv_type_ptrdiff_t = yes; then
 
12017
  :
 
12018
else
 
12019
 
 
12020
cat >>confdefs.h <<\_ACEOF
 
12021
#define ptrdiff_t long
 
12022
_ACEOF
 
12023
 
 
12024
 
 
12025
fi
 
12026
 
 
12027
 
 
12028
 
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
 
12036
 
 
12037
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
12038
stdlib.h string.h unistd.h sys/param.h
 
12039
do
 
12040
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12041
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12042
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12043
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12044
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12046
fi
 
12047
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12048
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12049
else
 
12050
  # Is the header compilable?
 
12051
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12052
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12053
cat >conftest.$ac_ext <<_ACEOF
 
12054
/* confdefs.h.  */
 
12055
_ACEOF
 
12056
cat confdefs.h >>conftest.$ac_ext
 
12057
cat >>conftest.$ac_ext <<_ACEOF
 
12058
/* end confdefs.h.  */
 
12059
$ac_includes_default
 
12060
#include <$ac_header>
 
12061
_ACEOF
 
12062
rm -f conftest.$ac_objext
 
12063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12064
  (eval $ac_compile) 2>conftest.er1
 
12065
  ac_status=$?
 
12066
  grep -v '^ *+' conftest.er1 >conftest.err
 
12067
  rm -f conftest.er1
 
12068
  cat conftest.err >&5
 
12069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12070
  (exit $ac_status); } &&
 
12071
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12073
  (eval $ac_try) 2>&5
 
12074
  ac_status=$?
 
12075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12076
  (exit $ac_status); }; } &&
 
12077
         { ac_try='test -s conftest.$ac_objext'
 
12078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12079
  (eval $ac_try) 2>&5
 
12080
  ac_status=$?
 
12081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12082
  (exit $ac_status); }; }; then
 
12083
  ac_header_compiler=yes
 
12084
else
 
12085
  echo "$as_me: failed program was:" >&5
 
12086
sed 's/^/| /' conftest.$ac_ext >&5
 
12087
 
 
12088
ac_header_compiler=no
 
12089
fi
 
12090
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12091
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12092
echo "${ECHO_T}$ac_header_compiler" >&6
 
12093
 
 
12094
# Is the header present?
 
12095
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12096
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12097
cat >conftest.$ac_ext <<_ACEOF
 
12098
/* confdefs.h.  */
 
12099
_ACEOF
 
12100
cat confdefs.h >>conftest.$ac_ext
 
12101
cat >>conftest.$ac_ext <<_ACEOF
 
12102
/* end confdefs.h.  */
 
12103
#include <$ac_header>
 
12104
_ACEOF
 
12105
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12106
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12107
  ac_status=$?
 
12108
  grep -v '^ *+' conftest.er1 >conftest.err
 
12109
  rm -f conftest.er1
 
12110
  cat conftest.err >&5
 
12111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12112
  (exit $ac_status); } >/dev/null; then
 
12113
  if test -s conftest.err; then
 
12114
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12115
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12116
  else
 
12117
    ac_cpp_err=
 
12118
  fi
 
12119
else
 
12120
  ac_cpp_err=yes
 
12121
fi
 
12122
if test -z "$ac_cpp_err"; then
 
12123
  ac_header_preproc=yes
 
12124
else
 
12125
  echo "$as_me: failed program was:" >&5
 
12126
sed 's/^/| /' conftest.$ac_ext >&5
 
12127
 
 
12128
  ac_header_preproc=no
 
12129
fi
 
12130
rm -f conftest.err conftest.$ac_ext
 
12131
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12132
echo "${ECHO_T}$ac_header_preproc" >&6
 
12133
 
 
12134
# So?  What about this header?
 
12135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12136
  yes:no: )
 
12137
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12138
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12139
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12140
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12141
    ac_header_preproc=yes
 
12142
    ;;
 
12143
  no:yes:* )
 
12144
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12145
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12146
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12147
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12148
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12149
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12150
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12151
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12152
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12153
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12154
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12155
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12156
    (
 
12157
      cat <<\_ASBOX
 
12158
## ------------------------------------ ##
 
12159
## Report this to gnupg-devel@gnupg.org ##
 
12160
## ------------------------------------ ##
 
12161
_ASBOX
 
12162
    ) |
 
12163
      sed "s/^/$as_me: WARNING:     /" >&2
 
12164
    ;;
 
12165
esac
 
12166
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12167
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12168
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12170
else
 
12171
  eval "$as_ac_Header=\$ac_header_preproc"
 
12172
fi
 
12173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12175
 
 
12176
fi
 
12177
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12178
  cat >>confdefs.h <<_ACEOF
 
12179
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12180
_ACEOF
 
12181
 
 
12182
fi
 
12183
 
 
12184
done
 
12185
 
 
12186
 
 
12187
 
 
12188
 
 
12189
 
 
12190
 
 
12191
 
 
12192
 
 
12193
 
 
12194
 
 
12195
 
 
12196
 
 
12197
 
 
12198
 
 
12199
 
 
12200
 
 
12201
 
 
12202
 
 
12203
 
 
12204
 
 
12205
 
 
12206
 
 
12207
 
 
12208
 
 
12209
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
 
12210
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
 
12211
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
 
12212
__fsetlocking
 
12213
do
 
12214
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12215
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12216
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12217
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12219
else
 
12220
  cat >conftest.$ac_ext <<_ACEOF
 
12221
/* confdefs.h.  */
 
12222
_ACEOF
 
12223
cat confdefs.h >>conftest.$ac_ext
 
12224
cat >>conftest.$ac_ext <<_ACEOF
 
12225
/* end confdefs.h.  */
 
12226
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12227
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12228
#define $ac_func innocuous_$ac_func
 
12229
 
 
12230
/* System header to define __stub macros and hopefully few prototypes,
 
12231
    which can conflict with char $ac_func (); below.
 
12232
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12233
    <limits.h> exists even on freestanding compilers.  */
 
12234
 
 
12235
#ifdef __STDC__
 
12236
# include <limits.h>
 
12237
#else
 
12238
# include <assert.h>
 
12239
#endif
 
12240
 
 
12241
#undef $ac_func
 
12242
 
 
12243
/* Override any gcc2 internal prototype to avoid an error.  */
 
12244
#ifdef __cplusplus
 
12245
extern "C"
 
12246
{
 
12247
#endif
 
12248
/* We use char because int might match the return type of a gcc2
 
12249
   builtin and then its argument prototype would still apply.  */
 
12250
char $ac_func ();
 
12251
/* The GNU C library defines this for functions which it implements
 
12252
    to always fail with ENOSYS.  Some functions are actually named
 
12253
    something starting with __ and the normal name is an alias.  */
 
12254
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12255
choke me
 
12256
#else
 
12257
char (*f) () = $ac_func;
 
12258
#endif
 
12259
#ifdef __cplusplus
 
12260
}
 
12261
#endif
 
12262
 
 
12263
int
 
12264
main ()
 
12265
{
 
12266
return f != $ac_func;
 
12267
  ;
 
12268
  return 0;
 
12269
}
 
12270
_ACEOF
 
12271
rm -f conftest.$ac_objext conftest$ac_exeext
 
12272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12273
  (eval $ac_link) 2>conftest.er1
 
12274
  ac_status=$?
 
12275
  grep -v '^ *+' conftest.er1 >conftest.err
 
12276
  rm -f conftest.er1
 
12277
  cat conftest.err >&5
 
12278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12279
  (exit $ac_status); } &&
 
12280
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12282
  (eval $ac_try) 2>&5
 
12283
  ac_status=$?
 
12284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12285
  (exit $ac_status); }; } &&
 
12286
         { ac_try='test -s conftest$ac_exeext'
 
12287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12288
  (eval $ac_try) 2>&5
 
12289
  ac_status=$?
 
12290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12291
  (exit $ac_status); }; }; then
 
12292
  eval "$as_ac_var=yes"
 
12293
else
 
12294
  echo "$as_me: failed program was:" >&5
 
12295
sed 's/^/| /' conftest.$ac_ext >&5
 
12296
 
 
12297
eval "$as_ac_var=no"
 
12298
fi
 
12299
rm -f conftest.err conftest.$ac_objext \
 
12300
      conftest$ac_exeext conftest.$ac_ext
 
12301
fi
 
12302
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12303
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12304
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12305
  cat >>confdefs.h <<_ACEOF
 
12306
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12307
_ACEOF
 
12308
 
 
12309
fi
 
12310
done
 
12311
 
 
12312
 
 
12313
 
 
12314
  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
12315
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
 
12316
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
12317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12318
else
 
12319
  cat >conftest.$ac_ext <<_ACEOF
 
12320
/* confdefs.h.  */
 
12321
_ACEOF
 
12322
cat confdefs.h >>conftest.$ac_ext
 
12323
cat >>conftest.$ac_ext <<_ACEOF
 
12324
/* end confdefs.h.  */
 
12325
#include <stdio.h>
 
12326
int
 
12327
main ()
 
12328
{
 
12329
 
 
12330
#ifndef _snprintf
 
12331
  char *p = (char *) _snprintf;
 
12332
#endif
 
12333
 
 
12334
  ;
 
12335
  return 0;
 
12336
}
 
12337
_ACEOF
 
12338
rm -f conftest.$ac_objext
 
12339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12340
  (eval $ac_compile) 2>conftest.er1
 
12341
  ac_status=$?
 
12342
  grep -v '^ *+' conftest.er1 >conftest.err
 
12343
  rm -f conftest.er1
 
12344
  cat conftest.err >&5
 
12345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12346
  (exit $ac_status); } &&
 
12347
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12349
  (eval $ac_try) 2>&5
 
12350
  ac_status=$?
 
12351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12352
  (exit $ac_status); }; } &&
 
12353
         { ac_try='test -s conftest.$ac_objext'
 
12354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12355
  (eval $ac_try) 2>&5
 
12356
  ac_status=$?
 
12357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12358
  (exit $ac_status); }; }; then
 
12359
  ac_cv_have_decl__snprintf=yes
 
12360
else
 
12361
  echo "$as_me: failed program was:" >&5
 
12362
sed 's/^/| /' conftest.$ac_ext >&5
 
12363
 
 
12364
ac_cv_have_decl__snprintf=no
 
12365
fi
 
12366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12367
fi
 
12368
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
12369
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
 
12370
  if test $ac_cv_have_decl__snprintf = yes; then
 
12371
    gt_value=1
 
12372
  else
 
12373
    gt_value=0
 
12374
  fi
 
12375
 
 
12376
cat >>confdefs.h <<_ACEOF
 
12377
#define HAVE_DECL__SNPRINTF $gt_value
 
12378
_ACEOF
 
12379
 
 
12380
 
 
12381
 
 
12382
  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
12383
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
 
12384
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
12385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12386
else
 
12387
  cat >conftest.$ac_ext <<_ACEOF
 
12388
/* confdefs.h.  */
 
12389
_ACEOF
 
12390
cat confdefs.h >>conftest.$ac_ext
 
12391
cat >>conftest.$ac_ext <<_ACEOF
 
12392
/* end confdefs.h.  */
 
12393
#include <stdio.h>
 
12394
int
 
12395
main ()
 
12396
{
 
12397
 
 
12398
#ifndef _snwprintf
 
12399
  char *p = (char *) _snwprintf;
 
12400
#endif
 
12401
 
 
12402
  ;
 
12403
  return 0;
 
12404
}
 
12405
_ACEOF
 
12406
rm -f conftest.$ac_objext
 
12407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12408
  (eval $ac_compile) 2>conftest.er1
 
12409
  ac_status=$?
 
12410
  grep -v '^ *+' conftest.er1 >conftest.err
 
12411
  rm -f conftest.er1
 
12412
  cat conftest.err >&5
 
12413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12414
  (exit $ac_status); } &&
 
12415
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12417
  (eval $ac_try) 2>&5
 
12418
  ac_status=$?
 
12419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12420
  (exit $ac_status); }; } &&
 
12421
         { ac_try='test -s conftest.$ac_objext'
 
12422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12423
  (eval $ac_try) 2>&5
 
12424
  ac_status=$?
 
12425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12426
  (exit $ac_status); }; }; then
 
12427
  ac_cv_have_decl__snwprintf=yes
 
12428
else
 
12429
  echo "$as_me: failed program was:" >&5
 
12430
sed 's/^/| /' conftest.$ac_ext >&5
 
12431
 
 
12432
ac_cv_have_decl__snwprintf=no
 
12433
fi
 
12434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12435
fi
 
12436
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
12437
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
 
12438
  if test $ac_cv_have_decl__snwprintf = yes; then
 
12439
    gt_value=1
 
12440
  else
 
12441
    gt_value=0
 
12442
  fi
 
12443
 
 
12444
cat >>confdefs.h <<_ACEOF
 
12445
#define HAVE_DECL__SNWPRINTF $gt_value
 
12446
_ACEOF
 
12447
 
 
12448
 
 
12449
 
 
12450
 
 
12451
  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
12452
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
 
12453
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
12454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12455
else
 
12456
  cat >conftest.$ac_ext <<_ACEOF
 
12457
/* confdefs.h.  */
 
12458
_ACEOF
 
12459
cat confdefs.h >>conftest.$ac_ext
 
12460
cat >>conftest.$ac_ext <<_ACEOF
 
12461
/* end confdefs.h.  */
 
12462
#include <stdio.h>
 
12463
int
 
12464
main ()
 
12465
{
 
12466
 
 
12467
#ifndef feof_unlocked
 
12468
  char *p = (char *) feof_unlocked;
 
12469
#endif
 
12470
 
 
12471
  ;
 
12472
  return 0;
 
12473
}
 
12474
_ACEOF
 
12475
rm -f conftest.$ac_objext
 
12476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12477
  (eval $ac_compile) 2>conftest.er1
 
12478
  ac_status=$?
 
12479
  grep -v '^ *+' conftest.er1 >conftest.err
 
12480
  rm -f conftest.er1
 
12481
  cat conftest.err >&5
 
12482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12483
  (exit $ac_status); } &&
 
12484
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12486
  (eval $ac_try) 2>&5
 
12487
  ac_status=$?
 
12488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12489
  (exit $ac_status); }; } &&
 
12490
         { ac_try='test -s conftest.$ac_objext'
 
12491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12492
  (eval $ac_try) 2>&5
 
12493
  ac_status=$?
 
12494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12495
  (exit $ac_status); }; }; then
 
12496
  ac_cv_have_decl_feof_unlocked=yes
 
12497
else
 
12498
  echo "$as_me: failed program was:" >&5
 
12499
sed 's/^/| /' conftest.$ac_ext >&5
 
12500
 
 
12501
ac_cv_have_decl_feof_unlocked=no
 
12502
fi
 
12503
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12504
fi
 
12505
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
12506
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
 
12507
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
12508
    gt_value=1
 
12509
  else
 
12510
    gt_value=0
 
12511
  fi
 
12512
 
 
12513
cat >>confdefs.h <<_ACEOF
 
12514
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
12515
_ACEOF
 
12516
 
 
12517
 
 
12518
 
 
12519
  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
12520
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
 
12521
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
12522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12523
else
 
12524
  cat >conftest.$ac_ext <<_ACEOF
 
12525
/* confdefs.h.  */
 
12526
_ACEOF
 
12527
cat confdefs.h >>conftest.$ac_ext
 
12528
cat >>conftest.$ac_ext <<_ACEOF
 
12529
/* end confdefs.h.  */
 
12530
#include <stdio.h>
 
12531
int
 
12532
main ()
 
12533
{
 
12534
 
 
12535
#ifndef fgets_unlocked
 
12536
  char *p = (char *) fgets_unlocked;
 
12537
#endif
 
12538
 
 
12539
  ;
 
12540
  return 0;
 
12541
}
 
12542
_ACEOF
 
12543
rm -f conftest.$ac_objext
 
12544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12545
  (eval $ac_compile) 2>conftest.er1
 
12546
  ac_status=$?
 
12547
  grep -v '^ *+' conftest.er1 >conftest.err
 
12548
  rm -f conftest.er1
 
12549
  cat conftest.err >&5
 
12550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12551
  (exit $ac_status); } &&
 
12552
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12554
  (eval $ac_try) 2>&5
 
12555
  ac_status=$?
 
12556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12557
  (exit $ac_status); }; } &&
 
12558
         { ac_try='test -s conftest.$ac_objext'
 
12559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12560
  (eval $ac_try) 2>&5
 
12561
  ac_status=$?
 
12562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12563
  (exit $ac_status); }; }; then
 
12564
  ac_cv_have_decl_fgets_unlocked=yes
 
12565
else
 
12566
  echo "$as_me: failed program was:" >&5
 
12567
sed 's/^/| /' conftest.$ac_ext >&5
 
12568
 
 
12569
ac_cv_have_decl_fgets_unlocked=no
 
12570
fi
 
12571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12572
fi
 
12573
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
12574
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
 
12575
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
12576
    gt_value=1
 
12577
  else
 
12578
    gt_value=0
 
12579
  fi
 
12580
 
 
12581
cat >>confdefs.h <<_ACEOF
 
12582
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
12583
_ACEOF
 
12584
 
 
12585
 
 
12586
 
 
12587
  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
12588
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
 
12589
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
12590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12591
else
 
12592
  cat >conftest.$ac_ext <<_ACEOF
 
12593
/* confdefs.h.  */
 
12594
_ACEOF
 
12595
cat confdefs.h >>conftest.$ac_ext
 
12596
cat >>conftest.$ac_ext <<_ACEOF
 
12597
/* end confdefs.h.  */
 
12598
#include <stdio.h>
 
12599
int
 
12600
main ()
 
12601
{
 
12602
 
 
12603
#ifndef getc_unlocked
 
12604
  char *p = (char *) getc_unlocked;
 
12605
#endif
 
12606
 
 
12607
  ;
 
12608
  return 0;
 
12609
}
 
12610
_ACEOF
 
12611
rm -f conftest.$ac_objext
 
12612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12613
  (eval $ac_compile) 2>conftest.er1
 
12614
  ac_status=$?
 
12615
  grep -v '^ *+' conftest.er1 >conftest.err
 
12616
  rm -f conftest.er1
 
12617
  cat conftest.err >&5
 
12618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12619
  (exit $ac_status); } &&
 
12620
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12622
  (eval $ac_try) 2>&5
 
12623
  ac_status=$?
 
12624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12625
  (exit $ac_status); }; } &&
 
12626
         { ac_try='test -s conftest.$ac_objext'
 
12627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12628
  (eval $ac_try) 2>&5
 
12629
  ac_status=$?
 
12630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12631
  (exit $ac_status); }; }; then
 
12632
  ac_cv_have_decl_getc_unlocked=yes
 
12633
else
 
12634
  echo "$as_me: failed program was:" >&5
 
12635
sed 's/^/| /' conftest.$ac_ext >&5
 
12636
 
 
12637
ac_cv_have_decl_getc_unlocked=no
 
12638
fi
 
12639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12640
fi
 
12641
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
12642
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
 
12643
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
12644
    gt_value=1
 
12645
  else
 
12646
    gt_value=0
 
12647
  fi
 
12648
 
 
12649
cat >>confdefs.h <<_ACEOF
 
12650
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
12651
_ACEOF
 
12652
 
 
12653
 
 
12654
 
 
12655
  case $gt_cv_func_printf_posix in
 
12656
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
12657
    *) HAVE_POSIX_PRINTF=0 ;;
 
12658
  esac
 
12659
 
 
12660
  if test "$ac_cv_func_asprintf" = yes; then
 
12661
    HAVE_ASPRINTF=1
 
12662
  else
 
12663
    HAVE_ASPRINTF=0
 
12664
  fi
 
12665
 
 
12666
  if test "$ac_cv_func_snprintf" = yes; then
 
12667
    HAVE_SNPRINTF=1
 
12668
  else
 
12669
    HAVE_SNPRINTF=0
 
12670
  fi
 
12671
 
 
12672
  if test "$ac_cv_func_wprintf" = yes; then
 
12673
    HAVE_WPRINTF=1
 
12674
  else
 
12675
    HAVE_WPRINTF=0
 
12676
  fi
 
12677
 
 
12678
 
 
12679
 
 
12680
 
 
12681
 
 
12682
 
 
12683
 
 
12684
          am_save_CPPFLAGS="$CPPFLAGS"
 
12685
 
 
12686
  for element in $INCICONV; do
 
12687
    haveit=
 
12688
    for x in $CPPFLAGS; do
 
12689
 
 
12690
  acl_save_prefix="$prefix"
 
12691
  prefix="$acl_final_prefix"
 
12692
  acl_save_exec_prefix="$exec_prefix"
 
12693
  exec_prefix="$acl_final_exec_prefix"
 
12694
  eval x=\"$x\"
 
12695
  exec_prefix="$acl_save_exec_prefix"
 
12696
  prefix="$acl_save_prefix"
 
12697
 
 
12698
      if test "X$x" = "X$element"; then
 
12699
        haveit=yes
 
12700
        break
 
12701
      fi
 
12702
    done
 
12703
    if test -z "$haveit"; then
 
12704
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
12705
    fi
 
12706
  done
 
12707
 
 
12708
 
 
12709
  echo "$as_me:$LINENO: checking for iconv" >&5
 
12710
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
12711
if test "${am_cv_func_iconv+set}" = set; then
 
12712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12713
else
 
12714
 
 
12715
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
12716
    am_cv_lib_iconv=no
 
12717
    cat >conftest.$ac_ext <<_ACEOF
 
12718
/* confdefs.h.  */
 
12719
_ACEOF
 
12720
cat confdefs.h >>conftest.$ac_ext
 
12721
cat >>conftest.$ac_ext <<_ACEOF
 
12722
/* end confdefs.h.  */
 
12723
#include <stdlib.h>
 
12724
#include <iconv.h>
 
12725
int
 
12726
main ()
 
12727
{
 
12728
iconv_t cd = iconv_open("","");
 
12729
       iconv(cd,NULL,NULL,NULL,NULL);
 
12730
       iconv_close(cd);
 
12731
  ;
 
12732
  return 0;
 
12733
}
 
12734
_ACEOF
 
12735
rm -f conftest.$ac_objext conftest$ac_exeext
 
12736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12737
  (eval $ac_link) 2>conftest.er1
 
12738
  ac_status=$?
 
12739
  grep -v '^ *+' conftest.er1 >conftest.err
 
12740
  rm -f conftest.er1
 
12741
  cat conftest.err >&5
 
12742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12743
  (exit $ac_status); } &&
 
12744
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12746
  (eval $ac_try) 2>&5
 
12747
  ac_status=$?
 
12748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12749
  (exit $ac_status); }; } &&
 
12750
         { ac_try='test -s conftest$ac_exeext'
 
12751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12752
  (eval $ac_try) 2>&5
 
12753
  ac_status=$?
 
12754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12755
  (exit $ac_status); }; }; then
 
12756
  am_cv_func_iconv=yes
 
12757
else
 
12758
  echo "$as_me: failed program was:" >&5
 
12759
sed 's/^/| /' conftest.$ac_ext >&5
 
12760
 
 
12761
fi
 
12762
rm -f conftest.err conftest.$ac_objext \
 
12763
      conftest$ac_exeext conftest.$ac_ext
 
12764
    if test "$am_cv_func_iconv" != yes; then
 
12765
      am_save_LIBS="$LIBS"
 
12766
      LIBS="$LIBS $LIBICONV"
 
12767
      cat >conftest.$ac_ext <<_ACEOF
 
12768
/* confdefs.h.  */
 
12769
_ACEOF
 
12770
cat confdefs.h >>conftest.$ac_ext
 
12771
cat >>conftest.$ac_ext <<_ACEOF
 
12772
/* end confdefs.h.  */
 
12773
#include <stdlib.h>
 
12774
#include <iconv.h>
 
12775
int
 
12776
main ()
 
12777
{
 
12778
iconv_t cd = iconv_open("","");
 
12779
         iconv(cd,NULL,NULL,NULL,NULL);
 
12780
         iconv_close(cd);
 
12781
  ;
 
12782
  return 0;
 
12783
}
 
12784
_ACEOF
 
12785
rm -f conftest.$ac_objext conftest$ac_exeext
 
12786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12787
  (eval $ac_link) 2>conftest.er1
 
12788
  ac_status=$?
 
12789
  grep -v '^ *+' conftest.er1 >conftest.err
 
12790
  rm -f conftest.er1
 
12791
  cat conftest.err >&5
 
12792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12793
  (exit $ac_status); } &&
 
12794
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12796
  (eval $ac_try) 2>&5
 
12797
  ac_status=$?
 
12798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12799
  (exit $ac_status); }; } &&
 
12800
         { ac_try='test -s conftest$ac_exeext'
 
12801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12802
  (eval $ac_try) 2>&5
 
12803
  ac_status=$?
 
12804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12805
  (exit $ac_status); }; }; then
 
12806
  am_cv_lib_iconv=yes
 
12807
        am_cv_func_iconv=yes
 
12808
else
 
12809
  echo "$as_me: failed program was:" >&5
 
12810
sed 's/^/| /' conftest.$ac_ext >&5
 
12811
 
 
12812
fi
 
12813
rm -f conftest.err conftest.$ac_objext \
 
12814
      conftest$ac_exeext conftest.$ac_ext
 
12815
      LIBS="$am_save_LIBS"
 
12816
    fi
 
12817
 
 
12818
fi
 
12819
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
12820
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
12821
  if test "$am_cv_func_iconv" = yes; then
 
12822
 
 
12823
cat >>confdefs.h <<\_ACEOF
 
12824
#define HAVE_ICONV 1
 
12825
_ACEOF
 
12826
 
 
12827
  fi
 
12828
  if test "$am_cv_lib_iconv" = yes; then
 
12829
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
12830
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
12831
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
12832
echo "${ECHO_T}$LIBICONV" >&6
 
12833
  else
 
12834
            CPPFLAGS="$am_save_CPPFLAGS"
 
12835
    LIBICONV=
 
12836
    LTLIBICONV=
 
12837
  fi
 
12838
 
 
12839
 
 
12840
 
 
12841
  if test "$am_cv_func_iconv" = yes; then
 
12842
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
12843
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
12844
    if test "${am_cv_proto_iconv+set}" = set; then
 
12845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12846
else
 
12847
 
 
12848
      cat >conftest.$ac_ext <<_ACEOF
 
12849
/* confdefs.h.  */
 
12850
_ACEOF
 
12851
cat confdefs.h >>conftest.$ac_ext
 
12852
cat >>conftest.$ac_ext <<_ACEOF
 
12853
/* end confdefs.h.  */
 
12854
 
 
12855
#include <stdlib.h>
 
12856
#include <iconv.h>
 
12857
extern
 
12858
#ifdef __cplusplus
 
12859
"C"
 
12860
#endif
 
12861
#if defined(__STDC__) || defined(__cplusplus)
 
12862
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
12863
#else
 
12864
size_t iconv();
 
12865
#endif
 
12866
 
 
12867
int
 
12868
main ()
 
12869
{
 
12870
 
 
12871
  ;
 
12872
  return 0;
 
12873
}
 
12874
_ACEOF
 
12875
rm -f conftest.$ac_objext
 
12876
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12877
  (eval $ac_compile) 2>conftest.er1
 
12878
  ac_status=$?
 
12879
  grep -v '^ *+' conftest.er1 >conftest.err
 
12880
  rm -f conftest.er1
 
12881
  cat conftest.err >&5
 
12882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12883
  (exit $ac_status); } &&
 
12884
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12886
  (eval $ac_try) 2>&5
 
12887
  ac_status=$?
 
12888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12889
  (exit $ac_status); }; } &&
 
12890
         { ac_try='test -s conftest.$ac_objext'
 
12891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12892
  (eval $ac_try) 2>&5
 
12893
  ac_status=$?
 
12894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12895
  (exit $ac_status); }; }; then
 
12896
  am_cv_proto_iconv_arg1=""
 
12897
else
 
12898
  echo "$as_me: failed program was:" >&5
 
12899
sed 's/^/| /' conftest.$ac_ext >&5
 
12900
 
 
12901
am_cv_proto_iconv_arg1="const"
 
12902
fi
 
12903
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12904
      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);"
 
12905
fi
 
12906
 
 
12907
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
12908
    echo "$as_me:$LINENO: result: ${ac_t:-
 
12909
         }$am_cv_proto_iconv" >&5
 
12910
echo "${ECHO_T}${ac_t:-
 
12911
         }$am_cv_proto_iconv" >&6
 
12912
 
 
12913
cat >>confdefs.h <<_ACEOF
 
12914
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
12915
_ACEOF
 
12916
 
 
12917
  fi
 
12918
 
 
12919
 
 
12920
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
12921
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
 
12922
if test "${am_cv_langinfo_codeset+set}" = set; then
 
12923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12924
else
 
12925
  cat >conftest.$ac_ext <<_ACEOF
 
12926
/* confdefs.h.  */
 
12927
_ACEOF
 
12928
cat confdefs.h >>conftest.$ac_ext
 
12929
cat >>conftest.$ac_ext <<_ACEOF
 
12930
/* end confdefs.h.  */
 
12931
#include <langinfo.h>
 
12932
int
 
12933
main ()
 
12934
{
 
12935
char* cs = nl_langinfo(CODESET);
 
12936
  ;
 
12937
  return 0;
 
12938
}
 
12939
_ACEOF
 
12940
rm -f conftest.$ac_objext conftest$ac_exeext
 
12941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12942
  (eval $ac_link) 2>conftest.er1
 
12943
  ac_status=$?
 
12944
  grep -v '^ *+' conftest.er1 >conftest.err
 
12945
  rm -f conftest.er1
 
12946
  cat conftest.err >&5
 
12947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12948
  (exit $ac_status); } &&
 
12949
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12951
  (eval $ac_try) 2>&5
 
12952
  ac_status=$?
 
12953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12954
  (exit $ac_status); }; } &&
 
12955
         { ac_try='test -s conftest$ac_exeext'
 
12956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12957
  (eval $ac_try) 2>&5
 
12958
  ac_status=$?
 
12959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12960
  (exit $ac_status); }; }; then
 
12961
  am_cv_langinfo_codeset=yes
 
12962
else
 
12963
  echo "$as_me: failed program was:" >&5
 
12964
sed 's/^/| /' conftest.$ac_ext >&5
 
12965
 
 
12966
am_cv_langinfo_codeset=no
 
12967
fi
 
12968
rm -f conftest.err conftest.$ac_objext \
 
12969
      conftest$ac_exeext conftest.$ac_ext
 
12970
 
 
12971
fi
 
12972
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
12973
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
 
12974
  if test $am_cv_langinfo_codeset = yes; then
 
12975
 
 
12976
cat >>confdefs.h <<\_ACEOF
 
12977
#define HAVE_LANGINFO_CODESET 1
 
12978
_ACEOF
 
12979
 
 
12980
  fi
 
12981
 
 
12982
  if test $ac_cv_header_locale_h = yes; then
 
12983
 
 
12984
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
12985
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
12986
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
12987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12988
else
 
12989
  cat >conftest.$ac_ext <<_ACEOF
 
12990
/* confdefs.h.  */
 
12991
_ACEOF
 
12992
cat confdefs.h >>conftest.$ac_ext
 
12993
cat >>conftest.$ac_ext <<_ACEOF
 
12994
/* end confdefs.h.  */
 
12995
#include <locale.h>
 
12996
int
 
12997
main ()
 
12998
{
 
12999
return LC_MESSAGES
 
13000
  ;
 
13001
  return 0;
 
13002
}
 
13003
_ACEOF
 
13004
rm -f conftest.$ac_objext conftest$ac_exeext
 
13005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13006
  (eval $ac_link) 2>conftest.er1
 
13007
  ac_status=$?
 
13008
  grep -v '^ *+' conftest.er1 >conftest.err
 
13009
  rm -f conftest.er1
 
13010
  cat conftest.err >&5
 
13011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13012
  (exit $ac_status); } &&
 
13013
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13015
  (eval $ac_try) 2>&5
 
13016
  ac_status=$?
 
13017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13018
  (exit $ac_status); }; } &&
 
13019
         { ac_try='test -s conftest$ac_exeext'
 
13020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13021
  (eval $ac_try) 2>&5
 
13022
  ac_status=$?
 
13023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13024
  (exit $ac_status); }; }; then
 
13025
  am_cv_val_LC_MESSAGES=yes
 
13026
else
 
13027
  echo "$as_me: failed program was:" >&5
 
13028
sed 's/^/| /' conftest.$ac_ext >&5
 
13029
 
 
13030
am_cv_val_LC_MESSAGES=no
 
13031
fi
 
13032
rm -f conftest.err conftest.$ac_objext \
 
13033
      conftest$ac_exeext conftest.$ac_ext
 
13034
fi
 
13035
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
13036
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
 
13037
  if test $am_cv_val_LC_MESSAGES = yes; then
 
13038
 
 
13039
cat >>confdefs.h <<\_ACEOF
 
13040
#define HAVE_LC_MESSAGES 1
 
13041
_ACEOF
 
13042
 
 
13043
  fi
 
13044
 
 
13045
  fi
 
13046
 
 
13047
                      for ac_prog in bison
 
13048
do
 
13049
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13050
set dummy $ac_prog; ac_word=$2
 
13051
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13053
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
13054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13055
else
 
13056
  if test -n "$INTLBISON"; then
 
13057
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
13058
else
 
13059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13060
for as_dir in $PATH
 
13061
do
 
13062
  IFS=$as_save_IFS
 
13063
  test -z "$as_dir" && as_dir=.
 
13064
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13065
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13066
    ac_cv_prog_INTLBISON="$ac_prog"
 
13067
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13068
    break 2
 
13069
  fi
 
13070
done
 
13071
done
 
13072
 
 
13073
fi
 
13074
fi
 
13075
INTLBISON=$ac_cv_prog_INTLBISON
 
13076
if test -n "$INTLBISON"; then
 
13077
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
13078
echo "${ECHO_T}$INTLBISON" >&6
 
13079
else
 
13080
  echo "$as_me:$LINENO: result: no" >&5
 
13081
echo "${ECHO_T}no" >&6
 
13082
fi
 
13083
 
 
13084
  test -n "$INTLBISON" && break
 
13085
done
 
13086
 
 
13087
  if test -z "$INTLBISON"; then
 
13088
    ac_verc_fail=yes
 
13089
  else
 
13090
        echo "$as_me:$LINENO: checking version of bison" >&5
 
13091
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
 
13092
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
13093
    case $ac_prog_version in
 
13094
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
13095
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
13096
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
13097
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
13098
    esac
 
13099
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
13100
echo "${ECHO_T}$ac_prog_version" >&6
 
13101
  fi
 
13102
  if test $ac_verc_fail = yes; then
 
13103
    INTLBISON=:
 
13104
  fi
 
13105
 
 
13106
 
 
13107
 
 
13108
 
 
13109
 
 
13110
 
 
13111
 
 
13112
 
 
13113
 
 
13114
 
 
13115
 
 
13116
 
 
13117
 
 
13118
 
 
13119
 
 
13120
 
 
13121
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
13122
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
13123
    # Check whether --enable-nls or --disable-nls was given.
 
13124
if test "${enable_nls+set}" = set; then
 
13125
  enableval="$enable_nls"
 
13126
  USE_NLS=$enableval
 
13127
else
 
13128
  USE_NLS=yes
 
13129
fi;
 
13130
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
13131
echo "${ECHO_T}$USE_NLS" >&6
 
13132
 
 
13133
 
 
13134
 
 
13135
 
 
13136
    BUILD_INCLUDED_LIBINTL=no
 
13137
    USE_INCLUDED_LIBINTL=no
 
13138
 
 
13139
  LIBINTL=
 
13140
  LTLIBINTL=
 
13141
  POSUB=
 
13142
 
 
13143
    if test "$USE_NLS" = "yes"; then
 
13144
    gt_use_preinstalled_gnugettext=no
 
13145
 
 
13146
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
13147
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
 
13148
 
 
13149
# Check whether --with-included-gettext or --without-included-gettext was given.
 
13150
if test "${with_included_gettext+set}" = set; then
 
13151
  withval="$with_included_gettext"
 
13152
  nls_cv_force_use_gnu_gettext=$withval
 
13153
else
 
13154
  nls_cv_force_use_gnu_gettext=no
 
13155
fi;
 
13156
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
13157
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
 
13158
 
 
13159
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
13160
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
13161
 
 
13162
 
 
13163
 
 
13164
 
 
13165
 
 
13166
 
 
13167
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
13168
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
13169
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
 
13170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13171
else
 
13172
  cat >conftest.$ac_ext <<_ACEOF
 
13173
/* confdefs.h.  */
 
13174
_ACEOF
 
13175
cat confdefs.h >>conftest.$ac_ext
 
13176
cat >>conftest.$ac_ext <<_ACEOF
 
13177
/* end confdefs.h.  */
 
13178
#include <libintl.h>
 
13179
extern int _nl_msg_cat_cntr;
 
13180
extern int *_nl_domain_bindings;
 
13181
int
 
13182
main ()
 
13183
{
 
13184
bindtextdomain ("", "");
 
13185
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
 
13186
  ;
 
13187
  return 0;
 
13188
}
 
13189
_ACEOF
 
13190
rm -f conftest.$ac_objext conftest$ac_exeext
 
13191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13192
  (eval $ac_link) 2>conftest.er1
 
13193
  ac_status=$?
 
13194
  grep -v '^ *+' conftest.er1 >conftest.err
 
13195
  rm -f conftest.er1
 
13196
  cat conftest.err >&5
 
13197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13198
  (exit $ac_status); } &&
 
13199
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13201
  (eval $ac_try) 2>&5
 
13202
  ac_status=$?
 
13203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13204
  (exit $ac_status); }; } &&
 
13205
         { ac_try='test -s conftest$ac_exeext'
 
13206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13207
  (eval $ac_try) 2>&5
 
13208
  ac_status=$?
 
13209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13210
  (exit $ac_status); }; }; then
 
13211
  gt_cv_func_gnugettext2_libc=yes
 
13212
else
 
13213
  echo "$as_me: failed program was:" >&5
 
13214
sed 's/^/| /' conftest.$ac_ext >&5
 
13215
 
 
13216
gt_cv_func_gnugettext2_libc=no
 
13217
fi
 
13218
rm -f conftest.err conftest.$ac_objext \
 
13219
      conftest$ac_exeext conftest.$ac_ext
 
13220
fi
 
13221
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
 
13222
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
 
13223
 
 
13224
        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
 
13225
 
 
13226
 
 
13227
 
 
13228
    use_additional=yes
 
13229
 
 
13230
  acl_save_prefix="$prefix"
 
13231
  prefix="$acl_final_prefix"
 
13232
  acl_save_exec_prefix="$exec_prefix"
 
13233
  exec_prefix="$acl_final_exec_prefix"
 
13234
 
 
13235
    eval additional_includedir=\"$includedir\"
 
13236
    eval additional_libdir=\"$libdir\"
 
13237
 
 
13238
  exec_prefix="$acl_save_exec_prefix"
 
13239
  prefix="$acl_save_prefix"
 
13240
 
 
13241
 
 
13242
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
13243
if test "${with_libintl_prefix+set}" = set; then
 
13244
  withval="$with_libintl_prefix"
 
13245
 
 
13246
    if test "X$withval" = "Xno"; then
 
13247
      use_additional=no
 
13248
    else
 
13249
      if test "X$withval" = "X"; then
 
13250
 
 
13251
  acl_save_prefix="$prefix"
 
13252
  prefix="$acl_final_prefix"
 
13253
  acl_save_exec_prefix="$exec_prefix"
 
13254
  exec_prefix="$acl_final_exec_prefix"
 
13255
 
 
13256
          eval additional_includedir=\"$includedir\"
 
13257
          eval additional_libdir=\"$libdir\"
 
13258
 
 
13259
  exec_prefix="$acl_save_exec_prefix"
 
13260
  prefix="$acl_save_prefix"
 
13261
 
 
13262
      else
 
13263
        additional_includedir="$withval/include"
 
13264
        additional_libdir="$withval/lib"
 
13265
      fi
 
13266
    fi
 
13267
 
 
13268
fi;
 
13269
      LIBINTL=
 
13270
  LTLIBINTL=
 
13271
  INCINTL=
 
13272
  rpathdirs=
 
13273
  ltrpathdirs=
 
13274
  names_already_handled=
 
13275
  names_next_round='intl '
 
13276
  while test -n "$names_next_round"; do
 
13277
    names_this_round="$names_next_round"
 
13278
    names_next_round=
 
13279
    for name in $names_this_round; do
 
13280
      already_handled=
 
13281
      for n in $names_already_handled; do
 
13282
        if test "$n" = "$name"; then
 
13283
          already_handled=yes
 
13284
          break
 
13285
        fi
 
13286
      done
 
13287
      if test -z "$already_handled"; then
 
13288
        names_already_handled="$names_already_handled $name"
 
13289
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
13290
        eval value=\"\$HAVE_LIB$uppername\"
 
13291
        if test -n "$value"; then
 
13292
          if test "$value" = yes; then
 
13293
            eval value=\"\$LIB$uppername\"
 
13294
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
13295
            eval value=\"\$LTLIB$uppername\"
 
13296
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
13297
          else
 
13298
                                    :
 
13299
          fi
 
13300
        else
 
13301
                              found_dir=
 
13302
          found_la=
 
13303
          found_so=
 
13304
          found_a=
 
13305
          if test $use_additional = yes; then
 
13306
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
13307
              found_dir="$additional_libdir"
 
13308
              found_so="$additional_libdir/lib$name.$shlibext"
 
13309
              if test -f "$additional_libdir/lib$name.la"; then
 
13310
                found_la="$additional_libdir/lib$name.la"
 
13311
              fi
 
13312
            else
 
13313
              if test -f "$additional_libdir/lib$name.$libext"; then
 
13314
                found_dir="$additional_libdir"
 
13315
                found_a="$additional_libdir/lib$name.$libext"
 
13316
                if test -f "$additional_libdir/lib$name.la"; then
 
13317
                  found_la="$additional_libdir/lib$name.la"
 
13318
                fi
 
13319
              fi
 
13320
            fi
 
13321
          fi
 
13322
          if test "X$found_dir" = "X"; then
 
13323
            for x in $LDFLAGS $LTLIBINTL; do
 
13324
 
 
13325
  acl_save_prefix="$prefix"
 
13326
  prefix="$acl_final_prefix"
 
13327
  acl_save_exec_prefix="$exec_prefix"
 
13328
  exec_prefix="$acl_final_exec_prefix"
 
13329
  eval x=\"$x\"
 
13330
  exec_prefix="$acl_save_exec_prefix"
 
13331
  prefix="$acl_save_prefix"
 
13332
 
 
13333
              case "$x" in
 
13334
                -L*)
 
13335
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
13336
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
13337
                    found_dir="$dir"
 
13338
                    found_so="$dir/lib$name.$shlibext"
 
13339
                    if test -f "$dir/lib$name.la"; then
 
13340
                      found_la="$dir/lib$name.la"
 
13341
                    fi
 
13342
                  else
 
13343
                    if test -f "$dir/lib$name.$libext"; then
 
13344
                      found_dir="$dir"
 
13345
                      found_a="$dir/lib$name.$libext"
 
13346
                      if test -f "$dir/lib$name.la"; then
 
13347
                        found_la="$dir/lib$name.la"
 
13348
                      fi
 
13349
                    fi
 
13350
                  fi
 
13351
                  ;;
 
13352
              esac
 
13353
              if test "X$found_dir" != "X"; then
 
13354
                break
 
13355
              fi
 
13356
            done
 
13357
          fi
 
13358
          if test "X$found_dir" != "X"; then
 
13359
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
13360
            if test "X$found_so" != "X"; then
 
13361
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
13362
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13363
              else
 
13364
                                                                                haveit=
 
13365
                for x in $ltrpathdirs; do
 
13366
                  if test "X$x" = "X$found_dir"; then
 
13367
                    haveit=yes
 
13368
                    break
 
13369
                  fi
 
13370
                done
 
13371
                if test -z "$haveit"; then
 
13372
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13373
                fi
 
13374
                                if test "$hardcode_direct" = yes; then
 
13375
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13376
                else
 
13377
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
13378
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13379
                                                            haveit=
 
13380
                    for x in $rpathdirs; do
 
13381
                      if test "X$x" = "X$found_dir"; then
 
13382
                        haveit=yes
 
13383
                        break
 
13384
                      fi
 
13385
                    done
 
13386
                    if test -z "$haveit"; then
 
13387
                      rpathdirs="$rpathdirs $found_dir"
 
13388
                    fi
 
13389
                  else
 
13390
                                                                                haveit=
 
13391
                    for x in $LDFLAGS $LIBINTL; do
 
13392
 
 
13393
  acl_save_prefix="$prefix"
 
13394
  prefix="$acl_final_prefix"
 
13395
  acl_save_exec_prefix="$exec_prefix"
 
13396
  exec_prefix="$acl_final_exec_prefix"
 
13397
  eval x=\"$x\"
 
13398
  exec_prefix="$acl_save_exec_prefix"
 
13399
  prefix="$acl_save_prefix"
 
13400
 
 
13401
                      if test "X$x" = "X-L$found_dir"; then
 
13402
                        haveit=yes
 
13403
                        break
 
13404
                      fi
 
13405
                    done
 
13406
                    if test -z "$haveit"; then
 
13407
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
13408
                    fi
 
13409
                    if test "$hardcode_minus_L" != no; then
 
13410
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13411
                    else
 
13412
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13413
                    fi
 
13414
                  fi
 
13415
                fi
 
13416
              fi
 
13417
            else
 
13418
              if test "X$found_a" != "X"; then
 
13419
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
13420
              else
 
13421
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
13422
              fi
 
13423
            fi
 
13424
                        additional_includedir=
 
13425
            case "$found_dir" in
 
13426
              */lib | */lib/)
 
13427
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
13428
                additional_includedir="$basedir/include"
 
13429
                ;;
 
13430
            esac
 
13431
            if test "X$additional_includedir" != "X"; then
 
13432
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13433
                haveit=
 
13434
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13435
                  if test -n "$GCC"; then
 
13436
                    case $host_os in
 
13437
                      linux*) haveit=yes;;
 
13438
                    esac
 
13439
                  fi
 
13440
                fi
 
13441
                if test -z "$haveit"; then
 
13442
                  for x in $CPPFLAGS $INCINTL; do
 
13443
 
 
13444
  acl_save_prefix="$prefix"
 
13445
  prefix="$acl_final_prefix"
 
13446
  acl_save_exec_prefix="$exec_prefix"
 
13447
  exec_prefix="$acl_final_exec_prefix"
 
13448
  eval x=\"$x\"
 
13449
  exec_prefix="$acl_save_exec_prefix"
 
13450
  prefix="$acl_save_prefix"
 
13451
 
 
13452
                    if test "X$x" = "X-I$additional_includedir"; then
 
13453
                      haveit=yes
 
13454
                      break
 
13455
                    fi
 
13456
                  done
 
13457
                  if test -z "$haveit"; then
 
13458
                    if test -d "$additional_includedir"; then
 
13459
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
13460
                    fi
 
13461
                  fi
 
13462
                fi
 
13463
              fi
 
13464
            fi
 
13465
                        if test -n "$found_la"; then
 
13466
                                                        save_libdir="$libdir"
 
13467
              case "$found_la" in
 
13468
                */* | *\\*) . "$found_la" ;;
 
13469
                *) . "./$found_la" ;;
 
13470
              esac
 
13471
              libdir="$save_libdir"
 
13472
                            for dep in $dependency_libs; do
 
13473
                case "$dep" in
 
13474
                  -L*)
 
13475
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13476
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
13477
                      haveit=
 
13478
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
13479
                        if test -n "$GCC"; then
 
13480
                          case $host_os in
 
13481
                            linux*) haveit=yes;;
 
13482
                          esac
 
13483
                        fi
 
13484
                      fi
 
13485
                      if test -z "$haveit"; then
 
13486
                        haveit=
 
13487
                        for x in $LDFLAGS $LIBINTL; do
 
13488
 
 
13489
  acl_save_prefix="$prefix"
 
13490
  prefix="$acl_final_prefix"
 
13491
  acl_save_exec_prefix="$exec_prefix"
 
13492
  exec_prefix="$acl_final_exec_prefix"
 
13493
  eval x=\"$x\"
 
13494
  exec_prefix="$acl_save_exec_prefix"
 
13495
  prefix="$acl_save_prefix"
 
13496
 
 
13497
                          if test "X$x" = "X-L$additional_libdir"; then
 
13498
                            haveit=yes
 
13499
                            break
 
13500
                          fi
 
13501
                        done
 
13502
                        if test -z "$haveit"; then
 
13503
                          if test -d "$additional_libdir"; then
 
13504
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
13505
                          fi
 
13506
                        fi
 
13507
                        haveit=
 
13508
                        for x in $LDFLAGS $LTLIBINTL; do
 
13509
 
 
13510
  acl_save_prefix="$prefix"
 
13511
  prefix="$acl_final_prefix"
 
13512
  acl_save_exec_prefix="$exec_prefix"
 
13513
  exec_prefix="$acl_final_exec_prefix"
 
13514
  eval x=\"$x\"
 
13515
  exec_prefix="$acl_save_exec_prefix"
 
13516
  prefix="$acl_save_prefix"
 
13517
 
 
13518
                          if test "X$x" = "X-L$additional_libdir"; then
 
13519
                            haveit=yes
 
13520
                            break
 
13521
                          fi
 
13522
                        done
 
13523
                        if test -z "$haveit"; then
 
13524
                          if test -d "$additional_libdir"; then
 
13525
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
13526
                          fi
 
13527
                        fi
 
13528
                      fi
 
13529
                    fi
 
13530
                    ;;
 
13531
                  -R*)
 
13532
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
13533
                    if test "$enable_rpath" != no; then
 
13534
                                                                  haveit=
 
13535
                      for x in $rpathdirs; do
 
13536
                        if test "X$x" = "X$dir"; then
 
13537
                          haveit=yes
 
13538
                          break
 
13539
                        fi
 
13540
                      done
 
13541
                      if test -z "$haveit"; then
 
13542
                        rpathdirs="$rpathdirs $dir"
 
13543
                      fi
 
13544
                                                                  haveit=
 
13545
                      for x in $ltrpathdirs; do
 
13546
                        if test "X$x" = "X$dir"; then
 
13547
                          haveit=yes
 
13548
                          break
 
13549
                        fi
 
13550
                      done
 
13551
                      if test -z "$haveit"; then
 
13552
                        ltrpathdirs="$ltrpathdirs $dir"
 
13553
                      fi
 
13554
                    fi
 
13555
                    ;;
 
13556
                  -l*)
 
13557
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
13558
                    ;;
 
13559
                  *.la)
 
13560
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
13561
                    ;;
 
13562
                  *)
 
13563
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
13564
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
13565
                    ;;
 
13566
                esac
 
13567
              done
 
13568
            fi
 
13569
          else
 
13570
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13571
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
13572
          fi
 
13573
        fi
 
13574
      fi
 
13575
    done
 
13576
  done
 
13577
  if test "X$rpathdirs" != "X"; then
 
13578
    if test -n "$hardcode_libdir_separator"; then
 
13579
                        alldirs=
 
13580
      for found_dir in $rpathdirs; do
 
13581
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
13582
      done
 
13583
            acl_save_libdir="$libdir"
 
13584
      libdir="$alldirs"
 
13585
      eval flag=\"$hardcode_libdir_flag_spec\"
 
13586
      libdir="$acl_save_libdir"
 
13587
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
13588
    else
 
13589
            for found_dir in $rpathdirs; do
 
13590
        acl_save_libdir="$libdir"
 
13591
        libdir="$found_dir"
 
13592
        eval flag=\"$hardcode_libdir_flag_spec\"
 
13593
        libdir="$acl_save_libdir"
 
13594
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
13595
      done
 
13596
    fi
 
13597
  fi
 
13598
  if test "X$ltrpathdirs" != "X"; then
 
13599
            for found_dir in $ltrpathdirs; do
 
13600
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
13601
    done
 
13602
  fi
 
13603
 
 
13604
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
13605
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
13606
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
 
13607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13608
else
 
13609
  gt_save_CPPFLAGS="$CPPFLAGS"
 
13610
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
13611
            gt_save_LIBS="$LIBS"
 
13612
            LIBS="$LIBS $LIBINTL"
 
13613
                        cat >conftest.$ac_ext <<_ACEOF
 
13614
/* confdefs.h.  */
 
13615
_ACEOF
 
13616
cat confdefs.h >>conftest.$ac_ext
 
13617
cat >>conftest.$ac_ext <<_ACEOF
 
13618
/* end confdefs.h.  */
 
13619
#include <libintl.h>
 
13620
extern int _nl_msg_cat_cntr;
 
13621
extern
 
13622
#ifdef __cplusplus
 
13623
"C"
 
13624
#endif
 
13625
const char *_nl_expand_alias ();
 
13626
int
 
13627
main ()
 
13628
{
 
13629
bindtextdomain ("", "");
 
13630
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
13631
  ;
 
13632
  return 0;
 
13633
}
 
13634
_ACEOF
 
13635
rm -f conftest.$ac_objext conftest$ac_exeext
 
13636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13637
  (eval $ac_link) 2>conftest.er1
 
13638
  ac_status=$?
 
13639
  grep -v '^ *+' conftest.er1 >conftest.err
 
13640
  rm -f conftest.er1
 
13641
  cat conftest.err >&5
 
13642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13643
  (exit $ac_status); } &&
 
13644
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13646
  (eval $ac_try) 2>&5
 
13647
  ac_status=$?
 
13648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13649
  (exit $ac_status); }; } &&
 
13650
         { ac_try='test -s conftest$ac_exeext'
 
13651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13652
  (eval $ac_try) 2>&5
 
13653
  ac_status=$?
 
13654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13655
  (exit $ac_status); }; }; then
 
13656
  gt_cv_func_gnugettext2_libintl=yes
 
13657
else
 
13658
  echo "$as_me: failed program was:" >&5
 
13659
sed 's/^/| /' conftest.$ac_ext >&5
 
13660
 
 
13661
gt_cv_func_gnugettext2_libintl=no
 
13662
fi
 
13663
rm -f conftest.err conftest.$ac_objext \
 
13664
      conftest$ac_exeext conftest.$ac_ext
 
13665
                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
 
13666
              LIBS="$LIBS $LIBICONV"
 
13667
              cat >conftest.$ac_ext <<_ACEOF
 
13668
/* confdefs.h.  */
 
13669
_ACEOF
 
13670
cat confdefs.h >>conftest.$ac_ext
 
13671
cat >>conftest.$ac_ext <<_ACEOF
 
13672
/* end confdefs.h.  */
 
13673
#include <libintl.h>
 
13674
extern int _nl_msg_cat_cntr;
 
13675
extern
 
13676
#ifdef __cplusplus
 
13677
"C"
 
13678
#endif
 
13679
const char *_nl_expand_alias ();
 
13680
int
 
13681
main ()
 
13682
{
 
13683
bindtextdomain ("", "");
 
13684
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
13685
  ;
 
13686
  return 0;
 
13687
}
 
13688
_ACEOF
 
13689
rm -f conftest.$ac_objext conftest$ac_exeext
 
13690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13691
  (eval $ac_link) 2>conftest.er1
 
13692
  ac_status=$?
 
13693
  grep -v '^ *+' conftest.er1 >conftest.err
 
13694
  rm -f conftest.er1
 
13695
  cat conftest.err >&5
 
13696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13697
  (exit $ac_status); } &&
 
13698
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13700
  (eval $ac_try) 2>&5
 
13701
  ac_status=$?
 
13702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13703
  (exit $ac_status); }; } &&
 
13704
         { ac_try='test -s conftest$ac_exeext'
 
13705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13706
  (eval $ac_try) 2>&5
 
13707
  ac_status=$?
 
13708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13709
  (exit $ac_status); }; }; then
 
13710
  LIBINTL="$LIBINTL $LIBICONV"
 
13711
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
13712
                gt_cv_func_gnugettext2_libintl=yes
 
13713
 
 
13714
else
 
13715
  echo "$as_me: failed program was:" >&5
 
13716
sed 's/^/| /' conftest.$ac_ext >&5
 
13717
 
 
13718
fi
 
13719
rm -f conftest.err conftest.$ac_objext \
 
13720
      conftest$ac_exeext conftest.$ac_ext
 
13721
            fi
 
13722
            CPPFLAGS="$gt_save_CPPFLAGS"
 
13723
            LIBS="$gt_save_LIBS"
 
13724
fi
 
13725
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
 
13726
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
 
13727
        fi
 
13728
 
 
13729
                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
 
13730
           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
 
13731
                && test "$PACKAGE" != gettext-runtime \
 
13732
                && test "$PACKAGE" != gettext-tools; }; then
 
13733
          gt_use_preinstalled_gnugettext=yes
 
13734
        else
 
13735
                    LIBINTL=
 
13736
          LTLIBINTL=
 
13737
          INCINTL=
 
13738
        fi
 
13739
 
 
13740
 
 
13741
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
13742
                              nls_cv_use_gnu_gettext=yes
 
13743
        fi
 
13744
      fi
 
13745
 
 
13746
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
13747
                BUILD_INCLUDED_LIBINTL=yes
 
13748
        USE_INCLUDED_LIBINTL=yes
 
13749
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
 
13750
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
 
13751
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
13752
      fi
 
13753
 
 
13754
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
13755
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
13756
                CATOBJEXT=.gmo
 
13757
      fi
 
13758
 
 
13759
 
 
13760
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
13761
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
13762
 
 
13763
cat >>confdefs.h <<\_ACEOF
 
13764
#define ENABLE_NLS 1
 
13765
_ACEOF
 
13766
 
 
13767
    else
 
13768
      USE_NLS=no
 
13769
    fi
 
13770
  fi
 
13771
 
 
13772
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
13773
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
13774
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
13775
echo "${ECHO_T}$USE_NLS" >&6
 
13776
  if test "$USE_NLS" = "yes"; then
 
13777
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
13778
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
13779
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
13780
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
13781
        gt_source="external libintl"
 
13782
      else
 
13783
        gt_source="libc"
 
13784
      fi
 
13785
    else
 
13786
      gt_source="included intl directory"
 
13787
    fi
 
13788
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
13789
echo "${ECHO_T}$gt_source" >&6
 
13790
  fi
 
13791
 
 
13792
  if test "$USE_NLS" = "yes"; then
 
13793
 
 
13794
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
13795
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
13796
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
13797
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
13798
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
13799
echo "${ECHO_T}$LIBINTL" >&6
 
13800
 
 
13801
  for element in $INCINTL; do
 
13802
    haveit=
 
13803
    for x in $CPPFLAGS; do
 
13804
 
 
13805
  acl_save_prefix="$prefix"
 
13806
  prefix="$acl_final_prefix"
 
13807
  acl_save_exec_prefix="$exec_prefix"
 
13808
  exec_prefix="$acl_final_exec_prefix"
 
13809
  eval x=\"$x\"
 
13810
  exec_prefix="$acl_save_exec_prefix"
 
13811
  prefix="$acl_save_prefix"
 
13812
 
 
13813
      if test "X$x" = "X$element"; then
 
13814
        haveit=yes
 
13815
        break
 
13816
      fi
 
13817
    done
 
13818
    if test -z "$haveit"; then
 
13819
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
13820
    fi
 
13821
  done
 
13822
 
 
13823
      fi
 
13824
 
 
13825
 
 
13826
cat >>confdefs.h <<\_ACEOF
 
13827
#define HAVE_GETTEXT 1
 
13828
_ACEOF
 
13829
 
 
13830
 
 
13831
cat >>confdefs.h <<\_ACEOF
 
13832
#define HAVE_DCGETTEXT 1
 
13833
_ACEOF
 
13834
 
 
13835
    fi
 
13836
 
 
13837
        POSUB=po
 
13838
  fi
 
13839
 
 
13840
 
 
13841
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
13842
      BUILD_INCLUDED_LIBINTL=yes
 
13843
    fi
 
13844
 
 
13845
 
 
13846
 
 
13847
 
 
13848
 
 
13849
        nls_cv_header_intl=
 
13850
    nls_cv_header_libgt=
 
13851
 
 
13852
        DATADIRNAME=share
 
13853
 
 
13854
 
 
13855
        INSTOBJEXT=.mo
 
13856
 
 
13857
 
 
13858
        GENCAT=gencat
 
13859
 
 
13860
 
 
13861
        if test "$USE_INCLUDED_LIBINTL" = yes; then
 
13862
      INTLOBJS="\$(GETTOBJS)"
 
13863
    fi
 
13864
 
 
13865
 
 
13866
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
13867
 
 
13868
 
 
13869
 
 
13870
    INTLLIBS="$LIBINTL"
 
13871
 
 
13872
 
 
13873
 
 
13874
 
 
13875
 
 
13876
 
 
13877
 
 
13878
  # gettext requires some extra checks.  These really should be part of
 
13879
  # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
 
13880
  # function checks to here.
 
13881
 
 
13882
 
 
13883
for ac_func in strchr
 
13884
do
 
13885
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13886
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13887
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13888
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13890
else
 
13891
  cat >conftest.$ac_ext <<_ACEOF
 
13892
/* confdefs.h.  */
 
13893
_ACEOF
 
13894
cat confdefs.h >>conftest.$ac_ext
 
13895
cat >>conftest.$ac_ext <<_ACEOF
 
13896
/* end confdefs.h.  */
 
13897
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13898
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13899
#define $ac_func innocuous_$ac_func
 
13900
 
 
13901
/* System header to define __stub macros and hopefully few prototypes,
 
13902
    which can conflict with char $ac_func (); below.
 
13903
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13904
    <limits.h> exists even on freestanding compilers.  */
 
13905
 
 
13906
#ifdef __STDC__
 
13907
# include <limits.h>
 
13908
#else
 
13909
# include <assert.h>
 
13910
#endif
 
13911
 
 
13912
#undef $ac_func
 
13913
 
 
13914
/* Override any gcc2 internal prototype to avoid an error.  */
 
13915
#ifdef __cplusplus
 
13916
extern "C"
 
13917
{
 
13918
#endif
 
13919
/* We use char because int might match the return type of a gcc2
 
13920
   builtin and then its argument prototype would still apply.  */
 
13921
char $ac_func ();
 
13922
/* The GNU C library defines this for functions which it implements
 
13923
    to always fail with ENOSYS.  Some functions are actually named
 
13924
    something starting with __ and the normal name is an alias.  */
 
13925
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13926
choke me
 
13927
#else
 
13928
char (*f) () = $ac_func;
 
13929
#endif
 
13930
#ifdef __cplusplus
 
13931
}
 
13932
#endif
 
13933
 
 
13934
int
 
13935
main ()
 
13936
{
 
13937
return f != $ac_func;
 
13938
  ;
 
13939
  return 0;
 
13940
}
 
13941
_ACEOF
 
13942
rm -f conftest.$ac_objext conftest$ac_exeext
 
13943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13944
  (eval $ac_link) 2>conftest.er1
 
13945
  ac_status=$?
 
13946
  grep -v '^ *+' conftest.er1 >conftest.err
 
13947
  rm -f conftest.er1
 
13948
  cat conftest.err >&5
 
13949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13950
  (exit $ac_status); } &&
 
13951
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13953
  (eval $ac_try) 2>&5
 
13954
  ac_status=$?
 
13955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13956
  (exit $ac_status); }; } &&
 
13957
         { ac_try='test -s conftest$ac_exeext'
 
13958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13959
  (eval $ac_try) 2>&5
 
13960
  ac_status=$?
 
13961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13962
  (exit $ac_status); }; }; then
 
13963
  eval "$as_ac_var=yes"
 
13964
else
 
13965
  echo "$as_me: failed program was:" >&5
 
13966
sed 's/^/| /' conftest.$ac_ext >&5
 
13967
 
 
13968
eval "$as_ac_var=no"
 
13969
fi
 
13970
rm -f conftest.err conftest.$ac_objext \
 
13971
      conftest$ac_exeext conftest.$ac_ext
 
13972
fi
 
13973
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13974
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13975
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13976
  cat >>confdefs.h <<_ACEOF
 
13977
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13978
_ACEOF
 
13979
 
 
13980
fi
 
13981
done
 
13982
 
 
13983
else
 
13984
  USE_NLS=no
 
13985
  USE_INCLUDED_LIBINTL=no
 
13986
  BUILD_INCLUDED_LIBINTL=no
 
13987
 
 
13988
 
 
13989
 
 
13990
fi
 
13991
 
 
13992
# Checks for header files.
 
13993
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
13994
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
13995
if test "${ac_cv_header_stdc+set}" = set; then
 
13996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13997
else
 
13998
  cat >conftest.$ac_ext <<_ACEOF
 
13999
/* confdefs.h.  */
 
14000
_ACEOF
 
14001
cat confdefs.h >>conftest.$ac_ext
 
14002
cat >>conftest.$ac_ext <<_ACEOF
 
14003
/* end confdefs.h.  */
 
14004
#include <stdlib.h>
 
14005
#include <stdarg.h>
 
14006
#include <string.h>
 
14007
#include <float.h>
 
14008
 
 
14009
int
 
14010
main ()
 
14011
{
 
14012
 
 
14013
  ;
 
14014
  return 0;
 
14015
}
 
14016
_ACEOF
 
14017
rm -f conftest.$ac_objext
 
14018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14019
  (eval $ac_compile) 2>conftest.er1
 
14020
  ac_status=$?
 
14021
  grep -v '^ *+' conftest.er1 >conftest.err
 
14022
  rm -f conftest.er1
 
14023
  cat conftest.err >&5
 
14024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14025
  (exit $ac_status); } &&
 
14026
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14028
  (eval $ac_try) 2>&5
 
14029
  ac_status=$?
 
14030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14031
  (exit $ac_status); }; } &&
 
14032
         { ac_try='test -s conftest.$ac_objext'
 
14033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14034
  (eval $ac_try) 2>&5
 
14035
  ac_status=$?
 
14036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14037
  (exit $ac_status); }; }; then
 
14038
  ac_cv_header_stdc=yes
 
14039
else
 
14040
  echo "$as_me: failed program was:" >&5
 
14041
sed 's/^/| /' conftest.$ac_ext >&5
 
14042
 
 
14043
ac_cv_header_stdc=no
 
14044
fi
 
14045
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14046
 
 
14047
if test $ac_cv_header_stdc = yes; then
 
14048
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
14049
  cat >conftest.$ac_ext <<_ACEOF
 
14050
/* confdefs.h.  */
 
14051
_ACEOF
 
14052
cat confdefs.h >>conftest.$ac_ext
 
14053
cat >>conftest.$ac_ext <<_ACEOF
 
14054
/* end confdefs.h.  */
 
14055
#include <string.h>
 
14056
 
 
14057
_ACEOF
 
14058
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14059
  $EGREP "memchr" >/dev/null 2>&1; then
 
14060
  :
 
14061
else
 
14062
  ac_cv_header_stdc=no
 
14063
fi
 
14064
rm -f conftest*
 
14065
 
 
14066
fi
 
14067
 
 
14068
if test $ac_cv_header_stdc = yes; then
 
14069
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
14070
  cat >conftest.$ac_ext <<_ACEOF
 
14071
/* confdefs.h.  */
 
14072
_ACEOF
 
14073
cat confdefs.h >>conftest.$ac_ext
 
14074
cat >>conftest.$ac_ext <<_ACEOF
 
14075
/* end confdefs.h.  */
 
14076
#include <stdlib.h>
 
14077
 
 
14078
_ACEOF
 
14079
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14080
  $EGREP "free" >/dev/null 2>&1; then
 
14081
  :
 
14082
else
 
14083
  ac_cv_header_stdc=no
 
14084
fi
 
14085
rm -f conftest*
 
14086
 
 
14087
fi
 
14088
 
 
14089
if test $ac_cv_header_stdc = yes; then
 
14090
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
14091
  if test "$cross_compiling" = yes; then
 
14092
  :
 
14093
else
 
14094
  cat >conftest.$ac_ext <<_ACEOF
 
14095
/* confdefs.h.  */
 
14096
_ACEOF
 
14097
cat confdefs.h >>conftest.$ac_ext
 
14098
cat >>conftest.$ac_ext <<_ACEOF
 
14099
/* end confdefs.h.  */
 
14100
#include <ctype.h>
 
14101
#if ((' ' & 0x0FF) == 0x020)
 
14102
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
14103
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
14104
#else
 
14105
# define ISLOWER(c) \
 
14106
                   (('a' <= (c) && (c) <= 'i') \
 
14107
                     || ('j' <= (c) && (c) <= 'r') \
 
14108
                     || ('s' <= (c) && (c) <= 'z'))
 
14109
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
14110
#endif
 
14111
 
 
14112
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
14113
int
 
14114
main ()
 
14115
{
 
14116
  int i;
 
14117
  for (i = 0; i < 256; i++)
 
14118
    if (XOR (islower (i), ISLOWER (i))
 
14119
        || toupper (i) != TOUPPER (i))
 
14120
      exit(2);
 
14121
  exit (0);
 
14122
}
 
14123
_ACEOF
 
14124
rm -f conftest$ac_exeext
 
14125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14126
  (eval $ac_link) 2>&5
 
14127
  ac_status=$?
 
14128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14129
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14131
  (eval $ac_try) 2>&5
 
14132
  ac_status=$?
 
14133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14134
  (exit $ac_status); }; }; then
 
14135
  :
 
14136
else
 
14137
  echo "$as_me: program exited with status $ac_status" >&5
 
14138
echo "$as_me: failed program was:" >&5
 
14139
sed 's/^/| /' conftest.$ac_ext >&5
 
14140
 
 
14141
( exit $ac_status )
 
14142
ac_cv_header_stdc=no
 
14143
fi
 
14144
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14145
fi
 
14146
fi
 
14147
fi
 
14148
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
14149
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
14150
if test $ac_cv_header_stdc = yes; then
 
14151
 
 
14152
cat >>confdefs.h <<\_ACEOF
 
14153
#define STDC_HEADERS 1
 
14154
_ACEOF
 
14155
 
 
14156
fi
 
14157
 
 
14158
 
 
14159
 
 
14160
 
 
14161
 
 
14162
 
 
14163
 
 
14164
for ac_header in string.h unistd.h langinfo.h termio.h locale.h dlfcn.h
 
14165
do
 
14166
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14167
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14168
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14169
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14170
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14172
fi
 
14173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14175
else
 
14176
  # Is the header compilable?
 
14177
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14178
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14179
cat >conftest.$ac_ext <<_ACEOF
 
14180
/* confdefs.h.  */
 
14181
_ACEOF
 
14182
cat confdefs.h >>conftest.$ac_ext
 
14183
cat >>conftest.$ac_ext <<_ACEOF
 
14184
/* end confdefs.h.  */
 
14185
$ac_includes_default
 
14186
#include <$ac_header>
 
14187
_ACEOF
 
14188
rm -f conftest.$ac_objext
 
14189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14190
  (eval $ac_compile) 2>conftest.er1
 
14191
  ac_status=$?
 
14192
  grep -v '^ *+' conftest.er1 >conftest.err
 
14193
  rm -f conftest.er1
 
14194
  cat conftest.err >&5
 
14195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14196
  (exit $ac_status); } &&
 
14197
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14199
  (eval $ac_try) 2>&5
 
14200
  ac_status=$?
 
14201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14202
  (exit $ac_status); }; } &&
 
14203
         { ac_try='test -s conftest.$ac_objext'
 
14204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14205
  (eval $ac_try) 2>&5
 
14206
  ac_status=$?
 
14207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14208
  (exit $ac_status); }; }; then
 
14209
  ac_header_compiler=yes
 
14210
else
 
14211
  echo "$as_me: failed program was:" >&5
 
14212
sed 's/^/| /' conftest.$ac_ext >&5
 
14213
 
 
14214
ac_header_compiler=no
 
14215
fi
 
14216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14217
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14218
echo "${ECHO_T}$ac_header_compiler" >&6
 
14219
 
 
14220
# Is the header present?
 
14221
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14222
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
14223
cat >conftest.$ac_ext <<_ACEOF
 
14224
/* confdefs.h.  */
 
14225
_ACEOF
 
14226
cat confdefs.h >>conftest.$ac_ext
 
14227
cat >>conftest.$ac_ext <<_ACEOF
 
14228
/* end confdefs.h.  */
 
14229
#include <$ac_header>
 
14230
_ACEOF
 
14231
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
14232
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14233
  ac_status=$?
 
14234
  grep -v '^ *+' conftest.er1 >conftest.err
 
14235
  rm -f conftest.er1
 
14236
  cat conftest.err >&5
 
14237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14238
  (exit $ac_status); } >/dev/null; then
 
14239
  if test -s conftest.err; then
 
14240
    ac_cpp_err=$ac_c_preproc_warn_flag
 
14241
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
14242
  else
 
14243
    ac_cpp_err=
 
14244
  fi
 
14245
else
 
14246
  ac_cpp_err=yes
 
14247
fi
 
14248
if test -z "$ac_cpp_err"; then
 
14249
  ac_header_preproc=yes
 
14250
else
 
14251
  echo "$as_me: failed program was:" >&5
 
14252
sed 's/^/| /' conftest.$ac_ext >&5
 
14253
 
 
14254
  ac_header_preproc=no
 
14255
fi
 
14256
rm -f conftest.err conftest.$ac_ext
 
14257
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14258
echo "${ECHO_T}$ac_header_preproc" >&6
 
14259
 
 
14260
# So?  What about this header?
 
14261
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14262
  yes:no: )
 
14263
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14264
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14265
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14266
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14267
    ac_header_preproc=yes
 
14268
    ;;
 
14269
  no:yes:* )
 
14270
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14271
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14272
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14273
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14274
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14275
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14276
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14277
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14278
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14279
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14280
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14281
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14282
    (
 
14283
      cat <<\_ASBOX
 
14284
## ------------------------------------ ##
 
14285
## Report this to gnupg-devel@gnupg.org ##
 
14286
## ------------------------------------ ##
 
14287
_ASBOX
 
14288
    ) |
 
14289
      sed "s/^/$as_me: WARNING:     /" >&2
 
14290
    ;;
 
14291
esac
 
14292
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14293
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14294
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14296
else
 
14297
  eval "$as_ac_Header=\$ac_header_preproc"
 
14298
fi
 
14299
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14300
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14301
 
 
14302
fi
 
14303
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14304
  cat >>confdefs.h <<_ACEOF
 
14305
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14306
_ACEOF
 
14307
 
 
14308
fi
 
14309
 
 
14310
done
 
14311
 
 
14312
 
 
14313
# Checks for typedefs, structures, and compiler characteristics.
 
14314
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
14315
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
14316
if test "${ac_cv_c_const+set}" = set; then
 
14317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14318
else
 
14319
  cat >conftest.$ac_ext <<_ACEOF
 
14320
/* confdefs.h.  */
 
14321
_ACEOF
 
14322
cat confdefs.h >>conftest.$ac_ext
 
14323
cat >>conftest.$ac_ext <<_ACEOF
 
14324
/* end confdefs.h.  */
 
14325
 
 
14326
int
 
14327
main ()
 
14328
{
 
14329
/* FIXME: Include the comments suggested by Paul. */
 
14330
#ifndef __cplusplus
 
14331
  /* Ultrix mips cc rejects this.  */
 
14332
  typedef int charset[2];
 
14333
  const charset x;
 
14334
  /* SunOS 4.1.1 cc rejects this.  */
 
14335
  char const *const *ccp;
 
14336
  char **p;
 
14337
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
14338
  struct point {int x, y;};
 
14339
  static struct point const zero = {0,0};
 
14340
  /* AIX XL C 1.02.0.0 rejects this.
 
14341
     It does not let you subtract one const X* pointer from another in
 
14342
     an arm of an if-expression whose if-part is not a constant
 
14343
     expression */
 
14344
  const char *g = "string";
 
14345
  ccp = &g + (g ? g-g : 0);
 
14346
  /* HPUX 7.0 cc rejects these. */
 
14347
  ++ccp;
 
14348
  p = (char**) ccp;
 
14349
  ccp = (char const *const *) p;
 
14350
  { /* SCO 3.2v4 cc rejects this.  */
 
14351
    char *t;
 
14352
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
14353
 
 
14354
    *t++ = 0;
 
14355
  }
 
14356
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
14357
    int x[] = {25, 17};
 
14358
    const int *foo = &x[0];
 
14359
    ++foo;
 
14360
  }
 
14361
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
14362
    typedef const int *iptr;
 
14363
    iptr p = 0;
 
14364
    ++p;
 
14365
  }
 
14366
  { /* AIX XL C 1.02.0.0 rejects this saying
 
14367
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
14368
    struct s { int j; const int *ap[3]; };
 
14369
    struct s *b; b->j = 5;
 
14370
  }
 
14371
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
14372
    const int foo = 10;
 
14373
  }
 
14374
#endif
 
14375
 
 
14376
  ;
 
14377
  return 0;
 
14378
}
 
14379
_ACEOF
 
14380
rm -f conftest.$ac_objext
 
14381
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14382
  (eval $ac_compile) 2>conftest.er1
 
14383
  ac_status=$?
 
14384
  grep -v '^ *+' conftest.er1 >conftest.err
 
14385
  rm -f conftest.er1
 
14386
  cat conftest.err >&5
 
14387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14388
  (exit $ac_status); } &&
 
14389
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14391
  (eval $ac_try) 2>&5
 
14392
  ac_status=$?
 
14393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14394
  (exit $ac_status); }; } &&
 
14395
         { ac_try='test -s conftest.$ac_objext'
 
14396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14397
  (eval $ac_try) 2>&5
 
14398
  ac_status=$?
 
14399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14400
  (exit $ac_status); }; }; then
 
14401
  ac_cv_c_const=yes
 
14402
else
 
14403
  echo "$as_me: failed program was:" >&5
 
14404
sed 's/^/| /' conftest.$ac_ext >&5
 
14405
 
 
14406
ac_cv_c_const=no
 
14407
fi
 
14408
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14409
fi
 
14410
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
14411
echo "${ECHO_T}$ac_cv_c_const" >&6
 
14412
if test $ac_cv_c_const = no; then
 
14413
 
 
14414
cat >>confdefs.h <<\_ACEOF
 
14415
#define const
 
14416
_ACEOF
 
14417
 
 
14418
fi
 
14419
 
 
14420
echo "$as_me:$LINENO: checking for inline" >&5
 
14421
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
14422
if test "${ac_cv_c_inline+set}" = set; then
 
14423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14424
else
 
14425
  ac_cv_c_inline=no
 
14426
for ac_kw in inline __inline__ __inline; do
 
14427
  cat >conftest.$ac_ext <<_ACEOF
 
14428
/* confdefs.h.  */
 
14429
_ACEOF
 
14430
cat confdefs.h >>conftest.$ac_ext
 
14431
cat >>conftest.$ac_ext <<_ACEOF
 
14432
/* end confdefs.h.  */
 
14433
#ifndef __cplusplus
 
14434
typedef int foo_t;
 
14435
static $ac_kw foo_t static_foo () {return 0; }
 
14436
$ac_kw foo_t foo () {return 0; }
 
14437
#endif
 
14438
 
 
14439
_ACEOF
 
14440
rm -f conftest.$ac_objext
 
14441
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14442
  (eval $ac_compile) 2>conftest.er1
 
14443
  ac_status=$?
 
14444
  grep -v '^ *+' conftest.er1 >conftest.err
 
14445
  rm -f conftest.er1
 
14446
  cat conftest.err >&5
 
14447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14448
  (exit $ac_status); } &&
 
14449
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14451
  (eval $ac_try) 2>&5
 
14452
  ac_status=$?
 
14453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14454
  (exit $ac_status); }; } &&
 
14455
         { ac_try='test -s conftest.$ac_objext'
 
14456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14457
  (eval $ac_try) 2>&5
 
14458
  ac_status=$?
 
14459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14460
  (exit $ac_status); }; }; then
 
14461
  ac_cv_c_inline=$ac_kw; break
 
14462
else
 
14463
  echo "$as_me: failed program was:" >&5
 
14464
sed 's/^/| /' conftest.$ac_ext >&5
 
14465
 
 
14466
fi
 
14467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14468
done
 
14469
 
 
14470
fi
 
14471
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
14472
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
14473
 
 
14474
 
 
14475
case $ac_cv_c_inline in
 
14476
  inline | yes) ;;
 
14477
  *)
 
14478
    case $ac_cv_c_inline in
 
14479
      no) ac_val=;;
 
14480
      *) ac_val=$ac_cv_c_inline;;
 
14481
    esac
 
14482
    cat >>confdefs.h <<_ACEOF
 
14483
#ifndef __cplusplus
 
14484
#define inline $ac_val
 
14485
#endif
 
14486
_ACEOF
 
14487
    ;;
 
14488
esac
 
14489
 
 
14490
echo "$as_me:$LINENO: checking for size_t" >&5
 
14491
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
14492
if test "${ac_cv_type_size_t+set}" = set; then
 
14493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14494
else
 
14495
  cat >conftest.$ac_ext <<_ACEOF
 
14496
/* confdefs.h.  */
 
14497
_ACEOF
 
14498
cat confdefs.h >>conftest.$ac_ext
 
14499
cat >>conftest.$ac_ext <<_ACEOF
 
14500
/* end confdefs.h.  */
 
14501
$ac_includes_default
 
14502
int
 
14503
main ()
 
14504
{
 
14505
if ((size_t *) 0)
 
14506
  return 0;
 
14507
if (sizeof (size_t))
 
14508
  return 0;
 
14509
  ;
 
14510
  return 0;
 
14511
}
 
14512
_ACEOF
 
14513
rm -f conftest.$ac_objext
 
14514
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14515
  (eval $ac_compile) 2>conftest.er1
 
14516
  ac_status=$?
 
14517
  grep -v '^ *+' conftest.er1 >conftest.err
 
14518
  rm -f conftest.er1
 
14519
  cat conftest.err >&5
 
14520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14521
  (exit $ac_status); } &&
 
14522
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14524
  (eval $ac_try) 2>&5
 
14525
  ac_status=$?
 
14526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14527
  (exit $ac_status); }; } &&
 
14528
         { ac_try='test -s conftest.$ac_objext'
 
14529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14530
  (eval $ac_try) 2>&5
 
14531
  ac_status=$?
 
14532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14533
  (exit $ac_status); }; }; then
 
14534
  ac_cv_type_size_t=yes
 
14535
else
 
14536
  echo "$as_me: failed program was:" >&5
 
14537
sed 's/^/| /' conftest.$ac_ext >&5
 
14538
 
 
14539
ac_cv_type_size_t=no
 
14540
fi
 
14541
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14542
fi
 
14543
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
14544
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
14545
if test $ac_cv_type_size_t = yes; then
 
14546
  :
 
14547
else
 
14548
 
 
14549
cat >>confdefs.h <<_ACEOF
 
14550
#define size_t unsigned
 
14551
_ACEOF
 
14552
 
 
14553
fi
 
14554
 
 
14555
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
14556
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
14557
if test "${ac_cv_type_signal+set}" = set; then
 
14558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14559
else
 
14560
  cat >conftest.$ac_ext <<_ACEOF
 
14561
/* confdefs.h.  */
 
14562
_ACEOF
 
14563
cat confdefs.h >>conftest.$ac_ext
 
14564
cat >>conftest.$ac_ext <<_ACEOF
 
14565
/* end confdefs.h.  */
 
14566
#include <sys/types.h>
 
14567
#include <signal.h>
 
14568
#ifdef signal
 
14569
# undef signal
 
14570
#endif
 
14571
#ifdef __cplusplus
 
14572
extern "C" void (*signal (int, void (*)(int)))(int);
 
14573
#else
 
14574
void (*signal ()) ();
 
14575
#endif
 
14576
 
 
14577
int
 
14578
main ()
 
14579
{
 
14580
int i;
 
14581
  ;
 
14582
  return 0;
 
14583
}
 
14584
_ACEOF
 
14585
rm -f conftest.$ac_objext
 
14586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14587
  (eval $ac_compile) 2>conftest.er1
 
14588
  ac_status=$?
 
14589
  grep -v '^ *+' conftest.er1 >conftest.err
 
14590
  rm -f conftest.er1
 
14591
  cat conftest.err >&5
 
14592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14593
  (exit $ac_status); } &&
 
14594
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14596
  (eval $ac_try) 2>&5
 
14597
  ac_status=$?
 
14598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14599
  (exit $ac_status); }; } &&
 
14600
         { ac_try='test -s conftest.$ac_objext'
 
14601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14602
  (eval $ac_try) 2>&5
 
14603
  ac_status=$?
 
14604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14605
  (exit $ac_status); }; }; then
 
14606
  ac_cv_type_signal=void
 
14607
else
 
14608
  echo "$as_me: failed program was:" >&5
 
14609
sed 's/^/| /' conftest.$ac_ext >&5
 
14610
 
 
14611
ac_cv_type_signal=int
 
14612
fi
 
14613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14614
fi
 
14615
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
14616
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
14617
 
 
14618
cat >>confdefs.h <<_ACEOF
 
14619
#define RETSIGTYPE $ac_cv_type_signal
 
14620
_ACEOF
 
14621
 
 
14622
 
 
14623
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
 
14624
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
 
14625
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
 
14626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14627
else
 
14628
  cat >conftest.$ac_ext <<_ACEOF
 
14629
/* confdefs.h.  */
 
14630
_ACEOF
 
14631
cat confdefs.h >>conftest.$ac_ext
 
14632
cat >>conftest.$ac_ext <<_ACEOF
 
14633
/* end confdefs.h.  */
 
14634
#include <signal.h>
 
14635
/* NetBSD declares sys_siglist in unistd.h.  */
 
14636
#if HAVE_UNISTD_H
 
14637
# include <unistd.h>
 
14638
#endif
 
14639
 
 
14640
 
 
14641
int
 
14642
main ()
 
14643
{
 
14644
#ifndef sys_siglist
 
14645
  char *p = (char *) sys_siglist;
 
14646
#endif
 
14647
 
 
14648
  ;
 
14649
  return 0;
 
14650
}
 
14651
_ACEOF
 
14652
rm -f conftest.$ac_objext
 
14653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14654
  (eval $ac_compile) 2>conftest.er1
 
14655
  ac_status=$?
 
14656
  grep -v '^ *+' conftest.er1 >conftest.err
 
14657
  rm -f conftest.er1
 
14658
  cat conftest.err >&5
 
14659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14660
  (exit $ac_status); } &&
 
14661
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14663
  (eval $ac_try) 2>&5
 
14664
  ac_status=$?
 
14665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14666
  (exit $ac_status); }; } &&
 
14667
         { ac_try='test -s conftest.$ac_objext'
 
14668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14669
  (eval $ac_try) 2>&5
 
14670
  ac_status=$?
 
14671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14672
  (exit $ac_status); }; }; then
 
14673
  ac_cv_have_decl_sys_siglist=yes
 
14674
else
 
14675
  echo "$as_me: failed program was:" >&5
 
14676
sed 's/^/| /' conftest.$ac_ext >&5
 
14677
 
 
14678
ac_cv_have_decl_sys_siglist=no
 
14679
fi
 
14680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14681
fi
 
14682
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
 
14683
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
 
14684
if test $ac_cv_have_decl_sys_siglist = yes; then
 
14685
 
 
14686
cat >>confdefs.h <<_ACEOF
 
14687
#define HAVE_DECL_SYS_SIGLIST 1
 
14688
_ACEOF
 
14689
 
 
14690
 
 
14691
else
 
14692
  cat >>confdefs.h <<_ACEOF
 
14693
#define HAVE_DECL_SYS_SIGLIST 0
 
14694
_ACEOF
 
14695
 
 
14696
 
 
14697
fi
 
14698
 
 
14699
 
 
14700
 
 
14701
 
 
14702
 
 
14703
    tmp_assumed_endian=big
 
14704
    if test "$cross_compiling" = yes; then
 
14705
      case "$host_cpu" in
 
14706
         i[345678]* )
 
14707
            tmp_assumed_endian=little
 
14708
            ;;
 
14709
         *)
 
14710
            ;;
 
14711
      esac
 
14712
      { echo "$as_me:$LINENO: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&5
 
14713
echo "$as_me: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&2;}
 
14714
    fi
 
14715
    echo "$as_me:$LINENO: checking endianess" >&5
 
14716
echo $ECHO_N "checking endianess... $ECHO_C" >&6
 
14717
    if test "${gnupg_cv_c_endian+set}" = set; then
 
14718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14719
else
 
14720
   gnupg_cv_c_endian=unknown
 
14721
        # See if sys/param.h defines the BYTE_ORDER macro.
 
14722
        cat >conftest.$ac_ext <<_ACEOF
 
14723
/* confdefs.h.  */
 
14724
_ACEOF
 
14725
cat confdefs.h >>conftest.$ac_ext
 
14726
cat >>conftest.$ac_ext <<_ACEOF
 
14727
/* end confdefs.h.  */
 
14728
#include <sys/types.h>
 
14729
        #include <sys/param.h>
 
14730
int
 
14731
main ()
 
14732
{
 
14733
 
 
14734
        #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
14735
         bogus endian macros
 
14736
        #endif
 
14737
  ;
 
14738
  return 0;
 
14739
}
 
14740
_ACEOF
 
14741
rm -f conftest.$ac_objext
 
14742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14743
  (eval $ac_compile) 2>conftest.er1
 
14744
  ac_status=$?
 
14745
  grep -v '^ *+' conftest.er1 >conftest.err
 
14746
  rm -f conftest.er1
 
14747
  cat conftest.err >&5
 
14748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14749
  (exit $ac_status); } &&
 
14750
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14752
  (eval $ac_try) 2>&5
 
14753
  ac_status=$?
 
14754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14755
  (exit $ac_status); }; } &&
 
14756
         { ac_try='test -s conftest.$ac_objext'
 
14757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14758
  (eval $ac_try) 2>&5
 
14759
  ac_status=$?
 
14760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14761
  (exit $ac_status); }; }; then
 
14762
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
14763
        cat >conftest.$ac_ext <<_ACEOF
 
14764
/* confdefs.h.  */
 
14765
_ACEOF
 
14766
cat confdefs.h >>conftest.$ac_ext
 
14767
cat >>conftest.$ac_ext <<_ACEOF
 
14768
/* end confdefs.h.  */
 
14769
#include <sys/types.h>
 
14770
        #include <sys/param.h>
 
14771
int
 
14772
main ()
 
14773
{
 
14774
 
 
14775
        #if BYTE_ORDER != BIG_ENDIAN
 
14776
         not big endian
 
14777
        #endif
 
14778
  ;
 
14779
  return 0;
 
14780
}
 
14781
_ACEOF
 
14782
rm -f conftest.$ac_objext
 
14783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14784
  (eval $ac_compile) 2>conftest.er1
 
14785
  ac_status=$?
 
14786
  grep -v '^ *+' conftest.er1 >conftest.err
 
14787
  rm -f conftest.er1
 
14788
  cat conftest.err >&5
 
14789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14790
  (exit $ac_status); } &&
 
14791
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14793
  (eval $ac_try) 2>&5
 
14794
  ac_status=$?
 
14795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14796
  (exit $ac_status); }; } &&
 
14797
         { ac_try='test -s conftest.$ac_objext'
 
14798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14799
  (eval $ac_try) 2>&5
 
14800
  ac_status=$?
 
14801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14802
  (exit $ac_status); }; }; then
 
14803
  gnupg_cv_c_endian=big
 
14804
else
 
14805
  echo "$as_me: failed program was:" >&5
 
14806
sed 's/^/| /' conftest.$ac_ext >&5
 
14807
 
 
14808
gnupg_cv_c_endian=little
 
14809
fi
 
14810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14811
else
 
14812
  echo "$as_me: failed program was:" >&5
 
14813
sed 's/^/| /' conftest.$ac_ext >&5
 
14814
 
 
14815
fi
 
14816
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14817
        if test "$gnupg_cv_c_endian" = unknown; then
 
14818
            if test "$cross_compiling" = yes; then
 
14819
  gnupg_cv_c_endian=$tmp_assumed_endian
 
14820
 
 
14821
else
 
14822
  cat >conftest.$ac_ext <<_ACEOF
 
14823
/* confdefs.h.  */
 
14824
_ACEOF
 
14825
cat confdefs.h >>conftest.$ac_ext
 
14826
cat >>conftest.$ac_ext <<_ACEOF
 
14827
/* end confdefs.h.  */
 
14828
main () {
 
14829
              /* Are we little or big endian?  From Harbison&Steele.  */
 
14830
              union
 
14831
              {
 
14832
                long l;
 
14833
                char c[sizeof (long)];
 
14834
              } u;
 
14835
              u.l = 1;
 
14836
              exit (u.c[sizeof (long) - 1] == 1);
 
14837
              }
 
14838
_ACEOF
 
14839
rm -f conftest$ac_exeext
 
14840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14841
  (eval $ac_link) 2>&5
 
14842
  ac_status=$?
 
14843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14844
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14846
  (eval $ac_try) 2>&5
 
14847
  ac_status=$?
 
14848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14849
  (exit $ac_status); }; }; then
 
14850
  gnupg_cv_c_endian=little
 
14851
else
 
14852
  echo "$as_me: program exited with status $ac_status" >&5
 
14853
echo "$as_me: failed program was:" >&5
 
14854
sed 's/^/| /' conftest.$ac_ext >&5
 
14855
 
 
14856
( exit $ac_status )
 
14857
gnupg_cv_c_endian=big
 
14858
fi
 
14859
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14860
fi
 
14861
        fi
 
14862
 
 
14863
fi
 
14864
 
 
14865
    echo "$as_me:$LINENO: result: $gnupg_cv_c_endian" >&5
 
14866
echo "${ECHO_T}$gnupg_cv_c_endian" >&6
 
14867
    if test "$gnupg_cv_c_endian" = little; then
 
14868
 
 
14869
cat >>confdefs.h <<\_ACEOF
 
14870
#define LITTLE_ENDIAN_HOST 1
 
14871
_ACEOF
 
14872
 
 
14873
    else
 
14874
 
 
14875
cat >>confdefs.h <<\_ACEOF
 
14876
#define BIG_ENDIAN_HOST 1
 
14877
_ACEOF
 
14878
 
 
14879
    fi
 
14880
 
 
14881
 
 
14882
 echo "$as_me:$LINENO: checking for byte typedef" >&5
 
14883
echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6
 
14884
    if test "${gnupg_cv_typedef_byte+set}" = set; then
 
14885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14886
else
 
14887
  cat >conftest.$ac_ext <<_ACEOF
 
14888
/* confdefs.h.  */
 
14889
_ACEOF
 
14890
cat confdefs.h >>conftest.$ac_ext
 
14891
cat >>conftest.$ac_ext <<_ACEOF
 
14892
/* end confdefs.h.  */
 
14893
#define _GNU_SOURCE 1
 
14894
    #include <stdlib.h>
 
14895
    #include <sys/types.h>
 
14896
int
 
14897
main ()
 
14898
{
 
14899
 
 
14900
    #undef byte
 
14901
    int a = sizeof(byte);
 
14902
 
 
14903
  ;
 
14904
  return 0;
 
14905
}
 
14906
_ACEOF
 
14907
rm -f conftest.$ac_objext
 
14908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14909
  (eval $ac_compile) 2>conftest.er1
 
14910
  ac_status=$?
 
14911
  grep -v '^ *+' conftest.er1 >conftest.err
 
14912
  rm -f conftest.er1
 
14913
  cat conftest.err >&5
 
14914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14915
  (exit $ac_status); } &&
 
14916
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14918
  (eval $ac_try) 2>&5
 
14919
  ac_status=$?
 
14920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14921
  (exit $ac_status); }; } &&
 
14922
         { ac_try='test -s conftest.$ac_objext'
 
14923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14924
  (eval $ac_try) 2>&5
 
14925
  ac_status=$?
 
14926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14927
  (exit $ac_status); }; }; then
 
14928
  gnupg_cv_typedef_byte=yes
 
14929
else
 
14930
  echo "$as_me: failed program was:" >&5
 
14931
sed 's/^/| /' conftest.$ac_ext >&5
 
14932
 
 
14933
gnupg_cv_typedef_byte=no
 
14934
fi
 
14935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14936
fi
 
14937
 
 
14938
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
 
14939
echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6
 
14940
    if test "$gnupg_cv_typedef_byte" = yes; then
 
14941
 
 
14942
cat >>confdefs.h <<\_ACEOF
 
14943
#define HAVE_BYTE_TYPEDEF 1
 
14944
_ACEOF
 
14945
 
 
14946
    fi
 
14947
 
 
14948
 echo "$as_me:$LINENO: checking for ushort typedef" >&5
 
14949
echo $ECHO_N "checking for ushort typedef... $ECHO_C" >&6
 
14950
    if test "${gnupg_cv_typedef_ushort+set}" = set; then
 
14951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14952
else
 
14953
  cat >conftest.$ac_ext <<_ACEOF
 
14954
/* confdefs.h.  */
 
14955
_ACEOF
 
14956
cat confdefs.h >>conftest.$ac_ext
 
14957
cat >>conftest.$ac_ext <<_ACEOF
 
14958
/* end confdefs.h.  */
 
14959
#define _GNU_SOURCE 1
 
14960
    #include <stdlib.h>
 
14961
    #include <sys/types.h>
 
14962
int
 
14963
main ()
 
14964
{
 
14965
 
 
14966
    #undef ushort
 
14967
    int a = sizeof(ushort);
 
14968
 
 
14969
  ;
 
14970
  return 0;
 
14971
}
 
14972
_ACEOF
 
14973
rm -f conftest.$ac_objext
 
14974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14975
  (eval $ac_compile) 2>conftest.er1
 
14976
  ac_status=$?
 
14977
  grep -v '^ *+' conftest.er1 >conftest.err
 
14978
  rm -f conftest.er1
 
14979
  cat conftest.err >&5
 
14980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14981
  (exit $ac_status); } &&
 
14982
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14984
  (eval $ac_try) 2>&5
 
14985
  ac_status=$?
 
14986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14987
  (exit $ac_status); }; } &&
 
14988
         { ac_try='test -s conftest.$ac_objext'
 
14989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14990
  (eval $ac_try) 2>&5
 
14991
  ac_status=$?
 
14992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14993
  (exit $ac_status); }; }; then
 
14994
  gnupg_cv_typedef_ushort=yes
 
14995
else
 
14996
  echo "$as_me: failed program was:" >&5
 
14997
sed 's/^/| /' conftest.$ac_ext >&5
 
14998
 
 
14999
gnupg_cv_typedef_ushort=no
 
15000
fi
 
15001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15002
fi
 
15003
 
 
15004
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ushort" >&5
 
15005
echo "${ECHO_T}$gnupg_cv_typedef_ushort" >&6
 
15006
    if test "$gnupg_cv_typedef_ushort" = yes; then
 
15007
 
 
15008
cat >>confdefs.h <<\_ACEOF
 
15009
#define HAVE_USHORT_TYPEDEF 1
 
15010
_ACEOF
 
15011
 
 
15012
    fi
 
15013
 
 
15014
 echo "$as_me:$LINENO: checking for ulong typedef" >&5
 
15015
echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6
 
15016
    if test "${gnupg_cv_typedef_ulong+set}" = set; then
 
15017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15018
else
 
15019
  cat >conftest.$ac_ext <<_ACEOF
 
15020
/* confdefs.h.  */
 
15021
_ACEOF
 
15022
cat confdefs.h >>conftest.$ac_ext
 
15023
cat >>conftest.$ac_ext <<_ACEOF
 
15024
/* end confdefs.h.  */
 
15025
#define _GNU_SOURCE 1
 
15026
    #include <stdlib.h>
 
15027
    #include <sys/types.h>
 
15028
int
 
15029
main ()
 
15030
{
 
15031
 
 
15032
    #undef ulong
 
15033
    int a = sizeof(ulong);
 
15034
 
 
15035
  ;
 
15036
  return 0;
 
15037
}
 
15038
_ACEOF
 
15039
rm -f conftest.$ac_objext
 
15040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15041
  (eval $ac_compile) 2>conftest.er1
 
15042
  ac_status=$?
 
15043
  grep -v '^ *+' conftest.er1 >conftest.err
 
15044
  rm -f conftest.er1
 
15045
  cat conftest.err >&5
 
15046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15047
  (exit $ac_status); } &&
 
15048
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15050
  (eval $ac_try) 2>&5
 
15051
  ac_status=$?
 
15052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15053
  (exit $ac_status); }; } &&
 
15054
         { ac_try='test -s conftest.$ac_objext'
 
15055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15056
  (eval $ac_try) 2>&5
 
15057
  ac_status=$?
 
15058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15059
  (exit $ac_status); }; }; then
 
15060
  gnupg_cv_typedef_ulong=yes
 
15061
else
 
15062
  echo "$as_me: failed program was:" >&5
 
15063
sed 's/^/| /' conftest.$ac_ext >&5
 
15064
 
 
15065
gnupg_cv_typedef_ulong=no
 
15066
fi
 
15067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15068
fi
 
15069
 
 
15070
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
 
15071
echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6
 
15072
    if test "$gnupg_cv_typedef_ulong" = yes; then
 
15073
 
 
15074
cat >>confdefs.h <<\_ACEOF
 
15075
#define HAVE_ULONG_TYPEDEF 1
 
15076
_ACEOF
 
15077
 
 
15078
    fi
 
15079
 
 
15080
 echo "$as_me:$LINENO: checking for u16 typedef" >&5
 
15081
echo $ECHO_N "checking for u16 typedef... $ECHO_C" >&6
 
15082
    if test "${gnupg_cv_typedef_u16+set}" = set; then
 
15083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15084
else
 
15085
  cat >conftest.$ac_ext <<_ACEOF
 
15086
/* confdefs.h.  */
 
15087
_ACEOF
 
15088
cat confdefs.h >>conftest.$ac_ext
 
15089
cat >>conftest.$ac_ext <<_ACEOF
 
15090
/* end confdefs.h.  */
 
15091
#define _GNU_SOURCE 1
 
15092
    #include <stdlib.h>
 
15093
    #include <sys/types.h>
 
15094
int
 
15095
main ()
 
15096
{
 
15097
 
 
15098
    #undef u16
 
15099
    int a = sizeof(u16);
 
15100
 
 
15101
  ;
 
15102
  return 0;
 
15103
}
 
15104
_ACEOF
 
15105
rm -f conftest.$ac_objext
 
15106
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15107
  (eval $ac_compile) 2>conftest.er1
 
15108
  ac_status=$?
 
15109
  grep -v '^ *+' conftest.er1 >conftest.err
 
15110
  rm -f conftest.er1
 
15111
  cat conftest.err >&5
 
15112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15113
  (exit $ac_status); } &&
 
15114
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15116
  (eval $ac_try) 2>&5
 
15117
  ac_status=$?
 
15118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15119
  (exit $ac_status); }; } &&
 
15120
         { ac_try='test -s conftest.$ac_objext'
 
15121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15122
  (eval $ac_try) 2>&5
 
15123
  ac_status=$?
 
15124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15125
  (exit $ac_status); }; }; then
 
15126
  gnupg_cv_typedef_u16=yes
 
15127
else
 
15128
  echo "$as_me: failed program was:" >&5
 
15129
sed 's/^/| /' conftest.$ac_ext >&5
 
15130
 
 
15131
gnupg_cv_typedef_u16=no
 
15132
fi
 
15133
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15134
fi
 
15135
 
 
15136
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u16" >&5
 
15137
echo "${ECHO_T}$gnupg_cv_typedef_u16" >&6
 
15138
    if test "$gnupg_cv_typedef_u16" = yes; then
 
15139
 
 
15140
cat >>confdefs.h <<\_ACEOF
 
15141
#define HAVE_U16_TYPEDEF 1
 
15142
_ACEOF
 
15143
 
 
15144
    fi
 
15145
 
 
15146
 echo "$as_me:$LINENO: checking for u32 typedef" >&5
 
15147
echo $ECHO_N "checking for u32 typedef... $ECHO_C" >&6
 
15148
    if test "${gnupg_cv_typedef_u32+set}" = set; then
 
15149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15150
else
 
15151
  cat >conftest.$ac_ext <<_ACEOF
 
15152
/* confdefs.h.  */
 
15153
_ACEOF
 
15154
cat confdefs.h >>conftest.$ac_ext
 
15155
cat >>conftest.$ac_ext <<_ACEOF
 
15156
/* end confdefs.h.  */
 
15157
#define _GNU_SOURCE 1
 
15158
    #include <stdlib.h>
 
15159
    #include <sys/types.h>
 
15160
int
 
15161
main ()
 
15162
{
 
15163
 
 
15164
    #undef u32
 
15165
    int a = sizeof(u32);
 
15166
 
 
15167
  ;
 
15168
  return 0;
 
15169
}
 
15170
_ACEOF
 
15171
rm -f conftest.$ac_objext
 
15172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15173
  (eval $ac_compile) 2>conftest.er1
 
15174
  ac_status=$?
 
15175
  grep -v '^ *+' conftest.er1 >conftest.err
 
15176
  rm -f conftest.er1
 
15177
  cat conftest.err >&5
 
15178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15179
  (exit $ac_status); } &&
 
15180
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15182
  (eval $ac_try) 2>&5
 
15183
  ac_status=$?
 
15184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15185
  (exit $ac_status); }; } &&
 
15186
         { ac_try='test -s conftest.$ac_objext'
 
15187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15188
  (eval $ac_try) 2>&5
 
15189
  ac_status=$?
 
15190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15191
  (exit $ac_status); }; }; then
 
15192
  gnupg_cv_typedef_u32=yes
 
15193
else
 
15194
  echo "$as_me: failed program was:" >&5
 
15195
sed 's/^/| /' conftest.$ac_ext >&5
 
15196
 
 
15197
gnupg_cv_typedef_u32=no
 
15198
fi
 
15199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15200
fi
 
15201
 
 
15202
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u32" >&5
 
15203
echo "${ECHO_T}$gnupg_cv_typedef_u32" >&6
 
15204
    if test "$gnupg_cv_typedef_u32" = yes; then
 
15205
 
 
15206
cat >>confdefs.h <<\_ACEOF
 
15207
#define HAVE_U32_TYPEDEF 1
 
15208
_ACEOF
 
15209
 
 
15210
    fi
 
15211
 
 
15212
 
 
15213
echo "$as_me:$LINENO: checking for unsigned short" >&5
 
15214
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
 
15215
if test "${ac_cv_type_unsigned_short+set}" = set; then
 
15216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15217
else
 
15218
  cat >conftest.$ac_ext <<_ACEOF
 
15219
/* confdefs.h.  */
 
15220
_ACEOF
 
15221
cat confdefs.h >>conftest.$ac_ext
 
15222
cat >>conftest.$ac_ext <<_ACEOF
 
15223
/* end confdefs.h.  */
 
15224
$ac_includes_default
 
15225
int
 
15226
main ()
 
15227
{
 
15228
if ((unsigned short *) 0)
 
15229
  return 0;
 
15230
if (sizeof (unsigned short))
 
15231
  return 0;
 
15232
  ;
 
15233
  return 0;
 
15234
}
 
15235
_ACEOF
 
15236
rm -f conftest.$ac_objext
 
15237
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15238
  (eval $ac_compile) 2>conftest.er1
 
15239
  ac_status=$?
 
15240
  grep -v '^ *+' conftest.er1 >conftest.err
 
15241
  rm -f conftest.er1
 
15242
  cat conftest.err >&5
 
15243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15244
  (exit $ac_status); } &&
 
15245
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15247
  (eval $ac_try) 2>&5
 
15248
  ac_status=$?
 
15249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15250
  (exit $ac_status); }; } &&
 
15251
         { ac_try='test -s conftest.$ac_objext'
 
15252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15253
  (eval $ac_try) 2>&5
 
15254
  ac_status=$?
 
15255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15256
  (exit $ac_status); }; }; then
 
15257
  ac_cv_type_unsigned_short=yes
 
15258
else
 
15259
  echo "$as_me: failed program was:" >&5
 
15260
sed 's/^/| /' conftest.$ac_ext >&5
 
15261
 
 
15262
ac_cv_type_unsigned_short=no
 
15263
fi
 
15264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15265
fi
 
15266
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
 
15267
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
 
15268
 
 
15269
echo "$as_me:$LINENO: checking size of unsigned short" >&5
 
15270
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
 
15271
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
 
15272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15273
else
 
15274
  if test "$ac_cv_type_unsigned_short" = yes; then
 
15275
  # The cast to unsigned long works around a bug in the HP C Compiler
 
15276
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15277
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15278
  # This bug is HP SR number 8606223364.
 
15279
  if test "$cross_compiling" = yes; then
 
15280
  # Depending upon the size, compute the lo and hi bounds.
 
15281
cat >conftest.$ac_ext <<_ACEOF
 
15282
/* confdefs.h.  */
 
15283
_ACEOF
 
15284
cat confdefs.h >>conftest.$ac_ext
 
15285
cat >>conftest.$ac_ext <<_ACEOF
 
15286
/* end confdefs.h.  */
 
15287
$ac_includes_default
 
15288
int
 
15289
main ()
 
15290
{
 
15291
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
 
15292
test_array [0] = 0
 
15293
 
 
15294
  ;
 
15295
  return 0;
 
15296
}
 
15297
_ACEOF
 
15298
rm -f conftest.$ac_objext
 
15299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15300
  (eval $ac_compile) 2>conftest.er1
 
15301
  ac_status=$?
 
15302
  grep -v '^ *+' conftest.er1 >conftest.err
 
15303
  rm -f conftest.er1
 
15304
  cat conftest.err >&5
 
15305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15306
  (exit $ac_status); } &&
 
15307
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15309
  (eval $ac_try) 2>&5
 
15310
  ac_status=$?
 
15311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15312
  (exit $ac_status); }; } &&
 
15313
         { ac_try='test -s conftest.$ac_objext'
 
15314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15315
  (eval $ac_try) 2>&5
 
15316
  ac_status=$?
 
15317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15318
  (exit $ac_status); }; }; then
 
15319
  ac_lo=0 ac_mid=0
 
15320
  while :; do
 
15321
    cat >conftest.$ac_ext <<_ACEOF
 
15322
/* confdefs.h.  */
 
15323
_ACEOF
 
15324
cat confdefs.h >>conftest.$ac_ext
 
15325
cat >>conftest.$ac_ext <<_ACEOF
 
15326
/* end confdefs.h.  */
 
15327
$ac_includes_default
 
15328
int
 
15329
main ()
 
15330
{
 
15331
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
 
15332
test_array [0] = 0
 
15333
 
 
15334
  ;
 
15335
  return 0;
 
15336
}
 
15337
_ACEOF
 
15338
rm -f conftest.$ac_objext
 
15339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15340
  (eval $ac_compile) 2>conftest.er1
 
15341
  ac_status=$?
 
15342
  grep -v '^ *+' conftest.er1 >conftest.err
 
15343
  rm -f conftest.er1
 
15344
  cat conftest.err >&5
 
15345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15346
  (exit $ac_status); } &&
 
15347
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15349
  (eval $ac_try) 2>&5
 
15350
  ac_status=$?
 
15351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15352
  (exit $ac_status); }; } &&
 
15353
         { ac_try='test -s conftest.$ac_objext'
 
15354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15355
  (eval $ac_try) 2>&5
 
15356
  ac_status=$?
 
15357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15358
  (exit $ac_status); }; }; then
 
15359
  ac_hi=$ac_mid; break
 
15360
else
 
15361
  echo "$as_me: failed program was:" >&5
 
15362
sed 's/^/| /' conftest.$ac_ext >&5
 
15363
 
 
15364
ac_lo=`expr $ac_mid + 1`
 
15365
                    if test $ac_lo -le $ac_mid; then
 
15366
                      ac_lo= ac_hi=
 
15367
                      break
 
15368
                    fi
 
15369
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15370
fi
 
15371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15372
  done
 
15373
else
 
15374
  echo "$as_me: failed program was:" >&5
 
15375
sed 's/^/| /' conftest.$ac_ext >&5
 
15376
 
 
15377
cat >conftest.$ac_ext <<_ACEOF
 
15378
/* confdefs.h.  */
 
15379
_ACEOF
 
15380
cat confdefs.h >>conftest.$ac_ext
 
15381
cat >>conftest.$ac_ext <<_ACEOF
 
15382
/* end confdefs.h.  */
 
15383
$ac_includes_default
 
15384
int
 
15385
main ()
 
15386
{
 
15387
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
 
15388
test_array [0] = 0
 
15389
 
 
15390
  ;
 
15391
  return 0;
 
15392
}
 
15393
_ACEOF
 
15394
rm -f conftest.$ac_objext
 
15395
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15396
  (eval $ac_compile) 2>conftest.er1
 
15397
  ac_status=$?
 
15398
  grep -v '^ *+' conftest.er1 >conftest.err
 
15399
  rm -f conftest.er1
 
15400
  cat conftest.err >&5
 
15401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15402
  (exit $ac_status); } &&
 
15403
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15405
  (eval $ac_try) 2>&5
 
15406
  ac_status=$?
 
15407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15408
  (exit $ac_status); }; } &&
 
15409
         { ac_try='test -s conftest.$ac_objext'
 
15410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15411
  (eval $ac_try) 2>&5
 
15412
  ac_status=$?
 
15413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15414
  (exit $ac_status); }; }; then
 
15415
  ac_hi=-1 ac_mid=-1
 
15416
  while :; do
 
15417
    cat >conftest.$ac_ext <<_ACEOF
 
15418
/* confdefs.h.  */
 
15419
_ACEOF
 
15420
cat confdefs.h >>conftest.$ac_ext
 
15421
cat >>conftest.$ac_ext <<_ACEOF
 
15422
/* end confdefs.h.  */
 
15423
$ac_includes_default
 
15424
int
 
15425
main ()
 
15426
{
 
15427
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
 
15428
test_array [0] = 0
 
15429
 
 
15430
  ;
 
15431
  return 0;
 
15432
}
 
15433
_ACEOF
 
15434
rm -f conftest.$ac_objext
 
15435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15436
  (eval $ac_compile) 2>conftest.er1
 
15437
  ac_status=$?
 
15438
  grep -v '^ *+' conftest.er1 >conftest.err
 
15439
  rm -f conftest.er1
 
15440
  cat conftest.err >&5
 
15441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15442
  (exit $ac_status); } &&
 
15443
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15445
  (eval $ac_try) 2>&5
 
15446
  ac_status=$?
 
15447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15448
  (exit $ac_status); }; } &&
 
15449
         { ac_try='test -s conftest.$ac_objext'
 
15450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15451
  (eval $ac_try) 2>&5
 
15452
  ac_status=$?
 
15453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15454
  (exit $ac_status); }; }; then
 
15455
  ac_lo=$ac_mid; break
 
15456
else
 
15457
  echo "$as_me: failed program was:" >&5
 
15458
sed 's/^/| /' conftest.$ac_ext >&5
 
15459
 
 
15460
ac_hi=`expr '(' $ac_mid ')' - 1`
 
15461
                       if test $ac_mid -le $ac_hi; then
 
15462
                         ac_lo= ac_hi=
 
15463
                         break
 
15464
                       fi
 
15465
                       ac_mid=`expr 2 '*' $ac_mid`
 
15466
fi
 
15467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15468
  done
 
15469
else
 
15470
  echo "$as_me: failed program was:" >&5
 
15471
sed 's/^/| /' conftest.$ac_ext >&5
 
15472
 
 
15473
ac_lo= ac_hi=
 
15474
fi
 
15475
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15476
fi
 
15477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15478
# Binary search between lo and hi bounds.
 
15479
while test "x$ac_lo" != "x$ac_hi"; do
 
15480
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
15481
  cat >conftest.$ac_ext <<_ACEOF
 
15482
/* confdefs.h.  */
 
15483
_ACEOF
 
15484
cat confdefs.h >>conftest.$ac_ext
 
15485
cat >>conftest.$ac_ext <<_ACEOF
 
15486
/* end confdefs.h.  */
 
15487
$ac_includes_default
 
15488
int
 
15489
main ()
 
15490
{
 
15491
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
 
15492
test_array [0] = 0
 
15493
 
 
15494
  ;
 
15495
  return 0;
 
15496
}
 
15497
_ACEOF
 
15498
rm -f conftest.$ac_objext
 
15499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15500
  (eval $ac_compile) 2>conftest.er1
 
15501
  ac_status=$?
 
15502
  grep -v '^ *+' conftest.er1 >conftest.err
 
15503
  rm -f conftest.er1
 
15504
  cat conftest.err >&5
 
15505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15506
  (exit $ac_status); } &&
 
15507
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15509
  (eval $ac_try) 2>&5
 
15510
  ac_status=$?
 
15511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15512
  (exit $ac_status); }; } &&
 
15513
         { ac_try='test -s conftest.$ac_objext'
 
15514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15515
  (eval $ac_try) 2>&5
 
15516
  ac_status=$?
 
15517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15518
  (exit $ac_status); }; }; then
 
15519
  ac_hi=$ac_mid
 
15520
else
 
15521
  echo "$as_me: failed program was:" >&5
 
15522
sed 's/^/| /' conftest.$ac_ext >&5
 
15523
 
 
15524
ac_lo=`expr '(' $ac_mid ')' + 1`
 
15525
fi
 
15526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15527
done
 
15528
case $ac_lo in
 
15529
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
 
15530
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
 
15531
See \`config.log' for more details." >&5
 
15532
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
 
15533
See \`config.log' for more details." >&2;}
 
15534
   { (exit 1); exit 1; }; } ;;
 
15535
esac
 
15536
else
 
15537
  if test "$cross_compiling" = yes; then
 
15538
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
15539
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
15540
   { (exit 1); exit 1; }; }
 
15541
else
 
15542
  cat >conftest.$ac_ext <<_ACEOF
 
15543
/* confdefs.h.  */
 
15544
_ACEOF
 
15545
cat confdefs.h >>conftest.$ac_ext
 
15546
cat >>conftest.$ac_ext <<_ACEOF
 
15547
/* end confdefs.h.  */
 
15548
$ac_includes_default
 
15549
long longval () { return (long) (sizeof (unsigned short)); }
 
15550
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
 
15551
#include <stdio.h>
 
15552
#include <stdlib.h>
 
15553
int
 
15554
main ()
 
15555
{
 
15556
 
 
15557
  FILE *f = fopen ("conftest.val", "w");
 
15558
  if (! f)
 
15559
    exit (1);
 
15560
  if (((long) (sizeof (unsigned short))) < 0)
 
15561
    {
 
15562
      long i = longval ();
 
15563
      if (i != ((long) (sizeof (unsigned short))))
 
15564
        exit (1);
 
15565
      fprintf (f, "%ld\n", i);
 
15566
    }
 
15567
  else
 
15568
    {
 
15569
      unsigned long i = ulongval ();
 
15570
      if (i != ((long) (sizeof (unsigned short))))
 
15571
        exit (1);
 
15572
      fprintf (f, "%lu\n", i);
 
15573
    }
 
15574
  exit (ferror (f) || fclose (f) != 0);
 
15575
 
 
15576
  ;
 
15577
  return 0;
 
15578
}
 
15579
_ACEOF
 
15580
rm -f conftest$ac_exeext
 
15581
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15582
  (eval $ac_link) 2>&5
 
15583
  ac_status=$?
 
15584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15585
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15587
  (eval $ac_try) 2>&5
 
15588
  ac_status=$?
 
15589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15590
  (exit $ac_status); }; }; then
 
15591
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
 
15592
else
 
15593
  echo "$as_me: program exited with status $ac_status" >&5
 
15594
echo "$as_me: failed program was:" >&5
 
15595
sed 's/^/| /' conftest.$ac_ext >&5
 
15596
 
 
15597
( exit $ac_status )
 
15598
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
 
15599
See \`config.log' for more details." >&5
 
15600
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
 
15601
See \`config.log' for more details." >&2;}
 
15602
   { (exit 1); exit 1; }; }
 
15603
fi
 
15604
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15605
fi
 
15606
fi
 
15607
rm -f conftest.val
 
15608
else
 
15609
  ac_cv_sizeof_unsigned_short=0
 
15610
fi
 
15611
fi
 
15612
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
 
15613
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
 
15614
cat >>confdefs.h <<_ACEOF
 
15615
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
 
15616
_ACEOF
 
15617
 
 
15618
 
 
15619
echo "$as_me:$LINENO: checking for unsigned int" >&5
 
15620
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
 
15621
if test "${ac_cv_type_unsigned_int+set}" = set; then
 
15622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15623
else
 
15624
  cat >conftest.$ac_ext <<_ACEOF
 
15625
/* confdefs.h.  */
 
15626
_ACEOF
 
15627
cat confdefs.h >>conftest.$ac_ext
 
15628
cat >>conftest.$ac_ext <<_ACEOF
 
15629
/* end confdefs.h.  */
 
15630
$ac_includes_default
 
15631
int
 
15632
main ()
 
15633
{
 
15634
if ((unsigned int *) 0)
 
15635
  return 0;
 
15636
if (sizeof (unsigned int))
 
15637
  return 0;
 
15638
  ;
 
15639
  return 0;
 
15640
}
 
15641
_ACEOF
 
15642
rm -f conftest.$ac_objext
 
15643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15644
  (eval $ac_compile) 2>conftest.er1
 
15645
  ac_status=$?
 
15646
  grep -v '^ *+' conftest.er1 >conftest.err
 
15647
  rm -f conftest.er1
 
15648
  cat conftest.err >&5
 
15649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15650
  (exit $ac_status); } &&
 
15651
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15653
  (eval $ac_try) 2>&5
 
15654
  ac_status=$?
 
15655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15656
  (exit $ac_status); }; } &&
 
15657
         { ac_try='test -s conftest.$ac_objext'
 
15658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15659
  (eval $ac_try) 2>&5
 
15660
  ac_status=$?
 
15661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15662
  (exit $ac_status); }; }; then
 
15663
  ac_cv_type_unsigned_int=yes
 
15664
else
 
15665
  echo "$as_me: failed program was:" >&5
 
15666
sed 's/^/| /' conftest.$ac_ext >&5
 
15667
 
 
15668
ac_cv_type_unsigned_int=no
 
15669
fi
 
15670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15671
fi
 
15672
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
 
15673
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
 
15674
 
 
15675
echo "$as_me:$LINENO: checking size of unsigned int" >&5
 
15676
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
 
15677
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
 
15678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15679
else
 
15680
  if test "$ac_cv_type_unsigned_int" = yes; then
 
15681
  # The cast to unsigned long works around a bug in the HP C Compiler
 
15682
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15683
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15684
  # This bug is HP SR number 8606223364.
 
15685
  if test "$cross_compiling" = yes; then
 
15686
  # Depending upon the size, compute the lo and hi bounds.
 
15687
cat >conftest.$ac_ext <<_ACEOF
 
15688
/* confdefs.h.  */
 
15689
_ACEOF
 
15690
cat confdefs.h >>conftest.$ac_ext
 
15691
cat >>conftest.$ac_ext <<_ACEOF
 
15692
/* end confdefs.h.  */
 
15693
$ac_includes_default
 
15694
int
 
15695
main ()
 
15696
{
 
15697
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
 
15698
test_array [0] = 0
 
15699
 
 
15700
  ;
 
15701
  return 0;
 
15702
}
 
15703
_ACEOF
 
15704
rm -f conftest.$ac_objext
 
15705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15706
  (eval $ac_compile) 2>conftest.er1
 
15707
  ac_status=$?
 
15708
  grep -v '^ *+' conftest.er1 >conftest.err
 
15709
  rm -f conftest.er1
 
15710
  cat conftest.err >&5
 
15711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15712
  (exit $ac_status); } &&
 
15713
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15715
  (eval $ac_try) 2>&5
 
15716
  ac_status=$?
 
15717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15718
  (exit $ac_status); }; } &&
 
15719
         { ac_try='test -s conftest.$ac_objext'
 
15720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15721
  (eval $ac_try) 2>&5
 
15722
  ac_status=$?
 
15723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15724
  (exit $ac_status); }; }; then
 
15725
  ac_lo=0 ac_mid=0
 
15726
  while :; do
 
15727
    cat >conftest.$ac_ext <<_ACEOF
 
15728
/* confdefs.h.  */
 
15729
_ACEOF
 
15730
cat confdefs.h >>conftest.$ac_ext
 
15731
cat >>conftest.$ac_ext <<_ACEOF
 
15732
/* end confdefs.h.  */
 
15733
$ac_includes_default
 
15734
int
 
15735
main ()
 
15736
{
 
15737
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
 
15738
test_array [0] = 0
 
15739
 
 
15740
  ;
 
15741
  return 0;
 
15742
}
 
15743
_ACEOF
 
15744
rm -f conftest.$ac_objext
 
15745
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15746
  (eval $ac_compile) 2>conftest.er1
 
15747
  ac_status=$?
 
15748
  grep -v '^ *+' conftest.er1 >conftest.err
 
15749
  rm -f conftest.er1
 
15750
  cat conftest.err >&5
 
15751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15752
  (exit $ac_status); } &&
 
15753
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15755
  (eval $ac_try) 2>&5
 
15756
  ac_status=$?
 
15757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15758
  (exit $ac_status); }; } &&
 
15759
         { ac_try='test -s conftest.$ac_objext'
 
15760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15761
  (eval $ac_try) 2>&5
 
15762
  ac_status=$?
 
15763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15764
  (exit $ac_status); }; }; then
 
15765
  ac_hi=$ac_mid; break
 
15766
else
 
15767
  echo "$as_me: failed program was:" >&5
 
15768
sed 's/^/| /' conftest.$ac_ext >&5
 
15769
 
 
15770
ac_lo=`expr $ac_mid + 1`
 
15771
                    if test $ac_lo -le $ac_mid; then
 
15772
                      ac_lo= ac_hi=
 
15773
                      break
 
15774
                    fi
 
15775
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15776
fi
 
15777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15778
  done
 
15779
else
 
15780
  echo "$as_me: failed program was:" >&5
 
15781
sed 's/^/| /' conftest.$ac_ext >&5
 
15782
 
 
15783
cat >conftest.$ac_ext <<_ACEOF
 
15784
/* confdefs.h.  */
 
15785
_ACEOF
 
15786
cat confdefs.h >>conftest.$ac_ext
 
15787
cat >>conftest.$ac_ext <<_ACEOF
 
15788
/* end confdefs.h.  */
 
15789
$ac_includes_default
 
15790
int
 
15791
main ()
 
15792
{
 
15793
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
 
15794
test_array [0] = 0
 
15795
 
 
15796
  ;
 
15797
  return 0;
 
15798
}
 
15799
_ACEOF
 
15800
rm -f conftest.$ac_objext
 
15801
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15802
  (eval $ac_compile) 2>conftest.er1
 
15803
  ac_status=$?
 
15804
  grep -v '^ *+' conftest.er1 >conftest.err
 
15805
  rm -f conftest.er1
 
15806
  cat conftest.err >&5
 
15807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15808
  (exit $ac_status); } &&
 
15809
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15811
  (eval $ac_try) 2>&5
 
15812
  ac_status=$?
 
15813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15814
  (exit $ac_status); }; } &&
 
15815
         { ac_try='test -s conftest.$ac_objext'
 
15816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15817
  (eval $ac_try) 2>&5
 
15818
  ac_status=$?
 
15819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15820
  (exit $ac_status); }; }; then
 
15821
  ac_hi=-1 ac_mid=-1
 
15822
  while :; do
 
15823
    cat >conftest.$ac_ext <<_ACEOF
 
15824
/* confdefs.h.  */
 
15825
_ACEOF
 
15826
cat confdefs.h >>conftest.$ac_ext
 
15827
cat >>conftest.$ac_ext <<_ACEOF
 
15828
/* end confdefs.h.  */
 
15829
$ac_includes_default
 
15830
int
 
15831
main ()
 
15832
{
 
15833
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
 
15834
test_array [0] = 0
 
15835
 
 
15836
  ;
 
15837
  return 0;
 
15838
}
 
15839
_ACEOF
 
15840
rm -f conftest.$ac_objext
 
15841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15842
  (eval $ac_compile) 2>conftest.er1
 
15843
  ac_status=$?
 
15844
  grep -v '^ *+' conftest.er1 >conftest.err
 
15845
  rm -f conftest.er1
 
15846
  cat conftest.err >&5
 
15847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15848
  (exit $ac_status); } &&
 
15849
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15851
  (eval $ac_try) 2>&5
 
15852
  ac_status=$?
 
15853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15854
  (exit $ac_status); }; } &&
 
15855
         { ac_try='test -s conftest.$ac_objext'
 
15856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15857
  (eval $ac_try) 2>&5
 
15858
  ac_status=$?
 
15859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15860
  (exit $ac_status); }; }; then
 
15861
  ac_lo=$ac_mid; break
 
15862
else
 
15863
  echo "$as_me: failed program was:" >&5
 
15864
sed 's/^/| /' conftest.$ac_ext >&5
 
15865
 
 
15866
ac_hi=`expr '(' $ac_mid ')' - 1`
 
15867
                       if test $ac_mid -le $ac_hi; then
 
15868
                         ac_lo= ac_hi=
 
15869
                         break
 
15870
                       fi
 
15871
                       ac_mid=`expr 2 '*' $ac_mid`
 
15872
fi
 
15873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15874
  done
 
15875
else
 
15876
  echo "$as_me: failed program was:" >&5
 
15877
sed 's/^/| /' conftest.$ac_ext >&5
 
15878
 
 
15879
ac_lo= ac_hi=
 
15880
fi
 
15881
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15882
fi
 
15883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15884
# Binary search between lo and hi bounds.
 
15885
while test "x$ac_lo" != "x$ac_hi"; do
 
15886
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
15887
  cat >conftest.$ac_ext <<_ACEOF
 
15888
/* confdefs.h.  */
 
15889
_ACEOF
 
15890
cat confdefs.h >>conftest.$ac_ext
 
15891
cat >>conftest.$ac_ext <<_ACEOF
 
15892
/* end confdefs.h.  */
 
15893
$ac_includes_default
 
15894
int
 
15895
main ()
 
15896
{
 
15897
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
 
15898
test_array [0] = 0
 
15899
 
 
15900
  ;
 
15901
  return 0;
 
15902
}
 
15903
_ACEOF
 
15904
rm -f conftest.$ac_objext
 
15905
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15906
  (eval $ac_compile) 2>conftest.er1
 
15907
  ac_status=$?
 
15908
  grep -v '^ *+' conftest.er1 >conftest.err
 
15909
  rm -f conftest.er1
 
15910
  cat conftest.err >&5
 
15911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15912
  (exit $ac_status); } &&
 
15913
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15915
  (eval $ac_try) 2>&5
 
15916
  ac_status=$?
 
15917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15918
  (exit $ac_status); }; } &&
 
15919
         { ac_try='test -s conftest.$ac_objext'
 
15920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15921
  (eval $ac_try) 2>&5
 
15922
  ac_status=$?
 
15923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15924
  (exit $ac_status); }; }; then
 
15925
  ac_hi=$ac_mid
 
15926
else
 
15927
  echo "$as_me: failed program was:" >&5
 
15928
sed 's/^/| /' conftest.$ac_ext >&5
 
15929
 
 
15930
ac_lo=`expr '(' $ac_mid ')' + 1`
 
15931
fi
 
15932
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15933
done
 
15934
case $ac_lo in
 
15935
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
 
15936
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
 
15937
See \`config.log' for more details." >&5
 
15938
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
 
15939
See \`config.log' for more details." >&2;}
 
15940
   { (exit 1); exit 1; }; } ;;
 
15941
esac
 
15942
else
 
15943
  if test "$cross_compiling" = yes; then
 
15944
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
15945
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
15946
   { (exit 1); exit 1; }; }
 
15947
else
 
15948
  cat >conftest.$ac_ext <<_ACEOF
 
15949
/* confdefs.h.  */
 
15950
_ACEOF
 
15951
cat confdefs.h >>conftest.$ac_ext
 
15952
cat >>conftest.$ac_ext <<_ACEOF
 
15953
/* end confdefs.h.  */
 
15954
$ac_includes_default
 
15955
long longval () { return (long) (sizeof (unsigned int)); }
 
15956
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
 
15957
#include <stdio.h>
 
15958
#include <stdlib.h>
 
15959
int
 
15960
main ()
 
15961
{
 
15962
 
 
15963
  FILE *f = fopen ("conftest.val", "w");
 
15964
  if (! f)
 
15965
    exit (1);
 
15966
  if (((long) (sizeof (unsigned int))) < 0)
 
15967
    {
 
15968
      long i = longval ();
 
15969
      if (i != ((long) (sizeof (unsigned int))))
 
15970
        exit (1);
 
15971
      fprintf (f, "%ld\n", i);
 
15972
    }
 
15973
  else
 
15974
    {
 
15975
      unsigned long i = ulongval ();
 
15976
      if (i != ((long) (sizeof (unsigned int))))
 
15977
        exit (1);
 
15978
      fprintf (f, "%lu\n", i);
 
15979
    }
 
15980
  exit (ferror (f) || fclose (f) != 0);
 
15981
 
 
15982
  ;
 
15983
  return 0;
 
15984
}
 
15985
_ACEOF
 
15986
rm -f conftest$ac_exeext
 
15987
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15988
  (eval $ac_link) 2>&5
 
15989
  ac_status=$?
 
15990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15991
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15993
  (eval $ac_try) 2>&5
 
15994
  ac_status=$?
 
15995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15996
  (exit $ac_status); }; }; then
 
15997
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
 
15998
else
 
15999
  echo "$as_me: program exited with status $ac_status" >&5
 
16000
echo "$as_me: failed program was:" >&5
 
16001
sed 's/^/| /' conftest.$ac_ext >&5
 
16002
 
 
16003
( exit $ac_status )
 
16004
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
 
16005
See \`config.log' for more details." >&5
 
16006
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
 
16007
See \`config.log' for more details." >&2;}
 
16008
   { (exit 1); exit 1; }; }
 
16009
fi
 
16010
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16011
fi
 
16012
fi
 
16013
rm -f conftest.val
 
16014
else
 
16015
  ac_cv_sizeof_unsigned_int=0
 
16016
fi
 
16017
fi
 
16018
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
 
16019
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
 
16020
cat >>confdefs.h <<_ACEOF
 
16021
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
 
16022
_ACEOF
 
16023
 
 
16024
 
 
16025
echo "$as_me:$LINENO: checking for unsigned long" >&5
 
16026
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
 
16027
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
16028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16029
else
 
16030
  cat >conftest.$ac_ext <<_ACEOF
 
16031
/* confdefs.h.  */
 
16032
_ACEOF
 
16033
cat confdefs.h >>conftest.$ac_ext
 
16034
cat >>conftest.$ac_ext <<_ACEOF
 
16035
/* end confdefs.h.  */
 
16036
$ac_includes_default
 
16037
int
 
16038
main ()
 
16039
{
 
16040
if ((unsigned long *) 0)
 
16041
  return 0;
 
16042
if (sizeof (unsigned long))
 
16043
  return 0;
 
16044
  ;
 
16045
  return 0;
 
16046
}
 
16047
_ACEOF
 
16048
rm -f conftest.$ac_objext
 
16049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16050
  (eval $ac_compile) 2>conftest.er1
 
16051
  ac_status=$?
 
16052
  grep -v '^ *+' conftest.er1 >conftest.err
 
16053
  rm -f conftest.er1
 
16054
  cat conftest.err >&5
 
16055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16056
  (exit $ac_status); } &&
 
16057
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16059
  (eval $ac_try) 2>&5
 
16060
  ac_status=$?
 
16061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16062
  (exit $ac_status); }; } &&
 
16063
         { ac_try='test -s conftest.$ac_objext'
 
16064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16065
  (eval $ac_try) 2>&5
 
16066
  ac_status=$?
 
16067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16068
  (exit $ac_status); }; }; then
 
16069
  ac_cv_type_unsigned_long=yes
 
16070
else
 
16071
  echo "$as_me: failed program was:" >&5
 
16072
sed 's/^/| /' conftest.$ac_ext >&5
 
16073
 
 
16074
ac_cv_type_unsigned_long=no
 
16075
fi
 
16076
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16077
fi
 
16078
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
16079
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
 
16080
 
 
16081
echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
16082
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
 
16083
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
16084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16085
else
 
16086
  if test "$ac_cv_type_unsigned_long" = yes; then
 
16087
  # The cast to unsigned long works around a bug in the HP C Compiler
 
16088
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16089
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16090
  # This bug is HP SR number 8606223364.
 
16091
  if test "$cross_compiling" = yes; then
 
16092
  # Depending upon the size, compute the lo and hi bounds.
 
16093
cat >conftest.$ac_ext <<_ACEOF
 
16094
/* confdefs.h.  */
 
16095
_ACEOF
 
16096
cat confdefs.h >>conftest.$ac_ext
 
16097
cat >>conftest.$ac_ext <<_ACEOF
 
16098
/* end confdefs.h.  */
 
16099
$ac_includes_default
 
16100
int
 
16101
main ()
 
16102
{
 
16103
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
16104
test_array [0] = 0
 
16105
 
 
16106
  ;
 
16107
  return 0;
 
16108
}
 
16109
_ACEOF
 
16110
rm -f conftest.$ac_objext
 
16111
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16112
  (eval $ac_compile) 2>conftest.er1
 
16113
  ac_status=$?
 
16114
  grep -v '^ *+' conftest.er1 >conftest.err
 
16115
  rm -f conftest.er1
 
16116
  cat conftest.err >&5
 
16117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16118
  (exit $ac_status); } &&
 
16119
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16121
  (eval $ac_try) 2>&5
 
16122
  ac_status=$?
 
16123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16124
  (exit $ac_status); }; } &&
 
16125
         { ac_try='test -s conftest.$ac_objext'
 
16126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16127
  (eval $ac_try) 2>&5
 
16128
  ac_status=$?
 
16129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16130
  (exit $ac_status); }; }; then
 
16131
  ac_lo=0 ac_mid=0
 
16132
  while :; do
 
16133
    cat >conftest.$ac_ext <<_ACEOF
 
16134
/* confdefs.h.  */
 
16135
_ACEOF
 
16136
cat confdefs.h >>conftest.$ac_ext
 
16137
cat >>conftest.$ac_ext <<_ACEOF
 
16138
/* end confdefs.h.  */
 
16139
$ac_includes_default
 
16140
int
 
16141
main ()
 
16142
{
 
16143
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
16144
test_array [0] = 0
 
16145
 
 
16146
  ;
 
16147
  return 0;
 
16148
}
 
16149
_ACEOF
 
16150
rm -f conftest.$ac_objext
 
16151
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16152
  (eval $ac_compile) 2>conftest.er1
 
16153
  ac_status=$?
 
16154
  grep -v '^ *+' conftest.er1 >conftest.err
 
16155
  rm -f conftest.er1
 
16156
  cat conftest.err >&5
 
16157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16158
  (exit $ac_status); } &&
 
16159
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16161
  (eval $ac_try) 2>&5
 
16162
  ac_status=$?
 
16163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16164
  (exit $ac_status); }; } &&
 
16165
         { ac_try='test -s conftest.$ac_objext'
 
16166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16167
  (eval $ac_try) 2>&5
 
16168
  ac_status=$?
 
16169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16170
  (exit $ac_status); }; }; then
 
16171
  ac_hi=$ac_mid; break
 
16172
else
 
16173
  echo "$as_me: failed program was:" >&5
 
16174
sed 's/^/| /' conftest.$ac_ext >&5
 
16175
 
 
16176
ac_lo=`expr $ac_mid + 1`
 
16177
                    if test $ac_lo -le $ac_mid; then
 
16178
                      ac_lo= ac_hi=
 
16179
                      break
 
16180
                    fi
 
16181
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
16182
fi
 
16183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16184
  done
 
16185
else
 
16186
  echo "$as_me: failed program was:" >&5
 
16187
sed 's/^/| /' conftest.$ac_ext >&5
 
16188
 
 
16189
cat >conftest.$ac_ext <<_ACEOF
 
16190
/* confdefs.h.  */
 
16191
_ACEOF
 
16192
cat confdefs.h >>conftest.$ac_ext
 
16193
cat >>conftest.$ac_ext <<_ACEOF
 
16194
/* end confdefs.h.  */
 
16195
$ac_includes_default
 
16196
int
 
16197
main ()
 
16198
{
 
16199
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
16200
test_array [0] = 0
 
16201
 
 
16202
  ;
 
16203
  return 0;
 
16204
}
 
16205
_ACEOF
 
16206
rm -f conftest.$ac_objext
 
16207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16208
  (eval $ac_compile) 2>conftest.er1
 
16209
  ac_status=$?
 
16210
  grep -v '^ *+' conftest.er1 >conftest.err
 
16211
  rm -f conftest.er1
 
16212
  cat conftest.err >&5
 
16213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16214
  (exit $ac_status); } &&
 
16215
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16217
  (eval $ac_try) 2>&5
 
16218
  ac_status=$?
 
16219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16220
  (exit $ac_status); }; } &&
 
16221
         { ac_try='test -s conftest.$ac_objext'
 
16222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16223
  (eval $ac_try) 2>&5
 
16224
  ac_status=$?
 
16225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16226
  (exit $ac_status); }; }; then
 
16227
  ac_hi=-1 ac_mid=-1
 
16228
  while :; do
 
16229
    cat >conftest.$ac_ext <<_ACEOF
 
16230
/* confdefs.h.  */
 
16231
_ACEOF
 
16232
cat confdefs.h >>conftest.$ac_ext
 
16233
cat >>conftest.$ac_ext <<_ACEOF
 
16234
/* end confdefs.h.  */
 
16235
$ac_includes_default
 
16236
int
 
16237
main ()
 
16238
{
 
16239
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
16240
test_array [0] = 0
 
16241
 
 
16242
  ;
 
16243
  return 0;
 
16244
}
 
16245
_ACEOF
 
16246
rm -f conftest.$ac_objext
 
16247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16248
  (eval $ac_compile) 2>conftest.er1
 
16249
  ac_status=$?
 
16250
  grep -v '^ *+' conftest.er1 >conftest.err
 
16251
  rm -f conftest.er1
 
16252
  cat conftest.err >&5
 
16253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16254
  (exit $ac_status); } &&
 
16255
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16257
  (eval $ac_try) 2>&5
 
16258
  ac_status=$?
 
16259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16260
  (exit $ac_status); }; } &&
 
16261
         { ac_try='test -s conftest.$ac_objext'
 
16262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16263
  (eval $ac_try) 2>&5
 
16264
  ac_status=$?
 
16265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16266
  (exit $ac_status); }; }; then
 
16267
  ac_lo=$ac_mid; break
 
16268
else
 
16269
  echo "$as_me: failed program was:" >&5
 
16270
sed 's/^/| /' conftest.$ac_ext >&5
 
16271
 
 
16272
ac_hi=`expr '(' $ac_mid ')' - 1`
 
16273
                       if test $ac_mid -le $ac_hi; then
 
16274
                         ac_lo= ac_hi=
 
16275
                         break
 
16276
                       fi
 
16277
                       ac_mid=`expr 2 '*' $ac_mid`
 
16278
fi
 
16279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16280
  done
 
16281
else
 
16282
  echo "$as_me: failed program was:" >&5
 
16283
sed 's/^/| /' conftest.$ac_ext >&5
 
16284
 
 
16285
ac_lo= ac_hi=
 
16286
fi
 
16287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16288
fi
 
16289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16290
# Binary search between lo and hi bounds.
 
16291
while test "x$ac_lo" != "x$ac_hi"; do
 
16292
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
16293
  cat >conftest.$ac_ext <<_ACEOF
 
16294
/* confdefs.h.  */
 
16295
_ACEOF
 
16296
cat confdefs.h >>conftest.$ac_ext
 
16297
cat >>conftest.$ac_ext <<_ACEOF
 
16298
/* end confdefs.h.  */
 
16299
$ac_includes_default
 
16300
int
 
16301
main ()
 
16302
{
 
16303
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
16304
test_array [0] = 0
 
16305
 
 
16306
  ;
 
16307
  return 0;
 
16308
}
 
16309
_ACEOF
 
16310
rm -f conftest.$ac_objext
 
16311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16312
  (eval $ac_compile) 2>conftest.er1
 
16313
  ac_status=$?
 
16314
  grep -v '^ *+' conftest.er1 >conftest.err
 
16315
  rm -f conftest.er1
 
16316
  cat conftest.err >&5
 
16317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16318
  (exit $ac_status); } &&
 
16319
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16321
  (eval $ac_try) 2>&5
 
16322
  ac_status=$?
 
16323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16324
  (exit $ac_status); }; } &&
 
16325
         { ac_try='test -s conftest.$ac_objext'
 
16326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16327
  (eval $ac_try) 2>&5
 
16328
  ac_status=$?
 
16329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16330
  (exit $ac_status); }; }; then
 
16331
  ac_hi=$ac_mid
 
16332
else
 
16333
  echo "$as_me: failed program was:" >&5
 
16334
sed 's/^/| /' conftest.$ac_ext >&5
 
16335
 
 
16336
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16337
fi
 
16338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16339
done
 
16340
case $ac_lo in
 
16341
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
16342
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
16343
See \`config.log' for more details." >&5
 
16344
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
16345
See \`config.log' for more details." >&2;}
 
16346
   { (exit 1); exit 1; }; } ;;
 
16347
esac
 
16348
else
 
16349
  if test "$cross_compiling" = yes; then
 
16350
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
16351
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
16352
   { (exit 1); exit 1; }; }
 
16353
else
 
16354
  cat >conftest.$ac_ext <<_ACEOF
 
16355
/* confdefs.h.  */
 
16356
_ACEOF
 
16357
cat confdefs.h >>conftest.$ac_ext
 
16358
cat >>conftest.$ac_ext <<_ACEOF
 
16359
/* end confdefs.h.  */
 
16360
$ac_includes_default
 
16361
long longval () { return (long) (sizeof (unsigned long)); }
 
16362
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
 
16363
#include <stdio.h>
 
16364
#include <stdlib.h>
 
16365
int
 
16366
main ()
 
16367
{
 
16368
 
 
16369
  FILE *f = fopen ("conftest.val", "w");
 
16370
  if (! f)
 
16371
    exit (1);
 
16372
  if (((long) (sizeof (unsigned long))) < 0)
 
16373
    {
 
16374
      long i = longval ();
 
16375
      if (i != ((long) (sizeof (unsigned long))))
 
16376
        exit (1);
 
16377
      fprintf (f, "%ld\n", i);
 
16378
    }
 
16379
  else
 
16380
    {
 
16381
      unsigned long i = ulongval ();
 
16382
      if (i != ((long) (sizeof (unsigned long))))
 
16383
        exit (1);
 
16384
      fprintf (f, "%lu\n", i);
 
16385
    }
 
16386
  exit (ferror (f) || fclose (f) != 0);
 
16387
 
 
16388
  ;
 
16389
  return 0;
 
16390
}
 
16391
_ACEOF
 
16392
rm -f conftest$ac_exeext
 
16393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16394
  (eval $ac_link) 2>&5
 
16395
  ac_status=$?
 
16396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16397
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16399
  (eval $ac_try) 2>&5
 
16400
  ac_status=$?
 
16401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16402
  (exit $ac_status); }; }; then
 
16403
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
16404
else
 
16405
  echo "$as_me: program exited with status $ac_status" >&5
 
16406
echo "$as_me: failed program was:" >&5
 
16407
sed 's/^/| /' conftest.$ac_ext >&5
 
16408
 
 
16409
( exit $ac_status )
 
16410
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
16411
See \`config.log' for more details." >&5
 
16412
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
16413
See \`config.log' for more details." >&2;}
 
16414
   { (exit 1); exit 1; }; }
 
16415
fi
 
16416
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16417
fi
 
16418
fi
 
16419
rm -f conftest.val
 
16420
else
 
16421
  ac_cv_sizeof_unsigned_long=0
 
16422
fi
 
16423
fi
 
16424
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
16425
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
 
16426
cat >>confdefs.h <<_ACEOF
 
16427
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
16428
_ACEOF
 
16429
 
 
16430
 
 
16431
echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
16432
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
 
16433
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
16434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16435
else
 
16436
  cat >conftest.$ac_ext <<_ACEOF
 
16437
/* confdefs.h.  */
 
16438
_ACEOF
 
16439
cat confdefs.h >>conftest.$ac_ext
 
16440
cat >>conftest.$ac_ext <<_ACEOF
 
16441
/* end confdefs.h.  */
 
16442
$ac_includes_default
 
16443
int
 
16444
main ()
 
16445
{
 
16446
if ((unsigned long long *) 0)
 
16447
  return 0;
 
16448
if (sizeof (unsigned long long))
 
16449
  return 0;
 
16450
  ;
 
16451
  return 0;
 
16452
}
 
16453
_ACEOF
 
16454
rm -f conftest.$ac_objext
 
16455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16456
  (eval $ac_compile) 2>conftest.er1
 
16457
  ac_status=$?
 
16458
  grep -v '^ *+' conftest.er1 >conftest.err
 
16459
  rm -f conftest.er1
 
16460
  cat conftest.err >&5
 
16461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16462
  (exit $ac_status); } &&
 
16463
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16465
  (eval $ac_try) 2>&5
 
16466
  ac_status=$?
 
16467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16468
  (exit $ac_status); }; } &&
 
16469
         { ac_try='test -s conftest.$ac_objext'
 
16470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16471
  (eval $ac_try) 2>&5
 
16472
  ac_status=$?
 
16473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16474
  (exit $ac_status); }; }; then
 
16475
  ac_cv_type_unsigned_long_long=yes
 
16476
else
 
16477
  echo "$as_me: failed program was:" >&5
 
16478
sed 's/^/| /' conftest.$ac_ext >&5
 
16479
 
 
16480
ac_cv_type_unsigned_long_long=no
 
16481
fi
 
16482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16483
fi
 
16484
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
16485
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
 
16486
 
 
16487
echo "$as_me:$LINENO: checking size of unsigned long long" >&5
 
16488
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
 
16489
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
 
16490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16491
else
 
16492
  if test "$ac_cv_type_unsigned_long_long" = yes; then
 
16493
  # The cast to unsigned long works around a bug in the HP C Compiler
 
16494
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16495
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16496
  # This bug is HP SR number 8606223364.
 
16497
  if test "$cross_compiling" = yes; then
 
16498
  # Depending upon the size, compute the lo and hi bounds.
 
16499
cat >conftest.$ac_ext <<_ACEOF
 
16500
/* confdefs.h.  */
 
16501
_ACEOF
 
16502
cat confdefs.h >>conftest.$ac_ext
 
16503
cat >>conftest.$ac_ext <<_ACEOF
 
16504
/* end confdefs.h.  */
 
16505
$ac_includes_default
 
16506
int
 
16507
main ()
 
16508
{
 
16509
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
 
16510
test_array [0] = 0
 
16511
 
 
16512
  ;
 
16513
  return 0;
 
16514
}
 
16515
_ACEOF
 
16516
rm -f conftest.$ac_objext
 
16517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16518
  (eval $ac_compile) 2>conftest.er1
 
16519
  ac_status=$?
 
16520
  grep -v '^ *+' conftest.er1 >conftest.err
 
16521
  rm -f conftest.er1
 
16522
  cat conftest.err >&5
 
16523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16524
  (exit $ac_status); } &&
 
16525
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16527
  (eval $ac_try) 2>&5
 
16528
  ac_status=$?
 
16529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16530
  (exit $ac_status); }; } &&
 
16531
         { ac_try='test -s conftest.$ac_objext'
 
16532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16533
  (eval $ac_try) 2>&5
 
16534
  ac_status=$?
 
16535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16536
  (exit $ac_status); }; }; then
 
16537
  ac_lo=0 ac_mid=0
 
16538
  while :; do
 
16539
    cat >conftest.$ac_ext <<_ACEOF
 
16540
/* confdefs.h.  */
 
16541
_ACEOF
 
16542
cat confdefs.h >>conftest.$ac_ext
 
16543
cat >>conftest.$ac_ext <<_ACEOF
 
16544
/* end confdefs.h.  */
 
16545
$ac_includes_default
 
16546
int
 
16547
main ()
 
16548
{
 
16549
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
 
16550
test_array [0] = 0
 
16551
 
 
16552
  ;
 
16553
  return 0;
 
16554
}
 
16555
_ACEOF
 
16556
rm -f conftest.$ac_objext
 
16557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16558
  (eval $ac_compile) 2>conftest.er1
 
16559
  ac_status=$?
 
16560
  grep -v '^ *+' conftest.er1 >conftest.err
 
16561
  rm -f conftest.er1
 
16562
  cat conftest.err >&5
 
16563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16564
  (exit $ac_status); } &&
 
16565
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16567
  (eval $ac_try) 2>&5
 
16568
  ac_status=$?
 
16569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16570
  (exit $ac_status); }; } &&
 
16571
         { ac_try='test -s conftest.$ac_objext'
 
16572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16573
  (eval $ac_try) 2>&5
 
16574
  ac_status=$?
 
16575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16576
  (exit $ac_status); }; }; then
 
16577
  ac_hi=$ac_mid; break
 
16578
else
 
16579
  echo "$as_me: failed program was:" >&5
 
16580
sed 's/^/| /' conftest.$ac_ext >&5
 
16581
 
 
16582
ac_lo=`expr $ac_mid + 1`
 
16583
                    if test $ac_lo -le $ac_mid; then
 
16584
                      ac_lo= ac_hi=
 
16585
                      break
 
16586
                    fi
 
16587
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
16588
fi
 
16589
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16590
  done
 
16591
else
 
16592
  echo "$as_me: failed program was:" >&5
 
16593
sed 's/^/| /' conftest.$ac_ext >&5
 
16594
 
 
16595
cat >conftest.$ac_ext <<_ACEOF
 
16596
/* confdefs.h.  */
 
16597
_ACEOF
 
16598
cat confdefs.h >>conftest.$ac_ext
 
16599
cat >>conftest.$ac_ext <<_ACEOF
 
16600
/* end confdefs.h.  */
 
16601
$ac_includes_default
 
16602
int
 
16603
main ()
 
16604
{
 
16605
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
 
16606
test_array [0] = 0
 
16607
 
 
16608
  ;
 
16609
  return 0;
 
16610
}
 
16611
_ACEOF
 
16612
rm -f conftest.$ac_objext
 
16613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16614
  (eval $ac_compile) 2>conftest.er1
 
16615
  ac_status=$?
 
16616
  grep -v '^ *+' conftest.er1 >conftest.err
 
16617
  rm -f conftest.er1
 
16618
  cat conftest.err >&5
 
16619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16620
  (exit $ac_status); } &&
 
16621
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16623
  (eval $ac_try) 2>&5
 
16624
  ac_status=$?
 
16625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16626
  (exit $ac_status); }; } &&
 
16627
         { ac_try='test -s conftest.$ac_objext'
 
16628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16629
  (eval $ac_try) 2>&5
 
16630
  ac_status=$?
 
16631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16632
  (exit $ac_status); }; }; then
 
16633
  ac_hi=-1 ac_mid=-1
 
16634
  while :; do
 
16635
    cat >conftest.$ac_ext <<_ACEOF
 
16636
/* confdefs.h.  */
 
16637
_ACEOF
 
16638
cat confdefs.h >>conftest.$ac_ext
 
16639
cat >>conftest.$ac_ext <<_ACEOF
 
16640
/* end confdefs.h.  */
 
16641
$ac_includes_default
 
16642
int
 
16643
main ()
 
16644
{
 
16645
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
 
16646
test_array [0] = 0
 
16647
 
 
16648
  ;
 
16649
  return 0;
 
16650
}
 
16651
_ACEOF
 
16652
rm -f conftest.$ac_objext
 
16653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16654
  (eval $ac_compile) 2>conftest.er1
 
16655
  ac_status=$?
 
16656
  grep -v '^ *+' conftest.er1 >conftest.err
 
16657
  rm -f conftest.er1
 
16658
  cat conftest.err >&5
 
16659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16660
  (exit $ac_status); } &&
 
16661
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16663
  (eval $ac_try) 2>&5
 
16664
  ac_status=$?
 
16665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16666
  (exit $ac_status); }; } &&
 
16667
         { ac_try='test -s conftest.$ac_objext'
 
16668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16669
  (eval $ac_try) 2>&5
 
16670
  ac_status=$?
 
16671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16672
  (exit $ac_status); }; }; then
 
16673
  ac_lo=$ac_mid; break
 
16674
else
 
16675
  echo "$as_me: failed program was:" >&5
 
16676
sed 's/^/| /' conftest.$ac_ext >&5
 
16677
 
 
16678
ac_hi=`expr '(' $ac_mid ')' - 1`
 
16679
                       if test $ac_mid -le $ac_hi; then
 
16680
                         ac_lo= ac_hi=
 
16681
                         break
 
16682
                       fi
 
16683
                       ac_mid=`expr 2 '*' $ac_mid`
 
16684
fi
 
16685
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16686
  done
 
16687
else
 
16688
  echo "$as_me: failed program was:" >&5
 
16689
sed 's/^/| /' conftest.$ac_ext >&5
 
16690
 
 
16691
ac_lo= ac_hi=
 
16692
fi
 
16693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16694
fi
 
16695
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16696
# Binary search between lo and hi bounds.
 
16697
while test "x$ac_lo" != "x$ac_hi"; do
 
16698
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
16699
  cat >conftest.$ac_ext <<_ACEOF
 
16700
/* confdefs.h.  */
 
16701
_ACEOF
 
16702
cat confdefs.h >>conftest.$ac_ext
 
16703
cat >>conftest.$ac_ext <<_ACEOF
 
16704
/* end confdefs.h.  */
 
16705
$ac_includes_default
 
16706
int
 
16707
main ()
 
16708
{
 
16709
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
 
16710
test_array [0] = 0
 
16711
 
 
16712
  ;
 
16713
  return 0;
 
16714
}
 
16715
_ACEOF
 
16716
rm -f conftest.$ac_objext
 
16717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16718
  (eval $ac_compile) 2>conftest.er1
 
16719
  ac_status=$?
 
16720
  grep -v '^ *+' conftest.er1 >conftest.err
 
16721
  rm -f conftest.er1
 
16722
  cat conftest.err >&5
 
16723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16724
  (exit $ac_status); } &&
 
16725
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16727
  (eval $ac_try) 2>&5
 
16728
  ac_status=$?
 
16729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16730
  (exit $ac_status); }; } &&
 
16731
         { ac_try='test -s conftest.$ac_objext'
 
16732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16733
  (eval $ac_try) 2>&5
 
16734
  ac_status=$?
 
16735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16736
  (exit $ac_status); }; }; then
 
16737
  ac_hi=$ac_mid
 
16738
else
 
16739
  echo "$as_me: failed program was:" >&5
 
16740
sed 's/^/| /' conftest.$ac_ext >&5
 
16741
 
 
16742
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16743
fi
 
16744
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16745
done
 
16746
case $ac_lo in
 
16747
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
 
16748
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
 
16749
See \`config.log' for more details." >&5
 
16750
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
 
16751
See \`config.log' for more details." >&2;}
 
16752
   { (exit 1); exit 1; }; } ;;
 
16753
esac
 
16754
else
 
16755
  if test "$cross_compiling" = yes; then
 
16756
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
16757
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
16758
   { (exit 1); exit 1; }; }
 
16759
else
 
16760
  cat >conftest.$ac_ext <<_ACEOF
 
16761
/* confdefs.h.  */
 
16762
_ACEOF
 
16763
cat confdefs.h >>conftest.$ac_ext
 
16764
cat >>conftest.$ac_ext <<_ACEOF
 
16765
/* end confdefs.h.  */
 
16766
$ac_includes_default
 
16767
long longval () { return (long) (sizeof (unsigned long long)); }
 
16768
unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
 
16769
#include <stdio.h>
 
16770
#include <stdlib.h>
 
16771
int
 
16772
main ()
 
16773
{
 
16774
 
 
16775
  FILE *f = fopen ("conftest.val", "w");
 
16776
  if (! f)
 
16777
    exit (1);
 
16778
  if (((long) (sizeof (unsigned long long))) < 0)
 
16779
    {
 
16780
      long i = longval ();
 
16781
      if (i != ((long) (sizeof (unsigned long long))))
 
16782
        exit (1);
 
16783
      fprintf (f, "%ld\n", i);
 
16784
    }
 
16785
  else
 
16786
    {
 
16787
      unsigned long i = ulongval ();
 
16788
      if (i != ((long) (sizeof (unsigned long long))))
 
16789
        exit (1);
 
16790
      fprintf (f, "%lu\n", i);
 
16791
    }
 
16792
  exit (ferror (f) || fclose (f) != 0);
 
16793
 
 
16794
  ;
 
16795
  return 0;
 
16796
}
 
16797
_ACEOF
 
16798
rm -f conftest$ac_exeext
 
16799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16800
  (eval $ac_link) 2>&5
 
16801
  ac_status=$?
 
16802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16803
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16805
  (eval $ac_try) 2>&5
 
16806
  ac_status=$?
 
16807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16808
  (exit $ac_status); }; }; then
 
16809
  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
 
16810
else
 
16811
  echo "$as_me: program exited with status $ac_status" >&5
 
16812
echo "$as_me: failed program was:" >&5
 
16813
sed 's/^/| /' conftest.$ac_ext >&5
 
16814
 
 
16815
( exit $ac_status )
 
16816
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
 
16817
See \`config.log' for more details." >&5
 
16818
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
 
16819
See \`config.log' for more details." >&2;}
 
16820
   { (exit 1); exit 1; }; }
 
16821
fi
 
16822
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16823
fi
 
16824
fi
 
16825
rm -f conftest.val
 
16826
else
 
16827
  ac_cv_sizeof_unsigned_long_long=0
 
16828
fi
 
16829
fi
 
16830
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
 
16831
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
 
16832
cat >>confdefs.h <<_ACEOF
 
16833
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
 
16834
_ACEOF
 
16835
 
 
16836
 
 
16837
# Ensure that we have UINT64_C before we bother to check for uint64_t
 
16838
# fixme: really needed in gnupg?  I think it is only useful in libcgrypt.
 
16839
echo "$as_me:$LINENO: checking for UINT64_C" >&5
 
16840
echo $ECHO_N "checking for UINT64_C... $ECHO_C" >&6
 
16841
if test "${gnupg_cv_uint64_c_works+set}" = set; then
 
16842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16843
else
 
16844
  cat >conftest.$ac_ext <<_ACEOF
 
16845
/* confdefs.h.  */
 
16846
_ACEOF
 
16847
cat confdefs.h >>conftest.$ac_ext
 
16848
cat >>conftest.$ac_ext <<_ACEOF
 
16849
/* end confdefs.h.  */
 
16850
#include <inttypes.h>
 
16851
uint64_t foo=UINT64_C(42);
 
16852
int
 
16853
main ()
 
16854
{
 
16855
 
 
16856
  ;
 
16857
  return 0;
 
16858
}
 
16859
_ACEOF
 
16860
rm -f conftest.$ac_objext
 
16861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16862
  (eval $ac_compile) 2>conftest.er1
 
16863
  ac_status=$?
 
16864
  grep -v '^ *+' conftest.er1 >conftest.err
 
16865
  rm -f conftest.er1
 
16866
  cat conftest.err >&5
 
16867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16868
  (exit $ac_status); } &&
 
16869
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16871
  (eval $ac_try) 2>&5
 
16872
  ac_status=$?
 
16873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16874
  (exit $ac_status); }; } &&
 
16875
         { ac_try='test -s conftest.$ac_objext'
 
16876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16877
  (eval $ac_try) 2>&5
 
16878
  ac_status=$?
 
16879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16880
  (exit $ac_status); }; }; then
 
16881
  gnupg_cv_uint64_c_works=yes
 
16882
else
 
16883
  echo "$as_me: failed program was:" >&5
 
16884
sed 's/^/| /' conftest.$ac_ext >&5
 
16885
 
 
16886
gnupg_cv_uint64_c_works=no
 
16887
fi
 
16888
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16889
fi
 
16890
echo "$as_me:$LINENO: result: $gnupg_cv_uint64_c_works" >&5
 
16891
echo "${ECHO_T}$gnupg_cv_uint64_c_works" >&6
 
16892
if test "$gnupg_cv_uint64_c_works" = "yes" ; then
 
16893
   echo "$as_me:$LINENO: checking for uint64_t" >&5
 
16894
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
 
16895
if test "${ac_cv_type_uint64_t+set}" = set; then
 
16896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16897
else
 
16898
  cat >conftest.$ac_ext <<_ACEOF
 
16899
/* confdefs.h.  */
 
16900
_ACEOF
 
16901
cat confdefs.h >>conftest.$ac_ext
 
16902
cat >>conftest.$ac_ext <<_ACEOF
 
16903
/* end confdefs.h.  */
 
16904
$ac_includes_default
 
16905
int
 
16906
main ()
 
16907
{
 
16908
if ((uint64_t *) 0)
 
16909
  return 0;
 
16910
if (sizeof (uint64_t))
 
16911
  return 0;
 
16912
  ;
 
16913
  return 0;
 
16914
}
 
16915
_ACEOF
 
16916
rm -f conftest.$ac_objext
 
16917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16918
  (eval $ac_compile) 2>conftest.er1
 
16919
  ac_status=$?
 
16920
  grep -v '^ *+' conftest.er1 >conftest.err
 
16921
  rm -f conftest.er1
 
16922
  cat conftest.err >&5
 
16923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16924
  (exit $ac_status); } &&
 
16925
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16927
  (eval $ac_try) 2>&5
 
16928
  ac_status=$?
 
16929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16930
  (exit $ac_status); }; } &&
 
16931
         { ac_try='test -s conftest.$ac_objext'
 
16932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16933
  (eval $ac_try) 2>&5
 
16934
  ac_status=$?
 
16935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16936
  (exit $ac_status); }; }; then
 
16937
  ac_cv_type_uint64_t=yes
 
16938
else
 
16939
  echo "$as_me: failed program was:" >&5
 
16940
sed 's/^/| /' conftest.$ac_ext >&5
 
16941
 
 
16942
ac_cv_type_uint64_t=no
 
16943
fi
 
16944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16945
fi
 
16946
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
 
16947
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
 
16948
 
 
16949
echo "$as_me:$LINENO: checking size of uint64_t" >&5
 
16950
echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
 
16951
if test "${ac_cv_sizeof_uint64_t+set}" = set; then
 
16952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16953
else
 
16954
  if test "$ac_cv_type_uint64_t" = yes; then
 
16955
  # The cast to unsigned long works around a bug in the HP C Compiler
 
16956
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16957
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16958
  # This bug is HP SR number 8606223364.
 
16959
  if test "$cross_compiling" = yes; then
 
16960
  # Depending upon the size, compute the lo and hi bounds.
 
16961
cat >conftest.$ac_ext <<_ACEOF
 
16962
/* confdefs.h.  */
 
16963
_ACEOF
 
16964
cat confdefs.h >>conftest.$ac_ext
 
16965
cat >>conftest.$ac_ext <<_ACEOF
 
16966
/* end confdefs.h.  */
 
16967
$ac_includes_default
 
16968
int
 
16969
main ()
 
16970
{
 
16971
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
 
16972
test_array [0] = 0
 
16973
 
 
16974
  ;
 
16975
  return 0;
 
16976
}
 
16977
_ACEOF
 
16978
rm -f conftest.$ac_objext
 
16979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16980
  (eval $ac_compile) 2>conftest.er1
 
16981
  ac_status=$?
 
16982
  grep -v '^ *+' conftest.er1 >conftest.err
 
16983
  rm -f conftest.er1
 
16984
  cat conftest.err >&5
 
16985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16986
  (exit $ac_status); } &&
 
16987
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16989
  (eval $ac_try) 2>&5
 
16990
  ac_status=$?
 
16991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16992
  (exit $ac_status); }; } &&
 
16993
         { ac_try='test -s conftest.$ac_objext'
 
16994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16995
  (eval $ac_try) 2>&5
 
16996
  ac_status=$?
 
16997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16998
  (exit $ac_status); }; }; then
 
16999
  ac_lo=0 ac_mid=0
 
17000
  while :; do
 
17001
    cat >conftest.$ac_ext <<_ACEOF
 
17002
/* confdefs.h.  */
 
17003
_ACEOF
 
17004
cat confdefs.h >>conftest.$ac_ext
 
17005
cat >>conftest.$ac_ext <<_ACEOF
 
17006
/* end confdefs.h.  */
 
17007
$ac_includes_default
 
17008
int
 
17009
main ()
 
17010
{
 
17011
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
 
17012
test_array [0] = 0
 
17013
 
 
17014
  ;
 
17015
  return 0;
 
17016
}
 
17017
_ACEOF
 
17018
rm -f conftest.$ac_objext
 
17019
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17020
  (eval $ac_compile) 2>conftest.er1
 
17021
  ac_status=$?
 
17022
  grep -v '^ *+' conftest.er1 >conftest.err
 
17023
  rm -f conftest.er1
 
17024
  cat conftest.err >&5
 
17025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17026
  (exit $ac_status); } &&
 
17027
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17029
  (eval $ac_try) 2>&5
 
17030
  ac_status=$?
 
17031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17032
  (exit $ac_status); }; } &&
 
17033
         { ac_try='test -s conftest.$ac_objext'
 
17034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17035
  (eval $ac_try) 2>&5
 
17036
  ac_status=$?
 
17037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17038
  (exit $ac_status); }; }; then
 
17039
  ac_hi=$ac_mid; break
 
17040
else
 
17041
  echo "$as_me: failed program was:" >&5
 
17042
sed 's/^/| /' conftest.$ac_ext >&5
 
17043
 
 
17044
ac_lo=`expr $ac_mid + 1`
 
17045
                    if test $ac_lo -le $ac_mid; then
 
17046
                      ac_lo= ac_hi=
 
17047
                      break
 
17048
                    fi
 
17049
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
17050
fi
 
17051
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17052
  done
 
17053
else
 
17054
  echo "$as_me: failed program was:" >&5
 
17055
sed 's/^/| /' conftest.$ac_ext >&5
 
17056
 
 
17057
cat >conftest.$ac_ext <<_ACEOF
 
17058
/* confdefs.h.  */
 
17059
_ACEOF
 
17060
cat confdefs.h >>conftest.$ac_ext
 
17061
cat >>conftest.$ac_ext <<_ACEOF
 
17062
/* end confdefs.h.  */
 
17063
$ac_includes_default
 
17064
int
 
17065
main ()
 
17066
{
 
17067
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
 
17068
test_array [0] = 0
 
17069
 
 
17070
  ;
 
17071
  return 0;
 
17072
}
 
17073
_ACEOF
 
17074
rm -f conftest.$ac_objext
 
17075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17076
  (eval $ac_compile) 2>conftest.er1
 
17077
  ac_status=$?
 
17078
  grep -v '^ *+' conftest.er1 >conftest.err
 
17079
  rm -f conftest.er1
 
17080
  cat conftest.err >&5
 
17081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17082
  (exit $ac_status); } &&
 
17083
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17085
  (eval $ac_try) 2>&5
 
17086
  ac_status=$?
 
17087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17088
  (exit $ac_status); }; } &&
 
17089
         { ac_try='test -s conftest.$ac_objext'
 
17090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17091
  (eval $ac_try) 2>&5
 
17092
  ac_status=$?
 
17093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17094
  (exit $ac_status); }; }; then
 
17095
  ac_hi=-1 ac_mid=-1
 
17096
  while :; do
 
17097
    cat >conftest.$ac_ext <<_ACEOF
 
17098
/* confdefs.h.  */
 
17099
_ACEOF
 
17100
cat confdefs.h >>conftest.$ac_ext
 
17101
cat >>conftest.$ac_ext <<_ACEOF
 
17102
/* end confdefs.h.  */
 
17103
$ac_includes_default
 
17104
int
 
17105
main ()
 
17106
{
 
17107
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
 
17108
test_array [0] = 0
 
17109
 
 
17110
  ;
 
17111
  return 0;
 
17112
}
 
17113
_ACEOF
 
17114
rm -f conftest.$ac_objext
 
17115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17116
  (eval $ac_compile) 2>conftest.er1
 
17117
  ac_status=$?
 
17118
  grep -v '^ *+' conftest.er1 >conftest.err
 
17119
  rm -f conftest.er1
 
17120
  cat conftest.err >&5
 
17121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17122
  (exit $ac_status); } &&
 
17123
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17125
  (eval $ac_try) 2>&5
 
17126
  ac_status=$?
 
17127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17128
  (exit $ac_status); }; } &&
 
17129
         { ac_try='test -s conftest.$ac_objext'
 
17130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17131
  (eval $ac_try) 2>&5
 
17132
  ac_status=$?
 
17133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17134
  (exit $ac_status); }; }; then
 
17135
  ac_lo=$ac_mid; break
 
17136
else
 
17137
  echo "$as_me: failed program was:" >&5
 
17138
sed 's/^/| /' conftest.$ac_ext >&5
 
17139
 
 
17140
ac_hi=`expr '(' $ac_mid ')' - 1`
 
17141
                       if test $ac_mid -le $ac_hi; then
 
17142
                         ac_lo= ac_hi=
 
17143
                         break
 
17144
                       fi
 
17145
                       ac_mid=`expr 2 '*' $ac_mid`
 
17146
fi
 
17147
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17148
  done
 
17149
else
 
17150
  echo "$as_me: failed program was:" >&5
 
17151
sed 's/^/| /' conftest.$ac_ext >&5
 
17152
 
 
17153
ac_lo= ac_hi=
 
17154
fi
 
17155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17156
fi
 
17157
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17158
# Binary search between lo and hi bounds.
 
17159
while test "x$ac_lo" != "x$ac_hi"; do
 
17160
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
17161
  cat >conftest.$ac_ext <<_ACEOF
 
17162
/* confdefs.h.  */
 
17163
_ACEOF
 
17164
cat confdefs.h >>conftest.$ac_ext
 
17165
cat >>conftest.$ac_ext <<_ACEOF
 
17166
/* end confdefs.h.  */
 
17167
$ac_includes_default
 
17168
int
 
17169
main ()
 
17170
{
 
17171
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
 
17172
test_array [0] = 0
 
17173
 
 
17174
  ;
 
17175
  return 0;
 
17176
}
 
17177
_ACEOF
 
17178
rm -f conftest.$ac_objext
 
17179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17180
  (eval $ac_compile) 2>conftest.er1
 
17181
  ac_status=$?
 
17182
  grep -v '^ *+' conftest.er1 >conftest.err
 
17183
  rm -f conftest.er1
 
17184
  cat conftest.err >&5
 
17185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17186
  (exit $ac_status); } &&
 
17187
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17189
  (eval $ac_try) 2>&5
 
17190
  ac_status=$?
 
17191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17192
  (exit $ac_status); }; } &&
 
17193
         { ac_try='test -s conftest.$ac_objext'
 
17194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17195
  (eval $ac_try) 2>&5
 
17196
  ac_status=$?
 
17197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17198
  (exit $ac_status); }; }; then
 
17199
  ac_hi=$ac_mid
 
17200
else
 
17201
  echo "$as_me: failed program was:" >&5
 
17202
sed 's/^/| /' conftest.$ac_ext >&5
 
17203
 
 
17204
ac_lo=`expr '(' $ac_mid ')' + 1`
 
17205
fi
 
17206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17207
done
 
17208
case $ac_lo in
 
17209
?*) ac_cv_sizeof_uint64_t=$ac_lo;;
 
17210
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
 
17211
See \`config.log' for more details." >&5
 
17212
echo "$as_me: error: cannot compute sizeof (uint64_t), 77
 
17213
See \`config.log' for more details." >&2;}
 
17214
   { (exit 1); exit 1; }; } ;;
 
17215
esac
 
17216
else
 
17217
  if test "$cross_compiling" = yes; then
 
17218
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
17219
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
17220
   { (exit 1); exit 1; }; }
 
17221
else
 
17222
  cat >conftest.$ac_ext <<_ACEOF
 
17223
/* confdefs.h.  */
 
17224
_ACEOF
 
17225
cat confdefs.h >>conftest.$ac_ext
 
17226
cat >>conftest.$ac_ext <<_ACEOF
 
17227
/* end confdefs.h.  */
 
17228
$ac_includes_default
 
17229
long longval () { return (long) (sizeof (uint64_t)); }
 
17230
unsigned long ulongval () { return (long) (sizeof (uint64_t)); }
 
17231
#include <stdio.h>
 
17232
#include <stdlib.h>
 
17233
int
 
17234
main ()
 
17235
{
 
17236
 
 
17237
  FILE *f = fopen ("conftest.val", "w");
 
17238
  if (! f)
 
17239
    exit (1);
 
17240
  if (((long) (sizeof (uint64_t))) < 0)
 
17241
    {
 
17242
      long i = longval ();
 
17243
      if (i != ((long) (sizeof (uint64_t))))
 
17244
        exit (1);
 
17245
      fprintf (f, "%ld\n", i);
 
17246
    }
 
17247
  else
 
17248
    {
 
17249
      unsigned long i = ulongval ();
 
17250
      if (i != ((long) (sizeof (uint64_t))))
 
17251
        exit (1);
 
17252
      fprintf (f, "%lu\n", i);
 
17253
    }
 
17254
  exit (ferror (f) || fclose (f) != 0);
 
17255
 
 
17256
  ;
 
17257
  return 0;
 
17258
}
 
17259
_ACEOF
 
17260
rm -f conftest$ac_exeext
 
17261
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17262
  (eval $ac_link) 2>&5
 
17263
  ac_status=$?
 
17264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17265
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17267
  (eval $ac_try) 2>&5
 
17268
  ac_status=$?
 
17269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17270
  (exit $ac_status); }; }; then
 
17271
  ac_cv_sizeof_uint64_t=`cat conftest.val`
 
17272
else
 
17273
  echo "$as_me: program exited with status $ac_status" >&5
 
17274
echo "$as_me: failed program was:" >&5
 
17275
sed 's/^/| /' conftest.$ac_ext >&5
 
17276
 
 
17277
( exit $ac_status )
 
17278
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
 
17279
See \`config.log' for more details." >&5
 
17280
echo "$as_me: error: cannot compute sizeof (uint64_t), 77
 
17281
See \`config.log' for more details." >&2;}
 
17282
   { (exit 1); exit 1; }; }
 
17283
fi
 
17284
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17285
fi
 
17286
fi
 
17287
rm -f conftest.val
 
17288
else
 
17289
  ac_cv_sizeof_uint64_t=0
 
17290
fi
 
17291
fi
 
17292
echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
 
17293
echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
 
17294
cat >>confdefs.h <<_ACEOF
 
17295
#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
 
17296
_ACEOF
 
17297
 
 
17298
 
 
17299
fi
 
17300
 
 
17301
 
 
17302
 
 
17303
 
 
17304
if test "$ac_cv_sizeof_unsigned_short" = "0" \
 
17305
   || test "$ac_cv_sizeof_unsigned_int" = "0" \
 
17306
   || test "$ac_cv_sizeof_unsigned_long" = "0"; then
 
17307
    { echo "$as_me:$LINENO: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
 
17308
echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
 
17309
fi
 
17310
 
 
17311
if test "$ac_cv_sizeof_unsigned_int" != "8" \
 
17312
   && test "$ac_cv_sizeof_unsigned_long" != "8" \
 
17313
   && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
 
17314
   && test "$ac_cv_sizeof_uint64_t" != "8"; then
 
17315
    { echo "$as_me:$LINENO: WARNING: No 64-bit types.  Disabling SHA-384, and SHA-512" >&5
 
17316
echo "$as_me: WARNING: No 64-bit types.  Disabling SHA-384, and SHA-512" >&2;}
 
17317
else
 
17318
  if test x"$use_sha512" = xyes ; then
 
17319
     SHA512_O=sha512.o
 
17320
 
 
17321
 
 
17322
cat >>confdefs.h <<\_ACEOF
 
17323
#define USE_SHA512 1
 
17324
_ACEOF
 
17325
 
 
17326
  fi
 
17327
fi
 
17328
 
 
17329
# fixme: do we really need this - it should be encapsulated in libassuan
 
17330
 echo "$as_me:$LINENO: checking for SO_PEERCRED" >&5
 
17331
echo $ECHO_N "checking for SO_PEERCRED... $ECHO_C" >&6
 
17332
    if test "${gnupg_cv_sys_so_peercred+set}" = set; then
 
17333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17334
else
 
17335
  cat >conftest.$ac_ext <<_ACEOF
 
17336
/* confdefs.h.  */
 
17337
_ACEOF
 
17338
cat confdefs.h >>conftest.$ac_ext
 
17339
cat >>conftest.$ac_ext <<_ACEOF
 
17340
/* end confdefs.h.  */
 
17341
#include <sys/socket.h>
 
17342
int
 
17343
main ()
 
17344
{
 
17345
struct ucred cr;
 
17346
                     int cl = sizeof cr;
 
17347
                     getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
 
17348
  ;
 
17349
  return 0;
 
17350
}
 
17351
_ACEOF
 
17352
rm -f conftest.$ac_objext
 
17353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17354
  (eval $ac_compile) 2>conftest.er1
 
17355
  ac_status=$?
 
17356
  grep -v '^ *+' conftest.er1 >conftest.err
 
17357
  rm -f conftest.er1
 
17358
  cat conftest.err >&5
 
17359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17360
  (exit $ac_status); } &&
 
17361
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17363
  (eval $ac_try) 2>&5
 
17364
  ac_status=$?
 
17365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17366
  (exit $ac_status); }; } &&
 
17367
         { ac_try='test -s conftest.$ac_objext'
 
17368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17369
  (eval $ac_try) 2>&5
 
17370
  ac_status=$?
 
17371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17372
  (exit $ac_status); }; }; then
 
17373
  gnupg_cv_sys_so_peercred=yes
 
17374
else
 
17375
  echo "$as_me: failed program was:" >&5
 
17376
sed 's/^/| /' conftest.$ac_ext >&5
 
17377
 
 
17378
gnupg_cv_sys_so_peercred=no
 
17379
fi
 
17380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17381
 
 
17382
fi
 
17383
 
 
17384
    echo "$as_me:$LINENO: result: $gnupg_cv_sys_so_peercred" >&5
 
17385
echo "${ECHO_T}$gnupg_cv_sys_so_peercred" >&6
 
17386
    if test $gnupg_cv_sys_so_peercred = yes; then
 
17387
 
 
17388
cat >>confdefs.h <<\_ACEOF
 
17389
#define HAVE_SO_PEERCRED 1
 
17390
_ACEOF
 
17391
 
 
17392
    fi
 
17393
 
 
17394
 
 
17395
# Checks for library functions.
 
17396
echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
17397
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
 
17398
if test "${ac_cv_sys_largefile_source+set}" = set; then
 
17399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17400
else
 
17401
  while :; do
 
17402
  ac_cv_sys_largefile_source=no
 
17403
  cat >conftest.$ac_ext <<_ACEOF
 
17404
/* confdefs.h.  */
 
17405
_ACEOF
 
17406
cat confdefs.h >>conftest.$ac_ext
 
17407
cat >>conftest.$ac_ext <<_ACEOF
 
17408
/* end confdefs.h.  */
 
17409
#include <stdio.h>
 
17410
int
 
17411
main ()
 
17412
{
 
17413
return !fseeko;
 
17414
  ;
 
17415
  return 0;
 
17416
}
 
17417
_ACEOF
 
17418
rm -f conftest.$ac_objext
 
17419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17420
  (eval $ac_compile) 2>conftest.er1
 
17421
  ac_status=$?
 
17422
  grep -v '^ *+' conftest.er1 >conftest.err
 
17423
  rm -f conftest.er1
 
17424
  cat conftest.err >&5
 
17425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17426
  (exit $ac_status); } &&
 
17427
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17429
  (eval $ac_try) 2>&5
 
17430
  ac_status=$?
 
17431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17432
  (exit $ac_status); }; } &&
 
17433
         { ac_try='test -s conftest.$ac_objext'
 
17434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17435
  (eval $ac_try) 2>&5
 
17436
  ac_status=$?
 
17437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17438
  (exit $ac_status); }; }; then
 
17439
  break
 
17440
else
 
17441
  echo "$as_me: failed program was:" >&5
 
17442
sed 's/^/| /' conftest.$ac_ext >&5
 
17443
 
 
17444
fi
 
17445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17446
  cat >conftest.$ac_ext <<_ACEOF
 
17447
/* confdefs.h.  */
 
17448
_ACEOF
 
17449
cat confdefs.h >>conftest.$ac_ext
 
17450
cat >>conftest.$ac_ext <<_ACEOF
 
17451
/* end confdefs.h.  */
 
17452
#define _LARGEFILE_SOURCE 1
 
17453
#include <stdio.h>
 
17454
int
 
17455
main ()
 
17456
{
 
17457
return !fseeko;
 
17458
  ;
 
17459
  return 0;
 
17460
}
 
17461
_ACEOF
 
17462
rm -f conftest.$ac_objext
 
17463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17464
  (eval $ac_compile) 2>conftest.er1
 
17465
  ac_status=$?
 
17466
  grep -v '^ *+' conftest.er1 >conftest.err
 
17467
  rm -f conftest.er1
 
17468
  cat conftest.err >&5
 
17469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17470
  (exit $ac_status); } &&
 
17471
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17473
  (eval $ac_try) 2>&5
 
17474
  ac_status=$?
 
17475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17476
  (exit $ac_status); }; } &&
 
17477
         { ac_try='test -s conftest.$ac_objext'
 
17478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17479
  (eval $ac_try) 2>&5
 
17480
  ac_status=$?
 
17481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17482
  (exit $ac_status); }; }; then
 
17483
  ac_cv_sys_largefile_source=1; break
 
17484
else
 
17485
  echo "$as_me: failed program was:" >&5
 
17486
sed 's/^/| /' conftest.$ac_ext >&5
 
17487
 
 
17488
fi
 
17489
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17490
  break
 
17491
done
 
17492
fi
 
17493
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
17494
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
 
17495
if test "$ac_cv_sys_largefile_source" != no; then
 
17496
 
 
17497
cat >>confdefs.h <<_ACEOF
 
17498
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
17499
_ACEOF
 
17500
 
 
17501
fi
 
17502
rm -f conftest*
 
17503
 
 
17504
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
 
17505
# in glibc 2.1.3, but that breaks too many other things.
 
17506
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
 
17507
echo "$as_me:$LINENO: checking for fseeko" >&5
 
17508
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
 
17509
if test "${ac_cv_func_fseeko+set}" = set; then
 
17510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17511
else
 
17512
  cat >conftest.$ac_ext <<_ACEOF
 
17513
/* confdefs.h.  */
 
17514
_ACEOF
 
17515
cat confdefs.h >>conftest.$ac_ext
 
17516
cat >>conftest.$ac_ext <<_ACEOF
 
17517
/* end confdefs.h.  */
 
17518
#include <stdio.h>
 
17519
int
 
17520
main ()
 
17521
{
 
17522
return fseeko && fseeko (stdin, 0, 0);
 
17523
  ;
 
17524
  return 0;
 
17525
}
 
17526
_ACEOF
 
17527
rm -f conftest.$ac_objext conftest$ac_exeext
 
17528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17529
  (eval $ac_link) 2>conftest.er1
 
17530
  ac_status=$?
 
17531
  grep -v '^ *+' conftest.er1 >conftest.err
 
17532
  rm -f conftest.er1
 
17533
  cat conftest.err >&5
 
17534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17535
  (exit $ac_status); } &&
 
17536
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17538
  (eval $ac_try) 2>&5
 
17539
  ac_status=$?
 
17540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17541
  (exit $ac_status); }; } &&
 
17542
         { ac_try='test -s conftest$ac_exeext'
 
17543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17544
  (eval $ac_try) 2>&5
 
17545
  ac_status=$?
 
17546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17547
  (exit $ac_status); }; }; then
 
17548
  ac_cv_func_fseeko=yes
 
17549
else
 
17550
  echo "$as_me: failed program was:" >&5
 
17551
sed 's/^/| /' conftest.$ac_ext >&5
 
17552
 
 
17553
ac_cv_func_fseeko=no
 
17554
fi
 
17555
rm -f conftest.err conftest.$ac_objext \
 
17556
      conftest$ac_exeext conftest.$ac_ext
 
17557
fi
 
17558
echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
 
17559
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
 
17560
if test $ac_cv_func_fseeko = yes; then
 
17561
 
 
17562
cat >>confdefs.h <<\_ACEOF
 
17563
#define HAVE_FSEEKO 1
 
17564
_ACEOF
 
17565
 
 
17566
fi
 
17567
 
 
17568
 
 
17569
for ac_func in vprintf
 
17570
do
 
17571
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17572
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17573
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
17574
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17576
else
 
17577
  cat >conftest.$ac_ext <<_ACEOF
 
17578
/* confdefs.h.  */
 
17579
_ACEOF
 
17580
cat confdefs.h >>conftest.$ac_ext
 
17581
cat >>conftest.$ac_ext <<_ACEOF
 
17582
/* end confdefs.h.  */
 
17583
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17584
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17585
#define $ac_func innocuous_$ac_func
 
17586
 
 
17587
/* System header to define __stub macros and hopefully few prototypes,
 
17588
    which can conflict with char $ac_func (); below.
 
17589
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17590
    <limits.h> exists even on freestanding compilers.  */
 
17591
 
 
17592
#ifdef __STDC__
 
17593
# include <limits.h>
 
17594
#else
 
17595
# include <assert.h>
 
17596
#endif
 
17597
 
 
17598
#undef $ac_func
 
17599
 
 
17600
/* Override any gcc2 internal prototype to avoid an error.  */
 
17601
#ifdef __cplusplus
 
17602
extern "C"
 
17603
{
 
17604
#endif
 
17605
/* We use char because int might match the return type of a gcc2
 
17606
   builtin and then its argument prototype would still apply.  */
 
17607
char $ac_func ();
 
17608
/* The GNU C library defines this for functions which it implements
 
17609
    to always fail with ENOSYS.  Some functions are actually named
 
17610
    something starting with __ and the normal name is an alias.  */
 
17611
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
17612
choke me
 
17613
#else
 
17614
char (*f) () = $ac_func;
 
17615
#endif
 
17616
#ifdef __cplusplus
 
17617
}
 
17618
#endif
 
17619
 
 
17620
int
 
17621
main ()
 
17622
{
 
17623
return f != $ac_func;
 
17624
  ;
 
17625
  return 0;
 
17626
}
 
17627
_ACEOF
 
17628
rm -f conftest.$ac_objext conftest$ac_exeext
 
17629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17630
  (eval $ac_link) 2>conftest.er1
 
17631
  ac_status=$?
 
17632
  grep -v '^ *+' conftest.er1 >conftest.err
 
17633
  rm -f conftest.er1
 
17634
  cat conftest.err >&5
 
17635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17636
  (exit $ac_status); } &&
 
17637
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17639
  (eval $ac_try) 2>&5
 
17640
  ac_status=$?
 
17641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17642
  (exit $ac_status); }; } &&
 
17643
         { ac_try='test -s conftest$ac_exeext'
 
17644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17645
  (eval $ac_try) 2>&5
 
17646
  ac_status=$?
 
17647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17648
  (exit $ac_status); }; }; then
 
17649
  eval "$as_ac_var=yes"
 
17650
else
 
17651
  echo "$as_me: failed program was:" >&5
 
17652
sed 's/^/| /' conftest.$ac_ext >&5
 
17653
 
 
17654
eval "$as_ac_var=no"
 
17655
fi
 
17656
rm -f conftest.err conftest.$ac_objext \
 
17657
      conftest$ac_exeext conftest.$ac_ext
 
17658
fi
 
17659
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17660
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17661
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17662
  cat >>confdefs.h <<_ACEOF
 
17663
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17664
_ACEOF
 
17665
 
 
17666
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
17667
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
17668
if test "${ac_cv_func__doprnt+set}" = set; then
 
17669
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17670
else
 
17671
  cat >conftest.$ac_ext <<_ACEOF
 
17672
/* confdefs.h.  */
 
17673
_ACEOF
 
17674
cat confdefs.h >>conftest.$ac_ext
 
17675
cat >>conftest.$ac_ext <<_ACEOF
 
17676
/* end confdefs.h.  */
 
17677
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
17678
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17679
#define _doprnt innocuous__doprnt
 
17680
 
 
17681
/* System header to define __stub macros and hopefully few prototypes,
 
17682
    which can conflict with char _doprnt (); below.
 
17683
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17684
    <limits.h> exists even on freestanding compilers.  */
 
17685
 
 
17686
#ifdef __STDC__
 
17687
# include <limits.h>
 
17688
#else
 
17689
# include <assert.h>
 
17690
#endif
 
17691
 
 
17692
#undef _doprnt
 
17693
 
 
17694
/* Override any gcc2 internal prototype to avoid an error.  */
 
17695
#ifdef __cplusplus
 
17696
extern "C"
 
17697
{
 
17698
#endif
 
17699
/* We use char because int might match the return type of a gcc2
 
17700
   builtin and then its argument prototype would still apply.  */
 
17701
char _doprnt ();
 
17702
/* The GNU C library defines this for functions which it implements
 
17703
    to always fail with ENOSYS.  Some functions are actually named
 
17704
    something starting with __ and the normal name is an alias.  */
 
17705
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
17706
choke me
 
17707
#else
 
17708
char (*f) () = _doprnt;
 
17709
#endif
 
17710
#ifdef __cplusplus
 
17711
}
 
17712
#endif
 
17713
 
 
17714
int
 
17715
main ()
 
17716
{
 
17717
return f != _doprnt;
 
17718
  ;
 
17719
  return 0;
 
17720
}
 
17721
_ACEOF
 
17722
rm -f conftest.$ac_objext conftest$ac_exeext
 
17723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17724
  (eval $ac_link) 2>conftest.er1
 
17725
  ac_status=$?
 
17726
  grep -v '^ *+' conftest.er1 >conftest.err
 
17727
  rm -f conftest.er1
 
17728
  cat conftest.err >&5
 
17729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17730
  (exit $ac_status); } &&
 
17731
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17733
  (eval $ac_try) 2>&5
 
17734
  ac_status=$?
 
17735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17736
  (exit $ac_status); }; } &&
 
17737
         { ac_try='test -s conftest$ac_exeext'
 
17738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17739
  (eval $ac_try) 2>&5
 
17740
  ac_status=$?
 
17741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17742
  (exit $ac_status); }; }; then
 
17743
  ac_cv_func__doprnt=yes
 
17744
else
 
17745
  echo "$as_me: failed program was:" >&5
 
17746
sed 's/^/| /' conftest.$ac_ext >&5
 
17747
 
 
17748
ac_cv_func__doprnt=no
 
17749
fi
 
17750
rm -f conftest.err conftest.$ac_objext \
 
17751
      conftest$ac_exeext conftest.$ac_ext
 
17752
fi
 
17753
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
17754
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
17755
if test $ac_cv_func__doprnt = yes; then
 
17756
 
 
17757
cat >>confdefs.h <<\_ACEOF
 
17758
#define HAVE_DOPRNT 1
 
17759
_ACEOF
 
17760
 
 
17761
fi
 
17762
 
 
17763
fi
 
17764
done
 
17765
 
 
17766
 
 
17767
echo "$as_me:$LINENO: checking for pid_t" >&5
 
17768
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
17769
if test "${ac_cv_type_pid_t+set}" = set; then
 
17770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17771
else
 
17772
  cat >conftest.$ac_ext <<_ACEOF
 
17773
/* confdefs.h.  */
 
17774
_ACEOF
 
17775
cat confdefs.h >>conftest.$ac_ext
 
17776
cat >>conftest.$ac_ext <<_ACEOF
 
17777
/* end confdefs.h.  */
 
17778
$ac_includes_default
 
17779
int
 
17780
main ()
 
17781
{
 
17782
if ((pid_t *) 0)
 
17783
  return 0;
 
17784
if (sizeof (pid_t))
 
17785
  return 0;
 
17786
  ;
 
17787
  return 0;
 
17788
}
 
17789
_ACEOF
 
17790
rm -f conftest.$ac_objext
 
17791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17792
  (eval $ac_compile) 2>conftest.er1
 
17793
  ac_status=$?
 
17794
  grep -v '^ *+' conftest.er1 >conftest.err
 
17795
  rm -f conftest.er1
 
17796
  cat conftest.err >&5
 
17797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17798
  (exit $ac_status); } &&
 
17799
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17801
  (eval $ac_try) 2>&5
 
17802
  ac_status=$?
 
17803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17804
  (exit $ac_status); }; } &&
 
17805
         { ac_try='test -s conftest.$ac_objext'
 
17806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17807
  (eval $ac_try) 2>&5
 
17808
  ac_status=$?
 
17809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17810
  (exit $ac_status); }; }; then
 
17811
  ac_cv_type_pid_t=yes
 
17812
else
 
17813
  echo "$as_me: failed program was:" >&5
 
17814
sed 's/^/| /' conftest.$ac_ext >&5
 
17815
 
 
17816
ac_cv_type_pid_t=no
 
17817
fi
 
17818
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17819
fi
 
17820
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
17821
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
17822
if test $ac_cv_type_pid_t = yes; then
 
17823
  :
 
17824
else
 
17825
 
 
17826
cat >>confdefs.h <<_ACEOF
 
17827
#define pid_t int
 
17828
_ACEOF
 
17829
 
 
17830
fi
 
17831
 
 
17832
 
 
17833
 
 
17834
for ac_header in unistd.h vfork.h
 
17835
do
 
17836
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17837
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17838
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17839
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
17840
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17842
fi
 
17843
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
17844
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17845
else
 
17846
  # Is the header compilable?
 
17847
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17848
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
17849
cat >conftest.$ac_ext <<_ACEOF
 
17850
/* confdefs.h.  */
 
17851
_ACEOF
 
17852
cat confdefs.h >>conftest.$ac_ext
 
17853
cat >>conftest.$ac_ext <<_ACEOF
 
17854
/* end confdefs.h.  */
 
17855
$ac_includes_default
 
17856
#include <$ac_header>
 
17857
_ACEOF
 
17858
rm -f conftest.$ac_objext
 
17859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17860
  (eval $ac_compile) 2>conftest.er1
 
17861
  ac_status=$?
 
17862
  grep -v '^ *+' conftest.er1 >conftest.err
 
17863
  rm -f conftest.er1
 
17864
  cat conftest.err >&5
 
17865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17866
  (exit $ac_status); } &&
 
17867
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17869
  (eval $ac_try) 2>&5
 
17870
  ac_status=$?
 
17871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17872
  (exit $ac_status); }; } &&
 
17873
         { ac_try='test -s conftest.$ac_objext'
 
17874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17875
  (eval $ac_try) 2>&5
 
17876
  ac_status=$?
 
17877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17878
  (exit $ac_status); }; }; then
 
17879
  ac_header_compiler=yes
 
17880
else
 
17881
  echo "$as_me: failed program was:" >&5
 
17882
sed 's/^/| /' conftest.$ac_ext >&5
 
17883
 
 
17884
ac_header_compiler=no
 
17885
fi
 
17886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17887
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17888
echo "${ECHO_T}$ac_header_compiler" >&6
 
17889
 
 
17890
# Is the header present?
 
17891
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17892
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
17893
cat >conftest.$ac_ext <<_ACEOF
 
17894
/* confdefs.h.  */
 
17895
_ACEOF
 
17896
cat confdefs.h >>conftest.$ac_ext
 
17897
cat >>conftest.$ac_ext <<_ACEOF
 
17898
/* end confdefs.h.  */
 
17899
#include <$ac_header>
 
17900
_ACEOF
 
17901
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
17902
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
17903
  ac_status=$?
 
17904
  grep -v '^ *+' conftest.er1 >conftest.err
 
17905
  rm -f conftest.er1
 
17906
  cat conftest.err >&5
 
17907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17908
  (exit $ac_status); } >/dev/null; then
 
17909
  if test -s conftest.err; then
 
17910
    ac_cpp_err=$ac_c_preproc_warn_flag
 
17911
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
17912
  else
 
17913
    ac_cpp_err=
 
17914
  fi
 
17915
else
 
17916
  ac_cpp_err=yes
 
17917
fi
 
17918
if test -z "$ac_cpp_err"; then
 
17919
  ac_header_preproc=yes
 
17920
else
 
17921
  echo "$as_me: failed program was:" >&5
 
17922
sed 's/^/| /' conftest.$ac_ext >&5
 
17923
 
 
17924
  ac_header_preproc=no
 
17925
fi
 
17926
rm -f conftest.err conftest.$ac_ext
 
17927
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17928
echo "${ECHO_T}$ac_header_preproc" >&6
 
17929
 
 
17930
# So?  What about this header?
 
17931
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17932
  yes:no: )
 
17933
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
17934
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17935
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
17936
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
17937
    ac_header_preproc=yes
 
17938
    ;;
 
17939
  no:yes:* )
 
17940
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
17941
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
17942
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
17943
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
17944
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
17945
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
17946
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
17947
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17948
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
17949
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
17950
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
17951
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
17952
    (
 
17953
      cat <<\_ASBOX
 
17954
## ------------------------------------ ##
 
17955
## Report this to gnupg-devel@gnupg.org ##
 
17956
## ------------------------------------ ##
 
17957
_ASBOX
 
17958
    ) |
 
17959
      sed "s/^/$as_me: WARNING:     /" >&2
 
17960
    ;;
 
17961
esac
 
17962
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17963
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
17964
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17966
else
 
17967
  eval "$as_ac_Header=\$ac_header_preproc"
 
17968
fi
 
17969
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
17970
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17971
 
 
17972
fi
 
17973
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
17974
  cat >>confdefs.h <<_ACEOF
 
17975
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17976
_ACEOF
 
17977
 
 
17978
fi
 
17979
 
 
17980
done
 
17981
 
 
17982
 
 
17983
 
 
17984
for ac_func in fork vfork
 
17985
do
 
17986
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17987
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17988
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
17989
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17991
else
 
17992
  cat >conftest.$ac_ext <<_ACEOF
 
17993
/* confdefs.h.  */
 
17994
_ACEOF
 
17995
cat confdefs.h >>conftest.$ac_ext
 
17996
cat >>conftest.$ac_ext <<_ACEOF
 
17997
/* end confdefs.h.  */
 
17998
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17999
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18000
#define $ac_func innocuous_$ac_func
 
18001
 
 
18002
/* System header to define __stub macros and hopefully few prototypes,
 
18003
    which can conflict with char $ac_func (); below.
 
18004
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18005
    <limits.h> exists even on freestanding compilers.  */
 
18006
 
 
18007
#ifdef __STDC__
 
18008
# include <limits.h>
 
18009
#else
 
18010
# include <assert.h>
 
18011
#endif
 
18012
 
 
18013
#undef $ac_func
 
18014
 
 
18015
/* Override any gcc2 internal prototype to avoid an error.  */
 
18016
#ifdef __cplusplus
 
18017
extern "C"
 
18018
{
 
18019
#endif
 
18020
/* We use char because int might match the return type of a gcc2
 
18021
   builtin and then its argument prototype would still apply.  */
 
18022
char $ac_func ();
 
18023
/* The GNU C library defines this for functions which it implements
 
18024
    to always fail with ENOSYS.  Some functions are actually named
 
18025
    something starting with __ and the normal name is an alias.  */
 
18026
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18027
choke me
 
18028
#else
 
18029
char (*f) () = $ac_func;
 
18030
#endif
 
18031
#ifdef __cplusplus
 
18032
}
 
18033
#endif
 
18034
 
 
18035
int
 
18036
main ()
 
18037
{
 
18038
return f != $ac_func;
 
18039
  ;
 
18040
  return 0;
 
18041
}
 
18042
_ACEOF
 
18043
rm -f conftest.$ac_objext conftest$ac_exeext
 
18044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18045
  (eval $ac_link) 2>conftest.er1
 
18046
  ac_status=$?
 
18047
  grep -v '^ *+' conftest.er1 >conftest.err
 
18048
  rm -f conftest.er1
 
18049
  cat conftest.err >&5
 
18050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18051
  (exit $ac_status); } &&
 
18052
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18054
  (eval $ac_try) 2>&5
 
18055
  ac_status=$?
 
18056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18057
  (exit $ac_status); }; } &&
 
18058
         { ac_try='test -s conftest$ac_exeext'
 
18059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18060
  (eval $ac_try) 2>&5
 
18061
  ac_status=$?
 
18062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18063
  (exit $ac_status); }; }; then
 
18064
  eval "$as_ac_var=yes"
 
18065
else
 
18066
  echo "$as_me: failed program was:" >&5
 
18067
sed 's/^/| /' conftest.$ac_ext >&5
 
18068
 
 
18069
eval "$as_ac_var=no"
 
18070
fi
 
18071
rm -f conftest.err conftest.$ac_objext \
 
18072
      conftest$ac_exeext conftest.$ac_ext
 
18073
fi
 
18074
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18075
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18076
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18077
  cat >>confdefs.h <<_ACEOF
 
18078
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18079
_ACEOF
 
18080
 
 
18081
fi
 
18082
done
 
18083
 
 
18084
if test "x$ac_cv_func_fork" = xyes; then
 
18085
  echo "$as_me:$LINENO: checking for working fork" >&5
 
18086
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
 
18087
if test "${ac_cv_func_fork_works+set}" = set; then
 
18088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18089
else
 
18090
  if test "$cross_compiling" = yes; then
 
18091
  ac_cv_func_fork_works=cross
 
18092
else
 
18093
  cat >conftest.$ac_ext <<_ACEOF
 
18094
/* By Ruediger Kuhlmann. */
 
18095
      #include <sys/types.h>
 
18096
      #if HAVE_UNISTD_H
 
18097
      # include <unistd.h>
 
18098
      #endif
 
18099
      /* Some systems only have a dummy stub for fork() */
 
18100
      int main ()
 
18101
      {
 
18102
        if (fork() < 0)
 
18103
          exit (1);
 
18104
        exit (0);
 
18105
      }
 
18106
_ACEOF
 
18107
rm -f conftest$ac_exeext
 
18108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18109
  (eval $ac_link) 2>&5
 
18110
  ac_status=$?
 
18111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18112
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18114
  (eval $ac_try) 2>&5
 
18115
  ac_status=$?
 
18116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18117
  (exit $ac_status); }; }; then
 
18118
  ac_cv_func_fork_works=yes
 
18119
else
 
18120
  echo "$as_me: program exited with status $ac_status" >&5
 
18121
echo "$as_me: failed program was:" >&5
 
18122
sed 's/^/| /' conftest.$ac_ext >&5
 
18123
 
 
18124
( exit $ac_status )
 
18125
ac_cv_func_fork_works=no
 
18126
fi
 
18127
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18128
fi
 
18129
fi
 
18130
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
18131
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
 
18132
 
 
18133
else
 
18134
  ac_cv_func_fork_works=$ac_cv_func_fork
 
18135
fi
 
18136
if test "x$ac_cv_func_fork_works" = xcross; then
 
18137
  case $host in
 
18138
    *-*-amigaos* | *-*-msdosdjgpp*)
 
18139
      # Override, as these systems have only a dummy fork() stub
 
18140
      ac_cv_func_fork_works=no
 
18141
      ;;
 
18142
    *)
 
18143
      ac_cv_func_fork_works=yes
 
18144
      ;;
 
18145
  esac
 
18146
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
18147
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
18148
fi
 
18149
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
18150
if test "x$ac_cv_func_vfork" = xyes; then
 
18151
  echo "$as_me:$LINENO: checking for working vfork" >&5
 
18152
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
 
18153
if test "${ac_cv_func_vfork_works+set}" = set; then
 
18154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18155
else
 
18156
  if test "$cross_compiling" = yes; then
 
18157
  ac_cv_func_vfork_works=cross
 
18158
else
 
18159
  cat >conftest.$ac_ext <<_ACEOF
 
18160
/* confdefs.h.  */
 
18161
_ACEOF
 
18162
cat confdefs.h >>conftest.$ac_ext
 
18163
cat >>conftest.$ac_ext <<_ACEOF
 
18164
/* end confdefs.h.  */
 
18165
/* Thanks to Paul Eggert for this test.  */
 
18166
#include <stdio.h>
 
18167
#include <stdlib.h>
 
18168
#include <sys/types.h>
 
18169
#include <sys/stat.h>
 
18170
#include <sys/wait.h>
 
18171
#if HAVE_UNISTD_H
 
18172
# include <unistd.h>
 
18173
#endif
 
18174
#if HAVE_VFORK_H
 
18175
# include <vfork.h>
 
18176
#endif
 
18177
/* On some sparc systems, changes by the child to local and incoming
 
18178
   argument registers are propagated back to the parent.  The compiler
 
18179
   is told about this with #include <vfork.h>, but some compilers
 
18180
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
18181
   static variable whose address is put into a register that is
 
18182
   clobbered by the vfork.  */
 
18183
static void
 
18184
#ifdef __cplusplus
 
18185
sparc_address_test (int arg)
 
18186
# else
 
18187
sparc_address_test (arg) int arg;
 
18188
#endif
 
18189
{
 
18190
  static pid_t child;
 
18191
  if (!child) {
 
18192
    child = vfork ();
 
18193
    if (child < 0) {
 
18194
      perror ("vfork");
 
18195
      _exit(2);
 
18196
    }
 
18197
    if (!child) {
 
18198
      arg = getpid();
 
18199
      write(-1, "", 0);
 
18200
      _exit (arg);
 
18201
    }
 
18202
  }
 
18203
}
 
18204
 
 
18205
int
 
18206
main ()
 
18207
{
 
18208
  pid_t parent = getpid ();
 
18209
  pid_t child;
 
18210
 
 
18211
  sparc_address_test (0);
 
18212
 
 
18213
  child = vfork ();
 
18214
 
 
18215
  if (child == 0) {
 
18216
    /* Here is another test for sparc vfork register problems.  This
 
18217
       test uses lots of local variables, at least as many local
 
18218
       variables as main has allocated so far including compiler
 
18219
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
18220
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
18221
       reuse the register of parent for one of the local variables,
 
18222
       since it will think that parent can't possibly be used any more
 
18223
       in this routine.  Assigning to the local variable will thus
 
18224
       munge parent in the parent process.  */
 
18225
    pid_t
 
18226
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
18227
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
18228
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
18229
       use the same hardware register for all 8 local variables.  */
 
18230
    if (p != p1 || p != p2 || p != p3 || p != p4
 
18231
        || p != p5 || p != p6 || p != p7)
 
18232
      _exit(1);
 
18233
 
 
18234
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
18235
       from child file descriptors.  If the child closes a descriptor
 
18236
       before it execs or exits, this munges the parent's descriptor
 
18237
       as well.  Test for this by closing stdout in the child.  */
 
18238
    _exit(close(fileno(stdout)) != 0);
 
18239
  } else {
 
18240
    int status;
 
18241
    struct stat st;
 
18242
 
 
18243
    while (wait(&status) != child)
 
18244
      ;
 
18245
    exit(
 
18246
         /* Was there some problem with vforking?  */
 
18247
         child < 0
 
18248
 
 
18249
         /* Did the child fail?  (This shouldn't happen.)  */
 
18250
         || status
 
18251
 
 
18252
         /* Did the vfork/compiler bug occur?  */
 
18253
         || parent != getpid()
 
18254
 
 
18255
         /* Did the file descriptor bug occur?  */
 
18256
         || fstat(fileno(stdout), &st) != 0
 
18257
         );
 
18258
  }
 
18259
}
 
18260
_ACEOF
 
18261
rm -f conftest$ac_exeext
 
18262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18263
  (eval $ac_link) 2>&5
 
18264
  ac_status=$?
 
18265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18266
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18268
  (eval $ac_try) 2>&5
 
18269
  ac_status=$?
 
18270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18271
  (exit $ac_status); }; }; then
 
18272
  ac_cv_func_vfork_works=yes
 
18273
else
 
18274
  echo "$as_me: program exited with status $ac_status" >&5
 
18275
echo "$as_me: failed program was:" >&5
 
18276
sed 's/^/| /' conftest.$ac_ext >&5
 
18277
 
 
18278
( exit $ac_status )
 
18279
ac_cv_func_vfork_works=no
 
18280
fi
 
18281
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18282
fi
 
18283
fi
 
18284
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
18285
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
 
18286
 
 
18287
fi;
 
18288
if test "x$ac_cv_func_fork_works" = xcross; then
 
18289
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
18290
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
18291
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
18292
fi
 
18293
 
 
18294
if test "x$ac_cv_func_vfork_works" = xyes; then
 
18295
 
 
18296
cat >>confdefs.h <<\_ACEOF
 
18297
#define HAVE_WORKING_VFORK 1
 
18298
_ACEOF
 
18299
 
 
18300
else
 
18301
 
 
18302
cat >>confdefs.h <<\_ACEOF
 
18303
#define vfork fork
 
18304
_ACEOF
 
18305
 
 
18306
fi
 
18307
if test "x$ac_cv_func_fork_works" = xyes; then
 
18308
 
 
18309
cat >>confdefs.h <<\_ACEOF
 
18310
#define HAVE_WORKING_FORK 1
 
18311
_ACEOF
 
18312
 
 
18313
fi
 
18314
 
 
18315
 
 
18316
 
 
18317
 
 
18318
 
 
18319
 
 
18320
 
 
18321
 
 
18322
for ac_func in strerror stpcpy strsep strlwr tcgetattr strtoul mmap
 
18323
do
 
18324
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18325
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18326
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18327
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18329
else
 
18330
  cat >conftest.$ac_ext <<_ACEOF
 
18331
/* confdefs.h.  */
 
18332
_ACEOF
 
18333
cat confdefs.h >>conftest.$ac_ext
 
18334
cat >>conftest.$ac_ext <<_ACEOF
 
18335
/* end confdefs.h.  */
 
18336
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18337
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18338
#define $ac_func innocuous_$ac_func
 
18339
 
 
18340
/* System header to define __stub macros and hopefully few prototypes,
 
18341
    which can conflict with char $ac_func (); below.
 
18342
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18343
    <limits.h> exists even on freestanding compilers.  */
 
18344
 
 
18345
#ifdef __STDC__
 
18346
# include <limits.h>
 
18347
#else
 
18348
# include <assert.h>
 
18349
#endif
 
18350
 
 
18351
#undef $ac_func
 
18352
 
 
18353
/* Override any gcc2 internal prototype to avoid an error.  */
 
18354
#ifdef __cplusplus
 
18355
extern "C"
 
18356
{
 
18357
#endif
 
18358
/* We use char because int might match the return type of a gcc2
 
18359
   builtin and then its argument prototype would still apply.  */
 
18360
char $ac_func ();
 
18361
/* The GNU C library defines this for functions which it implements
 
18362
    to always fail with ENOSYS.  Some functions are actually named
 
18363
    something starting with __ and the normal name is an alias.  */
 
18364
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18365
choke me
 
18366
#else
 
18367
char (*f) () = $ac_func;
 
18368
#endif
 
18369
#ifdef __cplusplus
 
18370
}
 
18371
#endif
 
18372
 
 
18373
int
 
18374
main ()
 
18375
{
 
18376
return f != $ac_func;
 
18377
  ;
 
18378
  return 0;
 
18379
}
 
18380
_ACEOF
 
18381
rm -f conftest.$ac_objext conftest$ac_exeext
 
18382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18383
  (eval $ac_link) 2>conftest.er1
 
18384
  ac_status=$?
 
18385
  grep -v '^ *+' conftest.er1 >conftest.err
 
18386
  rm -f conftest.er1
 
18387
  cat conftest.err >&5
 
18388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18389
  (exit $ac_status); } &&
 
18390
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18392
  (eval $ac_try) 2>&5
 
18393
  ac_status=$?
 
18394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18395
  (exit $ac_status); }; } &&
 
18396
         { ac_try='test -s conftest$ac_exeext'
 
18397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18398
  (eval $ac_try) 2>&5
 
18399
  ac_status=$?
 
18400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18401
  (exit $ac_status); }; }; then
 
18402
  eval "$as_ac_var=yes"
 
18403
else
 
18404
  echo "$as_me: failed program was:" >&5
 
18405
sed 's/^/| /' conftest.$ac_ext >&5
 
18406
 
 
18407
eval "$as_ac_var=no"
 
18408
fi
 
18409
rm -f conftest.err conftest.$ac_objext \
 
18410
      conftest$ac_exeext conftest.$ac_ext
 
18411
fi
 
18412
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18413
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18414
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18415
  cat >>confdefs.h <<_ACEOF
 
18416
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18417
_ACEOF
 
18418
 
 
18419
fi
 
18420
done
 
18421
 
 
18422
 
 
18423
 
 
18424
 
 
18425
 
 
18426
 
 
18427
for ac_func in strcasecmp strncasecmp ctermid times gmtime_r
 
18428
do
 
18429
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18430
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18431
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18432
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18434
else
 
18435
  cat >conftest.$ac_ext <<_ACEOF
 
18436
/* confdefs.h.  */
 
18437
_ACEOF
 
18438
cat confdefs.h >>conftest.$ac_ext
 
18439
cat >>conftest.$ac_ext <<_ACEOF
 
18440
/* end confdefs.h.  */
 
18441
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18442
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18443
#define $ac_func innocuous_$ac_func
 
18444
 
 
18445
/* System header to define __stub macros and hopefully few prototypes,
 
18446
    which can conflict with char $ac_func (); below.
 
18447
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18448
    <limits.h> exists even on freestanding compilers.  */
 
18449
 
 
18450
#ifdef __STDC__
 
18451
# include <limits.h>
 
18452
#else
 
18453
# include <assert.h>
 
18454
#endif
 
18455
 
 
18456
#undef $ac_func
 
18457
 
 
18458
/* Override any gcc2 internal prototype to avoid an error.  */
 
18459
#ifdef __cplusplus
 
18460
extern "C"
 
18461
{
 
18462
#endif
 
18463
/* We use char because int might match the return type of a gcc2
 
18464
   builtin and then its argument prototype would still apply.  */
 
18465
char $ac_func ();
 
18466
/* The GNU C library defines this for functions which it implements
 
18467
    to always fail with ENOSYS.  Some functions are actually named
 
18468
    something starting with __ and the normal name is an alias.  */
 
18469
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18470
choke me
 
18471
#else
 
18472
char (*f) () = $ac_func;
 
18473
#endif
 
18474
#ifdef __cplusplus
 
18475
}
 
18476
#endif
 
18477
 
 
18478
int
 
18479
main ()
 
18480
{
 
18481
return f != $ac_func;
 
18482
  ;
 
18483
  return 0;
 
18484
}
 
18485
_ACEOF
 
18486
rm -f conftest.$ac_objext conftest$ac_exeext
 
18487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18488
  (eval $ac_link) 2>conftest.er1
 
18489
  ac_status=$?
 
18490
  grep -v '^ *+' conftest.er1 >conftest.err
 
18491
  rm -f conftest.er1
 
18492
  cat conftest.err >&5
 
18493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18494
  (exit $ac_status); } &&
 
18495
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18497
  (eval $ac_try) 2>&5
 
18498
  ac_status=$?
 
18499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18500
  (exit $ac_status); }; } &&
 
18501
         { ac_try='test -s conftest$ac_exeext'
 
18502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18503
  (eval $ac_try) 2>&5
 
18504
  ac_status=$?
 
18505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18506
  (exit $ac_status); }; }; then
 
18507
  eval "$as_ac_var=yes"
 
18508
else
 
18509
  echo "$as_me: failed program was:" >&5
 
18510
sed 's/^/| /' conftest.$ac_ext >&5
 
18511
 
 
18512
eval "$as_ac_var=no"
 
18513
fi
 
18514
rm -f conftest.err conftest.$ac_objext \
 
18515
      conftest$ac_exeext conftest.$ac_ext
 
18516
fi
 
18517
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18518
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18519
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18520
  cat >>confdefs.h <<_ACEOF
 
18521
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18522
_ACEOF
 
18523
 
 
18524
fi
 
18525
done
 
18526
 
 
18527
 
 
18528
 
 
18529
 
 
18530
 
 
18531
 
 
18532
for ac_func in memmove gettimeofday getrusage setrlimit clock_gettime
 
18533
do
 
18534
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18535
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18536
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18537
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18539
else
 
18540
  cat >conftest.$ac_ext <<_ACEOF
 
18541
/* confdefs.h.  */
 
18542
_ACEOF
 
18543
cat confdefs.h >>conftest.$ac_ext
 
18544
cat >>conftest.$ac_ext <<_ACEOF
 
18545
/* end confdefs.h.  */
 
18546
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18547
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18548
#define $ac_func innocuous_$ac_func
 
18549
 
 
18550
/* System header to define __stub macros and hopefully few prototypes,
 
18551
    which can conflict with char $ac_func (); below.
 
18552
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18553
    <limits.h> exists even on freestanding compilers.  */
 
18554
 
 
18555
#ifdef __STDC__
 
18556
# include <limits.h>
 
18557
#else
 
18558
# include <assert.h>
 
18559
#endif
 
18560
 
 
18561
#undef $ac_func
 
18562
 
 
18563
/* Override any gcc2 internal prototype to avoid an error.  */
 
18564
#ifdef __cplusplus
 
18565
extern "C"
 
18566
{
 
18567
#endif
 
18568
/* We use char because int might match the return type of a gcc2
 
18569
   builtin and then its argument prototype would still apply.  */
 
18570
char $ac_func ();
 
18571
/* The GNU C library defines this for functions which it implements
 
18572
    to always fail with ENOSYS.  Some functions are actually named
 
18573
    something starting with __ and the normal name is an alias.  */
 
18574
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18575
choke me
 
18576
#else
 
18577
char (*f) () = $ac_func;
 
18578
#endif
 
18579
#ifdef __cplusplus
 
18580
}
 
18581
#endif
 
18582
 
 
18583
int
 
18584
main ()
 
18585
{
 
18586
return f != $ac_func;
 
18587
  ;
 
18588
  return 0;
 
18589
}
 
18590
_ACEOF
 
18591
rm -f conftest.$ac_objext conftest$ac_exeext
 
18592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18593
  (eval $ac_link) 2>conftest.er1
 
18594
  ac_status=$?
 
18595
  grep -v '^ *+' conftest.er1 >conftest.err
 
18596
  rm -f conftest.er1
 
18597
  cat conftest.err >&5
 
18598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18599
  (exit $ac_status); } &&
 
18600
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18602
  (eval $ac_try) 2>&5
 
18603
  ac_status=$?
 
18604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18605
  (exit $ac_status); }; } &&
 
18606
         { ac_try='test -s conftest$ac_exeext'
 
18607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18608
  (eval $ac_try) 2>&5
 
18609
  ac_status=$?
 
18610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18611
  (exit $ac_status); }; }; then
 
18612
  eval "$as_ac_var=yes"
 
18613
else
 
18614
  echo "$as_me: failed program was:" >&5
 
18615
sed 's/^/| /' conftest.$ac_ext >&5
 
18616
 
 
18617
eval "$as_ac_var=no"
 
18618
fi
 
18619
rm -f conftest.err conftest.$ac_objext \
 
18620
      conftest$ac_exeext conftest.$ac_ext
 
18621
fi
 
18622
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18623
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18624
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18625
  cat >>confdefs.h <<_ACEOF
 
18626
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18627
_ACEOF
 
18628
 
 
18629
fi
 
18630
done
 
18631
 
 
18632
 
 
18633
 
 
18634
 
 
18635
 
 
18636
 
 
18637
 
 
18638
for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
 
18639
do
 
18640
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18641
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18642
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18643
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18645
else
 
18646
  cat >conftest.$ac_ext <<_ACEOF
 
18647
/* confdefs.h.  */
 
18648
_ACEOF
 
18649
cat confdefs.h >>conftest.$ac_ext
 
18650
cat >>conftest.$ac_ext <<_ACEOF
 
18651
/* end confdefs.h.  */
 
18652
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18653
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18654
#define $ac_func innocuous_$ac_func
 
18655
 
 
18656
/* System header to define __stub macros and hopefully few prototypes,
 
18657
    which can conflict with char $ac_func (); below.
 
18658
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18659
    <limits.h> exists even on freestanding compilers.  */
 
18660
 
 
18661
#ifdef __STDC__
 
18662
# include <limits.h>
 
18663
#else
 
18664
# include <assert.h>
 
18665
#endif
 
18666
 
 
18667
#undef $ac_func
 
18668
 
 
18669
/* Override any gcc2 internal prototype to avoid an error.  */
 
18670
#ifdef __cplusplus
 
18671
extern "C"
 
18672
{
 
18673
#endif
 
18674
/* We use char because int might match the return type of a gcc2
 
18675
   builtin and then its argument prototype would still apply.  */
 
18676
char $ac_func ();
 
18677
/* The GNU C library defines this for functions which it implements
 
18678
    to always fail with ENOSYS.  Some functions are actually named
 
18679
    something starting with __ and the normal name is an alias.  */
 
18680
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18681
choke me
 
18682
#else
 
18683
char (*f) () = $ac_func;
 
18684
#endif
 
18685
#ifdef __cplusplus
 
18686
}
 
18687
#endif
 
18688
 
 
18689
int
 
18690
main ()
 
18691
{
 
18692
return f != $ac_func;
 
18693
  ;
 
18694
  return 0;
 
18695
}
 
18696
_ACEOF
 
18697
rm -f conftest.$ac_objext conftest$ac_exeext
 
18698
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18699
  (eval $ac_link) 2>conftest.er1
 
18700
  ac_status=$?
 
18701
  grep -v '^ *+' conftest.er1 >conftest.err
 
18702
  rm -f conftest.er1
 
18703
  cat conftest.err >&5
 
18704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18705
  (exit $ac_status); } &&
 
18706
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18708
  (eval $ac_try) 2>&5
 
18709
  ac_status=$?
 
18710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18711
  (exit $ac_status); }; } &&
 
18712
         { ac_try='test -s conftest$ac_exeext'
 
18713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18714
  (eval $ac_try) 2>&5
 
18715
  ac_status=$?
 
18716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18717
  (exit $ac_status); }; }; then
 
18718
  eval "$as_ac_var=yes"
 
18719
else
 
18720
  echo "$as_me: failed program was:" >&5
 
18721
sed 's/^/| /' conftest.$ac_ext >&5
 
18722
 
 
18723
eval "$as_ac_var=no"
 
18724
fi
 
18725
rm -f conftest.err conftest.$ac_objext \
 
18726
      conftest$ac_exeext conftest.$ac_ext
 
18727
fi
 
18728
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18729
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18730
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18731
  cat >>confdefs.h <<_ACEOF
 
18732
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18733
_ACEOF
 
18734
 
 
18735
fi
 
18736
done
 
18737
 
 
18738
 
 
18739
 
 
18740
 
 
18741
 
 
18742
 
 
18743
 
 
18744
 
 
18745
 
 
18746
for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo
 
18747
do
 
18748
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18749
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18750
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18751
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18753
else
 
18754
  cat >conftest.$ac_ext <<_ACEOF
 
18755
/* confdefs.h.  */
 
18756
_ACEOF
 
18757
cat confdefs.h >>conftest.$ac_ext
 
18758
cat >>conftest.$ac_ext <<_ACEOF
 
18759
/* end confdefs.h.  */
 
18760
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18761
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18762
#define $ac_func innocuous_$ac_func
 
18763
 
 
18764
/* System header to define __stub macros and hopefully few prototypes,
 
18765
    which can conflict with char $ac_func (); below.
 
18766
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18767
    <limits.h> exists even on freestanding compilers.  */
 
18768
 
 
18769
#ifdef __STDC__
 
18770
# include <limits.h>
 
18771
#else
 
18772
# include <assert.h>
 
18773
#endif
 
18774
 
 
18775
#undef $ac_func
 
18776
 
 
18777
/* Override any gcc2 internal prototype to avoid an error.  */
 
18778
#ifdef __cplusplus
 
18779
extern "C"
 
18780
{
 
18781
#endif
 
18782
/* We use char because int might match the return type of a gcc2
 
18783
   builtin and then its argument prototype would still apply.  */
 
18784
char $ac_func ();
 
18785
/* The GNU C library defines this for functions which it implements
 
18786
    to always fail with ENOSYS.  Some functions are actually named
 
18787
    something starting with __ and the normal name is an alias.  */
 
18788
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18789
choke me
 
18790
#else
 
18791
char (*f) () = $ac_func;
 
18792
#endif
 
18793
#ifdef __cplusplus
 
18794
}
 
18795
#endif
 
18796
 
 
18797
int
 
18798
main ()
 
18799
{
 
18800
return f != $ac_func;
 
18801
  ;
 
18802
  return 0;
 
18803
}
 
18804
_ACEOF
 
18805
rm -f conftest.$ac_objext conftest$ac_exeext
 
18806
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18807
  (eval $ac_link) 2>conftest.er1
 
18808
  ac_status=$?
 
18809
  grep -v '^ *+' conftest.er1 >conftest.err
 
18810
  rm -f conftest.er1
 
18811
  cat conftest.err >&5
 
18812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18813
  (exit $ac_status); } &&
 
18814
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18816
  (eval $ac_try) 2>&5
 
18817
  ac_status=$?
 
18818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18819
  (exit $ac_status); }; } &&
 
18820
         { ac_try='test -s conftest$ac_exeext'
 
18821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18822
  (eval $ac_try) 2>&5
 
18823
  ac_status=$?
 
18824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18825
  (exit $ac_status); }; }; then
 
18826
  eval "$as_ac_var=yes"
 
18827
else
 
18828
  echo "$as_me: failed program was:" >&5
 
18829
sed 's/^/| /' conftest.$ac_ext >&5
 
18830
 
 
18831
eval "$as_ac_var=no"
 
18832
fi
 
18833
rm -f conftest.err conftest.$ac_objext \
 
18834
      conftest$ac_exeext conftest.$ac_ext
 
18835
fi
 
18836
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18837
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18838
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18839
  cat >>confdefs.h <<_ACEOF
 
18840
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18841
_ACEOF
 
18842
 
 
18843
fi
 
18844
done
 
18845
 
 
18846
 
 
18847
echo "$as_me:$LINENO: checking for struct sigaction" >&5
 
18848
echo $ECHO_N "checking for struct sigaction... $ECHO_C" >&6
 
18849
if test "${ac_cv_type_struct_sigaction+set}" = set; then
 
18850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18851
else
 
18852
  cat >conftest.$ac_ext <<_ACEOF
 
18853
/* confdefs.h.  */
 
18854
_ACEOF
 
18855
cat confdefs.h >>conftest.$ac_ext
 
18856
cat >>conftest.$ac_ext <<_ACEOF
 
18857
/* end confdefs.h.  */
 
18858
#include <signal.h>
 
18859
 
 
18860
int
 
18861
main ()
 
18862
{
 
18863
if ((struct sigaction *) 0)
 
18864
  return 0;
 
18865
if (sizeof (struct sigaction))
 
18866
  return 0;
 
18867
  ;
 
18868
  return 0;
 
18869
}
 
18870
_ACEOF
 
18871
rm -f conftest.$ac_objext
 
18872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18873
  (eval $ac_compile) 2>conftest.er1
 
18874
  ac_status=$?
 
18875
  grep -v '^ *+' conftest.er1 >conftest.err
 
18876
  rm -f conftest.er1
 
18877
  cat conftest.err >&5
 
18878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18879
  (exit $ac_status); } &&
 
18880
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18882
  (eval $ac_try) 2>&5
 
18883
  ac_status=$?
 
18884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18885
  (exit $ac_status); }; } &&
 
18886
         { ac_try='test -s conftest.$ac_objext'
 
18887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18888
  (eval $ac_try) 2>&5
 
18889
  ac_status=$?
 
18890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18891
  (exit $ac_status); }; }; then
 
18892
  ac_cv_type_struct_sigaction=yes
 
18893
else
 
18894
  echo "$as_me: failed program was:" >&5
 
18895
sed 's/^/| /' conftest.$ac_ext >&5
 
18896
 
 
18897
ac_cv_type_struct_sigaction=no
 
18898
fi
 
18899
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18900
fi
 
18901
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sigaction" >&5
 
18902
echo "${ECHO_T}$ac_cv_type_struct_sigaction" >&6
 
18903
if test $ac_cv_type_struct_sigaction = yes; then
 
18904
 
 
18905
cat >>confdefs.h <<_ACEOF
 
18906
#define HAVE_STRUCT_SIGACTION 1
 
18907
_ACEOF
 
18908
 
 
18909
 
 
18910
fi
 
18911
echo "$as_me:$LINENO: checking for sigset_t" >&5
 
18912
echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
 
18913
if test "${ac_cv_type_sigset_t+set}" = set; then
 
18914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18915
else
 
18916
  cat >conftest.$ac_ext <<_ACEOF
 
18917
/* confdefs.h.  */
 
18918
_ACEOF
 
18919
cat confdefs.h >>conftest.$ac_ext
 
18920
cat >>conftest.$ac_ext <<_ACEOF
 
18921
/* end confdefs.h.  */
 
18922
#include <signal.h>
 
18923
 
 
18924
int
 
18925
main ()
 
18926
{
 
18927
if ((sigset_t *) 0)
 
18928
  return 0;
 
18929
if (sizeof (sigset_t))
 
18930
  return 0;
 
18931
  ;
 
18932
  return 0;
 
18933
}
 
18934
_ACEOF
 
18935
rm -f conftest.$ac_objext
 
18936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18937
  (eval $ac_compile) 2>conftest.er1
 
18938
  ac_status=$?
 
18939
  grep -v '^ *+' conftest.er1 >conftest.err
 
18940
  rm -f conftest.er1
 
18941
  cat conftest.err >&5
 
18942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18943
  (exit $ac_status); } &&
 
18944
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18946
  (eval $ac_try) 2>&5
 
18947
  ac_status=$?
 
18948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18949
  (exit $ac_status); }; } &&
 
18950
         { ac_try='test -s conftest.$ac_objext'
 
18951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18952
  (eval $ac_try) 2>&5
 
18953
  ac_status=$?
 
18954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18955
  (exit $ac_status); }; }; then
 
18956
  ac_cv_type_sigset_t=yes
 
18957
else
 
18958
  echo "$as_me: failed program was:" >&5
 
18959
sed 's/^/| /' conftest.$ac_ext >&5
 
18960
 
 
18961
ac_cv_type_sigset_t=no
 
18962
fi
 
18963
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18964
fi
 
18965
echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
 
18966
echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
 
18967
if test $ac_cv_type_sigset_t = yes; then
 
18968
 
 
18969
cat >>confdefs.h <<_ACEOF
 
18970
#define HAVE_SIGSET_T 1
 
18971
_ACEOF
 
18972
 
 
18973
 
 
18974
fi
 
18975
 
 
18976
 
 
18977
# These are needed by libjnlib - fixme: we should have macros for them
 
18978
 
 
18979
 
 
18980
 
 
18981
 
 
18982
 
 
18983
 
 
18984
 
 
18985
for ac_func in memicmp stpcpy strlwr strtoul memmove stricmp strtol
 
18986
do
 
18987
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18988
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18989
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18990
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18992
else
 
18993
  cat >conftest.$ac_ext <<_ACEOF
 
18994
/* confdefs.h.  */
 
18995
_ACEOF
 
18996
cat confdefs.h >>conftest.$ac_ext
 
18997
cat >>conftest.$ac_ext <<_ACEOF
 
18998
/* end confdefs.h.  */
 
18999
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19000
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19001
#define $ac_func innocuous_$ac_func
 
19002
 
 
19003
/* System header to define __stub macros and hopefully few prototypes,
 
19004
    which can conflict with char $ac_func (); below.
 
19005
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19006
    <limits.h> exists even on freestanding compilers.  */
 
19007
 
 
19008
#ifdef __STDC__
 
19009
# include <limits.h>
 
19010
#else
 
19011
# include <assert.h>
 
19012
#endif
 
19013
 
 
19014
#undef $ac_func
 
19015
 
 
19016
/* Override any gcc2 internal prototype to avoid an error.  */
 
19017
#ifdef __cplusplus
 
19018
extern "C"
 
19019
{
 
19020
#endif
 
19021
/* We use char because int might match the return type of a gcc2
 
19022
   builtin and then its argument prototype would still apply.  */
 
19023
char $ac_func ();
 
19024
/* The GNU C library defines this for functions which it implements
 
19025
    to always fail with ENOSYS.  Some functions are actually named
 
19026
    something starting with __ and the normal name is an alias.  */
 
19027
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19028
choke me
 
19029
#else
 
19030
char (*f) () = $ac_func;
 
19031
#endif
 
19032
#ifdef __cplusplus
 
19033
}
 
19034
#endif
 
19035
 
 
19036
int
 
19037
main ()
 
19038
{
 
19039
return f != $ac_func;
 
19040
  ;
 
19041
  return 0;
 
19042
}
 
19043
_ACEOF
 
19044
rm -f conftest.$ac_objext conftest$ac_exeext
 
19045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19046
  (eval $ac_link) 2>conftest.er1
 
19047
  ac_status=$?
 
19048
  grep -v '^ *+' conftest.er1 >conftest.err
 
19049
  rm -f conftest.er1
 
19050
  cat conftest.err >&5
 
19051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19052
  (exit $ac_status); } &&
 
19053
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19055
  (eval $ac_try) 2>&5
 
19056
  ac_status=$?
 
19057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19058
  (exit $ac_status); }; } &&
 
19059
         { ac_try='test -s conftest$ac_exeext'
 
19060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19061
  (eval $ac_try) 2>&5
 
19062
  ac_status=$?
 
19063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19064
  (exit $ac_status); }; }; then
 
19065
  eval "$as_ac_var=yes"
 
19066
else
 
19067
  echo "$as_me: failed program was:" >&5
 
19068
sed 's/^/| /' conftest.$ac_ext >&5
 
19069
 
 
19070
eval "$as_ac_var=no"
 
19071
fi
 
19072
rm -f conftest.err conftest.$ac_objext \
 
19073
      conftest$ac_exeext conftest.$ac_ext
 
19074
fi
 
19075
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19076
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19077
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19078
  cat >>confdefs.h <<_ACEOF
 
19079
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19080
_ACEOF
 
19081
 
 
19082
fi
 
19083
done
 
19084
 
 
19085
 
 
19086
 
 
19087
 
 
19088
 
 
19089
for ac_func in getrusage setrlimit stat setlocale
 
19090
do
 
19091
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19092
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19093
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19094
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19096
else
 
19097
  cat >conftest.$ac_ext <<_ACEOF
 
19098
/* confdefs.h.  */
 
19099
_ACEOF
 
19100
cat confdefs.h >>conftest.$ac_ext
 
19101
cat >>conftest.$ac_ext <<_ACEOF
 
19102
/* end confdefs.h.  */
 
19103
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19104
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19105
#define $ac_func innocuous_$ac_func
 
19106
 
 
19107
/* System header to define __stub macros and hopefully few prototypes,
 
19108
    which can conflict with char $ac_func (); below.
 
19109
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19110
    <limits.h> exists even on freestanding compilers.  */
 
19111
 
 
19112
#ifdef __STDC__
 
19113
# include <limits.h>
 
19114
#else
 
19115
# include <assert.h>
 
19116
#endif
 
19117
 
 
19118
#undef $ac_func
 
19119
 
 
19120
/* Override any gcc2 internal prototype to avoid an error.  */
 
19121
#ifdef __cplusplus
 
19122
extern "C"
 
19123
{
 
19124
#endif
 
19125
/* We use char because int might match the return type of a gcc2
 
19126
   builtin and then its argument prototype would still apply.  */
 
19127
char $ac_func ();
 
19128
/* The GNU C library defines this for functions which it implements
 
19129
    to always fail with ENOSYS.  Some functions are actually named
 
19130
    something starting with __ and the normal name is an alias.  */
 
19131
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19132
choke me
 
19133
#else
 
19134
char (*f) () = $ac_func;
 
19135
#endif
 
19136
#ifdef __cplusplus
 
19137
}
 
19138
#endif
 
19139
 
 
19140
int
 
19141
main ()
 
19142
{
 
19143
return f != $ac_func;
 
19144
  ;
 
19145
  return 0;
 
19146
}
 
19147
_ACEOF
 
19148
rm -f conftest.$ac_objext conftest$ac_exeext
 
19149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19150
  (eval $ac_link) 2>conftest.er1
 
19151
  ac_status=$?
 
19152
  grep -v '^ *+' conftest.er1 >conftest.err
 
19153
  rm -f conftest.er1
 
19154
  cat conftest.err >&5
 
19155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19156
  (exit $ac_status); } &&
 
19157
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19159
  (eval $ac_try) 2>&5
 
19160
  ac_status=$?
 
19161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19162
  (exit $ac_status); }; } &&
 
19163
         { ac_try='test -s conftest$ac_exeext'
 
19164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19165
  (eval $ac_try) 2>&5
 
19166
  ac_status=$?
 
19167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19168
  (exit $ac_status); }; }; then
 
19169
  eval "$as_ac_var=yes"
 
19170
else
 
19171
  echo "$as_me: failed program was:" >&5
 
19172
sed 's/^/| /' conftest.$ac_ext >&5
 
19173
 
 
19174
eval "$as_ac_var=no"
 
19175
fi
 
19176
rm -f conftest.err conftest.$ac_objext \
 
19177
      conftest$ac_exeext conftest.$ac_ext
 
19178
fi
 
19179
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19180
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19181
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19182
  cat >>confdefs.h <<_ACEOF
 
19183
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19184
_ACEOF
 
19185
 
 
19186
fi
 
19187
done
 
19188
 
 
19189
 
 
19190
 
 
19191
 
 
19192
 
 
19193
for ac_func in flockfile funlockfile fopencookie funopen
 
19194
do
 
19195
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19196
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19197
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19198
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19200
else
 
19201
  cat >conftest.$ac_ext <<_ACEOF
 
19202
/* confdefs.h.  */
 
19203
_ACEOF
 
19204
cat confdefs.h >>conftest.$ac_ext
 
19205
cat >>conftest.$ac_ext <<_ACEOF
 
19206
/* end confdefs.h.  */
 
19207
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19208
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19209
#define $ac_func innocuous_$ac_func
 
19210
 
 
19211
/* System header to define __stub macros and hopefully few prototypes,
 
19212
    which can conflict with char $ac_func (); below.
 
19213
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19214
    <limits.h> exists even on freestanding compilers.  */
 
19215
 
 
19216
#ifdef __STDC__
 
19217
# include <limits.h>
 
19218
#else
 
19219
# include <assert.h>
 
19220
#endif
 
19221
 
 
19222
#undef $ac_func
 
19223
 
 
19224
/* Override any gcc2 internal prototype to avoid an error.  */
 
19225
#ifdef __cplusplus
 
19226
extern "C"
 
19227
{
 
19228
#endif
 
19229
/* We use char because int might match the return type of a gcc2
 
19230
   builtin and then its argument prototype would still apply.  */
 
19231
char $ac_func ();
 
19232
/* The GNU C library defines this for functions which it implements
 
19233
    to always fail with ENOSYS.  Some functions are actually named
 
19234
    something starting with __ and the normal name is an alias.  */
 
19235
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19236
choke me
 
19237
#else
 
19238
char (*f) () = $ac_func;
 
19239
#endif
 
19240
#ifdef __cplusplus
 
19241
}
 
19242
#endif
 
19243
 
 
19244
int
 
19245
main ()
 
19246
{
 
19247
return f != $ac_func;
 
19248
  ;
 
19249
  return 0;
 
19250
}
 
19251
_ACEOF
 
19252
rm -f conftest.$ac_objext conftest$ac_exeext
 
19253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19254
  (eval $ac_link) 2>conftest.er1
 
19255
  ac_status=$?
 
19256
  grep -v '^ *+' conftest.er1 >conftest.err
 
19257
  rm -f conftest.er1
 
19258
  cat conftest.err >&5
 
19259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19260
  (exit $ac_status); } &&
 
19261
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19263
  (eval $ac_try) 2>&5
 
19264
  ac_status=$?
 
19265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19266
  (exit $ac_status); }; } &&
 
19267
         { ac_try='test -s conftest$ac_exeext'
 
19268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19269
  (eval $ac_try) 2>&5
 
19270
  ac_status=$?
 
19271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19272
  (exit $ac_status); }; }; then
 
19273
  eval "$as_ac_var=yes"
 
19274
else
 
19275
  echo "$as_me: failed program was:" >&5
 
19276
sed 's/^/| /' conftest.$ac_ext >&5
 
19277
 
 
19278
eval "$as_ac_var=no"
 
19279
fi
 
19280
rm -f conftest.err conftest.$ac_objext \
 
19281
      conftest$ac_exeext conftest.$ac_ext
 
19282
fi
 
19283
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19284
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19285
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19286
  cat >>confdefs.h <<_ACEOF
 
19287
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19288
_ACEOF
 
19289
 
 
19290
fi
 
19291
done
 
19292
 
 
19293
 
 
19294
 
 
19295
for ac_func in vasprintf
 
19296
do
 
19297
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19298
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19299
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19300
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19302
else
 
19303
  cat >conftest.$ac_ext <<_ACEOF
 
19304
/* confdefs.h.  */
 
19305
_ACEOF
 
19306
cat confdefs.h >>conftest.$ac_ext
 
19307
cat >>conftest.$ac_ext <<_ACEOF
 
19308
/* end confdefs.h.  */
 
19309
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19310
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19311
#define $ac_func innocuous_$ac_func
 
19312
 
 
19313
/* System header to define __stub macros and hopefully few prototypes,
 
19314
    which can conflict with char $ac_func (); below.
 
19315
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19316
    <limits.h> exists even on freestanding compilers.  */
 
19317
 
 
19318
#ifdef __STDC__
 
19319
# include <limits.h>
 
19320
#else
 
19321
# include <assert.h>
 
19322
#endif
 
19323
 
 
19324
#undef $ac_func
 
19325
 
 
19326
/* Override any gcc2 internal prototype to avoid an error.  */
 
19327
#ifdef __cplusplus
 
19328
extern "C"
 
19329
{
 
19330
#endif
 
19331
/* We use char because int might match the return type of a gcc2
 
19332
   builtin and then its argument prototype would still apply.  */
 
19333
char $ac_func ();
 
19334
/* The GNU C library defines this for functions which it implements
 
19335
    to always fail with ENOSYS.  Some functions are actually named
 
19336
    something starting with __ and the normal name is an alias.  */
 
19337
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19338
choke me
 
19339
#else
 
19340
char (*f) () = $ac_func;
 
19341
#endif
 
19342
#ifdef __cplusplus
 
19343
}
 
19344
#endif
 
19345
 
 
19346
int
 
19347
main ()
 
19348
{
 
19349
return f != $ac_func;
 
19350
  ;
 
19351
  return 0;
 
19352
}
 
19353
_ACEOF
 
19354
rm -f conftest.$ac_objext conftest$ac_exeext
 
19355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19356
  (eval $ac_link) 2>conftest.er1
 
19357
  ac_status=$?
 
19358
  grep -v '^ *+' conftest.er1 >conftest.err
 
19359
  rm -f conftest.er1
 
19360
  cat conftest.err >&5
 
19361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19362
  (exit $ac_status); } &&
 
19363
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19365
  (eval $ac_try) 2>&5
 
19366
  ac_status=$?
 
19367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19368
  (exit $ac_status); }; } &&
 
19369
         { ac_try='test -s conftest$ac_exeext'
 
19370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19371
  (eval $ac_try) 2>&5
 
19372
  ac_status=$?
 
19373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19374
  (exit $ac_status); }; }; then
 
19375
  eval "$as_ac_var=yes"
 
19376
else
 
19377
  echo "$as_me: failed program was:" >&5
 
19378
sed 's/^/| /' conftest.$ac_ext >&5
 
19379
 
 
19380
eval "$as_ac_var=no"
 
19381
fi
 
19382
rm -f conftest.err conftest.$ac_objext \
 
19383
      conftest$ac_exeext conftest.$ac_ext
 
19384
fi
 
19385
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19386
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19387
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19388
  cat >>confdefs.h <<_ACEOF
 
19389
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19390
_ACEOF
 
19391
 
 
19392
else
 
19393
  case $LIBOBJS in
 
19394
    "$ac_func.$ac_objext"   | \
 
19395
  *" $ac_func.$ac_objext"   | \
 
19396
    "$ac_func.$ac_objext "* | \
 
19397
  *" $ac_func.$ac_objext "* ) ;;
 
19398
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19399
esac
 
19400
 
 
19401
fi
 
19402
done
 
19403
 
 
19404
 
 
19405
 
 
19406
for ac_func in mkdtemp
 
19407
do
 
19408
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19409
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19410
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19411
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19413
else
 
19414
  cat >conftest.$ac_ext <<_ACEOF
 
19415
/* confdefs.h.  */
 
19416
_ACEOF
 
19417
cat confdefs.h >>conftest.$ac_ext
 
19418
cat >>conftest.$ac_ext <<_ACEOF
 
19419
/* end confdefs.h.  */
 
19420
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19421
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19422
#define $ac_func innocuous_$ac_func
 
19423
 
 
19424
/* System header to define __stub macros and hopefully few prototypes,
 
19425
    which can conflict with char $ac_func (); below.
 
19426
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19427
    <limits.h> exists even on freestanding compilers.  */
 
19428
 
 
19429
#ifdef __STDC__
 
19430
# include <limits.h>
 
19431
#else
 
19432
# include <assert.h>
 
19433
#endif
 
19434
 
 
19435
#undef $ac_func
 
19436
 
 
19437
/* Override any gcc2 internal prototype to avoid an error.  */
 
19438
#ifdef __cplusplus
 
19439
extern "C"
 
19440
{
 
19441
#endif
 
19442
/* We use char because int might match the return type of a gcc2
 
19443
   builtin and then its argument prototype would still apply.  */
 
19444
char $ac_func ();
 
19445
/* The GNU C library defines this for functions which it implements
 
19446
    to always fail with ENOSYS.  Some functions are actually named
 
19447
    something starting with __ and the normal name is an alias.  */
 
19448
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19449
choke me
 
19450
#else
 
19451
char (*f) () = $ac_func;
 
19452
#endif
 
19453
#ifdef __cplusplus
 
19454
}
 
19455
#endif
 
19456
 
 
19457
int
 
19458
main ()
 
19459
{
 
19460
return f != $ac_func;
 
19461
  ;
 
19462
  return 0;
 
19463
}
 
19464
_ACEOF
 
19465
rm -f conftest.$ac_objext conftest$ac_exeext
 
19466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19467
  (eval $ac_link) 2>conftest.er1
 
19468
  ac_status=$?
 
19469
  grep -v '^ *+' conftest.er1 >conftest.err
 
19470
  rm -f conftest.er1
 
19471
  cat conftest.err >&5
 
19472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19473
  (exit $ac_status); } &&
 
19474
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19476
  (eval $ac_try) 2>&5
 
19477
  ac_status=$?
 
19478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19479
  (exit $ac_status); }; } &&
 
19480
         { ac_try='test -s conftest$ac_exeext'
 
19481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19482
  (eval $ac_try) 2>&5
 
19483
  ac_status=$?
 
19484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19485
  (exit $ac_status); }; }; then
 
19486
  eval "$as_ac_var=yes"
 
19487
else
 
19488
  echo "$as_me: failed program was:" >&5
 
19489
sed 's/^/| /' conftest.$ac_ext >&5
 
19490
 
 
19491
eval "$as_ac_var=no"
 
19492
fi
 
19493
rm -f conftest.err conftest.$ac_objext \
 
19494
      conftest$ac_exeext conftest.$ac_ext
 
19495
fi
 
19496
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19497
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19498
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19499
  cat >>confdefs.h <<_ACEOF
 
19500
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19501
_ACEOF
 
19502
 
 
19503
else
 
19504
  case $LIBOBJS in
 
19505
    "$ac_func.$ac_objext"   | \
 
19506
  *" $ac_func.$ac_objext"   | \
 
19507
    "$ac_func.$ac_objext "* | \
 
19508
  *" $ac_func.$ac_objext "* ) ;;
 
19509
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19510
esac
 
19511
 
 
19512
fi
 
19513
done
 
19514
 
 
19515
 
 
19516
 
 
19517
 
 
19518
for ac_func in fseeko ftello
 
19519
do
 
19520
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19521
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19522
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19523
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19525
else
 
19526
  cat >conftest.$ac_ext <<_ACEOF
 
19527
/* confdefs.h.  */
 
19528
_ACEOF
 
19529
cat confdefs.h >>conftest.$ac_ext
 
19530
cat >>conftest.$ac_ext <<_ACEOF
 
19531
/* end confdefs.h.  */
 
19532
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19533
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19534
#define $ac_func innocuous_$ac_func
 
19535
 
 
19536
/* System header to define __stub macros and hopefully few prototypes,
 
19537
    which can conflict with char $ac_func (); below.
 
19538
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19539
    <limits.h> exists even on freestanding compilers.  */
 
19540
 
 
19541
#ifdef __STDC__
 
19542
# include <limits.h>
 
19543
#else
 
19544
# include <assert.h>
 
19545
#endif
 
19546
 
 
19547
#undef $ac_func
 
19548
 
 
19549
/* Override any gcc2 internal prototype to avoid an error.  */
 
19550
#ifdef __cplusplus
 
19551
extern "C"
 
19552
{
 
19553
#endif
 
19554
/* We use char because int might match the return type of a gcc2
 
19555
   builtin and then its argument prototype would still apply.  */
 
19556
char $ac_func ();
 
19557
/* The GNU C library defines this for functions which it implements
 
19558
    to always fail with ENOSYS.  Some functions are actually named
 
19559
    something starting with __ and the normal name is an alias.  */
 
19560
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19561
choke me
 
19562
#else
 
19563
char (*f) () = $ac_func;
 
19564
#endif
 
19565
#ifdef __cplusplus
 
19566
}
 
19567
#endif
 
19568
 
 
19569
int
 
19570
main ()
 
19571
{
 
19572
return f != $ac_func;
 
19573
  ;
 
19574
  return 0;
 
19575
}
 
19576
_ACEOF
 
19577
rm -f conftest.$ac_objext conftest$ac_exeext
 
19578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19579
  (eval $ac_link) 2>conftest.er1
 
19580
  ac_status=$?
 
19581
  grep -v '^ *+' conftest.er1 >conftest.err
 
19582
  rm -f conftest.er1
 
19583
  cat conftest.err >&5
 
19584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19585
  (exit $ac_status); } &&
 
19586
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19588
  (eval $ac_try) 2>&5
 
19589
  ac_status=$?
 
19590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19591
  (exit $ac_status); }; } &&
 
19592
         { ac_try='test -s conftest$ac_exeext'
 
19593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19594
  (eval $ac_try) 2>&5
 
19595
  ac_status=$?
 
19596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19597
  (exit $ac_status); }; }; then
 
19598
  eval "$as_ac_var=yes"
 
19599
else
 
19600
  echo "$as_me: failed program was:" >&5
 
19601
sed 's/^/| /' conftest.$ac_ext >&5
 
19602
 
 
19603
eval "$as_ac_var=no"
 
19604
fi
 
19605
rm -f conftest.err conftest.$ac_objext \
 
19606
      conftest$ac_exeext conftest.$ac_ext
 
19607
fi
 
19608
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19609
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19610
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19611
  cat >>confdefs.h <<_ACEOF
 
19612
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19613
_ACEOF
 
19614
 
 
19615
else
 
19616
  case $LIBOBJS in
 
19617
    "$ac_func.$ac_objext"   | \
 
19618
  *" $ac_func.$ac_objext"   | \
 
19619
    "$ac_func.$ac_objext "* | \
 
19620
  *" $ac_func.$ac_objext "* ) ;;
 
19621
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19622
esac
 
19623
 
 
19624
fi
 
19625
done
 
19626
 
 
19627
 
 
19628
 
 
19629
for ac_func in isascii
 
19630
do
 
19631
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19632
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19633
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19634
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19636
else
 
19637
  cat >conftest.$ac_ext <<_ACEOF
 
19638
/* confdefs.h.  */
 
19639
_ACEOF
 
19640
cat confdefs.h >>conftest.$ac_ext
 
19641
cat >>conftest.$ac_ext <<_ACEOF
 
19642
/* end confdefs.h.  */
 
19643
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19644
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19645
#define $ac_func innocuous_$ac_func
 
19646
 
 
19647
/* System header to define __stub macros and hopefully few prototypes,
 
19648
    which can conflict with char $ac_func (); below.
 
19649
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19650
    <limits.h> exists even on freestanding compilers.  */
 
19651
 
 
19652
#ifdef __STDC__
 
19653
# include <limits.h>
 
19654
#else
 
19655
# include <assert.h>
 
19656
#endif
 
19657
 
 
19658
#undef $ac_func
 
19659
 
 
19660
/* Override any gcc2 internal prototype to avoid an error.  */
 
19661
#ifdef __cplusplus
 
19662
extern "C"
 
19663
{
 
19664
#endif
 
19665
/* We use char because int might match the return type of a gcc2
 
19666
   builtin and then its argument prototype would still apply.  */
 
19667
char $ac_func ();
 
19668
/* The GNU C library defines this for functions which it implements
 
19669
    to always fail with ENOSYS.  Some functions are actually named
 
19670
    something starting with __ and the normal name is an alias.  */
 
19671
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19672
choke me
 
19673
#else
 
19674
char (*f) () = $ac_func;
 
19675
#endif
 
19676
#ifdef __cplusplus
 
19677
}
 
19678
#endif
 
19679
 
 
19680
int
 
19681
main ()
 
19682
{
 
19683
return f != $ac_func;
 
19684
  ;
 
19685
  return 0;
 
19686
}
 
19687
_ACEOF
 
19688
rm -f conftest.$ac_objext conftest$ac_exeext
 
19689
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19690
  (eval $ac_link) 2>conftest.er1
 
19691
  ac_status=$?
 
19692
  grep -v '^ *+' conftest.er1 >conftest.err
 
19693
  rm -f conftest.er1
 
19694
  cat conftest.err >&5
 
19695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19696
  (exit $ac_status); } &&
 
19697
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19699
  (eval $ac_try) 2>&5
 
19700
  ac_status=$?
 
19701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19702
  (exit $ac_status); }; } &&
 
19703
         { ac_try='test -s conftest$ac_exeext'
 
19704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19705
  (eval $ac_try) 2>&5
 
19706
  ac_status=$?
 
19707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19708
  (exit $ac_status); }; }; then
 
19709
  eval "$as_ac_var=yes"
 
19710
else
 
19711
  echo "$as_me: failed program was:" >&5
 
19712
sed 's/^/| /' conftest.$ac_ext >&5
 
19713
 
 
19714
eval "$as_ac_var=no"
 
19715
fi
 
19716
rm -f conftest.err conftest.$ac_objext \
 
19717
      conftest$ac_exeext conftest.$ac_ext
 
19718
fi
 
19719
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19720
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19721
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19722
  cat >>confdefs.h <<_ACEOF
 
19723
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19724
_ACEOF
 
19725
 
 
19726
else
 
19727
  case $LIBOBJS in
 
19728
    "$ac_func.$ac_objext"   | \
 
19729
  *" $ac_func.$ac_objext"   | \
 
19730
    "$ac_func.$ac_objext "* | \
 
19731
  *" $ac_func.$ac_objext "* ) ;;
 
19732
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19733
esac
 
19734
 
 
19735
fi
 
19736
done
 
19737
 
 
19738
 
 
19739
 
 
19740
for ac_func in putc_unlocked
 
19741
do
 
19742
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19743
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19744
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19745
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19747
else
 
19748
  cat >conftest.$ac_ext <<_ACEOF
 
19749
/* confdefs.h.  */
 
19750
_ACEOF
 
19751
cat confdefs.h >>conftest.$ac_ext
 
19752
cat >>conftest.$ac_ext <<_ACEOF
 
19753
/* end confdefs.h.  */
 
19754
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19755
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19756
#define $ac_func innocuous_$ac_func
 
19757
 
 
19758
/* System header to define __stub macros and hopefully few prototypes,
 
19759
    which can conflict with char $ac_func (); below.
 
19760
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19761
    <limits.h> exists even on freestanding compilers.  */
 
19762
 
 
19763
#ifdef __STDC__
 
19764
# include <limits.h>
 
19765
#else
 
19766
# include <assert.h>
 
19767
#endif
 
19768
 
 
19769
#undef $ac_func
 
19770
 
 
19771
/* Override any gcc2 internal prototype to avoid an error.  */
 
19772
#ifdef __cplusplus
 
19773
extern "C"
 
19774
{
 
19775
#endif
 
19776
/* We use char because int might match the return type of a gcc2
 
19777
   builtin and then its argument prototype would still apply.  */
 
19778
char $ac_func ();
 
19779
/* The GNU C library defines this for functions which it implements
 
19780
    to always fail with ENOSYS.  Some functions are actually named
 
19781
    something starting with __ and the normal name is an alias.  */
 
19782
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19783
choke me
 
19784
#else
 
19785
char (*f) () = $ac_func;
 
19786
#endif
 
19787
#ifdef __cplusplus
 
19788
}
 
19789
#endif
 
19790
 
 
19791
int
 
19792
main ()
 
19793
{
 
19794
return f != $ac_func;
 
19795
  ;
 
19796
  return 0;
 
19797
}
 
19798
_ACEOF
 
19799
rm -f conftest.$ac_objext conftest$ac_exeext
 
19800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19801
  (eval $ac_link) 2>conftest.er1
 
19802
  ac_status=$?
 
19803
  grep -v '^ *+' conftest.er1 >conftest.err
 
19804
  rm -f conftest.er1
 
19805
  cat conftest.err >&5
 
19806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19807
  (exit $ac_status); } &&
 
19808
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19810
  (eval $ac_try) 2>&5
 
19811
  ac_status=$?
 
19812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19813
  (exit $ac_status); }; } &&
 
19814
         { ac_try='test -s conftest$ac_exeext'
 
19815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19816
  (eval $ac_try) 2>&5
 
19817
  ac_status=$?
 
19818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19819
  (exit $ac_status); }; }; then
 
19820
  eval "$as_ac_var=yes"
 
19821
else
 
19822
  echo "$as_me: failed program was:" >&5
 
19823
sed 's/^/| /' conftest.$ac_ext >&5
 
19824
 
 
19825
eval "$as_ac_var=no"
 
19826
fi
 
19827
rm -f conftest.err conftest.$ac_objext \
 
19828
      conftest$ac_exeext conftest.$ac_ext
 
19829
fi
 
19830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19831
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19832
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19833
  cat >>confdefs.h <<_ACEOF
 
19834
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19835
_ACEOF
 
19836
 
 
19837
else
 
19838
  case $LIBOBJS in
 
19839
    "$ac_func.$ac_objext"   | \
 
19840
  *" $ac_func.$ac_objext"   | \
 
19841
    "$ac_func.$ac_objext "* | \
 
19842
  *" $ac_func.$ac_objext "* ) ;;
 
19843
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19844
esac
 
19845
 
 
19846
fi
 
19847
done
 
19848
 
 
19849
 
 
19850
 
 
19851
for ac_func in strsep
 
19852
do
 
19853
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19854
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19855
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19856
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19858
else
 
19859
  cat >conftest.$ac_ext <<_ACEOF
 
19860
/* confdefs.h.  */
 
19861
_ACEOF
 
19862
cat confdefs.h >>conftest.$ac_ext
 
19863
cat >>conftest.$ac_ext <<_ACEOF
 
19864
/* end confdefs.h.  */
 
19865
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19866
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19867
#define $ac_func innocuous_$ac_func
 
19868
 
 
19869
/* System header to define __stub macros and hopefully few prototypes,
 
19870
    which can conflict with char $ac_func (); below.
 
19871
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19872
    <limits.h> exists even on freestanding compilers.  */
 
19873
 
 
19874
#ifdef __STDC__
 
19875
# include <limits.h>
 
19876
#else
 
19877
# include <assert.h>
 
19878
#endif
 
19879
 
 
19880
#undef $ac_func
 
19881
 
 
19882
/* Override any gcc2 internal prototype to avoid an error.  */
 
19883
#ifdef __cplusplus
 
19884
extern "C"
 
19885
{
 
19886
#endif
 
19887
/* We use char because int might match the return type of a gcc2
 
19888
   builtin and then its argument prototype would still apply.  */
 
19889
char $ac_func ();
 
19890
/* The GNU C library defines this for functions which it implements
 
19891
    to always fail with ENOSYS.  Some functions are actually named
 
19892
    something starting with __ and the normal name is an alias.  */
 
19893
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19894
choke me
 
19895
#else
 
19896
char (*f) () = $ac_func;
 
19897
#endif
 
19898
#ifdef __cplusplus
 
19899
}
 
19900
#endif
 
19901
 
 
19902
int
 
19903
main ()
 
19904
{
 
19905
return f != $ac_func;
 
19906
  ;
 
19907
  return 0;
 
19908
}
 
19909
_ACEOF
 
19910
rm -f conftest.$ac_objext conftest$ac_exeext
 
19911
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19912
  (eval $ac_link) 2>conftest.er1
 
19913
  ac_status=$?
 
19914
  grep -v '^ *+' conftest.er1 >conftest.err
 
19915
  rm -f conftest.er1
 
19916
  cat conftest.err >&5
 
19917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19918
  (exit $ac_status); } &&
 
19919
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19921
  (eval $ac_try) 2>&5
 
19922
  ac_status=$?
 
19923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19924
  (exit $ac_status); }; } &&
 
19925
         { ac_try='test -s conftest$ac_exeext'
 
19926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19927
  (eval $ac_try) 2>&5
 
19928
  ac_status=$?
 
19929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19930
  (exit $ac_status); }; }; then
 
19931
  eval "$as_ac_var=yes"
 
19932
else
 
19933
  echo "$as_me: failed program was:" >&5
 
19934
sed 's/^/| /' conftest.$ac_ext >&5
 
19935
 
 
19936
eval "$as_ac_var=no"
 
19937
fi
 
19938
rm -f conftest.err conftest.$ac_objext \
 
19939
      conftest$ac_exeext conftest.$ac_ext
 
19940
fi
 
19941
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19942
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19943
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19944
  cat >>confdefs.h <<_ACEOF
 
19945
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19946
_ACEOF
 
19947
 
 
19948
else
 
19949
  case $LIBOBJS in
 
19950
    "$ac_func.$ac_objext"   | \
 
19951
  *" $ac_func.$ac_objext"   | \
 
19952
    "$ac_func.$ac_objext "* | \
 
19953
  *" $ac_func.$ac_objext "* ) ;;
 
19954
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19955
esac
 
19956
 
 
19957
fi
 
19958
done
 
19959
 
 
19960
 
 
19961
 
 
19962
for ac_func in ttyname
 
19963
do
 
19964
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19965
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19966
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19967
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19969
else
 
19970
  cat >conftest.$ac_ext <<_ACEOF
 
19971
/* confdefs.h.  */
 
19972
_ACEOF
 
19973
cat confdefs.h >>conftest.$ac_ext
 
19974
cat >>conftest.$ac_ext <<_ACEOF
 
19975
/* end confdefs.h.  */
 
19976
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19977
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19978
#define $ac_func innocuous_$ac_func
 
19979
 
 
19980
/* System header to define __stub macros and hopefully few prototypes,
 
19981
    which can conflict with char $ac_func (); below.
 
19982
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19983
    <limits.h> exists even on freestanding compilers.  */
 
19984
 
 
19985
#ifdef __STDC__
 
19986
# include <limits.h>
 
19987
#else
 
19988
# include <assert.h>
 
19989
#endif
 
19990
 
 
19991
#undef $ac_func
 
19992
 
 
19993
/* Override any gcc2 internal prototype to avoid an error.  */
 
19994
#ifdef __cplusplus
 
19995
extern "C"
 
19996
{
 
19997
#endif
 
19998
/* We use char because int might match the return type of a gcc2
 
19999
   builtin and then its argument prototype would still apply.  */
 
20000
char $ac_func ();
 
20001
/* The GNU C library defines this for functions which it implements
 
20002
    to always fail with ENOSYS.  Some functions are actually named
 
20003
    something starting with __ and the normal name is an alias.  */
 
20004
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20005
choke me
 
20006
#else
 
20007
char (*f) () = $ac_func;
 
20008
#endif
 
20009
#ifdef __cplusplus
 
20010
}
 
20011
#endif
 
20012
 
 
20013
int
 
20014
main ()
 
20015
{
 
20016
return f != $ac_func;
 
20017
  ;
 
20018
  return 0;
 
20019
}
 
20020
_ACEOF
 
20021
rm -f conftest.$ac_objext conftest$ac_exeext
 
20022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20023
  (eval $ac_link) 2>conftest.er1
 
20024
  ac_status=$?
 
20025
  grep -v '^ *+' conftest.er1 >conftest.err
 
20026
  rm -f conftest.er1
 
20027
  cat conftest.err >&5
 
20028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20029
  (exit $ac_status); } &&
 
20030
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20032
  (eval $ac_try) 2>&5
 
20033
  ac_status=$?
 
20034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20035
  (exit $ac_status); }; } &&
 
20036
         { ac_try='test -s conftest$ac_exeext'
 
20037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20038
  (eval $ac_try) 2>&5
 
20039
  ac_status=$?
 
20040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20041
  (exit $ac_status); }; }; then
 
20042
  eval "$as_ac_var=yes"
 
20043
else
 
20044
  echo "$as_me: failed program was:" >&5
 
20045
sed 's/^/| /' conftest.$ac_ext >&5
 
20046
 
 
20047
eval "$as_ac_var=no"
 
20048
fi
 
20049
rm -f conftest.err conftest.$ac_objext \
 
20050
      conftest$ac_exeext conftest.$ac_ext
 
20051
fi
 
20052
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20053
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20054
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20055
  cat >>confdefs.h <<_ACEOF
 
20056
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20057
_ACEOF
 
20058
 
 
20059
else
 
20060
  case $LIBOBJS in
 
20061
    "$ac_func.$ac_objext"   | \
 
20062
  *" $ac_func.$ac_objext"   | \
 
20063
    "$ac_func.$ac_objext "* | \
 
20064
  *" $ac_func.$ac_objext "* ) ;;
 
20065
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
20066
esac
 
20067
 
 
20068
fi
 
20069
done
 
20070
 
 
20071
 
 
20072
 
 
20073
 
 
20074
 
 
20075
#
 
20076
# check for gethrtime and run a testprogram to see whether
 
20077
# it is broken.  It has been reported that some Solaris and HP UX systems
 
20078
# raise an SIGILL
 
20079
#
 
20080
#  fixme: Do we need this - iirc, this is only used by libgcrypt.
 
20081
#
 
20082
echo "$as_me:$LINENO: checking for gethrtime" >&5
 
20083
echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6
 
20084
if test "${gnupg_cv_func_gethrtime+set}" = set; then
 
20085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20086
else
 
20087
  cat >conftest.$ac_ext <<_ACEOF
 
20088
/* confdefs.h.  */
 
20089
_ACEOF
 
20090
cat confdefs.h >>conftest.$ac_ext
 
20091
cat >>conftest.$ac_ext <<_ACEOF
 
20092
/* end confdefs.h.  */
 
20093
#include <sys/times.h>
 
20094
int
 
20095
main ()
 
20096
{
 
20097
 
 
20098
                   hrtime_t tv;
 
20099
                   tv = gethrtime();
 
20100
 
 
20101
  ;
 
20102
  return 0;
 
20103
}
 
20104
_ACEOF
 
20105
rm -f conftest.$ac_objext conftest$ac_exeext
 
20106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20107
  (eval $ac_link) 2>conftest.er1
 
20108
  ac_status=$?
 
20109
  grep -v '^ *+' conftest.er1 >conftest.err
 
20110
  rm -f conftest.er1
 
20111
  cat conftest.err >&5
 
20112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20113
  (exit $ac_status); } &&
 
20114
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20116
  (eval $ac_try) 2>&5
 
20117
  ac_status=$?
 
20118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20119
  (exit $ac_status); }; } &&
 
20120
         { ac_try='test -s conftest$ac_exeext'
 
20121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20122
  (eval $ac_try) 2>&5
 
20123
  ac_status=$?
 
20124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20125
  (exit $ac_status); }; }; then
 
20126
  gnupg_cv_func_gethrtime=yes
 
20127
else
 
20128
  echo "$as_me: failed program was:" >&5
 
20129
sed 's/^/| /' conftest.$ac_ext >&5
 
20130
 
 
20131
gnupg_cv_func_gethrtime=no
 
20132
fi
 
20133
rm -f conftest.err conftest.$ac_objext \
 
20134
      conftest$ac_exeext conftest.$ac_ext
 
20135
 
 
20136
fi
 
20137
echo "$as_me:$LINENO: result: $gnupg_cv_func_gethrtime" >&5
 
20138
echo "${ECHO_T}$gnupg_cv_func_gethrtime" >&6
 
20139
if test $gnupg_cv_func_gethrtime = yes; then
 
20140
 
 
20141
cat >>confdefs.h <<\_ACEOF
 
20142
#define HAVE_GETHRTIME 1
 
20143
_ACEOF
 
20144
 
 
20145
     echo "$as_me:$LINENO: checking whether gethrtime is broken" >&5
 
20146
echo $ECHO_N "checking whether gethrtime is broken... $ECHO_C" >&6
 
20147
if test "${gnupg_cv_func_broken_gethrtime+set}" = set; then
 
20148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20149
else
 
20150
  if test "$cross_compiling" = yes; then
 
20151
  gnupg_cv_func_broken_gethrtime=assume-no
 
20152
else
 
20153
  cat >conftest.$ac_ext <<_ACEOF
 
20154
/* confdefs.h.  */
 
20155
_ACEOF
 
20156
cat confdefs.h >>conftest.$ac_ext
 
20157
cat >>conftest.$ac_ext <<_ACEOF
 
20158
/* end confdefs.h.  */
 
20159
 
 
20160
                   #include <sys/times.h>
 
20161
                   int main () {
 
20162
                   hrtime_t tv;
 
20163
                   tv = gethrtime();
 
20164
                 }
 
20165
 
 
20166
_ACEOF
 
20167
rm -f conftest$ac_exeext
 
20168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20169
  (eval $ac_link) 2>&5
 
20170
  ac_status=$?
 
20171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20172
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20174
  (eval $ac_try) 2>&5
 
20175
  ac_status=$?
 
20176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20177
  (exit $ac_status); }; }; then
 
20178
  gnupg_cv_func_broken_gethrtime=no
 
20179
else
 
20180
  echo "$as_me: program exited with status $ac_status" >&5
 
20181
echo "$as_me: failed program was:" >&5
 
20182
sed 's/^/| /' conftest.$ac_ext >&5
 
20183
 
 
20184
( exit $ac_status )
 
20185
gnupg_cv_func_broken_gethrtime=yes
 
20186
fi
 
20187
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20188
fi
 
20189
 
 
20190
fi
 
20191
echo "$as_me:$LINENO: result: $gnupg_cv_func_broken_gethrtime" >&5
 
20192
echo "${ECHO_T}$gnupg_cv_func_broken_gethrtime" >&6
 
20193
    if test $gnupg_cv_func_broken_gethrtime = yes; then
 
20194
 
 
20195
cat >>confdefs.h <<\_ACEOF
 
20196
#define HAVE_BROKEN_GETHRTIME 1
 
20197
_ACEOF
 
20198
 
 
20199
    fi
 
20200
fi
 
20201
 
 
20202
 
 
20203
 
 
20204
for ac_func in mlock
 
20205
do
 
20206
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20207
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20208
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20209
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20211
else
 
20212
  cat >conftest.$ac_ext <<_ACEOF
 
20213
/* confdefs.h.  */
 
20214
_ACEOF
 
20215
cat confdefs.h >>conftest.$ac_ext
 
20216
cat >>conftest.$ac_ext <<_ACEOF
 
20217
/* end confdefs.h.  */
 
20218
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20219
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20220
#define $ac_func innocuous_$ac_func
 
20221
 
 
20222
/* System header to define __stub macros and hopefully few prototypes,
 
20223
    which can conflict with char $ac_func (); below.
 
20224
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20225
    <limits.h> exists even on freestanding compilers.  */
 
20226
 
 
20227
#ifdef __STDC__
 
20228
# include <limits.h>
 
20229
#else
 
20230
# include <assert.h>
 
20231
#endif
 
20232
 
 
20233
#undef $ac_func
 
20234
 
 
20235
/* Override any gcc2 internal prototype to avoid an error.  */
 
20236
#ifdef __cplusplus
 
20237
extern "C"
 
20238
{
 
20239
#endif
 
20240
/* We use char because int might match the return type of a gcc2
 
20241
   builtin and then its argument prototype would still apply.  */
 
20242
char $ac_func ();
 
20243
/* The GNU C library defines this for functions which it implements
 
20244
    to always fail with ENOSYS.  Some functions are actually named
 
20245
    something starting with __ and the normal name is an alias.  */
 
20246
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20247
choke me
 
20248
#else
 
20249
char (*f) () = $ac_func;
 
20250
#endif
 
20251
#ifdef __cplusplus
 
20252
}
 
20253
#endif
 
20254
 
 
20255
int
 
20256
main ()
 
20257
{
 
20258
return f != $ac_func;
 
20259
  ;
 
20260
  return 0;
 
20261
}
 
20262
_ACEOF
 
20263
rm -f conftest.$ac_objext conftest$ac_exeext
 
20264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20265
  (eval $ac_link) 2>conftest.er1
 
20266
  ac_status=$?
 
20267
  grep -v '^ *+' conftest.er1 >conftest.err
 
20268
  rm -f conftest.er1
 
20269
  cat conftest.err >&5
 
20270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20271
  (exit $ac_status); } &&
 
20272
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20274
  (eval $ac_try) 2>&5
 
20275
  ac_status=$?
 
20276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20277
  (exit $ac_status); }; } &&
 
20278
         { ac_try='test -s conftest$ac_exeext'
 
20279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20280
  (eval $ac_try) 2>&5
 
20281
  ac_status=$?
 
20282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20283
  (exit $ac_status); }; }; then
 
20284
  eval "$as_ac_var=yes"
 
20285
else
 
20286
  echo "$as_me: failed program was:" >&5
 
20287
sed 's/^/| /' conftest.$ac_ext >&5
 
20288
 
 
20289
eval "$as_ac_var=no"
 
20290
fi
 
20291
rm -f conftest.err conftest.$ac_objext \
 
20292
      conftest$ac_exeext conftest.$ac_ext
 
20293
fi
 
20294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20295
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20296
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20297
  cat >>confdefs.h <<_ACEOF
 
20298
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20299
_ACEOF
 
20300
 
 
20301
fi
 
20302
done
 
20303
 
 
20304
    if test "$ac_cv_func_mlock" = "no"; then
 
20305
 
 
20306
for ac_header in sys/mman.h
 
20307
do
 
20308
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20309
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20310
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20311
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20312
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20314
fi
 
20315
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20316
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20317
else
 
20318
  # Is the header compilable?
 
20319
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20320
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20321
cat >conftest.$ac_ext <<_ACEOF
 
20322
/* confdefs.h.  */
 
20323
_ACEOF
 
20324
cat confdefs.h >>conftest.$ac_ext
 
20325
cat >>conftest.$ac_ext <<_ACEOF
 
20326
/* end confdefs.h.  */
 
20327
$ac_includes_default
 
20328
#include <$ac_header>
 
20329
_ACEOF
 
20330
rm -f conftest.$ac_objext
 
20331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20332
  (eval $ac_compile) 2>conftest.er1
 
20333
  ac_status=$?
 
20334
  grep -v '^ *+' conftest.er1 >conftest.err
 
20335
  rm -f conftest.er1
 
20336
  cat conftest.err >&5
 
20337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20338
  (exit $ac_status); } &&
 
20339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20341
  (eval $ac_try) 2>&5
 
20342
  ac_status=$?
 
20343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20344
  (exit $ac_status); }; } &&
 
20345
         { ac_try='test -s conftest.$ac_objext'
 
20346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20347
  (eval $ac_try) 2>&5
 
20348
  ac_status=$?
 
20349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20350
  (exit $ac_status); }; }; then
 
20351
  ac_header_compiler=yes
 
20352
else
 
20353
  echo "$as_me: failed program was:" >&5
 
20354
sed 's/^/| /' conftest.$ac_ext >&5
 
20355
 
 
20356
ac_header_compiler=no
 
20357
fi
 
20358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20359
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20360
echo "${ECHO_T}$ac_header_compiler" >&6
 
20361
 
 
20362
# Is the header present?
 
20363
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20364
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20365
cat >conftest.$ac_ext <<_ACEOF
 
20366
/* confdefs.h.  */
 
20367
_ACEOF
 
20368
cat confdefs.h >>conftest.$ac_ext
 
20369
cat >>conftest.$ac_ext <<_ACEOF
 
20370
/* end confdefs.h.  */
 
20371
#include <$ac_header>
 
20372
_ACEOF
 
20373
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20374
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20375
  ac_status=$?
 
20376
  grep -v '^ *+' conftest.er1 >conftest.err
 
20377
  rm -f conftest.er1
 
20378
  cat conftest.err >&5
 
20379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20380
  (exit $ac_status); } >/dev/null; then
 
20381
  if test -s conftest.err; then
 
20382
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20383
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20384
  else
 
20385
    ac_cpp_err=
 
20386
  fi
 
20387
else
 
20388
  ac_cpp_err=yes
 
20389
fi
 
20390
if test -z "$ac_cpp_err"; then
 
20391
  ac_header_preproc=yes
 
20392
else
 
20393
  echo "$as_me: failed program was:" >&5
 
20394
sed 's/^/| /' conftest.$ac_ext >&5
 
20395
 
 
20396
  ac_header_preproc=no
 
20397
fi
 
20398
rm -f conftest.err conftest.$ac_ext
 
20399
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20400
echo "${ECHO_T}$ac_header_preproc" >&6
 
20401
 
 
20402
# So?  What about this header?
 
20403
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20404
  yes:no: )
 
20405
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20406
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20407
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20408
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20409
    ac_header_preproc=yes
 
20410
    ;;
 
20411
  no:yes:* )
 
20412
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20414
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20415
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20416
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20417
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20418
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20419
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20420
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20421
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20422
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20423
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20424
    (
 
20425
      cat <<\_ASBOX
 
20426
## ------------------------------------ ##
 
20427
## Report this to gnupg-devel@gnupg.org ##
 
20428
## ------------------------------------ ##
 
20429
_ASBOX
 
20430
    ) |
 
20431
      sed "s/^/$as_me: WARNING:     /" >&2
 
20432
    ;;
 
20433
esac
 
20434
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20435
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20436
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20438
else
 
20439
  eval "$as_ac_Header=\$ac_header_preproc"
 
20440
fi
 
20441
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20442
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20443
 
 
20444
fi
 
20445
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20446
  cat >>confdefs.h <<_ACEOF
 
20447
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20448
_ACEOF
 
20449
 
 
20450
fi
 
20451
 
 
20452
done
 
20453
 
 
20454
        if test "$ac_cv_header_sys_mman_h" = "yes"; then
 
20455
            # Add librt to LIBS:
 
20456
 
 
20457
echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
 
20458
echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6
 
20459
if test "${ac_cv_lib_rt_memlk+set}" = set; then
 
20460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20461
else
 
20462
  ac_check_lib_save_LIBS=$LIBS
 
20463
LIBS="-lrt  $LIBS"
 
20464
cat >conftest.$ac_ext <<_ACEOF
 
20465
/* confdefs.h.  */
 
20466
_ACEOF
 
20467
cat confdefs.h >>conftest.$ac_ext
 
20468
cat >>conftest.$ac_ext <<_ACEOF
 
20469
/* end confdefs.h.  */
 
20470
 
 
20471
/* Override any gcc2 internal prototype to avoid an error.  */
 
20472
#ifdef __cplusplus
 
20473
extern "C"
 
20474
#endif
 
20475
/* We use char because int might match the return type of a gcc2
 
20476
   builtin and then its argument prototype would still apply.  */
 
20477
char memlk ();
 
20478
int
 
20479
main ()
 
20480
{
 
20481
memlk ();
 
20482
  ;
 
20483
  return 0;
 
20484
}
 
20485
_ACEOF
 
20486
rm -f conftest.$ac_objext conftest$ac_exeext
 
20487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20488
  (eval $ac_link) 2>conftest.er1
 
20489
  ac_status=$?
 
20490
  grep -v '^ *+' conftest.er1 >conftest.err
 
20491
  rm -f conftest.er1
 
20492
  cat conftest.err >&5
 
20493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20494
  (exit $ac_status); } &&
 
20495
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20497
  (eval $ac_try) 2>&5
 
20498
  ac_status=$?
 
20499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20500
  (exit $ac_status); }; } &&
 
20501
         { ac_try='test -s conftest$ac_exeext'
 
20502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20503
  (eval $ac_try) 2>&5
 
20504
  ac_status=$?
 
20505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20506
  (exit $ac_status); }; }; then
 
20507
  ac_cv_lib_rt_memlk=yes
 
20508
else
 
20509
  echo "$as_me: failed program was:" >&5
 
20510
sed 's/^/| /' conftest.$ac_ext >&5
 
20511
 
 
20512
ac_cv_lib_rt_memlk=no
 
20513
fi
 
20514
rm -f conftest.err conftest.$ac_objext \
 
20515
      conftest$ac_exeext conftest.$ac_ext
 
20516
LIBS=$ac_check_lib_save_LIBS
 
20517
fi
 
20518
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
 
20519
echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6
 
20520
if test $ac_cv_lib_rt_memlk = yes; then
 
20521
  cat >>confdefs.h <<_ACEOF
 
20522
#define HAVE_LIBRT 1
 
20523
_ACEOF
 
20524
 
 
20525
  LIBS="-lrt $LIBS"
 
20526
 
 
20527
fi
 
20528
 
 
20529
            echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
 
20530
echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6
 
20531
if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
 
20532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20533
else
 
20534
  cat >conftest.$ac_ext <<_ACEOF
 
20535
/* confdefs.h.  */
 
20536
_ACEOF
 
20537
cat confdefs.h >>conftest.$ac_ext
 
20538
cat >>conftest.$ac_ext <<_ACEOF
 
20539
/* end confdefs.h.  */
 
20540
 
 
20541
                    #include <assert.h>
 
20542
                    #ifdef HAVE_SYS_MMAN_H
 
20543
                    #include <sys/mman.h>
 
20544
                    #endif
 
20545
 
 
20546
int
 
20547
main ()
 
20548
{
 
20549
 
 
20550
                    int i;
 
20551
 
 
20552
                    /* glibc defines this for functions which it implements
 
20553
                     * to always fail with ENOSYS.  Some functions are actually
 
20554
                     * named something starting with __ and the normal name
 
20555
                     * is an alias.  */
 
20556
                    #if defined (__stub_mlock) || defined (__stub___mlock)
 
20557
                    choke me
 
20558
                    #else
 
20559
                    mlock(&i, 4);
 
20560
                    #endif
 
20561
                    ; return 0;
 
20562
 
 
20563
  ;
 
20564
  return 0;
 
20565
}
 
20566
_ACEOF
 
20567
rm -f conftest.$ac_objext conftest$ac_exeext
 
20568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20569
  (eval $ac_link) 2>conftest.er1
 
20570
  ac_status=$?
 
20571
  grep -v '^ *+' conftest.er1 >conftest.err
 
20572
  rm -f conftest.er1
 
20573
  cat conftest.err >&5
 
20574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20575
  (exit $ac_status); } &&
 
20576
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20578
  (eval $ac_try) 2>&5
 
20579
  ac_status=$?
 
20580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20581
  (exit $ac_status); }; } &&
 
20582
         { ac_try='test -s conftest$ac_exeext'
 
20583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20584
  (eval $ac_try) 2>&5
 
20585
  ac_status=$?
 
20586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20587
  (exit $ac_status); }; }; then
 
20588
  gnupg_cv_mlock_is_in_sys_mman=yes
 
20589
else
 
20590
  echo "$as_me: failed program was:" >&5
 
20591
sed 's/^/| /' conftest.$ac_ext >&5
 
20592
 
 
20593
gnupg_cv_mlock_is_in_sys_mman=no
 
20594
fi
 
20595
rm -f conftest.err conftest.$ac_objext \
 
20596
      conftest$ac_exeext conftest.$ac_ext
 
20597
fi
 
20598
echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
 
20599
echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6
 
20600
            if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
 
20601
 
 
20602
cat >>confdefs.h <<\_ACEOF
 
20603
#define HAVE_MLOCK 1
 
20604
_ACEOF
 
20605
 
 
20606
            fi
 
20607
        fi
 
20608
    fi
 
20609
    if test "$ac_cv_func_mlock" = "yes"; then
 
20610
        echo "$as_me:$LINENO: checking whether mlock is broken" >&5
 
20611
echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6
 
20612
          if test "${gnupg_cv_have_broken_mlock+set}" = set; then
 
20613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20614
else
 
20615
  if test "$cross_compiling" = yes; then
 
20616
  gnupg_cv_have_broken_mlock="assume-no"
 
20617
 
 
20618
else
 
20619
  cat >conftest.$ac_ext <<_ACEOF
 
20620
/* confdefs.h.  */
 
20621
_ACEOF
 
20622
cat confdefs.h >>conftest.$ac_ext
 
20623
cat >>conftest.$ac_ext <<_ACEOF
 
20624
/* end confdefs.h.  */
 
20625
 
 
20626
                #include <stdlib.h>
 
20627
                #include <unistd.h>
 
20628
                #include <errno.h>
 
20629
                #include <sys/mman.h>
 
20630
                #include <sys/types.h>
 
20631
                #include <fcntl.h>
 
20632
 
 
20633
                int main()
 
20634
                {
 
20635
                    char *pool;
 
20636
                    int err;
 
20637
                    long int pgsize = getpagesize();
 
20638
 
 
20639
                    pool = malloc( 4096 + pgsize );
 
20640
                    if( !pool )
 
20641
                        return 2;
 
20642
                    pool += (pgsize - ((long int)pool % pgsize));
 
20643
 
 
20644
                    err = mlock( pool, 4096 );
 
20645
                    if( !err || errno == EPERM )
 
20646
                        return 0; /* okay */
 
20647
 
 
20648
                    return 1;  /* hmmm */
 
20649
                }
 
20650
 
 
20651
 
 
20652
_ACEOF
 
20653
rm -f conftest$ac_exeext
 
20654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20655
  (eval $ac_link) 2>&5
 
20656
  ac_status=$?
 
20657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20658
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20660
  (eval $ac_try) 2>&5
 
20661
  ac_status=$?
 
20662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20663
  (exit $ac_status); }; }; then
 
20664
  gnupg_cv_have_broken_mlock="no"
 
20665
else
 
20666
  echo "$as_me: program exited with status $ac_status" >&5
 
20667
echo "$as_me: failed program was:" >&5
 
20668
sed 's/^/| /' conftest.$ac_ext >&5
 
20669
 
 
20670
( exit $ac_status )
 
20671
gnupg_cv_have_broken_mlock="yes"
 
20672
fi
 
20673
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20674
fi
 
20675
 
 
20676
fi
 
20677
 
 
20678
         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
 
20679
 
 
20680
cat >>confdefs.h <<\_ACEOF
 
20681
#define HAVE_BROKEN_MLOCK 1
 
20682
_ACEOF
 
20683
 
 
20684
             echo "$as_me:$LINENO: result: yes" >&5
 
20685
echo "${ECHO_T}yes" >&6
 
20686
 
 
20687
for ac_func in plock
 
20688
do
 
20689
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20690
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20691
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20692
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20694
else
 
20695
  cat >conftest.$ac_ext <<_ACEOF
 
20696
/* confdefs.h.  */
 
20697
_ACEOF
 
20698
cat confdefs.h >>conftest.$ac_ext
 
20699
cat >>conftest.$ac_ext <<_ACEOF
 
20700
/* end confdefs.h.  */
 
20701
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20702
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20703
#define $ac_func innocuous_$ac_func
 
20704
 
 
20705
/* System header to define __stub macros and hopefully few prototypes,
 
20706
    which can conflict with char $ac_func (); below.
 
20707
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20708
    <limits.h> exists even on freestanding compilers.  */
 
20709
 
 
20710
#ifdef __STDC__
 
20711
# include <limits.h>
 
20712
#else
 
20713
# include <assert.h>
 
20714
#endif
 
20715
 
 
20716
#undef $ac_func
 
20717
 
 
20718
/* Override any gcc2 internal prototype to avoid an error.  */
 
20719
#ifdef __cplusplus
 
20720
extern "C"
 
20721
{
 
20722
#endif
 
20723
/* We use char because int might match the return type of a gcc2
 
20724
   builtin and then its argument prototype would still apply.  */
 
20725
char $ac_func ();
 
20726
/* The GNU C library defines this for functions which it implements
 
20727
    to always fail with ENOSYS.  Some functions are actually named
 
20728
    something starting with __ and the normal name is an alias.  */
 
20729
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20730
choke me
 
20731
#else
 
20732
char (*f) () = $ac_func;
 
20733
#endif
 
20734
#ifdef __cplusplus
 
20735
}
 
20736
#endif
 
20737
 
 
20738
int
 
20739
main ()
 
20740
{
 
20741
return f != $ac_func;
 
20742
  ;
 
20743
  return 0;
 
20744
}
 
20745
_ACEOF
 
20746
rm -f conftest.$ac_objext conftest$ac_exeext
 
20747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20748
  (eval $ac_link) 2>conftest.er1
 
20749
  ac_status=$?
 
20750
  grep -v '^ *+' conftest.er1 >conftest.err
 
20751
  rm -f conftest.er1
 
20752
  cat conftest.err >&5
 
20753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20754
  (exit $ac_status); } &&
 
20755
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20757
  (eval $ac_try) 2>&5
 
20758
  ac_status=$?
 
20759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20760
  (exit $ac_status); }; } &&
 
20761
         { ac_try='test -s conftest$ac_exeext'
 
20762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20763
  (eval $ac_try) 2>&5
 
20764
  ac_status=$?
 
20765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20766
  (exit $ac_status); }; }; then
 
20767
  eval "$as_ac_var=yes"
 
20768
else
 
20769
  echo "$as_me: failed program was:" >&5
 
20770
sed 's/^/| /' conftest.$ac_ext >&5
 
20771
 
 
20772
eval "$as_ac_var=no"
 
20773
fi
 
20774
rm -f conftest.err conftest.$ac_objext \
 
20775
      conftest$ac_exeext conftest.$ac_ext
 
20776
fi
 
20777
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20778
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20779
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20780
  cat >>confdefs.h <<_ACEOF
 
20781
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20782
_ACEOF
 
20783
 
 
20784
fi
 
20785
done
 
20786
 
 
20787
         else
 
20788
            if test "$gnupg_cv_have_broken_mlock" = "no"; then
 
20789
                echo "$as_me:$LINENO: result: no" >&5
 
20790
echo "${ECHO_T}no" >&6
 
20791
            else
 
20792
                echo "$as_me:$LINENO: result: assuming no" >&5
 
20793
echo "${ECHO_T}assuming no" >&6
 
20794
            fi
 
20795
         fi
 
20796
    fi
 
20797
 
 
20798
 
 
20799
 
 
20800
 
 
20801
for ac_header in sys/stat.h unistd.h direct.h
 
20802
do
 
20803
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20804
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20805
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20806
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20807
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20809
fi
 
20810
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20811
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20812
else
 
20813
  # Is the header compilable?
 
20814
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20815
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20816
cat >conftest.$ac_ext <<_ACEOF
 
20817
/* confdefs.h.  */
 
20818
_ACEOF
 
20819
cat confdefs.h >>conftest.$ac_ext
 
20820
cat >>conftest.$ac_ext <<_ACEOF
 
20821
/* end confdefs.h.  */
 
20822
$ac_includes_default
 
20823
#include <$ac_header>
 
20824
_ACEOF
 
20825
rm -f conftest.$ac_objext
 
20826
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20827
  (eval $ac_compile) 2>conftest.er1
 
20828
  ac_status=$?
 
20829
  grep -v '^ *+' conftest.er1 >conftest.err
 
20830
  rm -f conftest.er1
 
20831
  cat conftest.err >&5
 
20832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20833
  (exit $ac_status); } &&
 
20834
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20836
  (eval $ac_try) 2>&5
 
20837
  ac_status=$?
 
20838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20839
  (exit $ac_status); }; } &&
 
20840
         { ac_try='test -s conftest.$ac_objext'
 
20841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20842
  (eval $ac_try) 2>&5
 
20843
  ac_status=$?
 
20844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20845
  (exit $ac_status); }; }; then
 
20846
  ac_header_compiler=yes
 
20847
else
 
20848
  echo "$as_me: failed program was:" >&5
 
20849
sed 's/^/| /' conftest.$ac_ext >&5
 
20850
 
 
20851
ac_header_compiler=no
 
20852
fi
 
20853
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20854
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20855
echo "${ECHO_T}$ac_header_compiler" >&6
 
20856
 
 
20857
# Is the header present?
 
20858
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20859
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20860
cat >conftest.$ac_ext <<_ACEOF
 
20861
/* confdefs.h.  */
 
20862
_ACEOF
 
20863
cat confdefs.h >>conftest.$ac_ext
 
20864
cat >>conftest.$ac_ext <<_ACEOF
 
20865
/* end confdefs.h.  */
 
20866
#include <$ac_header>
 
20867
_ACEOF
 
20868
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20869
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20870
  ac_status=$?
 
20871
  grep -v '^ *+' conftest.er1 >conftest.err
 
20872
  rm -f conftest.er1
 
20873
  cat conftest.err >&5
 
20874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20875
  (exit $ac_status); } >/dev/null; then
 
20876
  if test -s conftest.err; then
 
20877
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20878
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20879
  else
 
20880
    ac_cpp_err=
 
20881
  fi
 
20882
else
 
20883
  ac_cpp_err=yes
 
20884
fi
 
20885
if test -z "$ac_cpp_err"; then
 
20886
  ac_header_preproc=yes
 
20887
else
 
20888
  echo "$as_me: failed program was:" >&5
 
20889
sed 's/^/| /' conftest.$ac_ext >&5
 
20890
 
 
20891
  ac_header_preproc=no
 
20892
fi
 
20893
rm -f conftest.err conftest.$ac_ext
 
20894
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20895
echo "${ECHO_T}$ac_header_preproc" >&6
 
20896
 
 
20897
# So?  What about this header?
 
20898
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20899
  yes:no: )
 
20900
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20901
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20902
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20903
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20904
    ac_header_preproc=yes
 
20905
    ;;
 
20906
  no:yes:* )
 
20907
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20908
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20909
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20910
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20911
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20912
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20913
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20914
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20915
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20916
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20917
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20918
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20919
    (
 
20920
      cat <<\_ASBOX
 
20921
## ------------------------------------ ##
 
20922
## Report this to gnupg-devel@gnupg.org ##
 
20923
## ------------------------------------ ##
 
20924
_ASBOX
 
20925
    ) |
 
20926
      sed "s/^/$as_me: WARNING:     /" >&2
 
20927
    ;;
 
20928
esac
 
20929
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20930
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20931
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20933
else
 
20934
  eval "$as_ac_Header=\$ac_header_preproc"
 
20935
fi
 
20936
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20937
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20938
 
 
20939
fi
 
20940
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20941
  cat >>confdefs.h <<_ACEOF
 
20942
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20943
_ACEOF
 
20944
 
 
20945
fi
 
20946
 
 
20947
done
 
20948
 
 
20949
echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
 
20950
echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
 
20951
if test "${gnupg_cv_mkdir_takes_one_arg+set}" = set; then
 
20952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20953
else
 
20954
  cat >conftest.$ac_ext <<_ACEOF
 
20955
/* confdefs.h.  */
 
20956
_ACEOF
 
20957
cat confdefs.h >>conftest.$ac_ext
 
20958
cat >>conftest.$ac_ext <<_ACEOF
 
20959
/* end confdefs.h.  */
 
20960
 
 
20961
#include <sys/types.h>
 
20962
#ifdef HAVE_SYS_STAT_H
 
20963
# include <sys/stat.h>
 
20964
#endif
 
20965
#ifdef HAVE_UNISTD_H
 
20966
# include <unistd.h>
 
20967
#endif
 
20968
#ifdef HAVE_DIRECT_H
 
20969
# include <direct.h>
 
20970
#endif
 
20971
int
 
20972
main ()
 
20973
{
 
20974
mkdir ("foo", 0);
 
20975
  ;
 
20976
  return 0;
 
20977
}
 
20978
_ACEOF
 
20979
rm -f conftest.$ac_objext
 
20980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20981
  (eval $ac_compile) 2>conftest.er1
 
20982
  ac_status=$?
 
20983
  grep -v '^ *+' conftest.er1 >conftest.err
 
20984
  rm -f conftest.er1
 
20985
  cat conftest.err >&5
 
20986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20987
  (exit $ac_status); } &&
 
20988
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20990
  (eval $ac_try) 2>&5
 
20991
  ac_status=$?
 
20992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20993
  (exit $ac_status); }; } &&
 
20994
         { ac_try='test -s conftest.$ac_objext'
 
20995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20996
  (eval $ac_try) 2>&5
 
20997
  ac_status=$?
 
20998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20999
  (exit $ac_status); }; }; then
 
21000
  gnupg_cv_mkdir_takes_one_arg=no
 
21001
else
 
21002
  echo "$as_me: failed program was:" >&5
 
21003
sed 's/^/| /' conftest.$ac_ext >&5
 
21004
 
 
21005
gnupg_cv_mkdir_takes_one_arg=yes
 
21006
fi
 
21007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21008
fi
 
21009
echo "$as_me:$LINENO: result: $gnupg_cv_mkdir_takes_one_arg" >&5
 
21010
echo "${ECHO_T}$gnupg_cv_mkdir_takes_one_arg" >&6
 
21011
if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
 
21012
 
 
21013
cat >>confdefs.h <<\_ACEOF
 
21014
#define MKDIR_TAKES_ONE_ARG 1
 
21015
_ACEOF
 
21016
 
 
21017
fi
 
21018
 
 
21019
 
 
21020
#  fixme: Still required?
 
21021
#
 
21022
if test "$use_capabilities" = "yes" ; then
 
21023
use_capabilities=no
 
21024
 
 
21025
for ac_header in sys/capability.h
 
21026
do
 
21027
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21028
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21029
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21030
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21031
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21033
fi
 
21034
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21035
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21036
else
 
21037
  # Is the header compilable?
 
21038
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21039
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21040
cat >conftest.$ac_ext <<_ACEOF
 
21041
/* confdefs.h.  */
 
21042
_ACEOF
 
21043
cat confdefs.h >>conftest.$ac_ext
 
21044
cat >>conftest.$ac_ext <<_ACEOF
 
21045
/* end confdefs.h.  */
 
21046
$ac_includes_default
 
21047
#include <$ac_header>
 
21048
_ACEOF
 
21049
rm -f conftest.$ac_objext
 
21050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21051
  (eval $ac_compile) 2>conftest.er1
 
21052
  ac_status=$?
 
21053
  grep -v '^ *+' conftest.er1 >conftest.err
 
21054
  rm -f conftest.er1
 
21055
  cat conftest.err >&5
 
21056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21057
  (exit $ac_status); } &&
 
21058
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21060
  (eval $ac_try) 2>&5
 
21061
  ac_status=$?
 
21062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21063
  (exit $ac_status); }; } &&
 
21064
         { ac_try='test -s conftest.$ac_objext'
 
21065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21066
  (eval $ac_try) 2>&5
 
21067
  ac_status=$?
 
21068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21069
  (exit $ac_status); }; }; then
 
21070
  ac_header_compiler=yes
 
21071
else
 
21072
  echo "$as_me: failed program was:" >&5
 
21073
sed 's/^/| /' conftest.$ac_ext >&5
 
21074
 
 
21075
ac_header_compiler=no
 
21076
fi
 
21077
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21078
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21079
echo "${ECHO_T}$ac_header_compiler" >&6
 
21080
 
 
21081
# Is the header present?
 
21082
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21083
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21084
cat >conftest.$ac_ext <<_ACEOF
 
21085
/* confdefs.h.  */
 
21086
_ACEOF
 
21087
cat confdefs.h >>conftest.$ac_ext
 
21088
cat >>conftest.$ac_ext <<_ACEOF
 
21089
/* end confdefs.h.  */
 
21090
#include <$ac_header>
 
21091
_ACEOF
 
21092
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21093
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21094
  ac_status=$?
 
21095
  grep -v '^ *+' conftest.er1 >conftest.err
 
21096
  rm -f conftest.er1
 
21097
  cat conftest.err >&5
 
21098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21099
  (exit $ac_status); } >/dev/null; then
 
21100
  if test -s conftest.err; then
 
21101
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21102
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21103
  else
 
21104
    ac_cpp_err=
 
21105
  fi
 
21106
else
 
21107
  ac_cpp_err=yes
 
21108
fi
 
21109
if test -z "$ac_cpp_err"; then
 
21110
  ac_header_preproc=yes
 
21111
else
 
21112
  echo "$as_me: failed program was:" >&5
 
21113
sed 's/^/| /' conftest.$ac_ext >&5
 
21114
 
 
21115
  ac_header_preproc=no
 
21116
fi
 
21117
rm -f conftest.err conftest.$ac_ext
 
21118
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21119
echo "${ECHO_T}$ac_header_preproc" >&6
 
21120
 
 
21121
# So?  What about this header?
 
21122
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21123
  yes:no: )
 
21124
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21125
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21126
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21127
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21128
    ac_header_preproc=yes
 
21129
    ;;
 
21130
  no:yes:* )
 
21131
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21132
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21133
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21134
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21135
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21136
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21137
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21138
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21139
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21140
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21141
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21142
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21143
    (
 
21144
      cat <<\_ASBOX
 
21145
## ------------------------------------ ##
 
21146
## Report this to gnupg-devel@gnupg.org ##
 
21147
## ------------------------------------ ##
 
21148
_ASBOX
 
21149
    ) |
 
21150
      sed "s/^/$as_me: WARNING:     /" >&2
 
21151
    ;;
 
21152
esac
 
21153
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21154
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21155
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21157
else
 
21158
  eval "$as_ac_Header=\$ac_header_preproc"
 
21159
fi
 
21160
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21161
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21162
 
 
21163
fi
 
21164
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21165
  cat >>confdefs.h <<_ACEOF
 
21166
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21167
_ACEOF
 
21168
 
 
21169
fi
 
21170
 
 
21171
done
 
21172
 
 
21173
if test "$ac_cv_header_sys_capability_h" = "yes" ; then
 
21174
  echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
 
21175
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
 
21176
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
 
21177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21178
else
 
21179
  ac_check_lib_save_LIBS=$LIBS
 
21180
LIBS="-lcap  $LIBS"
 
21181
cat >conftest.$ac_ext <<_ACEOF
 
21182
/* confdefs.h.  */
 
21183
_ACEOF
 
21184
cat confdefs.h >>conftest.$ac_ext
 
21185
cat >>conftest.$ac_ext <<_ACEOF
 
21186
/* end confdefs.h.  */
 
21187
 
 
21188
/* Override any gcc2 internal prototype to avoid an error.  */
 
21189
#ifdef __cplusplus
 
21190
extern "C"
 
21191
#endif
 
21192
/* We use char because int might match the return type of a gcc2
 
21193
   builtin and then its argument prototype would still apply.  */
 
21194
char cap_init ();
 
21195
int
 
21196
main ()
 
21197
{
 
21198
cap_init ();
 
21199
  ;
 
21200
  return 0;
 
21201
}
 
21202
_ACEOF
 
21203
rm -f conftest.$ac_objext conftest$ac_exeext
 
21204
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21205
  (eval $ac_link) 2>conftest.er1
 
21206
  ac_status=$?
 
21207
  grep -v '^ *+' conftest.er1 >conftest.err
 
21208
  rm -f conftest.er1
 
21209
  cat conftest.err >&5
 
21210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21211
  (exit $ac_status); } &&
 
21212
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21214
  (eval $ac_try) 2>&5
 
21215
  ac_status=$?
 
21216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21217
  (exit $ac_status); }; } &&
 
21218
         { ac_try='test -s conftest$ac_exeext'
 
21219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21220
  (eval $ac_try) 2>&5
 
21221
  ac_status=$?
 
21222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21223
  (exit $ac_status); }; }; then
 
21224
  ac_cv_lib_cap_cap_init=yes
 
21225
else
 
21226
  echo "$as_me: failed program was:" >&5
 
21227
sed 's/^/| /' conftest.$ac_ext >&5
 
21228
 
 
21229
ac_cv_lib_cap_cap_init=no
 
21230
fi
 
21231
rm -f conftest.err conftest.$ac_objext \
 
21232
      conftest$ac_exeext conftest.$ac_ext
 
21233
LIBS=$ac_check_lib_save_LIBS
 
21234
fi
 
21235
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
 
21236
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
 
21237
if test $ac_cv_lib_cap_cap_init = yes; then
 
21238
  ac_need_libcap=1
 
21239
fi
 
21240
 
 
21241
  if test "$ac_cv_lib_cap_cap_init" = "yes"; then
 
21242
 
 
21243
cat >>confdefs.h <<\_ACEOF
 
21244
#define USE_CAPABILITIES 1
 
21245
_ACEOF
 
21246
 
 
21247
     CAPLIBS="-lcap"
 
21248
 
 
21249
     use_capabilities=yes
 
21250
  fi
 
21251
fi
 
21252
if test "$use_capabilities" = "no" ; then
 
21253
    { echo "$as_me:$LINENO: WARNING:
 
21254
***
 
21255
*** The use of capabilities on this system is not possible.
 
21256
*** You need a recent Linux kernel and some patches:
 
21257
***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
 
21258
***   fcap-module-990613.tar.gz     (kernel module)
 
21259
***   libcap-1.92.tar.gz            (user mode library and utilities)
 
21260
*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
 
21261
*** set (filesystems menu). Be warned: This code is *really* ALPHA.
 
21262
***" >&5
 
21263
echo "$as_me: WARNING:
 
21264
***
 
21265
*** The use of capabilities on this system is not possible.
 
21266
*** You need a recent Linux kernel and some patches:
 
21267
***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
 
21268
***   fcap-module-990613.tar.gz     (kernel module)
 
21269
***   libcap-1.92.tar.gz            (user mode library and utilities)
 
21270
*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
 
21271
*** set (filesystems menu). Be warned: This code is *really* ALPHA.
 
21272
***" >&2;}
 
21273
fi
 
21274
fi
 
21275
 
 
21276
 
 
21277
# Sanity check regex.  Tests adapted from mutt.
 
21278
 
 
21279
echo "$as_me:$LINENO: checking whether regular expression support is requested" >&5
 
21280
echo $ECHO_N "checking whether regular expression support is requested... $ECHO_C" >&6
 
21281
# Check whether --enable-regex or --disable-regex was given.
 
21282
if test "${enable_regex+set}" = set; then
 
21283
  enableval="$enable_regex"
 
21284
  use_regex=$enableval
 
21285
else
 
21286
  use_regex=yes
 
21287
fi;
 
21288
echo "$as_me:$LINENO: result: $use_regex" >&5
 
21289
echo "${ECHO_T}$use_regex" >&6
 
21290
 
 
21291
if test "$use_regex" = yes ; then
 
21292
  echo "$as_me:$LINENO: checking whether the included regex lib is requested" >&5
 
21293
echo $ECHO_N "checking whether the included regex lib is requested... $ECHO_C" >&6
 
21294
 
 
21295
# Check whether --with-included-regex or --without-included-regex was given.
 
21296
if test "${with_included_regex+set}" = set; then
 
21297
  withval="$with_included_regex"
 
21298
  gnupg_cv_included_regex=yes
 
21299
else
 
21300
  gnupg_cv_included_regex=no
 
21301
fi;
 
21302
  echo "$as_me:$LINENO: result: $gnupg_cv_included_regex" >&5
 
21303
echo "${ECHO_T}$gnupg_cv_included_regex" >&6
 
21304
 
 
21305
  if test $gnupg_cv_included_regex = no ; then
 
21306
     # Does the system have regex functions at all?
 
21307
     echo "$as_me:$LINENO: checking for regcomp" >&5
 
21308
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
 
21309
if test "${ac_cv_func_regcomp+set}" = set; then
 
21310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21311
else
 
21312
  cat >conftest.$ac_ext <<_ACEOF
 
21313
/* confdefs.h.  */
 
21314
_ACEOF
 
21315
cat confdefs.h >>conftest.$ac_ext
 
21316
cat >>conftest.$ac_ext <<_ACEOF
 
21317
/* end confdefs.h.  */
 
21318
/* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
 
21319
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21320
#define regcomp innocuous_regcomp
 
21321
 
 
21322
/* System header to define __stub macros and hopefully few prototypes,
 
21323
    which can conflict with char regcomp (); below.
 
21324
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21325
    <limits.h> exists even on freestanding compilers.  */
 
21326
 
 
21327
#ifdef __STDC__
 
21328
# include <limits.h>
 
21329
#else
 
21330
# include <assert.h>
 
21331
#endif
 
21332
 
 
21333
#undef regcomp
 
21334
 
 
21335
/* Override any gcc2 internal prototype to avoid an error.  */
 
21336
#ifdef __cplusplus
 
21337
extern "C"
 
21338
{
 
21339
#endif
 
21340
/* We use char because int might match the return type of a gcc2
 
21341
   builtin and then its argument prototype would still apply.  */
 
21342
char regcomp ();
 
21343
/* The GNU C library defines this for functions which it implements
 
21344
    to always fail with ENOSYS.  Some functions are actually named
 
21345
    something starting with __ and the normal name is an alias.  */
 
21346
#if defined (__stub_regcomp) || defined (__stub___regcomp)
 
21347
choke me
 
21348
#else
 
21349
char (*f) () = regcomp;
 
21350
#endif
 
21351
#ifdef __cplusplus
 
21352
}
 
21353
#endif
 
21354
 
 
21355
int
 
21356
main ()
 
21357
{
 
21358
return f != regcomp;
 
21359
  ;
 
21360
  return 0;
 
21361
}
 
21362
_ACEOF
 
21363
rm -f conftest.$ac_objext conftest$ac_exeext
 
21364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21365
  (eval $ac_link) 2>conftest.er1
 
21366
  ac_status=$?
 
21367
  grep -v '^ *+' conftest.er1 >conftest.err
 
21368
  rm -f conftest.er1
 
21369
  cat conftest.err >&5
 
21370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21371
  (exit $ac_status); } &&
 
21372
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21374
  (eval $ac_try) 2>&5
 
21375
  ac_status=$?
 
21376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21377
  (exit $ac_status); }; } &&
 
21378
         { ac_try='test -s conftest$ac_exeext'
 
21379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21380
  (eval $ac_try) 2>&5
 
21381
  ac_status=$?
 
21382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21383
  (exit $ac_status); }; }; then
 
21384
  ac_cv_func_regcomp=yes
 
21385
else
 
21386
  echo "$as_me: failed program was:" >&5
 
21387
sed 's/^/| /' conftest.$ac_ext >&5
 
21388
 
 
21389
ac_cv_func_regcomp=no
 
21390
fi
 
21391
rm -f conftest.err conftest.$ac_objext \
 
21392
      conftest$ac_exeext conftest.$ac_ext
 
21393
fi
 
21394
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
 
21395
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
 
21396
if test $ac_cv_func_regcomp = yes; then
 
21397
  gnupg_cv_included_regex=no
 
21398
else
 
21399
  gnupg_cv_included_regex=yes
 
21400
fi
 
21401
 
 
21402
  fi
 
21403
 
 
21404
  if test $gnupg_cv_included_regex = no ; then
 
21405
     echo "$as_me:$LINENO: checking whether your system's regexp library is broken" >&5
 
21406
echo $ECHO_N "checking whether your system's regexp library is broken... $ECHO_C" >&6
 
21407
if test "${gnupg_cv_regex_broken+set}" = set; then
 
21408
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21409
else
 
21410
  if test "$cross_compiling" = yes; then
 
21411
  gnupg_cv_regex_broken=yes
 
21412
else
 
21413
  cat >conftest.$ac_ext <<_ACEOF
 
21414
/* confdefs.h.  */
 
21415
_ACEOF
 
21416
cat confdefs.h >>conftest.$ac_ext
 
21417
cat >>conftest.$ac_ext <<_ACEOF
 
21418
/* end confdefs.h.  */
 
21419
 
 
21420
#include <unistd.h>
 
21421
#include <regex.h>
 
21422
main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
 
21423
_ACEOF
 
21424
rm -f conftest$ac_exeext
 
21425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21426
  (eval $ac_link) 2>&5
 
21427
  ac_status=$?
 
21428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21429
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21431
  (eval $ac_try) 2>&5
 
21432
  ac_status=$?
 
21433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21434
  (exit $ac_status); }; }; then
 
21435
  gnupg_cv_regex_broken=no
 
21436
else
 
21437
  echo "$as_me: program exited with status $ac_status" >&5
 
21438
echo "$as_me: failed program was:" >&5
 
21439
sed 's/^/| /' conftest.$ac_ext >&5
 
21440
 
 
21441
( exit $ac_status )
 
21442
gnupg_cv_regex_broken=yes
 
21443
fi
 
21444
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21445
fi
 
21446
fi
 
21447
echo "$as_me:$LINENO: result: $gnupg_cv_regex_broken" >&5
 
21448
echo "${ECHO_T}$gnupg_cv_regex_broken" >&6
 
21449
 
 
21450
     if test $gnupg_cv_regex_broken = yes ; then
 
21451
      { echo "$as_me:$LINENO: WARNING: your regex is broken - using the included GNU regex instead." >&5
 
21452
echo "$as_me: WARNING: your regex is broken - using the included GNU regex instead." >&2;}
 
21453
      gnupg_cv_included_regex=yes
 
21454
     fi
 
21455
  fi
 
21456
 
 
21457
  if test $gnupg_cv_included_regex = yes; then
 
21458
 
 
21459
cat >>confdefs.h <<\_ACEOF
 
21460
#define USE_GNU_REGEX 1
 
21461
_ACEOF
 
21462
 
 
21463
     REGEX_O=regex.o
 
21464
 
 
21465
  fi
 
21466
else
 
21467
 
 
21468
 
 
21469
cat >>confdefs.h <<\_ACEOF
 
21470
#define DISABLE_REGEX 1
 
21471
_ACEOF
 
21472
 
 
21473
fi
 
21474
 
 
21475
_cppflags="${CPPFLAGS}"
 
21476
_ldflags="${LDFLAGS}"
 
21477
 
 
21478
 
 
21479
# Check whether --with-zlib or --without-zlib was given.
 
21480
if test "${with_zlib+set}" = set; then
 
21481
  withval="$with_zlib"
 
21482
 
 
21483
    if test -d "$withval"; then
 
21484
      CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
21485
      LDFLAGS="${LDFLAGS} -L$withval/lib"
 
21486
    fi
 
21487
 
 
21488
fi;
 
21489
 
 
21490
if test "${ac_cv_header_zlib_h+set}" = set; then
 
21491
  echo "$as_me:$LINENO: checking for zlib.h" >&5
 
21492
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
21493
if test "${ac_cv_header_zlib_h+set}" = set; then
 
21494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21495
fi
 
21496
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
21497
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
21498
else
 
21499
  # Is the header compilable?
 
21500
echo "$as_me:$LINENO: checking zlib.h usability" >&5
 
21501
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
 
21502
cat >conftest.$ac_ext <<_ACEOF
 
21503
/* confdefs.h.  */
 
21504
_ACEOF
 
21505
cat confdefs.h >>conftest.$ac_ext
 
21506
cat >>conftest.$ac_ext <<_ACEOF
 
21507
/* end confdefs.h.  */
 
21508
$ac_includes_default
 
21509
#include <zlib.h>
 
21510
_ACEOF
 
21511
rm -f conftest.$ac_objext
 
21512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21513
  (eval $ac_compile) 2>conftest.er1
 
21514
  ac_status=$?
 
21515
  grep -v '^ *+' conftest.er1 >conftest.err
 
21516
  rm -f conftest.er1
 
21517
  cat conftest.err >&5
 
21518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21519
  (exit $ac_status); } &&
 
21520
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21522
  (eval $ac_try) 2>&5
 
21523
  ac_status=$?
 
21524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21525
  (exit $ac_status); }; } &&
 
21526
         { ac_try='test -s conftest.$ac_objext'
 
21527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21528
  (eval $ac_try) 2>&5
 
21529
  ac_status=$?
 
21530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21531
  (exit $ac_status); }; }; then
 
21532
  ac_header_compiler=yes
 
21533
else
 
21534
  echo "$as_me: failed program was:" >&5
 
21535
sed 's/^/| /' conftest.$ac_ext >&5
 
21536
 
 
21537
ac_header_compiler=no
 
21538
fi
 
21539
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21540
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21541
echo "${ECHO_T}$ac_header_compiler" >&6
 
21542
 
 
21543
# Is the header present?
 
21544
echo "$as_me:$LINENO: checking zlib.h presence" >&5
 
21545
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
 
21546
cat >conftest.$ac_ext <<_ACEOF
 
21547
/* confdefs.h.  */
 
21548
_ACEOF
 
21549
cat confdefs.h >>conftest.$ac_ext
 
21550
cat >>conftest.$ac_ext <<_ACEOF
 
21551
/* end confdefs.h.  */
 
21552
#include <zlib.h>
 
21553
_ACEOF
 
21554
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21555
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21556
  ac_status=$?
 
21557
  grep -v '^ *+' conftest.er1 >conftest.err
 
21558
  rm -f conftest.er1
 
21559
  cat conftest.err >&5
 
21560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21561
  (exit $ac_status); } >/dev/null; then
 
21562
  if test -s conftest.err; then
 
21563
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21564
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21565
  else
 
21566
    ac_cpp_err=
 
21567
  fi
 
21568
else
 
21569
  ac_cpp_err=yes
 
21570
fi
 
21571
if test -z "$ac_cpp_err"; then
 
21572
  ac_header_preproc=yes
 
21573
else
 
21574
  echo "$as_me: failed program was:" >&5
 
21575
sed 's/^/| /' conftest.$ac_ext >&5
 
21576
 
 
21577
  ac_header_preproc=no
 
21578
fi
 
21579
rm -f conftest.err conftest.$ac_ext
 
21580
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21581
echo "${ECHO_T}$ac_header_preproc" >&6
 
21582
 
 
21583
# So?  What about this header?
 
21584
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21585
  yes:no: )
 
21586
    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21587
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21588
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
 
21589
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
 
21590
    ac_header_preproc=yes
 
21591
    ;;
 
21592
  no:yes:* )
 
21593
    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
 
21594
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
 
21595
    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
 
21596
echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
 
21597
    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
 
21598
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
 
21599
    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21600
echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21601
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
 
21602
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
 
21603
    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
 
21604
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
 
21605
    (
 
21606
      cat <<\_ASBOX
 
21607
## ------------------------------------ ##
 
21608
## Report this to gnupg-devel@gnupg.org ##
 
21609
## ------------------------------------ ##
 
21610
_ASBOX
 
21611
    ) |
 
21612
      sed "s/^/$as_me: WARNING:     /" >&2
 
21613
    ;;
 
21614
esac
 
21615
echo "$as_me:$LINENO: checking for zlib.h" >&5
 
21616
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
21617
if test "${ac_cv_header_zlib_h+set}" = set; then
 
21618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21619
else
 
21620
  ac_cv_header_zlib_h=$ac_header_preproc
 
21621
fi
 
21622
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
21623
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
21624
 
 
21625
fi
 
21626
if test $ac_cv_header_zlib_h = yes; then
 
21627
  echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
 
21628
echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6
 
21629
if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then
 
21630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21631
else
 
21632
  ac_check_lib_save_LIBS=$LIBS
 
21633
LIBS="-lz  $LIBS"
 
21634
cat >conftest.$ac_ext <<_ACEOF
 
21635
/* confdefs.h.  */
 
21636
_ACEOF
 
21637
cat confdefs.h >>conftest.$ac_ext
 
21638
cat >>conftest.$ac_ext <<_ACEOF
 
21639
/* end confdefs.h.  */
 
21640
 
 
21641
/* Override any gcc2 internal prototype to avoid an error.  */
 
21642
#ifdef __cplusplus
 
21643
extern "C"
 
21644
#endif
 
21645
/* We use char because int might match the return type of a gcc2
 
21646
   builtin and then its argument prototype would still apply.  */
 
21647
char deflateInit2_ ();
 
21648
int
 
21649
main ()
 
21650
{
 
21651
deflateInit2_ ();
 
21652
  ;
 
21653
  return 0;
 
21654
}
 
21655
_ACEOF
 
21656
rm -f conftest.$ac_objext conftest$ac_exeext
 
21657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21658
  (eval $ac_link) 2>conftest.er1
 
21659
  ac_status=$?
 
21660
  grep -v '^ *+' conftest.er1 >conftest.err
 
21661
  rm -f conftest.er1
 
21662
  cat conftest.err >&5
 
21663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21664
  (exit $ac_status); } &&
 
21665
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21667
  (eval $ac_try) 2>&5
 
21668
  ac_status=$?
 
21669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21670
  (exit $ac_status); }; } &&
 
21671
         { ac_try='test -s conftest$ac_exeext'
 
21672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21673
  (eval $ac_try) 2>&5
 
21674
  ac_status=$?
 
21675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21676
  (exit $ac_status); }; }; then
 
21677
  ac_cv_lib_z_deflateInit2_=yes
 
21678
else
 
21679
  echo "$as_me: failed program was:" >&5
 
21680
sed 's/^/| /' conftest.$ac_ext >&5
 
21681
 
 
21682
ac_cv_lib_z_deflateInit2_=no
 
21683
fi
 
21684
rm -f conftest.err conftest.$ac_objext \
 
21685
      conftest$ac_exeext conftest.$ac_ext
 
21686
LIBS=$ac_check_lib_save_LIBS
 
21687
fi
 
21688
echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
 
21689
echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6
 
21690
if test $ac_cv_lib_z_deflateInit2_ = yes; then
 
21691
  LIBS="$LIBS -lz"
 
21692
else
 
21693
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
21694
fi
 
21695
 
 
21696
else
 
21697
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
21698
fi
 
21699
 
 
21700
 
 
21701
 
 
21702
 
 
21703
 
 
21704
# See wether we want to run the long test suite.
 
21705
 
 
21706
# Check whether --with-pkits-tests or --without-pkits-tests was given.
 
21707
if test "${with_pkits_tests+set}" = set; then
 
21708
  withval="$with_pkits_tests"
 
21709
  run_pkits_tests=$withval
 
21710
else
 
21711
  run_pkits_tests=no
 
21712
fi;
 
21713
 
 
21714
 
 
21715
if test "$run_pkits_tests" = "yes"; then
 
21716
  RUN_PKITS_TESTS_TRUE=
 
21717
  RUN_PKITS_TESTS_FALSE='#'
 
21718
else
 
21719
  RUN_PKITS_TESTS_TRUE='#'
 
21720
  RUN_PKITS_TESTS_FALSE=
 
21721
fi
 
21722
 
 
21723
 
 
21724
 
 
21725
# Allow users to append something to the version string without
 
21726
# flagging it as development version.  The user version parts is
 
21727
# considered everything after a dash.
 
21728
if test "$development_version" != yes; then
 
21729
    tmp_pat='[a-zA-Z]'
 
21730
    if echo "$VERSION" | sed 's/-.*//' | grep "$tmp_pat" >/dev/null ; then
 
21731
    development_version=yes
 
21732
  fi
 
21733
fi
 
21734
if test "$development_version" = yes; then
 
21735
 
 
21736
cat >>confdefs.h <<\_ACEOF
 
21737
#define IS_DEVELOPMENT_VERSION 1
 
21738
_ACEOF
 
21739
 
 
21740
fi
 
21741
 
 
21742
 
 
21743
 
 
21744
if test x$cross_compiling = xyes; then
 
21745
  CROSS_COMPILING_TRUE=
 
21746
  CROSS_COMPILING_FALSE='#'
 
21747
else
 
21748
  CROSS_COMPILING_TRUE='#'
 
21749
  CROSS_COMPILING_FALSE=
 
21750
fi
 
21751
 
 
21752
 
 
21753
 
 
21754
    if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
 
21755
        :
 
21756
    else
 
21757
        { echo "$as_me:$LINENO: WARNING:
 
21758
***
 
21759
*** It seems that you are not using GNU make.  Some make tools have serious
 
21760
*** flaws and you may not be able to build this software at all. Before you
 
21761
*** complain, please try GNU make:  GNU make is easy to build and available
 
21762
*** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
 
21763
***" >&5
 
21764
echo "$as_me: WARNING:
 
21765
***
 
21766
*** It seems that you are not using GNU make.  Some make tools have serious
 
21767
*** flaws and you may not be able to build this software at all. Before you
 
21768
*** complain, please try GNU make:  GNU make is easy to build and available
 
21769
*** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
 
21770
***" >&2;}
 
21771
    fi
 
21772
 
 
21773
 
 
21774
# Add some extra libs here so that previous tests don't fail for
 
21775
# mysterious reasons - the final link step should bail out.
 
21776
if test "$have_w32_system" = yes; then
 
21777
   W32LIBS="-lwsock32"
 
21778
fi
 
21779
 
 
21780
 
 
21781
if test "$GCC" = yes; then
 
21782
    if test "$USE_MAINTAINER_MODE" = "yes"; then
 
21783
        CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
 
21784
        CFLAGS="$CFLAGS -Wformat-nonliteral"
 
21785
    else
 
21786
        CFLAGS="$CFLAGS -Wall"
 
21787
    fi
 
21788
fi
 
21789
 
 
21790
 
 
21791
 
 
21792
 
 
21793
 
 
21794
# We use jnlib, so tell other modules about it
 
21795
 
 
21796
cat >>confdefs.h <<\_ACEOF
 
21797
#define HAVE_JNLIB_LOGGING 1
 
21798
_ACEOF
 
21799
 
 
21800
 
 
21801
# For W32 we need to use our Pth emulation code
 
21802
if test "$have_w32_system" = yes; then
 
21803
            ac_config_links="$ac_config_links pth.h:jnlib/w32-pth.h"
 
21804
 
 
21805
fi
 
21806
 
 
21807
 
 
21808
#
 
21809
# Decide what to build
 
21810
#
 
21811
missing_pth=no
 
21812
if test $have_ksba = no; then
 
21813
  build_gpgsm=no
 
21814
  build_scdaemon=no
 
21815
fi
 
21816
 
 
21817
build_agent_threaded=""
 
21818
if test "$build_agent" = "yes"; then
 
21819
  if test $have_pth = no; then
 
21820
     build_agent_threaded="(not multi-threaded)"
 
21821
     missing_pth=yes
 
21822
  fi
 
21823
fi
 
21824
 
 
21825
build_scdaemon_extra=""
 
21826
if test "$build_scdaemon" = "yes"; then
 
21827
  tmp=""
 
21828
  if test $have_pth = no; then
 
21829
     build_scdaemon_extra="not multi-threaded"
 
21830
     tmp=", "
 
21831
     missing_pth=yes
 
21832
  fi
 
21833
  if test $have_opensc = no; then
 
21834
     build_scdaemon_extra="${build_scdaemon_extra}${tmp}no pkcs#15"
 
21835
     tmp=", "
 
21836
  fi
 
21837
  if test -n "$build_scdaemon_extra"; then
 
21838
     build_scdaemon_extra="(${build_scdaemon_extra})"
 
21839
  fi
 
21840
fi
 
21841
 
 
21842
 
 
21843
if test "$build_agent_only" = "yes" ; then
 
21844
  build_gpg=no
 
21845
  build_gpgsm=no
 
21846
  build_scdaemon=no
 
21847
fi
 
21848
 
 
21849
 
 
21850
 
 
21851
 
 
21852
if test "$build_gpg" = "yes"; then
 
21853
  BUILD_GPG_TRUE=
 
21854
  BUILD_GPG_FALSE='#'
 
21855
else
 
21856
  BUILD_GPG_TRUE='#'
 
21857
  BUILD_GPG_FALSE=
 
21858
fi
 
21859
 
 
21860
 
 
21861
 
 
21862
if test "$build_gpgsm" = "yes"; then
 
21863
  BUILD_GPGSM_TRUE=
 
21864
  BUILD_GPGSM_FALSE='#'
 
21865
else
 
21866
  BUILD_GPGSM_TRUE='#'
 
21867
  BUILD_GPGSM_FALSE=
 
21868
fi
 
21869
 
 
21870
 
 
21871
 
 
21872
if test "$build_agent" = "yes"; then
 
21873
  BUILD_AGENT_TRUE=
 
21874
  BUILD_AGENT_FALSE='#'
 
21875
else
 
21876
  BUILD_AGENT_TRUE='#'
 
21877
  BUILD_AGENT_FALSE=
 
21878
fi
 
21879
 
 
21880
 
 
21881
 
 
21882
if test "$build_scdaemon" = "yes"; then
 
21883
  BUILD_SCDAEMON_TRUE=
 
21884
  BUILD_SCDAEMON_FALSE='#'
 
21885
else
 
21886
  BUILD_SCDAEMON_TRUE='#'
 
21887
  BUILD_SCDAEMON_FALSE=
 
21888
fi
 
21889
 
 
21890
 
 
21891
 
 
21892
 
 
21893
#
 
21894
# Print errors here so that they are visible all
 
21895
# together and the user can acquire them all together.
 
21896
#
 
21897
die=no
 
21898
if test "$have_gpg_error" = "no"; then
 
21899
   die=yes
 
21900
   { echo "$as_me:$LINENO:
 
21901
***
 
21902
*** You need libgpg-error to build this program.
 
21903
**  This library is for example available at
 
21904
***   ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error
 
21905
*** (at least version $NEED_GPG_ERROR_VERSION is required.)
 
21906
***" >&5
 
21907
echo "$as_me:
 
21908
***
 
21909
*** You need libgpg-error to build this program.
 
21910
**  This library is for example available at
 
21911
***   ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error
 
21912
*** (at least version $NEED_GPG_ERROR_VERSION is required.)
 
21913
***" >&6;}
 
21914
fi
 
21915
if test "$have_libgcrypt" = "no"; then
 
21916
   die=yes
 
21917
   { echo "$as_me:$LINENO:
 
21918
***
 
21919
*** You need libgcrypt to build this program.
 
21920
**  This library is for example available at
 
21921
***   ftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/
 
21922
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
 
21923
***" >&5
 
21924
echo "$as_me:
 
21925
***
 
21926
*** You need libgcrypt to build this program.
 
21927
**  This library is for example available at
 
21928
***   ftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/
 
21929
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
 
21930
***" >&6;}
 
21931
fi
 
21932
if test "$have_libassuan" = "no"; then
 
21933
   die=yes
 
21934
   { echo "$as_me:$LINENO:
 
21935
***
 
21936
*** You need libassuan to build this program.
 
21937
*** This library is for example available at
 
21938
***   ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/
 
21939
*** (at least version $NEED_LIBASSUAN_VERSION is required).
 
21940
***" >&5
 
21941
echo "$as_me:
 
21942
***
 
21943
*** You need libassuan to build this program.
 
21944
*** This library is for example available at
 
21945
***   ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/
 
21946
*** (at least version $NEED_LIBASSUAN_VERSION is required).
 
21947
***" >&6;}
 
21948
fi
 
21949
if test "$have_ksba" = "no"; then
 
21950
    { echo "$as_me:$LINENO:
 
21951
***
 
21952
*** You need libksba to build this program.
 
21953
*** This library is for example available at
 
21954
***   ftp://ftp.gnupg.org/gcrypt/alpha/libksba/
 
21955
*** (at least version $NEED_KSBA_VERSION is required).
 
21956
***" >&5
 
21957
echo "$as_me:
 
21958
***
 
21959
*** You need libksba to build this program.
 
21960
*** This library is for example available at
 
21961
***   ftp://ftp.gnupg.org/gcrypt/alpha/libksba/
 
21962
*** (at least version $NEED_KSBA_VERSION is required).
 
21963
***" >&6;}
 
21964
fi
 
21965
if test "$missing_pth" = "yes"; then
 
21966
    { echo "$as_me:$LINENO:
 
21967
***
 
21968
*** It is strongly suggested to build with support for the
 
21969
*** GNU Portable Threads Library (Pth). Please install this
 
21970
*** library first or use --disable-threads to allow building
 
21971
*** anyway.  The library is for example available at
 
21972
***   ftp://ftp.gnu.org/gnu/pth/
 
21973
*** On a Debian GNU/Linux system you can install it using
 
21974
***   apt-get install libpth-dev
 
21975
***" >&5
 
21976
echo "$as_me:
 
21977
***
 
21978
*** It is strongly suggested to build with support for the
 
21979
*** GNU Portable Threads Library (Pth). Please install this
 
21980
*** library first or use --disable-threads to allow building
 
21981
*** anyway.  The library is for example available at
 
21982
***   ftp://ftp.gnu.org/gnu/pth/
 
21983
*** On a Debian GNU/Linux system you can install it using
 
21984
***   apt-get install libpth-dev
 
21985
***" >&6;}
 
21986
  if test "$enable_threads" != "no"; then
 
21987
     die=yes
 
21988
  fi
 
21989
fi
 
21990
 
 
21991
if test "$die" = "yes"; then
 
21992
    { { echo "$as_me:$LINENO: error:
 
21993
***
 
21994
*** Required libraries not found. Please consult the above messages
 
21995
*** and install them before running configure again.
 
21996
***" >&5
 
21997
echo "$as_me: error:
 
21998
***
 
21999
*** Required libraries not found. Please consult the above messages
 
22000
*** and install them before running configure again.
 
22001
***" >&2;}
 
22002
   { (exit 1); exit 1; }; }
 
22003
fi
 
22004
 
 
22005
 
 
22006
 
 
22007
                                                                                                                                            ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in intl/Makefile jnlib/Makefile common/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tools/Makefile doc/Makefile tests/Makefile"
 
22008
 
 
22009
cat >confcache <<\_ACEOF
 
22010
# This file is a shell script that caches the results of configure
 
22011
# tests run on this system so they can be shared between configure
 
22012
# scripts and configure runs, see configure's option --config-cache.
 
22013
# It is not useful on other systems.  If it contains results you don't
 
22014
# want to keep, you may remove or edit it.
 
22015
#
 
22016
# config.status only pays attention to the cache file if you give it
 
22017
# the --recheck option to rerun configure.
 
22018
#
 
22019
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22020
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22021
# following values.
 
22022
 
 
22023
_ACEOF
 
22024
 
 
22025
# The following way of writing the cache mishandles newlines in values,
 
22026
# but we know of no workaround that is simple, portable, and efficient.
 
22027
# So, don't put newlines in cache variables' values.
 
22028
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22029
# and sets the high bit in the cache file unless we assign to the vars.
 
22030
{
 
22031
  (set) 2>&1 |
 
22032
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
22033
    *ac_space=\ *)
 
22034
      # `set' does not quote correctly, so add quotes (double-quote
 
22035
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22036
      sed -n \
 
22037
        "s/'/'\\\\''/g;
 
22038
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22039
      ;;
 
22040
    *)
 
22041
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22042
      sed -n \
 
22043
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
22044
      ;;
 
22045
    esac;
 
22046
} |
 
22047
  sed '
 
22048
     t clear
 
22049
     : clear
 
22050
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22051
     t end
 
22052
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22053
     : end' >>confcache
 
22054
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
22055
  if test -w $cache_file; then
 
22056
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
22057
    cat confcache >$cache_file
 
22058
  else
 
22059
    echo "not updating unwritable cache $cache_file"
 
22060
  fi
 
22061
fi
 
22062
rm -f confcache
 
22063
 
 
22064
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22065
# Let make expand exec_prefix.
 
22066
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22067
 
 
22068
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22069
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22070
# trailing colons and then remove the whole line if VPATH becomes empty
 
22071
# (actually we leave an empty line to preserve line numbers).
 
22072
if test "x$srcdir" = x.; then
 
22073
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22074
s/:*\$(srcdir):*/:/;
 
22075
s/:*\${srcdir}:*/:/;
 
22076
s/:*@srcdir@:*/:/;
 
22077
s/^\([^=]*=[     ]*\):*/\1/;
 
22078
s/:*$//;
 
22079
s/^[^=]*=[       ]*$//;
 
22080
}'
 
22081
fi
 
22082
 
 
22083
DEFS=-DHAVE_CONFIG_H
 
22084
 
 
22085
ac_libobjs=
 
22086
ac_ltlibobjs=
 
22087
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22088
  # 1. Remove the extension, and $U if already installed.
 
22089
  ac_i=`echo "$ac_i" |
 
22090
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22091
  # 2. Add them.
 
22092
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
22093
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
22094
done
 
22095
LIBOBJS=$ac_libobjs
 
22096
 
 
22097
LTLIBOBJS=$ac_ltlibobjs
 
22098
 
 
22099
 
 
22100
if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
 
22101
  { { echo "$as_me:$LINENO: error: conditional \"GNUPG_AGENT_PGM\" was never defined.
 
22102
Usually this means the macro was only invoked conditionally." >&5
 
22103
echo "$as_me: error: conditional \"GNUPG_AGENT_PGM\" was never defined.
 
22104
Usually this means the macro was only invoked conditionally." >&2;}
 
22105
   { (exit 1); exit 1; }; }
 
22106
fi
 
22107
if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
 
22108
  { { echo "$as_me:$LINENO: error: conditional \"GNUPG_PINENTRY_PGM\" was never defined.
 
22109
Usually this means the macro was only invoked conditionally." >&5
 
22110
echo "$as_me: error: conditional \"GNUPG_PINENTRY_PGM\" was never defined.
 
22111
Usually this means the macro was only invoked conditionally." >&2;}
 
22112
   { (exit 1); exit 1; }; }
 
22113
fi
 
22114
if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
 
22115
  { { echo "$as_me:$LINENO: error: conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
 
22116
Usually this means the macro was only invoked conditionally." >&5
 
22117
echo "$as_me: error: conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
 
22118
Usually this means the macro was only invoked conditionally." >&2;}
 
22119
   { (exit 1); exit 1; }; }
 
22120
fi
 
22121
if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
 
22122
  { { echo "$as_me:$LINENO: error: conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
 
22123
Usually this means the macro was only invoked conditionally." >&5
 
22124
echo "$as_me: error: conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
 
22125
Usually this means the macro was only invoked conditionally." >&2;}
 
22126
   { (exit 1); exit 1; }; }
 
22127
fi
 
22128
if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
 
22129
  { { echo "$as_me:$LINENO: error: conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
 
22130
Usually this means the macro was only invoked conditionally." >&5
 
22131
echo "$as_me: error: conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
 
22132
Usually this means the macro was only invoked conditionally." >&2;}
 
22133
   { (exit 1); exit 1; }; }
 
22134
fi
 
22135
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
22136
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
22137
Usually this means the macro was only invoked conditionally." >&5
 
22138
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
22139
Usually this means the macro was only invoked conditionally." >&2;}
 
22140
   { (exit 1); exit 1; }; }
 
22141
fi
 
22142
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22143
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22144
Usually this means the macro was only invoked conditionally." >&5
 
22145
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22146
Usually this means the macro was only invoked conditionally." >&2;}
 
22147
   { (exit 1); exit 1; }; }
 
22148
fi
 
22149
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22150
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22151
Usually this means the macro was only invoked conditionally." >&5
 
22152
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22153
Usually this means the macro was only invoked conditionally." >&2;}
 
22154
   { (exit 1); exit 1; }; }
 
22155
fi
 
22156
if test -z "${HAVE_DOCBOOK_TO_MAN_TRUE}" && test -z "${HAVE_DOCBOOK_TO_MAN_FALSE}"; then
 
22157
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK_TO_MAN\" was never defined.
 
22158
Usually this means the macro was only invoked conditionally." >&5
 
22159
echo "$as_me: error: conditional \"HAVE_DOCBOOK_TO_MAN\" was never defined.
 
22160
Usually this means the macro was only invoked conditionally." >&2;}
 
22161
   { (exit 1); exit 1; }; }
 
22162
fi
 
22163
if test -z "${WORKING_FAQPROG_TRUE}" && test -z "${WORKING_FAQPROG_FALSE}"; then
 
22164
  { { echo "$as_me:$LINENO: error: conditional \"WORKING_FAQPROG\" was never defined.
 
22165
Usually this means the macro was only invoked conditionally." >&5
 
22166
echo "$as_me: error: conditional \"WORKING_FAQPROG\" was never defined.
 
22167
Usually this means the macro was only invoked conditionally." >&2;}
 
22168
   { (exit 1); exit 1; }; }
 
22169
fi
 
22170
if test -z "${HAVE_DOCBOOK_TO_TEXI_TRUE}" && test -z "${HAVE_DOCBOOK_TO_TEXI_FALSE}"; then
 
22171
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK_TO_TEXI\" was never defined.
 
22172
Usually this means the macro was only invoked conditionally." >&5
 
22173
echo "$as_me: error: conditional \"HAVE_DOCBOOK_TO_TEXI\" was never defined.
 
22174
Usually this means the macro was only invoked conditionally." >&2;}
 
22175
   { (exit 1); exit 1; }; }
 
22176
fi
 
22177
if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
 
22178
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
 
22179
Usually this means the macro was only invoked conditionally." >&5
 
22180
echo "$as_me: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
 
22181
Usually this means the macro was only invoked conditionally." >&2;}
 
22182
   { (exit 1); exit 1; }; }
 
22183
fi
 
22184
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
 
22185
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
 
22186
Usually this means the macro was only invoked conditionally." >&5
 
22187
echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
 
22188
Usually this means the macro was only invoked conditionally." >&2;}
 
22189
   { (exit 1); exit 1; }; }
 
22190
fi
 
22191
if test -z "${HAVE_OPENSC_TRUE}" && test -z "${HAVE_OPENSC_FALSE}"; then
 
22192
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSC\" was never defined.
 
22193
Usually this means the macro was only invoked conditionally." >&5
 
22194
echo "$as_me: error: conditional \"HAVE_OPENSC\" was never defined.
 
22195
Usually this means the macro was only invoked conditionally." >&2;}
 
22196
   { (exit 1); exit 1; }; }
 
22197
fi
 
22198
if test -z "${RUN_PKITS_TESTS_TRUE}" && test -z "${RUN_PKITS_TESTS_FALSE}"; then
 
22199
  { { echo "$as_me:$LINENO: error: conditional \"RUN_PKITS_TESTS\" was never defined.
 
22200
Usually this means the macro was only invoked conditionally." >&5
 
22201
echo "$as_me: error: conditional \"RUN_PKITS_TESTS\" was never defined.
 
22202
Usually this means the macro was only invoked conditionally." >&2;}
 
22203
   { (exit 1); exit 1; }; }
 
22204
fi
 
22205
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
 
22206
  { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
 
22207
Usually this means the macro was only invoked conditionally." >&5
 
22208
echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
 
22209
Usually this means the macro was only invoked conditionally." >&2;}
 
22210
   { (exit 1); exit 1; }; }
 
22211
fi
 
22212
if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
 
22213
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GPG\" was never defined.
 
22214
Usually this means the macro was only invoked conditionally." >&5
 
22215
echo "$as_me: error: conditional \"BUILD_GPG\" was never defined.
 
22216
Usually this means the macro was only invoked conditionally." >&2;}
 
22217
   { (exit 1); exit 1; }; }
 
22218
fi
 
22219
if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
 
22220
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GPGSM\" was never defined.
 
22221
Usually this means the macro was only invoked conditionally." >&5
 
22222
echo "$as_me: error: conditional \"BUILD_GPGSM\" was never defined.
 
22223
Usually this means the macro was only invoked conditionally." >&2;}
 
22224
   { (exit 1); exit 1; }; }
 
22225
fi
 
22226
if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
 
22227
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_AGENT\" was never defined.
 
22228
Usually this means the macro was only invoked conditionally." >&5
 
22229
echo "$as_me: error: conditional \"BUILD_AGENT\" was never defined.
 
22230
Usually this means the macro was only invoked conditionally." >&2;}
 
22231
   { (exit 1); exit 1; }; }
 
22232
fi
 
22233
if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
 
22234
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SCDAEMON\" was never defined.
 
22235
Usually this means the macro was only invoked conditionally." >&5
 
22236
echo "$as_me: error: conditional \"BUILD_SCDAEMON\" was never defined.
 
22237
Usually this means the macro was only invoked conditionally." >&2;}
 
22238
   { (exit 1); exit 1; }; }
 
22239
fi
 
22240
 
 
22241
: ${CONFIG_STATUS=./config.status}
 
22242
ac_clean_files_save=$ac_clean_files
 
22243
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22244
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22245
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22246
cat >$CONFIG_STATUS <<_ACEOF
 
22247
#! $SHELL
 
22248
# Generated by $as_me.
 
22249
# Run this file to recreate the current configuration.
 
22250
# Compiler output produced by configure, useful for debugging
 
22251
# configure, is in config.log if it exists.
 
22252
 
 
22253
debug=false
 
22254
ac_cs_recheck=false
 
22255
ac_cs_silent=false
 
22256
SHELL=\${CONFIG_SHELL-$SHELL}
 
22257
_ACEOF
 
22258
 
 
22259
cat >>$CONFIG_STATUS <<\_ACEOF
 
22260
## --------------------- ##
 
22261
## M4sh Initialization.  ##
 
22262
## --------------------- ##
 
22263
 
 
22264
# Be Bourne compatible
 
22265
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22266
  emulate sh
 
22267
  NULLCMD=:
 
22268
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22269
  # is contrary to our usage.  Disable this feature.
 
22270
  alias -g '${1+"$@"}'='"$@"'
 
22271
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22272
  set -o posix
 
22273
fi
 
22274
DUALCASE=1; export DUALCASE # for MKS sh
 
22275
 
 
22276
# Support unset when possible.
 
22277
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22278
  as_unset=unset
 
22279
else
 
22280
  as_unset=false
 
22281
fi
 
22282
 
 
22283
 
 
22284
# Work around bugs in pre-3.0 UWIN ksh.
 
22285
$as_unset ENV MAIL MAILPATH
 
22286
PS1='$ '
 
22287
PS2='> '
 
22288
PS4='+ '
 
22289
 
 
22290
# NLS nuisances.
 
22291
for as_var in \
 
22292
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22293
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22294
  LC_TELEPHONE LC_TIME
 
22295
do
 
22296
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22297
    eval $as_var=C; export $as_var
 
22298
  else
 
22299
    $as_unset $as_var
 
22300
  fi
 
22301
done
 
22302
 
 
22303
# Required to use basename.
 
22304
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22305
  as_expr=expr
 
22306
else
 
22307
  as_expr=false
 
22308
fi
 
22309
 
 
22310
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
22311
  as_basename=basename
 
22312
else
 
22313
  as_basename=false
 
22314
fi
 
22315
 
 
22316
 
 
22317
# Name of the executable.
 
22318
as_me=`$as_basename "$0" ||
 
22319
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22320
         X"$0" : 'X\(//\)$' \| \
 
22321
         X"$0" : 'X\(/\)$' \| \
 
22322
         .     : '\(.\)' 2>/dev/null ||
 
22323
echo X/"$0" |
 
22324
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22325
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22326
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22327
          s/.*/./; q'`
 
22328
 
 
22329
 
 
22330
# PATH needs CR, and LINENO needs CR and PATH.
 
22331
# Avoid depending upon Character Ranges.
 
22332
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22333
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22334
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22335
as_cr_digits='0123456789'
 
22336
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22337
 
 
22338
# The user is always right.
 
22339
if test "${PATH_SEPARATOR+set}" != set; then
 
22340
  echo "#! /bin/sh" >conf$$.sh
 
22341
  echo  "exit 0"   >>conf$$.sh
 
22342
  chmod +x conf$$.sh
 
22343
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22344
    PATH_SEPARATOR=';'
 
22345
  else
 
22346
    PATH_SEPARATOR=:
 
22347
  fi
 
22348
  rm -f conf$$.sh
 
22349
fi
 
22350
 
 
22351
 
 
22352
  as_lineno_1=$LINENO
 
22353
  as_lineno_2=$LINENO
 
22354
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22355
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22356
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22357
  # Find who we are.  Look in the path if we contain no path at all
 
22358
  # relative or not.
 
22359
  case $0 in
 
22360
    *[\\/]* ) as_myself=$0 ;;
 
22361
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22362
for as_dir in $PATH
 
22363
do
 
22364
  IFS=$as_save_IFS
 
22365
  test -z "$as_dir" && as_dir=.
 
22366
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22367
done
 
22368
 
 
22369
       ;;
 
22370
  esac
 
22371
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22372
  # in which case we are not to be found in the path.
 
22373
  if test "x$as_myself" = x; then
 
22374
    as_myself=$0
 
22375
  fi
 
22376
  if test ! -f "$as_myself"; then
 
22377
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22378
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22379
   { (exit 1); exit 1; }; }
 
22380
  fi
 
22381
  case $CONFIG_SHELL in
 
22382
  '')
 
22383
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22384
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22385
do
 
22386
  IFS=$as_save_IFS
 
22387
  test -z "$as_dir" && as_dir=.
 
22388
  for as_base in sh bash ksh sh5; do
 
22389
         case $as_dir in
 
22390
         /*)
 
22391
           if ("$as_dir/$as_base" -c '
 
22392
  as_lineno_1=$LINENO
 
22393
  as_lineno_2=$LINENO
 
22394
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22395
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22396
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22397
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22398
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22399
             CONFIG_SHELL=$as_dir/$as_base
 
22400
             export CONFIG_SHELL
 
22401
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22402
           fi;;
 
22403
         esac
 
22404
       done
 
22405
done
 
22406
;;
 
22407
  esac
 
22408
 
 
22409
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22410
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22411
  # line-number line before each line; the second 'sed' does the real
 
22412
  # work.  The second script uses 'N' to pair each line-number line
 
22413
  # with the numbered line, and appends trailing '-' during
 
22414
  # substitution so that $LINENO is not a special case at line end.
 
22415
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22416
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22417
  sed '=' <$as_myself |
 
22418
    sed '
 
22419
      N
 
22420
      s,$,-,
 
22421
      : loop
 
22422
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
22423
      t loop
 
22424
      s,-$,,
 
22425
      s,^['$as_cr_digits']*\n,,
 
22426
    ' >$as_me.lineno &&
 
22427
  chmod +x $as_me.lineno ||
 
22428
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22429
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
22430
   { (exit 1); exit 1; }; }
 
22431
 
 
22432
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22433
  # (the dirname of $[0] is not the place where we might find the
 
22434
  # original and so on.  Autoconf is especially sensible to this).
 
22435
  . ./$as_me.lineno
 
22436
  # Exit status is that of the last command.
 
22437
  exit
 
22438
}
 
22439
 
 
22440
 
 
22441
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22442
  *c*,-n*) ECHO_N= ECHO_C='
 
22443
' ECHO_T='      ' ;;
 
22444
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22445
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
22446
esac
 
22447
 
 
22448
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22449
  as_expr=expr
 
22450
else
 
22451
  as_expr=false
 
22452
fi
 
22453
 
 
22454
rm -f conf$$ conf$$.exe conf$$.file
 
22455
echo >conf$$.file
 
22456
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22457
  # We could just check for DJGPP; but this test a) works b) is more generic
 
22458
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
22459
  if test -f conf$$.exe; then
 
22460
    # Don't use ln at all; we don't have any links
 
22461
    as_ln_s='cp -p'
 
22462
  else
 
22463
    as_ln_s='ln -s'
 
22464
  fi
 
22465
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22466
  as_ln_s=ln
 
22467
else
 
22468
  as_ln_s='cp -p'
 
22469
fi
 
22470
rm -f conf$$ conf$$.exe conf$$.file
 
22471
 
 
22472
if mkdir -p . 2>/dev/null; then
 
22473
  as_mkdir_p=:
 
22474
else
 
22475
  test -d ./-p && rmdir ./-p
 
22476
  as_mkdir_p=false
 
22477
fi
 
22478
 
 
22479
as_executable_p="test -f"
 
22480
 
 
22481
# Sed expression to map a string onto a valid CPP name.
 
22482
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22483
 
 
22484
# Sed expression to map a string onto a valid variable name.
 
22485
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22486
 
 
22487
 
 
22488
# IFS
 
22489
# We need space, tab and new line, in precisely that order.
 
22490
as_nl='
 
22491
'
 
22492
IFS="   $as_nl"
 
22493
 
 
22494
# CDPATH.
 
22495
$as_unset CDPATH
 
22496
 
 
22497
exec 6>&1
 
22498
 
 
22499
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
22500
# report actual input values of CONFIG_FILES etc. instead of their
 
22501
# values after options handling.  Logging --version etc. is OK.
 
22502
exec 5>>config.log
 
22503
{
 
22504
  echo
 
22505
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22506
## Running $as_me. ##
 
22507
_ASBOX
 
22508
} >&5
 
22509
cat >&5 <<_CSEOF
 
22510
 
 
22511
This file was extended by gnupg $as_me 1.9.15, which was
 
22512
generated by GNU Autoconf 2.59.  Invocation command line was
 
22513
 
 
22514
  CONFIG_FILES    = $CONFIG_FILES
 
22515
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22516
  CONFIG_LINKS    = $CONFIG_LINKS
 
22517
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22518
  $ $0 $@
 
22519
 
 
22520
_CSEOF
 
22521
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
22522
echo >&5
 
22523
_ACEOF
 
22524
 
 
22525
# Files that config.status was made for.
 
22526
if test -n "$ac_config_files"; then
 
22527
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
22528
fi
 
22529
 
 
22530
if test -n "$ac_config_headers"; then
 
22531
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
22532
fi
 
22533
 
 
22534
if test -n "$ac_config_links"; then
 
22535
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
22536
fi
 
22537
 
 
22538
if test -n "$ac_config_commands"; then
 
22539
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
22540
fi
 
22541
 
 
22542
cat >>$CONFIG_STATUS <<\_ACEOF
 
22543
 
 
22544
ac_cs_usage="\
 
22545
\`$as_me' instantiates files from templates according to the
 
22546
current configuration.
 
22547
 
 
22548
Usage: $0 [OPTIONS] [FILE]...
 
22549
 
 
22550
  -h, --help       print this help, then exit
 
22551
  -V, --version    print version number, then exit
 
22552
  -q, --quiet      do not print progress messages
 
22553
  -d, --debug      don't remove temporary files
 
22554
      --recheck    update $as_me by reconfiguring in the same conditions
 
22555
  --file=FILE[:TEMPLATE]
 
22556
                   instantiate the configuration file FILE
 
22557
  --header=FILE[:TEMPLATE]
 
22558
                   instantiate the configuration header FILE
 
22559
 
 
22560
Configuration files:
 
22561
$config_files
 
22562
 
 
22563
Configuration headers:
 
22564
$config_headers
 
22565
 
 
22566
Configuration links:
 
22567
$config_links
 
22568
 
 
22569
Configuration commands:
 
22570
$config_commands
 
22571
 
 
22572
Report bugs to <bug-autoconf@gnu.org>."
 
22573
_ACEOF
 
22574
 
 
22575
cat >>$CONFIG_STATUS <<_ACEOF
 
22576
ac_cs_version="\\
 
22577
gnupg config.status 1.9.15
 
22578
configured by $0, generated by GNU Autoconf 2.59,
 
22579
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
22580
 
 
22581
Copyright (C) 2003 Free Software Foundation, Inc.
 
22582
This config.status script is free software; the Free Software Foundation
 
22583
gives unlimited permission to copy, distribute and modify it."
 
22584
srcdir=$srcdir
 
22585
INSTALL="$INSTALL"
 
22586
_ACEOF
 
22587
 
 
22588
cat >>$CONFIG_STATUS <<\_ACEOF
 
22589
# If no file are specified by the user, then we need to provide default
 
22590
# value.  By we need to know if files were specified by the user.
 
22591
ac_need_defaults=:
 
22592
while test $# != 0
 
22593
do
 
22594
  case $1 in
 
22595
  --*=*)
 
22596
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
22597
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
22598
    ac_shift=:
 
22599
    ;;
 
22600
  -*)
 
22601
    ac_option=$1
 
22602
    ac_optarg=$2
 
22603
    ac_shift=shift
 
22604
    ;;
 
22605
  *) # This is not an option, so the user has probably given explicit
 
22606
     # arguments.
 
22607
     ac_option=$1
 
22608
     ac_need_defaults=false;;
 
22609
  esac
 
22610
 
 
22611
  case $ac_option in
 
22612
  # Handling of the options.
 
22613
_ACEOF
 
22614
cat >>$CONFIG_STATUS <<\_ACEOF
 
22615
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22616
    ac_cs_recheck=: ;;
 
22617
  --version | --vers* | -V )
 
22618
    echo "$ac_cs_version"; exit 0 ;;
 
22619
  --he | --h)
 
22620
    # Conflict between --help and --header
 
22621
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
22622
Try \`$0 --help' for more information." >&5
 
22623
echo "$as_me: error: ambiguous option: $1
 
22624
Try \`$0 --help' for more information." >&2;}
 
22625
   { (exit 1); exit 1; }; };;
 
22626
  --help | --hel | -h )
 
22627
    echo "$ac_cs_usage"; exit 0 ;;
 
22628
  --debug | --d* | -d )
 
22629
    debug=: ;;
 
22630
  --file | --fil | --fi | --f )
 
22631
    $ac_shift
 
22632
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22633
    ac_need_defaults=false;;
 
22634
  --header | --heade | --head | --hea )
 
22635
    $ac_shift
 
22636
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
22637
    ac_need_defaults=false;;
 
22638
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22639
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22640
    ac_cs_silent=: ;;
 
22641
 
 
22642
  # This is an error.
 
22643
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
22644
Try \`$0 --help' for more information." >&5
 
22645
echo "$as_me: error: unrecognized option: $1
 
22646
Try \`$0 --help' for more information." >&2;}
 
22647
   { (exit 1); exit 1; }; } ;;
 
22648
 
 
22649
  *) ac_config_targets="$ac_config_targets $1" ;;
 
22650
 
 
22651
  esac
 
22652
  shift
 
22653
done
 
22654
 
 
22655
ac_configure_extra_args=
 
22656
 
 
22657
if $ac_cs_silent; then
 
22658
  exec 6>/dev/null
 
22659
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22660
fi
 
22661
 
 
22662
_ACEOF
 
22663
cat >>$CONFIG_STATUS <<_ACEOF
 
22664
if \$ac_cs_recheck; then
 
22665
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22666
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22667
fi
 
22668
 
 
22669
_ACEOF
 
22670
 
 
22671
cat >>$CONFIG_STATUS <<_ACEOF
 
22672
#
 
22673
# INIT-COMMANDS section.
 
22674
#
 
22675
 
 
22676
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22677
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
22678
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
22679
    # from automake.
 
22680
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
22681
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
22682
    LINGUAS="${LINGUAS-%UNSET%}"
 
22683
 
 
22684
 
 
22685
_ACEOF
 
22686
 
 
22687
 
 
22688
 
 
22689
cat >>$CONFIG_STATUS <<\_ACEOF
 
22690
for ac_config_target in $ac_config_targets
 
22691
do
 
22692
  case "$ac_config_target" in
 
22693
  # Handling of arguments.
 
22694
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
22695
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22696
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
22697
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
22698
  "jnlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES jnlib/Makefile" ;;
 
22699
  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
 
22700
  "kbx/Makefile" ) CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
 
22701
  "g10/Makefile" ) CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
 
22702
  "sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
 
22703
  "agent/Makefile" ) CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
 
22704
  "scd/Makefile" ) CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
 
22705
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
22706
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
22707
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
22708
  "pth.h" ) CONFIG_LINKS="$CONFIG_LINKS pth.h:jnlib/w32-pth.h" ;;
 
22709
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22710
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
22711
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22712
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22713
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22714
   { (exit 1); exit 1; }; };;
 
22715
  esac
 
22716
done
 
22717
 
 
22718
# If the user did not use the arguments to specify the items to instantiate,
 
22719
# then the envvar interface is used.  Set only those that are not.
 
22720
# We use the long form for the default assignment because of an extremely
 
22721
# bizarre bug on SunOS 4.1.3.
 
22722
if $ac_need_defaults; then
 
22723
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22724
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22725
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 
22726
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22727
fi
 
22728
 
 
22729
# Have a temporary directory for convenience.  Make it in the build tree
 
22730
# simply because there is no reason to put it here, and in addition,
 
22731
# creating and moving files from /tmp can sometimes cause problems.
 
22732
# Create a temporary directory, and hook for its removal unless debugging.
 
22733
$debug ||
 
22734
{
 
22735
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
22736
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22737
}
 
22738
 
 
22739
# Create a (secure) tmp directory for tmp files.
 
22740
 
 
22741
{
 
22742
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
22743
  test -n "$tmp" && test -d "$tmp"
 
22744
}  ||
 
22745
{
 
22746
  tmp=./confstat$$-$RANDOM
 
22747
  (umask 077 && mkdir $tmp)
 
22748
} ||
 
22749
{
 
22750
   echo "$me: cannot create a temporary directory in ." >&2
 
22751
   { (exit 1); exit 1; }
 
22752
}
 
22753
 
 
22754
_ACEOF
 
22755
 
 
22756
cat >>$CONFIG_STATUS <<_ACEOF
 
22757
 
 
22758
#
 
22759
# CONFIG_FILES section.
 
22760
#
 
22761
 
 
22762
# No need to generate the scripts if there are no CONFIG_FILES.
 
22763
# This happens for instance when ./config.status config.h
 
22764
if test -n "\$CONFIG_FILES"; then
 
22765
  # Protect against being on the right side of a sed subst in config.status.
 
22766
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
22767
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
22768
s,@SHELL@,$SHELL,;t t
 
22769
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
22770
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
22771
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
22772
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
22773
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
22774
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
22775
s,@exec_prefix@,$exec_prefix,;t t
 
22776
s,@prefix@,$prefix,;t t
 
22777
s,@program_transform_name@,$program_transform_name,;t t
 
22778
s,@bindir@,$bindir,;t t
 
22779
s,@sbindir@,$sbindir,;t t
 
22780
s,@libexecdir@,$libexecdir,;t t
 
22781
s,@datadir@,$datadir,;t t
 
22782
s,@sysconfdir@,$sysconfdir,;t t
 
22783
s,@sharedstatedir@,$sharedstatedir,;t t
 
22784
s,@localstatedir@,$localstatedir,;t t
 
22785
s,@libdir@,$libdir,;t t
 
22786
s,@includedir@,$includedir,;t t
 
22787
s,@oldincludedir@,$oldincludedir,;t t
 
22788
s,@infodir@,$infodir,;t t
 
22789
s,@mandir@,$mandir,;t t
 
22790
s,@build_alias@,$build_alias,;t t
 
22791
s,@host_alias@,$host_alias,;t t
 
22792
s,@target_alias@,$target_alias,;t t
 
22793
s,@DEFS@,$DEFS,;t t
 
22794
s,@ECHO_C@,$ECHO_C,;t t
 
22795
s,@ECHO_N@,$ECHO_N,;t t
 
22796
s,@ECHO_T@,$ECHO_T,;t t
 
22797
s,@LIBS@,$LIBS,;t t
 
22798
s,@build@,$build,;t t
 
22799
s,@build_cpu@,$build_cpu,;t t
 
22800
s,@build_vendor@,$build_vendor,;t t
 
22801
s,@build_os@,$build_os,;t t
 
22802
s,@host@,$host,;t t
 
22803
s,@host_cpu@,$host_cpu,;t t
 
22804
s,@host_vendor@,$host_vendor,;t t
 
22805
s,@host_os@,$host_os,;t t
 
22806
s,@target@,$target,;t t
 
22807
s,@target_cpu@,$target_cpu,;t t
 
22808
s,@target_vendor@,$target_vendor,;t t
 
22809
s,@target_os@,$target_os,;t t
 
22810
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
22811
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
22812
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
22813
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
22814
s,@PACKAGE@,$PACKAGE,;t t
 
22815
s,@VERSION@,$VERSION,;t t
 
22816
s,@ACLOCAL@,$ACLOCAL,;t t
 
22817
s,@AUTOCONF@,$AUTOCONF,;t t
 
22818
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
22819
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
22820
s,@MAKEINFO@,$MAKEINFO,;t t
 
22821
s,@AMTAR@,$AMTAR,;t t
 
22822
s,@install_sh@,$install_sh,;t t
 
22823
s,@STRIP@,$STRIP,;t t
 
22824
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
22825
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
22826
s,@AWK@,$AWK,;t t
 
22827
s,@SET_MAKE@,$SET_MAKE,;t t
 
22828
s,@am__leading_dot@,$am__leading_dot,;t t
 
22829
s,@PACKAGE_GT@,$PACKAGE_GT,;t t
 
22830
s,@GNUPG_AGENT_PGM@,$GNUPG_AGENT_PGM,;t t
 
22831
s,@GNUPG_AGENT_PGM_TRUE@,$GNUPG_AGENT_PGM_TRUE,;t t
 
22832
s,@GNUPG_AGENT_PGM_FALSE@,$GNUPG_AGENT_PGM_FALSE,;t t
 
22833
s,@GNUPG_PINENTRY_PGM@,$GNUPG_PINENTRY_PGM,;t t
 
22834
s,@GNUPG_PINENTRY_PGM_TRUE@,$GNUPG_PINENTRY_PGM_TRUE,;t t
 
22835
s,@GNUPG_PINENTRY_PGM_FALSE@,$GNUPG_PINENTRY_PGM_FALSE,;t t
 
22836
s,@GNUPG_SCDAEMON_PGM@,$GNUPG_SCDAEMON_PGM,;t t
 
22837
s,@GNUPG_SCDAEMON_PGM_TRUE@,$GNUPG_SCDAEMON_PGM_TRUE,;t t
 
22838
s,@GNUPG_SCDAEMON_PGM_FALSE@,$GNUPG_SCDAEMON_PGM_FALSE,;t t
 
22839
s,@GNUPG_DIRMNGR_PGM@,$GNUPG_DIRMNGR_PGM,;t t
 
22840
s,@GNUPG_DIRMNGR_PGM_TRUE@,$GNUPG_DIRMNGR_PGM_TRUE,;t t
 
22841
s,@GNUPG_DIRMNGR_PGM_FALSE@,$GNUPG_DIRMNGR_PGM_FALSE,;t t
 
22842
s,@GNUPG_PROTECT_TOOL_PGM@,$GNUPG_PROTECT_TOOL_PGM,;t t
 
22843
s,@GNUPG_PROTECT_TOOL_PGM_TRUE@,$GNUPG_PROTECT_TOOL_PGM_TRUE,;t t
 
22844
s,@GNUPG_PROTECT_TOOL_PGM_FALSE@,$GNUPG_PROTECT_TOOL_PGM_FALSE,;t t
 
22845
s,@GPGKEYS_HKP@,$GPGKEYS_HKP,;t t
 
22846
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
22847
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
22848
s,@MAINT@,$MAINT,;t t
 
22849
s,@CC@,$CC,;t t
 
22850
s,@CFLAGS@,$CFLAGS,;t t
 
22851
s,@LDFLAGS@,$LDFLAGS,;t t
 
22852
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
22853
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
22854
s,@EXEEXT@,$EXEEXT,;t t
 
22855
s,@OBJEXT@,$OBJEXT,;t t
 
22856
s,@DEPDIR@,$DEPDIR,;t t
 
22857
s,@am__include@,$am__include,;t t
 
22858
s,@am__quote@,$am__quote,;t t
 
22859
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
22860
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
22861
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
22862
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
22863
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
22864
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
22865
s,@CPP@,$CPP,;t t
 
22866
s,@LN_S@,$LN_S,;t t
 
22867
s,@RANLIB@,$RANLIB,;t t
 
22868
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
22869
s,@AR@,$AR,;t t
 
22870
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
22871
s,@PERL@,$PERL,;t t
 
22872
s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t
 
22873
s,@HAVE_DOCBOOK_TO_MAN_TRUE@,$HAVE_DOCBOOK_TO_MAN_TRUE,;t t
 
22874
s,@HAVE_DOCBOOK_TO_MAN_FALSE@,$HAVE_DOCBOOK_TO_MAN_FALSE,;t t
 
22875
s,@FAQPROG@,$FAQPROG,;t t
 
22876
s,@WORKING_FAQPROG_TRUE@,$WORKING_FAQPROG_TRUE,;t t
 
22877
s,@WORKING_FAQPROG_FALSE@,$WORKING_FAQPROG_FALSE,;t t
 
22878
s,@DOCBOOK_TO_TEXI@,$DOCBOOK_TO_TEXI,;t t
 
22879
s,@HAVE_DOCBOOK_TO_TEXI_TRUE@,$HAVE_DOCBOOK_TO_TEXI_TRUE,;t t
 
22880
s,@HAVE_DOCBOOK_TO_TEXI_FALSE@,$HAVE_DOCBOOK_TO_TEXI_FALSE,;t t
 
22881
s,@HAVE_DOSISH_SYSTEM_TRUE@,$HAVE_DOSISH_SYSTEM_TRUE,;t t
 
22882
s,@HAVE_DOSISH_SYSTEM_FALSE@,$HAVE_DOSISH_SYSTEM_FALSE,;t t
 
22883
s,@HAVE_W32_SYSTEM_TRUE@,$HAVE_W32_SYSTEM_TRUE,;t t
 
22884
s,@HAVE_W32_SYSTEM_FALSE@,$HAVE_W32_SYSTEM_FALSE,;t t
 
22885
s,@GPG_ERROR_CONFIG@,$GPG_ERROR_CONFIG,;t t
 
22886
s,@GPG_ERROR_CFLAGS@,$GPG_ERROR_CFLAGS,;t t
 
22887
s,@GPG_ERROR_LIBS@,$GPG_ERROR_LIBS,;t t
 
22888
s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
 
22889
s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
 
22890
s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
 
22891
s,@LIBASSUAN_CONFIG@,$LIBASSUAN_CONFIG,;t t
 
22892
s,@LIBASSUAN_CFLAGS@,$LIBASSUAN_CFLAGS,;t t
 
22893
s,@LIBASSUAN_LIBS@,$LIBASSUAN_LIBS,;t t
 
22894
s,@KSBA_CONFIG@,$KSBA_CONFIG,;t t
 
22895
s,@KSBA_CFLAGS@,$KSBA_CFLAGS,;t t
 
22896
s,@KSBA_LIBS@,$KSBA_LIBS,;t t
 
22897
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
 
22898
s,@DL_LIBS@,$DL_LIBS,;t t
 
22899
s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
 
22900
s,@OPENSC_CFLAGS@,$OPENSC_CFLAGS,;t t
 
22901
s,@OPENSC_LIBS@,$OPENSC_LIBS,;t t
 
22902
s,@HAVE_OPENSC_TRUE@,$HAVE_OPENSC_TRUE,;t t
 
22903
s,@HAVE_OPENSC_FALSE@,$HAVE_OPENSC_FALSE,;t t
 
22904
s,@PTH_CONFIG@,$PTH_CONFIG,;t t
 
22905
s,@PTH_CFLAGS@,$PTH_CFLAGS,;t t
 
22906
s,@PTH_LIBS@,$PTH_LIBS,;t t
 
22907
s,@SRVLIBS@,$SRVLIBS,;t t
 
22908
s,@GPGKEYS_LDAP@,$GPGKEYS_LDAP,;t t
 
22909
s,@LDAPLIBS@,$LDAPLIBS,;t t
 
22910
s,@SENDMAIL@,$SENDMAIL,;t t
 
22911
s,@GPGKEYS_MAILTO@,$GPGKEYS_MAILTO,;t t
 
22912
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
22913
s,@USE_NLS@,$USE_NLS,;t t
 
22914
s,@MSGFMT@,$MSGFMT,;t t
 
22915
s,@GMSGFMT@,$GMSGFMT,;t t
 
22916
s,@XGETTEXT@,$XGETTEXT,;t t
 
22917
s,@MSGMERGE@,$MSGMERGE,;t t
 
22918
s,@EGREP@,$EGREP,;t t
 
22919
s,@ALLOCA@,$ALLOCA,;t t
 
22920
s,@GLIBC21@,$GLIBC21,;t t
 
22921
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
 
22922
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
 
22923
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
 
22924
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
 
22925
s,@LIBICONV@,$LIBICONV,;t t
 
22926
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
22927
s,@INTLBISON@,$INTLBISON,;t t
 
22928
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
 
22929
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
 
22930
s,@CATOBJEXT@,$CATOBJEXT,;t t
 
22931
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
22932
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
 
22933
s,@GENCAT@,$GENCAT,;t t
 
22934
s,@INTLOBJS@,$INTLOBJS,;t t
 
22935
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
 
22936
s,@INTLLIBS@,$INTLLIBS,;t t
 
22937
s,@LIBINTL@,$LIBINTL,;t t
 
22938
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
22939
s,@POSUB@,$POSUB,;t t
 
22940
s,@SHA512_O@,$SHA512_O,;t t
 
22941
s,@LIBOBJS@,$LIBOBJS,;t t
 
22942
s,@CAPLIBS@,$CAPLIBS,;t t
 
22943
s,@REGEX_O@,$REGEX_O,;t t
 
22944
s,@RUN_PKITS_TESTS_TRUE@,$RUN_PKITS_TESTS_TRUE,;t t
 
22945
s,@RUN_PKITS_TESTS_FALSE@,$RUN_PKITS_TESTS_FALSE,;t t
 
22946
s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
 
22947
s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
 
22948
s,@NETLIBS@,$NETLIBS,;t t
 
22949
s,@W32LIBS@,$W32LIBS,;t t
 
22950
s,@BUILD_GPG_TRUE@,$BUILD_GPG_TRUE,;t t
 
22951
s,@BUILD_GPG_FALSE@,$BUILD_GPG_FALSE,;t t
 
22952
s,@BUILD_GPGSM_TRUE@,$BUILD_GPGSM_TRUE,;t t
 
22953
s,@BUILD_GPGSM_FALSE@,$BUILD_GPGSM_FALSE,;t t
 
22954
s,@BUILD_AGENT_TRUE@,$BUILD_AGENT_TRUE,;t t
 
22955
s,@BUILD_AGENT_FALSE@,$BUILD_AGENT_FALSE,;t t
 
22956
s,@BUILD_SCDAEMON_TRUE@,$BUILD_SCDAEMON_TRUE,;t t
 
22957
s,@BUILD_SCDAEMON_FALSE@,$BUILD_SCDAEMON_FALSE,;t t
 
22958
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
22959
CEOF
 
22960
 
 
22961
_ACEOF
 
22962
 
 
22963
  cat >>$CONFIG_STATUS <<\_ACEOF
 
22964
  # Split the substitutions into bite-sized pieces for seds with
 
22965
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
22966
  ac_max_sed_lines=48
 
22967
  ac_sed_frag=1 # Number of current file.
 
22968
  ac_beg=1 # First line for current file.
 
22969
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
22970
  ac_more_lines=:
 
22971
  ac_sed_cmds=
 
22972
  while $ac_more_lines; do
 
22973
    if test $ac_beg -gt 1; then
 
22974
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22975
    else
 
22976
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22977
    fi
 
22978
    if test ! -s $tmp/subs.frag; then
 
22979
      ac_more_lines=false
 
22980
    else
 
22981
      # The purpose of the label and of the branching condition is to
 
22982
      # speed up the sed processing (if there are no `@' at all, there
 
22983
      # is no need to browse any of the substitutions).
 
22984
      # These are the two extra sed commands mentioned above.
 
22985
      (echo ':t
 
22986
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
22987
      if test -z "$ac_sed_cmds"; then
 
22988
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
22989
      else
 
22990
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
22991
      fi
 
22992
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
22993
      ac_beg=$ac_end
 
22994
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
22995
    fi
 
22996
  done
 
22997
  if test -z "$ac_sed_cmds"; then
 
22998
    ac_sed_cmds=cat
 
22999
  fi
 
23000
fi # test -n "$CONFIG_FILES"
 
23001
 
 
23002
_ACEOF
 
23003
cat >>$CONFIG_STATUS <<\_ACEOF
 
23004
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
23005
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23006
  case $ac_file in
 
23007
  - | *:- | *:-:* ) # input from stdin
 
23008
        cat >$tmp/stdin
 
23009
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23010
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23011
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23012
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23013
  * )   ac_file_in=$ac_file.in ;;
 
23014
  esac
 
23015
 
 
23016
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
23017
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23018
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23019
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23020
         X"$ac_file" : 'X\(//\)$' \| \
 
23021
         X"$ac_file" : 'X\(/\)' \| \
 
23022
         .     : '\(.\)' 2>/dev/null ||
 
23023
echo X"$ac_file" |
 
23024
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23025
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23026
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23027
          /^X\(\/\).*/{ s//\1/; q; }
 
23028
          s/.*/./; q'`
 
23029
  { if $as_mkdir_p; then
 
23030
    mkdir -p "$ac_dir"
 
23031
  else
 
23032
    as_dir="$ac_dir"
 
23033
    as_dirs=
 
23034
    while test ! -d "$as_dir"; do
 
23035
      as_dirs="$as_dir $as_dirs"
 
23036
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23037
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23038
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23039
         X"$as_dir" : 'X\(//\)$' \| \
 
23040
         X"$as_dir" : 'X\(/\)' \| \
 
23041
         .     : '\(.\)' 2>/dev/null ||
 
23042
echo X"$as_dir" |
 
23043
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23044
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23045
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23046
          /^X\(\/\).*/{ s//\1/; q; }
 
23047
          s/.*/./; q'`
 
23048
    done
 
23049
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23050
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23051
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23052
   { (exit 1); exit 1; }; }; }
 
23053
 
 
23054
  ac_builddir=.
 
23055
 
 
23056
if test "$ac_dir" != .; then
 
23057
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23058
  # A "../" for each directory in $ac_dir_suffix.
 
23059
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23060
else
 
23061
  ac_dir_suffix= ac_top_builddir=
 
23062
fi
 
23063
 
 
23064
case $srcdir in
 
23065
  .)  # No --srcdir option.  We are building in place.
 
23066
    ac_srcdir=.
 
23067
    if test -z "$ac_top_builddir"; then
 
23068
       ac_top_srcdir=.
 
23069
    else
 
23070
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23071
    fi ;;
 
23072
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23073
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23074
    ac_top_srcdir=$srcdir ;;
 
23075
  *) # Relative path.
 
23076
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23077
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23078
esac
 
23079
 
 
23080
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23081
# the directories may not exist.
 
23082
case `pwd` in
 
23083
.) ac_abs_builddir="$ac_dir";;
 
23084
*)
 
23085
  case "$ac_dir" in
 
23086
  .) ac_abs_builddir=`pwd`;;
 
23087
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23088
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23089
  esac;;
 
23090
esac
 
23091
case $ac_abs_builddir in
 
23092
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23093
*)
 
23094
  case ${ac_top_builddir}. in
 
23095
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23096
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23097
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23098
  esac;;
 
23099
esac
 
23100
case $ac_abs_builddir in
 
23101
.) ac_abs_srcdir=$ac_srcdir;;
 
23102
*)
 
23103
  case $ac_srcdir in
 
23104
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23105
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23106
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23107
  esac;;
 
23108
esac
 
23109
case $ac_abs_builddir in
 
23110
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23111
*)
 
23112
  case $ac_top_srcdir in
 
23113
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23114
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23115
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23116
  esac;;
 
23117
esac
 
23118
 
 
23119
 
 
23120
  case $INSTALL in
 
23121
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23122
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
23123
  esac
 
23124
 
 
23125
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23126
  # use $as_me), people would be surprised to read:
 
23127
  #    /* config.h.  Generated by config.status.  */
 
23128
  if test x"$ac_file" = x-; then
 
23129
    configure_input=
 
23130
  else
 
23131
    configure_input="$ac_file.  "
 
23132
  fi
 
23133
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
23134
                                     sed 's,.*/,,'` by configure."
 
23135
 
 
23136
  # First look for the input files in the build tree, otherwise in the
 
23137
  # src tree.
 
23138
  ac_file_inputs=`IFS=:
 
23139
    for f in $ac_file_in; do
 
23140
      case $f in
 
23141
      -) echo $tmp/stdin ;;
 
23142
      [\\/$]*)
 
23143
         # Absolute (can't be DOS-style, as IFS=:)
 
23144
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23145
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23146
   { (exit 1); exit 1; }; }
 
23147
         echo "$f";;
 
23148
      *) # Relative
 
23149
         if test -f "$f"; then
 
23150
           # Build tree
 
23151
           echo "$f"
 
23152
         elif test -f "$srcdir/$f"; then
 
23153
           # Source tree
 
23154
           echo "$srcdir/$f"
 
23155
         else
 
23156
           # /dev/null tree
 
23157
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23158
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23159
   { (exit 1); exit 1; }; }
 
23160
         fi;;
 
23161
      esac
 
23162
    done` || { (exit 1); exit 1; }
 
23163
 
 
23164
  if test x"$ac_file" != x-; then
 
23165
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23166
echo "$as_me: creating $ac_file" >&6;}
 
23167
    rm -f "$ac_file"
 
23168
  fi
 
23169
_ACEOF
 
23170
cat >>$CONFIG_STATUS <<_ACEOF
 
23171
  sed "$ac_vpsub
 
23172
$extrasub
 
23173
_ACEOF
 
23174
cat >>$CONFIG_STATUS <<\_ACEOF
 
23175
:t
 
23176
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23177
s,@configure_input@,$configure_input,;t t
 
23178
s,@srcdir@,$ac_srcdir,;t t
 
23179
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
23180
s,@top_srcdir@,$ac_top_srcdir,;t t
 
23181
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
23182
s,@builddir@,$ac_builddir,;t t
 
23183
s,@abs_builddir@,$ac_abs_builddir,;t t
 
23184
s,@top_builddir@,$ac_top_builddir,;t t
 
23185
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
23186
s,@INSTALL@,$ac_INSTALL,;t t
 
23187
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
23188
  rm -f $tmp/stdin
 
23189
  if test x"$ac_file" != x-; then
 
23190
    mv $tmp/out $ac_file
 
23191
  else
 
23192
    cat $tmp/out
 
23193
    rm -f $tmp/out
 
23194
  fi
 
23195
 
 
23196
done
 
23197
_ACEOF
 
23198
cat >>$CONFIG_STATUS <<\_ACEOF
 
23199
 
 
23200
#
 
23201
# CONFIG_HEADER section.
 
23202
#
 
23203
 
 
23204
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
23205
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
23206
#
 
23207
# ac_d sets the value in "#define NAME VALUE" lines.
 
23208
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
23209
ac_dB='[         ].*$,\1#\2'
 
23210
ac_dC=' '
 
23211
ac_dD=',;t'
 
23212
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
23213
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
23214
ac_uB='$,\1#\2define\3'
 
23215
ac_uC=' '
 
23216
ac_uD=',;t'
 
23217
 
 
23218
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
23219
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23220
  case $ac_file in
 
23221
  - | *:- | *:-:* ) # input from stdin
 
23222
        cat >$tmp/stdin
 
23223
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23224
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23225
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23226
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23227
  * )   ac_file_in=$ac_file.in ;;
 
23228
  esac
 
23229
 
 
23230
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23231
echo "$as_me: creating $ac_file" >&6;}
 
23232
 
 
23233
  # First look for the input files in the build tree, otherwise in the
 
23234
  # src tree.
 
23235
  ac_file_inputs=`IFS=:
 
23236
    for f in $ac_file_in; do
 
23237
      case $f in
 
23238
      -) echo $tmp/stdin ;;
 
23239
      [\\/$]*)
 
23240
         # Absolute (can't be DOS-style, as IFS=:)
 
23241
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23242
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23243
   { (exit 1); exit 1; }; }
 
23244
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
23245
         echo "$f";;
 
23246
      *) # Relative
 
23247
         if test -f "$f"; then
 
23248
           # Build tree
 
23249
           echo "$f"
 
23250
         elif test -f "$srcdir/$f"; then
 
23251
           # Source tree
 
23252
           echo "$srcdir/$f"
 
23253
         else
 
23254
           # /dev/null tree
 
23255
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23256
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23257
   { (exit 1); exit 1; }; }
 
23258
         fi;;
 
23259
      esac
 
23260
    done` || { (exit 1); exit 1; }
 
23261
  # Remove the trailing spaces.
 
23262
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
23263
 
 
23264
_ACEOF
 
23265
 
 
23266
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
23267
# `conftest.undefs', that substitutes the proper values into
 
23268
# config.h.in to produce config.h.  The first handles `#define'
 
23269
# templates, and the second `#undef' templates.
 
23270
# And first: Protect against being on the right side of a sed subst in
 
23271
# config.status.  Protect against being in an unquoted here document
 
23272
# in config.status.
 
23273
rm -f conftest.defines conftest.undefs
 
23274
# Using a here document instead of a string reduces the quoting nightmare.
 
23275
# Putting comments in sed scripts is not portable.
 
23276
#
 
23277
# `end' is used to avoid that the second main sed command (meant for
 
23278
# 0-ary CPP macros) applies to n-ary macro definitions.
 
23279
# See the Autoconf documentation for `clear'.
 
23280
cat >confdef2sed.sed <<\_ACEOF
 
23281
s/[\\&,]/\\&/g
 
23282
s,[\\$`],\\&,g
 
23283
t clear
 
23284
: clear
 
23285
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
23286
t end
 
23287
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
23288
: end
 
23289
_ACEOF
 
23290
# If some macros were called several times there might be several times
 
23291
# the same #defines, which is useless.  Nevertheless, we may not want to
 
23292
# sort them, since we want the *last* AC-DEFINE to be honored.
 
23293
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
23294
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
23295
rm -f confdef2sed.sed
 
23296
 
 
23297
# This sed command replaces #undef with comments.  This is necessary, for
 
23298
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
23299
# on some systems where configure will not decide to define it.
 
23300
cat >>conftest.undefs <<\_ACEOF
 
23301
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
23302
_ACEOF
 
23303
 
 
23304
# Break up conftest.defines because some shells have a limit on the size
 
23305
# of here documents, and old seds have small limits too (100 cmds).
 
23306
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
23307
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23308
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
23309
echo '  :' >>$CONFIG_STATUS
 
23310
rm -f conftest.tail
 
23311
while grep . conftest.defines >/dev/null
 
23312
do
 
23313
  # Write a limited-size here document to $tmp/defines.sed.
 
23314
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
23315
  # Speed up: don't consider the non `#define' lines.
 
23316
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23317
  # Work around the forget-to-reset-the-flag bug.
 
23318
  echo 't clr' >>$CONFIG_STATUS
 
23319
  echo ': clr' >>$CONFIG_STATUS
 
23320
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
23321
  echo 'CEOF
 
23322
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
23323
  rm -f $tmp/in
 
23324
  mv $tmp/out $tmp/in
 
23325
' >>$CONFIG_STATUS
 
23326
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
23327
  rm -f conftest.defines
 
23328
  mv conftest.tail conftest.defines
 
23329
done
 
23330
rm -f conftest.defines
 
23331
echo '  fi # grep' >>$CONFIG_STATUS
 
23332
echo >>$CONFIG_STATUS
 
23333
 
 
23334
# Break up conftest.undefs because some shells have a limit on the size
 
23335
# of here documents, and old seds have small limits too (100 cmds).
 
23336
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
23337
rm -f conftest.tail
 
23338
while grep . conftest.undefs >/dev/null
 
23339
do
 
23340
  # Write a limited-size here document to $tmp/undefs.sed.
 
23341
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
23342
  # Speed up: don't consider the non `#undef'
 
23343
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23344
  # Work around the forget-to-reset-the-flag bug.
 
23345
  echo 't clr' >>$CONFIG_STATUS
 
23346
  echo ': clr' >>$CONFIG_STATUS
 
23347
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
23348
  echo 'CEOF
 
23349
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
23350
  rm -f $tmp/in
 
23351
  mv $tmp/out $tmp/in
 
23352
' >>$CONFIG_STATUS
 
23353
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
23354
  rm -f conftest.undefs
 
23355
  mv conftest.tail conftest.undefs
 
23356
done
 
23357
rm -f conftest.undefs
 
23358
 
 
23359
cat >>$CONFIG_STATUS <<\_ACEOF
 
23360
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23361
  # use $as_me), people would be surprised to read:
 
23362
  #    /* config.h.  Generated by config.status.  */
 
23363
  if test x"$ac_file" = x-; then
 
23364
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23365
  else
 
23366
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23367
  fi
 
23368
  cat $tmp/in >>$tmp/config.h
 
23369
  rm -f $tmp/in
 
23370
  if test x"$ac_file" != x-; then
 
23371
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23372
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23373
echo "$as_me: $ac_file is unchanged" >&6;}
 
23374
    else
 
23375
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23376
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23377
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23378
         X"$ac_file" : 'X\(//\)$' \| \
 
23379
         X"$ac_file" : 'X\(/\)' \| \
 
23380
         .     : '\(.\)' 2>/dev/null ||
 
23381
echo X"$ac_file" |
 
23382
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23383
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23384
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23385
          /^X\(\/\).*/{ s//\1/; q; }
 
23386
          s/.*/./; q'`
 
23387
      { if $as_mkdir_p; then
 
23388
    mkdir -p "$ac_dir"
 
23389
  else
 
23390
    as_dir="$ac_dir"
 
23391
    as_dirs=
 
23392
    while test ! -d "$as_dir"; do
 
23393
      as_dirs="$as_dir $as_dirs"
 
23394
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23395
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23396
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23397
         X"$as_dir" : 'X\(//\)$' \| \
 
23398
         X"$as_dir" : 'X\(/\)' \| \
 
23399
         .     : '\(.\)' 2>/dev/null ||
 
23400
echo X"$as_dir" |
 
23401
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23402
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23403
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23404
          /^X\(\/\).*/{ s//\1/; q; }
 
23405
          s/.*/./; q'`
 
23406
    done
 
23407
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23408
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23409
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23410
   { (exit 1); exit 1; }; }; }
 
23411
 
 
23412
      rm -f $ac_file
 
23413
      mv $tmp/config.h $ac_file
 
23414
    fi
 
23415
  else
 
23416
    cat $tmp/config.h
 
23417
    rm -f $tmp/config.h
 
23418
  fi
 
23419
# Compute $ac_file's index in $config_headers.
 
23420
_am_stamp_count=1
 
23421
for _am_header in $config_headers :; do
 
23422
  case $_am_header in
 
23423
    $ac_file | $ac_file:* )
 
23424
      break ;;
 
23425
    * )
 
23426
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23427
  esac
 
23428
done
 
23429
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23430
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23431
         X$ac_file : 'X\(//\)[^/]' \| \
 
23432
         X$ac_file : 'X\(//\)$' \| \
 
23433
         X$ac_file : 'X\(/\)' \| \
 
23434
         .     : '\(.\)' 2>/dev/null ||
 
23435
echo X$ac_file |
 
23436
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23437
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23438
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23439
          /^X\(\/\).*/{ s//\1/; q; }
 
23440
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23441
done
 
23442
_ACEOF
 
23443
cat >>$CONFIG_STATUS <<\_ACEOF
 
23444
 
 
23445
#
 
23446
# CONFIG_LINKS section.
 
23447
#
 
23448
 
 
23449
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
 
23450
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23451
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23452
 
 
23453
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
 
23454
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
 
23455
 
 
23456
  if test ! -r $srcdir/$ac_source; then
 
23457
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
 
23458
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
 
23459
   { (exit 1); exit 1; }; }
 
23460
  fi
 
23461
  rm -f $ac_dest
 
23462
 
 
23463
  # Make relative symlinks.
 
23464
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23465
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23466
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23467
         X"$ac_dest" : 'X\(//\)$' \| \
 
23468
         X"$ac_dest" : 'X\(/\)' \| \
 
23469
         .     : '\(.\)' 2>/dev/null ||
 
23470
echo X"$ac_dest" |
 
23471
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23472
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23473
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23474
          /^X\(\/\).*/{ s//\1/; q; }
 
23475
          s/.*/./; q'`
 
23476
  { if $as_mkdir_p; then
 
23477
    mkdir -p "$ac_dest_dir"
 
23478
  else
 
23479
    as_dir="$ac_dest_dir"
 
23480
    as_dirs=
 
23481
    while test ! -d "$as_dir"; do
 
23482
      as_dirs="$as_dir $as_dirs"
 
23483
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23484
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23485
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23486
         X"$as_dir" : 'X\(//\)$' \| \
 
23487
         X"$as_dir" : 'X\(/\)' \| \
 
23488
         .     : '\(.\)' 2>/dev/null ||
 
23489
echo X"$as_dir" |
 
23490
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23491
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23492
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23493
          /^X\(\/\).*/{ s//\1/; q; }
 
23494
          s/.*/./; q'`
 
23495
    done
 
23496
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23497
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
 
23498
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
 
23499
   { (exit 1); exit 1; }; }; }
 
23500
 
 
23501
  ac_builddir=.
 
23502
 
 
23503
if test "$ac_dest_dir" != .; then
 
23504
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
 
23505
  # A "../" for each directory in $ac_dir_suffix.
 
23506
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23507
else
 
23508
  ac_dir_suffix= ac_top_builddir=
 
23509
fi
 
23510
 
 
23511
case $srcdir in
 
23512
  .)  # No --srcdir option.  We are building in place.
 
23513
    ac_srcdir=.
 
23514
    if test -z "$ac_top_builddir"; then
 
23515
       ac_top_srcdir=.
 
23516
    else
 
23517
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23518
    fi ;;
 
23519
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23520
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23521
    ac_top_srcdir=$srcdir ;;
 
23522
  *) # Relative path.
 
23523
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23524
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23525
esac
 
23526
 
 
23527
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23528
# the directories may not exist.
 
23529
case `pwd` in
 
23530
.) ac_abs_builddir="$ac_dest_dir";;
 
23531
*)
 
23532
  case "$ac_dest_dir" in
 
23533
  .) ac_abs_builddir=`pwd`;;
 
23534
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
 
23535
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
 
23536
  esac;;
 
23537
esac
 
23538
case $ac_abs_builddir in
 
23539
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23540
*)
 
23541
  case ${ac_top_builddir}. in
 
23542
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23543
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23544
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23545
  esac;;
 
23546
esac
 
23547
case $ac_abs_builddir in
 
23548
.) ac_abs_srcdir=$ac_srcdir;;
 
23549
*)
 
23550
  case $ac_srcdir in
 
23551
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23552
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23553
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23554
  esac;;
 
23555
esac
 
23556
case $ac_abs_builddir in
 
23557
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23558
*)
 
23559
  case $ac_top_srcdir in
 
23560
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23561
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23562
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23563
  esac;;
 
23564
esac
 
23565
 
 
23566
 
 
23567
  case $srcdir in
 
23568
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
 
23569
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
 
23570
  esac
 
23571
 
 
23572
  # Try a symlink, then a hard link, then a copy.
 
23573
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 
23574
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
 
23575
    cp -p $srcdir/$ac_source $ac_dest ||
 
23576
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
 
23577
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
 
23578
   { (exit 1); exit 1; }; }
 
23579
done
 
23580
_ACEOF
 
23581
cat >>$CONFIG_STATUS <<\_ACEOF
 
23582
 
 
23583
#
 
23584
# CONFIG_COMMANDS section.
 
23585
#
 
23586
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23587
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23588
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23589
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23590
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23591
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23592
         X"$ac_dest" : 'X\(//\)$' \| \
 
23593
         X"$ac_dest" : 'X\(/\)' \| \
 
23594
         .     : '\(.\)' 2>/dev/null ||
 
23595
echo X"$ac_dest" |
 
23596
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23597
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23598
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23599
          /^X\(\/\).*/{ s//\1/; q; }
 
23600
          s/.*/./; q'`
 
23601
  { if $as_mkdir_p; then
 
23602
    mkdir -p "$ac_dir"
 
23603
  else
 
23604
    as_dir="$ac_dir"
 
23605
    as_dirs=
 
23606
    while test ! -d "$as_dir"; do
 
23607
      as_dirs="$as_dir $as_dirs"
 
23608
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23609
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23610
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23611
         X"$as_dir" : 'X\(//\)$' \| \
 
23612
         X"$as_dir" : 'X\(/\)' \| \
 
23613
         .     : '\(.\)' 2>/dev/null ||
 
23614
echo X"$as_dir" |
 
23615
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23616
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23617
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23618
          /^X\(\/\).*/{ s//\1/; q; }
 
23619
          s/.*/./; q'`
 
23620
    done
 
23621
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23622
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23623
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23624
   { (exit 1); exit 1; }; }; }
 
23625
 
 
23626
  ac_builddir=.
 
23627
 
 
23628
if test "$ac_dir" != .; then
 
23629
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23630
  # A "../" for each directory in $ac_dir_suffix.
 
23631
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23632
else
 
23633
  ac_dir_suffix= ac_top_builddir=
 
23634
fi
 
23635
 
 
23636
case $srcdir in
 
23637
  .)  # No --srcdir option.  We are building in place.
 
23638
    ac_srcdir=.
 
23639
    if test -z "$ac_top_builddir"; then
 
23640
       ac_top_srcdir=.
 
23641
    else
 
23642
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23643
    fi ;;
 
23644
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23645
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23646
    ac_top_srcdir=$srcdir ;;
 
23647
  *) # Relative path.
 
23648
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23649
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23650
esac
 
23651
 
 
23652
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23653
# the directories may not exist.
 
23654
case `pwd` in
 
23655
.) ac_abs_builddir="$ac_dir";;
 
23656
*)
 
23657
  case "$ac_dir" in
 
23658
  .) ac_abs_builddir=`pwd`;;
 
23659
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23660
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23661
  esac;;
 
23662
esac
 
23663
case $ac_abs_builddir in
 
23664
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23665
*)
 
23666
  case ${ac_top_builddir}. in
 
23667
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23668
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23669
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23670
  esac;;
 
23671
esac
 
23672
case $ac_abs_builddir in
 
23673
.) ac_abs_srcdir=$ac_srcdir;;
 
23674
*)
 
23675
  case $ac_srcdir in
 
23676
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23677
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23678
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23679
  esac;;
 
23680
esac
 
23681
case $ac_abs_builddir in
 
23682
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23683
*)
 
23684
  case $ac_top_srcdir in
 
23685
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23686
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23687
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23688
  esac;;
 
23689
esac
 
23690
 
 
23691
 
 
23692
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
23693
echo "$as_me: executing $ac_dest commands" >&6;}
 
23694
  case $ac_dest in
 
23695
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23696
  # Strip MF so we end up with the name of the file.
 
23697
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23698
  # Check whether this is an Automake generated Makefile or not.
 
23699
  # We used to match only the files named `Makefile.in', but
 
23700
  # some people rename them; so instead we look at the file content.
 
23701
  # Grep'ing the first line is not enough: some people post-process
 
23702
  # each Makefile.in and add a new line on top of each file to say so.
 
23703
  # So let's grep whole file.
 
23704
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23705
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
23706
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23707
         X"$mf" : 'X\(//\)[^/]' \| \
 
23708
         X"$mf" : 'X\(//\)$' \| \
 
23709
         X"$mf" : 'X\(/\)' \| \
 
23710
         .     : '\(.\)' 2>/dev/null ||
 
23711
echo X"$mf" |
 
23712
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23713
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23714
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23715
          /^X\(\/\).*/{ s//\1/; q; }
 
23716
          s/.*/./; q'`
 
23717
  else
 
23718
    continue
 
23719
  fi
 
23720
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
23721
  # Extract the definition of DEP_FILES from the Makefile without
 
23722
  # running `make'.
 
23723
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
23724
  test -z "$DEPDIR" && continue
 
23725
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23726
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
23727
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
23728
  # We invoke sed twice because it is the simplest approach to
 
23729
  # changing $(DEPDIR) to its actual value in the expansion.
 
23730
  for file in `sed -n -e '
 
23731
    /^DEP_FILES = .*\\\\$/ {
 
23732
      s/^DEP_FILES = //
 
23733
      :loop
 
23734
        s/\\\\$//
 
23735
        p
 
23736
        n
 
23737
        /\\\\$/ b loop
 
23738
      p
 
23739
    }
 
23740
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
23741
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23742
    # Make sure the directory exists.
 
23743
    test -f "$dirpart/$file" && continue
 
23744
    fdir=`(dirname "$file") 2>/dev/null ||
 
23745
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23746
         X"$file" : 'X\(//\)[^/]' \| \
 
23747
         X"$file" : 'X\(//\)$' \| \
 
23748
         X"$file" : 'X\(/\)' \| \
 
23749
         .     : '\(.\)' 2>/dev/null ||
 
23750
echo X"$file" |
 
23751
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23752
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23753
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23754
          /^X\(\/\).*/{ s//\1/; q; }
 
23755
          s/.*/./; q'`
 
23756
    { if $as_mkdir_p; then
 
23757
    mkdir -p $dirpart/$fdir
 
23758
  else
 
23759
    as_dir=$dirpart/$fdir
 
23760
    as_dirs=
 
23761
    while test ! -d "$as_dir"; do
 
23762
      as_dirs="$as_dir $as_dirs"
 
23763
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23764
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23765
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23766
         X"$as_dir" : 'X\(//\)$' \| \
 
23767
         X"$as_dir" : 'X\(/\)' \| \
 
23768
         .     : '\(.\)' 2>/dev/null ||
 
23769
echo X"$as_dir" |
 
23770
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23771
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23772
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23773
          /^X\(\/\).*/{ s//\1/; q; }
 
23774
          s/.*/./; q'`
 
23775
    done
 
23776
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23777
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
23778
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
23779
   { (exit 1); exit 1; }; }; }
 
23780
 
 
23781
    # echo "creating $dirpart/$file"
 
23782
    echo '# dummy' > "$dirpart/$file"
 
23783
  done
 
23784
done
 
23785
 ;;
 
23786
    default-1 )
 
23787
    for ac_file in $CONFIG_FILES; do
 
23788
      # Support "outfile[:infile[:infile...]]"
 
23789
      case "$ac_file" in
 
23790
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
23791
      esac
 
23792
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
23793
      case "$ac_file" in */Makefile.in)
 
23794
        # Adjust a relative srcdir.
 
23795
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
23796
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
23797
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
23798
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
23799
        # In autoconf-2.50 it is called $srcdir.
 
23800
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
23801
        case "$ac_given_srcdir" in
 
23802
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
23803
          /*) top_srcdir="$ac_given_srcdir" ;;
 
23804
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
23805
        esac
 
23806
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
23807
          rm -f "$ac_dir/POTFILES"
 
23808
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
23809
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
23810
          POMAKEFILEDEPS="POTFILES.in"
 
23811
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
23812
          # on $ac_dir but don't depend on user-specified configuration
 
23813
          # parameters.
 
23814
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
23815
            # The LINGUAS file contains the set of available languages.
 
23816
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
23817
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
23818
            fi
 
23819
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
23820
            # Hide the ALL_LINGUAS assigment from automake.
 
23821
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
23822
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
23823
          else
 
23824
            # The set of available languages was given in configure.in.
 
23825
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
23826
          fi
 
23827
          # Compute POFILES
 
23828
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
23829
          # Compute UPDATEPOFILES
 
23830
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
23831
          # Compute DUMMYPOFILES
 
23832
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
23833
          # Compute GMOFILES
 
23834
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
23835
          case "$ac_given_srcdir" in
 
23836
            .) srcdirpre= ;;
 
23837
            *) srcdirpre='$(srcdir)/' ;;
 
23838
          esac
 
23839
          POFILES=
 
23840
          UPDATEPOFILES=
 
23841
          DUMMYPOFILES=
 
23842
          GMOFILES=
 
23843
          for lang in $ALL_LINGUAS; do
 
23844
            POFILES="$POFILES $srcdirpre$lang.po"
 
23845
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
23846
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
23847
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
23848
          done
 
23849
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
23850
          # environment variable.
 
23851
          INST_LINGUAS=
 
23852
          if test -n "$ALL_LINGUAS"; then
 
23853
            for presentlang in $ALL_LINGUAS; do
 
23854
              useit=no
 
23855
              if test "%UNSET%" != "$LINGUAS"; then
 
23856
                desiredlanguages="$LINGUAS"
 
23857
              else
 
23858
                desiredlanguages="$ALL_LINGUAS"
 
23859
              fi
 
23860
              for desiredlang in $desiredlanguages; do
 
23861
                # Use the presentlang catalog if desiredlang is
 
23862
                #   a. equal to presentlang, or
 
23863
                #   b. a variant of presentlang (because in this case,
 
23864
                #      presentlang can be used as a fallback for messages
 
23865
                #      which are not translated in the desiredlang catalog).
 
23866
                case "$desiredlang" in
 
23867
                  "$presentlang"*) useit=yes;;
 
23868
                esac
 
23869
              done
 
23870
              if test $useit = yes; then
 
23871
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
23872
              fi
 
23873
            done
 
23874
          fi
 
23875
          CATALOGS=
 
23876
          if test -n "$INST_LINGUAS"; then
 
23877
            for lang in $INST_LINGUAS; do
 
23878
              CATALOGS="$CATALOGS $lang.gmo"
 
23879
            done
 
23880
          fi
 
23881
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
23882
          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"
 
23883
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
23884
            if test -f "$f"; then
 
23885
              case "$f" in
 
23886
                *.orig | *.bak | *~) ;;
 
23887
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
23888
              esac
 
23889
            fi
 
23890
          done
 
23891
        fi
 
23892
        ;;
 
23893
      esac
 
23894
    done ;;
 
23895
  esac
 
23896
done
 
23897
_ACEOF
 
23898
 
 
23899
cat >>$CONFIG_STATUS <<\_ACEOF
 
23900
 
 
23901
{ (exit 0); exit 0; }
 
23902
_ACEOF
 
23903
chmod +x $CONFIG_STATUS
 
23904
ac_clean_files=$ac_clean_files_save
 
23905
 
 
23906
 
 
23907
# configure is writing to config.log, and then calls config.status.
 
23908
# config.status does its own redirection, appending to config.log.
 
23909
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23910
# by configure, so config.status won't be able to write to it; its
 
23911
# output is simply discarded.  So we exec the FD to /dev/null,
 
23912
# effectively closing config.log, so it can be properly (re)opened and
 
23913
# appended to by config.status.  When coming back to configure, we
 
23914
# need to make the FD available again.
 
23915
if test "$no_create" != yes; then
 
23916
  ac_cs_success=:
 
23917
  ac_config_status_args=
 
23918
  test "$silent" = yes &&
 
23919
    ac_config_status_args="$ac_config_status_args --quiet"
 
23920
  exec 5>/dev/null
 
23921
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23922
  exec 5>>config.log
 
23923
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23924
  # would make configure fail if this is the last instruction.
 
23925
  $ac_cs_success || { (exit 1); exit 1; }
 
23926
fi
 
23927
 
 
23928
 
 
23929
#tests/pkits/Makefile
 
23930
 
 
23931
 
 
23932
 
 
23933
 
 
23934
echo "
 
23935
        GnuPG v${VERSION} has been configured as follows:
 
23936
 
 
23937
        Platform:  $PRINTABLE_OS_NAME ($host)
 
23938
 
 
23939
        OpenPGP:   $build_gpg
 
23940
        S/MIME:    $build_gpgsm
 
23941
        Agent:     $build_agent $build_agent_threaded
 
23942
        Smartcard: $build_scdaemon $build_scdaemon_extra
 
23943
 
 
23944
        Protect tool:      $show_gnupg_protect_tool_pgm
 
23945
        Default agent:     $show_gnupg_agent_pgm
 
23946
        Default pinentry:  $show_gnupg_pinentry_pgm
 
23947
        Default scdaemon:  $show_gnupg_scdaemon_pgm
 
23948
        Default dirmngr:   $show_gnupg_dirmngr_pgm
 
23949
 
 
23950
        PKITS based tests: $run_pkits_tests
 
23951
"
 
23952